replaced T() makro with wxT() due to namespace probs, _T() exists, too
[wxWidgets.git] / include / wx / mac / statusbr.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: statusbr.h
3 // Purpose: native implementation of wxStatusBar. Optional; can use generic
4 // version instead.
5 // Author: AUTHOR
6 // Modified by:
7 // Created: ??/??/98
8 // RCS-ID: $Id$
9 // Copyright: (c) AUTHOR
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_STATBAR_H_
14 #define _WX_STATBAR_H_
15
16 #ifdef __GNUG__
17 #pragma interface "statbar.h"
18 #endif
19
20 #include "wx/generic/statusbr.h"
21
22 class WXDLLEXPORT wxStatusBarXX : public wxStatusBar
23 {
24 DECLARE_DYNAMIC_CLASS(wxStatusBarXX);
25
26 public:
27 // ctors
28 wxStatusBarXX();
29 wxStatusBarXX(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
30
31 // create status line
32 bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
33
34 // a status line can have several (<256) fields numbered from 0
35 virtual void SetFieldsCount(int number = 1, const int widths[] = NULL);
36
37 // each field of status line has its own text
38 virtual void SetStatusText(const wxString& text, int number = 0);
39 virtual wxString GetStatusText(int number = 0) const;
40
41 // set status line fields' widths
42 virtual void SetStatusWidths(int n, const int widths_field[]);
43
44 void OnSize(wxSizeEvent& event);
45
46 DECLARE_EVENT_TABLE()
47
48 protected:
49 void CopyFieldsWidth(const int widths[]);
50 void SetFieldsWidth();
51 };
52
53 #endif