]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gauge.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge interface
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 1996-2001 wxWindows team
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_GAUGE_H_BASE_
13 #define _WX_GAUGE_H_BASE_
16 #pragma implementation "gaugebase.h"
23 #include "wx/control.h"
25 WXDLLEXPORT_DATA(extern const wxChar
*) wxGaugeNameStr
;
27 // ----------------------------------------------------------------------------
28 // wxGauge: a progress bar
29 // ----------------------------------------------------------------------------
31 class WXDLLEXPORT wxGaugeBase
: public wxControl
34 bool Create(wxWindow
*parent
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
,
39 long style
= wxGA_HORIZONTAL
,
40 const wxValidator
& validator
= wxDefaultValidator
,
41 const wxString
& name
= wxGaugeNameStr
);
43 // set/get the control range
44 virtual void SetRange(int range
);
45 virtual int GetRange() const;
48 virtual void SetValue(int pos
);
49 virtual int GetValue() const;
51 // appearance params (not implemented for most ports)
53 virtual void SetShadowWidth(int w
);
54 virtual int GetShadowWidth() const;
56 virtual void SetBezelFace(int w
);
57 virtual int GetBezelFace() const;
59 // overriden base class virtuals
60 virtual bool AcceptsFocus() const { return FALSE
; }
66 // the current position
70 #if defined(__WXUNIVERSAL__)
71 #include "wx/univ/gauge.h"
72 #elif defined(__WXMSW__)
74 #include "wx/msw/gauge95.h"
75 #define wxGauge wxGauge95
76 #define sm_classwxGauge sm_classwxGauge95
78 #include "wx/msw/gaugemsw.h"
79 #define wxGauge wxGaugeMSW
80 #define sm_classwxGauge sm_classwxGaugeMSW
82 #elif defined(__WXMOTIF__)
83 #include "wx/motif/gauge.h"
84 #elif defined(__WXGTK__)
85 #include "wx/gtk/gauge.h"
86 #elif defined(__WXQT__)
87 #include "wx/qt/gauge.h"
88 #elif defined(__WXMAC__)
89 #include "wx/mac/gauge.h"
90 #elif defined(__WXPM__)
91 #include "wx/os2/gauge.h"
92 #elif defined(__WXSTUBS__)
93 #include "wx/stubs/gauge.h"