]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/statline.h
compilation fix after last change
[wxWidgets.git] / include / wx / mac / carbon / statline.h
CommitLineData
8cf73271
SC
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
65571936 8// Licence: wxWindows licence
8cf73271
SC
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_GENERIC_STATLINE_H_
12#define _WX_GENERIC_STATLINE_H_
13
8cf73271
SC
14class wxStaticBox;
15
16// ----------------------------------------------------------------------------
17// wxStaticLine
18// ----------------------------------------------------------------------------
19
20class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
21{
8cf73271
SC
22public:
23 // constructors and pseudo-constructors
24 wxStaticLine() : m_statbox(NULL) { }
25
26 wxStaticLine( wxWindow *parent,
1de1196a 27 wxWindowID id = wxID_ANY,
8cf73271
SC
28 const wxPoint &pos = wxDefaultPosition,
29 const wxSize &size = wxDefaultSize,
30 long style = wxLI_HORIZONTAL,
73b30256 31 const wxString &name = wxStaticLineNameStr )
8cf73271
SC
32 : m_statbox(NULL)
33 {
34 Create(parent, id, pos, size, style, name);
35 }
36
37 bool Create( wxWindow *parent,
1de1196a 38 wxWindowID id = wxID_ANY,
8cf73271
SC
39 const wxPoint &pos = wxDefaultPosition,
40 const wxSize &size = wxDefaultSize,
41 long style = wxLI_HORIZONTAL,
73b30256 42 const wxString &name = wxStaticLineNameStr );
8cf73271
SC
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;
1de1196a 48
8cf73271
SC
49protected:
50 // we implement the static line using a static box
51 wxStaticBox *m_statbox;
1de1196a
VZ
52
53 DECLARE_DYNAMIC_CLASS(wxStaticLine)
8cf73271
SC
54};
55
56#endif // _WX_GENERIC_STATLINE_H_
57