-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include <QStringList>
class LogWindow;
+class QtxInfoPanel;
#ifndef DISABLE_PYCONSOLE
class PyConsole_Console;
class PyConsole_Interp;
public:
typedef enum { WT_ObjectBrowser,
+ WT_InfoPanel,
#ifndef DISABLE_PYCONSOLE
WT_PyConsole,
#endif
PreferencesId, MRUId, ModulesListId,
NewGLViewId, NewPlot2dId, NewOCCViewId, NewVTKViewId,
NewQxSceneViewId, NewGraphicsViewId, NewPVViewId, NewPyViewerId, StyleId, FullScreenId,
+ WebSiteId, ForumId, VideosId, TutorialsId,
UserID };
protected:
LogWindow* logWindow();
SUIT_DataBrowser* objectBrowser();
+ QtxInfoPanel* infoPanel();
#ifndef DISABLE_PYCONSOLE
PyConsole_Console* pythonConsole(const bool force = false);
#endif
virtual SUIT_ViewManager* createViewManager( const QString& vmType, QWidget* w );
virtual SUIT_ViewManager* createViewManager( SUIT_ViewModel* );
- QWidget* getWindow( const int, const int = -1 );
+ QWidget* getWindow( const int );
QWidget* dockWindow( const int ) const;
void removeDockWindow( const int );
void insertDockWindow( const int, QWidget* );
void setDefaultStudyName( const QString& theName );
- static int studyId();
-
virtual bool event( QEvent* );
virtual bool checkDataObject( LightApp_DataObject* theObj );
void updateVisibilityState( DataObjectList& theList,
SUIT_ViewModel* theViewModel );
- virtual bool checkExistingDoc();
+ virtual bool checkExistingDoc( bool = true );
#ifndef DISABLE_PYCONSOLE
PyConsole_Interp* getPyInterp();
virtual void onDockWindowVisibilityChanged( bool );
protected:
+ void showHelp( const QString& );
virtual void createActions();
virtual void createActionForViewer( const int id,
const int parentId,
virtual void setActiveStudy( SUIT_Study* );
virtual void updateCommandsStatus();
+ virtual bool canOpenDoc( const QString& );
+
virtual void beforeCloseDoc( SUIT_Study* );
virtual void afterCloseDoc();
virtual void moduleAdded( CAM_Module* );
virtual void onWindowActivated( SUIT_ViewWindow* theViewWindow );
void onNewWindow();
- void onModuleActivation( const QString& );
+ virtual void onModuleActivation( const QString& );
void onCloseView( SUIT_ViewManager* );
virtual void onStudyCreated( SUIT_Study* );
virtual void onDesktopMessage( const QString& );
+ virtual void onInfoPanelShown();
+
private slots:
void onSelection();
void onRefresh();
void updateModuleActions();
void removeModuleAction( const QString& );
+ bool checkModule( const QString& );
+
void loadDockWindowsState();
void saveDockWindowsState();
void currentViewManagers( QStringList& ) const;
void moduleIconNames( QMap<QString, QString>& ) const;
- bool isLibExists( const QString& ) const;
-
QDockWidget* windowDock( QWidget* ) const;
QByteArray dockWindowsState( const QMap<QString, bool>&, const QMap<QString, bool>& ) const;
void dockWindowsState( const QByteArray&, QMap<QString, bool>&, QMap<QString, bool>& ) const;
virtual bool openAction( const int, const QString& );
void showPreferences( const QString& = QString() );
+ void showPreferences( const QStringList& );
private:
void emptyPreferences( const QString& );
static LightApp_Preferences* _prefs_;
- static int lastStudyId;
QStringList myUserWmTypes;
+
+ friend void LightAppCleanUpAppResources();
};
#ifdef WIN32