File indexing completed on 2024-03-24 04:23:18
0001 0002 /* 0003 Copyright (c) 2003-2007 Clarence Dang <dang@kde.org> 0004 All rights reserved. 0005 0006 Redistribution and use in source and binary forms, with or without 0007 modification, are permitted provided that the following conditions 0008 are met: 0009 0010 1. Redistributions of source code must retain the above copyright 0011 notice, this list of conditions and the following disclaimer. 0012 2. Redistributions in binary form must reproduce the above copyright 0013 notice, this list of conditions and the following disclaimer in the 0014 documentation and/or other materials provided with the distribution. 0015 0016 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 0017 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 0018 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 0019 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 0020 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 0021 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 0022 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 0023 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0024 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 0025 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0026 */ 0027 0028 0029 #ifndef KP_DEFS_H 0030 #define KP_DEFS_H 0031 0032 0033 #include <limits.h> 0034 0035 #include <QPoint> 0036 #include <QSize> 0037 #include <QString> 0038 0039 0040 // approx. 2896x2896x32bpp or 3344x3344x24bpp (TODO: 24==32?) or 4096*4096x16bpp 0041 #define KP_BIG_IMAGE_SIZE (32 * 1048576) 0042 0043 0044 #define KP_INVALID_POINT QPoint (INT_MIN / 8, INT_MIN / 8) 0045 #define KP_INVALID_WIDTH (INT_MIN / 8) 0046 #define KP_INVALID_HEIGHT (INT_MIN / 8) 0047 #define KP_INVALID_SIZE QSize (INT_MIN / 8, INT_MIN / 8) 0048 0049 0050 #define KP_INCHES_PER_METER (100 / 2.54) 0051 #define KP_MILLIMETERS_PER_INCH 25.4 0052 0053 0054 // 0055 // Settings 0056 // 0057 0058 #define kpSettingsGroupRecentFiles "Recent Files" 0059 0060 #define kpSettingsGroupGeneral "General Settings" 0061 #define kpSettingFirstTime "First Time" 0062 #define kpSettingShowGrid "Show Grid" 0063 #define kpSettingShowPath "Show Path" 0064 #define kpSettingDrawAntiAliased "Draw AntiAliased" 0065 #define kpSettingColorSimilarity "Color Similarity" 0066 #define kpSettingDitherOnOpen "Dither on Open if Screen is 15/16bpp and Image Num Colors More Than" 0067 #define kpSettingPrintImageCenteredOnPage "Print Image Centered On Page" 0068 #define kpSettingOpenImagesInSameWindow "Open Images in the Same Window" 0069 0070 #define kpSettingsGroupFileSaveAs "File/Save As" 0071 #define kpSettingsGroupFileExport "File/Export" 0072 #define kpSettingsGroupEditCopyTo "Edit/Copy To" 0073 0074 #define kpSettingForcedMimeType "Forced MimeType" 0075 #define kpSettingForcedColorDepth "Forced Color Depth" 0076 #define kpSettingForcedDither "Forced Dither" 0077 #define kpSettingForcedQuality "Forced Quality" 0078 0079 #define kpSettingLastDocSize "Last Document Size" 0080 0081 #define kpSettingMoreEffectsLastEffect "More Effects - Last Effect" 0082 0083 #define kpSettingsGroupUndoRedo "Undo/Redo Settings" 0084 #define kpSettingUndoMinLimit "Min Limit" 0085 #define kpSettingUndoMaxLimit "Max Limit" 0086 #define kpSettingUndoMaxLimitSizeLimit "Max Limit Size Limit" 0087 0088 0089 #define kpSettingsGroupThumbnail "Thumbnail Settings" 0090 #define kpSettingThumbnailShown "Shown" 0091 #define kpSettingThumbnailGeometry "Geometry" 0092 #define kpSettingThumbnailZoomed "Zoomed" 0093 #define kpSettingThumbnailShowRectangle "ShowRectangle" 0094 0095 0096 #define kpSettingsGroupPreviewSave "Save Preview Settings" 0097 #define kpSettingPreviewSaveGeometry "Geometry" 0098 #define kpSettingPreviewSaveUpdateDelay "Update Delay" 0099 0100 0101 #define kpSettingsGroupTools "Tool Settings" 0102 #define kpSettingLastTool "Last Used Tool" 0103 #define kpSettingToolBoxIconSize "Tool Box Icon Size" 0104 0105 0106 #define kpSettingsGroupText "Text Settings" 0107 #define kpSettingFontFamily "Font Family" 0108 #define kpSettingFontSize "Font Size" 0109 #define kpSettingBold "Bold" 0110 #define kpSettingItalic "Italic" 0111 #define kpSettingUnderline "Underline" 0112 #define kpSettingStrikeThru "Strike Thru" 0113 0114 0115 #define kpSettingsGroupFlattenEffect "Flatten Effect Settings" 0116 #define kpSettingFlattenEffectColor1 "Color1" 0117 #define kpSettingFlattenEffectColor2 "Color2" 0118 0119 0120 // 0121 // Session Restore Setting 0122 // 0123 0124 // URL of the document in the main window. 0125 // 0126 // This key only exists if the document does. If it exists, it can be empty. 0127 // The URL need not point to a file that exists e.g. "kolourpaint doesnotexist.png". 0128 #define kpSessionSettingDocumentUrl QString::fromLatin1 ("Session Document Url") 0129 0130 // The size of a document which is not from a URL e.g. "kolourpaint doesnotexist.png". 0131 // This key does not exist for documents from URLs. 0132 #define kpSessionSettingNotFromUrlDocumentSize QString::fromLatin1 ("Session Not-From-Url Document Size") 0133 0134 0135 #endif // KP_DEFS_H 0136 0137