1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : customstatusbar.h
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
18
// This program is free software; you can redistribute it and/or modify
19
// it under the terms of the GNU General Public License as published by
20
// the Free Software Foundation; either version 2 of the License, or
21
// (at your option) any later version.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
25
#ifndef __customstatusbar__
26
#define __customstatusbar__
28
#include <wx/statusbr.h>
33
class CustomStatusBar : public wxStatusBar {
34
ProgressCtrl *m_gauge;
36
CustomStatusBar(wxWindow *parent, wxWindowID id = wxID_ANY);
37
virtual ~CustomStatusBar();
40
* @brief clear the gauge and set its max range
41
* @param range new gauge range
43
void ResetGauge(int range);
50
void Update(int vlaue, const wxString &message);
54
void OnSize(wxSizeEvent& event);
56
#endif // __customstatusbar__