Class overview   Alphabetical list   Annotated list   Header Files   Member List  

SizeSlab Class Reference


Slab used as a handle by PlaceHolder class to resize or move a Widget More...

#include <placehld.h>

List of all member functions.

Public Members

Signals

Protected Members

Private Members


Detailed Description

Slab used as a handle by PlaceHolder class to resize or move a Widget

A SizeSlab emits signals when the mouse button is pressed on it and it is dragged. The displacement from the point where the mouse was pressed is emitted with each mouseMoveEvent which is received. When the mouse button is released, another signal is sent.


Member Function Documentation

SizeSlab::SizeSlab(QWidget *parent, char *name)

Creates a new SizeSlab with a size of 6 x 6 pixels and a black background.

SizeSlab::~SizeSlab()

Destoy a SizeSlab.

void SizeSlab::displace(const QPoint &delta) [signal]

This signal is emitted when the mouse is dragged while it was pressed down in this SizeSlab. It reports the displacement from the point where the mouse button was pressed.

void SizeSlab::released() [signal]

This signal is emitted when the mouse button is released after dragging.

void SizeSlab::mousePressEvent(QMouseEvent *ev) [protected]

Handles mouse press events. The _dragging flag is set and the point where the mouse button was pressed down is remembered.

void SizeSlab::mouseReleaseEvent(QMouseEvent *) [protected]

Handles mouse release events. The _dragging flag is reset and the released() signal is emitted.

void SizeSlab::mouseMoveEvent(QMouseEvent *ev) [protected]

Handles mouse move events. If the user is dragging the mouse, the displacement relative to the point where the mouse was pressed is emitted through the displace(const QPoint &) signal.


Member Variable Documentation

bool SizeSlab::_dragging [private]

Flag that indicated mouse dragging

QPoint SizeSlab::_startPoint [private]

The start point of mouse dragging


This file was generated from the following files:
Generated at 14:38, 1998/04/17 for Ebuilder by doxygen  written by Dimitri van Heesch, © 1997-1998