aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui/MachinaGUI.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-14 02:42:29 +0000
committerDavid Robillard <d@drobilla.net>2013-01-14 02:42:29 +0000
commit08e702ada89b951466c7b9c787663e0a57846e5a (patch)
treeebc017225112c6245caeb310859b16cabf50fab0 /src/gui/MachinaGUI.hpp
parentf111891cfbc183339e3119d5ff3718184cdedd21 (diff)
downloadmachina-08e702ada89b951466c7b9c787663e0a57846e5a.tar.gz
machina-08e702ada89b951466c7b9c787663e0a57846e5a.tar.bz2
machina-08e702ada89b951466c7b9c787663e0a57846e5a.zip
Make quantize spinner control step record and new node length.
Only quantize non-step recording if quantize checkbox is enabled. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4977 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/MachinaGUI.hpp')
-rw-r--r--src/gui/MachinaGUI.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/MachinaGUI.hpp b/src/gui/MachinaGUI.hpp
index e917ff8..4bbb238 100644
--- a/src/gui/MachinaGUI.hpp
+++ b/src/gui/MachinaGUI.hpp
@@ -66,6 +66,10 @@ public:
SPtr<machina::Controller> controller() { return _controller; }
+ double default_length() const {
+ return 1 / (double)_quantize_spinbutton->get_value();
+ }
+
inline void queue_refresh() { _refresh = true; }
void on_new_object(SPtr<machina::client::ClientObject> object);
@@ -76,8 +80,6 @@ public:
}
protected:
- void connect_widgets();
-
void menu_file_quit();
void menu_file_open();
void menu_file_save();
@@ -116,6 +118,7 @@ protected:
void chain_toggled();
void fan_toggled();
+ void quantize_record_changed();
void quantize_changed();
void tempo_changed();