]> git.saurik.com Git - wxWidgets.git/blob - src/qt/gauge.cpp
More configure fixes
[wxWidgets.git] / src / qt / gauge.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: gauge.cpp
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifdef __GNUG__
12 #pragma implementation "gauge.h"
13 #endif
14
15 #include "wx/gauge.h"
16
17 //-----------------------------------------------------------------------------
18 // wxGauge
19 //-----------------------------------------------------------------------------
20
21 IMPLEMENT_DYNAMIC_CLASS(wxGauge,wxControl)
22
23 bool wxGauge::Create( wxWindow *parent, wxWindowID id, int range,
24 const wxPoint& pos, const wxSize& size,
25 long style, const wxString& name )
26 {
27 return TRUE;
28 };
29
30 void wxGauge::SetRange( int r )
31 {
32 m_rangeMax = r;
33 if (m_gaugePos > m_rangeMax) m_gaugePos = m_rangeMax;
34 };
35
36 void wxGauge::SetValue( int pos )
37 {
38 m_gaugePos = pos;
39 if (m_gaugePos > m_rangeMax) m_gaugePos = m_rangeMax;
40 };
41
42 int wxGauge::GetRange(void) const
43 {
44 return m_rangeMax;
45 };
46
47 int wxGauge::GetValue(void) const
48 {
49 return m_gaugePos;
50 };
51