]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/statline.h
removed wxUSE_TOOLBAR_SIMPLE leftovers from the main sources, it's not used anywhere...
[wxWidgets.git] / include / wx / mac / carbon / statline.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: mac/statline.h
3 // Purpose: a generic wxStaticLine class used for mac before adaptation
4 // Author: Vadim Zeitlin
5 // Created: 28.06.99
6 // Version: $Id$
7 // Copyright: (c) 1998 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_GENERIC_STATLINE_H_
12 #define _WX_GENERIC_STATLINE_H_
13
14 class wxStaticBox;
15
16 // ----------------------------------------------------------------------------
17 // wxStaticLine
18 // ----------------------------------------------------------------------------
19
20 class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
21 {
22 public:
23 // constructors and pseudo-constructors
24 wxStaticLine() : m_statbox(NULL) { }
25
26 wxStaticLine( wxWindow *parent,
27 wxWindowID id = wxID_ANY,
28 const wxPoint &pos = wxDefaultPosition,
29 const wxSize &size = wxDefaultSize,
30 long style = wxLI_HORIZONTAL,
31 const wxString &name = wxStaticTextNameStr )
32 : m_statbox(NULL)
33 {
34 Create(parent, id, pos, size, style, name);
35 }
36
37 bool Create( wxWindow *parent,
38 wxWindowID id = wxID_ANY,
39 const wxPoint &pos = wxDefaultPosition,
40 const wxSize &size = wxDefaultSize,
41 long style = wxLI_HORIZONTAL,
42 const wxString &name = wxStaticTextNameStr );
43
44 // it's necessary to override this wxWindow function because we
45 // will want to return the main widget for m_statbox
46 //
47 WXWidget GetMainWidget() const;
48
49 protected:
50 // we implement the static line using a static box
51 wxStaticBox *m_statbox;
52
53 DECLARE_DYNAMIC_CLASS(wxStaticLine)
54 };
55
56 #endif // _WX_GENERIC_STATLINE_H_
57