/**************************************************************************** ** $Id: qgmanager.h,v 2.14.2.2 1998/08/21 19:13:22 hanord Exp $ ** ** Definition of QGManager class (workhorse for QLayout classes) ** ** Created : 960406 ** ** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. ** ** This file is part of Troll Tech's internal development tree for Qt. ** ** This header text will be replaced by an appropriate text by the ** mkdist script which generates external distributions. ** ** If you are using the Qt Professional Edition or the Qt Free Edition, ** please notify Troll Tech at <info@troll.no> if you see this text. ** ** To Troll Tech developers: This header was generated by the script ** fixcopyright-int. It has the same number of text lines as the free ** and professional editions to avoid line number inconsistency. ** *****************************************************************************/ #ifndef QGMANAGER_H #define QGMANAGER_H #ifndef QT_H #include "qintdict.h" #include "qwidget.h" #endif // QT_H class QChain; struct QGManagerData; class Q_EXPORT QGManager : public QObject { Q_OBJECT public: QGManager( QWidget *parent, const char *name=0 ); ~QGManager(); void setBorder( int b ) { border = b; } enum Direction { LeftToRight, RightToLeft, Down, Up }; enum { unlimited = QCOORD_MAX }; QChain *newSerChain( Direction ); // QChain *newSerChain( Direction, int ); QChain *newParChain( Direction ); bool add( QChain *destination, QChain *source, int stretch = 0 ); bool addWidget( QChain *, QWidget *, int stretch = 0 ); bool addSpacing( QChain *, int minSize, int stretch = 0, int maxSize = unlimited ); bool addBranch( QChain *destination, QChain *branch, int fromIndex, int toIndex ); void setStretch( QChain*, int ); bool activate(); void freeze( int w = 0, int h = 0 ); void unFreeze(); QChain *xChain() { return xC; } QChain *yChain() { return yC; } void setMenuBar( QWidget *w ) { menuBar = w; } QWidget *mainWidget() { return main; } void remove( QWidget *w ); void setName( QChain *, const char * ); protected: bool eventFilter( QObject *, QEvent * ); private: int border; void resizeHandle( QWidget *, const QSize & ); void resizeAll(); QChain *xC; QChain *yC; QWidget *main; QWidget *menuBar; int menuBarHeight; QGManagerData *extraData; bool frozen; private: // Disabled copy constructor and operator= #if defined(Q_DISABLE_COPY) QGManager( const QGManager & ); QGManager &operator=( const QGManager & ); #endif }; #endif // QGMANAGER_H
Copyright © 1998 Troll Tech | Trademarks | Qt version 1.41
|