// $Header$
#include "VisuGUI_VectorsDlg.h"
-#include "VISU_Vectors_i.hh"
+
#include "VisuGUI.h"
-#include "VisuGUI_Selection.h"
+//#include "VisuGUI_Selection.h"
+#include "VisuGUI_Tools.h"
+
+#include "VISU_Vectors_i.hh"
+
+#include "SalomeApp_Module.h"
+#include "SUIT_Desktop.h"
#include <qlayout.h>
#include <qcolordialog.h>
/*!
Constructor
*/
-VisuGUI_VectorsDlg::VisuGUI_VectorsDlg (QWidget* parent)
- : QDialog(parent, "VisuGUI_VectorsDlg", true,
+VisuGUI_VectorsDlg::VisuGUI_VectorsDlg (SalomeApp_Module* theModule)
+ : QDialog(VISU::GetDesktop(theModule), "VisuGUI_VectorsDlg", true,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
setCaption(tr("DLG_TITLE"));
void VisuGUI_VectorsDlg::accept() {
- if (myScalarPane->check()) QDialog::accept();
+ if (myScalarPane->check())
+ {
+ myScalarPane->deletePreview();
+ QDialog::accept();
+ }
}
+void VisuGUI_VectorsDlg::reject()
+{
+ myScalarPane->deletePreview();
+ QDialog::reject();
+}