1999-06-28 17:39:49 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: generic/statline.h
|
|
|
|
// Purpose: a generic wxStaticLine class
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 28.06.99
|
|
|
|
// Version: $Id$
|
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1999-06-28 17:39:49 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GENERIC_STATLINE_H_
|
|
|
|
#define _WX_GENERIC_STATLINE_H_
|
|
|
|
|
1999-09-03 00:18:50 -04:00
|
|
|
class wxStaticBox;
|
|
|
|
|
1999-06-28 17:39:49 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxStaticLine
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticLine)
|
|
|
|
|
|
|
|
public:
|
|
|
|
// constructors and pseudo-constructors
|
2003-05-27 16:28:51 -04:00
|
|
|
wxStaticLine() { m_statbox = NULL; }
|
1999-06-28 17:39:49 -04:00
|
|
|
|
|
|
|
wxStaticLine( wxWindow *parent,
|
2005-03-10 21:13:30 -05:00
|
|
|
wxWindowID id = wxID_ANY,
|
1999-06-28 17:39:49 -04:00
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxLI_HORIZONTAL,
|
2006-12-09 09:52:59 -05:00
|
|
|
const wxString &name = wxStaticLineNameStr )
|
1999-06-28 17:39:49 -04:00
|
|
|
{
|
|
|
|
Create(parent, id, pos, size, style, name);
|
|
|
|
}
|
|
|
|
|
2003-05-27 16:28:51 -04:00
|
|
|
virtual ~wxStaticLine();
|
|
|
|
|
1999-06-28 17:39:49 -04:00
|
|
|
bool Create( wxWindow *parent,
|
2005-03-10 21:13:30 -05:00
|
|
|
wxWindowID id = wxID_ANY,
|
1999-06-28 17:39:49 -04:00
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxLI_HORIZONTAL,
|
2006-12-09 09:52:59 -05:00
|
|
|
const wxString &name = wxStaticLineNameStr );
|
1999-06-28 17:39:49 -04:00
|
|
|
|
1999-09-16 06:32:03 -04:00
|
|
|
// it's necessary to override this wxWindow function because we
|
|
|
|
// will want to return the main widget for m_statbox
|
|
|
|
//
|
|
|
|
WXWidget GetMainWidget() const;
|
2002-07-27 16:13:33 -04:00
|
|
|
|
|
|
|
// override wxWindow methods to make things work
|
|
|
|
virtual void DoSetSize(int x, int y, int width, int height,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
|
|
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
1999-06-28 17:39:49 -04:00
|
|
|
protected:
|
|
|
|
// we implement the static line using a static box
|
|
|
|
wxStaticBox *m_statbox;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_GENERIC_STATLINE_H_
|
|
|
|
|