Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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>

Inheritance diagram for ProgressStatusBar:
Inheritance graph

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
 

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
progresssets 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: