102 lines
4.0 KiB
C++
102 lines
4.0 KiB
C++
///////////////////////////////////////////////////////////////////////////
|
|
// C++ code generated with wxFormBuilder (version Oct 5 2015)
|
|
// http://www.wxformbuilder.org/
|
|
//
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "dlg_3d_pathconfig_base.h"
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
DLG_3D_PATH_CONFIG_BASE::DLG_3D_PATH_CONFIG_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
|
|
{
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
|
|
wxBoxSizer* bSizer1;
|
|
bSizer1 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
wxBoxSizer* bSizer3;
|
|
bSizer3 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
m_Aliases = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
// Grid
|
|
m_Aliases->CreateGrid( 1, 3 );
|
|
m_Aliases->EnableEditing( true );
|
|
m_Aliases->EnableGridLines( true );
|
|
m_Aliases->EnableDragGridSize( false );
|
|
m_Aliases->SetMargins( 0, 0 );
|
|
|
|
// Columns
|
|
m_Aliases->EnableDragColMove( false );
|
|
m_Aliases->EnableDragColSize( true );
|
|
m_Aliases->SetColLabelSize( 30 );
|
|
m_Aliases->SetColLabelValue( 0, _("Alias") );
|
|
m_Aliases->SetColLabelValue( 1, _("Path") );
|
|
m_Aliases->SetColLabelValue( 2, _("Description") );
|
|
m_Aliases->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
// Rows
|
|
m_Aliases->AutoSizeRows();
|
|
m_Aliases->EnableDragRowSize( false );
|
|
m_Aliases->SetRowLabelSize( 80 );
|
|
m_Aliases->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
// Label Appearance
|
|
|
|
// Cell Defaults
|
|
m_Aliases->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
|
bSizer3->Add( m_Aliases, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
bSizer1->Add( bSizer3, 1, wxEXPAND, 5 );
|
|
|
|
wxBoxSizer* bSizer2;
|
|
bSizer2 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
m_btnAddAlias = new wxButton( this, wxID_ANY, _("Add Alias"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer2->Add( m_btnAddAlias, 0, wxALL, 5 );
|
|
|
|
m_btnDelAlias = new wxButton( this, wxID_ANY, _("Remove Alias"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer2->Add( m_btnDelAlias, 0, wxALL, 5 );
|
|
|
|
m_btnMoveUp = new wxButton( this, wxID_ANY, _("Move Up"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer2->Add( m_btnMoveUp, 0, wxALL, 5 );
|
|
|
|
m_btnMoveDown = new wxButton( this, wxID_ANY, _("Move Down"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer2->Add( m_btnMoveDown, 0, wxALL, 5 );
|
|
|
|
m_btnOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer2->Add( m_btnOK, 0, wxALL, 5 );
|
|
|
|
m_btnCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer2->Add( m_btnCancel, 0, wxALL, 5 );
|
|
|
|
|
|
bSizer1->Add( bSizer2, 1, wxEXPAND, 5 );
|
|
|
|
|
|
this->SetSizer( bSizer1 );
|
|
this->Layout();
|
|
bSizer1->Fit( this );
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
// Connect Events
|
|
m_btnAddAlias->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAddAlias ), NULL, this );
|
|
m_btnDelAlias->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnDelAlias ), NULL, this );
|
|
m_btnMoveUp->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAliasMoveUp ), NULL, this );
|
|
m_btnMoveDown->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAliasMoveDown ), NULL, this );
|
|
}
|
|
|
|
DLG_3D_PATH_CONFIG_BASE::~DLG_3D_PATH_CONFIG_BASE()
|
|
{
|
|
// Disconnect Events
|
|
m_btnAddAlias->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAddAlias ), NULL, this );
|
|
m_btnDelAlias->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnDelAlias ), NULL, this );
|
|
m_btnMoveUp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAliasMoveUp ), NULL, this );
|
|
m_btnMoveDown->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DLG_3D_PATH_CONFIG_BASE::OnAliasMoveDown ), NULL, this );
|
|
|
|
}
|