source: tspsg-svn/trunk/src/defaults.h @ 146

Last change on this file since 146 was 141, checked in by laleppa, 14 years ago

+ Added support for Simulator from Nokia Qt SDK

  • Made some Maemo related tweaks
  • Removed ids for unsupported OSs from os.h (i.e., MSDOS, OS/2)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id URL
File size: 3.2 KB
Line 
1/*!
2 * \file defaults.h
3 * \author Copyright &copy; 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
4 *
5 *  $Id: defaults.h 141 2010-10-03 12:01:00Z laleppa $
6 *  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/defaults.h $
7 *
8 * \brief Contains TSPSG defaults.
9 *
10 *  <b>TSPSG: TSP Solver and Generator</b>
11 *
12 *  This file is part of TSPSG.
13 *
14 *  TSPSG is free software: you can redistribute it and/or modify
15 *  it under the terms of the GNU General Public License as published by
16 *  the Free Software Foundation, either version 3 of the License, or
17 *  (at your option) any later version.
18 *
19 *  TSPSG is distributed in the hope that it will be useful,
20 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 *  GNU General Public License for more details.
23 *
24 *  You should have received a copy of the GNU General Public License
25 *  along with TSPSG.  If not, see <http://www.gnu.org/licenses/>.
26 */
27
28#ifndef DEFAULTS_H
29#define DEFAULTS_H
30
31//! Default number of cities
32#define DEF_NUM_CITIES 5
33
34//////// GENERAL
35
36//! Default for "Automatically resize rows and columns to their contents"
37#define DEF_AUTOSIZE true
38//! Default for "Remember last used directories"
39#define DEF_SAVE_LAST_USED true
40/*!
41 * \def DEF_USE_NATIVE_DIALOGS
42 * \brief Default for "Use native file dialog".
43 */
44#ifdef Q_WS_WINCE_WM
45        #define DEF_USE_NATIVE_DIALOGS false
46#else
47        #define DEF_USE_NATIVE_DIALOGS true
48#endif // Q_WS_WINCE_WM
49//! Default for "Save main window state and position"
50#define DEF_SAVEPOS true
51//! Default for "Use translucency effects in Vista/7"
52#define DEF_USE_TRANSLUCENCY true
53//! Default for "Check for updates"
54#define DEF_CHECK_FOR_UPDATES false
55//! Default update check interval (in days)
56#define DEF_UPDATE_CHECK_INTERVAL 30
57
58//////// TASK
59
60//! Default for "Accuracy of the fractional values"
61#define DEF_FRACTIONAL_ACCURACY 2
62//! Default minimum for random numbers generation
63#define DEF_RAND_MIN 1
64//! Default maximum for random numbers generation
65#define DEF_RAND_MAX 10
66//! Default for "Fractional random values"
67#define DEF_FRACTIONAL_RANDOM false
68//! Default for "Symmetric tasks mode"
69#define DEF_SYMMETRIC_MODE false
70
71//////// OUTPUT
72
73//! Default for "Show solution graph"
74#define DEF_SHOW_GRAPH true
75//! Default for "Save solution graph as"
76#define DEF_GRAPH_IMAGE_FORMAT "png"
77//! Default for "Draw solution graph in higher quality"
78#define DEF_HQ_GRAPH false
79//! Default for "Show solution steps' matrices for every solution step"
80#define DEF_SHOW_MATRIX true
81//! Default for "Show or hide solution steps' matrices based on number of cities in the task"
82#define DEF_USE_SHOW_MATRIX_LIMIT true
83//! Default for "Maximum number of cities to show solution steps' matrices"
84#define DEF_SHOW_MATRIX_LIMIT 15
85//! Default for "Scroll to the end of output after solving"
86#define DEF_SCROLL_TO_END false
87//! Default font face
88#define DEF_FONT_FACE "DejaVu LGC Sans Mono"
89/*!
90 * \def DEF_FONT_SIZE
91 * \brief Default font size
92 */
93#ifdef Q_WS_S60
94        #define DEF_FONT_SIZE 8
95#else
96        #define DEF_FONT_SIZE 10
97#endif // Q_WS_S60
98//! Default text color
99#define DEF_TEXT_COLOR QPalette().color(QPalette::Text)
100//! Default selected candidate color
101#define DEF_SELECTED_COLOR QColor(0x008000)
102//! Default alternate candidate color
103#define DEF_ALTERNATE_COLOR QColor(0xA00000)
104
105#endif // DEFAULTS_H
Note: See TracBrowser for help on using the repository browser.