Qucs-GUI
0.0.19
|
#include <mouseactions.h>
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 |
Element * | selElem |
Element * | focusElement |
QMouseEvent * | focusMEvent |
int | MAx1 |
int | MAy1 |
int | MAx2 |
int | MAy2 |
int | MAx3 |
int | MAy3 |
Q3PtrList< Element > | movingElements |
int | movingRotated |
QMenu * | ComponentMenu |
Private Attributes | |
bool | isMoveEqual |
QucsApp * | App |
Definition at line 35 of file mouseactions.h.
MouseActions::MouseActions | ( | QucsApp * | App_ | ) |
Definition at line 64 of file mouseactions.cpp.
MouseActions::~MouseActions | ( | ) | [virtual] |
Definition at line 79 of file mouseactions.cpp.
void MouseActions::editElement | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1840 of file mouseactions.cpp.
void MouseActions::editLabel | ( | Schematic * | Doc, |
WireLabel * | pl | ||
) |
Definition at line 144 of file mouseactions.cpp.
void MouseActions::endElementMoving | ( | Schematic * | Doc, |
Q3PtrList< Element > * | movElements | ||
) |
Definition at line 180 of file mouseactions.cpp.
void MouseActions::MDoubleClickSelect | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1963 of file mouseactions.cpp.
void MouseActions::MDoubleClickWire2 | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MDoubleClickWire2 Double click terminates wire insertion.
Doc | |
Event |
Definition at line 1976 of file mouseactions.cpp.
void MouseActions::MMoveActivate | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveActivate Paints a crossed box mouse cursor to "(de)activate" components.
Doc | |
Event |
Definition at line 632 of file mouseactions.cpp.
void MouseActions::MMoveDelete | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveDelete Paints a cross under the mouse cursor to show the delete mode.
Doc | Schematic document |
Event |
Definition at line 527 of file mouseactions.cpp.
void MouseActions::MMoveElement | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 272 of file mouseactions.cpp.
void MouseActions::MMoveLabel | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveLabel Paints a label above the mouse cursor for "set wire label".
Doc | |
Event |
Definition at line 543 of file mouseactions.cpp.
void MouseActions::MMoveMarker | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveMarker Paints a triangle above the mouse for "set marker on graph".
Doc | |
Event |
Definition at line 565 of file mouseactions.cpp.
void MouseActions::MMoveMirrorX | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveMirrorX Paints rounded "mirror about x axis" mouse cursor.
Doc | |
Event |
Definition at line 599 of file mouseactions.cpp.
void MouseActions::MMoveMirrorY | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveMirrorX Paints rounded "mirror about y axis" mouse cursor.
Doc | |
Event |
Definition at line 581 of file mouseactions.cpp.
void MouseActions::MMoveMoveText | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveMoveText Paint rectangle around component text being mouse moved.
Doc | |
Event |
Definition at line 688 of file mouseactions.cpp.
void MouseActions::MMoveMoveTextB | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveMoveTextB Paints mouse symbol for "move component text" mode.
Doc | |
Event |
Definition at line 667 of file mouseactions.cpp.
void MouseActions::MMoveMoving | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 393 of file mouseactions.cpp.
void MouseActions::MMoveMoving2 | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 446 of file mouseactions.cpp.
void MouseActions::MMoveOnGrid | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveOnGrid Paints a grid beside the mouse cursor, put "on grid" mode.
Doc | |
Event |
Definition at line 648 of file mouseactions.cpp.
void MouseActions::MMovePaste | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMovePaste Moves components after paste from clipboard.
Doc | |
Event |
Definition at line 487 of file mouseactions.cpp.
void MouseActions::MMoveResizePainting | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 381 of file mouseactions.cpp.
void MouseActions::MMoveRotate | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveMirrorX Paints "rotate" mouse cursor.
Doc | |
Event |
Definition at line 616 of file mouseactions.cpp.
void MouseActions::MMoveScrollBar | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 501 of file mouseactions.cpp.
void MouseActions::MMoveSelect | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveSelect Paints a rectangle for select area.
Doc | |
Event |
Definition at line 365 of file mouseactions.cpp.
void MouseActions::MMoveWire1 | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveWire1 Paint hair cross for "insert wire" mode.
Doc | |
Event |
Definition at line 345 of file mouseactions.cpp.
void MouseActions::MMoveWire2 | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveWire2 Paint wire as it is being drawn with mouse.
Doc | |
Event |
Definition at line 320 of file mouseactions.cpp.
void MouseActions::MMoveZoomIn | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveZoomIn Paints symbol beside the mouse to show the "Zoom in" modus.
Doc | |
Event |
Definition at line 706 of file mouseactions.cpp.
void MouseActions::moveElements | ( | Schematic * | Doc, |
int & | x1, | ||
int & | y1 | ||
) |
Definition at line 1645 of file mouseactions.cpp.
void MouseActions::moveElements | ( | Q3PtrList< Element > * | movElements, |
int | x, | ||
int | y | ||
) |
void MouseActions::MPressActivate | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1070 of file mouseactions.cpp.
void MouseActions::MPressDelete | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1055 of file mouseactions.cpp.
void MouseActions::MPressElement | ( | Schematic * | Doc, |
QMouseEvent * | Event, | ||
float | , | ||
float | |||
) |
Definition at line 1185 of file mouseactions.cpp.
void MouseActions::MPressLabel | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 829 of file mouseactions.cpp.
void MouseActions::MPressMarker | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1409 of file mouseactions.cpp.
void MouseActions::MPressMirrorX | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1087 of file mouseactions.cpp.
void MouseActions::MPressMirrorY | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1108 of file mouseactions.cpp.
void MouseActions::MPressMoveText | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1447 of file mouseactions.cpp.
void MouseActions::MPressOnGrid | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1426 of file mouseactions.cpp.
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.
void MouseActions::MPressSelect | ( | Schematic * | Doc, |
QMouseEvent * | Event, | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 898 of file mouseactions.cpp.
void MouseActions::MPressWire1 | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
MouseActions::MPressWire1 Is called if starting point of wire is pressed.
Doc | |
fX | |
fY |
Definition at line 1301 of file mouseactions.cpp.
void MouseActions::MPressWire2 | ( | Schematic * | Doc, |
QMouseEvent * | Event, | ||
float | fX, | ||
float | fY | ||
) |
MouseActions::MPressWire2 Is called if ending point of wire is pressed.
Doc | |
Event | |
fX | |
fY |
Definition at line 1332 of file mouseactions.cpp.
void MouseActions::MPressZoomIn | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1467 of file mouseactions.cpp.
void MouseActions::MReleaseActivate | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1536 of file mouseactions.cpp.
void MouseActions::MReleaseMoveText | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1781 of file mouseactions.cpp.
void MouseActions::MReleaseMoving | ( | Schematic * | Doc, |
QMouseEvent * | |||
) |
Definition at line 1554 of file mouseactions.cpp.
void MouseActions::MReleasePaste | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1698 of file mouseactions.cpp.
void MouseActions::MReleaseResizeDiagram | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1568 of file mouseactions.cpp.
void MouseActions::MReleaseResizePainting | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1621 of file mouseactions.cpp.
void MouseActions::MReleaseSelect | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1488 of file mouseactions.cpp.
void MouseActions::MReleaseSelect2 | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1514 of file mouseactions.cpp.
void MouseActions::MReleaseZoomIn | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1797 of file mouseactions.cpp.
void MouseActions::paintElementsScheme | ( | Schematic * | p | ) |
Definition at line 1637 of file mouseactions.cpp.
bool MouseActions::pasteElements | ( | Schematic * | Doc | ) |
Definition at line 99 of file mouseactions.cpp.
void MouseActions::rightPressMenu | ( | Schematic * | Doc, |
QMouseEvent * | Event, | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 725 of file mouseactions.cpp.
void MouseActions::rotateElements | ( | Schematic * | Doc, |
int & | x1, | ||
int & | y1 | ||
) |
Definition at line 1661 of file mouseactions.cpp.
void MouseActions::setPainter | ( | Schematic * | Doc | ) |
Definition at line 86 of file mouseactions.cpp.
QucsApp* MouseActions::App [private] |
Definition at line 59 of file mouseactions.h.
QMenu* MouseActions::ComponentMenu |
Definition at line 55 of file mouseactions.h.
bool MouseActions::drawn |
Definition at line 45 of file mouseactions.h.
Definition at line 47 of file mouseactions.h.
QMouseEvent* MouseActions::focusMEvent |
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.
Q3PtrList<Element> MouseActions::movingElements |
Definition at line 51 of file mouseactions.h.
Definition at line 52 of file mouseactions.h.
Definition at line 46 of file mouseactions.h.