|
Hugintrunk
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 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 |
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.
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 | ) |
Definition at line 55 of file MyProgressDialog.cpp.
References AppBase::ProgressDisplay::m_canceled, and setMessage().
Referenced by PanoOperation::CleanControlPointsOperation::GetInternalCommand(), PanoOperation::CelesteOperation::GetInternalCommand(), and CPEditorPanel::OnCelesteButton().
| bool ProgressReporterDialog::updateDisplayValue | ( | const wxString & | message, |
| const wxString & | filename = wxEmptyString |
||
| ) |
Definition at line 61 of file MyProgressDialog.cpp.
References m_wxfilename, and m_wxmessage.
Referenced by PanoOperation::CleanControlPointsOperation::GetInternalCommand(), and CPEditorPanel::OnCelesteButton().
|
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().
|
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().
1.8.5