KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_pcm_progress_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
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 )
13{
14 this->SetSizeHints( wxSize( 400,300 ), wxDefaultSize );
15
16 wxBoxSizer* bSizer1;
17 bSizer1 = new wxBoxSizer( wxVERTICAL );
18
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 );
22
23 m_downloadText = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Waiting..."), wxDefaultPosition, wxDefaultSize, 0 );
24 m_downloadText->Wrap( -1 );
25 sbSizer1->Add( m_downloadText, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
26
27 m_downloadGauge = new wxGauge( sbSizer1->GetStaticBox(), wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL|wxGA_SMOOTH );
28 m_downloadGauge->SetValue( 0 );
29 sbSizer1->Add( m_downloadGauge, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
30
31
32 m_panelDownload->SetSizer( sbSizer1 );
33 m_panelDownload->Layout();
34 sbSizer1->Fit( m_panelDownload );
35 bSizer1->Add( m_panelDownload, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
36
37 m_panel2 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
38 wxBoxSizer* bSizer3;
39 bSizer3 = new wxBoxSizer( wxVERTICAL );
40
41 wxStaticBoxSizer* sbSizer2;
42 sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( m_panel2, wxID_ANY, _("Overall Progress") ), wxVERTICAL );
43
44 m_overallGauge = new wxGauge( sbSizer2->GetStaticBox(), wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );
45 m_overallGauge->SetValue( 0 );
46 sbSizer2->Add( m_overallGauge, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
47
48
49 bSizer3->Add( sbSizer2, 0, wxEXPAND, 5 );
50
51 wxStaticBoxSizer* sbSizer3;
52 sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( m_panel2, wxID_ANY, _("Details") ), wxVERTICAL );
53
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 );
56
57
58 bSizer3->Add( sbSizer3, 1, wxEXPAND|wxTOP, 5 );
59
60 wxBoxSizer* bSizer2;
61 bSizer2 = new wxBoxSizer( wxHORIZONTAL );
62
63
64 bSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
65
66 m_buttonCancel = new wxButton( m_panel2, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
67 bSizer2->Add( m_buttonCancel, 0, wxALL, 5 );
68
69
70 bSizer2->Add( 20, 0, 0, wxEXPAND, 5 );
71
72 m_buttonClose = new wxButton( m_panel2, wxID_OK, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
73
74 m_buttonClose->SetDefault();
75 m_buttonClose->Enable( false );
76
77 bSizer2->Add( m_buttonClose, 0, wxALL, 5 );
78
79
80 bSizer3->Add( bSizer2, 0, wxEXPAND, 5 );
81
82
83 m_panel2->SetSizer( bSizer3 );
84 m_panel2->Layout();
85 bSizer3->Fit( m_panel2 );
86 bSizer1->Add( m_panel2, 1, wxEXPAND | wxALL, 5 );
87
88
89 this->SetSizer( bSizer1 );
90 this->Layout();
91
92 // Connect Events
93 m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PCM_PROGRESS_BASE::OnCancelClicked ), NULL, this );
94 m_buttonClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PCM_PROGRESS_BASE::OnCloseClicked ), NULL, this );
95}
96
98{
99 // Disconnect Events
100 m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PCM_PROGRESS_BASE::OnCancelClicked ), NULL, this );
101 m_buttonClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PCM_PROGRESS_BASE::OnCloseClicked ), NULL, this );
102
103}
virtual void OnCancelClicked(wxCommandEvent &event)
virtual void OnCloseClicked(wxCommandEvent &event)
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)
A slimmed down version of WX_HTML_REPORT_PANEL.
#define _(s)