]> git.saurik.com Git - wxWidgets.git/blob - src/stubs/slider.cpp
using wxURL now enforces linking http.o, ftp.o and sckfile.o
[wxWidgets.git] / src / stubs / slider.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: slider.cpp
3 // Purpose: wxSlider
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "slider.h"
14 #endif
15
16 #include "wx/slider.h"
17
18 IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
19
20 BEGIN_EVENT_TABLE(wxSlider, wxControl)
21 END_EVENT_TABLE()
22
23
24
25 // Slider
26 wxSlider::wxSlider()
27 {
28 m_pageSize = 1;
29 m_lineSize = 1;
30 m_rangeMax = 0;
31 m_rangeMin = 0;
32 m_tickFreq = 0;
33 }
34
35 bool wxSlider::Create(wxWindow *parent, wxWindowID id,
36 int value, int minValue, int maxValue,
37 const wxPoint& pos,
38 const wxSize& size, long style,
39 const wxValidator& validator,
40 const wxString& name)
41 {
42 SetName(name);
43 SetValidator(validator);
44
45 if (parent) parent->AddChild(this);
46
47 m_lineSize = 1;
48 m_windowStyle = style;
49 m_tickFreq = 0;
50
51 if ( id == -1 )
52 m_windowId = (int)NewControlId();
53 else
54 m_windowId = id;
55
56 m_rangeMax = maxValue;
57 m_rangeMin = minValue;
58
59 m_pageSize = (int)((maxValue-minValue)/10);
60
61 // TODO create slider
62
63 return FALSE;
64 }
65
66 wxSlider::~wxSlider()
67 {
68 }
69
70 int wxSlider::GetValue() const
71 {
72 // TODO
73 return 0;
74 }
75
76 void wxSlider::SetValue(int value)
77 {
78 // TODO
79 }
80
81 void wxSlider::GetSize(int *width, int *height) const
82 {
83 // TODO
84 }
85
86 void wxSlider::GetPosition(int *x, int *y) const
87 {
88 // TODO
89 }
90
91 void wxSlider::SetSize(int x, int y, int width, int height, int sizeFlags)
92 {
93 // TODO
94 }
95
96 void wxSlider::SetRange(int minValue, int maxValue)
97 {
98 m_rangeMin = minValue;
99 m_rangeMax = maxValue;
100
101 // TODO
102 }
103
104 // For trackbars only
105 void wxSlider::SetTickFreq(int n, int pos)
106 {
107 // TODO
108 m_tickFreq = n;
109 }
110
111 void wxSlider::SetPageSize(int pageSize)
112 {
113 // TODO
114 m_pageSize = pageSize;
115 }
116
117 int wxSlider::GetPageSize() const
118 {
119 return m_pageSize;
120 }
121
122 void wxSlider::ClearSel()
123 {
124 // TODO
125 }
126
127 void wxSlider::ClearTicks()
128 {
129 // TODO
130 }
131
132 void wxSlider::SetLineSize(int lineSize)
133 {
134 m_lineSize = lineSize;
135 // TODO
136 }
137
138 int wxSlider::GetLineSize() const
139 {
140 // TODO
141 return 0;
142 }
143
144 int wxSlider::GetSelEnd() const
145 {
146 // TODO
147 return 0;
148 }
149
150 int wxSlider::GetSelStart() const
151 {
152 // TODO
153 return 0;
154 }
155
156 void wxSlider::SetSelection(int minPos, int maxPos)
157 {
158 // TODO
159 }
160
161 void wxSlider::SetThumbLength(int len)
162 {
163 // TODO
164 }
165
166 int wxSlider::GetThumbLength() const
167 {
168 // TODO
169 return 0;
170 }
171
172 void wxSlider::SetTick(int tickPos)
173 {
174 // TODO
175 }
176
177 void wxSlider::Command (wxCommandEvent & event)
178 {
179 SetValue (event.GetInt());
180 ProcessCommand (event);
181 }
182
183 bool wxSlider::Show(bool show)
184 {
185 // TODO
186 return TRUE;
187 }
188