KiCad PCB EDA Suite
|
#include <panel_fp_properties_3d_model.h>
Public Member Functions | |
PANEL_FP_PROPERTIES_3D_MODEL (PCB_BASE_EDIT_FRAME *aFrame, FOOTPRINT *aFootprint, DIALOG_SHIM *aDialogParent, wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString) | |
~PANEL_FP_PROPERTIES_3D_MODEL () override | |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
void | ReloadModelsFromFootprint () |
void | AdjustGridColumnWidths () |
std::vector< FP_3DMODEL > & | GetModelList () |
void | m_splitter1OnIdle (wxIdleEvent &) |
Protected Attributes | |
wxBoxSizer * | bSizerMain3D |
wxSplitterWindow * | m_splitter1 |
wxPanel * | m_upperPanel |
WX_GRID * | m_modelsGrid |
STD_BITMAP_BUTTON * | m_button3DShapeAdd |
STD_BITMAP_BUTTON * | m_button3DShapeBrowse |
STD_BITMAP_BUTTON * | m_button3DShapeRemove |
wxButton * | m_buttonConfig3DPaths |
wxPanel * | m_lowerPanel |
wxBoxSizer * | m_LowerSizer3D |
Private Member Functions | |
void | On3DModelSelected (wxGridEvent &) override |
void | On3DModelCellChanged (wxGridEvent &aEvent) override |
void | OnRemove3DModel (wxCommandEvent &event) override |
void | OnAdd3DModel (wxCommandEvent &event) override |
void | OnAdd3DRow (wxCommandEvent &event) override |
void | Cfg3DPath (wxCommandEvent &event) override |
void | OnGridSize (wxSizeEvent &event) override |
void | OnUpdateUI (wxUpdateUIEvent &event) override |
void | updateValidateStatus (int aRow) |
MODEL_VALIDATE_ERRORS | validateModelExists (const wxString &aFilename) |
void | select3DModel (int aModelIdx) |
void | onModify () |
virtual void | onDialogActivateEvent (wxActivateEvent &aEvent) |
virtual void | onShowEvent (wxShowEvent &aEvent) |
void | postCustomPanelShownEventWithPredicate (bool predicate) |
Private Attributes | |
DIALOG_SHIM * | m_parentDialog |
PCB_BASE_EDIT_FRAME * | m_frame |
FOOTPRINT * | m_footprint |
std::vector< FP_3DMODEL > | m_shapes3D_list |
PANEL_PREVIEW_3D_MODEL * | m_previewPane |
bool | m_inSelect |
Definition at line 45 of file panel_fp_properties_3d_model.h.
PANEL_FP_PROPERTIES_3D_MODEL::PANEL_FP_PROPERTIES_3D_MODEL | ( | PCB_BASE_EDIT_FRAME * | aFrame, |
FOOTPRINT * | aFootprint, | ||
DIALOG_SHIM * | aDialogParent, | ||
wxWindow * | aParent, | ||
wxWindowID | aId = wxID_ANY , |
||
const wxPoint & | aPos = wxDefaultPosition , |
||
const wxSize & | aSize = wxDefaultSize , |
||
long | aStyle = wxTAB_TRAVERSAL , |
||
const wxString & | aName = wxEmptyString |
||
) |
Definition at line 63 of file panel_fp_properties_3d_model.cpp.
References COL_FILENAME, COL_PROBLEM, COL_SHOWN, PROJECT_PCB::Get3DCacheManager(), SETTINGS_MANAGER::GetAppSettings(), PROJECT::GetProjectPath(), S3D_CACHE::GetResolver(), PGM_BASE::GetSettingsManager(), ENV_VAR::GetVersionedEnvVarName(), KiBitmapBundle(), PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_button3DShapeAdd, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_button3DShapeBrowse, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_button3DShapeRemove, m_footprint, m_frame, PCBNEW_SETTINGS::m_lastFootprint3dDir, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_lowerPanel, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_LowerSizer3D, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_parentDialog, m_previewPane, m_shapes3D_list, OnAdd3DRow(), onDialogActivateEvent(), onShowEvent(), Pgm(), KIWAY_HOLDER::Prj(), STD_BITMAP_BUTTON::SetBitmap(), FILENAME_RESOLVER::SetProgramBase(), and GRID_TRICKS::SetTooltipEnable().
|
override |
Definition at line 133 of file panel_fp_properties_3d_model.cpp.
References S3D_CACHE::FlushCache(), PROJECT_PCB::Get3DCacheManager(), m_frame, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_previewPane, onShowEvent(), and KIWAY_HOLDER::Prj().
void PANEL_FP_PROPERTIES_3D_MODEL::AdjustGridColumnWidths | ( | ) |
Definition at line 560 of file panel_fp_properties_3d_model.cpp.
References COL_FILENAME, COL_PROBLEM, COL_SHOWN, KIPLATFORM::UI::GetUnobscuredSize(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid.
Referenced by DIALOG_FOOTPRINT_PROPERTIES::adjustGridColumns(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::adjustGridColumns(), and OnGridSize().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 551 of file panel_fp_properties_3d_model.cpp.
References m_previewPane, DIALOG_SHIM::ShowQuasiModal(), and PANEL_PREVIEW_3D_MODEL::UpdateDummyFootprint().
|
inline |
Definition at line 66 of file panel_fp_properties_3d_model.h.
References m_shapes3D_list.
Referenced by DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow().
|
inlineinherited |
Definition at line 70 of file panel_fp_properties_3d_model_base.h.
References PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_splitter1, and PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_splitter1OnIdle().
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_splitter1OnIdle(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 242 of file panel_fp_properties_3d_model.cpp.
References COL_FILENAME, COL_SHOWN, PROJECT_PCB::Get3DCacheManager(), S3D_CACHE::GetResolver(), m_frame, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_previewPane, m_shapes3D_list, onModify(), KIWAY_HOLDER::Prj(), res, PANEL_PREVIEW_3D_MODEL::UpdateDummyFootprint(), and updateValidateStatus().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 235 of file panel_fp_properties_3d_model.cpp.
References m_inSelect, and select3DModel().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 314 of file panel_fp_properties_3d_model.cpp.
References _, EMBEDDED_FILES::AddFile(), COL_FILENAME, COL_SHOWN, WX_GRID::CommitPendingChanges(), filter, FP_LIB_TABLE::FindRow(), PROJECT_PCB::Get3DCacheManager(), PANEL_PREVIEW_3D_MODEL::GetDummyFootprint(), FOOTPRINT::GetFPID(), LIB_TABLE_ROW::GetFullURI(), LIB_ID::GetLibNickname(), EMBEDDED_FILES::EMBEDDED_FILE::GetLink(), PROJECT::GetProjectPath(), S3D_CACHE::GetResolver(), PROJECT::GetRString(), ENV_VAR::GetVersionedEnvVarName(), DIALOG_SELECT_3DMODEL::IsEmbedded3DModel(), FP_3DMODEL::m_Filename, m_footprint, m_frame, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_parentDialog, m_previewPane, m_shapes3D_list, FP_3DMODEL::m_Show, onModify(), PROJECT_PCB::PcbFootprintLibs(), KIWAY_HOLDER::Prj(), res, select3DModel(), PROJECT::SetRString(), DIALOG_SHIM::ShowQuasiModal(), PANEL_PREVIEW_3D_MODEL::UpdateDummyFootprint(), updateValidateStatus(), PROJECT::VIEWER_3D_FILTER_INDEX, and PROJECT::VIEWER_3D_PATH.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 436 of file panel_fp_properties_3d_model.cpp.
References COL_FILENAME, COL_PROBLEM, COL_SHOWN, WX_GRID::CommitPendingChanges(), PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_shapes3D_list, FP_3DMODEL::m_Show, onModify(), select3DModel(), and updateValidateStatus().
Referenced by PANEL_FP_PROPERTIES_3D_MODEL().
|
privatevirtual |
Definition at line 601 of file panel_fp_properties_3d_model.cpp.
References m_previewPane, and postCustomPanelShownEventWithPredicate().
Referenced by PANEL_FP_PROPERTIES_3D_MODEL().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 573 of file panel_fp_properties_3d_model.cpp.
References AdjustGridColumnWidths().
|
private |
Definition at line 587 of file panel_fp_properties_3d_model.cpp.
Referenced by On3DModelCellChanged(), OnAdd3DModel(), OnAdd3DRow(), and OnRemove3DModel().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 290 of file panel_fp_properties_3d_model.cpp.
References WX_GRID::CommitPendingChanges(), m_inSelect, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_previewPane, m_shapes3D_list, onModify(), select3DModel(), and PANEL_PREVIEW_3D_MODEL::UpdateDummyFootprint().
|
privatevirtual |
Definition at line 594 of file panel_fp_properties_3d_model.cpp.
References postCustomPanelShownEventWithPredicate().
Referenced by PANEL_FP_PROPERTIES_3D_MODEL(), and ~PANEL_FP_PROPERTIES_3D_MODEL().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 581 of file panel_fp_properties_3d_model.cpp.
References STD_BITMAP_BUTTON::Enable(), PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_button3DShapeRemove, and PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid.
|
private |
Definition at line 609 of file panel_fp_properties_3d_model.cpp.
References m_previewPane.
Referenced by onDialogActivateEvent(), and onShowEvent().
void PANEL_FP_PROPERTIES_3D_MODEL::ReloadModelsFromFootprint | ( | ) |
Definition at line 175 of file panel_fp_properties_3d_model.cpp.
References WX_GRID::ClearRows(), COL_FILENAME, COL_SHOWN, PROJECT_PCB::Get3DCacheManager(), S3D_CACHE::GetResolver(), ENV_VAR::GetVersionedEnvVarName(), WX_GRID::GetVisibleWidth(), m_footprint, m_frame, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_previewPane, m_shapes3D_list, FOOTPRINT::Models(), KIWAY_HOLDER::Prj(), res, select3DModel(), PANEL_PREVIEW_3D_MODEL::UpdateDummyFootprint(), and updateValidateStatus().
Referenced by TransferDataToWindow().
|
private |
Definition at line 216 of file panel_fp_properties_3d_model.cpp.
References COL_FILENAME, m_inSelect, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_previewPane, and PANEL_PREVIEW_3D_MODEL::SetSelectedModel().
Referenced by On3DModelSelected(), OnAdd3DModel(), OnAdd3DRow(), OnRemove3DModel(), and ReloadModelsFromFootprint().
|
override |
Definition at line 156 of file panel_fp_properties_3d_model.cpp.
References EMBEDDED_FILES::AddFile(), WX_GRID::CommitPendingChanges(), EMBEDDED_FILES::EmbeddedFileMap(), PANEL_PREVIEW_3D_MODEL::GetDummyFootprint(), EMBEDDED_FILES::HasFile(), m_footprint, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_previewPane, and name.
Referenced by DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow(), and DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataFromWindow().
|
override |
Definition at line 149 of file panel_fp_properties_3d_model.cpp.
References ReloadModelsFromFootprint().
Referenced by DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow(), and DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataToWindow().
|
private |
Definition at line 465 of file panel_fp_properties_3d_model.cpp.
References _, COL_FILENAME, COL_PROBLEM, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, and validateModelExists().
Referenced by On3DModelCellChanged(), OnAdd3DModel(), OnAdd3DRow(), and ReloadModelsFromFootprint().
|
private |
Definition at line 509 of file panel_fp_properties_3d_model.cpp.
References FP_LIB_TABLE::FindRow(), PROJECT_PCB::Get3DFilenameResolver(), FOOTPRINT::GetFPID(), LIB_TABLE_ROW::GetFullURI(), LIB_ID::GetLibNickname(), m_footprint, m_frame, PROJECT_PCB::PcbFootprintLibs(), KIWAY_HOLDER::Prj(), FILENAME_RESOLVER::ResolvePath(), and FILENAME_RESOLVER::ValidateFileName().
Referenced by updateValidateStatus().
|
protectedinherited |
Definition at line 42 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 46 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL(), PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::~PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 47 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL(), PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::~PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 48 of file panel_fp_properties_3d_model_base.h.
Referenced by OnUpdateUI(), PANEL_FP_PROPERTIES_3D_MODEL(), PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::~PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 49 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::~PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
private |
Definition at line 100 of file panel_fp_properties_3d_model.h.
Referenced by OnAdd3DModel(), PANEL_FP_PROPERTIES_3D_MODEL(), ReloadModelsFromFootprint(), TransferDataFromWindow(), and validateModelExists().
|
private |
Definition at line 99 of file panel_fp_properties_3d_model.h.
Referenced by On3DModelCellChanged(), OnAdd3DModel(), PANEL_FP_PROPERTIES_3D_MODEL(), ReloadModelsFromFootprint(), validateModelExists(), and ~PANEL_FP_PROPERTIES_3D_MODEL().
|
private |
Definition at line 105 of file panel_fp_properties_3d_model.h.
Referenced by On3DModelSelected(), OnRemove3DModel(), and select3DModel().
|
protectedinherited |
Definition at line 50 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 51 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 45 of file panel_fp_properties_3d_model_base.h.
Referenced by AdjustGridColumnWidths(), On3DModelCellChanged(), OnAdd3DModel(), OnAdd3DRow(), OnRemove3DModel(), OnUpdateUI(), PANEL_FP_PROPERTIES_3D_MODEL(), PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE(), ReloadModelsFromFootprint(), select3DModel(), TransferDataFromWindow(), updateValidateStatus(), ~PANEL_FP_PROPERTIES_3D_MODEL(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::~PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
private |
Definition at line 98 of file panel_fp_properties_3d_model.h.
Referenced by OnAdd3DModel(), and PANEL_FP_PROPERTIES_3D_MODEL().
|
private |
Definition at line 103 of file panel_fp_properties_3d_model.h.
Referenced by Cfg3DPath(), On3DModelCellChanged(), OnAdd3DModel(), onDialogActivateEvent(), OnRemove3DModel(), PANEL_FP_PROPERTIES_3D_MODEL(), postCustomPanelShownEventWithPredicate(), ReloadModelsFromFootprint(), select3DModel(), TransferDataFromWindow(), and ~PANEL_FP_PROPERTIES_3D_MODEL().
|
private |
Definition at line 102 of file panel_fp_properties_3d_model.h.
Referenced by GetModelList(), On3DModelCellChanged(), OnAdd3DModel(), OnAdd3DRow(), OnRemove3DModel(), PANEL_FP_PROPERTIES_3D_MODEL(), and ReloadModelsFromFootprint().
|
protectedinherited |
Definition at line 43 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_splitter1OnIdle(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 44 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE().