Commit 6c14f25b authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Add action triggering display of master effects

parent 0d120122
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd"> <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="kdenlive" version="167" translationDomain="kdenlive"> <kpartgui name="kdenlive" version="168" translationDomain="kdenlive">
<MenuBar> <MenuBar>
<Menu name="file" > <Menu name="file" >
<Action name="dvd_wizard" /> <Action name="dvd_wizard" />
...@@ -128,6 +128,7 @@ ...@@ -128,6 +128,7 @@
<Action name="save_selection" /> <Action name="save_selection" />
<Action name="send_library" /> <Action name="send_library" />
<Menu name="timeline_tracks" ><text>Tracks</text> <Menu name="timeline_tracks" ><text>Tracks</text>
<Action name="master_effects" />
<Action name="insert_track" /> <Action name="insert_track" />
<Action name="delete_track" /> <Action name="delete_track" />
<Separator /> <Separator />
......
...@@ -1428,6 +1428,13 @@ void MainWindow::setupActions() ...@@ -1428,6 +1428,13 @@ void MainWindow::setupActions()
QAction *insertTrack = new QAction(QIcon(), i18n("Insert Track"), this); QAction *insertTrack = new QAction(QIcon(), i18n("Insert Track"), this);
connect(insertTrack, &QAction::triggered, this, &MainWindow::slotInsertTrack); connect(insertTrack, &QAction::triggered, this, &MainWindow::slotInsertTrack);
timelineActions->addAction(QStringLiteral("insert_track"), insertTrack); timelineActions->addAction(QStringLiteral("insert_track"), insertTrack);
QAction *masterEffectStack = new QAction(QIcon::fromTheme(QStringLiteral("kdenlive-composite")), i18n("Master effects"), this);
connect(masterEffectStack, &QAction::triggered, [&]() {
pCore->monitorManager()->activateMonitor(Kdenlive::ProjectMonitor);
getCurrentTimeline()->controller()->showMasterEffects();
});
timelineActions->addAction(QStringLiteral("master_effects"), masterEffectStack);
QAction *deleteTrack = new QAction(QIcon(), i18n("Delete Track"), this); QAction *deleteTrack = new QAction(QIcon(), i18n("Delete Track"), this);
connect(deleteTrack, &QAction::triggered, this, &MainWindow::slotDeleteTrack); connect(deleteTrack, &QAction::triggered, this, &MainWindow::slotDeleteTrack);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment