2018-10-13 18:37:28 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2022-09-12 23:58:55 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2018-10-13 18:37:28 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "pcb_layer_box_selector.h"
|
2022-12-13 20:47:28 +00:00
|
|
|
#include "widgets/std_bitmap_button.h"
|
2018-10-13 18:37:28 +00:00
|
|
|
|
|
|
|
#include "dialog_import_gfx_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_IMPORT_GFX_BASE::DIALOG_IMPORT_GFX_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-10-13 18:37:28 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-10-13 18:37:28 +00:00
|
|
|
wxBoxSizer* bSizerFile;
|
|
|
|
bSizerFile = new wxBoxSizer( wxHORIZONTAL );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_staticTextFile = new wxStaticText( this, wxID_ANY, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-11-05 16:04:05 +00:00
|
|
|
m_staticTextFile->Wrap( -1 );
|
2019-06-08 16:43:12 +00:00
|
|
|
m_staticTextFile->SetToolTip( _("Only vectors will be imported. Bitmaps and fonts will be ignored.") );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2019-04-03 13:57:31 +00:00
|
|
|
bSizerFile->Add( m_staticTextFile, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-10-13 18:37:28 +00:00
|
|
|
m_textCtrlFileName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-06-08 16:43:12 +00:00
|
|
|
m_textCtrlFileName->SetToolTip( _("Only vectors will be imported. Bitmaps and fonts will be ignored.") );
|
2018-10-13 18:37:28 +00:00
|
|
|
m_textCtrlFileName->SetMinSize( wxSize( 300,-1 ) );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
bSizerFile->Add( m_textCtrlFileName, 1, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
m_browseButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
|
|
|
|
bSizerFile->Add( m_browseButton, 0, wxTOP|wxBOTTOM, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
bSizerMain->Add( bSizerFile, 0, wxALL|wxEXPAND, 10 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2019-06-08 16:34:52 +00:00
|
|
|
wxStaticBoxSizer* sbSizer2;
|
2020-11-11 15:58:12 +00:00
|
|
|
sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Placement") ), wxVERTICAL );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-11-05 16:04:05 +00:00
|
|
|
wxBoxSizer* bSizerOptions;
|
|
|
|
bSizerOptions = new wxBoxSizer( wxVERTICAL );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2019-07-16 01:23:20 +00:00
|
|
|
m_rbInteractivePlacement = new wxRadioButton( sbSizer2->GetStaticBox(), wxID_ANY, _("Interactive placement"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-04-19 11:41:54 +00:00
|
|
|
m_rbInteractivePlacement->SetValue( true );
|
2020-11-23 11:44:46 +00:00
|
|
|
bSizerOptions->Add( m_rbInteractivePlacement, 0, wxEXPAND|wxBOTTOM, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-11-05 16:04:05 +00:00
|
|
|
wxBoxSizer* bSizerUserPos;
|
|
|
|
bSizerUserPos = new wxBoxSizer( wxHORIZONTAL );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2019-07-16 01:23:20 +00:00
|
|
|
m_rbAbsolutePlacement = new wxRadioButton( sbSizer2->GetStaticBox(), wxID_ANY, _("At"), wxDefaultPosition, wxDefaultSize, 0 );
|
2019-04-03 13:57:31 +00:00
|
|
|
bSizerUserPos->Add( m_rbAbsolutePlacement, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-11-05 16:04:05 +00:00
|
|
|
wxBoxSizer* bSizerPosSettings;
|
|
|
|
bSizerPosSettings = new wxBoxSizer( wxHORIZONTAL );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_xLabel = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("X:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_xLabel->Wrap( -1 );
|
|
|
|
bSizerPosSettings->Add( m_xLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_xCtrl = new wxTextCtrl( sbSizer2->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2018-10-13 18:37:28 +00:00
|
|
|
#ifdef __WXGTK__
|
2022-09-12 23:58:55 +00:00
|
|
|
if ( !m_xCtrl->HasFlag( wxTE_MULTILINE ) )
|
2018-10-13 18:37:28 +00:00
|
|
|
{
|
2022-09-12 23:58:55 +00:00
|
|
|
m_xCtrl->SetMaxLength( 10 );
|
2018-10-13 18:37:28 +00:00
|
|
|
}
|
|
|
|
#else
|
2022-09-12 23:58:55 +00:00
|
|
|
m_xCtrl->SetMaxLength( 10 );
|
2018-10-13 18:37:28 +00:00
|
|
|
#endif
|
2022-09-12 23:58:55 +00:00
|
|
|
m_xCtrl->SetToolTip( _("DXF origin on PCB Grid, X Coordinate") );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
bSizerPosSettings->Add( m_xCtrl, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_xUnits = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_xUnits->Wrap( -1 );
|
2022-10-04 21:06:08 +00:00
|
|
|
bSizerPosSettings->Add( m_xUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_yLabel = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Y:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_yLabel->Wrap( -1 );
|
|
|
|
bSizerPosSettings->Add( m_yLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
|
|
|
|
|
|
|
|
m_yCtrl = new wxTextCtrl( sbSizer2->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2018-10-13 18:37:28 +00:00
|
|
|
#ifdef __WXGTK__
|
2022-09-12 23:58:55 +00:00
|
|
|
if ( !m_yCtrl->HasFlag( wxTE_MULTILINE ) )
|
2018-10-13 18:37:28 +00:00
|
|
|
{
|
2022-09-12 23:58:55 +00:00
|
|
|
m_yCtrl->SetMaxLength( 10 );
|
2018-10-13 18:37:28 +00:00
|
|
|
}
|
|
|
|
#else
|
2022-09-12 23:58:55 +00:00
|
|
|
m_yCtrl->SetMaxLength( 10 );
|
2018-10-13 18:37:28 +00:00
|
|
|
#endif
|
2022-09-12 23:58:55 +00:00
|
|
|
m_yCtrl->SetToolTip( _("DXF origin on PCB Grid, Y Coordinate") );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
bSizerPosSettings->Add( m_yCtrl, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_yUnits = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_yUnits->Wrap( -1 );
|
|
|
|
bSizerPosSettings->Add( m_yUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2020-08-20 00:22:48 +00:00
|
|
|
bSizerUserPos->Add( bSizerPosSettings, 1, wxBOTTOM|wxEXPAND|wxRIGHT|wxTOP, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2018-11-05 16:04:05 +00:00
|
|
|
bSizerOptions->Add( bSizerUserPos, 0, wxEXPAND, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
sbSizer2->Add( bSizerOptions, 0, wxEXPAND, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
bSizerMain->Add( sbSizer2, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2019-06-08 16:34:52 +00:00
|
|
|
wxStaticBoxSizer* sbSizer1;
|
2020-11-11 15:58:12 +00:00
|
|
|
sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Import Parameters") ), wxVERTICAL );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-11-05 16:04:05 +00:00
|
|
|
wxBoxSizer* bSizer7;
|
|
|
|
bSizer7 = new wxBoxSizer( wxHORIZONTAL );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-11-05 16:04:05 +00:00
|
|
|
wxFlexGridSizer* fgSizerImportSettings;
|
2019-04-03 13:57:31 +00:00
|
|
|
fgSizerImportSettings = new wxFlexGridSizer( 0, 3, 5, 5 );
|
2018-11-05 16:04:05 +00:00
|
|
|
fgSizerImportSettings->AddGrowableCol( 1 );
|
|
|
|
fgSizerImportSettings->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizerImportSettings->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
m_staticTextBrdlayer = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Graphic layer:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-10-13 18:37:28 +00:00
|
|
|
m_staticTextBrdlayer->Wrap( -1 );
|
2019-04-03 13:57:31 +00:00
|
|
|
fgSizerImportSettings->Add( m_staticTextBrdlayer, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
m_SelLayerBox = new PCB_LAYER_BOX_SELECTOR( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
|
2022-10-04 21:06:08 +00:00
|
|
|
fgSizerImportSettings->Add( m_SelLayerBox, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2018-11-05 16:04:05 +00:00
|
|
|
fgSizerImportSettings->Add( 0, 0, 0, 0, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_importScaleLabel = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Import scale:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_importScaleLabel->Wrap( -1 );
|
|
|
|
fgSizerImportSettings->Add( m_importScaleLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_importScaleCtrl = new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizerImportSettings->Add( m_importScaleCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2018-11-05 16:04:05 +00:00
|
|
|
fgSizerImportSettings->Add( 0, 0, 0, 0, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
bSizer7->Add( fgSizerImportSettings, 1, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2019-06-08 16:34:52 +00:00
|
|
|
sbSizer1->Add( bSizer7, 1, wxEXPAND, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2020-08-20 00:22:48 +00:00
|
|
|
m_staticline1 = new wxStaticLine( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
2020-11-23 11:44:46 +00:00
|
|
|
sbSizer1->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
2020-08-20 00:22:48 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizer8;
|
|
|
|
bSizer8 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_groupItems = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Group items"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_groupItems->SetToolTip( _("Add all imported items into a new group") );
|
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
bSizer8->Add( m_groupItems, 0, wxEXPAND|wxBOTTOM, 5 );
|
2020-08-20 00:22:48 +00:00
|
|
|
|
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
sbSizer1->Add( bSizer8, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
2020-08-20 00:22:48 +00:00
|
|
|
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
bSizerMain->Add( sbSizer1, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2020-11-22 03:11:24 +00:00
|
|
|
wxStaticBoxSizer* sbSizer3;
|
|
|
|
sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("DXF Parameters") ), wxVERTICAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer81;
|
|
|
|
bSizer81 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxFlexGridSizer* fgDxfImportSettings;
|
|
|
|
fgDxfImportSettings = new wxFlexGridSizer( 0, 3, 5, 5 );
|
|
|
|
fgDxfImportSettings->AddGrowableCol( 1 );
|
|
|
|
fgDxfImportSettings->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgDxfImportSettings->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_lineWidthLabel = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_lineWidthLabel->Wrap( -1 );
|
|
|
|
fgDxfImportSettings->Add( m_lineWidthLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-11-22 03:11:24 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_lineWidthCtrl = new wxTextCtrl( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgDxfImportSettings->Add( m_lineWidthCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
2020-11-22 03:11:24 +00:00
|
|
|
|
2022-09-12 23:58:55 +00:00
|
|
|
m_lineWidthUnits = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_lineWidthUnits->Wrap( -1 );
|
2022-10-04 21:06:08 +00:00
|
|
|
fgDxfImportSettings->Add( m_lineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 5 );
|
2020-11-22 03:11:24 +00:00
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
m_staticTextLineWidth1 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Default units:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-11-22 03:11:24 +00:00
|
|
|
m_staticTextLineWidth1->Wrap( -1 );
|
2020-11-23 11:44:46 +00:00
|
|
|
fgDxfImportSettings->Add( m_staticTextLineWidth1, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-11-22 03:11:24 +00:00
|
|
|
|
|
|
|
wxArrayString m_choiceDxfUnitsChoices;
|
|
|
|
m_choiceDxfUnits = new wxChoice( sbSizer3->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceDxfUnitsChoices, 0 );
|
|
|
|
m_choiceDxfUnits->SetSelection( 0 );
|
|
|
|
fgDxfImportSettings->Add( m_choiceDxfUnits, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgDxfImportSettings->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizer81->Add( fgDxfImportSettings, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
sbSizer3->Add( bSizer81, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
2020-11-23 11:44:46 +00:00
|
|
|
bSizerMain->Add( sbSizer3, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-11-01 09:47:41 +00:00
|
|
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
|
|
|
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
|
|
|
m_sdbSizer->Realize();
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-11-05 16:04:05 +00:00
|
|
|
bSizerMain->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
|
|
|
|
2018-10-13 18:37:28 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2020-11-11 15:58:12 +00:00
|
|
|
bSizerMain->Fit( this );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-10-13 18:37:28 +00:00
|
|
|
this->Centre( wxBOTH );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-10-13 18:37:28 +00:00
|
|
|
// Connect Events
|
2020-11-23 11:44:46 +00:00
|
|
|
m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_GFX_BASE::onBrowseFiles ), NULL, this );
|
2018-11-05 16:04:05 +00:00
|
|
|
m_rbInteractivePlacement->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_IMPORT_GFX_BASE::onInteractivePlacement ), NULL, this );
|
|
|
|
m_rbInteractivePlacement->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_IMPORT_GFX_BASE::originOptionOnUpdateUI ), NULL, this );
|
|
|
|
m_rbAbsolutePlacement->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_IMPORT_GFX_BASE::onAbsolutePlacement ), NULL, this );
|
|
|
|
m_rbAbsolutePlacement->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_IMPORT_GFX_BASE::originOptionOnUpdateUI ), NULL, this );
|
2020-08-20 00:22:48 +00:00
|
|
|
m_groupItems->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_GFX_BASE::onGroupItems ), NULL, this );
|
2018-10-13 18:37:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_IMPORT_GFX_BASE::~DIALOG_IMPORT_GFX_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2020-11-23 11:44:46 +00:00
|
|
|
m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_GFX_BASE::onBrowseFiles ), NULL, this );
|
2018-11-05 16:04:05 +00:00
|
|
|
m_rbInteractivePlacement->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_IMPORT_GFX_BASE::onInteractivePlacement ), NULL, this );
|
|
|
|
m_rbInteractivePlacement->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_IMPORT_GFX_BASE::originOptionOnUpdateUI ), NULL, this );
|
|
|
|
m_rbAbsolutePlacement->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_IMPORT_GFX_BASE::onAbsolutePlacement ), NULL, this );
|
|
|
|
m_rbAbsolutePlacement->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_IMPORT_GFX_BASE::originOptionOnUpdateUI ), NULL, this );
|
2020-08-20 00:22:48 +00:00
|
|
|
m_groupItems->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_GFX_BASE::onGroupItems ), NULL, this );
|
2020-04-19 11:41:54 +00:00
|
|
|
|
2018-10-13 18:37:28 +00:00
|
|
|
}
|