1 /*
2     PPDefines.h
3 
4     Copyright 2013-2018,2020 Josh Freeman
5     http://www.twilightedge.com
6 
7     This file is part of PikoPixel for Mac OS X and GNUstep.
8     PikoPixel is a graphical application for drawing & editing pixel-art images.
9 
10     PikoPixel is free software: you can redistribute it and/or modify it under
11     the terms of the GNU Affero General Public License as published by the
12     Free Software Foundation, either version 3 of the License, or (at your
13     option) any later version approved for PikoPixel by its copyright holder (or
14     an authorized proxy).
15 
16     PikoPixel is distributed in the hope that it will be useful, but WITHOUT ANY
17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18     FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19     details.
20 
21     You should have received a copy of the GNU Affero General Public License
22     along with this program. If not, see <http://www.gnu.org/licenses/>.
23 */
24 
25 
26 #define kNativeFileFormatTypeName       @"PikoPixel Document"
27 
28 #define kDefaultCanvasDimension         64
29 
30 #define kMinCanvasDimension             1
31 #define kMaxCanvasDimension             3000
32 
33 #define kMinCanvasZoomFactor            1.0f
34 #define kMaxCanvasZoomFactor            40.0f
35 
36 #define kMaxCanvasExportDimension       9000
37 
38 #define kMaxLayersPerDocument           128
39 
40 #define kMinScalingFactorToDrawGrid     4
41 
42 #define kMinBackgroundPatternSize       1
43 #define kMaxBackgroundPatternSize       128
44 
45 #define kMinGridGuidelineSpacing        1
46 #define kMaxGridGuidelineSpacing        kMaxCanvasDimension
47 
48 #define kAutosaveDelay                  23.0f
49 
50 #define kDefaultKeyboardLayoutLanguageCode          @"en_US"
51 
52 #define kMatchToolToleranceIndicator_MaxRadius      445
53 
54 #define kScalingFactorForThumbnailBackgroundPatternSize     0.25f
55 
56 #define kMaxScaleForHighInterpolationOfThumbnailImages      0.25f
57 #define kMaxScaleForLowInterpolationOfThumbnailImages       2.0f
58