mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 00:21:25 +00:00
Better OnModify() handling for Symbol Fields Table.
This commit is contained in:
parent
0e536663a6
commit
5ad8f0e387
@ -465,6 +465,13 @@ void DIALOG_SHIM::OnModify()
|
||||
}
|
||||
|
||||
|
||||
void DIALOG_SHIM::ClearModify()
|
||||
{
|
||||
if( GetTitle().StartsWith( wxS( "*" ) ) )
|
||||
SetTitle( GetTitle().AfterFirst( '*' ) );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Quasi-Modal Mode Explained:
|
||||
|
||||
|
@ -677,6 +677,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnAddField( wxCommandEvent& event )
|
||||
SetupColumnProperties( m_dataModel->GetColsCount() - 1 );
|
||||
|
||||
syncBomPresetSelection();
|
||||
OnModify();
|
||||
}
|
||||
|
||||
|
||||
@ -723,6 +724,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnRemoveField( wxCommandEvent& event )
|
||||
m_grid->ProcessTableMessage( msg );
|
||||
|
||||
syncBomPresetSelection();
|
||||
OnModify();
|
||||
}
|
||||
|
||||
|
||||
@ -766,6 +768,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnRenameField( wxCommandEvent& event )
|
||||
m_fieldsCtrl->SetTextValue( newFieldName, row, LABEL_COLUMN );
|
||||
|
||||
syncBomPresetSelection();
|
||||
OnModify();
|
||||
}
|
||||
|
||||
|
||||
@ -997,6 +1000,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnColLabelChange( wxDataViewEvent& aEvent )
|
||||
void DIALOG_SYMBOL_FIELDS_TABLE::OnTableValueChanged( wxGridEvent& aEvent )
|
||||
{
|
||||
m_grid->ForceRefresh();
|
||||
OnModify();
|
||||
}
|
||||
|
||||
|
||||
@ -1147,7 +1151,10 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnSizeFieldList( wxSizeEvent& event )
|
||||
void DIALOG_SYMBOL_FIELDS_TABLE::OnSaveAndContinue( wxCommandEvent& aEvent )
|
||||
{
|
||||
if( TransferDataFromWindow() )
|
||||
{
|
||||
m_parent->SaveProject();
|
||||
ClearModify();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -117,6 +117,7 @@ public:
|
||||
void OnPaint( wxPaintEvent &event );
|
||||
|
||||
void OnModify();
|
||||
void ClearModify();
|
||||
|
||||
/**
|
||||
* Force the position of the dialog to a new position
|
||||
|
Loading…
Reference in New Issue
Block a user