|
Hugin trunk 0.1
|
#include <MyProgressDialog.h>

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 | |
| void | taskFinished () |
| call when a task has finished and the status message should be cleared | |
| bool | updateDisplay () |
| updates the display, return true, if update was successful, false if cancel was pressed | |
| bool | updateDisplay (const std::string &message) |
| bool | updateDisplayValue () |
| void | setMaximum (int newMaximum) |
| sets the new maximum value of the progress value | |
| bool | wasCancelled () |
| return true, if process should be canceled by user e.g. | |
Protected Member Functions | |
| virtual void | updateProgressDisplay () |
| Template method, updates the display. | |
Protected Member Functions inherited from AppBase::ProgressDisplay | |
| ProgressDisplay (int maximum=0) | |
| constructor | |
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 |
Definition at line 31 of file MyProgressDialog.h.
|
inline |
Definition at line 39 of file MyProgressDialog.h.
| void ProgressReporterDialog::setMessage | ( | const std::string & | message, |
| const std::string & | filename = "" |
||
| ) |
Definition at line 43 of file MyProgressDialog.cpp.
References setMessage(), and threshold().
Referenced by setMessage(), and updateDisplay().
| void ProgressReporterDialog::setMessage | ( | const wxString & | message, |
| const wxString & | filename = wxEmptyString |
||
| ) |
Definition at line 48 of file MyProgressDialog.cpp.
References m_wxfilename, m_wxmessage, threshold(), and updateProgressDisplay().
Definition at line 55 of file MyProgressDialog.cpp.
References AppBase::ProgressDisplay::m_canceled, setMessage(), and threshold().
| bool ProgressReporterDialog::updateDisplayValue | ( | const wxString & | message, |
| const wxString & | filename = wxEmptyString |
||
| ) |
Definition at line 61 of file MyProgressDialog.cpp.
References m_wxfilename, m_wxmessage, and threshold().
|
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, m_wxmessage, and threshold().
Referenced by setMessage().
|
protected |
Definition at line 61 of file MyProgressDialog.h.
Referenced by setMessage(), updateDisplayValue(), and updateProgressDisplay().
|
protected |
Definition at line 60 of file MyProgressDialog.h.
Referenced by setMessage(), updateDisplayValue(), and updateProgressDisplay().