[Kst] kdeextragear-2/kst/kst

Rick Chern rchern at interchange.ubc.ca
Tue Aug 24 20:42:46 CEST 2004


CVS commit by rchern: 

Disable the bin fields and autobin button when real-time auto bin is checked.


  M +13 -0     ksthsdialog_i.cpp   1.66
  M +3 -0      ksthsdialog_i.h   1.19


--- kdeextragear-2/kst/kst/ksthsdialog_i.cpp  #1.65:1.66
@@ -59,4 +59,5 @@ KstHsDialogI::KstHsDialogI(QWidget* pare
   connect(AutoBin, SIGNAL(clicked()), this, SLOT(autoBin()));
   connect(_vector, SIGNAL(newVectorCreated(const QString&)), this, SIGNAL(modified()));
+  connect(_realTimeAutoBin, SIGNAL(clicked()), this, SLOT(updateButtons()));
   _curveAppearance->setUsePoints(false);
   _curveAppearance->setMustUseLines(true);
@@ -109,4 +110,6 @@ void KstHsDialogI::_fillFieldsForEdit() 
   _curvePlacement->hide();
 
+  updateButtons();
+
   adjustSize();
   resize(minimumSizeHint());
@@ -130,4 +133,7 @@ void KstHsDialogI::_fillFieldsForNew() {
   _curveAppearance->reset();
 
+  _realTimeAutoBin->setChecked(false);
+  updateButtons();
+
   adjustSize();
   resize(minimumSizeHint());
@@ -341,4 +347,11 @@ void KstHsDialogI::autoBin() {
 }
 
+void KstHsDialogI::updateButtons() {
+  Min->setEnabled(!_realTimeAutoBin->isChecked());
+  Max->setEnabled(!_realTimeAutoBin->isChecked());
+  N->setEnabled(!_realTimeAutoBin->isChecked());
+  AutoBin->setEnabled(!_realTimeAutoBin->isChecked());
+}
+
 #include "ksthsdialog_i.moc"
 // vim: ts=2 sw=2 et

--- kdeextragear-2/kst/kst/ksthsdialog_i.h  #1.18:1.19
@@ -48,4 +48,7 @@ class KstHsDialogI : public KstHsDialog 
     KstHistogramPtr DP;
 
+  private slots:
+    void updateButtons();
+
     /***********************************/
     /** defined in dataobjectdialog.h **/





More information about the Kst mailing list