2015-04-25 22:26:51 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2017-11-26 23:13:42 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
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 )
|
|
|
|
{
|
2017-11-26 23:13:42 +00:00
|
|
|
this->SetSizeHints( wxSize( 500,-1 ), wxDefaultSize );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2017-11-26 23:13:42 +00:00
|
|
|
m_htmlPrompt = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
|
|
|
|
bSizerMain->Add( m_htmlPrompt, 1, wxALL|wxEXPAND, 5 );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
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 ) );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
2017-11-26 23:13:42 +00:00
|
|
|
bSizerMain->Add( m_titleSymbols, 0, wxLEFT|wxRIGHT, 5 );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
|
|
|
m_ListOfConflicts = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2015-04-28 15:07:36 +00:00
|
|
|
bSizerMain->Add( m_ListOfConflicts, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
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 ) );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
2017-03-09 18:16:24 +00:00
|
|
|
bSizerMain->Add( m_titleInstances, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
|
|
|
m_ListOfInstances = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2015-04-28 15:07:36 +00:00
|
|
|
bSizerMain->Add( m_ListOfInstances, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizerView;
|
|
|
|
bSizerView = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer6;
|
|
|
|
bSizer6 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2017-11-26 23:13:42 +00:00
|
|
|
m_staticText2 = new wxStaticText( this, wxID_ANY, _("Cached Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-04-25 22:26:51 +00:00
|
|
|
m_staticText2->Wrap( -1 );
|
2016-05-11 08:51:07 +00:00
|
|
|
m_staticText2->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
2015-04-27 08:44:17 +00:00
|
|
|
bSizer6->Add( m_staticText2, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
|
|
|
m_componentViewOld = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE|wxSUNKEN_BORDER );
|
|
|
|
m_componentViewOld->SetMinSize( wxSize( 150,150 ) );
|
|
|
|
|
2015-04-28 15:07:36 +00:00
|
|
|
bSizer6->Add( m_componentViewOld, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizerView->Add( bSizer6, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer7;
|
|
|
|
bSizer7 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2017-11-26 23:13:42 +00:00
|
|
|
m_staticText3 = new wxStaticText( this, wxID_ANY, _("Library Symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-04-25 22:26:51 +00:00
|
|
|
m_staticText3->Wrap( -1 );
|
2016-05-11 08:51:07 +00:00
|
|
|
m_staticText3->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
2015-04-27 08:44:17 +00:00
|
|
|
bSizer7->Add( m_staticText3, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
|
|
|
m_componentViewNew = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE|wxSUNKEN_BORDER );
|
|
|
|
m_componentViewNew->SetMinSize( wxSize( 150,150 ) );
|
|
|
|
|
2015-04-28 15:07:36 +00:00
|
|
|
bSizer7->Add( m_componentViewNew, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2015-04-25 22:26:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizerView->Add( bSizer7, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizerView, 2, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer5;
|
|
|
|
bSizer5 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
m_btnNeverShowAgain = new wxButton( this, wxID_ANY, _("Never Show Again"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer5->Add( m_btnNeverShowAgain, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
bSizer5->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizer5, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// 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_componentViewOld->Connect( wxEVT_PAINT, wxPaintEventHandler( DIALOG_RESCUE_EACH_BASE::OnHandleCachePreviewRepaint ), NULL, this );
|
|
|
|
m_componentViewNew->Connect( wxEVT_PAINT, wxPaintEventHandler( DIALOG_RESCUE_EACH_BASE::OnHandleLibraryPreviewRepaint ), NULL, this );
|
|
|
|
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_componentViewOld->Disconnect( wxEVT_PAINT, wxPaintEventHandler( DIALOG_RESCUE_EACH_BASE::OnHandleCachePreviewRepaint ), NULL, this );
|
|
|
|
m_componentViewNew->Disconnect( wxEVT_PAINT, wxPaintEventHandler( DIALOG_RESCUE_EACH_BASE::OnHandleLibraryPreviewRepaint ), NULL, this );
|
|
|
|
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 );
|
|
|
|
|
|
|
|
}
|