16#ifndef __albaGUIValidator_H__
17#define __albaGUIValidator_H__
21#include <wx/validate.h>
22#include "wx/listctrl.h"
124 wxStaticText *m_StaticText;
125 wxTextCtrl *m_TextCtrl;
128 wxCheckBox *m_CheckBox;
129 wxRadioBox *m_RadioBox;
130 wxComboBox *m_ComboBox;
132 wxListBox *m_ListBox;
133 wxListCtrl *m_ListCtrl;
138 wxString *m_StringVar;
140 wxColour *m_ColorVar;
@ VAL_ALBA_MULTILINE_STRING
@ VAL_MULTILINE_INTERACTIVE_STRING
@ VAL_ALBA_MULTILINE_INTERACTIVE_STRING
@ VAL_ALBA_INTERACTIVE_STRING
a Slider that can be used to set double values, albaGUIFloatSlider send usual wxWindows Events; Use a...
bool Copy(const albaGUIValidator &val)
albaGUIValidator(albaObserver *listener, int mid, wxSlider *win, int *var, wxTextCtrl *lab)
void GetWidgetData(WidgetDataType &widget_data)
Fill widget_data with the active widget value.
albaGUIValidator(albaObserver *listener, int mid, wxButton *win, albaString *var, wxTextCtrl *lab)
void OnKillFocus(wxFocusEvent &event)
albaGUIValidator(albaObserver *listener, int mid, wxButton *win, wxColour *var, wxTextCtrl *lab)
albaGUIValidator(albaObserver *listener, int mid, wxComboBox *win, int *var)
void OnButton(wxCommandEvent &event)
albaGUIValidator(albaObserver *listener, int mid, albaGUIFloatSlider *win, double *var, wxTextCtrl *lab)
albaGUIValidator(albaObserver *listener, int mid, wxTextCtrl *win, float *var, float min=-1.0e+38F, float max=1.0e+38F, int dec_digits=2)
albaGUIValidator(const albaGUIValidator &val)
albaGUIValidator(albaObserver *listener, int mid, wxStaticText *win, albaString *var)
virtual wxObject * Clone(void) const
virtual bool TransferToWindow(void)
albaGUIValidator(albaObserver *listener, int mid, wxTextCtrl *win, int *var, int min=-2147483647-1, int max=2147483647)
void OnKeyUp(wxKeyEvent &event)
void OnScrollEvent(wxScrollEvent &event)
albaGUIValidator(albaObserver *listener, int mid, wxTextCtrl *win, wxString *var, bool interactive=false, bool multiline=false)
void Init(albaObserver *listener, int mid, wxControl *win)
albaGUIValidator(albaObserver *listener, int mid, wxTextCtrl *win, int *var, wxSlider *lab, int min=-2147483647-1, int max=2147483647)
virtual bool TransferFromWindow(void)
albaGUIValidator(albaObserver *listener, int mid, wxListCtrl *win)
void SetWidgetData(WidgetDataType &widget_data)
Fill m_WidgetData member variable with widget_data information and validate it.
albaGUIValidator(albaObserver *listener, int mid, wxTextCtrl *win, double *var, albaGUIFloatSlider *lab, double min=-1.0e+299, double max=1.0e+299)
albaGUIValidator(albaObserver *listener, int mid, wxButton *win)
void OnChar(wxKeyEvent &event)
albaGUIValidator(albaObserver *listener, int mid, wxTextCtrl *win, double *var, double min=-1.0e+299, double max=1.0e+299, int dec_digits=2)
void OnCommandEvent(wxCommandEvent &event)
virtual bool Validate(wxWindow *parent)
albaGUIValidator(albaObserver *listener, int mid, wxButton *win, albaString *var, wxTextCtrl *lab, bool openfile, const albaString wildcard)
albaGUIValidator(albaObserver *listener, int mid, wxCheckBox *win, int *var)
albaGUIValidator(albaObserver *listener, int mid, wxListBox *win)
albaGUIValidator(albaObserver *listener, int mid, wxTextCtrl *win, albaString *var, bool interactive=false, bool multiline=false)
albaGUIValidator(albaObserver *listener, int mid, wxStaticText *win, wxString *var)
albaGUIValidator(albaObserver *listener, int mid, wxRadioBox *win, int *var)
Interface implementing the Observer of the Subject/Observer design pattern.
albaString - performs common string operations on c-strings.