Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ProgressReporterDialog Class Reference

#include <MyProgressDialog.h>

Inheritance diagram for ProgressReporterDialog:
Inheritance graph

Public Member Functions

 ProgressReporterDialog (int maxProgress, const wxString &title, const wxString &message, wxWindow *parent=NULL, int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL|wxPD_CAN_ABORT|wxPD_ELAPSED_TIME)
 
void setMessage (const std::string &message, const std::string &filename="")
 
void setMessage (const wxString &message, const wxString &filename=wxEmptyString)
 
bool updateDisplay (const wxString &message)
 
bool updateDisplayValue (const wxString &message, const wxString &filename=wxEmptyString)
 
- Public Member Functions inherited from AppBase::ProgressDisplay
virtual ~ProgressDisplay ()
 
void setMessage (const std::string &message, const std::string &filename="")
 sets the message to given string More...
 
void taskFinished ()
 call when a task has finished and the status message should be cleared More...
 
bool updateDisplay ()
 updates the display, return true, if update was successful, false if cancel was pressed More...
 
bool updateDisplay (const std::string &message)
 
bool updateDisplayValue ()
 
void setMaximum (int newMaximum)
 sets the new maximum value of the progress value More...
 
bool wasCancelled ()
 return true, if process should be canceled by user e.g. More...
 

Protected Member Functions

virtual void updateProgressDisplay ()
 Template method, updates the display. More...
 
- Protected Member Functions inherited from AppBase::ProgressDisplay
 ProgressDisplay (int maximum=0)
 constructor More...
 

Protected Attributes

wxString m_wxmessage
 
wxString m_wxfilename
 
- Protected Attributes inherited from AppBase::ProgressDisplay
bool m_canceled
 
std::string m_message
 
std::string m_filename
 
int m_maximum
 
int m_progress
 

Detailed Description

Definition at line 31 of file MyProgressDialog.h.

Constructor & Destructor Documentation

ProgressReporterDialog::ProgressReporterDialog ( int  maxProgress,
const wxString &  title,
const wxString &  message,
wxWindow *  parent = NULL,
int  style = wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_CAN_ABORT | wxPD_ELAPSED_TIME 
)
inline

Definition at line 34 of file MyProgressDialog.h.

Member Function Documentation

void ProgressReporterDialog::setMessage ( const std::string &  message,
const std::string &  filename = "" 
)

Definition at line 43 of file MyProgressDialog.cpp.

Referenced by updateDisplay().

void ProgressReporterDialog::setMessage ( const wxString &  message,
const wxString &  filename = wxEmptyString 
)

Definition at line 48 of file MyProgressDialog.cpp.

References m_wxfilename, m_wxmessage, and updateProgressDisplay().

bool ProgressReporterDialog::updateDisplay ( const wxString &  message)
bool ProgressReporterDialog::updateDisplayValue ( const wxString &  message,
const wxString &  filename = wxEmptyString 
)
void ProgressReporterDialog::updateProgressDisplay ( )
protectedvirtual

Template method, updates the display.

You should override this method with your code of updating the display.

Implements AppBase::ProgressDisplay.

Definition at line 68 of file MyProgressDialog.cpp.

References AppBase::ProgressDisplay::m_canceled, AppBase::ProgressDisplay::m_progress, m_wxfilename, and m_wxmessage.

Referenced by setMessage().

Member Data Documentation

wxString ProgressReporterDialog::m_wxfilename
protected

Definition at line 52 of file MyProgressDialog.h.

Referenced by setMessage(), updateDisplayValue(), and updateProgressDisplay().

wxString ProgressReporterDialog::m_wxmessage
protected

Definition at line 51 of file MyProgressDialog.h.

Referenced by setMessage(), updateDisplayValue(), and updateProgressDisplay().


The documentation for this class was generated from the following files: