2004-03-23 17:35:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: mac/statline.h
|
|
|
|
// Purpose: a generic wxStaticLine class used for mac before adaptation
|
|
|
|
// 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
|
2004-03-23 17:35:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GENERIC_STATLINE_H_
|
|
|
|
#define _WX_GENERIC_STATLINE_H_
|
|
|
|
|
|
|
|
class wxStaticBox;
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxStaticLine
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// constructors and pseudo-constructors
|
|
|
|
wxStaticLine() : m_statbox(NULL) { }
|
|
|
|
|
|
|
|
wxStaticLine( wxWindow *parent,
|
2005-03-11 02:13:30 +00:00
|
|
|
wxWindowID id = wxID_ANY,
|
2004-03-23 17:35:05 +00:00
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxLI_HORIZONTAL,
|
2006-12-09 14:52:59 +00:00
|
|
|
const wxString &name = wxStaticLineNameStr )
|
2004-03-23 17:35:05 +00:00
|
|
|
: m_statbox(NULL)
|
|
|
|
{
|
|
|
|
Create(parent, id, pos, size, style, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create( wxWindow *parent,
|
2005-03-11 02:13:30 +00:00
|
|
|
wxWindowID id = wxID_ANY,
|
2004-03-23 17:35:05 +00:00
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxLI_HORIZONTAL,
|
2006-12-09 14:52:59 +00:00
|
|
|
const wxString &name = wxStaticLineNameStr );
|
2004-03-23 17:35:05 +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;
|
2005-03-11 02:13:30 +00:00
|
|
|
|
2004-03-23 17:35:05 +00:00
|
|
|
protected:
|
|
|
|
// we implement the static line using a static box
|
|
|
|
wxStaticBox *m_statbox;
|
2005-03-11 02:13:30 +00:00
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticLine)
|
2004-03-23 17:35:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_GENERIC_STATLINE_H_
|
|
|
|
|