31 const wxString& aTableName,
34 m_tableName( aTableName ),
35 m_defaultFileFound( false ),
36 m_faceType( aFaceType )
40 tmp.Printf(
_(
"Configure Global %s Library Table" ), aTableName.Capitalize() );
43 tmp.Printf(
_(
"KiCad has been run for the first time using the new %s library table for\n"
44 "accessing libraries. In order for KiCad to access %s libraries,\n"
45 "you must configure your global %s library table. Please select from one\n"
46 "of the options below. If you are not sure which option to select, please\n"
47 "use the default selection." ), aTableName, aTableName, aTableName );
50 tmp.Printf(
_(
"Copy default global %s library table (recommended)"), aTableName );
52 tmp.Printf(
_(
"Select this option if you not sure about configuring the global %s library "
53 "table" ), aTableName );
56 tmp.Printf(
_(
"Copy custom global %s library table" ), aTableName );
58 tmp.Printf(
_(
"Select this option to copy a %s library table file other than the default" ),
62 tmp.Printf(
_(
"Create an empty global %s library table" ), aTableName );
64 tmp.Printf(
_(
"Select this option to define %s libraries in project specific library tables" ),
68 tmp.Printf(
_(
"Select global %s library table file:" ), aTableName );
103 if( !wxDialog::TransferDataToWindow() )
112 wxString templatePath =
113 Pgm().GetLocalEnvVariables().at( wxT(
"KICAD7_TEMPLATE_DIR" ) ).GetValue();
115 if( !templatePath.IsEmpty() )
123 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.
Look for files in a number of paths.
void AddPaths(const wxString &aPaths, int aIndex=-1)
Insert or append path(s).
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
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.