multicam: show highlight around selected source

This commit is contained in:
itsmattkc
2022-09-27 18:22:47 -07:00
parent c0d8d24c47
commit 80a900d105
10 changed files with 207 additions and 31 deletions
+28 -1
View File
@@ -1,3 +1,23 @@
/***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
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
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#include "multicamwidget.h"
#include "widget/nodeparamview/nodeparamviewundo.h"
@@ -6,14 +26,21 @@ namespace olive {
#define super ViewerWidget
MulticamWidget::MulticamWidget(QWidget *parent) :
super{parent},
super{new MulticamDisplay(), parent},
node_(nullptr)
{
auto_cacher()->SetMulticamMode(true);
auto_cacher()->SetIgnoreCacheRequests(true);
connect(display_widget(), &ViewerDisplayWidget::DragStarted, this, &MulticamWidget::DisplayClicked);
}
void MulticamWidget::SetMulticamNode(MultiCamNode *n)
{
node_ = n;
static_cast<MulticamDisplay*>(display_widget())->SetMulticamNode(n);
}
RenderTicketPtr MulticamWidget::GetSingleFrame(const rational &t, bool dry)
{
if (node_) {