[2bbe924ad8] | 1 | /*! |
---|
| 2 | * \file defaults.h |
---|
[21c03af787] | 3 | * \author Copyright © 2007-2013 Oleksii Serdiuk <contacts[at]oleksii[dot]name> |
---|
[2bbe924ad8] | 4 | * |
---|
[7ba743d983] | 5 | * $Id: $Format:%h %ai %an$ $ |
---|
| 6 | * $URL: http://tspsg.info/ $ |
---|
[2bbe924ad8] | 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 |
---|
[ac76a6a753] | 38 | //! Default for "Remember last used directories" |
---|
| 39 | #define DEF_SAVE_LAST_USED true |
---|
[2bbe924ad8] | 40 | /*! |
---|
| 41 | * \def DEF_USE_NATIVE_DIALOGS |
---|
| 42 | * \brief Default for "Use native file dialog". |
---|
| 43 | */ |
---|
[89e5214692] | 44 | #ifdef Q_OS_WINCE_WM |
---|
[9eb63a1598] | 45 | # define DEF_USE_NATIVE_DIALOGS false |
---|
[2bbe924ad8] | 46 | #else |
---|
[9eb63a1598] | 47 | # define DEF_USE_NATIVE_DIALOGS true |
---|
[89e5214692] | 48 | #endif // Q_OS_WINCE_WM |
---|
[2bbe924ad8] | 49 | //! Default for "Save main window state and position" |
---|
| 50 | #define DEF_SAVEPOS true |
---|
[20e8115cee] | 51 | /*! |
---|
| 52 | * \def DEF_USE_TRANSLUCENCY |
---|
| 53 | * \brief Default for "Use translucency effects" |
---|
| 54 | */ |
---|
[89e5214692] | 55 | #ifdef Q_OS_WIN32 |
---|
[20e8115cee] | 56 | # define DEF_USE_TRANSLUCENCY true |
---|
| 57 | #else |
---|
| 58 | # define DEF_USE_TRANSLUCENCY false |
---|
| 59 | #endif |
---|
[f5c945d7ac] | 60 | //! Default for "Check for updates" |
---|
| 61 | #define DEF_CHECK_FOR_UPDATES false |
---|
| 62 | //! Default update check interval (in days) |
---|
| 63 | #define DEF_UPDATE_CHECK_INTERVAL 30 |
---|
[2bbe924ad8] | 64 | |
---|
| 65 | //////// TASK |
---|
| 66 | |
---|
| 67 | //! Default for "Accuracy of the fractional values" |
---|
| 68 | #define DEF_FRACTIONAL_ACCURACY 2 |
---|
| 69 | //! Default minimum for random numbers generation |
---|
| 70 | #define DEF_RAND_MIN 1 |
---|
| 71 | //! Default maximum for random numbers generation |
---|
| 72 | #define DEF_RAND_MAX 10 |
---|
| 73 | //! Default for "Fractional random values" |
---|
| 74 | #define DEF_FRACTIONAL_RANDOM false |
---|
| 75 | //! Default for "Symmetric tasks mode" |
---|
| 76 | #define DEF_SYMMETRIC_MODE false |
---|
| 77 | |
---|
| 78 | //////// OUTPUT |
---|
| 79 | |
---|
[8f2427aaf0] | 80 | //! Default for "Generate solution graph" |
---|
| 81 | #define DEF_GENERATE_GRAPH true |
---|
[2bbe924ad8] | 82 | //! Default for "Save solution graph as" |
---|
| 83 | #define DEF_GRAPH_IMAGE_FORMAT "png" |
---|
[e26679937d] | 84 | //! Default for "Draw solution graph in higher quality" |
---|
| 85 | #define DEF_HQ_GRAPH false |
---|
[8f2427aaf0] | 86 | //! Default for "Embed solution graph into HTML" |
---|
| 87 | #define DEF_EMBED_GRAPH_INTO_HTML false |
---|
| 88 | //! Default solution graph size in centimeters (HQ size is this size * HQ_FACTOR) |
---|
| 89 | #define DEF_GRAPH_WIDTH 4.5 |
---|
[2bbe924ad8] | 90 | //! Default for "Show solution steps' matrices for every solution step" |
---|
| 91 | #define DEF_SHOW_MATRIX true |
---|
| 92 | //! Default for "Show or hide solution steps' matrices based on number of cities in the task" |
---|
| 93 | #define DEF_USE_SHOW_MATRIX_LIMIT true |
---|
| 94 | //! Default for "Maximum number of cities to show solution steps' matrices" |
---|
| 95 | #define DEF_SHOW_MATRIX_LIMIT 15 |
---|
| 96 | //! Default for "Scroll to the end of output after solving" |
---|
| 97 | #define DEF_SCROLL_TO_END false |
---|
[7cd6da5021] | 98 | //! Default font face |
---|
| 99 | #define DEF_FONT_FACE "DejaVu LGC Sans Mono" |
---|
[2bbe924ad8] | 100 | /*! |
---|
| 101 | * \def DEF_FONT_SIZE |
---|
| 102 | * \brief Default font size |
---|
| 103 | */ |
---|
[89e5214692] | 104 | #ifdef Q_OS_SYMBIAN |
---|
[9eb63a1598] | 105 | # define DEF_FONT_SIZE 8 |
---|
[2bbe924ad8] | 106 | #else |
---|
[9eb63a1598] | 107 | # define DEF_FONT_SIZE 10 |
---|
[89e5214692] | 108 | #endif // Q_OS_SYMBIAN |
---|
[a09f31733a] | 109 | //! Default solution text color |
---|
[83e07f7194] | 110 | #define DEF_TEXT_COLOR QApplication::palette().color(QPalette::Text) |
---|
[2bbe924ad8] | 111 | //! Default selected candidate color |
---|
[0a4e16b182] | 112 | #define DEF_SELECTED_COLOR "#008000" |
---|
[2bbe924ad8] | 113 | //! Default alternate candidate color |
---|
[0a4e16b182] | 114 | #define DEF_ALTERNATE_COLOR "#A00000" |
---|
| 115 | //! Default table border color |
---|
[83e07f7194] | 116 | #define DEF_TABLE_COLOR QApplication::palette().color(QPalette::AlternateBase) |
---|
[c8ed26ddf1] | 117 | ////! Default solution background color |
---|
[83e07f7194] | 118 | //#define DEF_BACKGROUND_COLOR QApplication::palette().color(QPalette::Base) |
---|
[2bbe924ad8] | 119 | |
---|
[a885c3d9d2] | 120 | #ifndef QT_NO_PRINTER |
---|
[3487003f06] | 121 | //! Default page size for printing |
---|
[a885c3d9d2] | 122 | # define DEF_PAGE_SIZE QPrinter::A4 |
---|
[3487003f06] | 123 | //! Default page orientation for printing |
---|
[a885c3d9d2] | 124 | # define DEF_PAGE_ORIENTATION QPrinter::Portrait |
---|
[3487003f06] | 125 | //! Default left page margin for printing |
---|
[a885c3d9d2] | 126 | # define DEF_MARGIN_LEFT 25 |
---|
[3487003f06] | 127 | //! Default top page margin for printing |
---|
[a885c3d9d2] | 128 | # define DEF_MARGIN_TOP 15 |
---|
[3487003f06] | 129 | //! Default right page margin for printing |
---|
[a885c3d9d2] | 130 | # define DEF_MARGIN_RIGHT DEF_MARGIN_TOP |
---|
[3487003f06] | 131 | //! Default bottom page margin for printing |
---|
[a885c3d9d2] | 132 | # define DEF_MARGIN_BOTTOM DEF_MARGIN_TOP |
---|
| 133 | #endif |
---|
| 134 | |
---|
[2bbe924ad8] | 135 | #endif // DEFAULTS_H |
---|