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 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 30 of file ProgressStatusBar.cpp.
References m_progress, OnSize(), and SetProgress().
ProgressStatusBar::~ProgressStatusBar | ( | ) |
destructor, clean up all stuff
Definition at line 37 of file ProgressStatusBar.cpp.
References m_progress.
int ProgressStatusBar::GetProgress | ( | ) |
return current progress value, should be in range 0 - 100, or -1 if the progress gauge is hidden
Definition at line 64 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 45 of file ProgressStatusBar.cpp.
References m_progress.
Referenced by ProgressStatusBar().
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 56 of file ProgressStatusBar.cpp.
References m_progress, and m_progressValue.
Referenced by BatchFrame::OnProgress(), and ProgressStatusBar().
|
private |
Definition at line 51 of file ProgressStatusBar.h.
Referenced by OnSize(), ProgressStatusBar(), SetProgress(), and ~ProgressStatusBar().
|
private |
Definition at line 52 of file ProgressStatusBar.h.
Referenced by GetProgress(), and SetProgress().