-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 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
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
class XmlHandler;
class InitLocker;
- typedef QMap<int, PyInterp_Interp*> 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
void initialize( CAM_Application* );
bool activate( SUIT_Study* study );
bool deactivate( SUIT_Study* study );
+ void modelClosed( SUIT_Study* study );
void preferencesChanged( const QString&, const QString& setting );
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();
void internalActivate( SUIT_Study* );
void internalCustomize( SUIT_Study* );
void internalDeactivate( SUIT_Study* );
+ void internalClosedStudy( SUIT_Study* );
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 );
void connectView( SUIT_ViewWindow* );
};