X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FQtx%2FQtxWorkstack.h;h=03278e3b34cac6e05c5e53b2ccb577e3ccaf3cef;hb=cc14dfe0c087d1459c8b593ad7d262ddec495603;hp=9394fed1a204437ceb9dd886ceb7730f1b6a279e;hpb=bb8609caf7881d966fbb88dec0a7822736da93f5;p=modules%2Fgui.git diff --git a/src/Qtx/QtxWorkstack.h b/src/Qtx/QtxWorkstack.h index 9394fed1a..03278e3b3 100644 --- a/src/Qtx/QtxWorkstack.h +++ b/src/Qtx/QtxWorkstack.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // 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 -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -93,6 +93,7 @@ public: QWidgetList splitWindowList() const; QWidget* activeWindow() const; + void setActiveWindow( QWidget* ); int accel( const int ) const; void setAccel( const int, const int ); @@ -115,11 +116,15 @@ public: void setOpaqueResize( bool = true ); bool opaqueResize() const; + void splittersVisible( QWidget*, bool = true ); + void Split( QWidget* wid, const Qt::Orientation o, const SplitType type ); void Attract( QWidget* wid1, QWidget* wid2, const bool all ); void SetRelativePosition( QWidget* wid, const Qt::Orientation o, const double pos ); void SetRelativePositionInSplitter( QWidget* wid, const double pos ); + void updateState(); + signals: void windowActivated( QWidget* ); @@ -163,9 +168,10 @@ private: QtxWorkstackArea* createArea( QWidget* ) const; - void updateState(); void updateState( QSplitter* ); + void splitterVisible(QWidget*, QList&, QSplitter*, bool ); + void distributeSpace( QSplitter* ) const; int setPosition( QWidget* wid, QSplitter* split, const Qt::Orientation o, @@ -243,6 +249,8 @@ public: void saveState( QDataStream& ) const; bool restoreState( QDataStream&, QMap& ); + void showTabBar( bool = true); + signals: void activated( QWidget* ); void contextMenuRequested( QWidget*, QPoint ); @@ -293,6 +301,7 @@ private: typedef QList ChildList; private: + QWidget* myTop; //!< workarea top widget QtxWorkstackTabBar* myBar; //!< workarea tab bar header ChildList myList; //!< child widgets list QAbstractButton* myClose; //!< close button