name every undo command
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user