]>
Commit | Line | Data |
---|---|---|
ffecfa5a | 1 | /////////////////////////////////////////////////////////////////////////////// |
e1d63b79 | 2 | // Name: wx/palmos/statusbr.h |
ffecfa5a | 3 | // Purpose: Palm OS implementation of wxStatusBar |
e1d63b79 | 4 | // Author: William Osborne - minimal working wxPalmOS port |
ffecfa5a JS |
5 | // Modified by: |
6 | // Created: 10/13/04 | |
e1d63b79 | 7 | // RCS-ID: $Id$ |
ffecfa5a JS |
8 | // Copyright: (c) William Osborne |
9 | // Licence: wxWindows licence | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_STATUSBR_H_ | |
13 | #define _WX_STATUSBR_H_ | |
14 | ||
ffecfa5a JS |
15 | #if wxUSE_NATIVE_STATUSBAR |
16 | ||
53a2db12 | 17 | class WXDLLIMPEXP_CORE wxStatusBarPalm : public wxStatusBarBase |
ffecfa5a JS |
18 | { |
19 | public: | |
20 | // ctors and such | |
21 | wxStatusBarPalm(); | |
22 | wxStatusBarPalm(wxWindow *parent, | |
b08cd3bf | 23 | wxWindowID id = wxID_ANY, |
c4c178c1 | 24 | long style = wxSTB_DEFAULT_STYLE, |
b08cd3bf | 25 | const wxString& name = wxEmptyString) |
ffecfa5a JS |
26 | { |
27 | (void)Create(parent, id, style, name); | |
28 | } | |
29 | ||
30 | bool Create(wxWindow *parent, | |
b08cd3bf | 31 | wxWindowID id = wxID_ANY, |
c4c178c1 | 32 | long style = wxSTB_DEFAULT_STYLE, |
ffecfa5a JS |
33 | const wxString& name = wxEmptyString); |
34 | ||
35 | virtual ~wxStatusBarPalm(); | |
36 | ||
b08cd3bf WS |
37 | // for native status bar use native check for visibility |
38 | virtual bool IsShown() const; | |
39 | virtual bool Show( bool show = true ); | |
40 | ||
ffecfa5a JS |
41 | // a status line can have several (<256) fields numbered from 0 |
42 | virtual void SetFieldsCount(int number = 1, const int *widths = NULL); | |
43 | ||
6cf68971 | 44 | // implement base class methods |
ffecfa5a | 45 | virtual void SetStatusWidths(int n, const int widths_field[]); |
ffecfa5a | 46 | virtual void SetMinHeight(int height); |
ffecfa5a JS |
47 | virtual bool GetFieldRect(int i, wxRect& rect) const; |
48 | ||
ffecfa5a JS |
49 | virtual int GetBorderX() const; |
50 | virtual int GetBorderY() const; | |
e1d63b79 | 51 | |
ffecfa5a JS |
52 | void DrawStatusBar(); |
53 | ||
54 | protected: | |
6cf68971 VZ |
55 | virtual void DoUpdateStatusText(int nField); |
56 | ||
ffecfa5a JS |
57 | void CopyFieldsWidth(const int widths[]); |
58 | void SetFieldsWidth(); | |
7b6fefbe | 59 | /* |
ffecfa5a JS |
60 | // store the text in the status bar |
61 | wxListString **StatusTextBuffer; | |
62 | void SetStatusBufferText(const wxString& text, int number); | |
63 | wxString GetStatusBufferText(int number); | |
64 | wxListString *GetOrCreateStatusBuffer(int i); | |
65 | wxListString *GetStatusBufferStack(int i) const; | |
e1d63b79 | 66 | void DeleteStatusBuffer(); |
ffecfa5a | 67 | |
7b6fefbe FM |
68 | TODO: reuse wxStatusBarBase's stack routines instead of reimplementing them here |
69 | */ | |
70 | ||
ffecfa5a JS |
71 | // override base class virtual |
72 | void DoMoveWindow(int x, int y, int width, int height); | |
73 | ||
74 | private: | |
75 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBarPalm) | |
76 | }; | |
77 | ||
78 | #endif // wxUSE_NATIVE_STATUSBAR | |
79 | ||
80 | #endif |