change: change code style to Linux style except indent.
This commit is contained in:
+20
-16
@@ -22,44 +22,48 @@
|
||||
|
||||
#include "window/mainwindow/mainwindow.h"
|
||||
|
||||
namespace olive {
|
||||
|
||||
ParamPanel::ParamPanel() :
|
||||
TimeBasedPanel(QStringLiteral("ParamPanel"))
|
||||
namespace olive
|
||||
{
|
||||
NodeParamView* view = new NodeParamView(this);
|
||||
connect(view, &NodeParamView::FocusedNodeChanged, this, &ParamPanel::FocusedNodeChanged);
|
||||
connect(view, &NodeParamView::SelectedNodesChanged, this, &ParamPanel::SelectedNodesChanged);
|
||||
connect(view, &NodeParamView::RequestViewerToStartEditingText, this, &ParamPanel::RequestViewerToStartEditingText);
|
||||
connect(this, &ParamPanel::shown, view, &NodeParamView::UpdateElementY);
|
||||
SetTimeBasedWidget(view);
|
||||
|
||||
Retranslate();
|
||||
ParamPanel::ParamPanel()
|
||||
: TimeBasedPanel(QStringLiteral("ParamPanel"))
|
||||
{
|
||||
NodeParamView *view = new NodeParamView(this);
|
||||
connect(view, &NodeParamView::FocusedNodeChanged, this,
|
||||
&ParamPanel::FocusedNodeChanged);
|
||||
connect(view, &NodeParamView::SelectedNodesChanged, this,
|
||||
&ParamPanel::SelectedNodesChanged);
|
||||
connect(view, &NodeParamView::RequestViewerToStartEditingText, this,
|
||||
&ParamPanel::RequestViewerToStartEditingText);
|
||||
connect(this, &ParamPanel::shown, view, &NodeParamView::UpdateElementY);
|
||||
SetTimeBasedWidget(view);
|
||||
|
||||
Retranslate();
|
||||
}
|
||||
|
||||
void ParamPanel::DeleteSelected()
|
||||
{
|
||||
static_cast<NodeParamView*>(GetTimeBasedWidget())->DeleteSelected();
|
||||
static_cast<NodeParamView *>(GetTimeBasedWidget())->DeleteSelected();
|
||||
}
|
||||
|
||||
void ParamPanel::SelectAll()
|
||||
{
|
||||
static_cast<NodeParamView*>(GetTimeBasedWidget())->SelectAll();
|
||||
static_cast<NodeParamView *>(GetTimeBasedWidget())->SelectAll();
|
||||
}
|
||||
|
||||
void ParamPanel::DeselectAll()
|
||||
{
|
||||
static_cast<NodeParamView*>(GetTimeBasedWidget())->DeselectAll();
|
||||
static_cast<NodeParamView *>(GetTimeBasedWidget())->DeselectAll();
|
||||
}
|
||||
|
||||
void ParamPanel::SetContexts(const QVector<Node *> &contexts)
|
||||
{
|
||||
static_cast<NodeParamView*>(GetTimeBasedWidget())->SetContexts(contexts);
|
||||
static_cast<NodeParamView *>(GetTimeBasedWidget())->SetContexts(contexts);
|
||||
}
|
||||
|
||||
void ParamPanel::Retranslate()
|
||||
{
|
||||
SetTitle(tr("Parameter Editor"));
|
||||
SetTitle(tr("Parameter Editor"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user