aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui/EdgeView.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-02-20 06:13:44 +0000
committerDavid Robillard <d@drobilla.net>2007-02-20 06:13:44 +0000
commita865ddb5043c4dc094b8f64d2cae60e0df16b8ac (patch)
treedf65f1e1a1eff036e46f003bbcd9f8ffe26325db /src/gui/EdgeView.hpp
parent1e0a7b90f35130892015a4ed6aef778a159b02ac (diff)
downloadmachina-a865ddb5043c4dc094b8f64d2cae60e0df16b8ac.tar.gz
machina-a865ddb5043c4dc094b8f64d2cae60e0df16b8ac.tar.bz2
machina-a865ddb5043c4dc094b8f64d2cae60e0df16b8ac.zip
New double buffer class in Raul (used for realtime-safe thread-safe writes to variables
used in the realtime audio thead). Manipulation of edge labels in Machina (left click and right click). git-svn-id: http://svn.drobilla.net/lad/machina@323 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/EdgeView.hpp')
-rw-r--r--src/gui/EdgeView.hpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/gui/EdgeView.hpp b/src/gui/EdgeView.hpp
new file mode 100644
index 0000000..c61d0cf
--- /dev/null
+++ b/src/gui/EdgeView.hpp
@@ -0,0 +1,45 @@
+/* This file is part of Machina.
+ * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
+ *
+ * Machina is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.
+ *
+ * Machina is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef MACHINA_EDGEVIEW_H
+#define MACHINA_EDGEVIEW_H
+
+#include <flowcanvas/Connection.h>
+
+namespace Machina { class Edge; }
+class NodeView;
+
+
+class EdgeView : public LibFlowCanvas::Connection {
+public:
+ EdgeView(SharedPtr<LibFlowCanvas::FlowCanvas> canvas,
+ SharedPtr<NodeView> src,
+ SharedPtr<NodeView> dst,
+ SharedPtr<Machina::Edge> edge);
+
+ SharedPtr<Machina::Edge> edge() { return _edge; }
+
+ void update_label();
+
+private:
+ bool on_event(GdkEvent* ev);
+
+ SharedPtr<Machina::Edge> _edge;
+};
+
+
+#endif // MACHINA_EDGEVIEW_H