Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Setup_Colors Class Reference

#include <setup_colors.h>

Inheritance diagram for Setup_Colors:
SetupTab Container

Public Member Functions

 Setup_Colors ()
 
 ~Setup_Colors () override
 
void apply () override
 Called when the Apply button is pressed in the setup window.
 
void cancel () override
 Called when the Cancel button is pressed in the setup window.
 
void action (const gcn::ActionEvent &event) override
 
void valueChanged (const gcn::SelectionEvent &event) override
 
- Public Member Functions inherited from SetupTab
 SetupTab ()
 
const std::string & getName () const
 
- Public Member Functions inherited from Container
 Container ()
 
 ~Container () override
 
void drawFrame (gcn::Graphics *graphics) override
 

Private Member Functions

void setEntry (gcn::Slider *s, TextField *t, int value)
 
void updateColor ()
 
void updateGradType ()
 

Private Attributes

gcn::ListBox * mColorBox
 
gcn::ScrollArea * mScroll
 
BrowserBoxmPreview
 
TextPreviewmTextPreview
 
gcn::ScrollArea * mPreviewBox
 
int mSelected
 
gcn::Label * mGradTypeLabel
 
gcn::Slider * mGradTypeSlider
 
gcn::Label * mGradTypeText
 
gcn::Label * mGradDelayLabel
 
gcn::Slider * mGradDelaySlider
 
TextFieldmGradDelayText
 
gcn::Label * mRedLabel
 
gcn::Slider * mRedSlider
 
TextFieldmRedText
 
int mRedValue
 
gcn::Label * mGreenLabel
 
gcn::Slider * mGreenSlider
 
TextFieldmGreenText
 
int mGreenValue
 
gcn::Label * mBlueLabel
 
gcn::Slider * mBlueSlider
 
TextFieldmBlueText
 
int mBlueValue
 

Static Private Attributes

static const std::string rawmsg = _("This is what the color looks like")
 

Additional Inherited Members

- Protected Member Functions inherited from SetupTab
void setName (const std::string &name)
 Sets the name displayed on the tab.
 
- Protected Member Functions inherited from Container
LayoutgetLayout ()
 Gets the layout handler for this container.
 
LayoutCellplace (int x, int y, gcn::Widget *wg, int w=1, int h=1)
 Adds a widget to the container and sets it at given cell.
 
ContainerPlacer getPlacer (int x, int y)
 Returns a proxy for adding widgets in an inner table of the layout.
 

Detailed Description

Definition at line 37 of file setup_colors.h.

Constructor & Destructor Documentation

◆ Setup_Colors()

Setup_Colors::Setup_Colors ( )

Definition at line 45 of file setup_colors.cpp.

◆ ~Setup_Colors()

Setup_Colors::~Setup_Colors ( )
override

Definition at line 178 of file setup_colors.cpp.

Member Function Documentation

◆ action()

void Setup_Colors::action ( const gcn::ActionEvent &  event)
override

Definition at line 186 of file setup_colors.cpp.

◆ apply()

void Setup_Colors::apply ( )
overridevirtual

Called when the Apply button is pressed in the setup window.

Implements SetupTab.

Definition at line 282 of file setup_colors.cpp.

◆ cancel()

void Setup_Colors::cancel ( )
overridevirtual

Called when the Cancel button is pressed in the setup window.

Implements SetupTab.

Definition at line 287 of file setup_colors.cpp.

◆ setEntry()

void Setup_Colors::setEntry ( gcn::Slider *  s,
TextField t,
int  value 
)
private

Definition at line 274 of file setup_colors.cpp.

◆ updateColor()

void Setup_Colors::updateColor ( )
private

Definition at line 344 of file setup_colors.cpp.

◆ updateGradType()

void Setup_Colors::updateGradType ( )
private

Definition at line 316 of file setup_colors.cpp.

◆ valueChanged()

void Setup_Colors::valueChanged ( const gcn::SelectionEvent &  event)
override

Definition at line 224 of file setup_colors.cpp.

Member Data Documentation

◆ mBlueLabel

gcn::Label* Setup_Colors::mBlueLabel
private

Definition at line 80 of file setup_colors.h.

◆ mBlueSlider

gcn::Slider* Setup_Colors::mBlueSlider
private

Definition at line 81 of file setup_colors.h.

◆ mBlueText

TextField* Setup_Colors::mBlueText
private

Definition at line 82 of file setup_colors.h.

◆ mBlueValue

int Setup_Colors::mBlueValue
private

Definition at line 83 of file setup_colors.h.

◆ mColorBox

gcn::ListBox* Setup_Colors::mColorBox
private

Definition at line 55 of file setup_colors.h.

◆ mGradDelayLabel

gcn::Label* Setup_Colors::mGradDelayLabel
private

Definition at line 66 of file setup_colors.h.

◆ mGradDelaySlider

gcn::Slider* Setup_Colors::mGradDelaySlider
private

Definition at line 67 of file setup_colors.h.

◆ mGradDelayText

TextField* Setup_Colors::mGradDelayText
private

Definition at line 68 of file setup_colors.h.

◆ mGradTypeLabel

gcn::Label* Setup_Colors::mGradTypeLabel
private

Definition at line 62 of file setup_colors.h.

◆ mGradTypeSlider

gcn::Slider* Setup_Colors::mGradTypeSlider
private

Definition at line 63 of file setup_colors.h.

◆ mGradTypeText

gcn::Label* Setup_Colors::mGradTypeText
private

Definition at line 64 of file setup_colors.h.

◆ mGreenLabel

gcn::Label* Setup_Colors::mGreenLabel
private

Definition at line 75 of file setup_colors.h.

◆ mGreenSlider

gcn::Slider* Setup_Colors::mGreenSlider
private

Definition at line 76 of file setup_colors.h.

◆ mGreenText

TextField* Setup_Colors::mGreenText
private

Definition at line 77 of file setup_colors.h.

◆ mGreenValue

int Setup_Colors::mGreenValue
private

Definition at line 78 of file setup_colors.h.

◆ mPreview

BrowserBox* Setup_Colors::mPreview
private

Definition at line 57 of file setup_colors.h.

◆ mPreviewBox

gcn::ScrollArea* Setup_Colors::mPreviewBox
private

Definition at line 59 of file setup_colors.h.

◆ mRedLabel

gcn::Label* Setup_Colors::mRedLabel
private

Definition at line 70 of file setup_colors.h.

◆ mRedSlider

gcn::Slider* Setup_Colors::mRedSlider
private

Definition at line 71 of file setup_colors.h.

◆ mRedText

TextField* Setup_Colors::mRedText
private

Definition at line 72 of file setup_colors.h.

◆ mRedValue

int Setup_Colors::mRedValue
private

Definition at line 73 of file setup_colors.h.

◆ mScroll

gcn::ScrollArea* Setup_Colors::mScroll
private

Definition at line 56 of file setup_colors.h.

◆ mSelected

int Setup_Colors::mSelected
private

Definition at line 60 of file setup_colors.h.

◆ mTextPreview

TextPreview* Setup_Colors::mTextPreview
private

Definition at line 58 of file setup_colors.h.

◆ rawmsg

const std::string Setup_Colors::rawmsg = _("This is what the color looks like")
staticprivate

Definition at line 53 of file setup_colors.h.


The documentation for this class was generated from the following files: