wxSliderCombo Class Reference

#include <slidercombo.h>

Inheritance diagram for wxSliderCombo:

wxComboCtrl wxGenericComboControl wxComboCtrlBase List of all members.

Public Member Functions

 wxSliderCombo ()
 wxSliderCombo (wxWindow *parent, wxWindowID id=wxID_ANY, int value=0, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxT("wxSliderComboBox"))
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, int value=0, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxT("wxSliderComboBox"))
virtual ~wxSliderCombo ()
wxString GetValueSuffix () const
void SetValueSuffix (wxString &suffix)
bool GetAutomaticUpdates () const
void SetAutomaticUpdates (bool)
int GetSliderValue () const
void SetSliderValue (int value)
void SetRange (int minValue, int maxValue)
int GetSliderMin () const
int GetSliderMax () const
void SetSliderMin (int minValue)
void SetSliderMax (int maxValue)
void SetLineSize (int lineSize)
void SetPageSize (int pageSize)
int GetLineSize () const
int GetPageSize () const
void SetThumbLength (int lenPixels)
int GetThumbLength () const
void SetTickFreq (int n, int pos)
int GetTickFreq () const
void ClearTicks ()
void SetTick (int tickPos)
void ClearSel ()
int GetSelEnd () const
int GetSelStart () const
void SetSelection (int min, int max)

Protected Attributes

wxSlider * m_slider
wxString m_suffix
bool m_automatic_updates

Private Member Functions

void Init ()

Detailed Description

Definition at line 27 of file slidercombo.h.


Constructor & Destructor Documentation

wxSliderCombo::wxSliderCombo  )  [inline]
 

Definition at line 31 of file slidercombo.h.

00031 { Init(); }

wxSliderCombo::wxSliderCombo wxWindow *  parent,
wxWindowID  id = wxID_ANY,
int  value = 0,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxString &  name = wxT("wxSliderComboBox")
 

Definition at line 125 of file slidercombo.cpp.

00128         : initial string and validator should maybe be in our ctor too?
00129 {
00130     Init();
00131     Create(parent, id, value, pos, size, style, name);
00132 }

wxSliderCombo::~wxSliderCombo  )  [virtual]
 

Definition at line 150 of file slidercombo.cpp.

00151 {
00152 }


Member Function Documentation

void wxSliderCombo::ClearSel  ) 
 

Definition at line 260 of file slidercombo.cpp.

00261 {
00262     m_slider->ClearSel();
00263 }

void wxSliderCombo::ClearTicks  ) 
 

Definition at line 250 of file slidercombo.cpp.

00251 {
00252     m_slider->ClearTicks();
00253 }

bool wxSliderCombo::Create wxWindow *  parent,
wxWindowID  id = wxID_ANY,
int  value = 0,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxString &  name = wxT("wxSliderComboBox")
 

Definition at line 134 of file slidercombo.cpp.

00138 {
00139     if (wxComboCtrl::Create(parent, id, wxEmptyString, pos, size, style, wxDefaultValidator, name))
00140     {
00141         wxSliderComboPopup* sliderpopup = new wxSliderComboPopup();
00142         m_slider = sliderpopup;
00143         SetPopupControl(sliderpopup);
00144         m_slider->SetValue(value);
00145         return true;
00146     }
00147     return false;
00148 }

bool wxSliderCombo::GetAutomaticUpdates  )  const
 

Definition at line 164 of file slidercombo.cpp.

00165 {
00166     return m_automatic_updates;
00167 }

int wxSliderCombo::GetLineSize  )  const
 

Definition at line 220 of file slidercombo.cpp.

00221 {
00222     return m_slider->GetLineSize();
00223 }

int wxSliderCombo::GetPageSize  )  const
 

Definition at line 225 of file slidercombo.cpp.

00226 {
00227     return m_slider->GetPageSize();
00228 }

int wxSliderCombo::GetSelEnd  )  const
 

Definition at line 265 of file slidercombo.cpp.

00266 {
00267     return m_slider->GetSelEnd();
00268 }

int wxSliderCombo::GetSelStart  )  const
 

Definition at line 270 of file slidercombo.cpp.

00271 {
00272     return m_slider->GetSelStart();
00273 }

int wxSliderCombo::GetSliderMax  )  const
 

Definition at line 195 of file slidercombo.cpp.

00196 {
00197     return m_slider->GetMax();
00198 }

int wxSliderCombo::GetSliderMin  )  const
 

Definition at line 190 of file slidercombo.cpp.

00191 {
00192     return m_slider->GetMin();
00193 }

int wxSliderCombo::GetSliderValue  )  const
 

Definition at line 174 of file slidercombo.cpp.

00175 {
00176     return m_slider->GetValue();
00177 }

int wxSliderCombo::GetThumbLength  )  const
 

Definition at line 235 of file slidercombo.cpp.

00236 {
00237     return m_slider->GetThumbLength();
00238 }

int wxSliderCombo::GetTickFreq  )  const
 

Definition at line 245 of file slidercombo.cpp.

00246 {
00247     return m_slider->GetTickFreq();
00248 }

wxString wxSliderCombo::GetValueSuffix  )  const
 

Definition at line 154 of file slidercombo.cpp.

00155 {
00156     return m_suffix;
00157 }

void wxSliderCombo::Init  )  [private]
 

Reimplemented from wxGenericComboControl.

Definition at line 118 of file slidercombo.cpp.

00119 {
00120     m_slider = NULL;
00121     m_suffix = wxEmptyString;
00122     m_automatic_updates = true;
00123 }

void wxSliderCombo::SetAutomaticUpdates bool   ) 
 

Definition at line 169 of file slidercombo.cpp.

00170 {
00171     m_automatic_updates = automatic_updates;
00172 }

void wxSliderCombo::SetLineSize int  lineSize  ) 
 

Definition at line 210 of file slidercombo.cpp.

00211 {
00212     m_slider->SetLineSize(lineSize);
00213 }

void wxSliderCombo::SetPageSize int  pageSize  ) 
 

Definition at line 215 of file slidercombo.cpp.

00216 {
00217     m_slider->SetPageSize(pageSize);
00218 }

void wxSliderCombo::SetRange int  minValue,
int  maxValue
 

Definition at line 184 of file slidercombo.cpp.

00185 {
00186     m_slider->SetRange(minValue, maxValue);
00187     // FIXME: Perhaps need to sync with text control
00188 }

void wxSliderCombo::SetSelection int  min,
int  max
 

Definition at line 275 of file slidercombo.cpp.

00276 {
00277     m_slider->SetSelection(min,max);
00278 }

void wxSliderCombo::SetSliderMax int  maxValue  ) 
 

Definition at line 205 of file slidercombo.cpp.

00206 {
00207     m_slider->SetMax(maxValue);
00208 }

void wxSliderCombo::SetSliderMin int  minValue  ) 
 

Definition at line 200 of file slidercombo.cpp.

00201 {
00202     m_slider->SetMin(minValue);
00203 }

void wxSliderCombo::SetSliderValue int  value  ) 
 

Definition at line 179 of file slidercombo.cpp.

00180 {
00181     m_slider->SetValue(value);
00182 }

void wxSliderCombo::SetThumbLength int  lenPixels  ) 
 

Definition at line 230 of file slidercombo.cpp.

00231 {
00232     m_slider->SetThumbLength(lenPixels);
00233 }

void wxSliderCombo::SetTick int  tickPos  ) 
 

Definition at line 255 of file slidercombo.cpp.

00256 {
00257     m_slider->SetTick(tickPos);
00258 }

void wxSliderCombo::SetTickFreq int  n,
int  pos
 

Definition at line 240 of file slidercombo.cpp.

00241 {
00242     m_slider->SetTickFreq(n, pos);
00243 }

void wxSliderCombo::SetValueSuffix wxString &  suffix  ) 
 

Definition at line 159 of file slidercombo.cpp.

00160 {
00161     m_suffix = suffix;
00162 }


Member Data Documentation

bool wxSliderCombo::m_automatic_updates [protected]
 

Definition at line 109 of file slidercombo.h.

wxSlider* wxSliderCombo::m_slider [protected]
 

Definition at line 107 of file slidercombo.h.

wxString wxSliderCombo::m_suffix [protected]
 

Definition at line 108 of file slidercombo.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:03:19 2007 for Camelot by  doxygen 1.4.4