KiCad PCB EDA Suite
|
#include <panel_embedded_files.h>
Public Member Functions | |
PANEL_EMBEDDED_FILES (wxWindow *parent, EMBEDDED_FILES *aFiles) | |
~PANEL_EMBEDDED_FILES () override | |
bool | TransferDataFromWindow () override |
bool | TransferDataToWindow () override |
bool | GetEmbedFonts () const |
EMBEDDED_FILES * | GetLocalFiles () |
EMBEDDED_FILES::EMBEDDED_FILE * | AddEmbeddedFile (const wxString &aFileName) |
bool | RemoveEmbeddedFile (const wxString &aFileName) |
Protected Member Functions | |
void | onFontEmbedClick (wxCommandEvent &event) override |
void | onAddEmbeddedFiles (wxCommandEvent &event) override |
void | onDeleteEmbeddedFile (wxCommandEvent &event) override |
void | onExportFiles (wxCommandEvent &event) override |
void | onSize (wxSizeEvent &event) override |
virtual void | onGridRightClick (wxGridEvent &event) |
Protected Attributes | |
WX_GRID * | m_files_grid |
STD_BITMAP_BUTTON * | m_browse_button |
STD_BITMAP_BUTTON * | m_delete_button |
wxCheckBox * | m_cbEmbedFonts |
wxButton * | m_export |
Private Member Functions | |
void | resizeGrid () |
Private Attributes | |
EMBEDDED_FILES * | m_files |
EMBEDDED_FILES * | m_localFiles |
Definition at line 55 of file panel_embedded_files.h.
PANEL_EMBEDDED_FILES::PANEL_EMBEDDED_FILES | ( | wxWindow * | parent, |
EMBEDDED_FILES * | aFiles | ||
) |
Definition at line 90 of file panel_embedded_files.cpp.
References EMBEDDED_FILES::AddFile(), EMBEDDED_FILES::EmbeddedFileMap(), WX_GRID::EnableAlternateRowColors(), EMBEDDED_FILES::EMBEDDED_FILE::GetLink(), KiBitmapBundle(), PANEL_EMBEDDED_FILES_BASE::m_browse_button, PANEL_EMBEDDED_FILES_BASE::m_delete_button, m_files, PANEL_EMBEDDED_FILES_BASE::m_files_grid, m_localFiles, name, EMBEDDED_FILES::EMBEDDED_FILE::name, STD_BITMAP_BUTTON::SetBitmap(), and EMBEDDED_FILES::SetFileAddedCallback().
|
override |
Definition at line 127 of file panel_embedded_files.cpp.
References PANEL_EMBEDDED_FILES_BASE::m_files_grid.
EMBEDDED_FILES::EMBEDDED_FILE * PANEL_EMBEDDED_FILES::AddEmbeddedFile | ( | const wxString & | aFileName | ) |
Definition at line 276 of file panel_embedded_files.cpp.
References _, EMBEDDED_FILES::AddFile(), EMBEDDED_FILES::HasFile(), PANEL_EMBEDDED_FILES_BASE::m_files_grid, m_localFiles, name, and KIDIALOG::ShowModal().
Referenced by PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DModel(), and onAddEmbeddedFiles().
|
inline |
Definition at line 63 of file panel_embedded_files.h.
References PANEL_EMBEDDED_FILES_BASE::m_cbEmbedFonts.
|
inline |
Definition at line 65 of file panel_embedded_files.h.
References m_localFiles.
Referenced by DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR(), and DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES().
|
overrideprotectedvirtual |
Reimplemented from PANEL_EMBEDDED_FILES_BASE.
Definition at line 316 of file panel_embedded_files.cpp.
References _, AddEmbeddedFile(), and path.
|
overrideprotectedvirtual |
Reimplemented from PANEL_EMBEDDED_FILES_BASE.
Definition at line 363 of file panel_embedded_files.cpp.
References PANEL_EMBEDDED_FILES_BASE::m_files_grid, m_localFiles, name, and EMBEDDED_FILES::RemoveFile().
|
overrideprotectedvirtual |
Reimplemented from PANEL_EMBEDDED_FILES_BASE.
Definition at line 383 of file panel_embedded_files.cpp.
References _, KIDIALOG::DoNotShowCheckbox(), EMBEDDED_FILES::EmbeddedFileMap(), m_localFiles, name, path, KIDIALOG::SetOKCancelLabels(), and KIDIALOG::ShowModal().
|
overrideprotectedvirtual |
Reimplemented from PANEL_EMBEDDED_FILES_BASE.
Definition at line 209 of file panel_embedded_files.cpp.
References EMBEDDED_FILES::AddFile(), EMBEDDED_FILES::EMBEDDED_FILE::FONT, fonts, EMBEDDED_FILES::GetEmbeddedFile(), EMBEDDED_FILES::GetFonts(), EMBEDDED_FILES::EMBEDDED_FILE::GetLink(), PANEL_EMBEDDED_FILES_BASE::m_cbEmbedFonts, m_files, PANEL_EMBEDDED_FILES_BASE::m_files_grid, m_localFiles, name, EMBEDDED_FILES::EMBEDDED_FILE::name, EMBEDDED_FILES::RemoveFile(), and EMBEDDED_FILES::EMBEDDED_FILE::type.
|
inlineprotectedvirtualinherited |
Definition at line 49 of file panel_embedded_files_base.h.
Referenced by PANEL_EMBEDDED_FILES_BASE::PANEL_EMBEDDED_FILES_BASE(), and PANEL_EMBEDDED_FILES_BASE::~PANEL_EMBEDDED_FILES_BASE().
|
overrideprotectedvirtual |
Reimplemented from PANEL_EMBEDDED_FILES_BASE.
Definition at line 134 of file panel_embedded_files.cpp.
References resizeGrid().
bool PANEL_EMBEDDED_FILES::RemoveEmbeddedFile | ( | const wxString & | aFileName | ) |
Definition at line 334 of file panel_embedded_files.cpp.
References FILEEXT::KiCadUriPrefix, PANEL_EMBEDDED_FILES_BASE::m_files_grid, m_localFiles, name, and EMBEDDED_FILES::RemoveFile().
Referenced by PANEL_FP_PROPERTIES_3D_MODEL::OnRemove3DModel().
|
private |
Definition at line 140 of file panel_embedded_files.cpp.
References PANEL_EMBEDDED_FILES_BASE::m_files_grid.
Referenced by onSize(), and TransferDataToWindow().
|
override |
Definition at line 187 of file panel_embedded_files.cpp.
References EMBEDDED_FILES::AddFile(), EMBEDDED_FILES::ClearEmbeddedFiles(), EMBEDDED_FILES::EmbeddedFileMap(), PANEL_EMBEDDED_FILES_BASE::m_cbEmbedFonts, m_files, m_localFiles, EMBEDDED_FILES::RemoveFile(), and EMBEDDED_FILES::SetAreFontsEmbedded().
Referenced by DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow().
|
override |
Definition at line 160 of file panel_embedded_files.cpp.
References EMBEDDED_FILES::EmbeddedFileMap(), EMBEDDED_FILES::GetAreFontsEmbedded(), PANEL_EMBEDDED_FILES_BASE::m_cbEmbedFonts, m_files, PANEL_EMBEDDED_FILES_BASE::m_files_grid, m_localFiles, name, and resizeGrid().
Referenced by DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataToWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow(), and DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataToWindow().
|
protectedinherited |
Definition at line 42 of file panel_embedded_files_base.h.
Referenced by PANEL_EMBEDDED_FILES(), PANEL_EMBEDDED_FILES_BASE::PANEL_EMBEDDED_FILES_BASE(), and PANEL_EMBEDDED_FILES_BASE::~PANEL_EMBEDDED_FILES_BASE().
|
protectedinherited |
Definition at line 44 of file panel_embedded_files_base.h.
Referenced by GetEmbedFonts(), onFontEmbedClick(), PANEL_EMBEDDED_FILES_BASE::PANEL_EMBEDDED_FILES_BASE(), TransferDataFromWindow(), TransferDataToWindow(), and PANEL_EMBEDDED_FILES_BASE::~PANEL_EMBEDDED_FILES_BASE().
|
protectedinherited |
Definition at line 43 of file panel_embedded_files_base.h.
Referenced by PANEL_EMBEDDED_FILES(), PANEL_EMBEDDED_FILES_BASE::PANEL_EMBEDDED_FILES_BASE(), and PANEL_EMBEDDED_FILES_BASE::~PANEL_EMBEDDED_FILES_BASE().
|
protectedinherited |
Definition at line 45 of file panel_embedded_files_base.h.
Referenced by PANEL_EMBEDDED_FILES_BASE::PANEL_EMBEDDED_FILES_BASE(), and PANEL_EMBEDDED_FILES_BASE::~PANEL_EMBEDDED_FILES_BASE().
|
private |
Definition at line 80 of file panel_embedded_files.h.
Referenced by onFontEmbedClick(), PANEL_EMBEDDED_FILES(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 41 of file panel_embedded_files_base.h.
Referenced by AddEmbeddedFile(), onDeleteEmbeddedFile(), onFontEmbedClick(), PANEL_EMBEDDED_FILES(), PANEL_EMBEDDED_FILES_BASE::PANEL_EMBEDDED_FILES_BASE(), RemoveEmbeddedFile(), resizeGrid(), TransferDataToWindow(), ~PANEL_EMBEDDED_FILES(), and PANEL_EMBEDDED_FILES_BASE::~PANEL_EMBEDDED_FILES_BASE().
|
private |
Definition at line 81 of file panel_embedded_files.h.
Referenced by AddEmbeddedFile(), GetLocalFiles(), onDeleteEmbeddedFile(), onExportFiles(), onFontEmbedClick(), PANEL_EMBEDDED_FILES(), RemoveEmbeddedFile(), TransferDataFromWindow(), and TransferDataToWindow().