Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ProgressStatusBar.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
2 
11 /*
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public
14  * License as published by the Free Software Foundation; either
15  * version 2 of the License, or (at your option) any later version.
16  *
17  * This software is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public
23  * License along with this software. If not, see
24  * <http://www.gnu.org/licenses/>.
25  *
26  */
27 
28 #ifndef PROGRESSSTATUSBAR_H
29 #define PROGRESSSTATUSBAR_H
30 
32 #include <wx/statusbr.h>
33 #include <wx/gauge.h>
34 
35 class ProgressStatusBar : public wxStatusBar
36 {
37 public:
39  ProgressStatusBar(wxWindow *parent, wxWindowID id, long style = wxST_SIZEGRIP, const wxString &name = wxT("statusBar"));
43  void OnSize(wxSizeEvent &event);
46  void SetProgress(int progress);
48  int GetProgress();
49 
50 private:
51  wxGauge *m_progress;
53 
55 };
56 
57 #endif // PROGRESSSTATUSBAR_H
class for showing a status bar with progress, the progress bar is always in the last field of the sta...
void OnSize(wxSizeEvent &event)
size change handler, correctly position gauge when size has changed
~ProgressStatusBar()
destructor, clean up all stuff
int GetProgress()
return current progress value, should be in range 0 - 100, or -1 if the progress gauge is hidden ...
void SetProgress(int progress)
update progress bar
ProgressStatusBar(wxWindow *parent, wxWindowID id, long style=wxST_SIZEGRIP, const wxString &name=wxT("statusBar"))
constructor, create the gauge internal