]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/statbox.h
remove warnings
[wxWidgets.git] / include / wx / cocoa / statbox.h
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/statbox.h
3// Purpose: wxStaticBox class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/18
1c4e8f38 7// RCS-ID: $Id$
da0634c1 8// Copyright: (c) 2003 David Elliott
1c4e8f38 9// Licence: wxWindows licence
da0634c1
DE
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __WX_COCOA_STATBOX_H__
13#define __WX_COCOA_STATBOX_H__
14
15#include "wx/cocoa/NSBox.h"
16
17// ========================================================================
18// wxStaticBox
19// ========================================================================
20class WXDLLEXPORT wxStaticBox: public wxStaticBoxBase, protected wxCocoaNSBox
21{
22 DECLARE_DYNAMIC_CLASS(wxStaticBox)
23 DECLARE_EVENT_TABLE()
24 WX_DECLARE_COCOA_OWNER(NSBox,NSView,NSView)
25// ------------------------------------------------------------------------
26// initialization
27// ------------------------------------------------------------------------
28public:
29 wxStaticBox() { }
a1f4186e 30 wxStaticBox(wxWindow *parent, wxWindowID winid, const wxString& title,
da0634c1
DE
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
a1f4186e 33 long style = 0, const wxString& name = wxStaticBoxNameStr)
da0634c1 34 {
a1f4186e 35 Create(parent, winid, title, pos, size, style, name);
da0634c1
DE
36 }
37
a1f4186e 38 bool Create(wxWindow *parent, wxWindowID winid, const wxString& title,
da0634c1
DE
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
a1f4186e 41 long style = 0, const wxString& name = wxStaticBoxNameStr);
da0634c1
DE
42 virtual ~wxStaticBox();
43
aa67a27a
VZ
44 virtual void SetLabel(const wxString& label);
45 virtual wxString GetLabel() const;
46
da0634c1
DE
47// ------------------------------------------------------------------------
48// Cocoa callbacks
49// ------------------------------------------------------------------------
50protected:
1f4e6866
DE
51 // Static boxes cannot be enabled/disabled
52 virtual void CocoaSetEnabled(bool enable) { }
da0634c1
DE
53// ------------------------------------------------------------------------
54// Implementation
55// ------------------------------------------------------------------------
56public:
5dd070c2 57 virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
2ace5cf6 58protected:
da0634c1
DE
59};
60
61#endif // __WX_COCOA_STATBOX_H__