32 const wxString& aTableName,
35 m_tableName( aTableName ),
36 m_defaultFileFound( false ),
37 m_faceType( aFaceType )
41 tmp.Printf(
_(
"Configure Global %s Library Table" ), aTableName.Capitalize() );
44 tmp.Printf(
_(
"KiCad has been run for the first time using the new %s library table for\n"
45 "accessing libraries. In order for KiCad to access %s libraries,\n"
46 "you must configure your global %s library table. Please select from one\n"
47 "of the options below. If you are not sure which option to select, please\n"
48 "use the default selection." ), aTableName, aTableName, aTableName );
51 tmp.Printf(
_(
"Copy default global %s library table (recommended)"), aTableName );
53 tmp.Printf(
_(
"Select this option if you not sure about configuring the global %s library "
54 "table" ), aTableName );
57 tmp.Printf(
_(
"Copy custom global %s library table" ), aTableName );
59 tmp.Printf(
_(
"Select this option to copy a %s library table file other than the default" ),
63 tmp.Printf(
_(
"Create an empty global %s library table" ), aTableName );
65 tmp.Printf(
_(
"Select this option to define %s libraries in project specific library tables" ),
69 tmp.Printf(
_(
"Select global %s library table file:" ), aTableName );
104 if( !wxDialog::TransferDataToWindow() )
113 wxString templatePath;
117 wxT(
"TEMPLATE_DIR" ) ) )
122 if( !templatePath.IsEmpty() )
130 wxString fileName = ss.FindValidPath( fn.GetName() );
Class DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE.
wxStaticText * m_staticText2
wxRadioButton * m_customRb
wxStaticText * m_staticText1
wxFilePickerCtrl * m_filePicker1
wxRadioButton * m_defaultRb
wxRadioButton * m_emptyRb
virtual void onUpdateDefaultSelection(wxUpdateUIEvent &aEvent) override
DIALOG_GLOBAL_LIB_TABLE_CONFIG(wxWindow *aParent, const wxString &aTableName, const KIWAY::FACE_T aFaceType)
virtual bool TransferDataToWindow() override
virtual ~DIALOG_GLOBAL_LIB_TABLE_CONFIG()
virtual void onUpdateFilePicker(wxUpdateUIEvent &aEvent) override
virtual wxFileName GetGlobalTableFileName()=0
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
FACE_T
Known KIFACE implementations.
virtual ENV_VAR_MAP & GetLocalEnvVariables() const
Look for files in a number of paths.
void AddPaths(const wxString &aPaths, int aIndex=-1)
Insert or append path(s).
Functions related to environment variables, including help functions.
std::map< wxString, ENV_VAR_ITEM > ENV_VAR_MAP
KICOMMON_API std::optional< wxString > GetVersionedEnvVarValue(const std::map< wxString, ENV_VAR_ITEM > &aMap, const wxString &aBaseName)
Attempts to retrieve the value of a versioned environment variable, such as KICAD8_TEMPLATE_DIR.
PGM_BASE & Pgm()
The global Program "get" accessor.
void GlobalPathsAppend(SEARCH_STACK *aDst, KIWAY::FACE_T aId)
Initialize aDst SEARCH_STACK with KIFACE (DSO) specific settings.
System directories search utilities.