Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
mapviz_plugins::PlaceableWindowProxy Class Reference

#include <placeable_window_proxy.h>

Inheritance diagram for mapviz_plugins::PlaceableWindowProxy:
Inheritance graph
[legend]

Public Slots

void setRect (const QRect &)
 
void setVisible (bool visible)
 

Signals

void rectChanged (const QRect &)
 

Public Member Functions

 PlaceableWindowProxy ()
 
QRect rect () const
 
void setContainer (QWidget *)
 
 ~PlaceableWindowProxy ()
 

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)
 
bool handleMouseMove (QMouseEvent *)
 
bool handleMousePress (QMouseEvent *)
 
bool handleMouseRelease (QMouseEvent *)
 
bool handleResize (QResizeEvent *)
 
void rectResize (int dx, int dy)
 
QRectF resizeHelper (const QRectF &rect, const QPointF &p1, const QPointF &p2, const QPointF &p3) const
 
void timerEvent (QTimerEvent *)
 
void winResize (const QSize &)
 

Private Types

enum  State {
  INACTIVE = 0, MOVE_ALL, MOVE_TOP_LEFT, MOVE_BOTTOM_LEFT,
  MOVE_BOTTOM_RIGHT, MOVE_TOP_RIGHT
}
 

Private Member Functions

State getNextState (const QPointF &pt) const
 

Private Attributes

bool has_cursor_
 
QRectF rect_
 
QPoint start_point_
 
QRectF start_rect_
 
State state_
 
QWidget * target_
 
bool visible_
 
int win_resize_timer_
 

Detailed Description

Definition at line 58 of file placeable_window_proxy.h.

Member Enumeration Documentation

Enumerator
INACTIVE 
MOVE_ALL 
MOVE_TOP_LEFT 
MOVE_BOTTOM_LEFT 
MOVE_BOTTOM_RIGHT 
MOVE_TOP_RIGHT 

Definition at line 98 of file placeable_window_proxy.h.

Constructor & Destructor Documentation

mapviz_plugins::PlaceableWindowProxy::PlaceableWindowProxy ( )

Definition at line 47 of file placeable_window_proxy.cpp.

mapviz_plugins::PlaceableWindowProxy::~PlaceableWindowProxy ( )

Definition at line 57 of file placeable_window_proxy.cpp.

Member Function Documentation

bool mapviz_plugins::PlaceableWindowProxy::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Definition at line 111 of file placeable_window_proxy.cpp.

PlaceableWindowProxy::State mapviz_plugins::PlaceableWindowProxy::getNextState ( const QPointF &  pt) const
private

Definition at line 386 of file placeable_window_proxy.cpp.

bool mapviz_plugins::PlaceableWindowProxy::handleMouseMove ( QMouseEvent *  event)
protected

Definition at line 200 of file placeable_window_proxy.cpp.

bool mapviz_plugins::PlaceableWindowProxy::handleMousePress ( QMouseEvent *  event)
protected

Definition at line 139 of file placeable_window_proxy.cpp.

bool mapviz_plugins::PlaceableWindowProxy::handleMouseRelease ( QMouseEvent *  event)
protected

Definition at line 179 of file placeable_window_proxy.cpp.

bool mapviz_plugins::PlaceableWindowProxy::handleResize ( QResizeEvent *  event)
protected

Definition at line 359 of file placeable_window_proxy.cpp.

QRect mapviz_plugins::PlaceableWindowProxy::rect ( ) const

Definition at line 80 of file placeable_window_proxy.cpp.

void mapviz_plugins::PlaceableWindowProxy::rectChanged ( const QRect &  )
signal
void mapviz_plugins::PlaceableWindowProxy::rectResize ( int  dx,
int  dy 
)
protected

Definition at line 378 of file placeable_window_proxy.cpp.

QRectF mapviz_plugins::PlaceableWindowProxy::resizeHelper ( const QRectF &  rect,
const QPointF &  p1,
const QPointF &  p2,
const QPointF &  p3 
) const
protected

Definition at line 325 of file placeable_window_proxy.cpp.

void mapviz_plugins::PlaceableWindowProxy::setContainer ( QWidget *  target)

Definition at line 65 of file placeable_window_proxy.cpp.

void mapviz_plugins::PlaceableWindowProxy::setRect ( const QRect &  rect)
slot

Definition at line 85 of file placeable_window_proxy.cpp.

void mapviz_plugins::PlaceableWindowProxy::setVisible ( bool  visible)
slot

Definition at line 91 of file placeable_window_proxy.cpp.

void mapviz_plugins::PlaceableWindowProxy::timerEvent ( QTimerEvent *  event)
protected

Definition at line 365 of file placeable_window_proxy.cpp.

void mapviz_plugins::PlaceableWindowProxy::winResize ( const QSize &  size)
protected

Definition at line 382 of file placeable_window_proxy.cpp.

Member Data Documentation

bool mapviz_plugins::PlaceableWindowProxy::has_cursor_
private

Definition at line 110 of file placeable_window_proxy.h.

QRectF mapviz_plugins::PlaceableWindowProxy::rect_
private

Definition at line 112 of file placeable_window_proxy.h.

QPoint mapviz_plugins::PlaceableWindowProxy::start_point_
private

Definition at line 115 of file placeable_window_proxy.h.

QRectF mapviz_plugins::PlaceableWindowProxy::start_rect_
private

Definition at line 114 of file placeable_window_proxy.h.

State mapviz_plugins::PlaceableWindowProxy::state_
private

Definition at line 111 of file placeable_window_proxy.h.

QWidget* mapviz_plugins::PlaceableWindowProxy::target_
private

Definition at line 107 of file placeable_window_proxy.h.

bool mapviz_plugins::PlaceableWindowProxy::visible_
private

Definition at line 108 of file placeable_window_proxy.h.

int mapviz_plugins::PlaceableWindowProxy::win_resize_timer_
private

Definition at line 117 of file placeable_window_proxy.h.


The documentation for this class was generated from the following files:


mapviz_plugins
Author(s): Marc Alban
autogenerated on Fri Mar 19 2021 02:44:32