68 lines
1.5 KiB
C++
68 lines
1.5 KiB
C++
/***
|
|
|
|
Olive - Non-Linear Video Editor
|
|
Copyright (C) 2019 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/>.
|
|
|
|
***/
|
|
|
|
#ifndef PARAM_H
|
|
#define PARAM_H
|
|
|
|
#include "panel/curve/curve.h"
|
|
#include "panel/timebased/timebased.h"
|
|
#include "widget/nodeparamview/nodeparamview.h"
|
|
|
|
OLIVE_NAMESPACE_ENTER
|
|
|
|
class ParamPanel : public TimeBasedPanel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ParamPanel(QWidget* parent);
|
|
|
|
public slots:
|
|
void SetNodes(QList<Node*> nodes);
|
|
|
|
virtual void SetTimestamp(const int64_t& timestamp) override;
|
|
|
|
virtual void DeleteSelected() override;
|
|
|
|
signals:
|
|
void RequestSelectNode(const QList<Node*>& target);
|
|
|
|
void FoundGizmos(Node* node);
|
|
|
|
protected:
|
|
virtual void Retranslate() override;
|
|
|
|
private slots:
|
|
void CreateCurvePanel(NodeInput* input);
|
|
|
|
void OpeningNode(Node* n);
|
|
|
|
void ClosingNode(Node* n);
|
|
|
|
void ClosingCurvePanel();
|
|
|
|
private:
|
|
QHash<NodeInput*, CurvePanel*> open_curve_panels_;
|
|
|
|
};
|
|
|
|
OLIVE_NAMESPACE_EXIT
|
|
|
|
#endif // PARAM_H
|