69
Get the value assigned to the specified key. If the key does
70
not exist then -1 is returned.
72
@param key The key of the setting to lookup
73
@return The integer value of the setting
75
int getInt(const string& key) const;
78
Get the value assigned to the specified key. If the key does
79
not exist then -1.0 is returned.
81
@param key The key of the setting to lookup
82
@return The floating point value of the setting
84
float getFloat(const string& key) const;
87
Get the value assigned to the specified key. If the key does
88
not exist then false is returned.
90
@param key The key of the setting to lookup
91
@return The boolean value of the setting
93
bool getBool(const string& key) const;
96
Get the value assigned to the specified key. If the key does
97
not exist then the empty string is returned.
99
@param key The key of the setting to lookup
100
@return The string value of the setting
102
const string& getString(const string& key) const;
105
Get the x*y size assigned to the specified key. If the key does
106
not exist (or is invalid) then results are -1 for each item.
108
@param key The key of the setting to lookup
109
@return The x and y values encoded in the key
111
void getSize(const string& key, int& x, int& y) const;
114
Set the value associated with key to the given value.
116
@param key The key of the setting
117
@param value The value to assign to the setting
119
void setInt(const string& key, const int value);
122
Set the value associated with key to the given value.
124
@param key The key of the setting
125
@param value The value to assign to the setting
127
void setFloat(const string& key, const float value);
130
Set the value associated with key to the given value.
132
@param key The key of the setting
133
@param value The value to assign to the setting
135
void setBool(const string& key, const bool value);
138
Set the value associated with key to the given value.
140
@param key The key of the setting
141
@param value The value to assign to the setting
143
void setString(const string& key, const string& value);
146
Set the value associated with key to the given value.
148
@param key The key of the setting
149
@param value The value to assign to the setting
151
void setSize(const string& key, const int value1, const int value2);
70
Get the value assigned to the specified key.
72
@param key The key of the setting to lookup
73
@return The (variant) value of the setting
75
const Variant& value(const string& key) const;
78
Set the value associated with the specified key.
80
@param key The key of the setting
81
@param value The (variant) value to assign to the setting
83
void setValue(const string& key, const Variant& value);
86
Convenience methods to return specific types.
88
@param key The key of the setting to lookup
89
@return The specific type value of the setting
91
int getInt(const string& key) const { return value(key).toInt(); }
92
float getFloat(const string& key) const { return value(key).toFloat(); }
93
bool getBool(const string& key) const { return value(key).toBool(); }
94
const string& getString(const string& key) const { return value(key).toString(); }
95
const GUI::Size getSize(const string& key) const { return value(key).toSize(); }
199
143
int getExternalPos(const string& key) const;
201
145
/** Add key,value pair to specified array at specified position */
202
int setInternal(const string& key, const string& value,
146
int setInternal(const string& key, const Variant& value,
203
147
int pos = -1, bool useAsInitial = false);
204
int setExternal(const string& key, const string& value,
148
int setExternal(const string& key, const Variant& value,
205
149
int pos = -1, bool useAsInitial = false);