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