Hugintrunk
0.1
|
class for showing a status bar with progress, the progress bar is always in the last field of the statusbar More...
#include <ProgressStatusBar.h>
Public Member Functions | |
ProgressStatusBar (wxWindow *parent, wxWindowID id, long style=wxST_SIZEGRIP, const wxString &name=wxT("statusBar")) | |
constructor, create the gauge internal More... | |
~ProgressStatusBar () | |
destructor, clean up all stuff More... | |
void | OnSize (wxSizeEvent &event) |
size change handler, correctly position gauge when size has changed More... | |
void | SetProgress (int progress) |
update progress bar More... | |
int | GetProgress () |
return current progress value, should be in range 0 - 100, or -1 if the progress gauge is hidden More... | |
Private Member Functions | |
DECLARE_EVENT_TABLE () | |
Private Attributes | |
wxGauge * | m_progress |
int | m_progressValue |
class for showing a status bar with progress, the progress bar is always in the last field of the statusbar
Definition at line 35 of file ProgressStatusBar.h.
ProgressStatusBar::ProgressStatusBar | ( | wxWindow * | parent, |
wxWindowID | id, | ||
long | style = wxST_SIZEGRIP , |
||
const wxString & | name = wxT("statusBar") |
||
) |
constructor, create the gauge internal
Definition at line 35 of file ProgressStatusBar.cpp.
ProgressStatusBar::~ProgressStatusBar | ( | ) |
destructor, clean up all stuff
Definition at line 41 of file ProgressStatusBar.cpp.
References m_progress.
|
private |
int ProgressStatusBar::GetProgress | ( | ) |
return current progress value, should be in range 0 - 100, or -1 if the progress gauge is hidden
Definition at line 68 of file ProgressStatusBar.cpp.
References m_progressValue.
Referenced by BatchFrame::UpdateTaskBarProgressBar().
void ProgressStatusBar::OnSize | ( | wxSizeEvent & | event | ) |
size change handler, correctly position gauge when size has changed
Definition at line 49 of file ProgressStatusBar.cpp.
References m_progress.
void ProgressStatusBar::SetProgress | ( | int | progress | ) |
update progress bar
progress | sets the progress, range 0 - 100, a value of -1 will hide the progress control |
Definition at line 60 of file ProgressStatusBar.cpp.
References m_progress, and m_progressValue.
Referenced by BatchFrame::OnProgress().
|
private |
Definition at line 51 of file ProgressStatusBar.h.
Referenced by OnSize(), SetProgress(), and ~ProgressStatusBar().
|
private |
Definition at line 52 of file ProgressStatusBar.h.
Referenced by GetProgress(), and SetProgress().