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:
@@ -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";
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user