1998-05-20 10:12:05 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: msw/statbr95.h
|
|
|
|
// Purpose: native implementation of wxStatusBar
|
|
|
|
// Author: Vadim Zeitlin
|
1999-10-09 03:13:13 -04:00
|
|
|
// Modified by:
|
1998-05-20 10:12:05 -04:00
|
|
|
// Created: 04.04.98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
1998-08-07 19:52:45 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _STATBR95_H
|
|
|
|
#define _STATBR95_H
|
|
|
|
|
1998-07-03 12:36:10 -04:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "statbr95.h"
|
|
|
|
#endif
|
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
#if wxUSE_NATIVE_STATUSBAR
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
class WXDLLEXPORT wxStatusBar95 : public wxStatusBarBase
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
|
|
|
public:
|
2000-02-04 20:57:38 -05: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 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05: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 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05: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 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// set status line fields' widths
|
|
|
|
virtual void SetStatusWidths(int n, const int widths_field[]);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// sets the minimal vertical size of the status bar
|
|
|
|
virtual void SetMinHeight(int height);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// get the position and size of the field's internal bounding rectangle
|
|
|
|
virtual bool GetFieldRect(int i, wxRect& rect) const;
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// get the border size
|
|
|
|
virtual int GetBorderX() const;
|
|
|
|
virtual int GetBorderY() const;
|
|
|
|
|
1998-05-20 10:12:05 -04:00
|
|
|
protected:
|
2000-02-04 20:57:38 -05:00
|
|
|
void CopyFieldsWidth(const int widths[]);
|
|
|
|
void SetFieldsWidth();
|
|
|
|
|
2000-03-11 19:26:21 -05:00
|
|
|
// override base class virtual
|
|
|
|
void DoMoveWindow(int x, int y, int width, int height);
|
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStatusBar95);
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
1998-09-25 09:28:52 -04:00
|
|
|
#endif // wxUSE_NATIVE_STATUSBAR
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-10-09 03:13:13 -04:00
|
|
|
#endif
|