#include <SUIT_ViewWindow.h>
#include <SUIT_ViewManager.h>
#include <SUIT_ViewModel.h>
+#include <SUIT_OverrideCursor.h>
#include <QtxTreeView.h>
//to receive signal in application that NoteBook's variable was modified
connect( aStudy, SIGNAL(notebookVarUpdated(QString)),
- this, SIGNAL(notebookVarUpdated(QString)) );
+ this, SIGNAL(notebookVarUpdated(QString)) );
return aStudy;
}
return;
// Issue 21377 - dump study implementation moved to SalomeApp_Study class
- bool res = appStudy->dump( aFileName, toPublish, isMultiFile, toSaveGUI );
-
+ bool res;
+ {
+ SUIT_OverrideCursor wc;
+ res = appStudy->dump( aFileName, toPublish, isMultiFile, toSaveGUI );
+ }
if ( !res )
SUIT_MessageBox::warning( desktop(),
QObject::tr("WRN_WARNING"),
setNoteBook( new SalomeApp_NoteBook( desktop(), aStudy ) );
//to receive signal in NoteBook that it's variable was modified
connect( this, SIGNAL( notebookVarUpdated( QString ) ),
- getNoteBook(), SLOT( onVarUpdate( QString ) ) );
+ getNoteBook(), SLOT( onVarUpdate( QString ) ) );
}
wid = getNoteBook();
}
// Use only first selected object
SalomeApp_Study* study = dynamic_cast<SalomeApp_Study*>( activeStudy() );
if ( study ) {
- _PTR(Study) stdDS = study->studyDS();
- if ( stdDS ) {
- _PTR(SObject) aSO = stdDS->FindObjectID( aIObj->getEntry() );
- if ( aSO ) {
- _PTR( GenericAttribute ) anAttr;
- std::string auid = "AttributeUserID";
- auid += Kernel_Utils::GetGUID(Kernel_Utils::ObjectdID);
- if ( aSO->FindAttribute( anAttr, auid ) ) {
- _PTR(AttributeUserID) aAttrID = anAttr;
- QString aId = aAttrID->Value().c_str();
- if ( myExtActions.contains( aId ) ) {
- thePopup->addAction(myExtActions[aId]);
- }
- }
- }
- }
+ _PTR(Study) stdDS = study->studyDS();
+ if ( stdDS ) {
+ _PTR(SObject) aSO = stdDS->FindObjectID( aIObj->getEntry() );
+ if ( aSO ) {
+ _PTR( GenericAttribute ) anAttr;
+ std::string auid = "AttributeUserID";
+ auid += Kernel_Utils::GetGUID(Kernel_Utils::ObjectdID);
+ if ( aSO->FindAttribute( anAttr, auid ) ) {
+ _PTR(AttributeUserID) aAttrID = anAttr;
+ QString aId = aAttrID->Value().c_str();
+ if ( myExtActions.contains( aId ) ) {
+ thePopup->addAction(myExtActions[aId]);
+ }
+ }
+ }
+ }
}
}
QString aModuleTitle = moduleTitle( aModuleName );
CAM_Module* currentModule = activeModule();
if ( ( !currentModule || currentModule->moduleName() != aModuleTitle ) && !aModuleTitle.isEmpty() )
- thePopup->addAction( tr( "MEN_OPENWITH" ).arg( aModuleTitle ), this, SLOT( onOpenWith() ) );
+ thePopup->addAction( tr( "MEN_OPENWITH" ).arg( aModuleTitle ), this, SLOT( onOpenWith() ) );
}
}
LightApp_Application::onStudyCreated( study );
desktop()->tabifyDockWidget( windowDock( getWindow( WT_NoteBook ) ),
- windowDock( getWindow( WT_ObjectBrowser ) ) );
+ windowDock( getWindow( WT_ObjectBrowser ) ) );
loadDockWindowsState();
LightApp_Application::onStudyOpened( study );
desktop()->tabifyDockWidget( windowDock( getWindow( WT_NoteBook ) ),
- windowDock( getWindow( WT_ObjectBrowser ) ) );
+ windowDock( getWindow( WT_ObjectBrowser ) ) );
loadDockWindowsState();
if( !changeDesktop ) {
ok = onRestoreStudy( aDumpScript,
- aStudyName,
- isStudySaved );
+ aStudyName,
+ isStudySaved );
}
return ok;
*/
//============================================================================
bool SalomeApp_Application::onRestoreStudy( const QString& theDumpScript,
- const QString& theStudyName,
- bool theIsStudySaved )
+ const QString& theStudyName,
+ bool theIsStudySaved )
{
bool ok = true;
// emit signal to restore study from Python script
if ( myNoteBook ) {
emit dumpedStudyClosed( myNoteBook->getDumpedStudyScript(),
- myNoteBook->getDumpedStudyName(),
- myNoteBook->isDumpedStudySaved() );
+ myNoteBook->getDumpedStudyName(),
+ myNoteBook->isDumpedStudySaved() );
}
LightApp_Application::closeApplication();
}