// Created: 14.10.01
// RCS-ID: $Id$
// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_UNIV_STATUSBR_H_
#define _WX_UNIV_STATUSBR_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "univstatusbr.h"
-#endif
-
#include "wx/univ/inpcons.h"
#include "wx/arrstr.h"
// ----------------------------------------------------------------------------
-// wxStatusBar: a window near the bottom of the frame used for status info
+// wxStatusBarUniv: a window near the bottom of the frame used for status info
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxStatusBarUniv : public wxStatusBarBase,
- public wxInputConsumer
+class WXDLLIMPEXP_CORE wxStatusBarUniv : public wxStatusBarBase,
+ public wxInputConsumer
{
public:
wxStatusBarUniv() { Init(); }
wxStatusBarUniv(wxWindow *parent,
- wxWindowID id = -1,
- long style = 0,
+ wxWindowID id = wxID_ANY,
+ long style = wxSTB_DEFAULT_STYLE,
const wxString& name = wxPanelNameStr)
{
Init();
}
bool Create(wxWindow *parent,
- wxWindowID id = -1,
- long style = 0,
+ wxWindowID id = wxID_ANY,
+ long style = wxSTB_DEFAULT_STYLE,
const wxString& name = wxPanelNameStr);
// set field count/widths
// get/set the text of the given field
virtual void SetStatusText(const wxString& text, int number = 0);
- virtual wxString GetStatusText(int number = 0) const;
// Get the position and size of the field's internal bounding rectangle
virtual bool GetFieldRect(int i, wxRect& rect) const;
virtual int GetBorderX() const;
virtual int GetBorderY() const;
+ // wxInputConsumer pure virtual
+ virtual wxWindow *GetInputWindow() const
+ { return const_cast<wxStatusBar*>(this); }
+
protected:
// recalculate the field widths
void OnSize(wxSizeEvent& event);
// draw the statusbar
virtual void DoDraw(wxControlRenderer *renderer);
- // wxInputConsumer pure virtual
- virtual wxWindow *GetInputWindow() const
- { return wxConstCast(this, wxStatusBar); }
-
// tell them about our preferred height
virtual wxSize DoGetBestSize() const;
void Init();
private:
- // the status fields strings
- wxArrayString m_statusText;
+ // the current status fields strings
+ //wxArrayString m_statusText;
// the absolute status fields widths
wxArrayInt m_widthsAbs;