X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_PYQT%2FSALOME_PYQT_GUILight%2FSALOME_PYQT_PyModule.h;h=c9030744a871b868e219a6bdc32f6878cbe755ed;hb=b6e35aa42d3c67a529d7f9339718dfaed6891323;hp=98f6e8074bd7352d2a1d0f3c3226cea22769552b;hpb=034a705024b224972c148e1e3834c5ee38df184b;p=modules%2Fgui.git diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.h b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.h index 98f6e8074..c9030744a 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.h +++ b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -54,9 +54,6 @@ private: class XmlHandler; class InitLocker; - typedef QMap InterpMap; - - static InterpMap myInterpMap; //!< study to Python subinterpreter map static LightApp_Module* myInitModule; //!< Python GUI being initialized (not zero only during the initialization) LightApp_Module* myModule; //!< GUI module @@ -91,25 +88,26 @@ public slots: void preferenceChanged( const QString&, const QString&, const QString& setting ); void studyActivated( SUIT_Study* ); void actionActivated(); + void selectionUpdated(const QStringList&); void contextMenu( const QString&, QMenu* ); void createPreferences(); void activeViewChanged( SUIT_ViewWindow* ); void tryCloseView( SUIT_ViewWindow* ); void closeView( SUIT_ViewWindow* ); void cloneView( SUIT_ViewWindow* ); - void save( QStringList& ); - bool load( const QStringList& ); + void save( QStringList&, const QString& ); + bool load( const QStringList&, const QString& ); void dumpPython( QStringList& files ); bool isDraggable( const SUIT_DataObject* ) const; bool isDropAccepted( const SUIT_DataObject* ) const; void dropObjects( const DataObjectList&, SUIT_DataObject*, - const int, Qt::DropAction ); + const int, Qt::DropAction ); QString engineIOR() const; void onObjectBrowserClicked(SUIT_DataObject*, int); private: - void initInterp( int ); + void initInterp(); void importModule(); void setWorkSpace(); @@ -121,19 +119,20 @@ private: void internalPreferencesChanged( const QString&, const QString& ); void internalStudyChanged( SUIT_Study* ); void internalActionActivated( int ); + void internalSelectionUpdated(const QStringList&); void internalContextMenu( const QString&, QMenu* ); void internalCreatePreferences(); void internalActiveViewChanged( SUIT_ViewWindow* ); void internalTryCloseView( SUIT_ViewWindow* ); void internalCloseView( SUIT_ViewWindow* ); void internalCloneView( SUIT_ViewWindow* ); - void internalSave( QStringList& ); - void internalLoad( const QStringList&, bool& ); + void internalSave( QStringList&, const QString& ); + void internalLoad( const QStringList&, const QString&, bool& ); void internalDumpPython( QStringList& ); bool internalIsDraggable( LightApp_DataObject* ); bool internalIsDropAccepted( LightApp_DataObject* ); void internalDropObjects( const DataObjectList&, SUIT_DataObject*, - const int, Qt::DropAction ); + const int, Qt::DropAction ); QString internalEngineIOR() const; void internalOBClickedPython( const QString&, int );