Symbol Fields Table: remember export filename
https://gitlab.com/kicad/code/kicad/-/issues/14872
This commit is contained in:
parent
9e6c56525a
commit
bb6555ff36
|
@ -266,6 +266,8 @@ DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE( SCH_EDIT_FRAME* parent )
|
|||
|
||||
m_nbPages->SetSelection( cfg->m_FieldEditorPanel.page );
|
||||
|
||||
m_outputFileName->SetValue( cfg->m_FieldEditorPanel.export_filename );
|
||||
|
||||
Center();
|
||||
|
||||
// Connect Events
|
||||
|
@ -391,6 +393,7 @@ DIALOG_SYMBOL_FIELDS_TABLE::~DIALOG_SYMBOL_FIELDS_TABLE()
|
|||
cfg->m_FieldEditorPanel.width = GetSize().x;
|
||||
cfg->m_FieldEditorPanel.height = GetSize().y;
|
||||
cfg->m_FieldEditorPanel.page = m_nbPages->GetSelection();
|
||||
cfg->m_FieldEditorPanel.export_filename = m_outputFileName->GetValue();
|
||||
|
||||
for( int i = 0; i < m_grid->GetNumberCols(); i++ )
|
||||
{
|
||||
|
|
|
@ -418,6 +418,9 @@ EESCHEMA_SETTINGS::EESCHEMA_SETTINGS() :
|
|||
|
||||
m_params.emplace_back( new PARAM<int>( "field_editor.page", &m_FieldEditorPanel.page, 0 ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<wxString>( "field_editor.export_filename",
|
||||
&m_FieldEditorPanel.export_filename, wxT( "" ) ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<bool>( "plot.background_color",
|
||||
&m_PlotPanel.background_color, false ) );
|
||||
|
||||
|
|
|
@ -212,6 +212,7 @@ public:
|
|||
int width;
|
||||
int height;
|
||||
int page;
|
||||
wxString export_filename;
|
||||
};
|
||||
|
||||
struct PANEL_LIB_VIEW
|
||||
|
|
Loading…
Reference in New Issue