* Use menu action "Edit -> Find in View" or Ctrl + D * UI displayed as search bar at bottom of main window * Hide search bar with ECS or close button * Entering a query searches in name of graph nodes and code contents of code view * Use Enter to iterate through matches, well move match into view in graph and code view * Checkboxes allow for adding/removing results for certain views * Create Bookmark shortcut is now CTRL + S bug id = 79
44 lines
1.0 KiB
C++
44 lines
1.0 KiB
C++
#ifndef QT_GRAPH_NODE_QUALIFIER_H
|
|
#define QT_GRAPH_NODE_QUALIFIER_H
|
|
|
|
#include <QGraphicsPolygonItem>
|
|
#include <QGraphicsRectItem>
|
|
|
|
#include "qt/view/graphElements/QtGraphNode.h"
|
|
|
|
class QtGraphNodeQualifier
|
|
: public QtGraphNode
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QtGraphNodeQualifier(const NameHierarchy& name);
|
|
virtual ~QtGraphNodeQualifier();
|
|
|
|
// QtGraphNode implementation
|
|
virtual bool isQualifierNode() const;
|
|
|
|
virtual bool setPosition(const Vec2i& pos);
|
|
|
|
virtual void onClick();
|
|
virtual void updateStyle();
|
|
|
|
protected:
|
|
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event);
|
|
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event);
|
|
|
|
virtual void matchName(const std::string& query, std::vector<QtGraphNode*>* matchedNodes) {}
|
|
|
|
private:
|
|
const NameHierarchy m_qualifierName;
|
|
|
|
QGraphicsRectItem* m_background;
|
|
QGraphicsRectItem* m_leftBorder;
|
|
QGraphicsPolygonItem* m_rightArrow;
|
|
QGraphicsPolygonItem* m_rightArrowSmall;
|
|
QGraphicsSimpleTextItem* m_name;
|
|
|
|
Vec2i m_pos;
|
|
};
|
|
|
|
#endif // QT_GRAPH_NODE_QUALIFIER_H
|