- Timestamp:
- Oct 20, 2009, 11:40:16 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 *.sln 6 6 *.suo 7 *.vcproj* 7 *.user 8 *.vcproj 8 9 Makefile* 9 10 debug
-
- Property svn:ignore
-
trunk/src/globals.h
r58 r64 25 25 #define GLOBALS_H 26 26 27 /*! 28 * \file globals.h 29 * \brief This file contains TSPSG global defines. 30 */ 31 27 32 // INCLUDES 28 33 #include <QtCore> … … 36 41 // DEFINES 37 42 // Default values 43 //! Default minimum for random numbers generation 38 44 #define DEF_RAND_MIN 1 45 //! Default maximum for random numbers generation 39 46 #define DEF_RAND_MAX 10 47 //! Default number of cities 40 48 #define DEF_NUM_CITIES 5 49 //! Default font name 41 50 #define DEF_FONT_FAMILY "Courier New" 51 //! Default font size 42 52 #define DEF_FONT_SIZE 10 53 //! Default font color 43 54 #define DEF_FONT_COLOR Qt::black 44 55 45 // Maximum available number of cities56 //! Maximum available number of cities 46 57 #define MAX_NUM_CITIES 30 47 // Maximum allowed value for random generation limits58 //! Maximum allowed value for random generation limits 48 59 #define MAX_RAND_VALUE 1000 49 60 50 61 // Paths 62 /*! 63 * \def PATH_I18N 64 * \brief Bath to internationalization files. 65 */ 66 /*! 67 * \def PATH_DOCS 68 * \brief Bath to documentation files. 69 */ 51 70 #if defined(Q_OS_LINUX) || defined(Q_OS_UNIX) 52 71 #define PATH_I18N "/usr/share/tspsg/i18n" … … 57 76 #endif // Q_OS_LINUX 58 77 59 // TSPSG Task file signature - lettersTSPT78 //! TSPSG Task file signature - letters \p TSPT 60 79 #define TSPT quint32(0x54535054) 61 // TSPSG Task file version80 //! TSPSG Task file version 62 81 #define TSPT_VERSION quint8(1) 63 // TSPSG Task file metadata version82 //! TSPSG Task file metadata version 64 83 #define TSPT_META_VERSION quint8(1) 65 // TSPSG Task file metadata size in bytes (incl. version)84 //! TSPSG Task file metadata size in bytes (incl. version) 66 85 #define TSPT_META_SIZE 2 67 // ZKomModRd Task file signature - lettersZK86 //! ZKomModRd Task file signature - letters \p ZK 68 87 #define ZKT quint16(0x5A4B) 69 // ZKomModRd Task file version88 //! ZKomModRd Task file version 70 89 #define ZKT_VERSION quint8(1) 71 90 72 // This value means infinity :-) 73 #ifndef INFINITY 74 #define INFINITY 1.7E+308 91 // Some libraries already have INFINITY defined. 92 // We need to undefine it for INFINITY to have always the same value. 93 #ifdef INFINITY 94 #undef INFINITY 75 95 #endif 76 // This is string, which represents infinite value in table 96 //! This value means infinity :-) 97 #define INFINITY 1.7E+308 98 //! This string represents infinite value in the table 77 99 #define INFSTR "---" 78 100 101 // Sanity checks 79 102 // Check that default number of cities is sane (<= MAX_NUM_CITIES) 80 103 #if DEF_NUM_CITIES > MAX_NUM_CITIES -
trunk/src/mainwindow.h
r57 r64 26 26 27 27 #include "globals.h" 28 28 29 #include "ui_mainwindow.h" 29 30 #include "settingsdialog.h" 31 30 32 #include "tspsolver.h" 31 33 #include "tspmodel.h" -
trunk/src/os.h
r56 r64 26 26 27 27 // Some target arch detection. 28 // NOTE: Only for GNU C, Visual Studio, Intel C/C++ and MinGW32 compilers 28 /*! 29 * \def ARCH 30 * \brief The target CPU architecture TSPSG was built for. 31 * \warning NOTE: Only for GNU C, Visual Studio, Intel C/C++ and MinGW32 compilers. 32 */ 29 33 #if defined(__amd64__) || defined(_M_X64) 30 34 #define ARCH " (AMD 64-bit)" … … 44 48 45 49 // Target OS detection. Done by Qt, so should work with any compiler. 50 /*! 51 * \def OS 52 * \brief The target operating system TSPSG was built for. 53 */ 54 /*! 55 * \def OSID 56 * \brief The target operating system ID. 57 * 58 * This value is used in task file metadata. 59 */ 46 60 #ifdef Q_OS_AIX 47 61 #define OS "AIX"ARCH -
trunk/src/resource.h
r42 r64 7 7 * 8 8 * This file is part of TSPSG. 9 * 10 * TSPSG is free software: you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation, either version 3 of the License, or 13 * (at your option) any later version. 14 * 15 * TSPSG is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with TSPSG. If not, see <http://www.gnu.org/licenses/>. 9 22 */ 10 23 -
trunk/src/settingsdialog.h
r57 r64 26 26 27 27 #include "globals.h" 28 28 29 #include "ui_settingsdialog.h" 29 30 -
trunk/src/tspsolver.cpp
r63 r64 23 23 24 24 #include "tspsolver.h" 25 #include "tspmodel.h"26 25 27 26 CTSPSolver::CTSPSolver() -
trunk/src/tspsolver.h
r63 r64 26 26 27 27 #include "globals.h" 28 29 #include "tspmodel.h" 28 30 29 31 typedef QList<QList<double> > tMatrix; -
trunk/src/version.h
r63 r64 1 /* 2 * TSPSG: TSP Solver and Generator 3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 1 /*! \mainpage 2 * 3 * <b>TSPSG: TSP Solver and Generator</b> 4 * \author Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 5 * 5 6 * $Id$ … … 25 26 #define VERSION_H 26 27 28 /*! 29 * \file version.h 30 * \brief This file contains TSPSG version information defines. 31 */ 32 33 //! TSPSG version ID 27 34 #define VERSIONID "$Id$" 35 //! Major version of current TSPSG build 28 36 #define BUILD_VERSION_MAJOR 0 37 //! Minor version of current TSPSG build 29 38 #define BUILD_VERSION_MINOR 1 39 //! TSPSG release number 30 40 #define BUILD_RELEASE 2 31 // This will only change on releases and will be the same as revision number 41 42 /*! 43 * \brief Current TSPSG build number 44 * 45 * This will only change on releases and will be the same as revision number. 46 * 47 * Build number meanings: 48 * - 1 -- 3: alpha 1 to 3 49 * - 4 -- 7: beta 1 to 4 50 * - 8 -- 10: rc 1 to 3 51 * - 11 --...: release 1 to ... 52 */ 32 53 #define BUILD_NUMBER 65535 33 // Release number meanings: 34 // 1 -- 3: alpha 1 to 3 35 // 4 -- 7: beta 1 to 4 36 // 8 -- 10: rc 1 to 3 37 // 11 --...: release 1 to ... 54 55 /*! 56 * \def BUILD_STATUS 57 * \brief TSPSG build status 58 * 59 * Determined based on BUILD_NUMBER. 60 */ 38 61 #if BUILD_NUMBER == 65535 39 62 #define BUILD_STATUS (dev build) … … 46 69 #endif // BUILD_NUMBER == 65535 47 70 48 // "Converting"x to quoted string71 //! Used for "conversion" of \a x to quoted string 49 72 #define QUOTE_X(x) #x 50 73 #define QUOTE(x) QUOTE_X(x) 51 74 75 /*! 76 * \def BUILD_VERSION 77 * \brief Full version of TSPSG in the form: \a major.\a minor.\a release [\a status]. 78 */ 52 79 #ifndef BUILD_STATUS 53 80 #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE)
Note: See TracChangeset
for help on using the changeset viewer.