]>
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_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "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
35 virtual ~wxGaugeBase();
37 bool Create(wxWindow
*parent
,
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
);
46 // set/get the control range
47 virtual void SetRange(int range
);
48 virtual int GetRange() const;
51 virtual void SetValue(int pos
);
52 virtual int GetValue() const;
54 // appearance params (not implemented for most ports)
56 virtual void SetShadowWidth(int w
);
57 virtual int GetShadowWidth() const;
59 virtual void SetBezelFace(int w
);
60 virtual int GetBezelFace() const;
62 // overriden base class virtuals
63 virtual bool AcceptsFocus() const { return FALSE
; }
69 // the current position
72 DECLARE_NO_COPY_CLASS(wxGaugeBase
)
75 #if defined(__WXUNIVERSAL__)
76 #include "wx/univ/gauge.h"
77 #elif defined(__WXMSW__)
79 #include "wx/msw/gauge95.h"
80 #define wxGauge wxGauge95
81 #define sm_classwxGauge sm_classwxGauge95
83 // Gauge no longer supported on 16-bit Windows
85 #elif defined(__WXMOTIF__)
86 #include "wx/motif/gauge.h"
87 #elif defined(__WXGTK__)
88 #include "wx/gtk/gauge.h"
89 #elif defined(__WXMAC__)
90 #include "wx/mac/gauge.h"
91 #elif defined(__WXCOCOA__)
92 #include "wx/cocoa/gauge.h"
93 #elif defined(__WXPM__)
94 #include "wx/os2/gauge.h"