Changeset 2fb523720a in tspsg for src/globals.h


Ignore:
Timestamp:
Aug 23, 2009, 1:26:42 AM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
5a81a64d74
Parents:
281303f1f7
Message:

+ Created installation (INSTALLS and DEPLOYMENT) entries for *nix, windows and wince platforms in tspsg.pro file. Now qmake generates install rules in Makefile.
+ Automatic resize of columns after their content changes can be turned on/off in settings now.

  • Different search path for translations on different platforms.
  • Updated translations.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/globals.h

    r281303f1f7 r2fb523720a  
    4343#define DEF_FONT_COLOR Qt::black
    4444
     45// Maximum available number of cities
     46#define MAX_NUM_CITIES 30
     47// Maximum for random generation limit settings
     48#define MAX_RAND_VALUE 1000
     49
     50// Paths
     51#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
     52        #define PATH_I18N "/usr/share/tspsg/i18n"
     53        #define PATH_DOCS "/usr/share/doc/tspsg"
     54#else
     55        #define PATH_I18N "i18n"
     56        #define PATH_DOCS "help"
     57#endif // Q_OS_LINUX
     58
    4559// TSPSG Task file signature - letters TSPT
    4660#define TSPT quint32(0x54535054)
     
    5670#define ZKT_VERSION quint8(1)
    5771
    58 // Maximum available number of cities
    59 #define MAX_NUM_CITIES 30
    6072// This value means infinity :-)
    6173#ifndef INFINITY
     
    6577#define INFSTR "---"
    6678
    67 // Let's check that default number of cities is sane (<= MAX_NUM_CITIES)
     79// Check that default number of cities is sane (<= MAX_NUM_CITIES)
    6880#if DEF_NUM_CITIES > MAX_NUM_CITIES
    6981        #undef DEF_NUM_CITIES
    7082        #define DEF_NUM_CITIES MAX_NUM_CITIES
    7183#endif
     84// Check that maximum for random generation is sane (<= MAX_RAND_VALUE)
     85#if DEF_RAND_MAX > MAX_RAND_VALUE
     86        #undef DEF_RAND_MAX
     87        #define DEF_RAND_MAX MAX_RAND_VALUE
     88#endif
     89// Check that DEF_RAND_MIN <= DEF_RAND_MAX
     90#if DEF_RAND_MIN > DEF_RAND_MAX
     91        #undef DEF_RAND_MIN
     92        #define DEF_RAND_MIN DEF_RAND_MAX
     93#endif
    7294
    7395#endif // GLOBALS_H
Note: See TracChangeset for help on using the changeset viewer.