DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <GraphicalClass.hpp>
Public Member Functions | |
GraphicalObject (bool Used, QString ObjectName, GraphicalClass GraphInfo, QGraphicsObject *parent=0) | |
~GraphicalObject () | |
QRectF | boundingRect () const |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
QPainterPath | shape () const |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
Event Handler. | |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
void | dropEvent (QGraphicsSceneDragDropEvent *event) |
void | AddGraphicChildren () |
Graphics. | |
void | ShowGraphicsChildren () |
void | HideGraphicsChildren () |
double | GetExpandedX () const |
double | GetExpandedY () const |
void | SetExpandedX (double dx) |
void | SetExpandedY (double dy) |
void | GetOffsetX (QGraphicsItem *Item, double &Offset) |
Some Api. | |
void | GetOffsetY (QGraphicsItem *Item, double &Offset) |
void | LocateTopMostItem (QGraphicsItem *Auxiliary) |
QString | GetDatabaseClassName () const |
QString | GetDatabaseUidName () const |
Private Attributes | |
GraphicalClass | GraphicalInfo |
QGraphicsPixmapItem * | IconItem |
QGraphicsTextItem * | TextItem |
QString | DatabaseClassName |
QString | DatabaseUidName |
bool | IsExpanded |
bool | IsFetched |
QPointF | StartDrag |
double | expandedX |
double | expandedY |
Definition at line 50 of file GraphicalClass.hpp.
|
explicit |
Definition at line 22 of file GraphicalClass.cpp.
dbe::GraphicalObject::~GraphicalObject | ( | ) |
Definition at line 63 of file GraphicalClass.cpp.
void dbe::GraphicalObject::AddGraphicChildren | ( | ) |
Graphics.
Definition at line 348 of file GraphicalClass.cpp.
QRectF dbe::GraphicalObject::boundingRect | ( | ) | const |
Definition at line 71 of file GraphicalClass.cpp.
void dbe::GraphicalObject::dropEvent | ( | QGraphicsSceneDragDropEvent * | event | ) |
Definition at line 183 of file GraphicalClass.cpp.
QString dbe::GraphicalObject::GetDatabaseClassName | ( | ) | const |
Definition at line 674 of file GraphicalClass.cpp.
QString dbe::GraphicalObject::GetDatabaseUidName | ( | ) | const |
Definition at line 681 of file GraphicalClass.cpp.
double dbe::GraphicalObject::GetExpandedX | ( | ) | const |
Definition at line 688 of file GraphicalClass.cpp.
double dbe::GraphicalObject::GetExpandedY | ( | ) | const |
Definition at line 695 of file GraphicalClass.cpp.
void dbe::GraphicalObject::GetOffsetX | ( | QGraphicsItem * | Item, |
double & | Offset ) |
Some Api.
Definition at line 622 of file GraphicalClass.cpp.
void dbe::GraphicalObject::GetOffsetY | ( | QGraphicsItem * | Item, |
double & | Offset ) |
Definition at line 643 of file GraphicalClass.cpp.
void dbe::GraphicalObject::HideGraphicsChildren | ( | ) |
First change items with the same parent
Now that the items with the same parent are in their final position calculate the OffsetX/OffsetY of this item top level parent item THIS FOR IS EXTREMELY IMPORTANT -> DO NOT TOUCH IT IF YOU TOUCH IT I WILL HUNT YOU FOREVER....AND ONE DAY I WILL CATCH YOU
Now get all the items in the scene
Now get the highest y in the same line as this top level item
Get only top levels items at the same line as this top level item and not equal as this top level item
Now i have the highest offset on the line, distance from the line bottom line Iterating over the top level items to add proper offsetX/offsetY
Definition at line 505 of file GraphicalClass.cpp.
void dbe::GraphicalObject::LocateTopMostItem | ( | QGraphicsItem * | Auxiliary | ) |
Definition at line 664 of file GraphicalClass.cpp.
void dbe::GraphicalObject::mouseDoubleClickEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Event Handler.
Definition at line 117 of file GraphicalClass.cpp.
void dbe::GraphicalObject::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 149 of file GraphicalClass.cpp.
void dbe::GraphicalObject::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 139 of file GraphicalClass.cpp.
void dbe::GraphicalObject::paint | ( | QPainter * | painter, |
const QStyleOptionGraphicsItem * | option, | ||
QWidget * | widget ) |
Definition at line 89 of file GraphicalClass.cpp.
void dbe::GraphicalObject::SetExpandedX | ( | double | dx | ) |
Definition at line 702 of file GraphicalClass.cpp.
void dbe::GraphicalObject::SetExpandedY | ( | double | dy | ) |
Definition at line 709 of file GraphicalClass.cpp.
QPainterPath dbe::GraphicalObject::shape | ( | ) | const |
Definition at line 108 of file GraphicalClass.cpp.
void dbe::GraphicalObject::ShowGraphicsChildren | ( | ) |
First change items with the same parent
Now that the items with the same parent are in their final position calculate the OffsetX/OffsetY of this item top level parent item
Now get all the items in the scene
Now get the highest y in the same line as this top level item
Get only top levels items at the same line as this top level item and not equal as this top level item
Now i have the highest offset on the line, distance from the line bottom line Iterating over the top level items to add proper offsetX/offsetY
Definition at line 388 of file GraphicalClass.cpp.
|
private |
Definition at line 84 of file GraphicalClass.hpp.
|
private |
Definition at line 85 of file GraphicalClass.hpp.
|
private |
Definition at line 89 of file GraphicalClass.hpp.
|
private |
Definition at line 90 of file GraphicalClass.hpp.
|
private |
Definition at line 81 of file GraphicalClass.hpp.
|
private |
Definition at line 82 of file GraphicalClass.hpp.
|
private |
Definition at line 86 of file GraphicalClass.hpp.
|
private |
Definition at line 87 of file GraphicalClass.hpp.
|
private |
Definition at line 88 of file GraphicalClass.hpp.
|
private |
Definition at line 83 of file GraphicalClass.hpp.