timebasedwidget/timeruler: reimplemented creating and displaying markers

This commit is contained in:
itsmattkc
2020-03-14 23:03:27 +11:00
parent a56484d3e6
commit 1c4411a4ad
9 changed files with 94 additions and 1 deletions
+6 -1
View File
@@ -87,7 +87,7 @@ MainMenu::MainMenu(QMainWindow *parent) :
edit_delete_inout_item_ = edit_menu_->AddItem("deleteinout", nullptr, nullptr, ";");
edit_ripple_delete_inout_item_ = edit_menu_->AddItem("rippledeleteinout", nullptr, nullptr, "'");
edit_menu_->addSeparator();
edit_set_marker_item_ = edit_menu_->AddItem("marker", nullptr, nullptr, "M");
edit_set_marker_item_ = edit_menu_->AddItem("marker", this, SLOT(SetMarkerTriggered()), "M");
//
// VIEW MENU
@@ -507,6 +507,11 @@ void MainMenu::GoToNextCutTriggered()
PanelManager::instance()->CurrentlyFocused()->GoToNextCut();
}
void MainMenu::SetMarkerTriggered()
{
PanelManager::instance()->CurrentlyFocused()->SetMarker();
}
void MainMenu::Retranslate()
{
// MenuShared is not a QWidget and therefore does not receive a LanguageEvent, we use MainMenu's to update it