![]() |
ManaPlus
|
#include <setupquickitem.h>
Public Member Functions | |
| SetupQuickItem (const std::string &description, SetupTabScroll *const parent, const std::string &eventName, ModifierGetFuncPtr getFunc, ModifierChangeFuncPtr changeFunc) | |
| ~SetupQuickItem () | |
| void | createControls () |
| void | fromWidget () |
| void | toWidget () |
| void | action (const ActionEvent &event) |
| void | apply (const std::string &eventName) |
| void | cancel (const std::string &eventName) |
| void | externalUpdated (const std::string &eventName) |
| void | rereadValue () |
| void | save () |
| void | gameModifiersChanged () |
Public Member Functions inherited from SetupItem | |
| ~SetupItem () | |
| void | load () |
| void | setWidget (Widget *widget) |
| Widget * | getWidget () const |
| Configuration * | getConfig () const |
| virtual std::string | getActionEventId () const |
| virtual void | doAction () |
| virtual void | externalUnloaded (const std::string &eventName) |
| MainConfig | isMainConfig () const |
| void | fixFirstItemSize (Widget *const widget) |
| 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) |
Public Member Functions inherited from GameModifierListener | |
| GameModifierListener () | |
| virtual | ~ GameModifierListener () |
Protected Attributes | |
| HorizontContainer * | mHorizont |
| Button * | mButton |
| Label * | mLabel |
| ModifierGetFuncPtr | mGetFunc |
| ModifierChangeFuncPtr | mChangeFunc |
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 } |
Static Public Member Functions inherited from GameModifierListener | |
| static void | distributeEvent () |
| static void | addListener (GameModifierListener *const listener) |
| static void | removeListener (const GameModifierListener *const listener) |
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 37 of file setupquickitem.h.
| SetupQuickItem::SetupQuickItem | ( | const std::string & | description, |
| SetupTabScroll *const | parent, | ||
| const std::string & | eventName, | ||
| ModifierGetFuncPtr | getFunc, | ||
| ModifierChangeFuncPtr | changeFunc | ||
| ) |
Definition at line 33 of file setupquickitem.cpp.
References createControls(), SetupItem::mValueType, and SetupItem::VSTR.
| SetupQuickItem::~SetupQuickItem | ( | ) |
Definition at line 50 of file setupquickitem.cpp.
References mButton, mHorizont, and SetupItem::mWidget.
|
virtual |
Called when an action is recieved from a widget. It is used to be able to recieve a notification that an action has occured.
| actionEvent | The event of the action. |
Reimplemented from SetupItem.
Definition at line 105 of file setupquickitem.cpp.
References ActionEvent::getId(), mChangeFunc, SetupItem::mEventName, and toWidget().
|
virtual |
|
virtual |
| void SetupQuickItem::createControls | ( | ) |
Definition at line 73 of file setupquickitem.cpp.
References HorizontContainer::add(), VertContainer::add2(), Widget::addActionListener(), SetupTabScroll::addControl(), Label::adjustSize(), BUTTON_SKIN, SetupTabScroll::getContainer(), SetupItem::mDescription, SetupItem::mEventName, mHorizont, mLabel, SetupItem::mParent, SetupItem::mWidget, ToolTipListener::setToolTip(), and toWidget().
Referenced by SetupQuickItem().
|
virtual |
|
virtual |
|
virtual |
Implements GameModifierListener.
Definition at line 119 of file setupquickitem.cpp.
References toWidget().
|
virtual |
|
virtual |
|
virtual |
Implements SetupItem.
Definition at line 99 of file setupquickitem.cpp.
References Label::adjustSize(), mGetFunc, mLabel, and Label::setCaption().
Referenced by action(), createControls(), and gameModifiersChanged().
|
protected |
Definition at line 74 of file setupquickitem.h.
Referenced by ~SetupQuickItem().
|
protected |
Definition at line 77 of file setupquickitem.h.
Referenced by action().
|
protected |
Definition at line 76 of file setupquickitem.h.
Referenced by toWidget().
|
protected |
Definition at line 73 of file setupquickitem.h.
Referenced by createControls(), and ~SetupQuickItem().
|
protected |
Definition at line 75 of file setupquickitem.h.
Referenced by createControls(), and toWidget().