56 const std::string &
restrict description,
59 const std::string &
restrict eventName,
64 mDescription(description),
67 mEventName(eventName),
73 mMainConfig(mainConfig),
79 const std::string &
restrict description,
82 const std::string &
restrict eventName,
88 mDescription(description),
91 mEventName(eventName),
97 mMainConfig(mainConfig),
158 return std::string();
200 if (widget ==
nullptr)
214 const std::string &
restrict description,
215 const std::string &
restrict keyName,
217 const std::string &
restrict eventName,
219 SetupItem(text, description, keyName, parent, eventName, mainConfig),
226 const std::string &
restrict description,
227 const std::string &
restrict keyName,
229 const std::string &
restrict eventName,
232 SetupItem(text, description, keyName, parent, eventName, def, mainConfig),
276 const std::string &
restrict description,
277 const std::string &
restrict keyName,
279 const std::string &
restrict eventName,
282 SetupItem(text, description, keyName, parent, eventName, mainConfig),
288 mUseBase64(useBase64)
295 const std::string &
restrict description,
296 const std::string &
restrict keyName,
298 const std::string &
restrict eventName,
302 SetupItem(text, description, keyName, parent, eventName, def, mainConfig),
308 mUseBase64(useBase64)
327 std::string normalValue =
mValue;
420 const std::string &eventId =
event.getId();
461 const int min,
const int max,
463 SetupItem(text, description, keyName, parent, eventName, mainConfig),
485 const int min,
const int max,
488 SetupItem(text, description, keyName, parent, eventName, def, mainConfig),
565 const std::string &eventId =
event.getId();
599 const std::string &
restrict description,
604 mIsSeparator(separator)
620 const std::string str(
" \342\200\225\342\200\225\342\200\225"
621 "\342\200\225\342\200\225 ");
655 const std::string &
restrict description,
656 const std::string &
restrict keyName,
658 const std::string &
restrict eventName,
662 SetupItem(text, description, keyName, parent, eventName, mainConfig),
674 const std::string &
restrict description,
675 const std::string &
restrict keyName,
677 const std::string &
restrict eventName,
682 SetupItem(text, description, keyName, parent, eventName, def, mainConfig),
734 return atoi(
mValue.c_str());
757 const std::string &
restrict keyName,
765 SetupItem(text, description, keyName, parent, eventName, mainConfig),
779 const std::string &
restrict keyName,
788 SetupItem(text, description, keyName, parent, eventName, def, mainConfig),
841 for (
int f = 0; f < sz; f ++)
874 const std::string &
restrict description,
875 const std::string &
restrict keyName,
877 const std::string &
restrict eventName,
884 SetupItem(text, description, keyName, parent, eventName, mainConfig),
899 const std::string &
restrict description,
900 const std::string &
restrict keyName,
902 const std::string &
restrict eventName,
910 SetupItem(text, description, keyName, parent, eventName, def, mainConfig),
992 const std::string &
restrict description,
993 const std::string &
restrict keyName,
995 const std::string &
restrict eventName,
1003 SetupItem(text, description, keyName, parent, eventName, mainConfig),
1014 mOnTheFly(onTheFly),
1015 mDoNotAlign(doNotAlign)
1022 const std::string &
restrict description,
1023 const std::string &
restrict keyName,
1025 const std::string &
restrict eventName,
1034 SetupItem(text, description, keyName, parent, eventName, def, mainConfig),
1045 mOnTheFly(onTheFly),
1046 mDoNotAlign(doNotAlign)
1095 if ((
mValues ==
nullptr) || (
gui ==
nullptr))
1103 while (it != it_end)
1158 std::string str =
mValues->at(val);
1182 const std::string &
restrict keyName,
1184 const std::string &
restrict eventName,
1189 SetupItem(text, description, keyName, parent, eventName, mainConfig),
1203 const std::string &
restrict keyName,
1205 const std::string &
restrict eventName,
1211 SetupItem(text, description, keyName, parent, eventName, def, mainConfig),
1288 const std::string &
restrict description,
1289 const std::string &
restrict keyName,
1291 const std::string &
restrict eventName,
1297 model, width, onTheFly, mainConfig),
1333 const std::string &
restrict description,
1334 const std::string &
restrict keyName,
1336 const std::string &
restrict eventName,
1343 model, width, onTheFly, mainConfig),
std::string decodeBase64String(std::string value)
std::string encodeBase64String(std::string value)
const std::string & getId() const
void setSelected(const bool selected)
std::string getValue(const std::string &key, const std::string &deflt) const
bool getBoolValue(const std::string &key) const
std::string getStringValue(const std::string &key) const
void setValue(const std::string &key, const std::string &value)
int getIntValue(const std::string &key) const
void setSelected(int selected)
std::string getMsg() const
int getWidth(const std::string &text) const
void add(Widget *const widget)
void setValue(const int value)
void setCaption(const std::string &caption)
virtual std::string getElementAt(int i)=0
virtual int getNumberOfElements()=0
SetupItemCheckBox(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, const MainConfig mainConfig)
SetupItemDropDownStr(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, ListModel *const model, const int width, const MainConfig mainConfig)
HorizontContainer * mHorizont
HorizontContainer * mHorizont
SetupItemDropDown(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, ListModel *const model, const int width, const MainConfig mainConfig)
SetupItemIntTextField(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, const int min, const int max, const MainConfig mainConfig)
void action(const ActionEvent &event)
void apply(const std::string &eventName)
IntTextField * mTextField
HorizontContainer * mHorizont
SetupItemLabel(const std::string &text, const std::string &description, SetupTabScroll *const parent, const Separator separator)
void action(const ActionEvent &event)
void apply(const std::string &eventName)
void apply(const std::string &eventName)
SetupItemSlider2(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, const int min, const int max, const int step, SetupItemNames *const values, const OnTheFly onTheFly, const MainConfig mainConfig, const DoNotAlign doNotAlign)
void setInvertValue(const int v)
HorizontContainer * mHorizont
void action(const ActionEvent &event)
SetupItemSliderInt(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, ListModel *const model, const int min, const int width, const OnTheFly onTheFly, const MainConfig mainConfig)
void action(const ActionEvent &event)
virtual void addMoreControls()=0
SetupItemSliderList(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, ListModel *const model, const int width, const OnTheFly onTheFly, const MainConfig mainConfig)
void apply(const std::string &eventName)
HorizontContainer * mHorizont
HorizontContainer * mHorizont
void action(const ActionEvent &event)
SetupItemSlider(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, const double min, const double max, const double step, const int width, const OnTheFly onTheFly, const MainConfig mainConfig)
void apply(const std::string &eventName)
void action(const ActionEvent &event)
SetupItemSound(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, ListModel *const model, const int width, const OnTheFly onTheFly, const MainConfig mainConfig)
void action(const ActionEvent &event)
void cancel(const std::string &eventName)
void apply(const std::string &eventName)
void externalUpdated(const std::string &eventName)
SetupItemTextField(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, const MainConfig mainConfig, const UseBase64 useBase64)
HorizontContainer * mHorizont
virtual std::string getActionEventId() const
SetupItem(const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, const MainConfig mainConfig)
virtual void fromWidget()=0
Configuration * getConfig() const
virtual void apply(const std::string &eventName)
void fixFirstItemSize(Widget *const widget)
virtual void externalUpdated(const std::string &eventName)
virtual void toWidget()=0
virtual void cancel(const std::string &eventName)
void action(const ActionEvent &event)
virtual void externalUnloaded(const std::string &eventName)
virtual void rereadValue()
void setSelectedString(const std::string &str)
void setSelected(const int idx)
std::string getSelectedString() const
void postInit2(ActionListener *const listener, const std::string &eventId)
void setValue(const double value)
void playGuiSfx(const std::string &path)
const std::string & getText() const
void setText(const std::string &text)
void add2(Widget *const widget, const bool resizable, const int spacing)
void add1(Widget *const widget, const int spacing)
Configuration serverConfig
const bool DoNotAlign_false
const bool LoseFocusOnTab_true
const bool MainConfig_true
int roundDouble(const double v)
CompositeGenerator< T > values(T val1, T val2)
std::string toString(T const &value)
converts any type to a string
const bool Separator_true
SetupItemNames::const_iterator SetupItemNamesConstIter
std::vector< std::string > SetupItemNames
SoundManager soundManager
std::string pathJoin(std::string str1, const std::string &str2)
const bool UseBase64_true