1261
by Clarence Dang
Merge /branches/work/~dang/kdegraphics/kolourpaint/ -r651231(branch base):651305 to be up-to-date. The changes were massive but non-functional: |
1 |
/*
|
2 |
Copyright (c) 2003-2007 Clarence Dang <dang@kde.org>
|
|
3 |
All rights reserved.
|
|
4 |
||
5 |
Redistribution and use in source and binary forms, with or without
|
|
6 |
modification, are permitted provided that the following conditions
|
|
7 |
are met:
|
|
8 |
||
9 |
1. Redistributions of source code must retain the above copyright
|
|
10 |
notice, this list of conditions and the following disclaimer.
|
|
11 |
2. Redistributions in binary form must reproduce the above copyright
|
|
12 |
notice, this list of conditions and the following disclaimer in the
|
|
13 |
documentation and/or other materials provided with the distribution.
|
|
14 |
||
15 |
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
16 |
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
17 |
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
18 |
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
19 |
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
20 |
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
21 |
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
22 |
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
23 |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
24 |
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25 |
*/
|
|
26 |
||
27 |
||
28 |
#ifndef KP_DEFS_H
|
|
29 |
#define KP_DEFS_H
|
|
30 |
||
31 |
||
32 |
#include <limits.h> |
|
33 |
||
34 |
#include <QtGlobal> |
|
2025
by André Agenor
Standardizing includes across header files |
35 |
#include <QPoint> |
36 |
#include <QSize> |
|
37 |
#include <QString> |
|
38 |
||
1261
by Clarence Dang
Merge /branches/work/~dang/kdegraphics/kolourpaint/ -r651231(branch base):651305 to be up-to-date. The changes were massive but non-functional: |
39 |
|
40 |
// approx. 2896x2896x32bpp or 3344x3344x24bpp (TODO: 24==32?) or 4096*4096x16bpp
|
|
41 |
#define KP_BIG_IMAGE_SIZE (32 * 1048576)
|
|
42 |
||
43 |
||
44 |
#define KP_INVALID_POINT QPoint (INT_MIN / 8, INT_MIN / 8)
|
|
45 |
#define KP_INVALID_WIDTH (INT_MIN / 8)
|
|
46 |
#define KP_INVALID_HEIGHT (INT_MIN / 8)
|
|
47 |
#define KP_INVALID_SIZE QSize (INT_MIN / 8, INT_MIN / 8)
|
|
48 |
||
49 |
||
50 |
#define KP_INCHES_PER_METER (100 / 2.54)
|
|
1309
by Clarence Dang
Fix kpDocumentMetaInfoDialog to actually work. An unfortunately huge number of changes in that .h/.cpp pair. More on the backend changes: |
51 |
#define KP_MILLIMETERS_PER_INCH 25.4
|
52 |
||
53 |
||
54 |
//
|
|
1261
by Clarence Dang
Merge /branches/work/~dang/kdegraphics/kolourpaint/ -r651231(branch base):651305 to be up-to-date. The changes were massive but non-functional: |
55 |
// Settings
|
56 |
//
|
|
57 |
||
58 |
#define kpSettingsGroupRecentFiles "Recent Files"
|
|
1792
by Martin Koller
Store last selected scale type in scale/resize dialog |
59 |
|
60 |
#define kpSettingsGroupGeneral "General Settings"
|
|
61 |
#define kpSettingFirstTime "First Time"
|
|
62 |
#define kpSettingShowGrid "Show Grid"
|
|
63 |
#define kpSettingShowPath "Show Path"
|
|
64 |
#define kpSettingDrawAntiAliased "Draw AntiAliased"
|
|
1959
by Martin Koller
Add setting for anti-aliased drawing; lots of code cleanup |
65 |
#define kpSettingColorSimilarity "Color Similarity"
|
1792
by Martin Koller
Store last selected scale type in scale/resize dialog |
66 |
#define kpSettingDitherOnOpen "Dither on Open if Screen is 15/16bpp and Image Num Colors More Than"
|
67 |
#define kpSettingPrintImageCenteredOnPage "Print Image Centered On Page"
|
|
68 |
#define kpSettingOpenImagesInSameWindow "Open Images in the Same Window"
|
|
69 |
||
70 |
#define kpSettingsGroupFileSaveAs "File/Save As"
|
|
71 |
#define kpSettingsGroupFileExport "File/Export"
|
|
72 |
#define kpSettingsGroupEditCopyTo "Edit/Copy To"
|
|
73 |
||
74 |
#define kpSettingForcedMimeType "Forced MimeType"
|
|
75 |
#define kpSettingForcedColorDepth "Forced Color Depth"
|
|
76 |
#define kpSettingForcedDither "Forced Dither"
|
|
77 |
#define kpSettingForcedQuality "Forced Quality"
|
|
78 |
||
79 |
#define kpSettingLastDocSize "Last Document Size"
|
|
80 |
||
81 |
#define kpSettingMoreEffectsLastEffect "More Effects - Last Effect"
|
|
82 |
||
83 |
#define kpSettingsGroupMimeTypeProperties "MimeType Properties Version 1.2-3"
|
|
1824
by Martin Koller
Add support for WebP image format |
84 |
#define kpSettingMimeTypeMaximumColorDepth "Maximum Color Depth"
|
1792
by Martin Koller
Store last selected scale type in scale/resize dialog |
85 |
#define kpSettingMimeTypeHasConfigurableColorDepth "Configurable Color Depth"
|
86 |
#define kpSettingMimeTypeHasConfigurableQuality "Configurable Quality Setting"
|
|
87 |
||
88 |
||
89 |
#define kpSettingsGroupUndoRedo "Undo/Redo Settings"
|
|
90 |
#define kpSettingUndoMinLimit "Min Limit"
|
|
91 |
#define kpSettingUndoMaxLimit "Max Limit"
|
|
92 |
#define kpSettingUndoMaxLimitSizeLimit "Max Limit Size Limit"
|
|
93 |
||
94 |
||
95 |
#define kpSettingsGroupThumbnail "Thumbnail Settings"
|
|
96 |
#define kpSettingThumbnailShown "Shown"
|
|
97 |
#define kpSettingThumbnailGeometry "Geometry"
|
|
98 |
#define kpSettingThumbnailZoomed "Zoomed"
|
|
99 |
#define kpSettingThumbnailShowRectangle "ShowRectangle"
|
|
100 |
||
101 |
||
102 |
#define kpSettingsGroupPreviewSave "Save Preview Settings"
|
|
103 |
#define kpSettingPreviewSaveGeometry "Geometry"
|
|
104 |
#define kpSettingPreviewSaveUpdateDelay "Update Delay"
|
|
105 |
||
106 |
||
107 |
#define kpSettingsGroupTools "Tool Settings"
|
|
108 |
#define kpSettingLastTool "Last Used Tool"
|
|
109 |
#define kpSettingToolBoxIconSize "Tool Box Icon Size"
|
|
110 |
||
111 |
||
112 |
#define kpSettingsGroupText "Text Settings"
|
|
113 |
#define kpSettingFontFamily "Font Family"
|
|
114 |
#define kpSettingFontSize "Font Size"
|
|
115 |
#define kpSettingBold "Bold"
|
|
116 |
#define kpSettingItalic "Italic"
|
|
117 |
#define kpSettingUnderline "Underline"
|
|
118 |
#define kpSettingStrikeThru "Strike Thru"
|
|
119 |
||
120 |
||
121 |
#define kpSettingsGroupFlattenEffect "Flatten Effect Settings"
|
|
122 |
#define kpSettingFlattenEffectColor1 "Color1"
|
|
123 |
#define kpSettingFlattenEffectColor2 "Color2"
|
|
124 |
||
1261
by Clarence Dang
Merge /branches/work/~dang/kdegraphics/kolourpaint/ -r651231(branch base):651305 to be up-to-date. The changes were massive but non-functional: |
125 |
|
126 |
//
|
|
1289
by Clarence Dang
Merge /branches/work/~dang/kdegraphics/kolourpaint/ -r651355(last merged upto):692068 |
127 |
// Session Restore Setting
|
128 |
//
|
|
129 |
||
130 |
// URL of the document in the main window.
|
|
131 |
//
|
|
132 |
// This key only exists if the document does. If it exists, it can be empty.
|
|
133 |
// The URL need not point to a file that exists e.g. "kolourpaint doesnotexist.png".
|
|
134 |
#define kpSessionSettingDocumentUrl QString::fromLatin1 ("Session Document Url")
|
|
135 |
||
136 |
// The size of a document which is not from a URL e.g. "kolourpaint doesnotexist.png".
|
|
137 |
// This key does not exist for documents from URLs.
|
|
138 |
#define kpSessionSettingNotFromUrlDocumentSize QString::fromLatin1 ("Session Not-From-Url Document Size")
|
|
139 |
||
140 |
||
141 |
#endif // KP_DEFS_H |
|
1261
by Clarence Dang
Merge /branches/work/~dang/kdegraphics/kolourpaint/ -r651231(branch base):651305 to be up-to-date. The changes were massive but non-functional: |
142 |
|
143 |
||
1478
by Clarence Dang
Proper way of renaming from "kolourpaint" to "kolourpaint4": change internal KAboutData name. |
144 |