aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/machina
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-30 22:32:07 +0000
committerDavid Robillard <d@drobilla.net>2007-03-30 22:32:07 +0000
commitdd6be02a7478225f19f02432919b64b96b733172 (patch)
tree35d3476f6728801ed1e6b8d124fc85d549e91bfd /src/engine/machina
parent2124952b855e093d6253bfd763cd9ebfe69e9def (diff)
downloadmachina-dd6be02a7478225f19f02432919b64b96b733172.tar.gz
machina-dd6be02a7478225f19f02432919b64b96b733172.tar.bz2
machina-dd6be02a7478225f19f02432919b64b96b733172.zip
Canvas auto-layout uses durations like graphviz diagrams.
Learning fixes. Added duration spinbutton to MIDI Import dialog. git-svn-id: http://svn.drobilla.net/lad/machina@381 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/machina')
-rw-r--r--src/engine/machina/Edge.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/engine/machina/Edge.hpp b/src/engine/machina/Edge.hpp
index 7f14788..e8e4ec0 100644
--- a/src/engine/machina/Edge.hpp
+++ b/src/engine/machina/Edge.hpp
@@ -34,19 +34,19 @@ class Node;
class Edge : public Raul::Stateful, public boost::noncopyable {
public:
- Edge(WeakPtr<Node> src, SharedPtr<Node> dst)
+ Edge(WeakPtr<Node> tail, SharedPtr<Node> head)
: _probability(1.0f)
- , _src(src)
- , _dst(dst)
+ , _tail(tail)
+ , _head(head)
{}
void write_state(Raul::RDFWriter& writer);
- WeakPtr<Node> src() { return _src; }
- SharedPtr<Node> dst() { return _dst; }
+ WeakPtr<Node> tail() { return _tail; }
+ SharedPtr<Node> head() { return _head; }
- void set_src(WeakPtr<Node> src) { _src = src; }
- void set_dst(SharedPtr<Node> dst) { _dst = dst; }
+ void set_tail(WeakPtr<Node> tail) { _tail = tail; }
+ void set_head(SharedPtr<Node> head) { _head = head; }
inline float probability() { return _probability.get(); }
inline void set_probability(float p) { _probability.set(p); }
@@ -54,8 +54,8 @@ public:
private:
Raul::DoubleBuffer<float> _probability;
- WeakPtr<Node> _src;
- SharedPtr<Node> _dst;
+ WeakPtr<Node> _tail;
+ SharedPtr<Node> _head;
};