]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: msw/statbr95.h | |
3 | // Purpose: native implementation of wxStatusBar | |
4 | // Author: Vadim Zeitlin | |
a79fa1ed | 5 | // Modified by: |
2bda0e17 KB |
6 | // Created: 04.04.98 |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> | |
bbcdf8bc | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _STATBR95_H | |
13 | #define _STATBR95_H | |
14 | ||
0d3820b3 JS |
15 | #ifdef __GNUG__ |
16 | #pragma interface "statbr95.h" | |
17 | #endif | |
18 | ||
ed791986 | 19 | #if wxUSE_NATIVE_STATUSBAR |
2bda0e17 | 20 | |
ed791986 | 21 | class WXDLLEXPORT wxStatusBar95 : public wxStatusBarBase |
2bda0e17 | 22 | { |
2bda0e17 | 23 | public: |
ed791986 VZ |
24 | // ctors and such |
25 | wxStatusBar95(); | |
26 | wxStatusBar95(wxWindow *parent, | |
27 | wxWindowID id = -1, | |
28 | long style = wxST_SIZEGRIP, | |
29 | const wxString& name = wxEmptyString) | |
30 | { | |
31 | (void)Create(parent, id, style, name); | |
32 | } | |
33 | ||
34 | bool Create(wxWindow *parent, | |
35 | wxWindowID id = -1, | |
36 | long style = wxST_SIZEGRIP, | |
37 | const wxString& name = wxEmptyString); | |
38 | ||
39 | virtual ~wxStatusBar95(); | |
2bda0e17 | 40 | |
ed791986 VZ |
41 | // a status line can have several (<256) fields numbered from 0 |
42 | virtual void SetFieldsCount(int number = 1, const int *widths = NULL); | |
2bda0e17 | 43 | |
ed791986 VZ |
44 | // each field of status line has it's own text |
45 | virtual void SetStatusText(const wxString& text, int number = 0); | |
46 | virtual wxString GetStatusText(int number = 0) const; | |
2bda0e17 | 47 | |
ed791986 VZ |
48 | // set status line fields' widths |
49 | virtual void SetStatusWidths(int n, const int widths_field[]); | |
2bda0e17 | 50 | |
ed791986 VZ |
51 | // sets the minimal vertical size of the status bar |
52 | virtual void SetMinHeight(int height); | |
2bda0e17 | 53 | |
ed791986 VZ |
54 | // get the position and size of the field's internal bounding rectangle |
55 | virtual bool GetFieldRect(int i, wxRect& rect) const; | |
2bda0e17 | 56 | |
ed791986 VZ |
57 | // get the border size |
58 | virtual int GetBorderX() const; | |
59 | virtual int GetBorderY() const; | |
60 | ||
61 | void OnSize(wxSizeEvent& event); | |
2bda0e17 KB |
62 | |
63 | protected: | |
ed791986 VZ |
64 | void CopyFieldsWidth(const int widths[]); |
65 | void SetFieldsWidth(); | |
66 | ||
67 | private: | |
68 | DECLARE_EVENT_TABLE() | |
69 | DECLARE_DYNAMIC_CLASS(wxStatusBar95); | |
2bda0e17 KB |
70 | }; |
71 | ||
47d67540 | 72 | #endif // wxUSE_NATIVE_STATUSBAR |
2bda0e17 | 73 | |
a79fa1ed | 74 | #endif |