Changeset 87 in tspsg-svn for trunk/src/globals.h
- Timestamp:
- Jan 12, 2010, 3:11:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/globals.h
r82 r87 1 1 /*! 2 2 * \file globals.h 3 * \author Copyright (C) 2007-20 09Lёppa <contacts[at]oleksii[dot]name>3 * \author Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 37 37 // OS and ARCH detection 38 38 #include "os.h" 39 // TSPSG Defaults 40 #include "defaults.h" 39 41 40 42 // DEFINES 41 // Default values42 //! Default minimum for random numbers generation43 #define DEF_RAND_MIN 144 //! Default maximum for random numbers generation45 #define DEF_RAND_MAX 1046 //! Default number of cities47 #define DEF_NUM_CITIES 548 /*!49 * \def DEF_USE_NATIVE_DIALOGS50 * \brief Default for "Use native file dialog".51 */52 #ifdef Q_OS_WINCE53 #define DEF_USE_NATIVE_DIALOGS false54 #else55 #define DEF_USE_NATIVE_DIALOGS true56 #endif // Q_OS_WINCE57 //! Default for "Automatically resize rows and columns to their contents"58 #define DEF_AUTOSIZE true59 //! Default for "Save main window state and position"60 #define DEF_SAVEPOS false61 //! Default for "Fractional random values"62 #define DEF_FRACTIONAL_RANDOM false63 //! Default for "Show solution steps' matrices for every solution step"64 #define DEF_SHOW_MATRIX true65 //! Default for "Show or hide solution steps' matrices based on number of cities in the task"66 #define DEF_USE_SHOW_MATRIX_LIMIT true67 //! Default for "Maximum number of cities to show solution steps' matrices"68 #define DEF_SHOW_MATRIX_LIMIT 1569 //! Default for "Scroll to the end of output after solving"70 #define DEF_SCROLL_TO_END true71 //! Default font name72 #define DEF_FONT_FAMILY "Courier New"73 //! Default font size74 #define DEF_FONT_SIZE 1075 //! Default font color76 #define DEF_FONT_COLOR Qt::black77 78 43 //! Maximum available number of cities 79 44 #define MAX_NUM_CITIES 50 … … 131 96 * \return \c true if \a x countains an integer, oherwise \c false. 132 97 */ 133 inline bool isInteger( doublex)98 inline bool isInteger(qreal x) 134 99 { 135 doublei;100 qreal i; 136 101 return (modf(x, &i) == 0.0); 137 102 }
Note: See TracChangeset
for help on using the changeset viewer.