#include <slidercombo.h>
Inheritance diagram for wxSliderCombo:
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 () |
Definition at line 27 of file slidercombo.h.
|
Definition at line 31 of file slidercombo.h. 00031 { Init(); }
|
|
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 }
|
|
Definition at line 150 of file slidercombo.cpp.
|
|
Definition at line 260 of file slidercombo.cpp. 00261 { 00262 m_slider->ClearSel(); 00263 }
|
|
Definition at line 250 of file slidercombo.cpp. 00251 { 00252 m_slider->ClearTicks(); 00253 }
|
|
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 }
|
|
Definition at line 164 of file slidercombo.cpp. 00165 { 00166 return m_automatic_updates; 00167 }
|
|
Definition at line 220 of file slidercombo.cpp. 00221 { 00222 return m_slider->GetLineSize(); 00223 }
|
|
Definition at line 225 of file slidercombo.cpp. 00226 { 00227 return m_slider->GetPageSize(); 00228 }
|
|
Definition at line 265 of file slidercombo.cpp. 00266 { 00267 return m_slider->GetSelEnd(); 00268 }
|
|
Definition at line 270 of file slidercombo.cpp. 00271 { 00272 return m_slider->GetSelStart(); 00273 }
|
|
Definition at line 195 of file slidercombo.cpp. 00196 { 00197 return m_slider->GetMax(); 00198 }
|
|
Definition at line 190 of file slidercombo.cpp. 00191 { 00192 return m_slider->GetMin(); 00193 }
|
|
Definition at line 174 of file slidercombo.cpp. 00175 { 00176 return m_slider->GetValue(); 00177 }
|
|
Definition at line 235 of file slidercombo.cpp. 00236 { 00237 return m_slider->GetThumbLength(); 00238 }
|
|
Definition at line 245 of file slidercombo.cpp. 00246 { 00247 return m_slider->GetTickFreq(); 00248 }
|
|
Definition at line 154 of file slidercombo.cpp. 00155 { 00156 return m_suffix; 00157 }
|
|
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 }
|
|
Definition at line 169 of file slidercombo.cpp. 00170 { 00171 m_automatic_updates = automatic_updates; 00172 }
|
|
Definition at line 210 of file slidercombo.cpp. 00211 { 00212 m_slider->SetLineSize(lineSize); 00213 }
|
|
Definition at line 215 of file slidercombo.cpp. 00216 { 00217 m_slider->SetPageSize(pageSize); 00218 }
|
|
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 }
|
|
Definition at line 275 of file slidercombo.cpp. 00276 { 00277 m_slider->SetSelection(min,max); 00278 }
|
|
Definition at line 205 of file slidercombo.cpp. 00206 { 00207 m_slider->SetMax(maxValue); 00208 }
|
|
Definition at line 200 of file slidercombo.cpp. 00201 { 00202 m_slider->SetMin(minValue); 00203 }
|
|
Definition at line 179 of file slidercombo.cpp. 00180 { 00181 m_slider->SetValue(value); 00182 }
|
|
Definition at line 230 of file slidercombo.cpp. 00231 { 00232 m_slider->SetThumbLength(lenPixels); 00233 }
|
|
Definition at line 255 of file slidercombo.cpp. 00256 { 00257 m_slider->SetTick(tickPos); 00258 }
|
|
Definition at line 240 of file slidercombo.cpp.
|
|
Definition at line 159 of file slidercombo.cpp. 00160 { 00161 m_suffix = suffix; 00162 }
|
|
Definition at line 109 of file slidercombo.h. |
|
Definition at line 107 of file slidercombo.h. |
|
Definition at line 108 of file slidercombo.h. |