This is the verbatim text of the qgmanagr.h include file. It is is provided only for illustration; the copyright remains with Troll Tech


/****************************************************************************
** $Id: qgmanagr.h,v 2.6 1997/09/19 15:03:33 paul Exp $
**
** Definition of QGManager class (workhorse for QLayout classes)
**
** Created : 960406
**
** Copyright (C) 1996-1997 by Troll Tech AS.  All rights reserved.
**
*****************************************************************************/

#ifndef QGMANAGR_H
#define QGMANAGR_H

#include "qintdict.h"
#include "qwidget.h"


class QChain;
struct QGManagerData;

class 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 *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 );

    QChain *xChain() {  return xC; }
    QChain *yChain() {  return yC; }

    void  setMenuBar( QWidget *w ) { menuBar = w; }

    QWidget *mainWidget() { return main; }

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=
    QGManager( const QGManager & ) {}
    QGManager &operator=( const QGManager & ) { return *this; }
};


#endif // QGMANAGR_H


Generated at 13:30, 1998/01/15 for Qt version 1.32 by the webmaster at Troll Tech