X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d78b3d64143f165857922e1e695ba4164d61869f..53e46b61bbe4ce72b92c8898907f0a879d5f012b:/src/generic/busyinfo.cpp diff --git a/src/generic/busyinfo.cpp b/src/generic/busyinfo.cpp index 0b5893dd9f..be101dcf52 100644 --- a/src/generic/busyinfo.cpp +++ b/src/generic/busyinfo.cpp @@ -7,58 +7,49 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation +#pragma implementation "busyinfo.h" #endif -#include +#include "wx/wxprec.h" #ifdef __BORDLANDC__ #pragma hdrstop #endif -#ifndef WXPRECOMP -#include -#endif - #if wxUSE_BUSYINFO #include "wx/busyinfo.h" - - - +#include "wx/stattext.h" +#include "wx/panel.h" +#include "wx/utils.h" wxInfoFrame::wxInfoFrame(wxWindow *parent, const wxString& message) - : wxFrame(parent, -1, "", wxPoint(0, 0), wxSize(400, 80), wxTHICK_FRAME | wxSIMPLE_BORDER | wxFRAME_TOOL_WINDOW) + : wxFrame(parent, -1, wxT(""), wxPoint(0, 0), wxSize(400, 80), wxTHICK_FRAME | wxSIMPLE_BORDER | wxFRAME_TOOL_WINDOW) { - wxPanel *p = new wxPanel(this); - wxStaticText *s = new wxStaticText(p, -1, message, wxPoint(20, 20), wxSize(360, 40), wxALIGN_CENTER); + wxPanel *p = new wxPanel( this ); + wxStaticText *s = new wxStaticText( p, -1, message, wxPoint(20, 20), wxSize(360, 40), wxALIGN_CENTER ); Centre(wxBOTH); - p -> SetCursor(*wxHOURGLASS_CURSOR); - s -> SetCursor(*wxHOURGLASS_CURSOR); + p->SetCursor(*wxHOURGLASS_CURSOR); + s->SetCursor(*wxHOURGLASS_CURSOR); } - - - wxBusyInfo::wxBusyInfo(const wxString& message) : wxObject() { - m_InfoFrame = new wxInfoFrame(NULL, message); - m_InfoFrame -> Show(TRUE); + m_InfoFrame = new wxInfoFrame( (wxWindow*) NULL, message); + m_InfoFrame->Show(TRUE); wxYield(); - m_InfoFrame -> Refresh(); + m_InfoFrame->Refresh(); wxYield(); } - - wxBusyInfo::~wxBusyInfo() { - m_InfoFrame -> Show(FALSE); - m_InfoFrame -> Close(); + m_InfoFrame->Show(FALSE); + m_InfoFrame->Close(); wxYield(); } - - #endif + // wxUSE_BUSYINFO +