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

◆ State

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

◆ PlaceableWindowProxy()

mapviz_plugins::PlaceableWindowProxy::PlaceableWindowProxy ( )

Definition at line 47 of file placeable_window_proxy.cpp.

◆ ~PlaceableWindowProxy()

mapviz_plugins::PlaceableWindowProxy::~PlaceableWindowProxy ( )

Definition at line 57 of file placeable_window_proxy.cpp.

Member Function Documentation

◆ eventFilter()

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

Definition at line 111 of file placeable_window_proxy.cpp.

◆ getNextState()

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

Definition at line 386 of file placeable_window_proxy.cpp.

◆ handleMouseMove()

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

Definition at line 200 of file placeable_window_proxy.cpp.

◆ handleMousePress()

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

Definition at line 139 of file placeable_window_proxy.cpp.

◆ handleMouseRelease()

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

Definition at line 179 of file placeable_window_proxy.cpp.

◆ handleResize()

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

Definition at line 359 of file placeable_window_proxy.cpp.

◆ rect()

QRect mapviz_plugins::PlaceableWindowProxy::rect ( ) const

Definition at line 80 of file placeable_window_proxy.cpp.

◆ rectChanged

void mapviz_plugins::PlaceableWindowProxy::rectChanged ( const QRect &  )
signal

◆ rectResize()

void mapviz_plugins::PlaceableWindowProxy::rectResize ( int  dx,
int  dy 
)
protected

Definition at line 378 of file placeable_window_proxy.cpp.

◆ resizeHelper()

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.

◆ setContainer()

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

Definition at line 65 of file placeable_window_proxy.cpp.

◆ setRect

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

Definition at line 85 of file placeable_window_proxy.cpp.

◆ setVisible

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

Definition at line 91 of file placeable_window_proxy.cpp.

◆ timerEvent()

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

Definition at line 365 of file placeable_window_proxy.cpp.

◆ winResize()

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

Definition at line 382 of file placeable_window_proxy.cpp.

Member Data Documentation

◆ has_cursor_

bool mapviz_plugins::PlaceableWindowProxy::has_cursor_
private

Definition at line 110 of file placeable_window_proxy.h.

◆ rect_

QRectF mapviz_plugins::PlaceableWindowProxy::rect_
private

Definition at line 112 of file placeable_window_proxy.h.

◆ start_point_

QPoint mapviz_plugins::PlaceableWindowProxy::start_point_
private

Definition at line 115 of file placeable_window_proxy.h.

◆ start_rect_

QRectF mapviz_plugins::PlaceableWindowProxy::start_rect_
private

Definition at line 114 of file placeable_window_proxy.h.

◆ state_

State mapviz_plugins::PlaceableWindowProxy::state_
private

Definition at line 111 of file placeable_window_proxy.h.

◆ target_

QWidget* mapviz_plugins::PlaceableWindowProxy::target_
private

Definition at line 107 of file placeable_window_proxy.h.

◆ visible_

bool mapviz_plugins::PlaceableWindowProxy::visible_
private

Definition at line 108 of file placeable_window_proxy.h.

◆ win_resize_timer_

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 Sun Sep 8 2024 02:27:14