aSaveLay->addWidget(myPicsFormat, 1, 2);
connect(mySaveCheck, SIGNAL( toggled(bool)),
myPicsFormat, SLOT( setEnabled(bool) ));
+ connect(myPicsFormat, SIGNAL( activated (int)),
+ this, SLOT( onPicsFormatChanged()));
QLabel* aPathLbl = new QLabel("Path:", aSaveBox);
aPathLbl->setEnabled(false);
if (myPlayBtn->isOn() && (!myAnimator->running())) {
myPlayBtn->setIconSet(MYpausePixmap);
if (mySaveCheck->isChecked()) {
- QStrList aDumpFormats = QImageIO::outputFormats();
- myAnimator->setDumpFormat(aDumpFormats.at(myPicsFormat->currentItem()));
- myAnimator->dumpTo(myPathEdit->text());
+ onPicsFormatChanged();
+ onPathChanged();
+
} else if (mySaveAVICheck->isChecked()) {
myAnimator->setDumpFormat("AVI");
myAnimator->dumpTo(myPathAVIEdit->text());
QString aPath = SUIT_FileDlg::getExistingDirectory(this, aDir, "Select path");
if (!aPath.isEmpty())
myPathEdit->setText(Qtx::addSlash(aPath));
+ onPathChanged();
}
//------------------------------------------------------------------------
const QObject* source = sender();
if (source == mySaveCheck) {
if (mySaveCheck->isChecked()) {
+ onPicsFormatChanged();
+ onPathChanged();
if (mySaveAVICheck->isChecked())
mySaveAVICheck->setChecked(false);
+ } else {
+ myAnimator->dumpTo("");
}
mySaveAVICheck->setEnabled(!mySaveCheck->isChecked() && myAnimator->checkAVIMaker());
}
myAnimator->restoreFromStudy(theAnimation);
mySaveBtn->setEnabled(myAnimator->isSavedInStudy());
}
+
+//------------------------------------------------------------------------
+void VisuGUI_TimeAnimationDlg::onPicsFormatChanged()
+{
+ QStrList aDumpFormats = QImageIO::outputFormats();
+ myAnimator->setDumpFormat(aDumpFormats.at(myPicsFormat->currentItem()));
+}
+
+//------------------------------------------------------------------------
+void VisuGUI_TimeAnimationDlg::onPathChanged()
+{
+ myAnimator->dumpTo(myPathEdit->text());
+}