1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef SUIT_DESKTOP_H
20 #define SUIT_DESKTOP_H
26 #include <QtxMainWindow.h>
30 class SUIT_ViewWindow;
31 class QtxActionMenuMgr;
32 class QtxActionToolMgr;
36 Provides standard desktop: main window with
37 main menu manager, toolbars manager and logo.
39 class SUIT_EXPORT SUIT_Desktop : public QtxMainWindow
45 virtual ~SUIT_Desktop();
47 QtxActionMenuMgr* menuMgr() const;
48 QtxActionToolMgr* toolMgr() const;
50 virtual SUIT_ViewWindow* activeWindow() const = 0;
51 virtual QPtrList<SUIT_ViewWindow> windows() const = 0;
53 void addLogo( const QString&, const QPixmap& ); // Not should be used. Will be removed.
54 void removeLogo( const QString& ); // Not should be used. Will be removed.
56 int logoCount() const;
59 void logoRemove( const QString& );
60 void logoInsert( const QString&, const QPixmap&, const int = -1 );
65 void windowActivated( SUIT_ViewWindow* );
66 void closing( SUIT_Desktop*, QCloseEvent* );
69 virtual bool event( QEvent* );
70 virtual void closeEvent( QCloseEvent* );
71 virtual void childEvent( QChildEvent* );
73 virtual QWidget* parentArea() const = 0;
76 QtxActionMenuMgr* myMenuMgr;
77 QtxActionToolMgr* myToolMgr;
78 QtxLogoMgr* myLogoMgr;