]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/progdlg.cpp
29da0fa77da3758ffa786ea4bcf07f9e60b7cc68
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/progdlg.cpp
3 // Purpose: wxProgressDialog implementation
4 // Author: Wlodzimierz ABX Skiba
8 // Copyright: (c) Wlodzimierz Skiba
9 // License: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "progdlg.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
24 #include "wx/string.h"
33 #include "wx/progdlg.h"
34 #include "wx/msgdlg.h"
36 IMPLEMENT_CLASS(wxProgressDialog
, wxDialog
)
38 static Boolean
wxProgressCallback(PrgCallbackData
*data
)
43 wxProgressDialog
*dialog
= (wxProgressDialog
*)data
->userDataP
;
48 // /* uint16_t */ data->bitmapId = 0;
49 // /* DmOpenRef */ data->bitmapDatabase = 0;
50 /* char * */ data
->textP
= "test";
51 // /* status_t */ data->error;
52 // /* uint16_t */ data->canceled;
53 /* uint16_t */ data
->textChanged
= false;
54 /* uint16_t */ data
->displaySkipBtn
= true;
55 // /* uint16_t */ data->skipped:1;
56 // /* uint32_t */ data->timeout;
57 /* uint32_t */ data
->barMaxValue
= (uint32_t)dialog
->GetMaxValue();
58 /* uint32_t */ data
->barCurValue
= (uint32_t)dialog
->GetCurValue();
59 /* uint16_t */ data
->delay
= false ;
73 wxProgressDialog::wxProgressDialog(const wxString
&title
,
74 wxString
const &message
,
78 :wxDialog(parent
, wxID_ANY
, title
),
84 wxString prgTitle
= title
.Mid(0, progressMaxTitle
);
86 m_prgFrame
= PrgStartDialog(prgTitle
.ToAscii(), wxProgressCallback
, this);
89 wxProgressDialog::~wxProgressDialog()
93 PrgStopDialog(m_prgFrame
, false);
98 bool wxProgressDialog::Update(int value
, const wxString
& newmsg
, bool *skip
)
105 // PrgUpdateDialog crashes, needs debugging
106 // PrgUpdateDialog(m_prgFrame, 0, 1, newmsg.ToAscii(), true);
110 void wxProgressDialog::Resume()
114 bool wxProgressDialog::Show(bool show
)
119 #endif // wxUSE_PROGRESSDLG