RectangularOverlay Class Reference

#include <resizeoverlay.h>

Inheritance diagram for RectangularOverlay:

Inheritance graph
[legend]
Collaboration diagram for RectangularOverlay:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotUpdateResizeHandles ()

Public Member Functions

 RectangularOverlay (Item *item, int xsnap=1, int ysnap=1)
void removeTopMiddle ()
void removeBotMiddle ()
QRect getSizeRect (bool *ok=0, bool *widthOk=0, bool *heightOk=0) const
virtual bool isValidXPos (ResizeHandle *rh)
virtual bool isValidYPos (ResizeHandle *rh)

Protected Slots

virtual void slotResizeHandleMoved (int id, double dx, double dy)

Protected Attributes

ResizeHandlem_tl
ResizeHandlem_tm
ResizeHandlem_tr
ResizeHandlem_mr
ResizeHandlem_br
ResizeHandlem_bm
ResizeHandlem_bl
ResizeHandlem_ml

Detailed Description

Author:
David Saxton

Definition at line 219 of file resizeoverlay.h.


Member Function Documentation

QRect RectangularOverlay::getSizeRect ( bool *  ok = 0,
bool *  widthOk = 0,
bool *  heightOk = 0 
) const

Get the size rectangle from the position of the handles. If the size is invalid (e.g. the parent Item does not consider it a valid size, then *ok is set to false; otherwise to true.

Returns:
the sizerect, regardless of whether or not it is valid

Definition at line 331 of file resizeoverlay.cpp.

References m_br, m_tl, Item::minimumSize(), and ResizeOverlay::p_item.

Referenced by isValidXPos(), isValidYPos(), and slotResizeHandleMoved().

bool RectangularOverlay::isValidXPos ( ResizeHandle rh  )  [virtual]

Reinherit this function to determine whether the X coordinate of the spot that the resize handle has moved into is valid or not

Reimplemented from ResizeOverlay.

Definition at line 297 of file resizeoverlay.cpp.

References getSizeRect().

bool RectangularOverlay::isValidYPos ( ResizeHandle rh  )  [virtual]

Reinherit this function to determine whether the Y coordinate of the spot that the resize handle has moved into is valid or not

Reimplemented from ResizeOverlay.

Definition at line 306 of file resizeoverlay.cpp.

References getSizeRect().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:57 2007 for KTechLab by  doxygen 1.5.1