ManaPlus
|
#include <setupitem.h>
Public Member Functions | |
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 | addMoreControls () |
void | fromWidget () |
void | toWidget () |
Public Member Functions inherited from SetupItemSliderList | |
~SetupItemSliderList () | |
void | createControls () |
void | action (const ActionEvent &event) |
void | apply (const std::string &eventName) |
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 Attributes | |
int | mMin |
Protected Attributes inherited from SetupItemSliderList | |
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 } |
Protected Member Functions inherited from SetupItemSliderList | |
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) | |
Definition at line 588 of file setupitem.h.
SetupItemSliderInt::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 | ||
) |
Definition at line 1332 of file setupitem.cpp.
References SetupItemSliderList::createControls().
|
virtual |
Implements SetupItemSliderList.
Definition at line 1349 of file setupitem.cpp.
References toWidget().
|
virtual |
Reimplemented from SetupItemSliderList.
Definition at line 1354 of file setupitem.cpp.
References SliderList::getSelected(), mMin, SetupItemSliderList::mSlider, SetupItem::mValue, and Catch::toString().
|
virtual |
Reimplemented from SetupItemSliderList.
Definition at line 1362 of file setupitem.cpp.
References mMin, SetupItemSliderList::mSlider, SetupItem::mValue, and SliderList::setSelected().
Referenced by addMoreControls().
|
protected |
Definition at line 611 of file setupitem.h.
Referenced by fromWidget(), and toWidget().