ManaPlus
|
#include <setupitem.h>
Public Member Functions | |
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) | |
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 std::string &def, const MainConfig mainConfig) | |
~SetupItemDropDownStr () | |
void | createControls () |
void | fromWidget () |
void | toWidget () |
int | selectionByValue () |
Public Member Functions inherited from SetupItem | |
~SetupItem () | |
void | load () |
virtual void | save () |
void | setWidget (Widget *widget) |
Widget * | getWidget () const |
Configuration * | getConfig () const |
virtual std::string | getActionEventId () const |
void | action (const ActionEvent &event) |
virtual void | doAction () |
virtual void | apply (const std::string &eventName) |
virtual void | cancel (const std::string &eventName) |
virtual void | externalUpdated (const std::string &eventName) |
virtual void | externalUnloaded (const std::string &eventName) |
MainConfig | isMainConfig () const |
void | fixFirstItemSize (Widget *const widget) |
virtual void | rereadValue () |
void | setValue (const std::string &str) |
std::string | getValue () const |
std::string | getEventName () const |
Public Member Functions inherited from ActionListener | |
virtual | ~ActionListener () |
Public Member Functions inherited from Widget2 | |
virtual | ~Widget2 () |
const Color & | getThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE |
const Color & | getThemeCharColor (const signed char c, bool &valid) const A_INLINE |
virtual void | setWidget2 (const Widget2 *const widget) |
void | setPalette (int palette) |
void | checkPalette () |
void | setForegroundColor2 (const Color &color) |
Widget * | getWindow () const |
virtual void | setWindow (Widget *const window) |
Protected Attributes | |
HorizontContainer * | mHorizont |
Label * | mLabel |
ListModel * | mModel |
DropDown * | mDropDown |
int | mWidth |
Protected Attributes inherited from SetupItem | |
std::string | mText |
std::string | mDescription |
std::string | mKeyName |
SetupTabScroll * | mParent |
std::string | mEventName |
std::string | mValue |
std::string | mDefault |
Widget * | mWidget |
std::list< Widget * > | mTempWidgets |
int | mValueType |
MainConfig | mMainConfig |
bool | mUseDefault |
Protected Attributes inherited from Widget2 | |
int | mPaletteOffset |
Widget * | mWindow |
Color | mForegroundColor2 |
Additional Inherited Members | |
Public Types inherited from SetupItem | |
enum | { VBOOL = 0 , VSTR , VINT , VNONE } |
Protected Member Functions inherited from SetupItem | |
SetupItem (const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, const MainConfig mainConfig) | |
SetupItem (const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, const std::string &def, const MainConfig mainConfig) | |
Protected Member Functions inherited from ActionListener | |
ActionListener () | |
Protected Member Functions inherited from Widget2 | |
Widget2 (const Widget2 *const widget) | |
Definition at line 354 of file setupitem.h.
SetupItemDropDownStr::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 | ||
) |
Definition at line 754 of file setupitem.cpp.
References createControls(), SetupItem::mValueType, and SetupItem::VSTR.
SetupItemDropDownStr::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 std::string & | def, | ||
const MainConfig | mainConfig | ||
) |
Definition at line 776 of file setupitem.cpp.
References createControls(), SetupItem::mValueType, and SetupItem::VSTR.
SetupItemDropDownStr::~SetupItemDropDownStr | ( | ) |
Definition at line 799 of file setupitem.cpp.
References mDropDown, mHorizont, mLabel, mModel, and SetupItem::mWidget.
void SetupItemDropDownStr::createControls | ( | ) |
Definition at line 808 of file setupitem.cpp.
References HorizontContainer::add(), VertContainer::add2(), Widget::addActionListener(), SetupTabScroll::addControl(), SetupItem::fixFirstItemSize(), SetupTabScroll::getContainer(), SetupItem::load(), SetupItem::mDescription, mDropDown, SetupItem::mEventName, mHorizont, mLabel, mModel, Modal_false, SetupItem::mParent, SetupItem::mText, SetupItem::mWidget, mWidth, selectionByValue(), Widget::setActionEventId(), DropDown::setSelected(), ToolTipListener::setToolTip(), and Widget::setWidth().
Referenced by SetupItemDropDownStr().
|
virtual |
Implements SetupItem.
Definition at line 851 of file setupitem.cpp.
References ListModel::getElementAt(), ListModel::getNumberOfElements(), DropDown::getSelected(), mDropDown, mModel, and SetupItem::mValue.
int SetupItemDropDownStr::selectionByValue | ( | ) |
Definition at line 838 of file setupitem.cpp.
References ListModel::getElementAt(), ListModel::getNumberOfElements(), mModel, and SetupItem::mValue.
Referenced by createControls(), and toWidget().
|
virtual |
Implements SetupItem.
Definition at line 864 of file setupitem.cpp.
References mDropDown, selectionByValue(), and DropDown::setSelected().
|
protected |
Definition at line 392 of file setupitem.h.
Referenced by createControls(), fromWidget(), toWidget(), and ~SetupItemDropDownStr().
|
protected |
Definition at line 389 of file setupitem.h.
Referenced by createControls(), and ~SetupItemDropDownStr().
|
protected |
Definition at line 390 of file setupitem.h.
Referenced by createControls(), and ~SetupItemDropDownStr().
|
protected |
Definition at line 391 of file setupitem.h.
Referenced by createControls(), fromWidget(), selectionByValue(), and ~SetupItemDropDownStr().
|
protected |
Definition at line 393 of file setupitem.h.
Referenced by createControls().