* 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
37 lines
749 B
C++
37 lines
749 B
C++
#ifndef QT_GRAPH_NODE_ACCESS_H
|
|
#define QT_GRAPH_NODE_ACCESS_H
|
|
|
|
#include "qt/view/graphElements/QtGraphNode.h"
|
|
|
|
#include "data/parser/AccessKind.h"
|
|
|
|
class QtGraphNodeAccess
|
|
: public QtGraphNode
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QtGraphNodeAccess(AccessKind accessKind);
|
|
virtual ~QtGraphNodeAccess();
|
|
|
|
AccessKind getAccessKind() const;
|
|
|
|
// QtGraphNode implementation
|
|
virtual bool isAccessNode() const;
|
|
|
|
virtual void addSubNode(const std::shared_ptr<QtGraphNode>& node);
|
|
virtual void updateStyle();
|
|
|
|
void hideLabel();
|
|
|
|
protected:
|
|
virtual void matchName(const std::string& query, std::vector<QtGraphNode*>* matchedNodes) {}
|
|
|
|
private:
|
|
AccessKind m_accessKind;
|
|
|
|
QGraphicsPixmapItem* m_accessIcon;
|
|
int m_accessIconSize;
|
|
};
|
|
|
|
#endif // QT_GRAPH_NODE_ACCESS_H
|