KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_TEXT_VARIABLES Class Reference

#include <panel_text_variables.h>

Inheritance diagram for PANEL_TEXT_VARIABLES:
PANEL_TEXT_VARIABLES_BASE

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_GRIDm_TextVars
 
STD_BITMAP_BUTTONm_btnAddTextVar
 
STD_BITMAP_BUTTONm_btnDeleteTextVar
 

Private Attributes

PROJECTm_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_AUTOSIZERm_autoSizer
 

Detailed Description

Definition at line 37 of file panel_text_variables.h.

Constructor & Destructor Documentation

◆ PANEL_TEXT_VARIABLES()

◆ ~PANEL_TEXT_VARIABLES()

PANEL_TEXT_VARIABLES::~PANEL_TEXT_VARIABLES ( )
override

Member Function Documentation

◆ AppendTextVar()

void PANEL_TEXT_VARIABLES::AppendTextVar ( const wxString &  aName,
const wxString &  aValue 
)
protected

◆ checkReload()

◆ ImportSettingsFrom()

void PANEL_TEXT_VARIABLES::ImportSettingsFrom ( const PROJECT aOtherProject)

◆ OnAddTextVar()

void PANEL_TEXT_VARIABLES::OnAddTextVar ( wxCommandEvent &  event)
overrideprotectedvirtual

◆ OnGridCellChanging()

void PANEL_TEXT_VARIABLES::OnGridCellChanging ( wxGridEvent &  event)
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().

◆ OnRemoveTextVar()

void PANEL_TEXT_VARIABLES::OnRemoveTextVar ( wxCommandEvent &  event)
overrideprotectedvirtual

◆ OnUpdateUI()

void PANEL_TEXT_VARIABLES::OnUpdateUI ( wxUpdateUIEvent &  event)
overrideprotectedvirtual

◆ TransferDataFromWindow()

bool PANEL_TEXT_VARIABLES::TransferDataFromWindow ( )
override

◆ TransferDataToWindow()

bool PANEL_TEXT_VARIABLES::TransferDataToWindow ( )
override

Member Data Documentation

◆ m_autoSizer

std::unique_ptr<WX_GRID_AUTOSIZER> PANEL_TEXT_VARIABLES::m_autoSizer
private

Definition at line 71 of file panel_text_variables.h.

Referenced by PANEL_TEXT_VARIABLES().

◆ m_btnAddTextVar

STD_BITMAP_BUTTON* PANEL_TEXT_VARIABLES_BASE::m_btnAddTextVar
protectedinherited

◆ m_btnDeleteTextVar

STD_BITMAP_BUTTON* PANEL_TEXT_VARIABLES_BASE::m_btnDeleteTextVar
protectedinherited

◆ m_errorCol

int PANEL_TEXT_VARIABLES::m_errorCol
private

Definition at line 67 of file panel_text_variables.h.

Referenced by OnGridCellChanging(), OnUpdateUI(), and TransferDataFromWindow().

◆ m_errorMsg

wxString PANEL_TEXT_VARIABLES::m_errorMsg
private

Definition at line 65 of file panel_text_variables.h.

Referenced by OnGridCellChanging(), OnUpdateUI(), and TransferDataFromWindow().

◆ m_errorRow

int PANEL_TEXT_VARIABLES::m_errorRow
private

Definition at line 66 of file panel_text_variables.h.

Referenced by OnGridCellChanging(), OnUpdateUI(), and TransferDataFromWindow().

◆ m_lastCheckedTicker

int PANEL_TEXT_VARIABLES::m_lastCheckedTicker
private

◆ m_lastLoaded

std::map<wxString, wxString> PANEL_TEXT_VARIABLES::m_lastLoaded
private

Definition at line 62 of file panel_text_variables.h.

Referenced by checkReload(), ImportSettingsFrom(), and TransferDataToWindow().

◆ m_nameValidator

wxTextValidator PANEL_TEXT_VARIABLES::m_nameValidator
private

Definition at line 69 of file panel_text_variables.h.

Referenced by AppendTextVar(), and PANEL_TEXT_VARIABLES().

◆ m_project

PROJECT* PANEL_TEXT_VARIABLES::m_project
private

◆ m_TextVars


The documentation for this class was generated from the following files: