Home
last modified time | relevance | path

Searched refs:qan (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/dports/graphics/quickqanava/QuickQanava-ab88d77ec62175b9fd499a154ffaf92f7bf23989/src/
H A DqanGraph.h60 namespace qan { // ::qan
422 void nodeGrouped(qan::Node* node, qan::Group* group);
424 void nodeUngrouped(qan::Node* node, qan::Group* group);
449 …virtual qan::Edge* insertEdge(qan::Node* source, qan::Node* destination, QQmlComponent* edgeC…
458 …Q_INVOKABLE void bindEdge(qan::Edge* edge, qan::PortItem* outPort, qan::PortItem* inPort) n…
485qan::Edge* insertEdge(qan::Node& src, qan::Node* dstNode, QQmlComponent* edgeComponen…
492 qan::Node& src, qan::Node* dstNode);
495 qan::Edge* insertNonVisualEdge(qan::Node& src, qan::Node* dstNode);
505 Q_INVOKABLE bool hasEdge(qan::Node* source, qan::Node* destination) const;
792 Q_INVOKABLE qan::PortItem* insertPort(qan::Node* node,
[all …]
H A DQuickQanava.h77 qmlRegisterType<qan::Node>("QuickQanava", 2, 0, "AbstractNode"); in initialize()
83 qmlRegisterType<qan::NodeItem>("QuickQanava", 2, 0, "NodeItem"); in initialize()
84 qmlRegisterType<qan::PortItem>("QuickQanava", 2, 0, "PortItem"); in initialize()
85 qmlRegisterType<qan::Edge>("QuickQanava", 2, 0, "AbstractEdge"); in initialize()
86 qmlRegisterType<qan::EdgeItem>("QuickQanava", 2, 0, "EdgeItem"); in initialize()
87 qmlRegisterType<qan::Group>("QuickQanava", 2, 0, "AbstractGroup"); in initialize()
88 qmlRegisterType<qan::GroupItem>("QuickQanava", 2, 0, "GroupItem"); in initialize()
91 qmlRegisterType<qan::Graph>("QuickQanava", 2, 0, "Graph"); in initialize()
96 qmlRegisterType<qan::Grid>("QuickQanava", 2, 0, "AbstractGrid"); in initialize()
101 qmlRegisterType<qan::Style>("QuickQanava", 2, 0, "Style"); in initialize()
[all …]
H A DqanGraphView.cpp43 namespace qan { // ::qan namespace
47 qan::Navigable{parent} in GraphView()
54 void GraphView::setGraph(qan::Graph* graph) in setGraph()
69 connect(_graph, &qan::Graph::nodeClicked, in setGraph()
70 this, &qan::GraphView::nodeClicked); in setGraph()
72 connect(_graph, &qan::Graph::connectorChanged, in setGraph()
75 connect(_graph, &qan::Graph::nodeRightClicked, in setGraph()
80 connect(_graph, &qan::Graph::portClicked, in setGraph()
81 this, &qan::GraphView::portClicked); in setGraph()
85 connect(_graph, &qan::Graph::edgeClicked, in setGraph()
[all …]
H A DqanPlugin.cpp92 qmlRegisterType<qan::Node>(uri, 2, 0, "AbstractNode"); in registerTypes()
93 qmlRegisterType<qan::NodeItem>(uri, 2, 0, "NodeItem"); in registerTypes()
94 qmlRegisterType<qan::PortItem>(uri, 2, 0, "PortItem"); in registerTypes()
95 qmlRegisterType<qan::Edge>(uri, 2, 0, "AbstractEdge"); in registerTypes()
96 qmlRegisterType<qan::EdgeItem>(uri, 2, 0, "EdgeItem"); in registerTypes()
97 qmlRegisterType<qan::Group>(uri, 2, 0, "AbstractGroup"); in registerTypes()
98 qmlRegisterType<qan::GroupItem>(uri, 2, 0, "GroupItem"); in registerTypes()
99 qmlRegisterType<qan::Connector>(uri, 2, 0, "Connector"); in registerTypes()
101 qmlRegisterType<qan::Graph>(uri, 2, 0, "Graph"); in registerTypes()
106 qmlRegisterType<qan::Grid>(uri, 2, 0, "AbstractGrid"); in registerTypes()
[all …]
H A DqanGraph.cpp55 namespace qan { // ::qan namespace
95 qan::Style* style = qan::Connector::style(nullptr); in componentComplete()
711 qan::Edge* Graph::insertEdge( qan::Node* source, qan::Node* destination, QQmlComponent* edgeCompon… in insertEdge()
741 void Graph::bindEdge(qan::Edge* edge, qan::PortItem* outPort, qan::PortItem* inPort ) noexcept in bindEdge()
814 qan::Node& src, qan::Node* dstNode ) in configureEdge()
851 void Graph::removeEdge(qan::Node* source, qan::Node* destination) in removeEdge()
871 bool Graph::hasEdge(qan::Node* source, qan::Node* destination) const in hasEdge()
1008 bool qan::Graph::groupNode(qan::Group* group, qan::Node* node, bool transform) noexcept in groupNode()
1384 qan::PortItem* Graph::insertPort(qan::Node* node, in insertPort()
1548 qan::GroupItem* groupItem = qobject_cast<qan::GroupItem*>(item); in sendToFront()
[all …]
H A DqanGroup.cpp49 namespace qan { // ::qan namespace
53 qan::Node{parent} in Group()
58 qan::Graph* Group::getGraph() noexcept { in getGraph()
62 const qan::Graph* Group::getGraph() const noexcept { in getGraph()
91 qan::GroupItem* Group::getGroupItem() noexcept { return qobject_cast<qan::GroupItem*>(getItem()); } in getGroupItem()
92 const qan::GroupItem* Group::getGroupItem() const noexcept { return qobject_cast<const qan::Group… in getGroupItem()
94 void Group::setItem(qan::NodeItem* item) noexcept in setItem()
96 qan::Node::setItem(item); in setItem()
129 qan::NodeStyle* Group::style(QObject* parent) noexcept in style()
148 bool Group::hasNode(const qan::Node* node) const in hasNode()
[all …]
H A DqanGraphView.h50 namespace qan { // ::qan
56 class GraphView : public qan::Navigable
70 void setGraph(qan::Graph* graph);
73 QPointer<qan::Graph> _graph = nullptr;
90 void nodeClicked( qan::Node* node, QPointF pos );
91 void nodeRightClicked( qan::Node* node, QPointF pos );
94 void portClicked( qan::PortItem* port, QPointF pos );
97 void edgeClicked( qan::Edge* edge, QPointF pos );
98 void edgeRightClicked( qan::Edge* edge, QPointF pos );
101 void groupClicked( qan::Group* group, QPointF pos );
[all …]
H A DqanEdge.cpp45 namespace qan { // ::qan namespace
49 gtpo::edge<qan::Config>{parent} in Edge()
59 qan::Graph* Edge::getGraph() noexcept { in getGraph()
60 return qobject_cast< qan::Graph* >( gtpo::edge< qan::Config >::get_graph() ); in getGraph()
63 const qan::Graph* Edge::getGraph() const noexcept { in getGraph()
64 return qobject_cast< const qan::Graph* >( gtpo::edge< qan::Config >::get_graph() ); in getGraph()
69 void Edge::setItem(qan::EdgeItem* edgeItem) noexcept in setItem()
89 qan::EdgeStyle* Edge::style(QObject* parent) noexcept in style()
91 static std::unique_ptr<qan::EdgeStyle> qan_Edge_style; in style()
99 qan::Node* Edge::getSource() noexcept in getSource()
[all …]
H A DqanConnector.h46 namespace qan { // ::qan
62 class Connector : public qan::NodeItem
76 auto setGraph(qan::Graph* graph) noexcept -> void;
78 auto getGraph() const noexcept -> qan::Graph*;
79 QPointer<qan::Graph> _graph;
99 void edgeInserted(qan::Edge* edge);
144 auto getEdgeItem() noexcept -> qan::EdgeItem*;
148 QScopedPointer<qan::EdgeItem> _edgeItem;
160 QPointer<qan::PortItem> _sourcePort;
177 QPointer<qan::Node> _sourceNode;
[all …]
H A DqanBehaviour.h48 namespace qan { // ::qan
63 public gtpo::dynamic_node_behaviour< qan::Config >
82 Q_PROPERTY( qan::Node* host READ getHost NOTIFY hostChanged FINAL ) in Q_PROPERTY()
83 inline qan::Node* getHost() noexcept { return _host.data(); } in Q_PROPERTY()
86 virtual void setHost( qan::Node* host );
89 QPointer<qan::Node> _host{nullptr};
117 …virtual void inNodeInserted( qan::Node& inNode, qan::Edge& edge ) noexcept { Q_UNUSED( inNode )… in inNodeInserted()
118 …virtual void inNodeRemoved( qan::Node& inNode, qan::Edge& edge ) noexcept { Q_UNUSED( inNode )… in inNodeRemoved()
120 …virtual void outNodeInserted( qan::Node& outNode, qan::Edge& edge ) noexcept { Q_UNUSED( outNo… in outNodeInserted()
121 …virtual void outNodeRemoved( qan::Node& outNode, qan::Edge& edge ) noexcept { Q_UNUSED( outNod… in outNodeRemoved()
[all …]
H A DqanNode.h48 namespace qan { // ::qan
63 class Node : public gtpo::node<qan::Config>
77 qan::Graph* getGraph() noexcept;
79 const qan::Graph* getGraph() const noexcept;
85 bool operator==(const qan::Node& right) const;
89 qan::NodeItem* getItem() noexcept;
90 const qan::NodeItem* getItem() const noexcept;
93 QPointer<qan::NodeItem> _item;
192 Q_PROPERTY(qan::Group* group READ getGroup FINAL) in Q_PROPERTY()
204 QML_DECLARE_TYPE(qan::Node)
[all …]
H A DqanNode.cpp46 namespace qan { // ::qan namespace
50 gtpo::node<qan::Config>{parent} in Node()
71 qan::Graph* Node::getGraph() noexcept { in getGraph()
72 return qobject_cast< qan::Graph* >( gtpo::node< qan::Config >::get_graph() ); in getGraph()
75 const qan::Graph* Node::getGraph() const noexcept { in getGraph()
76 return qobject_cast< const qan::Graph* >( gtpo::node< qan::Config >::get_graph() ); in getGraph()
79 bool Node::operator==( const qan::Node& right ) const in operator ==()
87 void Node::setItem(qan::NodeItem* nodeItem) noexcept in setItem()
108 qan::NodeStyle* Node::style(QObject* parent) noexcept in style()
112 qan_Node_style.reset(new qan::NodeStyle(parent)); in style()
[all …]
H A DqanGroupItem.cpp42 namespace qan { // ::qan namespace
48 qan::NodeItem{ parent } in GroupItem()
50 qan::Draggable::configure(this);
51 qan::Draggable::setAcceptDrops(true);
56 connect( this, &qan::GroupItem::xChanged,
58 connect( this, &qan::GroupItem::yChanged,
63 setItemStyle(qan::Group::style(parent));
73 qan::NodeItem::setNode(static_cast<qan::Node*>(group)); in setGroup()
126 qan::NodeItem::setCollapsed(collapsed); in setCollapsed()
163 std::vector<qan::Node*> ancestors; in collapseAncestors()
[all …]
H A DqanGraph.hpp36 namespace qan { // ::qan namespace
40 qan::Node* Graph::insertNode(QQmlComponent* nodeComponent, qan::NodeStyle* nodeStyle) in insertNode()
65 qan::NodeItem* nodeItem = static_cast<qan::NodeItem*>(createFromComponent(nodeComponent, in insertNode()
69 throw qan::Error{"Node item creation failed."}; in insertNode()
77 connect(nodeItem, &qan::NodeItem::nodeClicked, notifyNodeClicked); in insertNode()
99 catch (const qan::Error& e) { in insertNode()
116 qan::Node* Graph::insertNonVisualNode() in insertNonVisualNode()
141 qan::Edge* Graph::insertEdge(qan::Node& src, qan::Node* dstNode, QQmlComponent* edgeComponent) in insertEdge()
161 qan::Edge* configuredEdge = nullptr; in insertEdge()
186 qan::Edge* Graph::insertNonVisualEdge( qan::Node& src, qan::Node* dstNode ) in insertNonVisualEdge()
[all …]
H A DqanGroup.h47 namespace qan { // ::qan
56 class Group : public qan::Node
70 using gtpo_node_t = gtpo::node<qan::Config>;
72 Q_PROPERTY(qan::Graph* graph READ getGraph CONSTANT FINAL)
74 qan::Graph* getGraph() noexcept;
76 const qan::Graph* getGraph() const noexcept;
84 friend class qan::GroupItem;
86 qan::GroupItem* getGroupItem() noexcept;
87 const qan::GroupItem* getGroupItem() const noexcept;
120 Q_INVOKABLE bool hasNode(const qan::Node* node) const;
[all …]
H A DqanEdge.h42 namespace qan { // ::qan
51 class Edge : public gtpo::edge<qan::Config>
65 qan::Graph* getGraph() noexcept;
67 const qan::Graph* getGraph() const noexcept;
70 friend class qan::EdgeItem;
72 Q_PROPERTY(qan::EdgeItem* item READ getItem CONSTANT)
73 qan::EdgeItem* getItem() noexcept;
76 QPointer<qan::EdgeItem> _item;
101 Q_INVOKABLE qan::Node* getSource() noexcept;
102 Q_INVOKABLE qan::Node* getDestination() noexcept;
[all …]
H A DqanDraggableCtrl.h50 namespace qan { // ::qan
56 class DraggableCtrl : public qan::AbstractDraggableCtrl
67 inline auto getTarget() noexcept -> qan::Node* { return _target.data(); }
68 inline auto getTarget() const noexcept -> const qan::Node* { return _target.data(); }
69 inline auto setTarget(qan::Node* target) noexcept { _target = target; } in setTarget()
71 QPointer<qan::Node> _target{nullptr};
74 inline auto getTargetItem() noexcept -> qan::NodeItem* { return _targetItem.data(); }
76 inline auto setTargetItem(qan::NodeItem* targetItem) noexcept { _targetItem = targetItem; } in setTargetItem()
78 QPointer<qan::NodeItem> _targetItem{nullptr};
81 inline qan::Graph* getGraph() noexcept { return _target ? _target->getGraph() : nullptr; } in getGraph()
[all …]
H A DqanNodeItem.h57 namespace qan { // ::qan
82 public qan::Selectable,
83 public qan::Draggable
88 Q_INTERFACES(qan::Selectable)
89 Q_INTERFACES(qan::Draggable)
114 QPointer<qan::Node> _node{nullptr};
123 auto getGraph() noexcept -> qan::Graph*;
125 QPointer<qan::Graph> _graph;
310 QPointer<qan::NodeStyle> _style;
485 QML_DECLARE_TYPE(qan::NodeItem)
[all …]
H A DqanStyleManager.h48 namespace qan { // ::qan
75 using StyleComponentMap = QMap< qan::Style*, QPointer<QQmlComponent> >;
78 Q_INVOKABLE QQmlComponent* getStyleComponent(qan::Style* style) noexcept;
84 …void setNodeStyle( QQmlComponent* delegate, qan::NodeStyle* nodeStyle );
87 qan::NodeStyle* getNodeStyle( QQmlComponent* delegate );
89 using DelegateNodeStyleMap = QMap< QQmlComponent*, qan::NodeStyle* >;
96 …void setEdgeStyle( QQmlComponent* delegate, qan::EdgeStyle* edgeStyle );
99 qan::EdgeStyle* getEdgeStyle( QQmlComponent* delegate );
101 using DelegateEdgeStyleMap = QMap< QQmlComponent*, qan::EdgeStyle* >;
116 Q_INVOKABLE qan::Style* getStyleAt(int s);
[all …]
/dports/graphics/quickqanava/QuickQanava-ab88d77ec62175b9fd499a154ffaf92f7bf23989/samples/dataflow/
H A DqanDataFlow.cpp39 namespace qan { // ::qan namespace
41 void FlowNodeBehaviour::inNodeInserted( qan::Node& inNode, qan::Edge& edge ) noexcept in inNodeInserted()
55 void FlowNodeBehaviour::inNodeRemoved( qan::Node& inNode, qan::Edge& edge ) noexcept in inNodeRemoved()
206 qan::Node* flowNode = nullptr; in insertFlowNode()
210 insertPort(flowNode, qan::NodeItem::Dock::Right, qan::PortItem::Type::Out, "OUT", "OUT" ); in insertFlowNode()
214 insertPort(flowNode, qan::NodeItem::Dock::Right, qan::PortItem::Type::Out, "OUT", "OUT" ); in insertFlowNode()
219 insertPort(flowNode, qan::NodeItem::Dock::Right, qan::PortItem::Type::Out, "OUT", "OUT" ); in insertFlowNode()
230 insertPort(flowNode, qan::NodeItem::Dock::Right, qan::PortItem::Type::Out, "OUT", "OUT" ); in insertFlowNode()
232 case qan::FlowNode::Type::Tint: in insertFlowNode()
235 insertPort(flowNode, qan::NodeItem::Dock::Left, qan::PortItem::Type::In, "COLOR", "COLOR" ); in insertFlowNode()
[all …]
H A DqanDataFlow.h44 namespace qan { // ::qan
52 virtual void inNodeInserted( qan::Node& inNode, qan::Edge& edge ) noexcept override;
53 virtual void inNodeRemoved( qan::Node& inNode, qan::Edge& edge ) noexcept override;
56 class FlowNode : public qan::Node
108 class OperationNode : public qan::FlowNode
136 class ImageNode : public qan::FlowNode
144 class ColorNode : public qan::FlowNode
152 class TintNode : public qan::FlowNode
179 class FlowGraph : public qan::Graph
191 QML_DECLARE_TYPE( qan::FlowNode )
[all …]
/dports/graphics/quickqanava/QuickQanava-ab88d77ec62175b9fd499a154ffaf92f7bf23989/samples/style/
H A Dcustom.cpp51 qan::NodeStyle* CustomRectNode::style(QObject* parent) noexcept in style()
54 static std::unique_ptr<qan::NodeStyle> customRectNode_style; in style()
71 qan::NodeStyle* CustomRoundNode::style(QObject* parent) noexcept in style()
92 qan::EdgeStyle* CustomEdge::style(QObject* parent) noexcept in style()
95 static std::unique_ptr<qan::EdgeStyle> customEdge_style; in style()
97 customEdge_style = std::make_unique<qan::EdgeStyle>(); in style()
101 qan::Node* CustomGraph::insertRectNode() in insertRectNode()
103 return qan::Graph::insertNode<CustomRectNode>(); in insertRectNode()
106 qan::Node* CustomGraph::insertRoundNode() in insertRoundNode()
108 return qan::Graph::insertNode<CustomRoundNode>(); in insertRoundNode()
[all …]
H A Dcustom.h40 class CustomRectNode : public qan::Node
50 static qan::NodeStyle* style(QObject* parent = nullptr) noexcept;
53 class CustomRoundNode : public qan::Node
63 static qan::NodeStyle* style(QObject* parent = nullptr) noexcept;
69 class CustomEdge : public qan::Edge in QML_DECLARE_TYPE()
73 explicit CustomEdge(QObject* parent = nullptr) : qan::Edge{parent} { } in QML_DECLARE_TYPE()
79 static qan::EdgeStyle* style(QObject* parent = nullptr) noexcept; in QML_DECLARE_TYPE()
84 class CustomGraph : public qan::Graph in QML_DECLARE_TYPE()
93 Q_INVOKABLE qan::Node* insertRectNode(); in QML_DECLARE_TYPE()
94 Q_INVOKABLE qan::Node* insertRoundNode(); in QML_DECLARE_TYPE()
[all …]
/dports/graphics/quickqanava/QuickQanava-ab88d77ec62175b9fd499a154ffaf92f7bf23989/samples/cpp/
H A Dcpp_sample.h44 class CustomGroup : public qan::Group
55 static qan::NodeStyle* style(QObject* parent = nullptr) noexcept;
60 class CustomNode : public qan::Node in QML_DECLARE_TYPE()
71 static qan::NodeStyle* style(QObject* parent = nullptr) noexcept; in QML_DECLARE_TYPE()
76 class CustomEdge : public qan::Edge { in QML_DECLARE_TYPE()
79 explicit CustomEdge(QObject* parent = nullptr) : qan::Edge{parent} {} in QML_DECLARE_TYPE()
86 static qan::EdgeStyle* style(QObject* parent = nullptr) noexcept; in QML_DECLARE_TYPE()
91 class CustomGraph : public qan::Graph { in QML_DECLARE_TYPE()
100 Q_INVOKABLE qan::Group* insertCustomGroup(); in QML_DECLARE_TYPE()
101 Q_INVOKABLE qan::Node* insertCustomNode(); in QML_DECLARE_TYPE()
[all …]
H A Dcpp_sample.cpp45 using namespace qan;
57 static std::unique_ptr<qan::NodeStyle> style; in style()
59 style = std::make_unique<qan::NodeStyle>(); in style()
74 qan::NodeStyle *CustomNode::style(QObject* parent) noexcept in style()
96 static std::unique_ptr<qan::EdgeStyle> customEdge_style; in style()
102 qan::Group *CustomGraph::insertCustomGroup() { in insertCustomGroup()
103 return qan::Graph::insertGroup<CustomGroup>(); in insertCustomGroup()
106 qan::Node *CustomGraph::insertCustomNode() { in insertCustomNode()
107 return qan::Graph::insertNode<CustomNode>(nullptr); in insertCustomNode()
110 qan::Edge *CustomGraph::insertCustomEdge(qan::Node *source, in insertCustomEdge()
[all …]

12345678910>>...14