ALBA
|
#include <albaGUICrossIncremental.h>
Public Types | |
enum | MODALITY_CROSS_INCREMENTAL_ID { ID_TOP_BOTTOM_LAYOUT = 0 , ID_LEFT_RIGHT_LAYOUT , ID_COMPLETE_LAYOUT } |
enum | MODALITY_OPERATION_ID { ID_DECREMENT = -1 , ID_CHANGE_STEP = 0 , ID_INCREMENT = 1 } |
enum | CROSS_INCREMENTAL_MODE_ID { ID_BUTTON_TOP = MINID , ID_BUTTON_LEFT , ID_BUTTON_RIGHT , ID_BUTTON_BOTTOM , ID_STEP_ENTRY , ID_COMBO_ENTRY } |
Public Member Functions | |
albaGUICrossIncremental (wxWindow *parent, wxWindowID id, const char *label, double *stepVariable, double *topBottomVariable, double *leftRightVariable, bool boldLabel=true, int modality=ID_COMPLETE_LAYOUT, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, double min=MINFLOAT, double max=MAXFLOAT, int decimal_digit=-1, long style=wxTAB_TRAVERSAL|wxCLIP_CHILDREN, bool comboStep=false, albaString *buttonUpDown_text=NULL, albaString *buttonLeftRight_text=NULL) | |
virtual | ~albaGUICrossIncremental () |
void | EnableStep (bool value) |
void | SetListener (albaObserver *Listener) |
void | OnEvent (albaEventBase *alba_event) |
int | IsIncrement () |
double | GetTopBottomVariation () |
double | GetLeftRightVariation () |
void | SetStepVariable (double step) |
void | SetComboBoxItems (wxArrayString &array, int selected=0) |
void | LayoutStyle (const char *label) |
void | SetTextButtonTop (const char *text) |
void | SetTextButtonBottom (const char *text) |
void | SetTextButtonLeft (const char *text) |
void | SetTextButtonRight (const char *text) |
albaGUIComboBox * | GetComboBox () |
void | SetComboValue (int index) |
Public Member Functions inherited from albaGUIPanel | |
albaGUIPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel") | |
Public Member Functions inherited from albaObserver | |
albaObserver () | |
virtual | ~albaObserver () |
virtual void | OnEvent (albaEventBase *e)=0 |
Additional Inherited Members | |
Public Attributes inherited from albaGUIPanel | |
albaGUIPanel * | m_NextPanel |
Class that represent a widget with 4 buttons and a text array disposed like a cross It can use two accumulator variable that are updated.
It needed absolutely step variable pointer. After modification, it returns to listener an event with in Arg the sign of increment.
Definition at line 53 of file albaGUICrossIncremental.h.
Enumerator | |
---|---|
ID_TOP_BOTTOM_LAYOUT | |
ID_LEFT_RIGHT_LAYOUT | |
ID_COMPLETE_LAYOUT |
Definition at line 75 of file albaGUICrossIncremental.h.
Enumerator | |
---|---|
ID_DECREMENT | |
ID_CHANGE_STEP | |
ID_INCREMENT |
Definition at line 82 of file albaGUICrossIncremental.h.
Enumerator | |
---|---|
ID_BUTTON_TOP | |
ID_BUTTON_LEFT | |
ID_BUTTON_RIGHT | |
ID_BUTTON_BOTTOM | |
ID_STEP_ENTRY | |
ID_COMBO_ENTRY |
Definition at line 89 of file albaGUICrossIncremental.h.
albaGUICrossIncremental::albaGUICrossIncremental | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const char * | label, | ||
double * | stepVariable, | ||
double * | topBottomVariable, | ||
double * | leftRightVariable, | ||
bool | boldLabel = true , |
||
int | modality = ID_COMPLETE_LAYOUT , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
double | min = MINFLOAT , |
||
double | max = MAXFLOAT , |
||
int | decimal_digit = -1 , |
||
long | style = wxTAB_TRAVERSAL|wxCLIP_CHILDREN , |
||
bool | comboStep = false , |
||
albaString * | buttonUpDown_text = NULL , |
||
albaString * | buttonLeftRight_text = NULL |
||
) |
|
virtual |
void albaGUICrossIncremental::EnableStep | ( | bool | value | ) |
|
inline |
Definition at line 102 of file albaGUICrossIncremental.h.
|
virtual |
process the events sent by subjects
Implements albaObserver.
|
inline |
Definition at line 105 of file albaGUICrossIncremental.h.
|
inline |
Definition at line 106 of file albaGUICrossIncremental.h.
|
inline |
Definition at line 107 of file albaGUICrossIncremental.h.
void albaGUICrossIncremental::SetStepVariable | ( | double | step | ) |
void albaGUICrossIncremental::SetComboBoxItems | ( | wxArrayString & | array, |
int | selected = 0 |
||
) |
void albaGUICrossIncremental::LayoutStyle | ( | const char * | label | ) |
void albaGUICrossIncremental::SetTextButtonTop | ( | const char * | text | ) |
void albaGUICrossIncremental::SetTextButtonBottom | ( | const char * | text | ) |
void albaGUICrossIncremental::SetTextButtonLeft | ( | const char * | text | ) |
void albaGUICrossIncremental::SetTextButtonRight | ( | const char * | text | ) |
|
inline |
Definition at line 120 of file albaGUICrossIncremental.h.
void albaGUICrossIncremental::SetComboValue | ( | int | index | ) |