TSP Solver and Generator
defaults.h
Go to the documentation of this file.
1 
28 #ifndef DEFAULTS_H
29 #define DEFAULTS_H
30 
32 #define DEF_NUM_CITIES 5
33 
35 
37 #define DEF_AUTOSIZE true
38 #define DEF_SAVE_LAST_USED true
40 
44 #ifdef Q_OS_WINCE_WM
45 # define DEF_USE_NATIVE_DIALOGS false
46 #else
47 # define DEF_USE_NATIVE_DIALOGS true
48 #endif // Q_OS_WINCE_WM
49 #define DEF_SAVEPOS true
51 
55 #ifdef Q_OS_WIN32
56 # define DEF_USE_TRANSLUCENCY true
57 #else
58 # define DEF_USE_TRANSLUCENCY false
59 #endif
60 #define DEF_CHECK_FOR_UPDATES false
62 #define DEF_UPDATE_CHECK_INTERVAL 30
64 
66 
68 #define DEF_FRACTIONAL_ACCURACY 2
69 #define DEF_RAND_MIN 1
71 #define DEF_RAND_MAX 10
73 #define DEF_FRACTIONAL_RANDOM false
75 #define DEF_SYMMETRIC_MODE false
77 
79 
81 #define DEF_GENERATE_GRAPH true
82 #define DEF_GRAPH_IMAGE_FORMAT "png"
84 #define DEF_HQ_GRAPH false
86 #define DEF_EMBED_GRAPH_INTO_HTML false
88 
92 #ifdef Q_OS_BLACKBERRY
93 # define DEF_GRAPH_WIDTH 2.5
94 #else
95 # define DEF_GRAPH_WIDTH 4.5
96 #endif
97 #define DEF_SHOW_MATRIX true
99 #define DEF_USE_SHOW_MATRIX_LIMIT true
101 #define DEF_SHOW_MATRIX_LIMIT 15
103 #define DEF_SCROLL_TO_END false
105 #define DEF_FONT_FACE "DejaVu LGC Sans Mono"
107 
111 #ifdef Q_OS_SYMBIAN
112 # define DEF_FONT_SIZE 8
113 #elif defined(Q_OS_BLACKBERRY)
114 # define DEF_FONT_SIZE 7
115 #else
116 # define DEF_FONT_SIZE 10
117 #endif // Q_OS_SYMBIAN
118 
122 #ifdef Q_OS_BLACKBERRY
123 # define DEF_TEXT_COLOR Qt::black
124 #else
125 # define DEF_TEXT_COLOR QApplication::palette().color(QPalette::Text)
126 #endif
127 #define DEF_SELECTED_COLOR "#008000"
129 #define DEF_ALTERNATE_COLOR "#A00000"
131 #define DEF_TABLE_COLOR QApplication::palette().color(QPalette::AlternateBase)
133 //#define DEF_BACKGROUND_COLOR QApplication::palette().color(QPalette::Base)
135 
136 #ifndef QT_NO_PRINTER
137 # define DEF_PAGE_SIZE QPrinter::A4
139 # define DEF_PAGE_ORIENTATION QPrinter::Portrait
141 # define DEF_MARGIN_LEFT 25
143 # define DEF_MARGIN_TOP 15
145 # define DEF_MARGIN_RIGHT DEF_MARGIN_TOP
147 # define DEF_MARGIN_BOTTOM DEF_MARGIN_TOP
149 #endif
150 
151 #endif // DEFAULTS_H