1999-06-28 21:39:49 +00: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 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-06-28 21:39:49 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GENERIC_STATLINE_H_
|
|
|
|
#define _WX_GENERIC_STATLINE_H_
|
|
|
|
|
1999-09-03 04:18:50 +00:00
|
|
|
class wxStaticBox;
|
|
|
|
|
1999-06-28 21:39:49 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxStaticLine
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticLine)
|
|
|
|
|
|
|
|
public:
|
|
|
|
// constructors and pseudo-constructors
|
2003-05-27 20:28:51 +00:00
|
|
|
wxStaticLine() { m_statbox = NULL; }
|
1999-06-28 21:39:49 +00:00
|
|
|
|
|
|
|
wxStaticLine( wxWindow *parent,
|
2005-03-11 02:13:30 +00:00
|
|
|
wxWindowID id = wxID_ANY,
|
1999-06-28 21:39:49 +00:00
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxLI_HORIZONTAL,
|
|
|
|
const wxString &name = wxStaticTextNameStr )
|
|
|
|
{
|
|
|
|
Create(parent, id, pos, size, style, name);
|
|
|
|
}
|
|
|
|
|
2003-05-27 20:28:51 +00:00
|
|
|
virtual ~wxStaticLine();
|
|
|
|
|
1999-06-28 21:39:49 +00:00
|
|
|
bool Create( wxWindow *parent,
|
2005-03-11 02:13:30 +00:00
|
|
|
wxWindowID id = wxID_ANY,
|
1999-06-28 21:39:49 +00:00
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxLI_HORIZONTAL,
|
|
|
|
const wxString &name = wxStaticTextNameStr );
|
|
|
|
|
1999-09-16 10:32:03 +00: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 20:13:33 +00: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 21:39:49 +00:00
|
|
|
protected:
|
|
|
|
// we implement the static line using a static box
|
|
|
|
wxStaticBox *m_statbox;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_GENERIC_STATLINE_H_
|
|
|
|
|