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

Mike Fenton mike at staikos.net
Mon Sep 22 22:12:32 CEST 2008


SVN commit 863676 by fenton:

Make Vector and Matrix viewers non-persisted items to provide accurate details.


 M  +4 -14     mainwindow.cpp  
 M  +0 -4      mainwindow.h  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #863675:863676
@@ -63,10 +63,6 @@
 MainWindow::MainWindow() {
   _dataManager = 0;
   _exportGraphics = 0;
-  _vectorEditor = 0;
-  _scalarEditor = 0;
-  _stringEditor = 0;
-  _matrixEditor = 0;
   _doc = new Document(this);
   _tabWidget = new TabWidget(this);
   _undoGroup = new QUndoGroup(this);
@@ -88,8 +84,6 @@
 
 
 MainWindow::~MainWindow() {
-  delete _vectorEditor;
-  _vectorEditor = 0;
   delete _dataManager;
   _dataManager = 0;
   delete _doc;
@@ -901,10 +895,8 @@
 
 
 void MainWindow::showVectorEditor() {
-  if (!_vectorEditor) {
-    _vectorEditor = new VectorEditorDialog(this, _doc);
-  }
-  _vectorEditor->show();
+  VectorEditorDialog vectorDialog(this, _doc);
+  vectorDialog.exec();
 }
 
 
@@ -920,10 +912,8 @@
 }
 
 void MainWindow::showMatrixEditor() {
-  if (!_matrixEditor) {
-    _matrixEditor = new MatrixEditorDialog(this, _doc);
-  }
-  _matrixEditor->show();
+  MatrixEditorDialog matrixDialog(this, _doc);
+  matrixDialog.exec();
 }
 
 
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.h #863675:863676
@@ -118,10 +118,6 @@
     DataManager *_dataManager;
     DebugDialog *_debugDialog;
     ExportGraphicsDialog *_exportGraphics;
-    VectorEditorDialog *_vectorEditor;
-    ScalarEditorDialog *_scalarEditor;
-    StringEditorDialog * _stringEditor;
-    MatrixEditorDialog *_matrixEditor;
 
     QPointer<QProgressBar> _progressBar;
 


More information about the Kst mailing list