[Kst] branches/work/kst/portto4/kst/src/libkstapp

Barth Netterfield netterfield at astro.utoronto.ca
Tue Jul 1 02:13:47 CEST 2008


SVN commit 826570 by netterfield:

Changing entries one of the vector combos in the equation dialog changes the others as well.



 M  +8 -0      equationdialog.cpp  
 M  +3 -0      equationdialog.h  


--- branches/work/kst/portto4/kst/src/libkstapp/equationdialog.cpp #826569:826570
@@ -44,6 +44,9 @@
   connect(_vectors, SIGNAL(selectionChanged(QString)), this, SLOT(equationUpdate(const QString&)));
   connect(_scalars, SIGNAL(selectionChanged(QString)), this, SLOT(equationUpdate(const QString&)));
 
+  connect(_xVectors, SIGNAL(contentChanged()), this, SLOT(updateVectorCombos()));
+  connect(_vectors, SIGNAL(contentChanged()), this, SLOT(updateVectorCombos()));
+
   connect(_xVectors, SIGNAL(selectionChanged(QString)), this, SIGNAL(modified()));
   connect(_equation, SIGNAL(textChanged(const QString &)), this, SIGNAL(modified()));
   connect(_doInterpolation, SIGNAL(clicked()), this, SIGNAL(modified()));
@@ -193,6 +196,11 @@
 }
 
 
+void EquationTab::updateVectorCombos() {
+  _xVectors->fillVectors();
+  _vectors->fillVectors();
+}
+
 EquationDialog::EquationDialog(ObjectPtr dataObject, QWidget *parent)
   : DataDialog(dataObject, parent) {
 
--- branches/work/kst/portto4/kst/src/libkstapp/equationdialog.h #826569:826570
@@ -47,6 +47,9 @@
     void hideCurveOptions();
     void clearTabValues();
 
+  public Q_SLOTS:
+    void updateVectorCombos();
+
   Q_SIGNALS:
     void optionsChanged();
 


More information about the Kst mailing list