KiCad PCB EDA Suite
dialog_rescue_each_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jul 11 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_RESCUE_EACH_BASE::DIALOG_RESCUE_EACH_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( 400,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  m_htmlPrompt = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
20  m_htmlPrompt->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
21  m_htmlPrompt->SetMinSize( wxSize( -1,50 ) );
22 
23  bSizerMain->Add( m_htmlPrompt, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
24 
25  m_titleSymbols = new wxStaticText( this, wxID_ANY, _("Symbols to update:"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_titleSymbols->Wrap( -1 );
27  m_titleSymbols->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
28 
29  bSizerMain->Add( m_titleSymbols, 0, wxLEFT|wxRIGHT, 10 );
30 
31  m_ListOfConflicts = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
32  bSizerMain->Add( m_ListOfConflicts, 3, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
33 
34  m_titleInstances = new wxStaticText( this, wxID_ANY, _("Instances of this symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
35  m_titleInstances->Wrap( -1 );
36  m_titleInstances->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
37 
38  bSizerMain->Add( m_titleInstances, 0, wxRIGHT|wxLEFT, 10 );
39 
40  m_ListOfInstances = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
41  bSizerMain->Add( m_ListOfInstances, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
42 
43  wxBoxSizer* bSizerPreviews;
44  bSizerPreviews = new wxBoxSizer( wxHORIZONTAL );
45 
46  wxBoxSizer* bSizerLeftPreview;
47  bSizerLeftPreview = new wxBoxSizer( wxVERTICAL );
48 
49  m_previewOldLabel = new wxStaticText( this, wxID_ANY, _("Cached Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
50  m_previewOldLabel->Wrap( -1 );
51  m_previewOldLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
52 
53  bSizerLeftPreview->Add( m_previewOldLabel, 0, 0, 5 );
54 
55  m_previewOldPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
56  m_SizerOldPanel = new wxBoxSizer( wxVERTICAL );
57 
58 
60  m_previewOldPanel->Layout();
62  bSizerLeftPreview->Add( m_previewOldPanel, 1, wxEXPAND | wxALL, 5 );
63 
64 
65  bSizerPreviews->Add( bSizerLeftPreview, 1, wxEXPAND, 5 );
66 
67  wxBoxSizer* bSizerRightPreview;
68  bSizerRightPreview = new wxBoxSizer( wxVERTICAL );
69 
70  m_previewNewLabel = new wxStaticText( this, wxID_ANY, _("Library Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
71  m_previewNewLabel->Wrap( -1 );
72  m_previewNewLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
73 
74  bSizerRightPreview->Add( m_previewNewLabel, 0, 0, 5 );
75 
76  m_previewNewPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
77  m_SizerNewPanel = new wxBoxSizer( wxVERTICAL );
78 
79 
81  m_previewNewPanel->Layout();
83  bSizerRightPreview->Add( m_previewNewPanel, 1, wxEXPAND | wxALL, 5 );
84 
85 
86  bSizerPreviews->Add( bSizerRightPreview, 1, wxEXPAND, 5 );
87 
88 
89  bSizerMain->Add( bSizerPreviews, 3, wxEXPAND|wxRIGHT|wxLEFT, 10 );
90 
91  wxBoxSizer* bSizer5;
92  bSizer5 = new wxBoxSizer( wxHORIZONTAL );
93 
94  m_btnNeverShowAgain = new wxButton( this, wxID_ANY, _("Never Show Again"), wxDefaultPosition, wxDefaultSize, 0 );
95  bSizer5->Add( m_btnNeverShowAgain, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
96 
97 
98  bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
99 
100  m_stdButtons = new wxStdDialogButtonSizer();
101  m_stdButtonsOK = new wxButton( this, wxID_OK );
102  m_stdButtons->AddButton( m_stdButtonsOK );
103  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
104  m_stdButtons->AddButton( m_stdButtonsCancel );
105  m_stdButtons->Realize();
106 
107  bSizer5->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
108 
109 
110  bSizerMain->Add( bSizer5, 0, wxEXPAND, 5 );
111 
112 
113  this->SetSizer( bSizerMain );
114  this->Layout();
115  bSizerMain->Fit( this );
116 
117  this->Centre( wxBOTH );
118 
119  // Connect Events
120  this->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RESCUE_EACH_BASE::OnDialogResize ) );
121  m_ListOfConflicts->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_RESCUE_EACH_BASE::OnConflictSelect ), NULL, this );
122  m_btnNeverShowAgain->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnNeverShowClick ), NULL, this );
123  m_stdButtonsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnCancelClick ), NULL, this );
124 }
125 
127 {
128  // Disconnect Events
129  this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RESCUE_EACH_BASE::OnDialogResize ) );
130  m_ListOfConflicts->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_RESCUE_EACH_BASE::OnConflictSelect ), NULL, this );
131  m_btnNeverShowAgain->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnNeverShowClick ), NULL, this );
132  m_stdButtonsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnCancelClick ), NULL, this );
133 
134 }
virtual void OnNeverShowClick(wxCommandEvent &event)
DIALOG_RESCUE_EACH_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Project Rescue Helper"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
virtual void OnConflictSelect(wxDataViewEvent &event)
virtual void OnCancelClick(wxCommandEvent &event)
wxStdDialogButtonSizer * m_stdButtons
virtual void OnDialogResize(wxSizeEvent &event)
wxDataViewListCtrl * m_ListOfConflicts
wxDataViewListCtrl * m_ListOfInstances