aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui/NodeView.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-26 05:27:56 +0000
committerDavid Robillard <d@drobilla.net>2007-03-26 05:27:56 +0000
commit2124952b855e093d6253bfd763cd9ebfe69e9def (patch)
tree51c9913a3630676d97c2c2e0e84d990e5108560b /src/gui/NodeView.cpp
parent3dee4f8a64548dbb2aa11521e258865e5b93e9e3 (diff)
downloadmachina-2124952b855e093d6253bfd763cd9ebfe69e9def.tar.gz
machina-2124952b855e093d6253bfd763cd9ebfe69e9def.tar.bz2
machina-2124952b855e093d6253bfd763cd9ebfe69e9def.zip
Deleting selected states with delete key.
Fixed loading all states as initial. git-svn-id: http://svn.drobilla.net/lad/machina@378 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/NodeView.cpp')
-rw-r--r--src/gui/NodeView.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp
index be40047..6ff21ee 100644
--- a/src/gui/NodeView.cpp
+++ b/src/gui/NodeView.cpp
@@ -43,10 +43,16 @@ NodeView::on_double_click(GdkEventButton*)
void
NodeView::on_click(GdkEventButton* event)
{
- if (event->button == 3) {
- bool is_initial = _node->is_initial();
- _node->set_initial( ! is_initial );
- set_border_width(is_initial ? 1.0 : 2.0);
+ if (event->state & GDK_CONTROL_MASK) {
+ if (event->button == 1) {
+ bool is_initial = _node->is_initial();
+ _node->set_initial( ! is_initial );
+ set_border_width(is_initial ? 1.0 : 6.0);
+ } else if (event->button == 3) {
+ bool is_selector = _node->is_selector();
+ _node->set_selector( ! is_selector );
+ set_border_width(is_selector ? 1.0 : 3.0);
+ }
}
}