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, PANEL_EMBEDDED_FILES *aFilesPanel, wxWindow *aParent) | |
~PANEL_FP_PROPERTIES_3D_MODEL () override | |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
void | ReloadModelsFromFootprint () |
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 | 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 |
PANEL_EMBEDDED_FILES * | m_filesPanel |
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, | ||
PANEL_EMBEDDED_FILES * | aFilesPanel, | ||
wxWindow * | aParent ) |
Definition at line 65 of file panel_fp_properties_3d_model.cpp.
References COL_FILENAME, COL_PROBLEM, GetAppSettings(), ENV_VAR::GetVersionedEnvVarName(), m_filesPanel, m_footprint, m_frame, m_inSelect, PCBNEW_SETTINGS::m_LastFootprint3dDir, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_parentDialog, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_splitter1, OnAdd3DRow(), PANEL_FP_PROPERTIES_3D_MODEL_BASE::PANEL_FP_PROPERTIES_3D_MODEL_BASE(), result, and GRID_TRICKS::SetTooltipEnable().
|
override |
Definition at line 152 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, and onShowEvent().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 606 of file panel_fp_properties_3d_model.cpp.
References m_previewPane, and DIALOG_SHIM::ShowQuasiModal().
|
inline |
Definition at line 60 of file panel_fp_properties_3d_model.h.
References m_shapes3D_list.
|
inlineinherited |
Definition at line 68 of file panel_fp_properties_3d_model_base.h.
References m_splitter1, and m_splitter1OnIdle().
Referenced by m_splitter1OnIdle(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 248 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(), res, and updateValidateStatus().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 241 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 369 of file panel_fp_properties_3d_model.cpp.
References _, COL_FILENAME, COL_SHOWN, filter, FP_LIB_TABLE::FindRow(), PROJECT_PCB::Get3DCacheManager(), LIB_TABLE_ROW::GetFullURI(), PROJECT::GetProjectPath(), S3D_CACHE::GetResolver(), PROJECT::GetRString(), ENV_VAR::GetVersionedEnvVarName(), DIALOG_SELECT_3DMODEL::IsEmbedded3DModel(), FP_3DMODEL::m_Filename, m_filesPanel, 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(), res, result, select3DModel(), PROJECT::SetRString(), DIALOG_SHIM::ShowQuasiModal(), updateValidateStatus(), PROJECT::VIEWER_3D_FILTER_INDEX, and PROJECT::VIEWER_3D_PATH.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 492 of file panel_fp_properties_3d_model.cpp.
References COL_FILENAME, COL_PROBLEM, COL_SHOWN, 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 635 of file panel_fp_properties_3d_model.cpp.
References m_previewPane, and postCustomPanelShownEventWithPredicate().
|
private |
Definition at line 621 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 296 of file panel_fp_properties_3d_model.cpp.
References m_filesPanel, m_inSelect, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_previewPane, m_shapes3D_list, onModify(), and select3DModel().
|
privatevirtual |
Definition at line 628 of file panel_fp_properties_3d_model.cpp.
References postCustomPanelShownEventWithPredicate().
Referenced by ~PANEL_FP_PROPERTIES_3D_MODEL().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.
Definition at line 615 of file panel_fp_properties_3d_model.cpp.
References PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_button3DShapeRemove, and PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid.
|
private |
Definition at line 642 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 181 of file panel_fp_properties_3d_model.cpp.
References COL_FILENAME, COL_SHOWN, PROJECT_PCB::Get3DCacheManager(), S3D_CACHE::GetResolver(), ENV_VAR::GetVersionedEnvVarName(), m_footprint, m_frame, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, m_previewPane, m_shapes3D_list, res, select3DModel(), and updateValidateStatus().
Referenced by TransferDataToWindow().
|
private |
Definition at line 222 of file panel_fp_properties_3d_model.cpp.
References COL_FILENAME, m_inSelect, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, and m_previewPane.
Referenced by On3DModelSelected(), OnAdd3DModel(), OnAdd3DRow(), OnRemove3DModel(), and ReloadModelsFromFootprint().
|
override |
Definition at line 175 of file panel_fp_properties_3d_model.cpp.
References PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid.
|
override |
Definition at line 168 of file panel_fp_properties_3d_model.cpp.
References ReloadModelsFromFootprint().
|
private |
Definition at line 516 of file panel_fp_properties_3d_model.cpp.
References _, COL_FILENAME, COL_PROBLEM, ILLEGAL_FILENAME, PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_modelsGrid, MODEL_NO_ERROR, NO_FILENAME, OPEN_FAIL, RESOLVE_FAIL, and validateModelExists().
Referenced by On3DModelCellChanged(), OnAdd3DModel(), OnAdd3DRow(), and ReloadModelsFromFootprint().
|
private |
Definition at line 559 of file panel_fp_properties_3d_model.cpp.
References FP_LIB_TABLE::FindRow(), PROJECT_PCB::Get3DFilenameResolver(), LIB_TABLE_ROW::GetFullURI(), ILLEGAL_FILENAME, m_filesPanel, m_footprint, m_frame, MODEL_NO_ERROR, NO_FILENAME, OPEN_FAIL, PROJECT_PCB::PcbFootprintLibs(), RESOLVE_FAIL, FILENAME_RESOLVER::ResolvePath(), and FILENAME_RESOLVER::ValidateFileName().
Referenced by updateValidateStatus().
|
protectedinherited |
Definition at line 41 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 45 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE(), and ~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_BASE(), and ~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::OnUpdateUI(), PANEL_FP_PROPERTIES_3D_MODEL_BASE(), and ~PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 48 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE(), and ~PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
private |
Definition at line 94 of file panel_fp_properties_3d_model.h.
Referenced by OnAdd3DModel(), OnRemove3DModel(), PANEL_FP_PROPERTIES_3D_MODEL(), and validateModelExists().
|
private |
Definition at line 90 of file panel_fp_properties_3d_model.h.
Referenced by OnAdd3DModel(), PANEL_FP_PROPERTIES_3D_MODEL(), ReloadModelsFromFootprint(), and validateModelExists().
|
private |
Definition at line 89 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 96 of file panel_fp_properties_3d_model.h.
Referenced by On3DModelSelected(), OnRemove3DModel(), PANEL_FP_PROPERTIES_3D_MODEL(), and select3DModel().
|
protectedinherited |
Definition at line 49 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 50 of file panel_fp_properties_3d_model_base.h.
Referenced by 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::On3DModelCellChanged(), PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DModel(), PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DRow(), PANEL_FP_PROPERTIES_3D_MODEL::OnRemove3DModel(), PANEL_FP_PROPERTIES_3D_MODEL::OnUpdateUI(), PANEL_FP_PROPERTIES_3D_MODEL::PANEL_FP_PROPERTIES_3D_MODEL(), PANEL_FP_PROPERTIES_3D_MODEL_BASE(), PANEL_FP_PROPERTIES_3D_MODEL::ReloadModelsFromFootprint(), PANEL_FP_PROPERTIES_3D_MODEL::select3DModel(), PANEL_FP_PROPERTIES_3D_MODEL::TransferDataFromWindow(), PANEL_FP_PROPERTIES_3D_MODEL::updateValidateStatus(), PANEL_FP_PROPERTIES_3D_MODEL::~PANEL_FP_PROPERTIES_3D_MODEL(), and ~PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
private |
Definition at line 88 of file panel_fp_properties_3d_model.h.
Referenced by OnAdd3DModel(), and PANEL_FP_PROPERTIES_3D_MODEL().
|
private |
Definition at line 93 of file panel_fp_properties_3d_model.h.
Referenced by Cfg3DPath(), On3DModelCellChanged(), OnAdd3DModel(), onDialogActivateEvent(), OnRemove3DModel(), postCustomPanelShownEventWithPredicate(), ReloadModelsFromFootprint(), select3DModel(), and ~PANEL_FP_PROPERTIES_3D_MODEL().
|
private |
Definition at line 92 of file panel_fp_properties_3d_model.h.
Referenced by GetModelList(), On3DModelCellChanged(), OnAdd3DModel(), OnAdd3DRow(), OnRemove3DModel(), and ReloadModelsFromFootprint().
|
protectedinherited |
Definition at line 42 of file panel_fp_properties_3d_model_base.h.
Referenced by m_splitter1OnIdle(), PANEL_FP_PROPERTIES_3D_MODEL::PANEL_FP_PROPERTIES_3D_MODEL(), and PANEL_FP_PROPERTIES_3D_MODEL_BASE().
|
protectedinherited |
Definition at line 43 of file panel_fp_properties_3d_model_base.h.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL_BASE().