]> SALOME platform Git repositories - modules/superv.git/blobdiff - src/SUPERVGUI/SUPERVGUI_CanvasControlNode.cxx
Salome HOME
SMH: 3.0.0 preparation = merged version (POLYWORK + RTVDEBUG01) + adopation for new GUI
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_CanvasControlNode.cxx
index 7f8bb384c1bbb300a91c663d8cf1565c2988a7b5..0049dad41f4f4785f1c354a9a4d8904c719986d1 100644 (file)
@@ -15,9 +15,10 @@ using namespace std;
 #include "SUPERVGUI.h"
 #include "SUPERVGUI_Canvas.h"
 
-#include "QAD_FileDlg.h"
-#include "QAD_Application.h"
+#include "SUIT_FileDlg.h"
+#include "SUIT_Session.h"
 
+#include <qlabel.h>
 #include <qlayout.h>
 
 //=====================================================================
@@ -274,22 +275,22 @@ void SUPERVGUI_CanvasMacroNode::exportDataflow()
       aGraph = aMacro->FlowObjRef();
   }
   if (SUPERV_isNull(aGraph)) {
-    QMessageBox::warning(QAD_Application::getDesktop(), tr("WARNING"), tr("MSG_NOWINDOW_TO_EXPORT"));
+    QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("WARNING"), tr("MSG_NOWINDOW_TO_EXPORT"));
     return;
   }
   else {
-    QString aFileName = QAD_FileDlg::getFileName(QAD_Application::getDesktop(),
-                                                "",
-                                                "*.xml",
-                                                tr("TTL_EXPORT_DATAFLOW"),
-                                                false);
+    QString aFileName = SUIT_FileDlg::getFileName(SUIT_Session::session()->activeApplication()->desktop(),
+                                                 "",
+                                                 "*.xml",
+                                                 tr("TTL_EXPORT_DATAFLOW"),
+                                                 false);
     if ( !aFileName.isEmpty() ) {
       // asv : bug [VSR Bugs and Improvements in Supervisor] 1.8 : when exporting a file, 
       // a backup copy of an existing file must be created (in case Export fails..)
       QString aBackupFile = SUPERVGUI::createBackupFile( aFileName );
 
       if (!aGraph->Export(aFileName.latin1())) {
-       QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_BAD_WRITING").arg(aBackupFile));
+       QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_BAD_WRITING").arg(aBackupFile));
       }
       // remove a backup file if export was successfull
       else if ( !aBackupFile.isNull() && !aBackupFile.isEmpty() ) {