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

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.

Examples:

paratest.cpp.


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 char *style="SpinnerBox")
 ~PG_SpinnerBox ()
void SetValue (int value)
void SetMinValue (int value)
void SetMaxValue (int value)
void SetMask (const char *value)
int GetValue ()
int GetMinValue ()
int GetMaxValue ()
char * GetMask ()

Public Attributes

SignalChange< int > sigChange

Protected Member Functions

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


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 char *  style = "SpinnerBox"
 

PG_SpinnerBox::~PG_SpinnerBox  ) 
 


Member Function Documentation

char* 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 char *  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
 



The ParaGUI Project - Alexander Pipelka