#include "SUPERVGUI.h"
#include "SUPERVGUI_BrowseNodeDlg.h"
+#include "SalomeApp_Study.h"
SUPERVGUI_CanvasPort::SUPERVGUI_CanvasPort(QObject* theParent, SUPERVGUI_Main* theMain, SUPERV::Port_ptr thePort):
QObject(theParent),
{
QString aMes(getEngine()->IsInput()? tr("MSG_IPORT_VAL") : tr("MSG_OPORT_VAL"));
aMes += getEngine()->ToString();
- QMessageBox::information(QAD_Application::getDesktop(), tr("MSG_INFO"), aMes);
+ QMessageBox::information(SUIT_Session::session()->activeApplication()->desktop(), tr("MSG_INFO"), aMes);
}
void SUPERVGUI_CanvasPort::copy()
void SUPERVGUI_CanvasPortIn::setValue(const char* theValue)
{
- if (getEngine()->Input(Supervision.getEngine()->StringValue(theValue)))
+ SUPERVGUI* aSupMod = SUPERVGUI::Supervision();
+ if (aSupMod && getEngine()->Input(aSupMod->getEngine()->StringValue(theValue)))
update(); // sync();
else
- QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_CANT_SETVAL"));
+ QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_CANT_SETVAL"));
}
void SUPERVGUI_CanvasPortIn::setInput()
Trace("SUPERVGUI_CanvasPortOut::toStudy");
// asv 08.02.05 : added && !myInStudy - fix for PAL8105
- if ( getMain()->getStudy()->getStudyDocument()->GetProperties()->IsLocked() && !myInStudy ) {
- QMessageBox::warning(QAD_Application::getDesktop(), tr("WRN_WARNING"),
+ if ( (( SalomeApp_Study* )(getMain()->getStudy()))->studyDS()->GetProperties()->IsLocked() && !myInStudy ) {
+ QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("WRN_WARNING"),
tr("WRN_STUDY_LOCKED"));
return;
}