From: apo Date: Tue, 6 Sep 2005 04:42:33 +0000 (+0000) Subject: To make possible to introduce new type of viewer X-Git-Tag: V3_1_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7b0ad61a428885b6291aff721f1d88993ca55738;p=modules%2Fvisu.git To make possible to introduce new type of viewer --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index fe36604a..80b469c3 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2885,3 +2885,12 @@ void VisuGUI::createPreferences() void VisuGUI::preferencesChanged( const QString&, const QString& ) { } + +SUIT_ViewManager* +VisuGUI +::getViewManager(const QString& theType, + const bool theIsCreate) +{ + return getApp()->getViewManager(theType,theIsCreate); +} + diff --git a/src/VISUGUI/VisuGUI.h b/src/VISUGUI/VisuGUI.h index adef1995..5e71f88f 100644 --- a/src/VISUGUI/VisuGUI.h +++ b/src/VISUGUI/VisuGUI.h @@ -31,6 +31,8 @@ #include "SalomeApp_Module.h" +class SUIT_ViewManager; + class VisuGUI: public SalomeApp_Module { Q_OBJECT; @@ -53,6 +55,11 @@ public: virtual void createPreferences(); virtual void preferencesChanged( const QString&, const QString& ); + virtual + SUIT_ViewManager* + getViewManager(const QString& theType, + const bool theIsCreate); + public slots: virtual bool deactivateModule( SUIT_Study* ); virtual bool activateModule( SUIT_Study* );