ManaPlus
|
#include <setupitem.h>
Public Member Functions | |
~SetupItemSliderList () | |
void | createControls () |
void | fromWidget () |
void | toWidget () |
void | action (const ActionEvent &event) |
void | apply (const std::string &eventName) |
virtual void | addMoreControls ()=0 |
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 |
virtual void | doAction () |
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 Member Functions | |
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) | |
SetupItemSliderList (const std::string &text, const std::string &description, const std::string &keyName, SetupTabScroll *const parent, const std::string &eventName, ListModel *const model, const std::string &def, const int width, const OnTheFly onTheFly, const MainConfig mainConfig) | |
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) | |
Protected Attributes | |
HorizontContainer * | mHorizont |
Label * | mLabel |
SliderList * | mSlider |
ListModel * | mModel |
int | mWidth |
OnTheFly | mOnTheFly |
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 } |
Definition at line 516 of file setupitem.h.
SetupItemSliderList::~SetupItemSliderList | ( | ) |
Definition at line 1222 of file setupitem.cpp.
References mHorizont, mLabel, mSlider, and SetupItem::mWidget.
|
protected |
Definition at line 1179 of file setupitem.cpp.
References SetupItem::mValueType, and SetupItem::VSTR.
|
protected |
Definition at line 1200 of file setupitem.cpp.
References SetupItem::mValueType, and SetupItem::VSTR.
|
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.
Reimplemented in SetupItemSound.
Definition at line 1271 of file setupitem.cpp.
References fromWidget(), mOnTheFly, OnTheFly_true, and SetupItem::save().
Referenced by SetupItemSound::action().
|
pure virtual |
Implemented in SetupItemSliderInt, and SetupItemSound.
Referenced by createControls().
|
virtual |
Reimplemented from SetupItem.
Definition at line 1278 of file setupitem.cpp.
References fromWidget(), SetupItem::mEventName, and SetupItem::save().
void SetupItemSliderList::createControls | ( | ) |
Definition at line 1230 of file setupitem.cpp.
References HorizontContainer::add(), VertContainer::add2(), Widget::addActionListener(), SetupTabScroll::addControl(), addMoreControls(), SliderList::adjustSize(), SetupItem::fixFirstItemSize(), SetupTabScroll::getContainer(), SetupItem::load(), SetupItem::mDescription, SetupItem::mEventName, mHorizont, mLabel, mModel, SetupItem::mParent, mSlider, SetupItem::mText, SetupItem::mValue, SetupItem::mWidget, SliderList::postInit2(), SliderList::setSelectedString(), and ToolTipListener::setToolTip().
Referenced by SetupItemSliderInt::SetupItemSliderInt(), and SetupItemSound::SetupItemSound().
|
virtual |
Implements SetupItem.
Reimplemented in SetupItemSliderInt.
Definition at line 1255 of file setupitem.cpp.
References SliderList::getSelectedString(), mSlider, and SetupItem::mValue.
|
virtual |
Implements SetupItem.
Reimplemented in SetupItemSliderInt.
Definition at line 1263 of file setupitem.cpp.
References mSlider, SetupItem::mValue, and SliderList::setSelectedString().
|
protected |
Definition at line 557 of file setupitem.h.
Referenced by SetupItemSound::addMoreControls(), createControls(), and ~SetupItemSliderList().
|
protected |
Definition at line 558 of file setupitem.h.
Referenced by createControls(), and ~SetupItemSliderList().
|
protected |
Definition at line 560 of file setupitem.h.
Referenced by createControls().
|
protected |
Definition at line 562 of file setupitem.h.
Referenced by action().
|
protected |
Definition at line 559 of file setupitem.h.
Referenced by SetupItemSound::action(), createControls(), fromWidget(), SetupItemSliderInt::fromWidget(), toWidget(), SetupItemSliderInt::toWidget(), and ~SetupItemSliderList().
|
protected |
Definition at line 561 of file setupitem.h.