KiCad PCB EDA Suite
dialog_rescue_each_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.0)
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( 400,-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 m_titleSymbols->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
31
32 bSizer8->Add( m_titleSymbols, 0, wxLEFT|wxRIGHT, 10 );
33
34 m_ListOfConflicts = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
35 bSizer8->Add( m_ListOfConflicts, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
36
37 m_titleInstances = new wxStaticText( this, wxID_ANY, _("Instances of this symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
38 m_titleInstances->Wrap( -1 );
39 m_titleInstances->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
40
41 bSizer8->Add( m_titleInstances, 0, wxRIGHT|wxLEFT, 10 );
42
43 m_ListOfInstances = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
44 bSizer8->Add( m_ListOfInstances, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
45
46
47 bSizerMain->Add( bSizer8, 2, wxEXPAND, 5 );
48
49 wxBoxSizer* bSizerPreviews;
50 bSizerPreviews = new wxBoxSizer( wxHORIZONTAL );
51
52 wxBoxSizer* bSizerLeftPreview;
53 bSizerLeftPreview = new wxBoxSizer( wxVERTICAL );
54
55 m_previewOldLabel = new wxStaticText( this, wxID_ANY, _("Cached Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_previewOldLabel->Wrap( -1 );
57 m_previewOldLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
58
59 bSizerLeftPreview->Add( m_previewOldLabel, 0, 0, 5 );
60
61 m_previewOldPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
62 m_SizerOldPanel = new wxBoxSizer( wxVERTICAL );
63
64
66 m_previewOldPanel->Layout();
68 bSizerLeftPreview->Add( m_previewOldPanel, 1, wxEXPAND | wxALL, 5 );
69
70
71 bSizerPreviews->Add( bSizerLeftPreview, 1, wxEXPAND, 5 );
72
73 wxBoxSizer* bSizerRightPreview;
74 bSizerRightPreview = new wxBoxSizer( wxVERTICAL );
75
76 m_previewNewLabel = new wxStaticText( this, wxID_ANY, _("Library Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
77 m_previewNewLabel->Wrap( -1 );
78 m_previewNewLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
79
80 bSizerRightPreview->Add( m_previewNewLabel, 0, 0, 5 );
81
82 m_previewNewPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
83 m_SizerNewPanel = new wxBoxSizer( wxVERTICAL );
84
85
87 m_previewNewPanel->Layout();
89 bSizerRightPreview->Add( m_previewNewPanel, 1, wxEXPAND | wxALL, 5 );
90
91
92 bSizerPreviews->Add( bSizerRightPreview, 1, wxEXPAND, 5 );
93
94
95 bSizerMain->Add( bSizerPreviews, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
96
97 wxBoxSizer* bSizer5;
98 bSizer5 = new wxBoxSizer( wxHORIZONTAL );
99
100 m_btnNeverShowAgain = new wxButton( this, wxID_ANY, _("Never Show Again"), wxDefaultPosition, wxDefaultSize, 0 );
101 bSizer5->Add( m_btnNeverShowAgain, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
102
103
104 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
105
106 m_stdButtons = new wxStdDialogButtonSizer();
107 m_stdButtonsOK = new wxButton( this, wxID_OK );
108 m_stdButtons->AddButton( m_stdButtonsOK );
109 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
110 m_stdButtons->AddButton( m_stdButtonsCancel );
111 m_stdButtons->Realize();
112
113 bSizer5->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
114
115
116 bSizerMain->Add( bSizer5, 0, wxEXPAND, 5 );
117
118
119 this->SetSizer( bSizerMain );
120 this->Layout();
121 bSizerMain->Fit( this );
122
123 this->Centre( wxBOTH );
124
125 // Connect Events
126 this->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RESCUE_EACH_BASE::OnDialogResize ) );
127 m_ListOfConflicts->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_RESCUE_EACH_BASE::OnConflictSelect ), NULL, this );
128 m_btnNeverShowAgain->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnNeverShowClick ), NULL, this );
129 m_stdButtonsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnCancelClick ), NULL, this );
130}
131
133{
134 // Disconnect Events
135 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RESCUE_EACH_BASE::OnDialogResize ) );
136 m_ListOfConflicts->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_RESCUE_EACH_BASE::OnConflictSelect ), NULL, this );
137 m_btnNeverShowAgain->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnNeverShowClick ), NULL, this );
138 m_stdButtonsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnCancelClick ), NULL, this );
139
140}
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:83
Add dark theme support to wxHtmlWindow.
Definition: html_window.h:34
#define _(s)