Contains TSPSG global defines. More...
#include <QtCore>
#include <QtGui>
#include "version.h"
#include "os.h"
Go to the source code of this file.
Defines | |
#define | DEF_RAND_MIN 1 |
Default minimum for random numbers generation. | |
#define | DEF_RAND_MAX 10 |
Default maximum for random numbers generation. | |
#define | DEF_NUM_CITIES 5 |
Default number of cities. | |
#define | DEF_USE_NATIVE_DIALOGS true |
Default for "Use native file dialog". | |
#define | DEF_AUTOSIZE true |
Default for "Automatically resize rows and columns to their contents". | |
#define | DEF_SAVEPOS false |
Default for "Save main window state and position". | |
#define | DEF_FRACTIONAL_RANDOM false |
Default for "Fractional random values". | |
#define | DEF_SHOW_MATRIX true |
Default for "Show solution steps' matrices for every solution step". | |
#define | DEF_USE_SHOW_MATRIX_LIMIT true |
Default for "Show or hide solution steps' matrices based on number of cities in the task". | |
#define | DEF_SHOW_MATRIX_LIMIT 15 |
Default for "Maximum number of cities to show solution steps' matrices". | |
#define | DEF_SCROLL_TO_END true |
Default for "Scroll to the end of output after solving". | |
#define | DEF_FONT_FAMILY "Courier New" |
Default font name. | |
#define | DEF_FONT_SIZE 10 |
Default font size. | |
#define | DEF_FONT_COLOR Qt::black |
Default font color. | |
#define | MAX_NUM_CITIES 50 |
Maximum available number of cities. | |
#define | MAX_RAND_VALUE 1000 |
Maximum allowed value for random generation limits. | |
#define | PATH_I18N "i18n" |
Bath to internationalization files. | |
#define | PATH_DOCS "help" |
Bath to documentation files. | |
#define | TSPT quint32(0x54535054) |
TSPSG Task file signature - letters TSPT . | |
#define | TSPT_VERSION quint8(1) |
TSPSG Task file version. | |
#define | TSPT_META_VERSION quint8(1) |
TSPSG Task file metadata version. | |
#define | TSPT_META_SIZE 2 |
TSPSG Task file metadata size in bytes (incl. version). | |
#define | ZKT quint16(0x5A4B) |
ZKomModRd Task file signature - letters ZK . | |
#define | ZKT_VERSION quint8(1) |
ZKomModRd Task file version. | |
#define | INFINITY 1.7E+308 |
This value means infinity :-). | |
#define | INFSTR "---" |
This string represents infinite value in the table. | |
Functions | |
bool | isInteger (double x) |
Checks whether x contains an integer value. |
Contains TSPSG global defines.
TSPSG: TSP Solver and Generator
This file is part of TSPSG.
TSPSG is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
TSPSG is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with TSPSG. If not, see <http://www.gnu.org/licenses/>.
#define INFINITY 1.7E+308 |
This value means infinity :-).
Some libraries already have INFINITY
defined. We need to redefine it for the INFINITY
to always have the same value.
bool isInteger | ( | double | x | ) | [inline] |
Checks whether x contains an integer value.
x | A value to check. |
true
if x countains an integer, oherwise false
.