ProgressReporterDialog Class Reference

#include <MyProgressDialog.h>

Inheritance diagram for ProgressReporterDialog:

Inheritance graph
[legend]
List of all members.

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="")
 sets the message to given string
void setMessage (const wxString &message, const wxString &filename=wxEmptyString)
bool updateDisplay (const wxString &message)
bool updateDisplayValue (const wxString &message, const wxString &filename=wxEmptyString)

Protected Member Functions

virtual void updateProgressDisplay ()
 Template method, updates the display.

Protected Attributes

wxString m_wxmessage
wxString m_wxfilename

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 wxString &  message,
const wxString &  filename = wxEmptyString 
)

Definition at line 48 of file MyProgressDialog.cpp.

References m_wxfilename, m_wxmessage, and updateProgressDisplay().

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

sets the message to given string

Reimplemented from AppBase::ProgressDisplay.

Definition at line 43 of file MyProgressDialog.cpp.

Referenced by updateDisplay().

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(), 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().

void ProgressReporterDialog::updateProgressDisplay (  )  [protected, virtual]

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:
Generated on 2 Sep 2015 for Hugintrunk by  doxygen 1.4.7