2017-11-14 10:18:45 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2018-04-23 19:33:21 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Apr 19 2018)
|
2017-11-14 10:18:45 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-04-20 14:31:45 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2017-11-14 10:18:45 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_sym_lib_table_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_SYMBOL_LIB_TABLE_BASE::DIALOG_SYMBOL_LIB_TABLE_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( wxSize( -1,-1 ), wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer1;
|
|
|
|
bSizer1 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* m_top_sizer;
|
2018-04-20 14:31:45 +00:00
|
|
|
m_top_sizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Libraries by Scope") ), wxVERTICAL );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
2018-04-20 14:31:45 +00:00
|
|
|
m_auinotebook = new wxAuiNotebook( m_top_sizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_auinotebook->SetMinSize( wxSize( 720,460 ) );
|
|
|
|
|
2017-11-14 10:18:45 +00:00
|
|
|
m_global_panel = new wxPanel( m_auinotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* m_global_sizer;
|
|
|
|
m_global_sizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxFlexGridSizer* fgSizer1;
|
|
|
|
fgSizer1 = new wxFlexGridSizer( 1, 2, 0, 0 );
|
|
|
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2018-04-20 14:31:45 +00:00
|
|
|
m_staticText3 = new wxStaticText( m_global_panel, wxID_ANY, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_staticText3->Wrap( -1 );
|
2018-04-20 14:31:45 +00:00
|
|
|
fgSizer1->Add( m_staticText3, 0, wxTOP|wxRIGHT|wxLEFT, 4 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
m_GblTableFilename = new wxStaticText( m_global_panel, wxID_ANY, _("Table Name"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_GblTableFilename->Wrap( -1 );
|
2018-04-20 14:31:45 +00:00
|
|
|
fgSizer1->Add( m_GblTableFilename, 0, wxTOP|wxRIGHT|wxLEFT, 4 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
|
2018-04-20 14:31:45 +00:00
|
|
|
m_global_sizer->Add( fgSizer1, 0, wxEXPAND, 2 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
m_global_grid = new wxGrid( m_global_panel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
|
|
|
|
// Grid
|
|
|
|
m_global_grid->CreateGrid( 1, 5 );
|
|
|
|
m_global_grid->EnableEditing( true );
|
|
|
|
m_global_grid->EnableGridLines( true );
|
|
|
|
m_global_grid->EnableDragGridSize( false );
|
|
|
|
m_global_grid->SetMargins( 0, 0 );
|
|
|
|
|
|
|
|
// Columns
|
|
|
|
m_global_grid->AutoSizeColumns();
|
|
|
|
m_global_grid->EnableDragColMove( false );
|
|
|
|
m_global_grid->EnableDragColSize( true );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_global_grid->SetColLabelSize( 22 );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_global_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
|
|
|
|
// Rows
|
|
|
|
m_global_grid->AutoSizeRows();
|
|
|
|
m_global_grid->EnableDragRowSize( false );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_global_grid->SetRowLabelSize( 0 );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_global_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
|
|
|
|
// Label Appearance
|
|
|
|
|
|
|
|
// Cell Defaults
|
|
|
|
m_global_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
|
|
|
m_global_sizer->Add( m_global_grid, 5, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
m_global_panel->SetSizer( m_global_sizer );
|
|
|
|
m_global_panel->Layout();
|
|
|
|
m_global_sizer->Fit( m_global_panel );
|
|
|
|
m_auinotebook->AddPage( m_global_panel, _("Global Libraries"), true, wxNullBitmap );
|
|
|
|
m_project_panel = new wxPanel( m_auinotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* m_project_sizer;
|
|
|
|
m_project_sizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxFlexGridSizer* fgSizer2;
|
|
|
|
fgSizer2 = new wxFlexGridSizer( 1, 2, 0, 0 );
|
|
|
|
fgSizer2->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2018-04-23 19:33:21 +00:00
|
|
|
m_staticText4 = new wxStaticText( m_project_panel, wxID_ANY, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_staticText4->Wrap( -1 );
|
2018-04-23 19:33:21 +00:00
|
|
|
fgSizer2->Add( m_staticText4, 0, wxLEFT|wxRIGHT|wxTOP, 4 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
m_PrjTableFilename = new wxStaticText( m_project_panel, wxID_ANY, _("Table Name"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_PrjTableFilename->Wrap( -1 );
|
2018-04-23 19:33:21 +00:00
|
|
|
fgSizer2->Add( m_PrjTableFilename, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
m_project_sizer->Add( fgSizer2, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_project_grid = new wxGrid( m_project_panel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
|
|
|
|
// Grid
|
|
|
|
m_project_grid->CreateGrid( 1, 5 );
|
|
|
|
m_project_grid->EnableEditing( true );
|
|
|
|
m_project_grid->EnableGridLines( true );
|
|
|
|
m_project_grid->EnableDragGridSize( false );
|
|
|
|
m_project_grid->SetMargins( 0, 0 );
|
|
|
|
|
|
|
|
// Columns
|
|
|
|
m_project_grid->AutoSizeColumns();
|
|
|
|
m_project_grid->EnableDragColMove( false );
|
|
|
|
m_project_grid->EnableDragColSize( true );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_project_grid->SetColLabelSize( 22 );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_project_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
|
|
|
|
// Rows
|
|
|
|
m_project_grid->EnableDragRowSize( false );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_project_grid->SetRowLabelSize( 0 );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_project_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
|
|
|
|
// Label Appearance
|
|
|
|
|
|
|
|
// Cell Defaults
|
|
|
|
m_project_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
|
|
|
m_project_sizer->Add( m_project_grid, 2, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
m_project_panel->SetSizer( m_project_sizer );
|
|
|
|
m_project_panel->Layout();
|
|
|
|
m_project_sizer->Fit( m_project_panel );
|
|
|
|
m_auinotebook->AddPage( m_project_panel, _("Project Specific Libraries"), false, wxNullBitmap );
|
|
|
|
|
|
|
|
m_top_sizer->Add( m_auinotebook, 1, wxEXPAND | wxALL, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer51;
|
|
|
|
bSizer51 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2018-03-14 04:51:59 +00:00
|
|
|
m_append_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
|
|
|
|
bSizer51->Add( m_append_button, 0, wxLEFT, 5 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
2018-03-14 04:51:59 +00:00
|
|
|
m_browse_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
|
|
|
|
bSizer51->Add( m_browse_button, 0, wxRIGHT, 5 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
2018-03-14 04:51:59 +00:00
|
|
|
m_delete_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
|
|
|
|
bSizer51->Add( m_delete_button, 0, wxRIGHT|wxLEFT, 5 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
2018-03-14 04:51:59 +00:00
|
|
|
m_move_up_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
|
|
|
|
bSizer51->Add( m_move_up_button, 0, wxLEFT, 5 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
2018-03-14 04:51:59 +00:00
|
|
|
m_move_down_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
|
|
|
|
bSizer51->Add( m_move_down_button, 0, wxRIGHT, 5 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
|
2018-03-14 04:51:59 +00:00
|
|
|
m_top_sizer->Add( bSizer51, 0, 0, 8 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
|
2018-04-20 14:31:45 +00:00
|
|
|
bSizer1->Add( m_top_sizer, 1, wxALL|wxEXPAND, 5 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
wxStaticBoxSizer* sbSizer1;
|
2018-04-23 19:33:21 +00:00
|
|
|
sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Path Substitutions:") ), wxVERTICAL );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
m_path_subs_grid = new wxGrid( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
|
|
|
|
// Grid
|
|
|
|
m_path_subs_grid->CreateGrid( 1, 2 );
|
|
|
|
m_path_subs_grid->EnableEditing( false );
|
|
|
|
m_path_subs_grid->EnableGridLines( true );
|
|
|
|
m_path_subs_grid->EnableDragGridSize( false );
|
|
|
|
m_path_subs_grid->SetMargins( 0, 0 );
|
|
|
|
|
|
|
|
// Columns
|
|
|
|
m_path_subs_grid->SetColSize( 0, 150 );
|
|
|
|
m_path_subs_grid->SetColSize( 1, 500 );
|
|
|
|
m_path_subs_grid->AutoSizeColumns();
|
|
|
|
m_path_subs_grid->EnableDragColMove( false );
|
|
|
|
m_path_subs_grid->EnableDragColSize( true );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_path_subs_grid->SetColLabelSize( 0 );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_path_subs_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
|
|
|
|
// Rows
|
|
|
|
m_path_subs_grid->EnableDragRowSize( true );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_path_subs_grid->SetRowLabelSize( 0 );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_path_subs_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
|
|
|
|
// Label Appearance
|
|
|
|
|
|
|
|
// Cell Defaults
|
|
|
|
m_path_subs_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
|
|
|
m_path_subs_grid->SetToolTip( _("This is a read-only table which shows pertinent environment variables.") );
|
|
|
|
|
2018-03-14 04:51:59 +00:00
|
|
|
sbSizer1->Add( m_path_subs_grid, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizer1->Add( sbSizer1, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* m_bottom_sizer;
|
|
|
|
m_bottom_sizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
2018-03-14 04:51:59 +00:00
|
|
|
m_bottom_sizer->Add( m_sdbSizer, 0, wxEXPAND, 5 );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizer1->Add( m_bottom_sizer, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizer1 );
|
|
|
|
this->Layout();
|
2018-03-14 04:51:59 +00:00
|
|
|
bSizer1->Fit( this );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
m_auinotebook->Connect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, wxAuiNotebookEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::pageChangedHandler ), NULL, this );
|
|
|
|
m_append_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::appendRowHandler ), NULL, this );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_browse_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::browseLibrariesHandler ), NULL, this );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_delete_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::deleteRowHandler ), NULL, this );
|
|
|
|
m_move_up_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::moveUpHandler ), NULL, this );
|
|
|
|
m_move_down_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::moveDownHandler ), NULL, this );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_path_subs_grid->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::onSizeGrid ), NULL, this );
|
2017-11-14 10:18:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_SYMBOL_LIB_TABLE_BASE::~DIALOG_SYMBOL_LIB_TABLE_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_auinotebook->Disconnect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, wxAuiNotebookEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::pageChangedHandler ), NULL, this );
|
|
|
|
m_append_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::appendRowHandler ), NULL, this );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_browse_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::browseLibrariesHandler ), NULL, this );
|
2017-11-14 10:18:45 +00:00
|
|
|
m_delete_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::deleteRowHandler ), NULL, this );
|
|
|
|
m_move_up_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::moveUpHandler ), NULL, this );
|
|
|
|
m_move_down_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::moveDownHandler ), NULL, this );
|
2018-03-14 04:51:59 +00:00
|
|
|
m_path_subs_grid->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_LIB_TABLE_BASE::onSizeGrid ), NULL, this );
|
2017-11-14 10:18:45 +00:00
|
|
|
|
|
|
|
}
|