KstEqDialog::KstEqDialog(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl) : KstDataDialog(parent) { printf("eqd0\n"); _w = new Ui::EqDialogWidget(); printf("eqd1\n"); _w->setupUi(_contents); setMultiple(true); connect(_w->_vectors, SIGNAL(newVectorCreated(const QString&)), this, SIGNAL(modified())); connect(_w->_xVectors, SIGNAL(newVectorCreated(const QString&)), this, SIGNAL(modified())); connect(_w->_scalars, SIGNAL(newScalarCreated()), this, SIGNAL(modified())); // // connections for edit multiple mode... // connect(_w->_doInterpolation, SIGNAL(clicked()), this, SLOT(setDoInterpolationDirty())); populateFunctionList(); // // connections for apply button... // connect(_w->_equation, SIGNAL(textChanged(const QString&)), this, SLOT(wasModifiedApply())); connect(_w->_xVectors, SIGNAL(selectionChanged(const QString&)), this, SLOT(wasModifiedApply())); connect(_w->_xVectors, SIGNAL(selectionChangedLabel(const QString&)), this, SLOT(wasModifiedApply())); connect(_w->_doInterpolation, SIGNAL(clicked()), this, SLOT(wasModifiedApply())); connect(_w->_curveAppearance, SIGNAL(changed()), this, SLOT(wasModifiedApply())); }
KstEqDialogI::KstEqDialogI(QWidget* parent, const char* name, bool modal, WFlags fl) : KstDataDialog(parent, name, modal, fl) { _w = new EqDialogWidget(_contents); setMultiple(true); connect(_w->_vectors, SIGNAL(newVectorCreated(const QString&)), this, SIGNAL(modified())); connect(_w->_xVectors, SIGNAL(newVectorCreated(const QString&)), this, SIGNAL(modified())); connect(_w->_scalars, SIGNAL(newScalarCreated()), this, SIGNAL(modified())); // for edit multiple mode connect(_w->_doInterpolation, SIGNAL(clicked()), this, SLOT(setDoInterpolationDirty())); populateFunctionList(); }