Support both add-empty and add-browse for 3D models.
Also fixes a bug where the selected row and the grid cursor get separated after a delete. Fixes: lp:1782747 * https://bugs.launchpad.net/kicad/+bug/1782747
This commit is contained in:
parent
9ca9225977
commit
185b524a62
|
@ -1707,9 +1707,7 @@ std::pair<VECTOR2D, float> OPENGL_GAL::computeBitmapTextSize( const UTF8& aText
|
||||||
unsigned int c = *chIt;
|
unsigned int c = *chIt;
|
||||||
|
|
||||||
const FONT_GLYPH_TYPE* glyph = LookupGlyph( c );
|
const FONT_GLYPH_TYPE* glyph = LookupGlyph( c );
|
||||||
wxASSERT( c == ' ' || glyph ); // space is not in the atlas
|
|
||||||
|
|
||||||
// a few chars
|
|
||||||
if( !glyph || // Not coded in font
|
if( !glyph || // Not coded in font
|
||||||
c == '-' || c == '_' ) // Strange size of these 2 chars
|
c == '-' || c == '_' ) // Strange size of these 2 chars
|
||||||
{
|
{
|
||||||
|
|
|
@ -63,7 +63,8 @@ DIALOG_FOOTPRINT_BOARD_EDITOR::DIALOG_FOOTPRINT_BOARD_EDITOR( PCB_EDIT_FRAME* aP
|
||||||
m_OrientValidator( 1, &m_OrientValue ),
|
m_OrientValidator( 1, &m_OrientValue ),
|
||||||
m_netClearance( aParent, m_NetClearanceLabel, m_NetClearanceCtrl, m_NetClearanceUnits, false, 0 ),
|
m_netClearance( aParent, m_NetClearanceLabel, m_NetClearanceCtrl, m_NetClearanceUnits, false, 0 ),
|
||||||
m_solderMask( aParent, m_SolderMaskMarginLabel, m_SolderMaskMarginCtrl, m_SolderMaskMarginUnits ),
|
m_solderMask( aParent, m_SolderMaskMarginLabel, m_SolderMaskMarginCtrl, m_SolderMaskMarginUnits ),
|
||||||
m_solderPaste( aParent, m_SolderPasteMarginLabel, m_SolderPasteMarginCtrl, m_SolderPasteMarginUnits )
|
m_solderPaste( aParent, m_SolderPasteMarginLabel, m_SolderPasteMarginCtrl, m_SolderPasteMarginUnits ),
|
||||||
|
m_inSelect( false )
|
||||||
{
|
{
|
||||||
m_config = Kiface().KifaceSettings();
|
m_config = Kiface().KifaceSettings();
|
||||||
|
|
||||||
|
@ -152,6 +153,7 @@ DIALOG_FOOTPRINT_BOARD_EDITOR::DIALOG_FOOTPRINT_BOARD_EDITOR( PCB_EDIT_FRAME* aP
|
||||||
m_bpAdd->SetBitmap( KiBitmap( small_plus_xpm ) );
|
m_bpAdd->SetBitmap( KiBitmap( small_plus_xpm ) );
|
||||||
m_bpDelete->SetBitmap( KiBitmap( trash_xpm ) );
|
m_bpDelete->SetBitmap( KiBitmap( trash_xpm ) );
|
||||||
m_buttonAdd->SetBitmap( KiBitmap( small_plus_xpm ) );
|
m_buttonAdd->SetBitmap( KiBitmap( small_plus_xpm ) );
|
||||||
|
m_buttonBrowse->SetBitmap( KiBitmap( folder_xpm ) );
|
||||||
m_buttonRemove->SetBitmap( KiBitmap( trash_xpm ) );
|
m_buttonRemove->SetBitmap( KiBitmap( trash_xpm ) );
|
||||||
|
|
||||||
FinishDialogSettings();
|
FinishDialogSettings();
|
||||||
|
@ -378,18 +380,26 @@ bool DIALOG_FOOTPRINT_BOARD_EDITOR::TransferDataToWindow()
|
||||||
|
|
||||||
void DIALOG_FOOTPRINT_BOARD_EDITOR::select3DModel( int aModelIdx )
|
void DIALOG_FOOTPRINT_BOARD_EDITOR::select3DModel( int aModelIdx )
|
||||||
{
|
{
|
||||||
|
m_inSelect = true;
|
||||||
|
|
||||||
aModelIdx = std::max( 0, aModelIdx );
|
aModelIdx = std::max( 0, aModelIdx );
|
||||||
aModelIdx = std::min( aModelIdx, m_modelsGrid->GetNumberRows() - 1 );
|
aModelIdx = std::min( aModelIdx, m_modelsGrid->GetNumberRows() - 1 );
|
||||||
|
|
||||||
if( m_modelsGrid->GetNumberRows() )
|
if( m_modelsGrid->GetNumberRows() )
|
||||||
|
{
|
||||||
m_modelsGrid->SelectRow( aModelIdx );
|
m_modelsGrid->SelectRow( aModelIdx );
|
||||||
|
m_modelsGrid->SetGridCursor( aModelIdx, 0 );
|
||||||
|
}
|
||||||
|
|
||||||
m_PreviewPane->SetSelectedModel( aModelIdx );
|
m_PreviewPane->SetSelectedModel( aModelIdx );
|
||||||
|
|
||||||
|
m_inSelect = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DIALOG_FOOTPRINT_BOARD_EDITOR::On3DModelSelected( wxGridEvent& aEvent )
|
void DIALOG_FOOTPRINT_BOARD_EDITOR::On3DModelSelected( wxGridEvent& aEvent )
|
||||||
{
|
{
|
||||||
|
if( !m_inSelect )
|
||||||
select3DModel( aEvent.GetRow() );
|
select3DModel( aEvent.GetRow() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -439,7 +449,7 @@ void DIALOG_FOOTPRINT_BOARD_EDITOR::OnRemove3DModel( wxCommandEvent& )
|
||||||
if( idx >= 0 )
|
if( idx >= 0 )
|
||||||
{
|
{
|
||||||
m_shapes3D_list.erase( m_shapes3D_list.begin() + idx );
|
m_shapes3D_list.erase( m_shapes3D_list.begin() + idx );
|
||||||
m_modelsGrid->DeleteRows( idx );
|
m_modelsGrid->DeleteRows( idx, 1 );
|
||||||
|
|
||||||
select3DModel( idx ); // will clamp idx within bounds
|
select3DModel( idx ); // will clamp idx within bounds
|
||||||
m_PreviewPane->UpdateDummyModule();
|
m_PreviewPane->UpdateDummyModule();
|
||||||
|
@ -507,6 +517,26 @@ void DIALOG_FOOTPRINT_BOARD_EDITOR::OnAdd3DModel( wxCommandEvent& )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DIALOG_FOOTPRINT_BOARD_EDITOR::OnAdd3DRow( wxCommandEvent& )
|
||||||
|
{
|
||||||
|
MODULE_3D_SETTINGS model;
|
||||||
|
|
||||||
|
model.m_Preview = true;
|
||||||
|
m_shapes3D_list.push_back( model );
|
||||||
|
|
||||||
|
int row = m_modelsGrid->GetNumberRows();
|
||||||
|
m_modelsGrid->AppendRows( 1 );
|
||||||
|
m_modelsGrid->SetCellValue( row, 1, wxT( "1" ) );
|
||||||
|
|
||||||
|
m_modelsGrid->SetFocus();
|
||||||
|
m_modelsGrid->MakeCellVisible( row, 0 );
|
||||||
|
m_modelsGrid->SetGridCursor( row, 0 );
|
||||||
|
|
||||||
|
m_modelsGrid->EnableCellEditControl( true );
|
||||||
|
m_modelsGrid->ShowCellEditControl();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool DIALOG_FOOTPRINT_BOARD_EDITOR::Validate()
|
bool DIALOG_FOOTPRINT_BOARD_EDITOR::Validate()
|
||||||
{
|
{
|
||||||
// Commit any pending in-place edits and close the editor
|
// Commit any pending in-place edits and close the editor
|
||||||
|
|
|
@ -62,6 +62,8 @@ private:
|
||||||
int m_delayedFocusRow;
|
int m_delayedFocusRow;
|
||||||
int m_delayedFocusColumn;
|
int m_delayedFocusColumn;
|
||||||
|
|
||||||
|
bool m_inSelect;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// The dialog can be closed for several reasons.
|
// The dialog can be closed for several reasons.
|
||||||
enum FP_PRM_EDITOR_RETVALUE
|
enum FP_PRM_EDITOR_RETVALUE
|
||||||
|
@ -88,6 +90,7 @@ private:
|
||||||
void On3DModelCellChanged( wxGridEvent& aEvent ) override;
|
void On3DModelCellChanged( wxGridEvent& aEvent ) override;
|
||||||
void OnRemove3DModel( wxCommandEvent& ) override;
|
void OnRemove3DModel( wxCommandEvent& ) override;
|
||||||
void OnAdd3DModel( wxCommandEvent& ) override;
|
void OnAdd3DModel( wxCommandEvent& ) override;
|
||||||
|
void OnAdd3DRow( wxCommandEvent& ) override;
|
||||||
void GotoModuleEditor( wxCommandEvent& ) override;
|
void GotoModuleEditor( wxCommandEvent& ) override;
|
||||||
void UpdateModule( wxCommandEvent& ) override;
|
void UpdateModule( wxCommandEvent& ) override;
|
||||||
void ExchangeModule( wxCommandEvent& ) override;
|
void ExchangeModule( wxCommandEvent& ) override;
|
||||||
|
|
|
@ -431,8 +431,14 @@ DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::DIALOG_FOOTPRINT_BOARD_EDITOR_BASE( wxWindow
|
||||||
m_buttonAdd = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
m_buttonAdd = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
||||||
bSizer3DButtons->Add( m_buttonAdd, 0, wxTOP, 5 );
|
bSizer3DButtons->Add( m_buttonAdd, 0, wxTOP, 5 );
|
||||||
|
|
||||||
|
m_buttonBrowse = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
||||||
|
bSizer3DButtons->Add( m_buttonBrowse, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
bSizer3DButtons->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_buttonRemove = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
m_buttonRemove = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
||||||
bSizer3DButtons->Add( m_buttonRemove, 0, wxTOP, 5 );
|
bSizer3DButtons->Add( m_buttonRemove, 0, wxTOP|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer3DButtons->Add( 0, 0, 1, wxEXPAND, 5 );
|
bSizer3DButtons->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
@ -528,7 +534,8 @@ DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::DIALOG_FOOTPRINT_BOARD_EDITOR_BASE( wxWindow
|
||||||
m_buttonModuleEditor->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::GotoModuleEditor ), NULL, this );
|
m_buttonModuleEditor->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::GotoModuleEditor ), NULL, this );
|
||||||
m_modelsGrid->Connect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::On3DModelCellChanged ), NULL, this );
|
m_modelsGrid->Connect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::On3DModelCellChanged ), NULL, this );
|
||||||
m_modelsGrid->Connect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::On3DModelSelected ), NULL, this );
|
m_modelsGrid->Connect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::On3DModelSelected ), NULL, this );
|
||||||
m_buttonAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnAdd3DModel ), NULL, this );
|
m_buttonAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnAdd3DRow ), NULL, this );
|
||||||
|
m_buttonBrowse->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnAdd3DModel ), NULL, this );
|
||||||
m_buttonRemove->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnRemove3DModel ), NULL, this );
|
m_buttonRemove->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnRemove3DModel ), NULL, this );
|
||||||
m_button8->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::Cfg3DPath ), NULL, this );
|
m_button8->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::Cfg3DPath ), NULL, this );
|
||||||
}
|
}
|
||||||
|
@ -552,7 +559,8 @@ DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::~DIALOG_FOOTPRINT_BOARD_EDITOR_BASE()
|
||||||
m_buttonModuleEditor->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::GotoModuleEditor ), NULL, this );
|
m_buttonModuleEditor->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::GotoModuleEditor ), NULL, this );
|
||||||
m_modelsGrid->Disconnect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::On3DModelCellChanged ), NULL, this );
|
m_modelsGrid->Disconnect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::On3DModelCellChanged ), NULL, this );
|
||||||
m_modelsGrid->Disconnect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::On3DModelSelected ), NULL, this );
|
m_modelsGrid->Disconnect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::On3DModelSelected ), NULL, this );
|
||||||
m_buttonAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnAdd3DModel ), NULL, this );
|
m_buttonAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnAdd3DRow ), NULL, this );
|
||||||
|
m_buttonBrowse->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnAdd3DModel ), NULL, this );
|
||||||
m_buttonRemove->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnRemove3DModel ), NULL, this );
|
m_buttonRemove->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnRemove3DModel ), NULL, this );
|
||||||
m_button8->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::Cfg3DPath ), NULL, this );
|
m_button8->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::Cfg3DPath ), NULL, this );
|
||||||
|
|
||||||
|
|
|
@ -4757,6 +4757,99 @@
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
|
<event name="OnButtonClick">OnAdd3DRow</event>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxBitmapButton" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="bitmap"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default">0</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="disabled"></property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="focus"></property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="hover"></property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">Browse</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_buttonBrowse</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="selected"></property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size">29,29</property>
|
||||||
|
<property name="style">wxBU_AUTODRAW</property>
|
||||||
|
<property name="subclass">; forward_declare</property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="validator_data_type"></property>
|
||||||
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
<property name="validator_variable"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
<event name="OnButtonClick">OnAdd3DModel</event>
|
<event name="OnButtonClick">OnAdd3DModel</event>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
|
@ -4783,9 +4876,19 @@
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND|wxRIGHT|wxLEFT</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="spacer" expanded="1">
|
||||||
|
<property name="height">0</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="width">0</property>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxTOP</property>
|
<property name="flag">wxTOP|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxBitmapButton" expanded="0">
|
<object class="wxBitmapButton" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
|
|
@ -106,6 +106,7 @@ class DIALOG_FOOTPRINT_BOARD_EDITOR_BASE : public DIALOG_SHIM
|
||||||
wxBoxSizer* bSizerMain3D;
|
wxBoxSizer* bSizerMain3D;
|
||||||
wxGrid* m_modelsGrid;
|
wxGrid* m_modelsGrid;
|
||||||
wxBitmapButton* m_buttonAdd;
|
wxBitmapButton* m_buttonAdd;
|
||||||
|
wxBitmapButton* m_buttonBrowse;
|
||||||
wxBitmapButton* m_buttonRemove;
|
wxBitmapButton* m_buttonRemove;
|
||||||
wxButton* m_button8;
|
wxButton* m_button8;
|
||||||
wxBoxSizer* bLowerSizer3D;
|
wxBoxSizer* bLowerSizer3D;
|
||||||
|
@ -130,6 +131,7 @@ class DIALOG_FOOTPRINT_BOARD_EDITOR_BASE : public DIALOG_SHIM
|
||||||
virtual void GotoModuleEditor( wxCommandEvent& event ) { event.Skip(); }
|
virtual void GotoModuleEditor( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void On3DModelCellChanged( wxGridEvent& event ) { event.Skip(); }
|
virtual void On3DModelCellChanged( wxGridEvent& event ) { event.Skip(); }
|
||||||
virtual void On3DModelSelected( wxGridEvent& event ) { event.Skip(); }
|
virtual void On3DModelSelected( wxGridEvent& event ) { event.Skip(); }
|
||||||
|
virtual void OnAdd3DRow( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnAdd3DModel( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnAdd3DModel( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnRemove3DModel( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnRemove3DModel( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void Cfg3DPath( wxCommandEvent& event ) { event.Skip(); }
|
virtual void Cfg3DPath( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
|
|
@ -61,7 +61,8 @@ DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR( FOOTPRINT_EDIT_FRAME* aP
|
||||||
DIALOG_FOOTPRINT_FP_EDITOR_BASE( aParent ),
|
DIALOG_FOOTPRINT_FP_EDITOR_BASE( aParent ),
|
||||||
m_netClearance( aParent, m_NetClearanceLabel, m_NetClearanceCtrl, m_NetClearanceUnits, false, 0 ),
|
m_netClearance( aParent, m_NetClearanceLabel, m_NetClearanceCtrl, m_NetClearanceUnits, false, 0 ),
|
||||||
m_solderMask( aParent, m_SolderMaskMarginLabel, m_SolderMaskMarginCtrl, m_SolderMaskMarginUnits ),
|
m_solderMask( aParent, m_SolderMaskMarginLabel, m_SolderMaskMarginCtrl, m_SolderMaskMarginUnits ),
|
||||||
m_solderPaste( aParent, m_SolderPasteMarginLabel, m_SolderPasteMarginCtrl, m_SolderPasteMarginUnits )
|
m_solderPaste( aParent, m_SolderPasteMarginLabel, m_SolderPasteMarginCtrl, m_SolderPasteMarginUnits ),
|
||||||
|
m_inSelect( false )
|
||||||
{
|
{
|
||||||
m_config = Kiface().KifaceSettings();
|
m_config = Kiface().KifaceSettings();
|
||||||
|
|
||||||
|
@ -302,18 +303,26 @@ bool DIALOG_FOOTPRINT_FP_EDITOR::TransferDataToWindow()
|
||||||
|
|
||||||
void DIALOG_FOOTPRINT_FP_EDITOR::select3DModel( int aModelIdx )
|
void DIALOG_FOOTPRINT_FP_EDITOR::select3DModel( int aModelIdx )
|
||||||
{
|
{
|
||||||
|
m_inSelect = true;
|
||||||
|
|
||||||
aModelIdx = std::max( 0, aModelIdx );
|
aModelIdx = std::max( 0, aModelIdx );
|
||||||
aModelIdx = std::min( aModelIdx, m_modelsGrid->GetNumberRows() - 1 );
|
aModelIdx = std::min( aModelIdx, m_modelsGrid->GetNumberRows() - 1 );
|
||||||
|
|
||||||
if( m_modelsGrid->GetNumberRows() )
|
if( m_modelsGrid->GetNumberRows() )
|
||||||
|
{
|
||||||
m_modelsGrid->SelectRow( aModelIdx );
|
m_modelsGrid->SelectRow( aModelIdx );
|
||||||
|
m_modelsGrid->SetGridCursor( aModelIdx, 0 );
|
||||||
|
}
|
||||||
|
|
||||||
m_PreviewPane->SetSelectedModel( aModelIdx );
|
m_PreviewPane->SetSelectedModel( aModelIdx );
|
||||||
|
|
||||||
|
m_inSelect = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DIALOG_FOOTPRINT_FP_EDITOR::On3DModelSelected( wxGridEvent& aEvent )
|
void DIALOG_FOOTPRINT_FP_EDITOR::On3DModelSelected( wxGridEvent& aEvent )
|
||||||
{
|
{
|
||||||
|
if( !m_inSelect )
|
||||||
select3DModel( aEvent.GetRow() );
|
select3DModel( aEvent.GetRow() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -431,6 +440,26 @@ void DIALOG_FOOTPRINT_FP_EDITOR::OnAdd3DModel( wxCommandEvent& )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DIALOG_FOOTPRINT_FP_EDITOR::OnAdd3DRow( wxCommandEvent& )
|
||||||
|
{
|
||||||
|
MODULE_3D_SETTINGS model;
|
||||||
|
|
||||||
|
model.m_Preview = true;
|
||||||
|
m_shapes3D_list.push_back( model );
|
||||||
|
|
||||||
|
int row = m_modelsGrid->GetNumberRows();
|
||||||
|
m_modelsGrid->AppendRows( 1 );
|
||||||
|
m_modelsGrid->SetCellValue( row, 1, wxT( "1" ) );
|
||||||
|
|
||||||
|
m_modelsGrid->SetFocus();
|
||||||
|
m_modelsGrid->MakeCellVisible( row, 0 );
|
||||||
|
m_modelsGrid->SetGridCursor( row, 0 );
|
||||||
|
|
||||||
|
m_modelsGrid->EnableCellEditControl( true );
|
||||||
|
m_modelsGrid->ShowCellEditControl();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool DIALOG_FOOTPRINT_FP_EDITOR::Validate()
|
bool DIALOG_FOOTPRINT_FP_EDITOR::Validate()
|
||||||
{
|
{
|
||||||
// Commit any pending in-place edits and close the editor
|
// Commit any pending in-place edits and close the editor
|
||||||
|
|
|
@ -57,6 +57,8 @@ private:
|
||||||
int m_delayedFocusRow;
|
int m_delayedFocusRow;
|
||||||
int m_delayedFocusColumn;
|
int m_delayedFocusColumn;
|
||||||
|
|
||||||
|
bool m_inSelect;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructor and destructor
|
// Constructor and destructor
|
||||||
|
@ -74,6 +76,7 @@ private:
|
||||||
void On3DModelCellChanged( wxGridEvent& aEvent ) override;
|
void On3DModelCellChanged( wxGridEvent& aEvent ) override;
|
||||||
void OnRemove3DModel( wxCommandEvent& event ) override;
|
void OnRemove3DModel( wxCommandEvent& event ) override;
|
||||||
void OnAdd3DModel( wxCommandEvent& event ) override;
|
void OnAdd3DModel( wxCommandEvent& event ) override;
|
||||||
|
void OnAdd3DRow( wxCommandEvent& event ) override;
|
||||||
void Cfg3DPath( wxCommandEvent& event ) override;
|
void Cfg3DPath( wxCommandEvent& event ) override;
|
||||||
void OnGridSize( wxSizeEvent& event ) override;
|
void OnGridSize( wxSizeEvent& event ) override;
|
||||||
void OnAddField( wxCommandEvent& event ) override;
|
void OnAddField( wxCommandEvent& event ) override;
|
||||||
|
|
|
@ -358,6 +358,12 @@ DIALOG_FOOTPRINT_FP_EDITOR_BASE::DIALOG_FOOTPRINT_FP_EDITOR_BASE( wxWindow* pare
|
||||||
m_buttonAdd = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
m_buttonAdd = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
||||||
bSizer3DButtons->Add( m_buttonAdd, 0, wxTOP, 5 );
|
bSizer3DButtons->Add( m_buttonAdd, 0, wxTOP, 5 );
|
||||||
|
|
||||||
|
m_buttonBrowse = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
||||||
|
bSizer3DButtons->Add( m_buttonBrowse, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
bSizer3DButtons->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_buttonRemove = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
m_buttonRemove = new wxBitmapButton( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 29,29 ), wxBU_AUTODRAW );
|
||||||
bSizer3DButtons->Add( m_buttonRemove, 0, wxTOP, 5 );
|
bSizer3DButtons->Add( m_buttonRemove, 0, wxTOP, 5 );
|
||||||
|
|
||||||
|
@ -414,7 +420,8 @@ DIALOG_FOOTPRINT_FP_EDITOR_BASE::DIALOG_FOOTPRINT_FP_EDITOR_BASE( wxWindow* pare
|
||||||
m_bpDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnDeleteField ), NULL, this );
|
m_bpDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnDeleteField ), NULL, this );
|
||||||
m_modelsGrid->Connect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::On3DModelCellChanged ), NULL, this );
|
m_modelsGrid->Connect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::On3DModelCellChanged ), NULL, this );
|
||||||
m_modelsGrid->Connect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::On3DModelSelected ), NULL, this );
|
m_modelsGrid->Connect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::On3DModelSelected ), NULL, this );
|
||||||
m_buttonAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnAdd3DModel ), NULL, this );
|
m_buttonAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnAdd3DRow ), NULL, this );
|
||||||
|
m_buttonBrowse->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnAdd3DModel ), NULL, this );
|
||||||
m_buttonRemove->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnRemove3DModel ), NULL, this );
|
m_buttonRemove->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnRemove3DModel ), NULL, this );
|
||||||
m_button8->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::Cfg3DPath ), NULL, this );
|
m_button8->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::Cfg3DPath ), NULL, this );
|
||||||
}
|
}
|
||||||
|
@ -429,7 +436,8 @@ DIALOG_FOOTPRINT_FP_EDITOR_BASE::~DIALOG_FOOTPRINT_FP_EDITOR_BASE()
|
||||||
m_bpDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnDeleteField ), NULL, this );
|
m_bpDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnDeleteField ), NULL, this );
|
||||||
m_modelsGrid->Disconnect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::On3DModelCellChanged ), NULL, this );
|
m_modelsGrid->Disconnect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::On3DModelCellChanged ), NULL, this );
|
||||||
m_modelsGrid->Disconnect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::On3DModelSelected ), NULL, this );
|
m_modelsGrid->Disconnect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::On3DModelSelected ), NULL, this );
|
||||||
m_buttonAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnAdd3DModel ), NULL, this );
|
m_buttonAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnAdd3DRow ), NULL, this );
|
||||||
|
m_buttonBrowse->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnAdd3DModel ), NULL, this );
|
||||||
m_buttonRemove->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnRemove3DModel ), NULL, this );
|
m_buttonRemove->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::OnRemove3DModel ), NULL, this );
|
||||||
m_button8->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::Cfg3DPath ), NULL, this );
|
m_button8->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_FP_EDITOR_BASE::Cfg3DPath ), NULL, this );
|
||||||
|
|
||||||
|
|
|
@ -3922,6 +3922,99 @@
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
|
<event name="OnButtonClick">OnAdd3DRow</event>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxBitmapButton" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="bitmap"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default">0</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="disabled"></property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="focus"></property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="hover"></property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">Browse</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_buttonBrowse</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="selected"></property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size">29,29</property>
|
||||||
|
<property name="style">wxBU_AUTODRAW</property>
|
||||||
|
<property name="subclass">; forward_declare</property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="validator_data_type"></property>
|
||||||
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
<property name="validator_variable"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
<event name="OnButtonClick">OnAdd3DModel</event>
|
<event name="OnButtonClick">OnAdd3DModel</event>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
|
@ -3948,6 +4041,16 @@
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND|wxRIGHT|wxLEFT</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="spacer" expanded="1">
|
||||||
|
<property name="height">0</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="width">0</property>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxTOP</property>
|
<property name="flag">wxTOP</property>
|
||||||
|
|
|
@ -89,6 +89,7 @@ class DIALOG_FOOTPRINT_FP_EDITOR_BASE : public DIALOG_SHIM
|
||||||
wxBoxSizer* bSizerMain3D;
|
wxBoxSizer* bSizerMain3D;
|
||||||
wxGrid* m_modelsGrid;
|
wxGrid* m_modelsGrid;
|
||||||
wxBitmapButton* m_buttonAdd;
|
wxBitmapButton* m_buttonAdd;
|
||||||
|
wxBitmapButton* m_buttonBrowse;
|
||||||
wxBitmapButton* m_buttonRemove;
|
wxBitmapButton* m_buttonRemove;
|
||||||
wxButton* m_button8;
|
wxButton* m_button8;
|
||||||
wxBoxSizer* bLowerSizer3D;
|
wxBoxSizer* bLowerSizer3D;
|
||||||
|
@ -104,6 +105,7 @@ class DIALOG_FOOTPRINT_FP_EDITOR_BASE : public DIALOG_SHIM
|
||||||
virtual void OnDeleteField( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnDeleteField( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void On3DModelCellChanged( wxGridEvent& event ) { event.Skip(); }
|
virtual void On3DModelCellChanged( wxGridEvent& event ) { event.Skip(); }
|
||||||
virtual void On3DModelSelected( wxGridEvent& event ) { event.Skip(); }
|
virtual void On3DModelSelected( wxGridEvent& event ) { event.Skip(); }
|
||||||
|
virtual void OnAdd3DRow( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnAdd3DModel( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnAdd3DModel( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnRemove3DModel( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnRemove3DModel( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void Cfg3DPath( wxCommandEvent& event ) { event.Skip(); }
|
virtual void Cfg3DPath( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
|
Loading…
Reference in New Issue