ProgressStatusBar Class Reference

class for showing a status bar with progress, the progress bar is always in the last field of the statusbar More...

#include <ProgressStatusBar.h>

List of all members.

Public Member Functions

 ProgressStatusBar (wxWindow *parent, wxWindowID id, long style=wxST_SIZEGRIP, const wxString &name=wxT("statusBar"))
 constructor, create the gauge internal
 ~ProgressStatusBar ()
 destructor, clean up all stuff
void OnSize (wxSizeEvent &event)
 size change handler, correctly position gauge when size has changed
void SetProgress (int progress)
 update progress bar
int GetProgress ()
 return current progress value, should be in range 0 - 100, or -1 if the progress gauge is hidden

Private Member Functions

 DECLARE_EVENT_TABLE ()

Private Attributes

wxGauge * m_progress
int m_progressValue


Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

ProgressStatusBar::DECLARE_EVENT_TABLE (  )  [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

Parameters:
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().


Member Data Documentation

wxGauge* ProgressStatusBar::m_progress [private]

Definition at line 51 of file ProgressStatusBar.h.

Referenced by OnSize(), SetProgress(), and ~ProgressStatusBar().

int ProgressStatusBar::m_progressValue [private]

Definition at line 52 of file ProgressStatusBar.h.

Referenced by GetProgress(), and SetProgress().


The documentation for this class was generated from the following files:
Generated on 25 Apr 2018 for Hugintrunk by  doxygen 1.4.7