]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/slider.cpp
Common wxListCtrl control name.
[wxWidgets.git] / src / palmos / slider.cpp
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: slider.cpp
3// Purpose: wxSlider
4// Author: William Osborne
5// Modified by:
6// Created: 10/13/04
7// RCS-ID: $Id:
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13#pragma implementation "slider.h"
14#endif
15
16// For compilers that support precompilation, includes "wx.h".
17#include "wx/wxprec.h"
18
19#ifdef __BORLANDC__
20#pragma hdrstop
21#endif
22
23#if wxUSE_SLIDER
24
25#ifndef WX_PRECOMP
26#include "wx/utils.h"
27#include "wx/brush.h"
28#include "wx/slider.h"
29#endif
30
31#include "wx/palmos/slider.h"
32#include "wx/palmos/private.h"
33
34#if wxUSE_EXTENDED_RTTI
35WX_DEFINE_FLAGS( wxSliderStyle )
36
37wxBEGIN_FLAGS( wxSliderStyle )
38 // new style border flags, we put them first to
39 // use them for streaming out
40 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
41 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
42 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
43 wxFLAGS_MEMBER(wxBORDER_RAISED)
44 wxFLAGS_MEMBER(wxBORDER_STATIC)
45 wxFLAGS_MEMBER(wxBORDER_NONE)
46
47 // old style border flags
48 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
49 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
50 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
51 wxFLAGS_MEMBER(wxRAISED_BORDER)
52 wxFLAGS_MEMBER(wxSTATIC_BORDER)
53 wxFLAGS_MEMBER(wxBORDER)
54
55 // standard window styles
56 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
57 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
58 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
59 wxFLAGS_MEMBER(wxWANTS_CHARS)
60 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
61 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
62 wxFLAGS_MEMBER(wxVSCROLL)
63 wxFLAGS_MEMBER(wxHSCROLL)
64
65 wxFLAGS_MEMBER(wxSL_HORIZONTAL)
66 wxFLAGS_MEMBER(wxSL_VERTICAL)
67 wxFLAGS_MEMBER(wxSL_AUTOTICKS)
68 wxFLAGS_MEMBER(wxSL_LABELS)
69 wxFLAGS_MEMBER(wxSL_LEFT)
70 wxFLAGS_MEMBER(wxSL_TOP)
71 wxFLAGS_MEMBER(wxSL_RIGHT)
72 wxFLAGS_MEMBER(wxSL_BOTTOM)
73 wxFLAGS_MEMBER(wxSL_BOTH)
74 wxFLAGS_MEMBER(wxSL_SELRANGE)
75
76wxEND_FLAGS( wxSliderStyle )
77
78IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider, wxControl,"wx/scrolbar.h")
79
80wxBEGIN_PROPERTIES_TABLE(wxSlider)
81 wxEVENT_RANGE_PROPERTY( Scroll , wxEVT_SCROLL_TOP , wxEVT_SCROLL_ENDSCROLL , wxScrollEvent )
82 wxEVENT_PROPERTY( Updated , wxEVT_COMMAND_SLIDER_UPDATED , wxCommandEvent )
83
84 wxPROPERTY( Value , int , SetValue, GetValue , 0, 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
85 wxPROPERTY( Minimum , int , SetMin, GetMin, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
86 wxPROPERTY( Maximum , int , SetMax, GetMax, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
87 wxPROPERTY( PageSize , int , SetPageSize, GetLineSize, 1 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
88 wxPROPERTY( LineSize , int , SetLineSize, GetLineSize, 1 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
89 wxPROPERTY( ThumbLength , int , SetThumbLength, GetThumbLength, 1 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
90 wxPROPERTY_FLAGS( WindowStyle , wxSliderStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
91wxEND_PROPERTIES_TABLE()
92
93wxBEGIN_HANDLERS_TABLE(wxSlider)
94wxEND_HANDLERS_TABLE()
95
96wxCONSTRUCTOR_8( wxSlider , wxWindow* , Parent , wxWindowID , Id , int , Value , int , Minimum , int , Maximum , wxPoint , Position , wxSize , Size , long , WindowStyle )
97#else
98IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
99#endif
100
101// Slider
102wxSlider::wxSlider()
103{
104}
105
106bool wxSlider::Create(wxWindow *parent, wxWindowID id,
107 int value, int minValue, int maxValue,
108 const wxPoint& pos,
109 const wxSize& size, long style,
110 const wxValidator& validator,
111 const wxString& name)
112{
113 return false;
114}
115
116bool wxSlider::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
117 WXWORD WXUNUSED(pos), WXHWND control)
118{
119 return false;
120}
121
122wxSlider::~wxSlider()
123{
124}
125
126int wxSlider::GetValue() const
127{
128 return 0;
129}
130
131void wxSlider::SetValue(int value)
132{
133}
134
135void wxSlider::DoGetSize(int *width, int *height) const
136{
137}
138
139void wxSlider::GetPosition(int *x, int *y) const
140{
141}
142
143void wxSlider::DoSetSize(int x, int y, int width, int height, int sizeFlags)
144{
145}
146
147
148wxSize wxSlider::DoGetBestSize() const
149{
150 return wxSize(0,0);
151}
152
153
154void wxSlider::SetRange(int minValue, int maxValue)
155{
156}
157
158WXHBRUSH wxSlider::OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
159 WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
160{
161 return 0;
162}
163
164void wxSlider::SetTickFreq(int n, int pos)
165{
166}
167
168void wxSlider::SetPageSize(int pageSize)
169{
170}
171
172int wxSlider::GetPageSize() const
173{
174 return 0;
175}
176
177void wxSlider::ClearSel()
178{
179}
180
181void wxSlider::ClearTicks()
182{
183}
184
185void wxSlider::SetLineSize(int lineSize)
186{
187}
188
189int wxSlider::GetLineSize() const
190{
191 return 0;
192}
193
194int wxSlider::GetSelEnd() const
195{
196 return 0;
197}
198
199int wxSlider::GetSelStart() const
200{
201 return 0;
202}
203
204void wxSlider::SetSelection(int minPos, int maxPos)
205{
206}
207
208void wxSlider::SetThumbLength(int len)
209{
210}
211
212int wxSlider::GetThumbLength() const
213{
214 return 0;
215}
216
217void wxSlider::SetTick(int tickPos)
218{
219}
220
221bool wxSlider::ContainsHWND(WXHWND hWnd) const
222{
223 return false;
224}
225
226void wxSlider::Command (wxCommandEvent & event)
227{
228}
229
230bool wxSlider::Show(bool show)
231{
232 return false;
233}
234
235#endif // wxUSE_SLIDER