Esempio n. 1
0
void Configurator::closeSettingsPanel()
{
    if (k->state == Properties) {
        activeTweenManagerPanel(true);
        activePropertiesPanel(false);
        k->mode = TupToolPlugin::View;
        k->state = Manager;
    }
}
Esempio n. 2
0
void Configurator::closeSettingsPanel()
{
    if (k->state == Configurator::Properties) {
        activeTweenManagerPanel(true);
        activePropertiesPanel(false);
        k->mode = TupToolPlugin::View;
        k->state = Configurator::Manager;
    } else {
        k->settingsPanel->activateMode(TupToolPlugin::Properties);
    }
}
Esempio n. 3
0
void Configurator::addTween(const QString &name)
{
    activeTweenManagerPanel(false);

    k->mode = TupToolPlugin::Add;
    k->state = Properties;

    k->settingsPanel->setParameters(name, k->framesCount, k->currentFrame);
    activePropertiesPanel(true);

    emit setMode(k->mode);
}
Esempio n. 4
0
void Configurator::editTween()
{
    activeTweenManagerPanel(false);

    k->mode = TupToolPlugin::Edit;
    k->state = Properties;

    k->settingsPanel->notifySelection(true);
    k->settingsPanel->setParameters(k->currentTween);
    activePropertiesPanel(true);
    emit setMode(k->mode);
}
Esempio n. 5
0
void Configurator::setPropertiesPanel()
{
    k->settingsPanel = new Settings(this);

    connect(k->settingsPanel, SIGNAL(startingPointChanged(int)), this, SIGNAL(startingPointChanged(int)));
    connect(k->settingsPanel, SIGNAL(clickedSelect()), this, SIGNAL(clickedSelect()));
    connect(k->settingsPanel, SIGNAL(clickedDefineProperties()), this, SIGNAL(clickedDefineProperties()));
    connect(k->settingsPanel, SIGNAL(clickedApplyTween()), this, SLOT(applyItem()));
    connect(k->settingsPanel, SIGNAL(clickedResetTween()), this, SLOT(closeTweenProperties()));

    k->settingsLayout->addWidget(k->settingsPanel);

    activePropertiesPanel(false);
}