X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSTD%2FSTD_TabDesktop.h;h=76707ceb6dfe26e1753ec028caba61b8e9c056e7;hb=8d623c5450c440d287993e3650ec4d1e4d44ca58;hp=aa63db0654800971b76cc86ef8a8d9ad7b21a699;hpb=399155730966dfc225fbb24f66204b05664385f2;p=modules%2Fgui.git diff --git a/src/STD/STD_TabDesktop.h b/src/STD/STD_TabDesktop.h index aa63db065..76707ceb6 100644 --- a/src/STD/STD_TabDesktop.h +++ b/src/STD/STD_TabDesktop.h @@ -1,21 +1,25 @@ -// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D -// +// Copyright (C) 2007-2013 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 +// // 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 +// License as published by the Free Software Foundation; either // version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + #ifndef STD_TABDESKTOP_H #define STD_TABDESKTOP_H @@ -23,13 +27,10 @@ #include -class QtxAction; -class QPopupMenu; -class QWorkspace; class QtxWorkstack; class QtxWorkstackAction; -#if defined WNT +#if defined WIN32 #pragma warning( disable: 4251 ) #endif @@ -38,29 +39,29 @@ class STD_EXPORT STD_TabDesktop: public SUIT_Desktop Q_OBJECT public: - enum { MenuWindowId = 6 }; - enum { VSplit, HSplit }; + enum { SplitVertical, SplitHorizontal }; public: STD_TabDesktop(); virtual ~STD_TabDesktop(); virtual SUIT_ViewWindow* activeWindow() const; - virtual QPtrList windows() const; + virtual QList windows() const; void windowOperation( const int ); void setWindowOperations( const int, ... ); - void setWindowOperations( const QValueList& ); + void setWindowOperations( const QList& ); QtxWorkstack* workstack() const; private slots: void onWindowActivated( QWidget* ); + void onArrangeViews(); protected: void createActions(); - virtual QWidget* parentArea() const; + virtual void addWindow( QWidget* ); private: int operationFlag( const int ) const; @@ -70,7 +71,7 @@ private: QtxWorkstackAction* myWorkstackAction; }; -#if defined WNT +#if defined WIN32 #pragma warning( default: 4251 ) #endif