Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#include "wx/wxprec.h" |
| 2 |
#include <wx/progdlg.h> |
| 3 |
|
| 4 |
#include "progress.h" |
| 5 |
|
| 6 |
wxProgressDialog *globalProgress=NULL; |
| 7 |
|
| 8 |
bool UpdateProgress(int i){ |
| 9 |
bool res=globalProgress->Update(i); |
| 10 |
if (!res) EndProgress(); |
| 11 |
return res; |
| 12 |
} |
| 13 |
|
| 14 |
void StartProgress(char* str, int N){ |
| 15 |
EndProgress(); |
| 16 |
wxString st; st.Printf("QuteMol: %s...",str); |
| 17 |
globalProgress= new wxProgressDialog( |
| 18 |
//_T("QuteMol"), st, |
| 19 |
st, _T(""), |
| 20 |
N, NULL, wxPD_AUTO_HIDE|wxPD_APP_MODAL|wxPD_CAN_ABORT); |
| 21 |
} |
| 22 |
|
| 23 |
void EndProgress(){ |
| 24 |
if (globalProgress) { |
| 25 |
globalProgress->Destroy(); |
| 26 |
globalProgress=NULL; |
| 27 |
} |
| 28 |
} |