2013-08-30 19:37:56 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2019-07-28 10:54:59 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Jul 10 2019)
|
2013-08-30 19:37:56 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-04-23 17:09:48 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2013-08-30 19:37:56 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_layer_selection_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-07-28 10:54:59 +00:00
|
|
|
DIALOG_LAYER_SELECTION_BASE::DIALOG_LAYER_SELECTION_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
2013-08-30 19:37:56 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
wxBoxSizer* bSizerUpper;
|
|
|
|
bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
m_leftGridLayers = new wxGrid( this, ID_LEFT_LIST, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Grid
|
2013-09-03 19:37:52 +00:00
|
|
|
m_leftGridLayers->CreateGrid( 1, 3 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_leftGridLayers->EnableEditing( false );
|
2018-06-30 20:22:01 +00:00
|
|
|
m_leftGridLayers->EnableGridLines( false );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_leftGridLayers->EnableDragGridSize( false );
|
2018-03-28 10:45:54 +00:00
|
|
|
m_leftGridLayers->SetMargins( 5, 3 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Columns
|
2018-06-30 20:22:01 +00:00
|
|
|
m_leftGridLayers->SetColSize( 0, 24 );
|
|
|
|
m_leftGridLayers->SetColSize( 1, 20 );
|
|
|
|
m_leftGridLayers->SetColSize( 2, 72 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_leftGridLayers->EnableDragColMove( false );
|
|
|
|
m_leftGridLayers->EnableDragColSize( false );
|
|
|
|
m_leftGridLayers->SetColLabelSize( 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
m_leftGridLayers->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Rows
|
|
|
|
m_leftGridLayers->EnableDragRowSize( false );
|
|
|
|
m_leftGridLayers->SetRowLabelSize( 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
m_leftGridLayers->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Label Appearance
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Cell Defaults
|
|
|
|
m_leftGridLayers->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
2013-09-03 19:37:52 +00:00
|
|
|
bSizerUpper->Add( m_leftGridLayers, 1, wxALL|wxEXPAND, 5 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
m_rightGridLayers = new wxGrid( this, ID_RIGHT_LIST, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Grid
|
2013-09-03 19:37:52 +00:00
|
|
|
m_rightGridLayers->CreateGrid( 1, 3 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_rightGridLayers->EnableEditing( false );
|
2018-06-30 20:22:01 +00:00
|
|
|
m_rightGridLayers->EnableGridLines( false );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_rightGridLayers->EnableDragGridSize( false );
|
2018-03-28 10:45:54 +00:00
|
|
|
m_rightGridLayers->SetMargins( 5, 3 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Columns
|
2018-06-30 20:22:01 +00:00
|
|
|
m_rightGridLayers->SetColSize( 0, 24 );
|
|
|
|
m_rightGridLayers->SetColSize( 1, 20 );
|
|
|
|
m_rightGridLayers->SetColSize( 2, 72 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_rightGridLayers->EnableDragColMove( false );
|
|
|
|
m_rightGridLayers->EnableDragColSize( false );
|
|
|
|
m_rightGridLayers->SetColLabelSize( 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
m_rightGridLayers->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Rows
|
|
|
|
m_rightGridLayers->EnableDragRowSize( false );
|
|
|
|
m_rightGridLayers->SetRowLabelSize( 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
m_rightGridLayers->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Label Appearance
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Cell Defaults
|
|
|
|
m_rightGridLayers->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
2013-09-03 19:37:52 +00:00
|
|
|
bSizerUpper->Add( m_rightGridLayers, 1, wxALL|wxEXPAND, 5 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
|
|
|
|
2018-06-30 20:22:01 +00:00
|
|
|
bSizerMain->Add( bSizerUpper, 1, wxEXPAND|wxALL, 10 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2017-12-27 17:09:27 +00:00
|
|
|
bSizerMain->Fit( this );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
this->Centre( wxBOTH );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Connect Events
|
2013-09-11 15:30:21 +00:00
|
|
|
m_leftGridLayers->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_LAYER_SELECTION_BASE::OnLeftGridCellClick ), NULL, this );
|
|
|
|
m_leftGridLayers->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( DIALOG_LAYER_SELECTION_BASE::OnLeftButtonReleased ), NULL, this );
|
|
|
|
m_rightGridLayers->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_LAYER_SELECTION_BASE::OnRightGridCellClick ), NULL, this );
|
|
|
|
m_rightGridLayers->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( DIALOG_LAYER_SELECTION_BASE::OnLeftButtonReleased ), NULL, this );
|
2013-08-30 19:37:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_LAYER_SELECTION_BASE::~DIALOG_LAYER_SELECTION_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2013-09-11 15:30:21 +00:00
|
|
|
m_leftGridLayers->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_LAYER_SELECTION_BASE::OnLeftGridCellClick ), NULL, this );
|
|
|
|
m_leftGridLayers->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( DIALOG_LAYER_SELECTION_BASE::OnLeftButtonReleased ), NULL, this );
|
|
|
|
m_rightGridLayers->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_LAYER_SELECTION_BASE::OnRightGridCellClick ), NULL, this );
|
|
|
|
m_rightGridLayers->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( DIALOG_LAYER_SELECTION_BASE::OnLeftButtonReleased ), NULL, this );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
}
|
|
|
|
|
2019-07-28 10:54:59 +00:00
|
|
|
DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
2013-08-30 19:37:56 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
wxBoxSizer* bSizerUpper;
|
|
|
|
bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
wxBoxSizer* bSizerLeft;
|
|
|
|
bSizerLeft = new wxBoxSizer( wxVERTICAL );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2018-04-23 17:09:48 +00:00
|
|
|
m_staticTextTopLayer = new wxStaticText( this, wxID_ANY, _("Top/Front layer:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_staticTextTopLayer->Wrap( -1 );
|
|
|
|
bSizerLeft->Add( m_staticTextTopLayer, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
m_leftGridLayers = new wxGrid( this, ID_LEFT_LIST, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Grid
|
2013-09-03 19:37:52 +00:00
|
|
|
m_leftGridLayers->CreateGrid( 1, 3 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_leftGridLayers->EnableEditing( false );
|
2018-06-30 20:22:01 +00:00
|
|
|
m_leftGridLayers->EnableGridLines( false );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_leftGridLayers->EnableDragGridSize( false );
|
2018-06-30 20:22:01 +00:00
|
|
|
m_leftGridLayers->SetMargins( 3, 3 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Columns
|
2018-06-30 20:22:01 +00:00
|
|
|
m_leftGridLayers->SetColSize( 0, 24 );
|
|
|
|
m_leftGridLayers->SetColSize( 1, 20 );
|
|
|
|
m_leftGridLayers->SetColSize( 2, 72 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_leftGridLayers->EnableDragColMove( false );
|
|
|
|
m_leftGridLayers->EnableDragColSize( false );
|
|
|
|
m_leftGridLayers->SetColLabelSize( 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
m_leftGridLayers->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Rows
|
|
|
|
m_leftGridLayers->EnableDragRowSize( false );
|
|
|
|
m_leftGridLayers->SetRowLabelSize( 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
m_leftGridLayers->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Label Appearance
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Cell Defaults
|
2019-07-28 10:54:59 +00:00
|
|
|
m_leftGridLayers->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
|
|
|
|
bSizerLeft->Add( m_leftGridLayers, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerUpper->Add( bSizerLeft, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
wxBoxSizer* bSizerRight;
|
|
|
|
bSizerRight = new wxBoxSizer( wxVERTICAL );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2018-04-23 17:09:48 +00:00
|
|
|
m_staticTextBottomLayer = new wxStaticText( this, wxID_ANY, _("Bottom/Back layer:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_staticTextBottomLayer->Wrap( -1 );
|
|
|
|
bSizerRight->Add( m_staticTextBottomLayer, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
m_rightGridLayers = new wxGrid( this, ID_RIGHT_LIST, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Grid
|
2013-09-03 19:37:52 +00:00
|
|
|
m_rightGridLayers->CreateGrid( 1, 3 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_rightGridLayers->EnableEditing( false );
|
2018-06-30 20:22:01 +00:00
|
|
|
m_rightGridLayers->EnableGridLines( false );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_rightGridLayers->EnableDragGridSize( false );
|
2018-06-30 20:22:01 +00:00
|
|
|
m_rightGridLayers->SetMargins( 3, 3 );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Columns
|
2018-06-30 20:22:01 +00:00
|
|
|
m_rightGridLayers->SetColSize( 0, 24 );
|
|
|
|
m_rightGridLayers->SetColSize( 1, 20 );
|
|
|
|
m_rightGridLayers->SetColSize( 2, 72 );
|
2013-08-30 19:37:56 +00:00
|
|
|
m_rightGridLayers->EnableDragColMove( false );
|
|
|
|
m_rightGridLayers->EnableDragColSize( false );
|
|
|
|
m_rightGridLayers->SetColLabelSize( 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
m_rightGridLayers->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Rows
|
|
|
|
m_rightGridLayers->EnableDragRowSize( false );
|
|
|
|
m_rightGridLayers->SetRowLabelSize( 0 );
|
2019-07-28 10:54:59 +00:00
|
|
|
m_rightGridLayers->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Label Appearance
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Cell Defaults
|
2019-07-28 10:54:59 +00:00
|
|
|
m_rightGridLayers->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
|
|
|
|
bSizerRight->Add( m_rightGridLayers, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerUpper->Add( bSizerRight, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bSizerMain->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
|
|
|
|
|
2013-08-30 19:37:56 +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();
|
2019-07-28 10:54:59 +00:00
|
|
|
|
|
|
|
bSizerMain->Add( m_sdbSizer, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_RIGHT, 5 );
|
|
|
|
|
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2017-12-27 17:09:27 +00:00
|
|
|
bSizerMain->Fit( this );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
this->Centre( wxBOTH );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
// Connect Events
|
2013-09-20 10:52:33 +00:00
|
|
|
m_leftGridLayers->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::OnLeftGridCellClick ), NULL, this );
|
|
|
|
m_rightGridLayers->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::OnRightGridCellClick ), NULL, this );
|
2013-08-30 19:37:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::~DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2013-09-20 10:52:33 +00:00
|
|
|
m_leftGridLayers->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::OnLeftGridCellClick ), NULL, this );
|
|
|
|
m_rightGridLayers->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::OnRightGridCellClick ), NULL, this );
|
2019-07-28 10:54:59 +00:00
|
|
|
|
2013-08-30 19:37:56 +00:00
|
|
|
}
|