| 1 |
/* |
| 2 |
Copyright (C) 2009-2010 wxLauncher Team |
| 3 |
|
| 4 |
This program is free software; you can redistribute it and/or |
| 5 |
modify it under the terms of the GNU General Public License |
| 6 |
as published by the Free Software Foundation; either version 2 |
| 7 |
of the License, or (at your option) any later version. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public License |
| 15 |
along with this program; if not, write to the Free Software |
| 16 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifndef STATUSLOG_H |
| 20 |
#define STATUSLOG_H |
| 21 |
|
| 22 |
#include <wx/wx.h> |
| 23 |
#include "global/ids.h" |
| 24 |
|
| 25 |
/** Extends wxStatusBar. Provides the a 4 section status bar: icon, main text, |
| 26 |
progress bar, and small text for the progress bar. This class will interface |
| 27 |
this Logger to enable code to eaisly send messages to the statusbar. */ |
| 28 |
class StatusBar: public wxStatusBar { |
| 29 |
public: |
| 30 |
StatusBar(wxWindow* parent); |
| 31 |
virtual ~StatusBar(); |
| 32 |
|
| 33 |
void OnSize(wxSizeEvent& event); |
| 34 |
void OnTCSkinChanged(wxCommandEvent& event); |
| 35 |
|
| 36 |
void SetMainStatusText(wxString msg, int icon=ID_SB_NO_CHANGE); |
| 37 |
void SetJobStatusText(int value, wxString msg=_T("")); |
| 38 |
void StartToolTipStatusText(wxString msg); |
| 39 |
void EndToolTipStatusText(); |
| 40 |
|
| 41 |
private: |
| 42 |
wxWindow* parent; |
| 43 |
wxBitmap icons[ID_SB_MAX_ID]; |
| 44 |
bool showingToolTip; |
| 45 |
|
| 46 |
DECLARE_EVENT_TABLE(); |
| 47 |
}; |
| 48 |
|
| 49 |
#endif |