KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_rescue_each_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_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( -1,-1 ), wxDefaultSize );
15
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bSizer8;
20 bSizer8 = new wxBoxSizer( wxVERTICAL );
21
22 m_htmlPrompt = new HTML_WINDOW( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
23 m_htmlPrompt->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
24 m_htmlPrompt->SetMinSize( wxSize( -1,80 ) );
25
26 bSizer8->Add( m_htmlPrompt, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
27
28 m_titleSymbols = new wxStaticText( this, wxID_ANY, _("Symbols to update:"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_titleSymbols->Wrap( -1 );
30 bSizer8->Add( m_titleSymbols, 0, wxEXPAND|wxLEFT|wxRIGHT, 10 );
31
32
33 bSizer8->Add( 0, 2, 0, wxEXPAND, 5 );
34
35 m_ListOfConflicts = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
36 bSizer8->Add( m_ListOfConflicts, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
37
38 m_titleInstances = new wxStaticText( this, wxID_ANY, _("Instances of this symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
39 m_titleInstances->Wrap( -1 );
40 bSizer8->Add( m_titleInstances, 0, wxEXPAND|wxLEFT|wxRIGHT, 10 );
41
42
43 bSizer8->Add( 0, 2, 0, wxEXPAND, 5 );
44
45 m_ListOfInstances = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
46 bSizer8->Add( m_ListOfInstances, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
47
48
49 bSizerMain->Add( bSizer8, 3, wxEXPAND, 5 );
50
51 wxBoxSizer* bSizerPreviews;
52 bSizerPreviews = new wxBoxSizer( wxHORIZONTAL );
53
54 wxBoxSizer* bSizerLeftPreview;
55 bSizerLeftPreview = new wxBoxSizer( wxVERTICAL );
56
57 m_previewOldLabel = new wxStaticText( this, wxID_ANY, _("Cached Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_previewOldLabel->Wrap( -1 );
59 bSizerLeftPreview->Add( m_previewOldLabel, 0, 0, 5 );
60
61 m_previewOldPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
62 m_previewOldPanel->SetMinSize( wxSize( 350,-1 ) );
63
64 m_SizerOldPanel = new wxBoxSizer( wxVERTICAL );
65
66
68 m_previewOldPanel->Layout();
70 bSizerLeftPreview->Add( m_previewOldPanel, 1, wxEXPAND | wxALL, 5 );
71
72
73 bSizerPreviews->Add( bSizerLeftPreview, 1, wxEXPAND, 5 );
74
75 wxBoxSizer* bSizerRightPreview;
76 bSizerRightPreview = new wxBoxSizer( wxVERTICAL );
77
78 m_previewNewLabel = new wxStaticText( this, wxID_ANY, _("Library Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
79 m_previewNewLabel->Wrap( -1 );
80 bSizerRightPreview->Add( m_previewNewLabel, 0, 0, 5 );
81
82 m_previewNewPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
83 m_previewNewPanel->SetMinSize( wxSize( 350,-1 ) );
84
85 m_SizerNewPanel = new wxBoxSizer( wxVERTICAL );
86
87
89 m_previewNewPanel->Layout();
91 bSizerRightPreview->Add( m_previewNewPanel, 1, wxEXPAND | wxALL, 5 );
92
93
94 bSizerPreviews->Add( bSizerRightPreview, 1, wxEXPAND, 5 );
95
96
97 bSizerMain->Add( bSizerPreviews, 2, wxEXPAND|wxRIGHT|wxLEFT, 10 );
98
99 wxBoxSizer* bSizer5;
100 bSizer5 = new wxBoxSizer( wxHORIZONTAL );
101
102 m_btnNeverShowAgain = new wxButton( this, wxID_ANY, _("Never Show Again"), wxDefaultPosition, wxDefaultSize, 0 );
103 bSizer5->Add( m_btnNeverShowAgain, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
104
105
106 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
107
108 m_stdButtons = new wxStdDialogButtonSizer();
109 m_stdButtonsOK = new wxButton( this, wxID_OK );
110 m_stdButtons->AddButton( m_stdButtonsOK );
111 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
112 m_stdButtons->AddButton( m_stdButtonsCancel );
113 m_stdButtons->Realize();
114
115 bSizer5->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
116
117
118 bSizerMain->Add( bSizer5, 0, wxEXPAND, 5 );
119
120
121 this->SetSizer( bSizerMain );
122 this->Layout();
123 bSizerMain->Fit( this );
124
125 this->Centre( wxBOTH );
126
127 // Connect Events
128 this->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RESCUE_EACH_BASE::OnDialogResize ) );
129 m_ListOfConflicts->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_RESCUE_EACH_BASE::OnConflictSelect ), NULL, this );
130 m_btnNeverShowAgain->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnNeverShowClick ), NULL, this );
131 m_stdButtonsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnCancelClick ), NULL, this );
132}
133
135{
136 // Disconnect Events
137 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RESCUE_EACH_BASE::OnDialogResize ) );
138 m_ListOfConflicts->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_RESCUE_EACH_BASE::OnConflictSelect ), NULL, this );
139 m_btnNeverShowAgain->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnNeverShowClick ), NULL, this );
140 m_stdButtonsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnCancelClick ), NULL, this );
141
142}
virtual void OnDialogResize(wxSizeEvent &event)
virtual void OnConflictSelect(wxDataViewEvent &event)
virtual void OnCancelClick(wxCommandEvent &event)
wxDataViewListCtrl * m_ListOfConflicts
wxDataViewListCtrl * m_ListOfInstances
wxStdDialogButtonSizer * m_stdButtons
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)
virtual void OnNeverShowClick(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
Add dark theme support to wxHtmlWindow.
Definition: html_window.h:35
#define _(s)