]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/slider.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "slider.h"
16 #include "wx/slider.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 IMPLEMENT_DYNAMIC_CLASS(wxSlider
,wxControl
)
25 wxSlider::wxSlider(void)
29 wxSlider::wxSlider( wxWindow
*parent
, wxWindowID id
,
30 int value
, int minValue
, int maxValue
,
31 const wxPoint
& pos
, const wxSize
& size
,
33 /* const wxValidator& validator = wxDefaultValidator, */
34 const wxString
& name
)
36 Create( parent
, id
, value
, minValue
, maxValue
,
37 pos
, size
, style
, name
);
40 wxSlider::~wxSlider(void)
44 bool wxSlider::Create(wxWindow
*parent
, wxWindowID id
,
45 int value
, int minValue
, int maxValue
,
46 const wxPoint
& pos
, const wxSize
& size
,
48 /* const wxValidator& validator = wxDefaultValidator, */
49 const wxString
& name
)
54 int wxSlider::GetValue(void) const
58 void wxSlider::SetValue( int value
)
62 void wxSlider::SetRange( int minValue
, int maxValue
)
66 int wxSlider::GetMin(void) const
70 int wxSlider::GetMax(void) const
74 void wxSlider::SetPageSize( int pageSize
)
78 int wxSlider::GetPageSize(void) const
82 void wxSlider::SetThumbLength( int len
)
86 int wxSlider::GetThumbLength(void) const
90 void wxSlider::SetLineSize( int WXUNUSED(lineSize
) )
94 int wxSlider::GetLineSize(void) const
98 void wxSlider::GetSize( int *x
, int *y
) const
100 wxWindow::GetSize( x
, y
);
103 void wxSlider::SetSize( int x
, int y
, int width
, int height
, int sizeFlags
)
105 wxWindow::SetSize( x
, y
, width
, height
, sizeFlags
);
108 void wxSlider::GetPosition( int *x
, int *y
) const
110 wxWindow::GetPosition( x
, y
);
113 void wxSlider::SetTick( int WXUNUSED(tickPos
) )
117 void wxSlider::SetTickFreq( int WXUNUSED(n
), int WXUNUSED(pos
) )
121 int wxSlider::GetTickFreq(void) const
126 void wxSlider::ClearTicks(void)
130 void wxSlider::SetSelection( int WXUNUSED(minPos
), int WXUNUSED(maxPos
) )
134 int wxSlider::GetSelEnd(void) const
139 int wxSlider::GetSelStart(void) const
144 void wxSlider::ClearSel(void)