Files
oak-editor/app/panel/curve/curve.cpp
T
itsmattkc d82acf9b7e implemented basic animation curve editor widgets
Frontend is largely done, it just needs backend and connecting to other
widgets to function correctly.
2019-12-28 00:27:13 +11:00

29 lines
527 B
C++

#include "curve.h"
CurvePanel::CurvePanel(QWidget *parent) :
PanelWidget(parent)
{
// FIXME: This won't work if there's ever more than one of this panel
setObjectName("CurvePanel");
// Create main widget and set it
widget_ = new CurveWidget();
setWidget(widget_);
// Set strings
Retranslate();
}
void CurvePanel::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange) {
Retranslate();
}
PanelWidget::changeEvent(e);
}
void CurvePanel::Retranslate()
{
SetTitle(tr("Curve Editor"));
}