27 #include "hugin_config.h"
35 #include <pano13/filter.h>
36 #include <pano13/queryfeature.h>
45 vsprintf(message, fmt, ap);
72 "\n\n\n", 100, wxGetActiveWindow(),
73 wxPD_APP_MODAL | wxPD_CAN_ABORT);
77 dlg->Update(0, wxString(argument, wxConvLocal));
82 sscanf(argument,
"%ld", &percent);
83 if(percent>100) percent = 100;
84 if(percent<0 ) percent = 0;
85 if (! dlg->Update(percent)) {
91 case _disposeProgress:
112 static char mainMessage[256];
127 "0123456789012345678901234567890123456789012345\n\n\n\n\n",
129 "0123456789012345678901234567890123456789012345\n\n\n",
131 100, wxGetActiveWindow(),
132 wxPD_APP_MODAL | wxPD_CAN_ABORT | wxPD_ELAPSED_TIME);
136 dlg->Pulse(wxString(argument, wxConvLocal));
145 if( *argument !=
'+' )
147 strcpy( mainMessage, argument );
148 strcpy( text, argument );
152 sprintf( text,
"%s%s", mainMessage, &(argument[1]) );
154 cont = dlg->Pulse(wxString(argument, wxConvLocal));
162 case _disposeProgress:
187 PT_setProgressFcn(NULL);
188 PT_setErrorFcn(NULL);
189 PT_setInfoDlgFcn(NULL);
void registerPTWXDlgFcn()
void deregisterPTWXDlgFcn()
include file for the hugin project
static int PTProgressWX(int command, char *argument)
wxProgressDialog PTProgressDialog
static void PTPrintErrorWX(char *fmt, va_list ap)
include file for the hugin project
static int PTInfoDlgWX(int command, char *argument)
int HuginMessageBox(const wxString &message, const wxString &caption, int style, wxWindow *parent)