KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_downgrade_report_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_DOWNGRADE_REPORT_BASE::DIALOG_DOWNGRADE_REPORT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13{
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 m_headline = new wxStaticText( this, wxID_ANY, _("Exporting will change some features:"), wxDefaultPosition, wxDefaultSize, 0 );
20 m_headline->Wrap( -1 );
21 bSizerMain->Add( m_headline, 0, wxALL, 10 );
22
23 m_reportList = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_ROW_LINES );
24 m_reportList->SetMinSize( wxSize( 500,250 ) );
25
26 bSizerMain->Add( m_reportList, 1, wxALL|wxEXPAND, 10 );
27
28 m_note = new wxStaticText( this, wxID_ANY, _("Your current project is not modified."), wxDefaultPosition, wxDefaultSize, 0 );
29 m_note->Wrap( -1 );
30 bSizerMain->Add( m_note, 0, wxALL, 5 );
31
32 wxBoxSizer* bSizerButtons;
33 bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
34
35 m_buttonSaveReport = new wxButton( this, wxID_ANY, _("Save Report..."), wxDefaultPosition, wxDefaultSize, 0 );
36 m_buttonSaveReport->SetToolTip( _("Save the compatibility report as a text file.") );
37
38 bSizerButtons->Add( m_buttonSaveReport, 0, wxALIGN_CENTER_VERTICAL, 0 );
39
40
41 bSizerButtons->Add( 0, 0, 1, wxEXPAND, 0 );
42
43 m_sdbSizer = new wxStdDialogButtonSizer();
44 m_sdbSizerOK = new wxButton( this, wxID_OK );
45 m_sdbSizer->AddButton( m_sdbSizerOK );
46 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
47 m_sdbSizer->AddButton( m_sdbSizerCancel );
48 m_sdbSizer->Realize();
49
50 bSizerButtons->Add( m_sdbSizer, 0, wxALIGN_CENTER_VERTICAL, 0 );
51
52
53 bSizerMain->Add( bSizerButtons, 0, wxALL|wxEXPAND, 5 );
54
55
56 this->SetSizer( bSizerMain );
57 this->Layout();
58
59 this->Centre( wxBOTH );
60
61 // Connect Events
62 m_buttonSaveReport->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DOWNGRADE_REPORT_BASE::OnSaveReport ), NULL, this );
63}
64
virtual void OnSaveReport(wxCommandEvent &event)
DIALOG_DOWNGRADE_REPORT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Compatibility Report"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 386), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
#define _(s)