Class overview   Alphabetical list   Annotated list   Header Files   Member List  

This is the verbatim text of the placehld.h include file.
#ifndef PlaceHolder_included
#define PlaceHolder_included

#include <qobject.h>
#include <qwidget.h>


class SizeSlab: public QWidget
{
  Q_OBJECT
  public:
    SizeSlab(QWidget *parent=0, char *name=0);
    ~SizeSlab();
  signals:
    void displace(const QPoint &delta);
    void released();
  protected:
    void mousePressEvent(QMouseEvent *);
    void mouseReleaseEvent(QMouseEvent *);
    void mouseMoveEvent(QMouseEvent *);
  private:
    bool _dragging;
    QPoint _startPoint;
};


class PlaceHolder: public QObject
{
  Q_OBJECT
  public:
    PlaceHolder(QWidget *parent=0, char *name=0);
    ~PlaceHolder();
    void hide();
    void show();
    bool isVisible();
    void setTarget(QWidget *target);
    QWidget *getTarget();
    void setGrid(int x, int y) {_gridx = x; _gridy = y;}
  public slots:
    void topLeftDisplace(const QPoint &delta);
    void topRightDisplace(const QPoint &delta);
    void bottomLeftDisplace(const QPoint &delta);
    void bottomRightDisplace(const QPoint &delta);
    void centerDisplace(const QPoint &delta);
    void displaceDone();
  protected:
    void placeSlabs();
  private:
    SizeSlab *_topLeft;
    SizeSlab *_topRight;
    SizeSlab *_bottomLeft;
    SizeSlab *_bottomRight;
    SizeSlab *_center;

    QWidget *_target;
    int _gridx;
    int _gridy;
};

#endif

Generated at 14:38, 1998/04/17 for Ebuilder by doxygen  written by Dimitri van Heesch, © 1997-1998