12DIALOG_PCM_PROGRESS_BASE::DIALOG_PCM_PROGRESS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) : wxDialog( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxSize( 400,300 ), wxDefaultSize );
17 bSizer1 =
new wxBoxSizer( wxVERTICAL );
19 m_panelDownload =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
20 wxStaticBoxSizer* sbSizer1;
21 sbSizer1 =
new wxStaticBoxSizer(
new wxStaticBox(
m_panelDownload, wxID_ANY,
_(
"Download Progress") ), wxVERTICAL );
23 m_downloadText =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Waiting..."), wxDefaultPosition, wxDefaultSize, 0 );
27 m_downloadGauge =
new wxGauge( sbSizer1->GetStaticBox(), wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL|wxGA_SMOOTH );
29 sbSizer1->Add(
m_downloadGauge, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
37 m_panel2 =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
39 bSizer3 =
new wxBoxSizer( wxVERTICAL );
41 wxStaticBoxSizer* sbSizer2;
42 sbSizer2 =
new wxStaticBoxSizer(
new wxStaticBox(
m_panel2, wxID_ANY,
_(
"Overall Progress") ), wxVERTICAL );
44 m_overallGauge =
new wxGauge( sbSizer2->GetStaticBox(), wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );
46 sbSizer2->Add(
m_overallGauge, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
49 bSizer3->Add( sbSizer2, 0, wxEXPAND, 5 );
51 wxStaticBoxSizer* sbSizer3;
52 sbSizer3 =
new wxStaticBoxSizer(
new wxStaticBox(
m_panel2, wxID_ANY,
_(
"Details") ), wxVERTICAL );
54 m_reporter =
new WX_HTML_REPORT_BOX( sbSizer3->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxHW_SCROLLBAR_AUTO|wxHSCROLL|wxVSCROLL );
55 sbSizer3->Add(
m_reporter, 1, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
58 bSizer3->Add( sbSizer3, 1, wxEXPAND|wxTOP, 5 );
61 bSizer2 =
new wxBoxSizer( wxHORIZONTAL );
64 bSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
70 bSizer2->Add( 20, 0, 0, wxEXPAND, 5 );
80 bSizer3->Add( bSizer2, 0, wxEXPAND, 5 );
86 bSizer1->Add(
m_panel2, 1, wxEXPAND | wxALL, 5 );
89 this->SetSizer( bSizer1 );
virtual void OnCancelClicked(wxCommandEvent &event)
~DIALOG_PCM_PROGRESS_BASE()
wxPanel * m_panelDownload
wxButton * m_buttonCancel
virtual void OnCloseClicked(wxCommandEvent &event)
wxGauge * m_downloadGauge
DIALOG_PCM_PROGRESS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Applying Package Changes"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 500), long style=wxCAPTION)
wxStaticText * m_downloadText
WX_HTML_REPORT_BOX * m_reporter
A slimmed down version of WX_HTML_REPORT_PANEL.