KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_import_choose_project_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_IMPORT_CHOOSE_PROJECT_BASE::DIALOG_IMPORT_CHOOSE_PROJECT_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( wxSize( -1,-1 ), wxDefaultSize );
15
16 bSizerMain = new wxBoxSizer( wxVERTICAL );
17
18 m_titleText = new wxStaticText( this, wxID_ANY, _("This project file contains multiple PCB+Schematic combinations.\nChoose which one should be imported to KiCad."), wxDefaultPosition, wxDefaultSize, 0 );
19 m_titleText->Wrap( -1 );
20 bSizerMain->Add( m_titleText, 0, wxALL, 5 );
21
22 m_listCtrl = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
23 bSizerMain->Add( m_listCtrl, 1, wxALL|wxEXPAND, 5 );
24
25 wxBoxSizer* bSizerBottom;
26 bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
27
28 m_sdbSizer = new wxStdDialogButtonSizer();
29 m_sdbSizerOK = new wxButton( this, wxID_OK );
30 m_sdbSizer->AddButton( m_sdbSizerOK );
31 m_sdbSizer->Realize();
32
33 bSizerBottom->Add( m_sdbSizer, 1, wxEXPAND, 5 );
34
35
36 bSizerMain->Add( bSizerBottom, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
37
38
39 this->SetSizer( bSizerMain );
40 this->Layout();
41 bSizerMain->Fit( this );
42
43 // Connect Events
44 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_IMPORT_CHOOSE_PROJECT_BASE::onClose ) );
45 m_listCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( DIALOG_IMPORT_CHOOSE_PROJECT_BASE::onItemActivated ), NULL, this );
46}
47
49{
50 // Disconnect Events
51 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_IMPORT_CHOOSE_PROJECT_BASE::onClose ) );
52 m_listCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( DIALOG_IMPORT_CHOOSE_PROJECT_BASE::onItemActivated ), NULL, this );
53
54}
DIALOG_IMPORT_CHOOSE_PROJECT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Choose Project to Import"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxCAPTION|wxCLOSE_BOX|wxRESIZE_BORDER)
virtual void onItemActivated(wxListEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)