2017-04-02 12:09:01 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2018-02-09 16:35:45 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Aug 4 2017)
|
2017-04-02 12:09:01 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-02-09 16:35:45 +00:00
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
2017-04-02 12:09:01 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
#include "dialog_fields_editor_global_base.h"
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
DIALOG_FIELDS_EDITOR_GLOBAL_BASE::DIALOG_FIELDS_EDITOR_GLOBAL_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-04-02 12:09:01 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
wxBoxSizer* bHorizontalSizer;
|
|
|
|
bHorizontalSizer = new wxBoxSizer( wxVERTICAL );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-05-08 10:41:46 +00:00
|
|
|
wxBoxSizer* bSizer61;
|
|
|
|
bSizer61 = new wxBoxSizer( wxVERTICAL );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
m_panel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* bSizer7;
|
|
|
|
bSizer7 = new wxBoxSizer( wxVERTICAL );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
m_splitter1 = new wxSplitterWindow( m_panel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
|
2018-02-09 16:35:45 +00:00
|
|
|
m_splitter1->Connect( wxEVT_IDLE, wxIdleEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::m_splitter1OnIdle ), NULL, this );
|
2017-05-03 06:55:55 +00:00
|
|
|
m_splitter1->SetMinimumPaneSize( 120 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
m_leftPanel = new wxPanel( m_splitter1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* bSizer6;
|
|
|
|
bSizer6 = new wxBoxSizer( wxVERTICAL );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
wxStaticBoxSizer* sbSizer1;
|
|
|
|
sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_leftPanel, wxID_ANY, _("Options") ), wxVERTICAL );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-12-24 15:04:02 +00:00
|
|
|
m_groupComponentsBox = new wxCheckBox( sbSizer1->GetStaticBox(), OPT_GROUP_COMPONENTS, _("Group symbols"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-06-07 16:43:28 +00:00
|
|
|
m_groupComponentsBox->SetValue(true);
|
2017-04-02 12:09:01 +00:00
|
|
|
m_groupComponentsBox->SetToolTip( _("Group components together based on common properties") );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
sbSizer1->Add( m_groupComponentsBox, 0, wxALL|wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-12-24 15:04:02 +00:00
|
|
|
m_regroupComponentsButton = new wxButton( sbSizer1->GetStaticBox(), wxID_ANY, _("Regroup symbols"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-04-02 12:09:01 +00:00
|
|
|
sbSizer1->Add( m_regroupComponentsButton, 0, wxALL|wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
bSizer6->Add( sbSizer1, 0, wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
wxBoxSizer* bSizer9;
|
|
|
|
bSizer9 = new wxBoxSizer( wxVERTICAL );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
wxStaticBoxSizer* m_fieldListSizer;
|
|
|
|
m_fieldListSizer = new wxStaticBoxSizer( new wxStaticBox( m_leftPanel, wxID_ANY, _("Fields") ), wxVERTICAL );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
m_columnListCtrl = new wxDataViewListCtrl( m_fieldListSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2017-05-03 06:55:55 +00:00
|
|
|
m_columnListCtrl->SetMinSize( wxSize( -1,250 ) );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
m_fieldListSizer->Add( m_columnListCtrl, 1, wxALL|wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
bSizer9->Add( m_fieldListSizer, 1, wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
bSizer6->Add( bSizer9, 5, wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
m_leftPanel->SetSizer( bSizer6 );
|
|
|
|
m_leftPanel->Layout();
|
|
|
|
bSizer6->Fit( m_leftPanel );
|
|
|
|
m_panel4 = new wxPanel( m_splitter1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* bSizer5;
|
|
|
|
bSizer5 = new wxBoxSizer( wxVERTICAL );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
m_bomView = new wxDataViewCtrl( m_panel4, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_MULTIPLE|wxDV_ROW_LINES|wxDV_VERT_RULES );
|
2017-05-03 06:55:55 +00:00
|
|
|
m_bomView->SetMinSize( wxSize( 450,250 ) );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
bSizer5->Add( m_bomView, 1, wxALL|wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
m_panel4->SetSizer( bSizer5 );
|
|
|
|
m_panel4->Layout();
|
|
|
|
bSizer5->Fit( m_panel4 );
|
|
|
|
m_splitter1->SplitVertically( m_leftPanel, m_panel4, 231 );
|
|
|
|
bSizer7->Add( m_splitter1, 1, wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
m_panel->SetSizer( bSizer7 );
|
|
|
|
m_panel->Layout();
|
|
|
|
bSizer7->Fit( m_panel );
|
2017-05-08 10:41:46 +00:00
|
|
|
bSizer61->Add( m_panel, 1, wxEXPAND | wxALL, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
wxBoxSizer* bSizerButtonsBottom;
|
|
|
|
bSizerButtonsBottom = new wxBoxSizer( wxHORIZONTAL );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
m_applyChangesButton = new wxButton( this, wxID_ANY, _("Apply Changes"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-02-09 16:35:45 +00:00
|
|
|
bSizerButtonsBottom->Add( m_applyChangesButton, 0, wxALL, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
m_revertChangesButton = new wxButton( this, wxID_ANY, _("Revert Changes"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-02-09 16:35:45 +00:00
|
|
|
bSizerButtonsBottom->Add( m_revertChangesButton, 0, wxALL, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
bSizerButtonsBottom->Add( 0, 0, 1, wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-05-08 10:41:46 +00:00
|
|
|
m_closeButton = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-02-09 16:35:45 +00:00
|
|
|
bSizerButtonsBottom->Add( m_closeButton, 0, wxALL, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
bSizer61->Add( bSizerButtonsBottom, 0, wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2017-05-08 10:41:46 +00:00
|
|
|
bHorizontalSizer->Add( bSizer61, 1, wxEXPAND, 5 );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
this->SetSizer( bHorizontalSizer );
|
|
|
|
this->Layout();
|
2018-01-07 03:37:49 +00:00
|
|
|
bHorizontalSizer->Fit( this );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
this->Centre( wxBOTH );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
|
|
|
// Connect Events
|
2018-02-09 16:35:45 +00:00
|
|
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnDialogClosed ) );
|
|
|
|
this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnUpdateUI ) );
|
|
|
|
m_groupComponentsBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnGroupComponentsToggled ), NULL, this );
|
|
|
|
m_regroupComponentsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnRegroupComponents ), NULL, this );
|
|
|
|
m_columnListCtrl->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnColumnItemToggled ), NULL, this );
|
|
|
|
m_bomView->Connect( wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnBomColumReordered ), NULL, this );
|
|
|
|
m_bomView->Connect( wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnBomColumnSorted ), NULL, this );
|
|
|
|
m_bomView->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnTableItemActivated ), NULL, this );
|
|
|
|
m_bomView->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnTableItemContextMenu ), NULL, this );
|
|
|
|
m_bomView->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnTableValueChanged ), NULL, this );
|
|
|
|
m_bomView->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnSelectionChanged ), NULL, this );
|
|
|
|
m_applyChangesButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnApplyFieldChanges ), NULL, this );
|
|
|
|
m_revertChangesButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnRevertFieldChanges ), NULL, this );
|
|
|
|
m_closeButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnCloseButton ), NULL, this );
|
2017-04-02 12:09:01 +00:00
|
|
|
}
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
DIALOG_FIELDS_EDITOR_GLOBAL_BASE::~DIALOG_FIELDS_EDITOR_GLOBAL_BASE()
|
2017-04-02 12:09:01 +00:00
|
|
|
{
|
2017-06-07 16:43:28 +00:00
|
|
|
// Disconnect Events
|
2018-02-09 16:35:45 +00:00
|
|
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnDialogClosed ) );
|
|
|
|
this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnUpdateUI ) );
|
|
|
|
m_groupComponentsBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnGroupComponentsToggled ), NULL, this );
|
|
|
|
m_regroupComponentsButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnRegroupComponents ), NULL, this );
|
|
|
|
m_columnListCtrl->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnColumnItemToggled ), NULL, this );
|
|
|
|
m_bomView->Disconnect( wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnBomColumReordered ), NULL, this );
|
|
|
|
m_bomView->Disconnect( wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnBomColumnSorted ), NULL, this );
|
|
|
|
m_bomView->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnTableItemActivated ), NULL, this );
|
|
|
|
m_bomView->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnTableItemContextMenu ), NULL, this );
|
|
|
|
m_bomView->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnTableValueChanged ), NULL, this );
|
|
|
|
m_bomView->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnSelectionChanged ), NULL, this );
|
|
|
|
m_applyChangesButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnApplyFieldChanges ), NULL, this );
|
|
|
|
m_revertChangesButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnRevertFieldChanges ), NULL, this );
|
|
|
|
m_closeButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELDS_EDITOR_GLOBAL_BASE::OnCloseButton ), NULL, this );
|
2017-06-07 16:43:28 +00:00
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
}
|