name every undo command

This commit is contained in:
itsmattkc
2023-03-12 00:49:03 -08:00
parent 019f095ee4
commit 2c2df99963
46 changed files with 172 additions and 122 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ void ConfigDialogBase::accept()
tab->Accept(command);
}
Core::instance()->undo_stack()->push(command);
Core::instance()->undo_stack()->push(command, tr("Set Configuration"));
AcceptEvent();
@@ -192,7 +192,7 @@ void FootagePropertiesDialog::accept()
static_cast<StreamProperties*>(stacked_widget_->widget(i))->Accept(command);
}
Core::instance()->undo_stack()->push(command);
Core::instance()->undo_stack()->push(command, tr("Set Footage \"%1\" Properties").arg(footage_->GetLabel()));
QDialog::accept();
}
@@ -219,7 +219,7 @@ void KeyframePropertiesDialog::accept()
}
}
Core::instance()->undo_stack()->push(command);
Core::instance()->undo_stack()->push(command, tr("Set Keyframe Properties"));
QDialog::accept();
}
@@ -147,7 +147,7 @@ void MarkerPropertiesDialog::accept()
command->add_child(new MarkerChangeTimeCommand(markers_.front(), TimeRange(in_slider_->GetValue(), out_slider_->GetValue())));
}
Core::instance()->undo_stack()->push(command);
Core::instance()->undo_stack()->push(command, tr("Set Marker Properties"));
super::accept();
}
+1 -1
View File
@@ -151,7 +151,7 @@ void SequenceDialog::accept()
name_field_->text(),
parameter_tab_->GetSelectedPreviewAutoCache());
Core::instance()->undo_stack()->push(param_command);
Core::instance()->undo_stack()->push(param_command, tr("Set Sequence Parameters For \"%1\"").arg(sequence_->GetLabel()));
} else {
// Set sequence values directly with no undo command
@@ -251,7 +251,8 @@ void SpeedDurationDialog::accept()
}
}
Core::instance()->undo_stack()->push(command);
QString name = (clips_.size() > 1) ? tr("Set %1 Clip Properties").arg(clips_.size()) : tr("Set Clip \"%1\" Properties").arg(clips_.first()->GetLabelOrName());
Core::instance()->undo_stack()->push(command, name);
super::accept();
}