]> git.saurik.com Git - wxWidgets.git/blame - src/qt/gauge.cpp
Commited updated list of files to compile.
[wxWidgets.git] / src / qt / gauge.cpp
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge.cpp
01b2eeec
KB
3// Purpose: wxGauge class
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "gauge.h"
14#endif
15
16#include "wx/gauge.h"
17
01b2eeec 18IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
01b2eeec
KB
19
20bool wxGauge::Create(wxWindow *parent, wxWindowID id,
21 int range,
22 const wxPoint& pos,
23 const wxSize& size,
24 long style,
25 const wxValidator& validator,
26 const wxString& name)
27{
28 SetName(name);
29 SetValidator(validator);
30 m_rangeMax = range;
31 m_windowStyle = style;
32
33 if (parent) parent->AddChild(this);
34
35 if ( id == -1 )
36 m_windowId = (int)NewControlId();
37 else
38 m_windowId = id;
39
40
41 // TODO
42 return FALSE;
43}
44
45void wxGauge::SetSize(int x, int y, int width, int height, int sizeFlags)
46{
47 // TODO
48}
7c78e7c7 49
01b2eeec
KB
50void wxGauge::SetShadowWidth(int w)
51{
52 // TODO optional
53}
54
55void wxGauge::SetBezelFace(int w)
56{
57 // TODO optional
58}
59
60void wxGauge::SetRange(int r)
61{
62 m_rangeMax = r;
63 // TODO
64}
65
66void wxGauge::SetValue(int pos)
67{
68 m_gaugePos = pos;
69 // TODO
70}
71
72int wxGauge::GetShadowWidth() const
73{
74 // TODO optional
75 return 0;
76}
7c78e7c7 77
01b2eeec 78int wxGauge::GetBezelFace() const
7c78e7c7 79{
01b2eeec
KB
80 // TODO optional
81 return 0;
82}
7c78e7c7 83
01b2eeec 84int wxGauge::GetRange() const
7c78e7c7 85{
01b2eeec
KB
86 return m_rangeMax;
87}
7c78e7c7 88
01b2eeec 89int wxGauge::GetValue() const
7c78e7c7 90{
01b2eeec
KB
91 return m_gaugePos;
92}
7c78e7c7 93
01b2eeec 94void wxGauge::SetForegroundColour(const wxColour& col)
7c78e7c7 95{
01b2eeec
KB
96 m_foregroundColour = col ;
97}
7c78e7c7 98
01b2eeec 99void wxGauge::SetBackgroundColour(const wxColour& col)
7c78e7c7 100{
01b2eeec
KB
101 m_backgroundColour = col ;
102}
7c78e7c7 103