Skip to content

Commit

Permalink
add Animation to Open Other dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed May 3, 2022
1 parent 50a3908 commit 6d45619
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/openotherdialog.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2018 Meltytech, LLC
* Copyright (c) 2012-2022 Meltytech, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -79,6 +79,10 @@ OpenOtherDialog::OpenOtherDialog(QWidget *parent) :
item->setData(0, Qt::UserRole, ui->textTab->objectName());
}
}
if (mltProducers->get_data("glaxnimate")) {
QTreeWidgetItem *item = new QTreeWidgetItem(group, QStringList(tr("Animation")));
item->setData(0, Qt::UserRole, ui->glaxnimateTab->objectName());
}
if (mltProducers->get_data("noise")) {
QTreeWidgetItem *item = new QTreeWidgetItem(group, QStringList(tr("Noise")));
item->setData(0, Qt::UserRole, ui->noiseTab->objectName());
Expand Down Expand Up @@ -153,6 +157,8 @@ void OpenOtherDialog::load(Mlt::Producer *producer)
selectTreeWidget(tr("SDI/HDMI"));
else if (service == "color")
selectTreeWidget(tr("Color"));
else if (service == "glaxnimate")
selectTreeWidget(tr("Animation"));
else if (service == "noise")
selectTreeWidget(tr("Noise"));
else if (service == "frei0r.ising0r")
Expand Down Expand Up @@ -205,6 +211,8 @@ void OpenOtherDialog::on_treeWidget_currentItemChanged(QTreeWidgetItem *current,
m_current = ui->colorWidget;
else if (w == ui->textTab)
m_current = ui->textWidget;
else if (w == ui->glaxnimateTab)
m_current = ui->glaxnimateWidget;
else if (w == ui->noiseTab)
m_current = ui->noiseWidget;
else if (w == ui->isingTab)
Expand Down
13 changes: 13 additions & 0 deletions src/openotherdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="glaxnimateTab">
<layout class="QVBoxLayout" name="verticalLayout_21">
<item>
<widget class="GlaxnimateProducerWidget" name="glaxnimateWidget" native="true"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="noiseTab">
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
Expand Down Expand Up @@ -348,6 +355,12 @@
<header>widgets/blipproducerwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>GlaxnimateProducerWidget</class>
<extends>QWidget</extends>
<header>widgets/glaxnimateproducerwidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>buttonBox</tabstop>
Expand Down

0 comments on commit 6d45619

Please sign in to comment.