]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/cocoa/statbox.h
Add lambda-friendly wxDialog::ShowWindowModalThenDo().
[wxWidgets.git] / include / wx / cocoa / statbox.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/statbox.h
3// Purpose: wxStaticBox class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/18
7// Copyright: (c) 2003 David Elliott
8// Licence: wxWindows licence
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// ========================================================================
19class WXDLLIMPEXP_CORE wxStaticBox: public wxStaticBoxBase, protected wxCocoaNSBox
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() { }
29 wxStaticBox(wxWindow *parent, wxWindowID winid, const wxString& title,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 long style = 0, const wxString& name = wxStaticBoxNameStr)
33 {
34 Create(parent, winid, title, pos, size, style, name);
35 }
36
37 bool Create(wxWindow *parent, wxWindowID winid, const wxString& title,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 long style = 0, const wxString& name = wxStaticBoxNameStr);
41 virtual ~wxStaticBox();
42
43 virtual void SetLabel(const wxString& label);
44 virtual wxString GetLabel() const;
45
46// ------------------------------------------------------------------------
47// Cocoa callbacks
48// ------------------------------------------------------------------------
49protected:
50 // Static boxes cannot be enabled/disabled
51 virtual void CocoaSetEnabled(bool WXUNUSED(enable)) { }
52// ------------------------------------------------------------------------
53// Implementation
54// ------------------------------------------------------------------------
55public:
56 virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
57protected:
58};
59
60#endif // __WX_COCOA_STATBOX_H__