Configurator::Configurator(QWidget *parent) : QFrame(parent), k(new Private) { k->framesCount = 1; k->currentFrame = 0; k->mode = TupToolPlugin::View; k->state = Manager; k->layout = new QBoxLayout(QBoxLayout::TopToBottom, this); k->layout->setAlignment(Qt::AlignHCenter | Qt::AlignTop); QLabel *toolTitle = new QLabel; toolTitle->setAlignment(Qt::AlignHCenter); QPixmap pic(THEME_DIR + "icons/opacity_tween.png"); toolTitle->setPixmap(pic.scaledToWidth(20, Qt::SmoothTransformation)); toolTitle->setToolTip(tr("Opacity Tween Properties")); k->layout->addWidget(toolTitle); k->layout->addWidget(new TSeparator(Qt::Horizontal)); k->settingsLayout = new QBoxLayout(QBoxLayout::TopToBottom); k->settingsLayout->setAlignment(Qt::AlignHCenter | Qt::AlignTop); k->settingsLayout->setMargin(0); k->settingsLayout->setSpacing(0); setTweenManagerPanel(); setButtonsPanel(); setPropertiesPanel(); k->layout->addLayout(k->settingsLayout); k->layout->addStretch(2); }
Configurator::Configurator(QWidget *parent) : QFrame(parent), k(new Private) { k->framesCount = 1; k->currentFrame = 0; k->mode = TweenerPanel::View; k->state = Configurator::Manager; k->layout = new QBoxLayout(QBoxLayout::TopToBottom, this); k->layout->setAlignment(Qt::AlignHCenter | Qt::AlignTop); QLabel *title = new QLabel(tr("Composed Tween")); title->setAlignment(Qt::AlignHCenter); k->layout->addWidget(title); k->settingsLayout = new QBoxLayout(QBoxLayout::TopToBottom); k->settingsLayout->setAlignment(Qt::AlignHCenter | Qt::AlignTop); k->settingsLayout->setMargin(0); k->settingsLayout->setSpacing(0); setTweenManagerPanel(); setButtonsPanel(); setTweenerPanel(); k->layout->addLayout(k->settingsLayout); k->layout->addStretch(2); }
Configurator::Configurator(QWidget *parent) : QFrame(parent), k(new Private) { k->framesTotal = 1; k->currentFrame = 0; k->mode = TupToolPlugin::View; k->state = Configurator::Manager; k->layout = new QBoxLayout(QBoxLayout::TopToBottom, this); k->layout->setAlignment(Qt::AlignHCenter | Qt::AlignTop); QLabel *title = new QLabel(tr("Shear Tween")); title->setAlignment(Qt::AlignHCenter); title->setFont(QFont("Arial", 8, QFont::Bold)); k->layout->addWidget(title); k->settingsLayout = new QBoxLayout(QBoxLayout::TopToBottom); k->settingsLayout->setAlignment(Qt::AlignHCenter | Qt::AlignTop); k->settingsLayout->setMargin(0); k->settingsLayout->setSpacing(0); setTweenManagerPanel(); setButtonsPanel(); setPropertiesPanel(); k->layout->addLayout(k->settingsLayout); k->layout->addStretch(2); }