1998-05-20 14:12:05 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: msw/statbr95.h
|
|
|
|
// Purpose: native implementation of wxStatusBar
|
|
|
|
// Author: Vadim Zeitlin
|
1999-10-09 07:13:13 +00:00
|
|
|
// Modified by:
|
1998-05-20 14:12:05 +00:00
|
|
|
// Created: 04.04.98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
1998-08-07 23:52:45 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _STATBR95_H
|
|
|
|
#define _STATBR95_H
|
|
|
|
|
1998-07-03 16:36:10 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "statbr95.h"
|
|
|
|
#endif
|
|
|
|
|
2000-02-05 01:57:38 +00:00
|
|
|
#if wxUSE_NATIVE_STATUSBAR
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2000-02-05 01:57:38 +00:00
|
|
|
class WXDLLEXPORT wxStatusBar95 : public wxStatusBarBase
|
1998-05-20 14:12:05 +00:00
|
|
|
{
|
|
|
|
public:
|
2000-02-05 01:57:38 +00:00
|
|
|
// ctors and such
|
|
|
|
wxStatusBar95();
|
|
|
|
wxStatusBar95(wxWindow *parent,
|
|
|
|
wxWindowID id = -1,
|
|
|
|
long style = wxST_SIZEGRIP,
|
|
|
|
const wxString& name = wxEmptyString)
|
|
|
|
{
|
|
|
|
(void)Create(parent, id, style, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id = -1,
|
|
|
|
long style = wxST_SIZEGRIP,
|
|
|
|
const wxString& name = wxEmptyString);
|
|
|
|
|
|
|
|
virtual ~wxStatusBar95();
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2000-02-05 01:57:38 +00:00
|
|
|
// a status line can have several (<256) fields numbered from 0
|
|
|
|
virtual void SetFieldsCount(int number = 1, const int *widths = NULL);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2000-02-05 01:57:38 +00:00
|
|
|
// each field of status line has it's own text
|
|
|
|
virtual void SetStatusText(const wxString& text, int number = 0);
|
|
|
|
virtual wxString GetStatusText(int number = 0) const;
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2000-02-05 01:57:38 +00:00
|
|
|
// set status line fields' widths
|
|
|
|
virtual void SetStatusWidths(int n, const int widths_field[]);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2000-02-05 01:57:38 +00:00
|
|
|
// sets the minimal vertical size of the status bar
|
|
|
|
virtual void SetMinHeight(int height);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2000-02-05 01:57:38 +00:00
|
|
|
// get the position and size of the field's internal bounding rectangle
|
|
|
|
virtual bool GetFieldRect(int i, wxRect& rect) const;
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2000-02-05 01:57:38 +00:00
|
|
|
// get the border size
|
|
|
|
virtual int GetBorderX() const;
|
|
|
|
virtual int GetBorderY() const;
|
|
|
|
|
1998-05-20 14:12:05 +00:00
|
|
|
protected:
|
2000-02-05 01:57:38 +00:00
|
|
|
void CopyFieldsWidth(const int widths[]);
|
|
|
|
void SetFieldsWidth();
|
|
|
|
|
2000-03-12 00:26:21 +00:00
|
|
|
// override base class virtual
|
|
|
|
void DoMoveWindow(int x, int y, int width, int height);
|
|
|
|
|
2000-02-05 01:57:38 +00:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStatusBar95);
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
1998-09-25 13:28:52 +00:00
|
|
|
#endif // wxUSE_NATIVE_STATUSBAR
|
1998-05-20 14:12:05 +00:00
|
|
|
|
1999-10-09 07:13:13 +00:00
|
|
|
#endif
|