From 7b0ad61a428885b6291aff721f1d88993ca55738 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 6 Sep 2005 04:42:33 +0000 Subject: [PATCH] To make possible to introduce new type of viewer --- src/VISUGUI/VisuGUI.cxx | 9 +++++++++ src/VISUGUI/VisuGUI.h | 7 +++++++ 2 files changed, 16 insertions(+) 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* ); -- 2.39.2