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