]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/statbox.h
removed tabs; minor cosmetic cleanup
[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
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWindows license
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() { }
30 wxStaticBox(wxWindow *parent, wxWindowID winid,
31 const wxString& title,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0, const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxStaticBoxNameStr)
36 {
37 Create(parent, winid, title, pos, size, style, validator, name);
38 }
39
40 bool Create(wxWindow *parent, wxWindowID winid,
41 const wxString& title,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxStaticBoxNameStr);
47 virtual ~wxStaticBox();
48
49// ------------------------------------------------------------------------
50// Cocoa callbacks
51// ------------------------------------------------------------------------
52protected:
1f4e6866
DE
53 // Static boxes cannot be enabled/disabled
54 virtual void CocoaSetEnabled(bool enable) { }
da0634c1
DE
55// ------------------------------------------------------------------------
56// Implementation
57// ------------------------------------------------------------------------
58public:
2ace5cf6
DE
59 void GetBordersForSizer(int *borderTop, int *borderOther) const;
60protected:
da0634c1
DE
61};
62
63#endif // __WX_COCOA_STATBOX_H__