]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/statline.h
Temporary fix for link error to ~wxZipOutputStream()
[wxWidgets.git] / include / wx / generic / statline.h
CommitLineData
c50f1fb9
VZ
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
65571936 8// Licence: wxWindows licence
c50f1fb9
VZ
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"
c50f1fb9
VZ
16#endif
17
7a4b8f27
MB
18class wxStaticBox;
19
c50f1fb9
VZ
20// ----------------------------------------------------------------------------
21// wxStaticLine
22// ----------------------------------------------------------------------------
23
24class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
25{
26 DECLARE_DYNAMIC_CLASS(wxStaticLine)
27
28public:
29 // constructors and pseudo-constructors
d7c40406 30 wxStaticLine() { m_statbox = NULL; }
c50f1fb9
VZ
31
32 wxStaticLine( wxWindow *parent,
1de1196a 33 wxWindowID id = wxID_ANY,
c50f1fb9
VZ
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
d7c40406
MB
42 virtual ~wxStaticLine();
43
c50f1fb9 44 bool Create( wxWindow *parent,
1de1196a 45 wxWindowID id = wxID_ANY,
c50f1fb9
VZ
46 const wxPoint &pos = wxDefaultPosition,
47 const wxSize &size = wxDefaultSize,
48 long style = wxLI_HORIZONTAL,
49 const wxString &name = wxStaticTextNameStr );
50
7183e38b
MB
51 // it's necessary to override this wxWindow function because we
52 // will want to return the main widget for m_statbox
53 //
54 WXWidget GetMainWidget() const;
277f2e52
MB
55
56 // override wxWindow methods to make things work
57 virtual void DoSetSize(int x, int y, int width, int height,
58 int sizeFlags = wxSIZE_AUTO);
59 virtual void DoMoveWindow(int x, int y, int width, int height);
c50f1fb9
VZ
60protected:
61 // we implement the static line using a static box
62 wxStaticBox *m_statbox;
63};
64
65#endif // _WX_GENERIC_STATLINE_H_
66