void Configurator::closeSettingsPanel() { if (k->state == Properties) { activeTweenManagerPanel(true); activePropertiesPanel(false); k->mode = TupToolPlugin::View; k->state = Manager; } }
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); } }
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); }
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); }
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); }