ui: graphView

Added basic graph view with simple nodes (just text, no edges or anything...)

fortune cookie message = Don't be afraid to take that big step.
This commit is contained in:
Manuel Dobusch
2014-07-02 16:14:56 +02:00
parent 5251e3ecb6
commit a8e32af5dd
16 changed files with 220 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "component/view/GraphView.h"
GraphView::GraphView(ViewLayout* viewLayout)
: View(viewLayout, Vec2i(100, 100))
{
}
GraphView::~GraphView()
{
}
std::string GraphView::getName() const
{
return "GraphView";
}
+17
View File
@@ -0,0 +1,17 @@
#ifndef GRAPH_VIEW_H
#define GRAPH_VIEW_H
#include "component/view/View.h"
class GraphView : public View
{
public:
GraphView(ViewLayout* viewLayout);
virtual ~GraphView();
virtual std::string getName() const;
virtual void addNode(const Vec2i& position, const std::string& name) = 0;
};
#endif // GRAPH_VIEW_H
@@ -0,0 +1,9 @@
#include "component/view/graphElements/GraphNode.h"
GraphNode::GraphNode()
{
}
GraphNode::~GraphNode()
{
}
@@ -0,0 +1,11 @@
#ifndef GRAPH_NODE_H
#define GRAPH_NODE_H
class GraphNode
{
public:
GraphNode();
virtual ~GraphNode();
};
#endif // GRAPH_NODE_H