[87] | 1 | /*! |
---|
| 2 | * \file defaults.h |
---|
[97] | 3 | * \author Copyright © 2007-2010 Lёppa <contacts[at]oleksii[dot]name> |
---|
[87] | 4 | * |
---|
| 5 | * $Id: defaults.h 109 2010-04-27 07:12:55Z 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 |
---|
[100] | 35 | |
---|
[87] | 36 | //! Default for "Automatically resize rows and columns to their contents" |
---|
| 37 | #define DEF_AUTOSIZE true |
---|
| 38 | /*! |
---|
| 39 | * \def DEF_USE_NATIVE_DIALOGS |
---|
| 40 | * \brief Default for "Use native file dialog". |
---|
| 41 | */ |
---|
| 42 | #ifdef Q_OS_WINCE |
---|
| 43 | #define DEF_USE_NATIVE_DIALOGS false |
---|
| 44 | #else |
---|
| 45 | #define DEF_USE_NATIVE_DIALOGS true |
---|
| 46 | #endif // Q_OS_WINCE |
---|
| 47 | //! Default for "Save main window state and position" |
---|
[95] | 48 | #define DEF_SAVEPOS true |
---|
[92] | 49 | //! Default for "Use translucency effects in Vista/7" |
---|
| 50 | #define DEF_USE_TRANSLUCENCY true |
---|
[87] | 51 | |
---|
| 52 | //////// TASK |
---|
[100] | 53 | |
---|
[87] | 54 | //! Default for "Accuracy of the fractional values" |
---|
| 55 | #define DEF_FRACTIONAL_ACCURACY 2 |
---|
| 56 | //! Default minimum for random numbers generation |
---|
| 57 | #define DEF_RAND_MIN 1 |
---|
| 58 | //! Default maximum for random numbers generation |
---|
| 59 | #define DEF_RAND_MAX 10 |
---|
| 60 | //! Default for "Fractional random values" |
---|
| 61 | #define DEF_FRACTIONAL_RANDOM false |
---|
[95] | 62 | //! Default for "Symmetric tasks mode" |
---|
| 63 | #define DEF_SYMMETRIC_MODE false |
---|
[87] | 64 | |
---|
| 65 | //////// OUTPUT |
---|
[100] | 66 | |
---|
[107] | 67 | //! Default for "Show solution graph" |
---|
| 68 | #define DEF_SHOW_GRAPH true |
---|
[109] | 69 | /*! |
---|
| 70 | * \def DEF_GRAPH_IMAGE_FORMAT |
---|
| 71 | * \brief Default for "Save solution graph as" |
---|
| 72 | */ |
---|
| 73 | #if !defined(NOSVG) && (QT_VERSION >= 0x040500) |
---|
| 74 | #define DEF_GRAPH_IMAGE_FORMAT "svg" |
---|
| 75 | #else |
---|
| 76 | #define DEF_GRAPH_IMAGE_FORMAT "png" |
---|
| 77 | #endif // NOSVG && QT_VERSION >= 0x040500 |
---|
[87] | 78 | //! Default for "Show solution steps' matrices for every solution step" |
---|
| 79 | #define DEF_SHOW_MATRIX true |
---|
| 80 | //! Default for "Show or hide solution steps' matrices based on number of cities in the task" |
---|
| 81 | #define DEF_USE_SHOW_MATRIX_LIMIT true |
---|
| 82 | //! Default for "Maximum number of cities to show solution steps' matrices" |
---|
| 83 | #define DEF_SHOW_MATRIX_LIMIT 15 |
---|
| 84 | //! Default for "Scroll to the end of output after solving" |
---|
[95] | 85 | #define DEF_SCROLL_TO_END false |
---|
[87] | 86 | /*! |
---|
[94] | 87 | * \def DEF_FONT_FAMILY |
---|
[87] | 88 | * \brief Default font name. |
---|
| 89 | */ |
---|
[100] | 90 | #ifdef Q_OS_WINCE_WM |
---|
[87] | 91 | #define DEF_FONT_FAMILY "Tahoma" |
---|
| 92 | #else |
---|
| 93 | #define DEF_FONT_FAMILY "Courier New" |
---|
[100] | 94 | #endif // Q_OS_WINCE_WM |
---|
[93] | 95 | /*! |
---|
| 96 | * \def DEF_FONT_SIZE |
---|
| 97 | * \brief Default font size |
---|
| 98 | */ |
---|
| 99 | #ifdef Q_OS_SYMBIAN |
---|
| 100 | #define DEF_FONT_SIZE 8 |
---|
| 101 | #else |
---|
| 102 | #define DEF_FONT_SIZE 10 |
---|
| 103 | #endif // Q_OS_SYMBIAN |
---|
[104] | 104 | //! Default text color |
---|
| 105 | #define DEF_TEXT_COLOR QPalette().color(QPalette::Text) |
---|
| 106 | //! Default selected candidate color |
---|
| 107 | #define DEF_SELECTED_COLOR QColor(0x008000) |
---|
| 108 | //! Default alternate candidate color |
---|
| 109 | #define DEF_ALTERNATE_COLOR QColor(0xA00000) |
---|
[87] | 110 | |
---|
| 111 | #endif // DEFAULTS_H |
---|