src/config.h

changeset 184
fae3bc9ce319
parent 183
f1b8cb53d2a2
child 189
ac2d3e8dd110
equal deleted inserted replaced
183:f1b8cb53d2a2 184:fae3bc9ce319
25 // ============================================================================= 25 // =============================================================================
26 #include <QString> 26 #include <QString>
27 #include <qkeysequence.h> 27 #include <qkeysequence.h>
28 28
29 #define MAX_INI_LINE 512 29 #define MAX_INI_LINE 512
30 #define NUM_CONFIG (g_pConfigPointers.size ()) 30 #define NUM_CONFIG (g_configPointers.size ())
31 31
32 #define cfg(T, NAME, DEFAULT) \ 32 #define cfg(T, NAME, DEFAULT) \
33 T##config NAME (DEFAULT, #NAME, #T, #DEFAULT) 33 T##config NAME (DEFAULT, #NAME, #T, #DEFAULT)
34 34
35 #define extern_cfg(T, NAME) \ 35 #define extern_cfg(T, NAME) \
117 { \ 117 { \
118 value = defval = _defval; \ 118 value = defval = _defval; \
119 name = _name; \ 119 name = _name; \
120 typestring = _typestring; \ 120 typestring = _typestring; \
121 defaultstring = _defaultstring; \ 121 defaultstring = _defaultstring; \
122 g_pConfigPointers.push_back (this); \ 122 g_configPointers.push_back (this); \
123 } \ 123 } \
124 operator T () { \ 124 operator T () { \
125 return value; \ 125 return value; \
126 } \ 126 } \
127 configtype_e getType () { \ 127 configtype_e getType () { \

mercurial