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