2015-04-25 22:26:51 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2020-01-04 23:27:32 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version v3.8.0)
|
2015-04-25 22:26:51 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-11-26 23:13:42 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2015-04-25 22:26:51 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_rescue_each_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
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 )
|
|
|
|
{
|
2018-01-06 18:18:28 +00:00
|
|
|
this->SetSizeHints( wxSize( 400,-1 ), wxDefaultSize );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizer8;
|
|
|
|
bSizer8 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2017-11-26 23:13:42 +00:00
|
|
|
m_htmlPrompt = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
|
2018-08-30 21:44:50 +00:00
|
|
|
m_htmlPrompt->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
|
2019-04-06 12:15:44 +00:00
|
|
|
m_htmlPrompt->SetMinSize( wxSize( -1,80 ) );
|
|
|
|
|
|
|
|
bSizer8->Add( m_htmlPrompt, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
|
|
|
|
2017-03-09 18:16:24 +00:00
|
|
|
m_titleSymbols = new wxStaticText( this, wxID_ANY, _("Symbols to update:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_titleSymbols->Wrap( -1 );
|
|
|
|
m_titleSymbols->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
bSizer8->Add( m_titleSymbols, 0, wxLEFT|wxRIGHT, 10 );
|
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
m_ListOfConflicts = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-04-06 12:15:44 +00:00
|
|
|
bSizer8->Add( m_ListOfConflicts, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
|
|
|
|
|
2017-03-09 18:16:24 +00:00
|
|
|
m_titleInstances = new wxStaticText( this, wxID_ANY, _("Instances of this symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_titleInstances->Wrap( -1 );
|
|
|
|
m_titleInstances->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
bSizer8->Add( m_titleInstances, 0, wxRIGHT|wxLEFT, 10 );
|
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
m_ListOfInstances = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-04-06 12:15:44 +00:00
|
|
|
bSizer8->Add( m_ListOfInstances, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizer8, 2, wxEXPAND, 5 );
|
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
wxBoxSizer* bSizerPreviews;
|
|
|
|
bSizerPreviews = new wxBoxSizer( wxHORIZONTAL );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
wxBoxSizer* bSizerLeftPreview;
|
|
|
|
bSizerLeftPreview = new wxBoxSizer( wxVERTICAL );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
m_previewOldLabel = new wxStaticText( this, wxID_ANY, _("Cached Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_previewOldLabel->Wrap( -1 );
|
|
|
|
m_previewOldLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
bSizerLeftPreview->Add( m_previewOldLabel, 0, 0, 5 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
m_previewOldPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
2018-09-15 07:00:13 +00:00
|
|
|
m_SizerOldPanel = new wxBoxSizer( wxVERTICAL );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
|
2018-09-15 07:00:13 +00:00
|
|
|
m_previewOldPanel->SetSizer( m_SizerOldPanel );
|
2018-08-30 21:44:50 +00:00
|
|
|
m_previewOldPanel->Layout();
|
2018-09-15 07:00:13 +00:00
|
|
|
m_SizerOldPanel->Fit( m_previewOldPanel );
|
2018-08-30 21:44:50 +00:00
|
|
|
bSizerLeftPreview->Add( m_previewOldPanel, 1, wxEXPAND | wxALL, 5 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
bSizerPreviews->Add( bSizerLeftPreview, 1, wxEXPAND, 5 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
wxBoxSizer* bSizerRightPreview;
|
|
|
|
bSizerRightPreview = new wxBoxSizer( wxVERTICAL );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
m_previewNewLabel = new wxStaticText( this, wxID_ANY, _("Library Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_previewNewLabel->Wrap( -1 );
|
|
|
|
m_previewNewLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
bSizerRightPreview->Add( m_previewNewLabel, 0, 0, 5 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
m_previewNewPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
2018-09-15 07:00:13 +00:00
|
|
|
m_SizerNewPanel = new wxBoxSizer( wxVERTICAL );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
|
2018-09-15 07:00:13 +00:00
|
|
|
m_previewNewPanel->SetSizer( m_SizerNewPanel );
|
2018-08-30 21:44:50 +00:00
|
|
|
m_previewNewPanel->Layout();
|
2018-09-15 07:00:13 +00:00
|
|
|
m_SizerNewPanel->Fit( m_previewNewPanel );
|
2018-08-30 21:44:50 +00:00
|
|
|
bSizerRightPreview->Add( m_previewNewPanel, 1, wxEXPAND | wxALL, 5 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
|
2018-08-30 21:44:50 +00:00
|
|
|
bSizerPreviews->Add( bSizerRightPreview, 1, wxEXPAND, 5 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizerPreviews, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
|
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
wxBoxSizer* bSizer5;
|
|
|
|
bSizer5 = new wxBoxSizer( wxHORIZONTAL );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
m_btnNeverShowAgain = new wxButton( this, wxID_ANY, _("Never Show Again"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-08-30 21:44:50 +00:00
|
|
|
bSizer5->Add( m_btnNeverShowAgain, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
m_stdButtons = new wxStdDialogButtonSizer();
|
|
|
|
m_stdButtonsOK = new wxButton( this, wxID_OK );
|
|
|
|
m_stdButtons->AddButton( m_stdButtonsOK );
|
|
|
|
m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_stdButtons->AddButton( m_stdButtonsCancel );
|
|
|
|
m_stdButtons->Realize();
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
bSizer5->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
bSizerMain->Add( bSizer5, 0, wxEXPAND, 5 );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2018-01-06 18:18:28 +00:00
|
|
|
bSizerMain->Fit( this );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
this->Centre( wxBOTH );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
// Connect Events
|
|
|
|
this->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RESCUE_EACH_BASE::OnDialogResize ) );
|
2016-05-11 08:51:07 +00:00
|
|
|
m_ListOfConflicts->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_RESCUE_EACH_BASE::OnConflictSelect ), NULL, this );
|
2015-04-25 22:26:51 +00:00
|
|
|
m_btnNeverShowAgain->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnNeverShowClick ), NULL, this );
|
|
|
|
m_stdButtonsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnCancelClick ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_RESCUE_EACH_BASE::~DIALOG_RESCUE_EACH_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RESCUE_EACH_BASE::OnDialogResize ) );
|
2016-05-11 08:51:07 +00:00
|
|
|
m_ListOfConflicts->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_RESCUE_EACH_BASE::OnConflictSelect ), NULL, this );
|
2015-04-25 22:26:51 +00:00
|
|
|
m_btnNeverShowAgain->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnNeverShowClick ), NULL, this );
|
|
|
|
m_stdButtonsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESCUE_EACH_BASE::OnCancelClick ), NULL, this );
|
2019-04-06 12:15:44 +00:00
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
}
|