35 #include <QGraphicsView>
45 namespace graph_widget_constants
138 void conditionalUpdate();
139 void handleIsolationViewAction();
140 void adjustMinScale();
141 void handleAddCommentAction();
143 void handleFoldParentSingle();
144 void handleFoldParentAll();
145 void handleUnfoldSingleAction();
146 void handleUnfoldAllAction();
148 void handleShortestPathToView();
149 void handleQueryShortestPath();
150 void handleSelectOutputs();
151 void handleSelectInputs();
153 void handleAddModuleToView();
154 void handleAddGateToView();
156 void handleAddSuccessorToView();
157 void handleAddPredecessorToView();
158 void handleAddCommonSuccessorToView();
159 void handleAddCommonPredecessorToView();
160 void handleHighlightSuccessor();
161 void handleHighlightPredecessor();
162 void handleSuccessorDistance();
163 void handlePredecessorDistance();
164 void handleCancelPickMode();
165 void handlePluginContextContributionTriggered();
166 void selectedNodeToItem();
188 void updateMatrix(
const int delta);
190 void toggleAntialiasing();
194 void addSuccessorToView(
int maxLevel,
bool succ);
195 void addCommonSuccessorToView(
int maxLevel,
bool succ);
197 void dragPan(
float dpx,
float dpy);
210 LayouterPoint closestLayouterPoint(qreal scene_pos,
int default_spacing,
int min_index,
QVector<qreal> sections)
const;
212 #ifdef GUI_DEBUG_GRID
213 void debugShowLayouterGridpos(
const QPoint& mouse_pos);
214 void debugDrawLayouterGridpos(
QPainter* painter);
216 bool mDebugGridposEnable =
true;
223 bool mMinimapEnabled;
226 bool mGridClustersEnabled;
236 qreal mZoomFactorBase;
242 template <
typename Func1>
243 void recursionLevelMenu(
QMenu* menu,
bool succ, Func1 slot,
bool addUnlimited=
false)
245 QString s = succ ?
"successors" :
"predecessors";
246 const char* txt[] = {
"All %1",
"Depth 1 (direct %1)",
"Depth 2",
247 "Depth 3",
"Depth 4",
"Depth 5",
nullptr};
248 for (
int inx = 1; txt[inx]; inx++)
262 static const QString sAssignToGrouping;
A view to display the rendered graph (needs a GraphicsScene).
void handleRemoveFromView()
void keyPressEvent(QKeyEvent *event) override
void dragLeaveEvent(QDragLeaveEvent *event) override
void setGridType(GraphicsScene::GridType gridType)
void dropEvent(QDropEvent *event) override
void wheelEvent(QWheelEvent *event) override
void setPanModifier(Qt::KeyboardModifier panModifier)
Qt::KeyboardModifier panModifier()
void keyReleaseEvent(QKeyEvent *event) override
void viewportCenterZoom(const qreal factor)
void setDragModifier(Qt::KeyboardModifier dragModifier)
GraphGraphicsView(GraphWidget *parent)
void paintEvent(QPaintEvent *event) override
void moduleDoubleClicked(u32 id)
void mouseMoveEvent(QMouseEvent *event) override
Qt::KeyboardModifier dragModifier()
void resizeEvent(QResizeEvent *event) override
void handleFoldModuleShortcut()
GraphicsScene::GridType gridType()
void dragEnterEvent(QDragEnterEvent *event) override
void triggerTerminatePicker()
void handleShortestPath(u32 idFrom, u32 idTo)
void mouseDoubleClickEvent(QMouseEvent *event) override
void mouseReleaseEvent(QMouseEvent *event) override
void mousePressEvent(QMouseEvent *event) override
void handleUnfoldModuleShortcut()
void drawForeground(QPainter *painter, const QRectF &rect) override
void gentleZoom(const qreal factor)
void dragMoveEvent(QDragMoveEvent *event) override
GraphGraphicsViewNeighborSelector(u32 orig, bool pickSuc, QObject *parent=nullptr)
void handleGatesPicked(const QSet< u32 > &gats) override
Superclass for all graphic items used ins the GraphicsScene. It contains information about the underl...
void setData(const QVariant &userData)
void triggered(bool checked)
virtual bool event(QEvent *event) override
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const const