]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gauge.h
Cleaned up remains of outdated 3D effect handling.
[wxWidgets.git] / include / wx / gauge.h
CommitLineData
1e6feb95
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/gauge.h
3// Purpose: wxGauge interface
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 20.02.01
7// RCS-ID: $Id$
8// Copyright: (c) 1996-2001 wxWindows team
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_GAUGE_H_BASE_
13#define _WX_GAUGE_H_BASE_
c801d85f 14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
af49c4b8 16 #pragma interface "gaugebase.h"
1e6feb95
VZ
17#endif
18
19#include "wx/defs.h"
20
21#if wxUSE_GAUGE
22
23#include "wx/control.h"
24
25WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
26
27// ----------------------------------------------------------------------------
28// wxGauge: a progress bar
29// ----------------------------------------------------------------------------
30
31class WXDLLEXPORT wxGaugeBase : public wxControl
32{
33public:
fc7a2a60 34 wxGaugeBase() { }
799ea011
GD
35 virtual ~wxGaugeBase();
36
1e6feb95
VZ
37 bool Create(wxWindow *parent,
38 wxWindowID id,
39 int range,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 long style = wxGA_HORIZONTAL,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxGaugeNameStr);
45
46 // set/get the control range
47 virtual void SetRange(int range);
48 virtual int GetRange() const;
49
50 // position
51 virtual void SetValue(int pos);
52 virtual int GetValue() const;
53
54 // appearance params (not implemented for most ports)
55
56 virtual void SetShadowWidth(int w);
57 virtual int GetShadowWidth() const;
58
59 virtual void SetBezelFace(int w);
60 virtual int GetBezelFace() const;
61
62 // overriden base class virtuals
63 virtual bool AcceptsFocus() const { return FALSE; }
64
65protected:
66 // the max position
67 int m_rangeMax;
68
69 // the current position
70 int m_gaugePos;
fc7a2a60
VZ
71
72 DECLARE_NO_COPY_CLASS(wxGaugeBase)
1e6feb95
VZ
73};
74
75#if defined(__WXUNIVERSAL__)
76 #include "wx/univ/gauge.h"
77#elif defined(__WXMSW__)
78 #ifdef __WIN95__
79 #include "wx/msw/gauge95.h"
80 #define wxGauge wxGauge95
81 #define sm_classwxGauge sm_classwxGauge95
82 #else // !__WIN95__
6aa855b9 83 // Gauge no longer supported on 16-bit Windows
1e6feb95 84 #endif
2049ba38 85#elif defined(__WXMOTIF__)
1e6feb95 86 #include "wx/motif/gauge.h"
2049ba38 87#elif defined(__WXGTK__)
1e6feb95 88 #include "wx/gtk/gauge.h"
34138703 89#elif defined(__WXMAC__)
1e6feb95 90 #include "wx/mac/gauge.h"
24e97652
DE
91#elif defined(__WXCOCOA__)
92 #include "wx/cocoa/gauge.h"
1777b9bb 93#elif defined(__WXPM__)
1e6feb95 94 #include "wx/os2/gauge.h"
c801d85f
KB
95#endif
96
1e6feb95
VZ
97#endif // wxUSE_GAUGE
98
c801d85f 99#endif
34138703 100 // _WX_GAUGE_H_BASE_