27 #include "hugin_config.h"
34 #include <pano13/filter.h>
35 #include <pano13/queryfeature.h>
44 vsprintf(message, fmt, ap);
47 wxMessageBox(wxString(message,wxConvLocal), _(
"Panorama Tools"), wxOK | wxICON_HAND);
56 static wxProgressDialog * dlg = 0;
66 dlg =
new wxProgressDialog(_(
"Panorama Tools"),
67 wxT(
"\n\n\n"), 100, wxGetActiveWindow(),
68 wxPD_APP_MODAL | wxPD_CAN_ABORT);
72 dlg->Update(0, wxString(argument, wxConvLocal));
77 sscanf(argument,
"%ld", &percent);
78 if(percent>100) percent = 100;
79 if(percent<0 ) percent = 0;
80 if (! dlg->Update(percent)) {
86 case _disposeProgress:
107 static char mainMessage[256];
109 static wxProgressDialog * dlg = 0;
120 dlg =
new wxProgressDialog(_(
"Panorama Tools"),
122 wxT(
"0123456789012345678901234567890123456789012345\n\n\n\n\n"),
124 wxT(
"0123456789012345678901234567890123456789012345\n\n\n"),
126 100, wxGetActiveWindow(),
127 wxPD_APP_MODAL | wxPD_CAN_ABORT | wxPD_ELAPSED_TIME);
131 dlg->Pulse(wxString(argument, wxConvLocal));
140 if( *argument !=
'+' )
142 strcpy( mainMessage, argument );
143 strcpy( text, argument );
147 sprintf( text,
"%s%s", mainMessage, &(argument[1]) );
149 cont = dlg->Pulse(wxString(argument, wxConvLocal));
157 case _disposeProgress:
182 PT_setProgressFcn(NULL);
183 PT_setErrorFcn(NULL);
184 PT_setInfoDlgFcn(NULL);
void registerPTWXDlgFcn()
void deregisterPTWXDlgFcn()
include file for the hugin project
static int PTProgressWX(int command, char *argument)
static void PTPrintErrorWX(char *fmt, va_list ap)
include file for the hugin project
static int PTInfoDlgWX(int command, char *argument)