ALBA
Public Types | Public Member Functions | List of all members
albaGUICrossIncremental Class Reference

#include <albaGUICrossIncremental.h>

Inheritance diagram for albaGUICrossIncremental:
Inheritance graph
[legend]
Collaboration diagram for albaGUICrossIncremental:
Collaboration graph
[legend]

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)
 
albaGUIComboBoxGetComboBox ()
 
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
albaGUIPanelm_NextPanel
 

Detailed Description

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.

Member Enumeration Documentation

◆ MODALITY_CROSS_INCREMENTAL_ID

Enumerator
ID_TOP_BOTTOM_LAYOUT 
ID_LEFT_RIGHT_LAYOUT 
ID_COMPLETE_LAYOUT 

Definition at line 75 of file albaGUICrossIncremental.h.

◆ MODALITY_OPERATION_ID

Enumerator
ID_DECREMENT 
ID_CHANGE_STEP 
ID_INCREMENT 

Definition at line 82 of file albaGUICrossIncremental.h.

◆ CROSS_INCREMENTAL_MODE_ID

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.

Constructor & Destructor Documentation

◆ albaGUICrossIncremental()

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 
)

◆ ~albaGUICrossIncremental()

virtual albaGUICrossIncremental::~albaGUICrossIncremental ( )
virtual

Member Function Documentation

◆ EnableStep()

void albaGUICrossIncremental::EnableStep ( bool  value)

◆ SetListener()

void albaGUICrossIncremental::SetListener ( albaObserver Listener)
inline

Definition at line 102 of file albaGUICrossIncremental.h.

◆ OnEvent()

void albaGUICrossIncremental::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ IsIncrement()

int albaGUICrossIncremental::IsIncrement ( )
inline

Definition at line 105 of file albaGUICrossIncremental.h.

◆ GetTopBottomVariation()

double albaGUICrossIncremental::GetTopBottomVariation ( )
inline

Definition at line 106 of file albaGUICrossIncremental.h.

◆ GetLeftRightVariation()

double albaGUICrossIncremental::GetLeftRightVariation ( )
inline

Definition at line 107 of file albaGUICrossIncremental.h.

◆ SetStepVariable()

void albaGUICrossIncremental::SetStepVariable ( double  step)

◆ SetComboBoxItems()

void albaGUICrossIncremental::SetComboBoxItems ( wxArrayString &  array,
int  selected = 0 
)

◆ LayoutStyle()

void albaGUICrossIncremental::LayoutStyle ( const char *  label)

◆ SetTextButtonTop()

void albaGUICrossIncremental::SetTextButtonTop ( const char *  text)

◆ SetTextButtonBottom()

void albaGUICrossIncremental::SetTextButtonBottom ( const char *  text)

◆ SetTextButtonLeft()

void albaGUICrossIncremental::SetTextButtonLeft ( const char *  text)

◆ SetTextButtonRight()

void albaGUICrossIncremental::SetTextButtonRight ( const char *  text)

◆ GetComboBox()

albaGUIComboBox * albaGUICrossIncremental::GetComboBox ( )
inline

Definition at line 120 of file albaGUICrossIncremental.h.

◆ SetComboValue()

void albaGUICrossIncremental::SetComboValue ( int  index)

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