]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/statline.h
Corrected copyright message
[wxWidgets.git] / include / wx / generic / statline.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: generic/statline.h
3 // Purpose: a generic wxStaticLine class
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 #if defined(__GNUG__) && !defined(__APPLE__)
15 #pragma interface "statline.h"
16 #endif
17
18 class wxStaticBox;
19
20 // ----------------------------------------------------------------------------
21 // wxStaticLine
22 // ----------------------------------------------------------------------------
23
24 class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
25 {
26 DECLARE_DYNAMIC_CLASS(wxStaticLine)
27
28 public:
29 // constructors and pseudo-constructors
30 wxStaticLine() { }
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 )
38 {
39 Create(parent, id, pos, size, style, name);
40 }
41
42 bool Create( wxWindow *parent,
43 wxWindowID id,
44 const wxPoint &pos = wxDefaultPosition,
45 const wxSize &size = wxDefaultSize,
46 long style = wxLI_HORIZONTAL,
47 const wxString &name = wxStaticTextNameStr );
48
49 // it's necessary to override this wxWindow function because we
50 // will want to return the main widget for m_statbox
51 //
52 WXWidget GetMainWidget() const;
53
54 // override wxWindow methods to make things work
55 virtual void DoSetSize(int x, int y, int width, int height,
56 int sizeFlags = wxSIZE_AUTO);
57 virtual void DoMoveWindow(int x, int y, int width, int height);
58 protected:
59 // we implement the static line using a static box
60 wxStaticBox *m_statbox;
61 };
62
63 #endif // _WX_GENERIC_STATLINE_H_
64