ui: graphView

Graph view has now toggle-able subnodes. Subnodes connected to the active node are always visible.

fortune cookie message = You will enjoy true success in whatever you do.
This commit is contained in:
Manuel Dobusch
2014-10-20 14:36:57 +02:00
parent ce666acbfd
commit 103e60b52a
16 changed files with 478 additions and 72 deletions
@@ -20,6 +20,8 @@ public:
virtual Vec2i getPosition() const = 0;
virtual void setPosition(const Vec2i& position) = 0;
virtual Vec2i getSize() const = 0;
virtual bool addOutEdge(const std::shared_ptr<GraphEdge>& edge) = 0;
virtual bool addInEdge(const std::weak_ptr<GraphEdge>& edge) = 0;
@@ -30,6 +32,20 @@ public:
virtual void notifyParentMoved() = 0;
virtual void hideContent() = 0;
virtual void showContent() = 0;
virtual void hide() = 0;
virtual void show() = 0;
virtual bool isHidden() = 0;
virtual bool contentIsHidden() = 0;
virtual unsigned int getOutEdgeCount() const = 0;
virtual unsigned int getInEdgeCount() const = 0;
virtual unsigned int getEdgeCountRecursive() const = 0;
protected:
Id m_tokenId;
};
+8
View File
@@ -9,6 +9,7 @@ public:
~Property();
T& operator=(const T& value);
T& operator=(const Property& property);
operator const T&() const;
@@ -34,6 +35,13 @@ T& Property<T>::operator=(const T& value)
return *m_valuePointer;
}
template<class T>
T& Property<T>::operator=(const Property& property)
{
*m_valuePointer = *property.m_valuePointer;
return *m_valuePointer;
}
template<class T>
Property<T>::operator const T&() const
{
+2
View File
@@ -134,6 +134,8 @@ template<class U>
void Vector2<T>::operator=(const Vector2<U>& other)
{
this->assign(other);
x = Property(&VectorBase<T, 2>::m_values[m_xIndex]);
y = Property(&VectorBase<T, 2>::m_values[m_yIndex]);
}
typedef Vector2<float> Vec2f;