Symbol Fields Table: remember export filename

https://gitlab.com/kicad/code/kicad/-/issues/14872
This commit is contained in:
Mike Williams 2023-06-04 13:45:07 -04:00
parent 9e6c56525a
commit bb6555ff36
3 changed files with 7 additions and 0 deletions

View File

@ -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++ )
{

View File

@ -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 ) );

View File

@ -212,6 +212,7 @@ public:
int width;
int height;
int page;
wxString export_filename;
};
struct PANEL_LIB_VIEW