17#ifndef __albaGUILutSlider_H__
18#define __albaGUILutSlider_H__
45 const wxPoint& pos = wxDefaultPosition,
46 const wxSize& size = wxDefaultSize,
47 long style = wxBORDER_SIMPLE | wxCLIP_CHILDREN,
48 const char* middleButtonTitle =
"windowing"
75 void GetRange(
double *rmin,
double *rmax) { *rmin = m_MinValue; *rmax = m_MaxValue; };
78 void GetRange(
double *range) { range[0] = m_MinValue; range[1] = m_MaxValue; };
87 void GetSubRange(
double *low,
double *hi) { *low = m_LowValue; *hi = m_HighValue; };
90 void GetSubRange(
double *range) { range[0] = m_LowValue; range[1] = m_HighValue; };
albaEvent - Class implementing ALBA application events.
albaGUILutSlider is a Label that notify user-click using the normal wxEvents.
void SetText(long i, wxString text)
Set the label text.
albaGUILutButt * m_MinButton
void EnableMinButton(bool enable)
Enable/Disable min button.
void ShowEntry(int id)
Show an entry to insert a numerical values from keyboard.
void SetFixedTextMaxButton(const char *label)
Set the fixed text for max button.
void SetFloatingPointTextOn()
Set the label background colour.
void EnableMiddleButton(bool enable)
Enable/Disable middle button.
bool m_FixedText
flag used for visualization of fixed text, default: false
void UpdateButtons()
Update slider's cursors position.
void SetFloatingPointTextOff()
void EnableMaxButton(bool enable)
Enable/Disable max button.
void SetFixedTextMinButton(const char *label)
Set the fixed text for min button.
void GetRange(double *rmin, double *rmax)
Get the range of the double slider.
void SetRange(double rmin, double rmax)
Set the range of the double slider.
albaGUILutSlider(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxBORDER_SIMPLE|wxCLIP_CHILDREN, const char *middleButtonTitle="windowing")
void ReleaseButton()
Set the position of the slider's cursors and send the event foe range modified.
void SetSubRange(double low, double hi)
Set the values of the slider's cursors.
void MoveButton(int id, int pos)
Set the position of the slider's cursors and send the event foe range modified.
void GetSubRange(double *low, double *hi)
Get the values of the slider's cursors.
void SetRange(double *range)
Set the range of the double slider.
wxStaticText * m_MinLabel
void SetFixedTextOff()
Turn Off the fixed text for labels.
void SetColour(long i, wxColour colour)
Set the label background colour.
albaObserver * m_Listener
wxStaticText * m_MaxLabel
void GetSubRange(double *range)
Get the values of the slider's cursors.
void OnSize(wxSizeEvent &event)
Update slider's cursors.
albaGUILutButt * m_MaxButton
void SetFixedTextOn()
Turn On the fixed text for labels.
bool m_FloatingPointText
flag used for visualization of decimal in the title of button, default : false
void SetListener(albaObserver *listener)
void SetSubRange(const double *range)
Set the values of the slider's cursors.
void GetRange(double *range)
Get the range of the double slider.
albaGUILutButt * m_MiddleButton
Interface implementing the Observer of the Subject/Observer design pattern.