]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/gauge.h
3 // Purpose: wxGauge class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_GAUGE_H__
13 #define __WX_COCOA_GAUGE_H__
15 // #include "wx/cocoa/NSProgressIndicator.h"
17 // ========================================================================
19 // ========================================================================
20 class WXDLLEXPORT wxGauge
: public wxGaugeBase
// , protected wxCocoaNSProgressIndicator
22 DECLARE_DYNAMIC_CLASS(wxGauge
)
24 // WX_DECLARE_COCOA_OWNER(NSProgressIndicator,NSView,NSView)
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 wxGauge(wxWindow
*parent
, wxWindowID winid
, int range
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 long style
= wxGA_HORIZONTAL
,
34 const wxValidator
& validator
= wxDefaultValidator
,
35 const wxString
& name
= wxGaugeNameStr
)
37 Create(parent
, winid
, range
, pos
, size
, style
, validator
, name
);
40 bool Create(wxWindow
*parent
, wxWindowID winid
, int range
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
43 long style
= wxSL_HORIZONTAL
,
44 const wxValidator
& validator
= wxDefaultValidator
,
45 const wxString
& name
= wxGaugeNameStr
);
48 // ------------------------------------------------------------------------
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
54 // ------------------------------------------------------------------------
57 virtual int GetValue() const { return 0; }
58 virtual void SetValue(int value
) { }
60 // retrieve/change the range
61 virtual void SetRange(int maxValue
) { }
62 int GetRange(void) const { return 0; }
65 #endif // __WX_COCOA_GAUGE_H__