Hugin trunk 0.1
Loading...
Searching...
No Matches
MyProgressDialog.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
24#ifndef _MYPROGRESSDIALOG_H
25#define _MYPROGRESSDIALOG_H
26
27#include <hugin_shared.h>
28#include <wx/progdlg.h>
30
32#ifdef __WXMSW__
34#else
35 public wxProgressDialog, public AppBase::ProgressDisplay
36#endif
37{
38public:
40 wxWindow * parent = NULL,
42#ifdef __WXMSW__
44#else
45 : wxProgressDialog(title, message + wxString((wxChar)' ', 10), 100, parent, style),
46#endif
47 ProgressDisplay(maxProgress)
48 { };
49 // overwritten to work with wxString
50 void setMessage(const std::string& message, const std::string& filename = "");
51 // wxString versions for GUI
52 void setMessage(const wxString& message, const wxString& filename = wxEmptyString);
53 using ProgressDisplay::updateDisplay;
54 bool updateDisplay(const wxString& message);
55 using ProgressDisplay::updateDisplayValue;
56 bool updateDisplayValue(const wxString& message, const wxString& filename = wxEmptyString);
57
58protected:
59 virtual void updateProgressDisplay();
62};
63
64#endif // _MYPROGRESSDIALOG_H
void setMessage(const std::string &message, const std::string &filename="")
sets the message to given string
bool updateDisplay()
updates the display, return true, if update was successful, false if cancel was pressed
virtual void updateProgressDisplay()=0
Template method, updates the display.
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)
#define WXIMPEX
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41