source: tspsg/src/defaults.h @ 1757eb594b

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 1757eb594b was 1757eb594b, checked in by Oleksii Serdiuk, 14 years ago

+ Added Fractional accuracy (in decimail places) to settings.
+ Created defaults.h file. Moved all default defines there.

  • Replaced all double types with qreal.
  • Replaced all calls to trUtf8() with tr() as we use setCodecForTr() to set UTF-8 encoding as default and tr() is enough.
  • Replaced all 2009 with 2010 in copyrights.
  • Fixed an error when loading .zkt file with less than 5 cities.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1/*!
2 * \file defaults.h
3 * \author Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
4 *
5 *  $Id$
6 *  $URL$
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//! Default for "Automatically resize rows and columns to their contents"
36#define DEF_AUTOSIZE true
37/*!
38 * \def DEF_USE_NATIVE_DIALOGS
39 * \brief Default for "Use native file dialog".
40 */
41#ifdef Q_OS_WINCE
42        #define DEF_USE_NATIVE_DIALOGS false
43#else
44        #define DEF_USE_NATIVE_DIALOGS true
45#endif // Q_OS_WINCE
46//! Default for "Save main window state and position"
47#define DEF_SAVEPOS false
48
49//////// TASK
50//! Default for "Accuracy of the fractional values"
51#define DEF_FRACTIONAL_ACCURACY 2
52//! Default minimum for random numbers generation
53#define DEF_RAND_MIN 1
54//! Default maximum for random numbers generation
55#define DEF_RAND_MAX 10
56//! Default for "Fractional random values"
57#define DEF_FRACTIONAL_RANDOM false
58
59//////// OUTPUT
60//! Default for "Show solution steps' matrices for every solution step"
61#define DEF_SHOW_MATRIX true
62//! Default for "Show or hide solution steps' matrices based on number of cities in the task"
63#define DEF_USE_SHOW_MATRIX_LIMIT true
64//! Default for "Maximum number of cities to show solution steps' matrices"
65#define DEF_SHOW_MATRIX_LIMIT 15
66//! Default for "Scroll to the end of output after solving"
67#define DEF_SCROLL_TO_END true
68/*!
69 * \def DEF_FON_FAMILY
70 * \brief Default font name.
71 */
72#ifdef Q_OS_WINCE
73        #define DEF_FONT_FAMILY "Tahoma"
74#else
75        #define DEF_FONT_FAMILY "Courier New"
76#endif
77//! Default font size
78#define DEF_FONT_SIZE 10
79//! Default font color
80#define DEF_FONT_COLOR Qt::black
81
82#endif // DEFAULTS_H
Note: See TracBrowser for help on using the repository browser.