Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PG_SpinnerBox Class Reference

Inheritance diagram for PG_SpinnerBox:

Inheritance graph
[legend]
Collaboration diagram for PG_SpinnerBox:

Collaboration graph
[legend]
List of all members.

Detailed Description

PG_SpinnerBox creates a textbox with attached increase/decrease buttons to control the numeric value.

Author:
Atani - Mike Dunston
PG_SpinnerBox creates a textbox with attached increase/decrease buttons to control the numeric value. Many convenience methods are available... SetValue, SetMinValue, SetMaxValue, SetMask GetValue, GetMinValue, GetMaxValue, GetMask

Registerable Events:

MSG_SPINNER_CHANGE -

Fired when the user clicks either up or down on the spinner buttons. Currently typed modifications are not populated to the value. This will be added soon. Note: using SetValue above will fire this event.


Public Types

enum  { IDSPINNERBOX_UP = PG_WIDGETID_INTERNAL + 12, IDSPINNERBOX_DOWN = PG_WIDGETID_INTERNAL + 13 }

Public Member Functions

 PG_SpinnerBox (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const std::string &style="SpinnerBox")
void SetValue (int value)
void SetMinValue (int value)
void SetMaxValue (int value)
void SetMask (const std::string &value)
int GetValue ()
int GetMinValue ()
int GetMaxValue ()
const PG_String & GetMask ()

Public Attributes

SignalChange< int > sigChange

Protected Member Functions

bool handleButtonClick (PG_Button *button)
bool handleEditEnd (PG_LineEdit *edit)

Classes

class  SignalChange
 Signal type declaration. More...


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDSPINNERBOX_UP 
IDSPINNERBOX_DOWN 


Constructor & Destructor Documentation

PG_SpinnerBox::PG_SpinnerBox PG_Widget parent,
const PG_Rect r = PG_Rect::null,
const std::string &  style = "SpinnerBox"
 


Member Function Documentation

const PG_String& PG_SpinnerBox::GetMask  )  [inline]
 

int PG_SpinnerBox::GetMaxValue  )  [inline]
 

int PG_SpinnerBox::GetMinValue  )  [inline]
 

int PG_SpinnerBox::GetValue  )  [inline]
 

bool PG_SpinnerBox::handleButtonClick PG_Button button  )  [protected]
 

bool PG_SpinnerBox::handleEditEnd PG_LineEdit edit  )  [protected]
 

void PG_SpinnerBox::SetMask const std::string &  value  ) 
 

void PG_SpinnerBox::SetMaxValue int  value  )  [inline]
 

void PG_SpinnerBox::SetMinValue int  value  )  [inline]
 

void PG_SpinnerBox::SetValue int  value  )  [inline]
 


Member Data Documentation

SignalChange<int> PG_SpinnerBox::sigChange
 


Generated on Tue Jun 24 02:27:08 2008 for ParaGUI by  doxygen 1.4.2