2021-07-28 19:22:57 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2022-12-13 20:47:28 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2021-07-28 19:22:57 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
#include "widgets/std_bitmap_button.h"
|
2021-07-28 19:22:57 +00:00
|
|
|
#include "widgets/wx_grid.h"
|
|
|
|
|
|
|
|
#include "panel_fp_properties_3d_model_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
|
|
|
|
{
|
|
|
|
bSizerMain3D = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2022-09-06 14:28:46 +00:00
|
|
|
m_modelsGrid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE );
|
2021-07-28 19:22:57 +00:00
|
|
|
|
|
|
|
// Grid
|
|
|
|
m_modelsGrid->CreateGrid( 3, 3 );
|
|
|
|
m_modelsGrid->EnableEditing( true );
|
|
|
|
m_modelsGrid->EnableGridLines( false );
|
|
|
|
m_modelsGrid->EnableDragGridSize( false );
|
|
|
|
m_modelsGrid->SetMargins( 0, 0 );
|
|
|
|
|
|
|
|
// Columns
|
|
|
|
m_modelsGrid->SetColSize( 0, 20 );
|
|
|
|
m_modelsGrid->SetColSize( 1, 650 );
|
|
|
|
m_modelsGrid->SetColSize( 2, 65 );
|
|
|
|
m_modelsGrid->EnableDragColMove( false );
|
|
|
|
m_modelsGrid->EnableDragColSize( false );
|
|
|
|
m_modelsGrid->SetColLabelValue( 0, wxEmptyString );
|
|
|
|
m_modelsGrid->SetColLabelValue( 1, _("3D Model(s)") );
|
|
|
|
m_modelsGrid->SetColLabelValue( 2, _("Show") );
|
2021-12-16 14:39:58 +00:00
|
|
|
m_modelsGrid->SetColLabelSize( 22 );
|
2021-07-28 19:22:57 +00:00
|
|
|
m_modelsGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
|
|
|
|
|
|
|
|
// Rows
|
|
|
|
m_modelsGrid->EnableDragRowSize( false );
|
|
|
|
m_modelsGrid->SetRowLabelSize( 0 );
|
|
|
|
m_modelsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
|
|
|
// Label Appearance
|
|
|
|
|
|
|
|
// Cell Defaults
|
2023-09-18 14:15:22 +00:00
|
|
|
m_modelsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
|
2022-09-06 14:28:46 +00:00
|
|
|
bSizerMain3D->Add( m_modelsGrid, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2021-07-28 19:22:57 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizer3DButtons;
|
|
|
|
bSizer3DButtons = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
m_button3DShapeAdd = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
|
2021-07-28 19:22:57 +00:00
|
|
|
bSizer3DButtons->Add( m_button3DShapeAdd, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
m_button3DShapeBrowse = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
|
2021-07-28 19:22:57 +00:00
|
|
|
bSizer3DButtons->Add( m_button3DShapeBrowse, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizer3DButtons->Add( 20, 0, 0, 0, 5 );
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
m_button3DShapeRemove = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
|
2021-07-28 19:22:57 +00:00
|
|
|
bSizer3DButtons->Add( m_button3DShapeRemove, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizer3DButtons->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
2022-09-06 14:28:46 +00:00
|
|
|
m_buttonConfig3DPaths = new wxButton( this, wxID_ANY, _("Configure Paths..."), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-07-28 19:22:57 +00:00
|
|
|
bSizer3DButtons->Add( m_buttonConfig3DPaths, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
bSizerMain3D->Add( bSizer3DButtons, 0, wxEXPAND|wxBOTTOM, 5 );
|
2021-07-28 19:22:57 +00:00
|
|
|
|
2022-09-06 14:28:46 +00:00
|
|
|
m_LowerSizer3D = new wxBoxSizer( wxHORIZONTAL );
|
2021-07-28 19:22:57 +00:00
|
|
|
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
bSizerMain3D->Add( m_LowerSizer3D, 0, wxEXPAND|wxTOP, 5 );
|
2021-07-28 19:22:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain3D );
|
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
// Connect Events
|
2022-09-06 14:28:46 +00:00
|
|
|
this->Connect( wxEVT_SIZE, wxSizeEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnGridSize ) );
|
2021-07-28 19:22:57 +00:00
|
|
|
this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnUpdateUI ) );
|
|
|
|
m_modelsGrid->Connect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::On3DModelCellChanged ), NULL, this );
|
|
|
|
m_modelsGrid->Connect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::On3DModelSelected ), NULL, this );
|
|
|
|
m_button3DShapeAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnAdd3DRow ), NULL, this );
|
|
|
|
m_button3DShapeBrowse->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnAdd3DModel ), NULL, this );
|
|
|
|
m_button3DShapeRemove->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnRemove3DModel ), NULL, this );
|
|
|
|
m_buttonConfig3DPaths->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::Cfg3DPath ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_FP_PROPERTIES_3D_MODEL_BASE::~PANEL_FP_PROPERTIES_3D_MODEL_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2022-09-06 14:28:46 +00:00
|
|
|
this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnGridSize ) );
|
2021-07-28 19:22:57 +00:00
|
|
|
this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnUpdateUI ) );
|
|
|
|
m_modelsGrid->Disconnect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::On3DModelCellChanged ), NULL, this );
|
|
|
|
m_modelsGrid->Disconnect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::On3DModelSelected ), NULL, this );
|
|
|
|
m_button3DShapeAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnAdd3DRow ), NULL, this );
|
|
|
|
m_button3DShapeBrowse->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnAdd3DModel ), NULL, this );
|
|
|
|
m_button3DShapeRemove->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::OnRemove3DModel ), NULL, this );
|
|
|
|
m_buttonConfig3DPaths->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_PROPERTIES_3D_MODEL_BASE::Cfg3DPath ), NULL, this );
|
|
|
|
|
|
|
|
}
|