Back to index

salome-gui  6.5.0
Classes | Functions
SalomeApp_Application.cxx File Reference
#include "SalomeApp_PyInterp.h"
#include "SalomeApp_Application.h"
#include "SalomeApp_Study.h"
#include "SalomeApp_DataModel.h"
#include "SalomeApp_DataObject.h"
#include "SalomeApp_VisualState.h"
#include "SalomeApp_StudyPropertiesDlg.h"
#include "SalomeApp_LoadStudiesDlg.h"
#include "SalomeApp_NoteBookDlg.h"
#include "SalomeApp_ExitDlg.h"
#include <LightApp_Application.h>
#include <LightApp_Module.h>
#include <LightApp_Preferences.h>
#include <LightApp_SelectionMgr.h>
#include <LightApp_NameDlg.h>
#include <LightApp_DataOwner.h>
#include <LightApp_Displayer.h>
#include <CAM_Module.h>
#include <SUIT_Tools.h>
#include <SUIT_Session.h>
#include <SUIT_Desktop.h>
#include <SUIT_DataBrowser.h>
#include <SUIT_FileDlg.h>
#include <SUIT_FileValidator.h>
#include <SUIT_MessageBox.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_TreeModel.h>
#include <SUIT_ViewWindow.h>
#include <SUIT_ViewManager.h>
#include <SUIT_ViewModel.h>
#include <QtxTreeView.h>
#include <SALOME_EventFilter.h>
#include <PyConsole_Console.h>
#include <Utils_ORB_INIT.hxx>
#include <Utils_SINGLETON.hxx>
#include <SALOME_LifeCycleCORBA.hxx>
#include <QApplication>
#include <QAction>
#include <QRegExp>
#include <QCheckBox>
#include <QPushButton>
#include <QLabel>
#include <QListWidget>
#include <QGridLayout>
#include <QMenu>
#include <QtDebug>
#include <SALOMEDSClient_ClientFactory.hxx>
#include <Basics_Utils.hxx>
#include <SALOME_ListIO.hxx>
#include <SALOME_ListIteratorOfListIO.hxx>
#include <SALOME_Prs.h>
#include <ToolsGUI_CatalogGeneratorDlg.h>
#include <ToolsGUI_RegWidget.h>
#include <vector>

Go to the source code of this file.

Classes

class  DumpStudyFileDlg
 Private class used in Dump Study operation. More...
class  DumpStudyFileValidator

Functions

SALOMEAPP_EXPORT SUIT_Application * createApplication ()
 Internal class that updates object browser item properties.
int getSelectedSavePoint (const LightApp_SelectionMgr *selMgr)
 Global utility funciton, returns selected GUI Save point object's ID.

Function Documentation

SALOMEAPP_EXPORT SUIT_Application* createApplication ( )

Internal class that updates object browser item properties.

Create new instance of SalomeApp_Application.

Definition at line 153 of file SalomeApp_Application.cxx.

{
  return new SalomeApp_Application();
}
int getSelectedSavePoint ( const LightApp_SelectionMgr *  selMgr)

Global utility funciton, returns selected GUI Save point object's ID.

Definition at line 1416 of file SalomeApp_Application.cxx.

{
  SALOME_ListIO aList;
  selMgr->selectedObjects( aList );
  if( aList.Extent() > 0 ) {
    Handle(SALOME_InteractiveObject) aIObj = aList.First();
    QString entry( aIObj->getEntry() );
    QString startStr = QObject::tr( "SAVE_POINT_DEF_NAME" );
    if ( !entry.startsWith( startStr ) ) // it's a "GUI state" object
      return -1;
    bool ok; // conversion to integer is ok?
    int savePoint = entry.right( entry.length() - startStr.length() ).toInt( &ok );
    return ok ? savePoint : -1;
  }
  return -1;
}

Here is the call graph for this function: