KiCad PCB EDA Suite
|
#include <panel_text_variables.h>
Public Member Functions | |
PANEL_TEXT_VARIABLES (wxWindow *aParent, PROJECT *aProject) | |
~PANEL_TEXT_VARIABLES () override | |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
void | ImportSettingsFrom (const PROJECT *aOtherProject) |
Protected Member Functions | |
void | OnUpdateUI (wxUpdateUIEvent &event) override |
void | OnGridCellChanging (wxGridEvent &event) |
void | OnAddTextVar (wxCommandEvent &event) override |
void | OnRemoveTextVar (wxCommandEvent &event) override |
void | AppendTextVar (const wxString &aName, const wxString &aValue) |
void | checkReload () |
Protected Attributes | |
WX_GRID * | m_TextVars |
STD_BITMAP_BUTTON * | m_btnAddTextVar |
STD_BITMAP_BUTTON * | m_btnDeleteTextVar |
Private Attributes | |
PROJECT * | m_project |
std::map< wxString, wxString > | m_lastLoaded |
int | m_lastCheckedTicker |
wxString | m_errorMsg |
int | m_errorRow |
int | m_errorCol |
wxTextValidator | m_nameValidator |
std::unique_ptr< WX_GRID_AUTOSIZER > | m_autoSizer |
Definition at line 37 of file panel_text_variables.h.
PANEL_TEXT_VARIABLES::PANEL_TEXT_VARIABLES | ( | wxWindow * | aParent, |
PROJECT * | aProject | ||
) |
Definition at line 45 of file panel_text_variables.cpp.
References WX_GRID::ClearRows(), PROJECT::GetTextVarsTicker(), KiBitmapBundle(), m_autoSizer, PANEL_TEXT_VARIABLES_BASE::m_btnAddTextVar, PANEL_TEXT_VARIABLES_BASE::m_btnDeleteTextVar, m_lastCheckedTicker, m_nameValidator, m_project, PANEL_TEXT_VARIABLES_BASE::m_TextVars, OnAddTextVar(), OnGridCellChanging(), STD_BITMAP_BUTTON::SetBitmap(), TV_NAME_COL, and TV_VALUE_COL.
|
override |
Definition at line 94 of file panel_text_variables.cpp.
References PANEL_TEXT_VARIABLES_BASE::m_TextVars, and OnGridCellChanging().
|
protected |
Definition at line 136 of file panel_text_variables.cpp.
References m_nameValidator, PANEL_TEXT_VARIABLES_BASE::m_TextVars, TV_NAME_COL, and TV_VALUE_COL.
Referenced by checkReload(), ImportSettingsFrom(), OnAddTextVar(), and TransferDataToWindow().
|
protected |
Definition at line 105 of file panel_text_variables.cpp.
References _, AppendTextVar(), WX_GRID::ClearRows(), PROJECT::GetTextVars(), PROJECT::GetTextVarsTicker(), IsOK(), m_lastCheckedTicker, m_lastLoaded, m_project, and PANEL_TEXT_VARIABLES_BASE::m_TextVars.
void PANEL_TEXT_VARIABLES::ImportSettingsFrom | ( | const PROJECT * | aOtherProject | ) |
Definition at line 259 of file panel_text_variables.cpp.
References AppendTextVar(), WX_GRID::ClearRows(), PROJECT::GetTextVars(), PROJECT::GetTextVarsTicker(), m_lastCheckedTicker, m_lastLoaded, m_project, and PANEL_TEXT_VARIABLES_BASE::m_TextVars.
|
overrideprotectedvirtual |
Reimplemented from PANEL_TEXT_VARIABLES_BASE.
Definition at line 202 of file panel_text_variables.cpp.
References AppendTextVar(), WX_GRID::CommitPendingChanges(), PANEL_TEXT_VARIABLES_BASE::m_TextVars, and TV_NAME_COL.
Referenced by PANEL_TEXT_VARIABLES().
|
protected |
Definition at line 185 of file panel_text_variables.cpp.
References _, m_errorCol, m_errorMsg, m_errorRow, text, and TV_NAME_COL.
Referenced by PANEL_TEXT_VARIABLES(), and ~PANEL_TEXT_VARIABLES().
|
overrideprotectedvirtual |
Reimplemented from PANEL_TEXT_VARIABLES_BASE.
Definition at line 217 of file panel_text_variables.cpp.
References WX_GRID::CommitPendingChanges(), and PANEL_TEXT_VARIABLES_BASE::m_TextVars.
|
overrideprotectedvirtual |
Reimplemented from PANEL_TEXT_VARIABLES_BASE.
Definition at line 232 of file panel_text_variables.cpp.
References DisplayErrorMessage(), m_errorCol, m_errorMsg, m_errorRow, and PANEL_TEXT_VARIABLES_BASE::m_TextVars.
|
override |
Definition at line 154 of file panel_text_variables.cpp.
References _, WX_GRID::CommitPendingChanges(), PROJECT::GetTextVars(), m_errorCol, m_errorMsg, m_errorRow, m_project, PANEL_TEXT_VARIABLES_BASE::m_TextVars, name, TV_NAME_COL, and TV_VALUE_COL.
|
override |
Definition at line 124 of file panel_text_variables.cpp.
References AppendTextVar(), PROJECT::GetTextVars(), PROJECT::GetTextVarsTicker(), m_lastCheckedTicker, m_lastLoaded, and m_project.
|
private |
Definition at line 71 of file panel_text_variables.h.
Referenced by PANEL_TEXT_VARIABLES().
|
protectedinherited |
Definition at line 41 of file panel_text_variables_base.h.
Referenced by PANEL_TEXT_VARIABLES(), PANEL_TEXT_VARIABLES_BASE::PANEL_TEXT_VARIABLES_BASE(), and PANEL_TEXT_VARIABLES_BASE::~PANEL_TEXT_VARIABLES_BASE().
|
protectedinherited |
Definition at line 42 of file panel_text_variables_base.h.
Referenced by PANEL_TEXT_VARIABLES(), PANEL_TEXT_VARIABLES_BASE::PANEL_TEXT_VARIABLES_BASE(), and PANEL_TEXT_VARIABLES_BASE::~PANEL_TEXT_VARIABLES_BASE().
|
private |
Definition at line 67 of file panel_text_variables.h.
Referenced by OnGridCellChanging(), OnUpdateUI(), and TransferDataFromWindow().
|
private |
Definition at line 65 of file panel_text_variables.h.
Referenced by OnGridCellChanging(), OnUpdateUI(), and TransferDataFromWindow().
|
private |
Definition at line 66 of file panel_text_variables.h.
Referenced by OnGridCellChanging(), OnUpdateUI(), and TransferDataFromWindow().
|
private |
Definition at line 63 of file panel_text_variables.h.
Referenced by checkReload(), ImportSettingsFrom(), PANEL_TEXT_VARIABLES(), and TransferDataToWindow().
|
private |
Definition at line 62 of file panel_text_variables.h.
Referenced by checkReload(), ImportSettingsFrom(), and TransferDataToWindow().
|
private |
Definition at line 69 of file panel_text_variables.h.
Referenced by AppendTextVar(), and PANEL_TEXT_VARIABLES().
|
private |
Definition at line 60 of file panel_text_variables.h.
Referenced by checkReload(), ImportSettingsFrom(), PANEL_TEXT_VARIABLES(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 40 of file panel_text_variables_base.h.
Referenced by AppendTextVar(), checkReload(), ImportSettingsFrom(), OnAddTextVar(), OnRemoveTextVar(), OnUpdateUI(), PANEL_TEXT_VARIABLES(), PANEL_TEXT_VARIABLES_BASE::PANEL_TEXT_VARIABLES_BASE(), TransferDataFromWindow(), and ~PANEL_TEXT_VARIABLES().