]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/statline.h
Use RIAA wrapper for wxSpinCtrl event disabling in wxGTK.
[wxWidgets.git] / include / wx / generic / statline.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/statline.h
3 // Purpose: a generic wxStaticLine class
4 // Author: Vadim Zeitlin
5 // Created: 28.06.99
6 // Copyright: (c) 1998 Vadim Zeitlin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GENERIC_STATLINE_H_
11 #define _WX_GENERIC_STATLINE_H_
12
13 class wxStaticBox;
14
15 // ----------------------------------------------------------------------------
16 // wxStaticLine
17 // ----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
20 {
21 DECLARE_DYNAMIC_CLASS(wxStaticLine)
22
23 public:
24 // constructors and pseudo-constructors
25 wxStaticLine() { m_statbox = NULL; }
26
27 wxStaticLine( wxWindow *parent,
28 wxWindowID id = wxID_ANY,
29 const wxPoint &pos = wxDefaultPosition,
30 const wxSize &size = wxDefaultSize,
31 long style = wxLI_HORIZONTAL,
32 const wxString &name = wxStaticLineNameStr )
33 {
34 Create(parent, id, pos, size, style, name);
35 }
36
37 virtual ~wxStaticLine();
38
39 bool Create( wxWindow *parent,
40 wxWindowID id = wxID_ANY,
41 const wxPoint &pos = wxDefaultPosition,
42 const wxSize &size = wxDefaultSize,
43 long style = wxLI_HORIZONTAL,
44 const wxString &name = wxStaticLineNameStr );
45
46 // it's necessary to override this wxWindow function because we
47 // will want to return the main widget for m_statbox
48 //
49 WXWidget GetMainWidget() const;
50
51 // override wxWindow methods to make things work
52 virtual void DoSetSize(int x, int y, int width, int height,
53 int sizeFlags = wxSIZE_AUTO);
54 virtual void DoMoveWindow(int x, int y, int width, int height);
55 protected:
56 // we implement the static line using a static box
57 wxStaticBox *m_statbox;
58 };
59
60 #endif // _WX_GENERIC_STATLINE_H_
61