<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<gui name="kdenlive" version="8">
+<gui name="kdenlive" version="9">
<ToolBar name="extraToolBar" >
<text>Extra Toolbar</text>
<Action name="clear" />
<Action name="project_settings" />
</Menu>
+ <Menu name="monitor" ><text>Monitor</text>
+ <Action name="monitor_play" />
+ </Menu>
+
<Menu name="settings" >
<Action name="manage_profiles" />
</Menu>
actionCollection()->addAction("project_settings", projectAction);
connect(projectAction, SIGNAL(triggered(bool)), this, SLOT(slotEditProjectSettings()));
-
+ KAction* monitorPlay = new KAction(this);
+ monitorPlay->setText(i18n("Play"));
+ monitorPlay->setIcon(KIcon("media-playback-start"));
+ monitorPlay->setShortcut(Qt::Key_Space);
+ actionCollection()->addAction("monitor_play", monitorPlay);
+ connect(monitorPlay, SIGNAL(triggered(bool)), m_monitorManager, SLOT(slotPlay()));
KStandardAction::quit(kapp, SLOT(quit()),
actionCollection());
// KConfigDialog didn't find an instance of this dialog, so lets
// create it :
KdenliveSettingsDialog* dialog = new KdenliveSettingsDialog(this);
- connect(dialog, SIGNAL(settingsChanged(const QString&)), this, SLOT(updateConfiguration()));
+ connect( dialog, SIGNAL(settingsChanged(const QString&)), this, SLOT(updateConfiguration()) );
dialog->show();
}
bool m_isActive;
private slots:
- void slotPlay();
void adjustRulerSize(int length);
void seekCursor(int pos);
void rendererStopped(int pos);
void stop();
void start();
void activateMonitor();
+ void slotPlay();
signals:
void renderPosition(int);
m_activeMonitor = name;
}
+void MonitorManager::slotPlay() {
+ if (m_activeMonitor == "clip") m_clipMonitor->slotPlay();
+ else m_projectMonitor->slotPlay();
+}
+
#include "monitormanager.moc"