#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>
//=====================================================================
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() ) {