Qucs-GUI  0.0.19
Public Member Functions | Data Fields | Private Attributes
MouseActions Class Reference

#include <mouseactions.h>

Collaboration diagram for MouseActions:
Collaboration graph
[legend]

Public Member Functions

 MouseActions (QucsApp *)
virtual ~MouseActions ()
void setPainter (Schematic *)
bool pasteElements (Schematic *)
void editElement (Schematic *, QMouseEvent *)
void editLabel (Schematic *, WireLabel *)
void MMoveSelect (Schematic *, QMouseEvent *)
 MouseActions::MMoveSelect Paints a rectangle for select area.
void MMoveElement (Schematic *, QMouseEvent *)
void MMoveWire1 (Schematic *, QMouseEvent *)
 MouseActions::MMoveWire1 Paint hair cross for "insert wire" mode.
void MMoveWire2 (Schematic *, QMouseEvent *)
 MouseActions::MMoveWire2 Paint wire as it is being drawn with mouse.
void MMoveMoving (Schematic *, QMouseEvent *)
void MMoveMoving2 (Schematic *, QMouseEvent *)
void MMovePaste (Schematic *, QMouseEvent *)
 MouseActions::MMovePaste Moves components after paste from clipboard.
void MMoveDelete (Schematic *, QMouseEvent *)
 MouseActions::MMoveDelete Paints a cross under the mouse cursor to show the delete mode.
void MMoveLabel (Schematic *, QMouseEvent *)
 MouseActions::MMoveLabel Paints a label above the mouse cursor for "set wire label".
void MMoveMarker (Schematic *, QMouseEvent *)
 MouseActions::MMoveMarker Paints a triangle above the mouse for "set marker on graph".
void MMoveMirrorY (Schematic *, QMouseEvent *)
 MouseActions::MMoveMirrorX Paints rounded "mirror about y axis" mouse cursor.
void MMoveMirrorX (Schematic *, QMouseEvent *)
 MouseActions::MMoveMirrorX Paints rounded "mirror about x axis" mouse cursor.
void MMoveRotate (Schematic *, QMouseEvent *)
 MouseActions::MMoveMirrorX Paints "rotate" mouse cursor.
void MMoveActivate (Schematic *, QMouseEvent *)
 MouseActions::MMoveActivate Paints a crossed box mouse cursor to "(de)activate" components.
void MMoveOnGrid (Schematic *, QMouseEvent *)
 MouseActions::MMoveOnGrid Paints a grid beside the mouse cursor, put "on grid" mode.
void MMoveResizePainting (Schematic *, QMouseEvent *)
void MMoveMoveText (Schematic *, QMouseEvent *)
 MouseActions::MMoveMoveText Paint rectangle around component text being mouse moved.
void MMoveMoveTextB (Schematic *, QMouseEvent *)
 MouseActions::MMoveMoveTextB Paints mouse symbol for "move component text" mode.
void MMoveZoomIn (Schematic *, QMouseEvent *)
 MouseActions::MMoveZoomIn Paints symbol beside the mouse to show the "Zoom in" modus.
void MMoveScrollBar (Schematic *, QMouseEvent *)
void MPressSelect (Schematic *, QMouseEvent *, float, float)
void MPressDelete (Schematic *, QMouseEvent *, float, float)
void MPressActivate (Schematic *, QMouseEvent *, float, float)
void MPressMirrorX (Schematic *, QMouseEvent *, float, float)
void MPressMirrorY (Schematic *, QMouseEvent *, float, float)
void MPressRotate (Schematic *, QMouseEvent *, float, float)
void MPressElement (Schematic *, QMouseEvent *, float, float)
void MPressLabel (Schematic *, QMouseEvent *, float, float)
void MPressWire1 (Schematic *, QMouseEvent *, float, float)
 MouseActions::MPressWire1 Is called if starting point of wire is pressed.
void MPressWire2 (Schematic *, QMouseEvent *, float, float)
 MouseActions::MPressWire2 Is called if ending point of wire is pressed.
void MPressPainting (Schematic *, QMouseEvent *, float, float)
void MPressMarker (Schematic *, QMouseEvent *, float, float)
void MPressOnGrid (Schematic *, QMouseEvent *, float, float)
void MPressMoveText (Schematic *, QMouseEvent *, float, float)
void MPressZoomIn (Schematic *, QMouseEvent *, float, float)
void MDoubleClickSelect (Schematic *, QMouseEvent *)
void MDoubleClickWire2 (Schematic *, QMouseEvent *)
 MouseActions::MDoubleClickWire2 Double click terminates wire insertion.
void MReleaseSelect (Schematic *, QMouseEvent *)
void MReleaseSelect2 (Schematic *, QMouseEvent *)
void MReleaseActivate (Schematic *, QMouseEvent *)
void MReleaseMoving (Schematic *, QMouseEvent *)
void MReleaseResizeDiagram (Schematic *, QMouseEvent *)
void MReleasePaste (Schematic *, QMouseEvent *)
void MReleaseResizePainting (Schematic *, QMouseEvent *)
void MReleaseMoveText (Schematic *, QMouseEvent *)
void MReleaseZoomIn (Schematic *, QMouseEvent *)
void paintElementsScheme (Schematic *)
void rotateElements (Schematic *, int &, int &)
void moveElements (Schematic *, int &, int &)
void moveElements (Q3PtrList< Element > *, int, int)
void endElementMoving (Schematic *, Q3PtrList< Element > *)
void rightPressMenu (Schematic *, QMouseEvent *, float, float)

Data Fields

bool drawn
ElementselElem
ElementfocusElement
QMouseEvent * focusMEvent
int MAx1
int MAy1
int MAx2
int MAy2
int MAx3
int MAy3
Q3PtrList< ElementmovingElements
int movingRotated
QMenu * ComponentMenu

Private Attributes

bool isMoveEqual
QucsAppApp

Detailed Description

Definition at line 35 of file mouseactions.h.


Constructor & Destructor Documentation

Definition at line 64 of file mouseactions.cpp.

Definition at line 79 of file mouseactions.cpp.


Member Function Documentation

void MouseActions::editElement ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1840 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::editLabel ( Schematic Doc,
WireLabel pl 
)

Definition at line 144 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::endElementMoving ( Schematic Doc,
Q3PtrList< Element > *  movElements 
)

Definition at line 180 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MDoubleClickSelect ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1963 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MDoubleClickWire2 ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MDoubleClickWire2 Double click terminates wire insertion.

Parameters:
Doc
Event

Definition at line 1976 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveActivate ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveActivate Paints a crossed box mouse cursor to "(de)activate" components.

Parameters:
Doc
Event

Definition at line 632 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveDelete ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveDelete Paints a cross under the mouse cursor to show the delete mode.

Parameters:
DocSchematic document
Event

Definition at line 527 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveElement ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 272 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveLabel ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveLabel Paints a label above the mouse cursor for "set wire label".

Parameters:
Doc
Event

Definition at line 543 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveMarker ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveMarker Paints a triangle above the mouse for "set marker on graph".

Parameters:
Doc
Event

Definition at line 565 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveMirrorX ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveMirrorX Paints rounded "mirror about x axis" mouse cursor.

Parameters:
Doc
Event

Definition at line 599 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveMirrorY ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveMirrorX Paints rounded "mirror about y axis" mouse cursor.

Parameters:
Doc
Event

Definition at line 581 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveMoveText ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveMoveText Paint rectangle around component text being mouse moved.

Parameters:
Doc
Event

Definition at line 688 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveMoveTextB ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveMoveTextB Paints mouse symbol for "move component text" mode.

Parameters:
Doc
Event

Definition at line 667 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveMoving ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 393 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveMoving2 ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 446 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveOnGrid ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveOnGrid Paints a grid beside the mouse cursor, put "on grid" mode.

Parameters:
Doc
Event

Definition at line 648 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMovePaste ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMovePaste Moves components after paste from clipboard.

Parameters:
Doc
Event

Definition at line 487 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveResizePainting ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 381 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveRotate ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveMirrorX Paints "rotate" mouse cursor.

Parameters:
Doc
Event

Definition at line 616 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveScrollBar ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 501 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveSelect ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveSelect Paints a rectangle for select area.

Parameters:
Doc
Event

Definition at line 365 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveWire1 ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveWire1 Paint hair cross for "insert wire" mode.

Parameters:
Doc
Event

Definition at line 345 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveWire2 ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveWire2 Paint wire as it is being drawn with mouse.

Parameters:
Doc
Event

Definition at line 320 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MMoveZoomIn ( Schematic Doc,
QMouseEvent *  Event 
)

MouseActions::MMoveZoomIn Paints symbol beside the mouse to show the "Zoom in" modus.

Parameters:
Doc
Event

Definition at line 706 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::moveElements ( Schematic Doc,
int &  x1,
int &  y1 
)

Definition at line 1645 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::moveElements ( Q3PtrList< Element > *  movElements,
int  x,
int  y 
)

Definition at line 235 of file mouseactions.cpp.

Here is the call graph for this function:

void MouseActions::MPressActivate ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 1070 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressDelete ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 1055 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressElement ( Schematic Doc,
QMouseEvent *  Event,
float  ,
float   
)

Definition at line 1185 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressLabel ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 829 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressMarker ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 1409 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressMirrorX ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 1087 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressMirrorY ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 1108 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressMoveText ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 1447 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressOnGrid ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 1426 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressPainting ( Schematic ,
QMouseEvent *  ,
float  ,
float   
)
void MouseActions::MPressRotate ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 1129 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressSelect ( Schematic Doc,
QMouseEvent *  Event,
float  fX,
float  fY 
)

Definition at line 898 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressWire1 ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

MouseActions::MPressWire1 Is called if starting point of wire is pressed.

Parameters:
Doc
fX
fY

Definition at line 1301 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressWire2 ( Schematic Doc,
QMouseEvent *  Event,
float  fX,
float  fY 
)

MouseActions::MPressWire2 Is called if ending point of wire is pressed.

Parameters:
Doc
Event
fX
fY
Todo:
document right mouse button changes the wire corner

Definition at line 1332 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MPressZoomIn ( Schematic Doc,
QMouseEvent *  ,
float  fX,
float  fY 
)

Definition at line 1467 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MReleaseActivate ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1536 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MReleaseMoveText ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1781 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MReleaseMoving ( Schematic Doc,
QMouseEvent *   
)

Definition at line 1554 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MReleasePaste ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1698 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MReleaseResizeDiagram ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1568 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MReleaseResizePainting ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1621 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MReleaseSelect ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1488 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MReleaseSelect2 ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1514 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::MReleaseZoomIn ( Schematic Doc,
QMouseEvent *  Event 
)

Definition at line 1797 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1637 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 99 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::rightPressMenu ( Schematic Doc,
QMouseEvent *  Event,
float  fX,
float  fY 
)
Todo:
"exchange like this"

Definition at line 725 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MouseActions::rotateElements ( Schematic Doc,
int &  x1,
int &  y1 
)

Definition at line 1661 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 86 of file mouseactions.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

Definition at line 59 of file mouseactions.h.

Definition at line 55 of file mouseactions.h.

Definition at line 45 of file mouseactions.h.

Definition at line 47 of file mouseactions.h.

Definition at line 48 of file mouseactions.h.

bool MouseActions::isMoveEqual [private]

Definition at line 58 of file mouseactions.h.

Definition at line 50 of file mouseactions.h.

Definition at line 50 of file mouseactions.h.

Definition at line 50 of file mouseactions.h.

Definition at line 50 of file mouseactions.h.

Definition at line 50 of file mouseactions.h.

Definition at line 50 of file mouseactions.h.

Definition at line 51 of file mouseactions.h.

Definition at line 52 of file mouseactions.h.

Definition at line 46 of file mouseactions.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines