[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Tue Jul 12 19:26:46 CEST 2005


SVN commit 434035 by rchern:

- remove matrixListIsComplete
- just have fieldListIsComplete - if field list isn't complete, all types of fields (matrix fields, vector fields) are editable

 M  +1 -6      kstdatasource.cpp  
 M  +0 -4      kstdatasource.h  
 M  +1 -1      kstmatrixdialog_i.cpp  


--- trunk/extragear/graphics/kst/kst/kstdatasource.cpp #434034:434035
@@ -109,7 +109,7 @@
             *typeSuggestion = ds->fileType();
           }
           if (complete) {
-            *complete = true;
+            *complete = ds->fieldListIsComplete();
           }
           return rc;
         }
@@ -782,11 +782,6 @@
 }
 
 
-bool KstDataSource::matrixListIsComplete() const {
-  return true;  
-}
-
-
 bool KstDataSource::isEmpty() const {
   return true;
 }
--- trunk/extragear/graphics/kst/kst/kstdatasource.h #434034:434035
@@ -162,10 +162,6 @@
     /** Returns true if the field list is complete, therefore the user should
       not be able to edit the field combobox.  Default is true. */
     virtual bool fieldListIsComplete() const;
-    
-    /** Returns true if the matrix list is complete, therefore the user should 
-    not be able to edit the field combobox.  Default is true. */
-    virtual bool matrixListIsComplete() const;
 
     /** Returns true if this file is empty */
     virtual bool isEmpty() const;
--- trunk/extragear/graphics/kst/kst/kstmatrixdialog_i.cpp #434034:434035
@@ -851,7 +851,7 @@
     
  
     
-    _field->setEditable(!ds->matrixListIsComplete());
+    _field->setEditable(!ds->fieldListIsComplete());
     _configWidget = ds->configWidget();
     ds->readUnlock();
     _field->setEnabled(true);


More information about the Kst mailing list