]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/classic/statline.h
Add wxABI_VERSION > 20601 wrappers
[wxWidgets.git] / include / wx / mac / classic / statline.h
CommitLineData
52479aef
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
52479aef
SC
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_GENERIC_STATLINE_H_
12#define _WX_GENERIC_STATLINE_H_
13
14#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15 #pragma interface "statline.h"
16#endif
17
18class wxStaticBox;
19
20// ----------------------------------------------------------------------------
21// wxStaticLine
22// ----------------------------------------------------------------------------
23
24class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
25{
52479aef
SC
26public:
27 // constructors and pseudo-constructors
28 wxStaticLine() : m_statbox(NULL) { }
29
30 wxStaticLine( wxWindow *parent,
1de1196a 31 wxWindowID id = wxID_ANY,
52479aef
SC
32 const wxPoint &pos = wxDefaultPosition,
33 const wxSize &size = wxDefaultSize,
34 long style = wxLI_HORIZONTAL,
35 const wxString &name = wxStaticTextNameStr )
36 : m_statbox(NULL)
37 {
38 Create(parent, id, pos, size, style, name);
39 }
40
41 bool Create( wxWindow *parent,
1de1196a 42 wxWindowID id = wxID_ANY,
52479aef
SC
43 const wxPoint &pos = wxDefaultPosition,
44 const wxSize &size = wxDefaultSize,
45 long style = wxLI_HORIZONTAL,
46 const wxString &name = wxStaticTextNameStr );
47
48 // it's necessary to override this wxWindow function because we
49 // will want to return the main widget for m_statbox
50 //
51 WXWidget GetMainWidget() const;
1de1196a 52
52479aef
SC
53protected:
54 // we implement the static line using a static box
55 wxStaticBox *m_statbox;
1de1196a
VZ
56
57 DECLARE_DYNAMIC_CLASS(wxStaticLine)
52479aef
SC
58};
59
60#endif // _WX_GENERIC_STATLINE_H_
61