-// Copyright (C) 2007-2012 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
// 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
QWidgetList splitWindowList() const;
QWidget* activeWindow() const;
+ void setActiveWindow( QWidget* );
int accel( const int ) const;
void setAccel( const int, const int );
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* );
QtxWorkstackArea* createArea( QWidget* ) const;
- void updateState();
void updateState( QSplitter* );
+ void splitterVisible(QWidget*, QList<QSplitter*>&, QSplitter*, bool );
+
void distributeSpace( QSplitter* ) const;
int setPosition( QWidget* wid, QSplitter* split, const Qt::Orientation o,
bool restoreState( QDataStream&, QMap<QString, QtxWorkstackChild*>& );
};
-class QtxWorkstackArea : public QFrame
+class QTX_EXPORT QtxWorkstackArea : public QFrame
{
Q_OBJECT
void saveState( QDataStream& ) const;
bool restoreState( QDataStream&, QMap<QString, QtxWorkstackChild*>& );
+ void showTabBar( bool = true);
+
signals:
void activated( QWidget* );
void contextMenuRequested( QWidget*, QPoint );
typedef QList<QtxWorkstackChild*> ChildList;
private:
+ QWidget* myTop; //!< workarea top widget
QtxWorkstackTabBar* myBar; //!< workarea tab bar header
ChildList myList; //!< child widgets list
QAbstractButton* myClose; //!< close button