Qucs-GUI
0.0.18
|
#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. More... | |
void | MMoveElement (Schematic *, QMouseEvent *) |
void | MMoveWire1 (Schematic *, QMouseEvent *) |
MouseActions::MMoveWire1 Paint hair cross for "insert wire" mode. More... | |
void | MMoveWire2 (Schematic *, QMouseEvent *) |
MouseActions::MMoveWire2 Paint wire as it is being drawn with mouse. More... | |
void | MMoveMoving (Schematic *, QMouseEvent *) |
void | MMoveMoving2 (Schematic *, QMouseEvent *) |
void | MMovePaste (Schematic *, QMouseEvent *) |
MouseActions::MMovePaste Moves components after paste from clipboard. More... | |
void | MMoveDelete (Schematic *, QMouseEvent *) |
MouseActions::MMoveDelete Paints a cross under the mouse cursor to show the delete mode. More... | |
void | MMoveLabel (Schematic *, QMouseEvent *) |
MouseActions::MMoveLabel Paints a label above the mouse cursor for "set wire label". More... | |
void | MMoveMarker (Schematic *, QMouseEvent *) |
MouseActions::MMoveMarker Paints a triangle above the mouse for "set marker on graph". More... | |
void | MMoveMirrorY (Schematic *, QMouseEvent *) |
MouseActions::MMoveMirrorX Paints rounded "mirror about y axis" mouse cursor. More... | |
void | MMoveMirrorX (Schematic *, QMouseEvent *) |
MouseActions::MMoveMirrorX Paints rounded "mirror about x axis" mouse cursor. More... | |
void | MMoveRotate (Schematic *, QMouseEvent *) |
MouseActions::MMoveMirrorX Paints "rotate" mouse cursor. More... | |
void | MMoveActivate (Schematic *, QMouseEvent *) |
MouseActions::MMoveActivate Paints a crossed box mouse cursor to "(de)activate" components. More... | |
void | MMoveOnGrid (Schematic *, QMouseEvent *) |
MouseActions::MMoveOnGrid Paints a grid beside the mouse cursor, put "on grid" mode. More... | |
void | MMoveResizePainting (Schematic *, QMouseEvent *) |
void | MMoveMoveText (Schematic *, QMouseEvent *) |
MouseActions::MMoveMoveText Paint rectangle around component text being mouse moved. More... | |
void | MMoveMoveTextB (Schematic *, QMouseEvent *) |
MouseActions::MMoveMoveTextB Paints mouse symbol for "move component text" mode. More... | |
void | MMoveZoomIn (Schematic *, QMouseEvent *) |
MouseActions::MMoveZoomIn Paints symbol beside the mouse to show the "Zoom in" modus. More... | |
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. More... | |
void | MPressWire2 (Schematic *, QMouseEvent *, float, float) |
MouseActions::MPressWire2 Is called if ending point of wire is pressed. More... | |
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. More... | |
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 |
Q3PopupMenu * | ComponentMenu |
Private Attributes | |
bool | isMoveEqual |
QucsApp * | App |
Definition at line 39 of file mouseactions.h.
MouseActions::MouseActions | ( | QucsApp * | App_ | ) |
Definition at line 65 of file mouseactions.cpp.
|
virtual |
Definition at line 80 of file mouseactions.cpp.
void MouseActions::editElement | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1838 of file mouseactions.cpp.
Definition at line 145 of file mouseactions.cpp.
Definition at line 181 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 633 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 528 of file mouseactions.cpp.
void MouseActions::MMoveElement | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 273 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 544 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 566 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 600 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 582 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 689 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 668 of file mouseactions.cpp.
void MouseActions::MMoveMoving | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 394 of file mouseactions.cpp.
void MouseActions::MMoveMoving2 | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 447 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 649 of file mouseactions.cpp.
void MouseActions::MMovePaste | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMovePaste Moves components after paste from clipboard.
Doc | |
Event |
Definition at line 488 of file mouseactions.cpp.
void MouseActions::MMoveResizePainting | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 382 of file mouseactions.cpp.
void MouseActions::MMoveRotate | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveMirrorX Paints "rotate" mouse cursor.
Doc | |
Event |
Definition at line 617 of file mouseactions.cpp.
void MouseActions::MMoveScrollBar | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 502 of file mouseactions.cpp.
void MouseActions::MMoveSelect | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
MouseActions::MMoveSelect Paints a rectangle for select area.
Doc | |
Event |
Definition at line 366 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 346 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 321 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 707 of file mouseactions.cpp.
void MouseActions::moveElements | ( | Schematic * | Doc, |
int & | x1, | ||
int & | y1 | ||
) |
Definition at line 1644 of file mouseactions.cpp.
void MouseActions::moveElements | ( | Q3PtrList< Element > * | movElements, |
int | x, | ||
int | y | ||
) |
Definition at line 236 of file mouseactions.cpp.
void MouseActions::MPressActivate | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1068 of file mouseactions.cpp.
void MouseActions::MPressDelete | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1053 of file mouseactions.cpp.
void MouseActions::MPressElement | ( | Schematic * | Doc, |
QMouseEvent * | Event, | ||
float | , | ||
float | |||
) |
Definition at line 1183 of file mouseactions.cpp.
void MouseActions::MPressLabel | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 827 of file mouseactions.cpp.
void MouseActions::MPressMarker | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1408 of file mouseactions.cpp.
void MouseActions::MPressMirrorX | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1085 of file mouseactions.cpp.
void MouseActions::MPressMirrorY | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1106 of file mouseactions.cpp.
void MouseActions::MPressMoveText | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1445 of file mouseactions.cpp.
void MouseActions::MPressOnGrid | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1424 of file mouseactions.cpp.
void MouseActions::MPressPainting | ( | Schematic * | , |
QMouseEvent * | , | ||
float | , | ||
float | |||
) |
void MouseActions::MPressRotate | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1127 of file mouseactions.cpp.
void MouseActions::MPressSelect | ( | Schematic * | Doc, |
QMouseEvent * | Event, | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 896 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 1300 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 1331 of file mouseactions.cpp.
void MouseActions::MPressZoomIn | ( | Schematic * | Doc, |
QMouseEvent * | , | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 1465 of file mouseactions.cpp.
void MouseActions::MReleaseActivate | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1535 of file mouseactions.cpp.
void MouseActions::MReleaseMoveText | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1780 of file mouseactions.cpp.
void MouseActions::MReleaseMoving | ( | Schematic * | Doc, |
QMouseEvent * | |||
) |
Definition at line 1553 of file mouseactions.cpp.
void MouseActions::MReleasePaste | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1697 of file mouseactions.cpp.
void MouseActions::MReleaseResizeDiagram | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1567 of file mouseactions.cpp.
void MouseActions::MReleaseResizePainting | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1620 of file mouseactions.cpp.
void MouseActions::MReleaseSelect | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1487 of file mouseactions.cpp.
void MouseActions::MReleaseSelect2 | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1513 of file mouseactions.cpp.
void MouseActions::MReleaseZoomIn | ( | Schematic * | Doc, |
QMouseEvent * | Event | ||
) |
Definition at line 1796 of file mouseactions.cpp.
void MouseActions::paintElementsScheme | ( | Schematic * | p | ) |
Definition at line 1636 of file mouseactions.cpp.
bool MouseActions::pasteElements | ( | Schematic * | Doc | ) |
Definition at line 100 of file mouseactions.cpp.
void MouseActions::rightPressMenu | ( | Schematic * | Doc, |
QMouseEvent * | Event, | ||
float | fX, | ||
float | fY | ||
) |
Definition at line 726 of file mouseactions.cpp.
void MouseActions::rotateElements | ( | Schematic * | Doc, |
int & | x1, | ||
int & | y1 | ||
) |
Definition at line 1660 of file mouseactions.cpp.
void MouseActions::setPainter | ( | Schematic * | Doc | ) |
Definition at line 87 of file mouseactions.cpp.
|
private |
Definition at line 63 of file mouseactions.h.
Q3PopupMenu* MouseActions::ComponentMenu |
Definition at line 59 of file mouseactions.h.
bool MouseActions::drawn |
Definition at line 49 of file mouseactions.h.
Element* MouseActions::focusElement |
Definition at line 51 of file mouseactions.h.
QMouseEvent* MouseActions::focusMEvent |
Definition at line 52 of file mouseactions.h.
|
private |
Definition at line 62 of file mouseactions.h.
int MouseActions::MAx1 |
Definition at line 54 of file mouseactions.h.
int MouseActions::MAx2 |
Definition at line 54 of file mouseactions.h.
int MouseActions::MAx3 |
Definition at line 54 of file mouseactions.h.
int MouseActions::MAy1 |
Definition at line 54 of file mouseactions.h.
int MouseActions::MAy2 |
Definition at line 54 of file mouseactions.h.
int MouseActions::MAy3 |
Definition at line 54 of file mouseactions.h.
Q3PtrList<Element> MouseActions::movingElements |
Definition at line 55 of file mouseactions.h.
int MouseActions::movingRotated |
Definition at line 56 of file mouseactions.h.
Element* MouseActions::selElem |
Definition at line 50 of file mouseactions.h.