reimplemented goto prev/next cut, about dialog, and action search dialog

This commit is contained in:
itsmattkc
2019-09-25 02:33:33 +10:00
parent fe5f493368
commit c19718a4a5
28 changed files with 2573 additions and 24 deletions
+5
View File
@@ -36,6 +36,11 @@ void PanelManager::DeleteAllPanels()
focus_history_.clear();
}
const QList<PanelWidget *> &PanelManager::panels()
{
return focus_history_;
}
PanelWidget *PanelManager::CurrentlyFocused() const
{
if (focus_history_.isEmpty()) {
+12
View File
@@ -47,8 +47,20 @@ class PanelManager : public QObject
public:
PanelManager(QObject* parent);
/**
* @brief Destroy all panels
*
* Should only be used on application exit to cleanly free all panels.
*/
void DeleteAllPanels();
/**
* @brief Get a list of all existing panels
*
* Panels are ordered from most recently focused to least recently focused.
*/
const QList<PanelWidget*>& panels();
/**
* @brief Return the currently focused widget, or nullptr if nothing is focused
*/
+10
View File
@@ -119,6 +119,16 @@ void TimelinePanel::EditToOut()
view_->EditToOut();
}
void TimelinePanel::GoToPrevCut()
{
view_->GoToPrevCut();
}
void TimelinePanel::GoToNextCut()
{
view_->GoToNextCut();
}
void TimelinePanel::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange) {
+4
View File
@@ -55,6 +55,10 @@ public:
virtual void EditToOut() override;
virtual void GoToPrevCut() override;
virtual void GoToNextCut() override;
public slots:
void SetTimebase(const rational& timebase);
+15
View File
@@ -69,6 +69,21 @@ void ViewerPanel::GoToEnd()
viewer_->GoToEnd();
}
void ViewerPanel::ShuttleLeft()
{
viewer_->ShuttleLeft();
}
void ViewerPanel::ShuttleStop()
{
viewer_->ShuttleStop();
}
void ViewerPanel::ShuttleRight()
{
viewer_->ShuttleRight();
}
void ViewerPanel::SetTimebase(const rational &timebase)
{
viewer_->SetTimebase(timebase);
+6
View File
@@ -48,6 +48,12 @@ public:
virtual void GoToEnd() override;
virtual void ShuttleLeft() override;
virtual void ShuttleStop() override;
virtual void ShuttleRight() override;
void SetTimebase(const rational& timebase);
void ConnectViewerNode(ViewerOutput* node);