]>
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 // NSProgressIndicator cannot be enabled/disabled
53 virtual void CocoaSetEnabled(bool enable
) { }
54 // ------------------------------------------------------------------------
56 // ------------------------------------------------------------------------
59 virtual int GetValue() const;
60 virtual void SetValue(int value
);
62 // retrieve/change the range
63 virtual void SetRange(int maxValue
);
64 int GetRange(void) const;
67 #endif // __WX_COCOA_GAUGE_H__