From d4e2d2945b7f63580803168901f64e70c66310d4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 Jan 2013 03:03:54 +0000 Subject: Fix BPM and quantize spinbuttons. Remove pointless clock checkbox. Add tooltips. Update glade file. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4949 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/MachinaGUI.cpp | 7 +- src/gui/MachinaGUI.hpp | 1 - src/gui/machina.ui | 501 +++++++++++++++++++++++++++++++++---------------- 3 files changed, 338 insertions(+), 171 deletions(-) (limited to 'src/gui') diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp index d963217..63cbb76 100644 --- a/src/gui/MachinaGUI.cpp +++ b/src/gui/MachinaGUI.cpp @@ -72,7 +72,6 @@ MachinaGUI::MachinaGUI(SPtr engine) xml->get_widget("help_help_menuitem", _menu_help_help); xml->get_widget("canvas_scrolledwindow", _canvas_scrolledwindow); xml->get_widget("step_record_checkbutton", _step_record_checkbutton); - xml->get_widget("clock_checkbutton", _clock_checkbutton); xml->get_widget("bpm_spinbutton", _bpm_spinbutton); xml->get_widget("quantize_checkbutton", _quantize_checkbutton); xml->get_widget("quantize_spinbutton", _quantize_spinbutton); @@ -139,12 +138,10 @@ MachinaGUI::MachinaGUI(SPtr engine) sigc::mem_fun(this, &MachinaGUI::menu_help_about)); _menu_help_help->signal_activate().connect( sigc::mem_fun(this, &MachinaGUI::menu_help_help)); - _clock_checkbutton->signal_toggled().connect( + _bpm_spinbutton->signal_changed().connect( sigc::mem_fun(this, &MachinaGUI::tempo_changed)); _quantize_checkbutton->signal_toggled().connect( sigc::mem_fun(this, &MachinaGUI::quantize_changed)); - _quantize_spinbutton->signal_changed().connect( - sigc::mem_fun(this, &MachinaGUI::quantize_changed)); _mutate_button->signal_clicked().connect( sigc::bind(sigc::mem_fun(this, &MachinaGUI::random_mutation), @@ -178,7 +175,6 @@ MachinaGUI::MachinaGUI(SPtr engine) _main_window->present(); _step_record_checkbutton->show(); - _clock_checkbutton->set_active(true); _quantize_checkbutton->set_active(false); update_toolbar(); @@ -371,7 +367,6 @@ MachinaGUI::update_toolbar() { _record_button->set_active(_engine->driver()->recording()); _play_button->set_active(_engine->machine()->is_activated()); - _bpm_spinbutton->set_sensitive(_clock_checkbutton->get_active()); _quantize_spinbutton->set_sensitive(_quantize_checkbutton->get_active()); } diff --git a/src/gui/MachinaGUI.hpp b/src/gui/MachinaGUI.hpp index 2636051..6c85dca 100644 --- a/src/gui/MachinaGUI.hpp +++ b/src/gui/MachinaGUI.hpp @@ -151,7 +151,6 @@ protected: Gtk::TextView* _status_text; Gtk::Expander* _messages_expander; Gtk::ToggleToolButton* _step_record_checkbutton; - Gtk::CheckButton* _clock_checkbutton; Gtk::SpinButton* _bpm_spinbutton; Gtk::CheckButton* _quantize_checkbutton; Gtk::SpinButton* _quantize_spinbutton; diff --git a/src/gui/machina.ui b/src/gui/machina.ui index 61e7d95..b48df7d 100644 --- a/src/gui/machina.ui +++ b/src/gui/machina.ui @@ -1,8 +1,131 @@ - + - + + + False + True + normal + © 2013 David Robillard <http://drobilla.net> + A MIDI sequencer based on + probabilistic finite-state automata + http://drobilla.net/software/machina + Website: + 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 more details. + +You should have received a copy of the GNU General Public License +along with Machina; if not, write to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + David Robillard <d@drobilla.net> + translator-credits + machina.svg + + + False + + + False + + + False + True + end + 0 + + + + + + + 1 + 480 + 120 + 1 + 10 + + + False + 8 + Machina Help + False + center-on-parent + gtk-help + dialog + + + True + False + + + True + False + end + + + gtk-close + False + True + True + True + False + True + + + False + False + 0 + + + + + False + True + end + 0 + + + + + True + False + 0 + 0 + Initial nodes are shown with a thick border. +Selector nodes are shown in green. + +- Right click canvas to create a new node +- Middle click nodes to learn a MIDI note for that node +- Right click two nodes in succession to connect nodes +- Double click a node to show its properties dialog +- Ctrl+Left click a node to make it an initial node +- Ctrl+Right click a node to make it a selector node +- Ctrl+Left click edge probabilities to decrease +- Ctrl+Right click edge probabilities to increase + + + True + True + 8 + 2 + + + + + + closebutton1 + + + False 1 Machina 640 @@ -11,95 +134,117 @@ True + False True + False + False True + False _File True + False gtk-open + False True + False True True - + gtk-save + False True + False True True - + gtk-save-as + False True + False True True - + True + False _Import MIDI... + False True + False True True - + _Export MIDI... + False True + False True True - + True + False Export _GraphViz... + False True + False True True - + True + False gtk-quit + False True + False True True - + @@ -108,14 +253,19 @@ + False True + False _View True + False + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK _Time Based Edges True @@ -123,21 +273,25 @@ + False True + False _Labels True - + + False True + False _Toolbar True True - + @@ -146,27 +300,34 @@ + False True + False _Help True + False gtk-help + False True + False True True - + gtk-about + False True + False True True - + @@ -183,15 +344,20 @@ True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK True + False icons False + False True + False + Record gtk-media-record @@ -201,7 +367,10 @@ + False True + False + Stop gtk-media-stop @@ -211,7 +380,10 @@ + False True + False + Play gtk-media-play True @@ -223,6 +395,7 @@ True + False False @@ -230,8 +403,11 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Step record gtk-add @@ -242,6 +418,7 @@ True + False False @@ -249,12 +426,16 @@ + False True + False True + False + False True True False @@ -263,6 +444,8 @@ True + True + True 0 @@ -270,16 +453,27 @@ True True - + Playback tempo + 3 + 3 + False + False + True + True + bpm_adjustment 1 + True + True + True 1 True + False BPM @@ -298,6 +492,7 @@ True + False False @@ -305,17 +500,22 @@ + False True + False True + False 4 1/ + False True True False + Quantization True True @@ -330,10 +530,17 @@ True False True - + Quantize note type + False + False + True + True + quantize_adjustment 1 + True + True 1 @@ -347,6 +554,7 @@ True + False False @@ -354,7 +562,10 @@ + False True + False + Normal size gtk-zoom-100 @@ -364,7 +575,10 @@ + False True + False + Zoom to contents gtk-zoom-fit @@ -374,7 +588,10 @@ + False True + False + Arrange canvas gtk-refresh @@ -384,12 +601,15 @@ + True + True 0 True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK icons False @@ -398,6 +618,7 @@ True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -406,7 +627,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK gtk-open @@ -418,6 +641,7 @@ True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -426,7 +650,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Evolve machine (towards target MIDI) gtk-execute @@ -439,6 +665,7 @@ True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -447,7 +674,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK gtk-dialog-warning @@ -460,6 +689,7 @@ True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -468,7 +698,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK gtk-convert @@ -480,6 +712,7 @@ True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -488,7 +721,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Add Node gtk-new @@ -500,7 +735,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Delete Node gtk-delete @@ -512,7 +749,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Adjust Node gtk-edit @@ -525,6 +764,7 @@ True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -533,7 +773,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Add Edge gtk-connect @@ -545,7 +787,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Remove Edge gtk-disconnect @@ -557,7 +801,9 @@ + False True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Adjust Edge gtk-select-color @@ -570,12 +816,14 @@ False + True 1 False + True 1 @@ -592,6 +840,8 @@ + True + True 2 2 @@ -599,83 +849,29 @@ - - True - normal - © 2007 David Robillard <http://drobilla.net> - A MIDI sequencer based on - probabilistic finite-state automata - http://drobilla.net/software/machina - Website: - 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 more details. - -You should have received a copy of the GNU General Public License -along with Machina; if not, write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - David Robillard <d@drobilla.net> - translator-credits - machina.svg - - - - - - False - end - 0 - - - - - - + + False 8 - Machina Help + dialog1 False - center-on-parent - gtk-help + machina.svg dialog + True + True - + True - - - True - 0 - 0 - Initial nodes are shown with a thick border. -Selector nodes are shown in green. - -- Right click canvas to create a new node -- Middle click nodes to learn a MIDI note for that node -- Right click two nodes in succession to connect nodes -- Double click a node to show its properties dialog -- Ctrl+Left click a node to make it an initial node -- Ctrl+Right click a node to make it a selector node -- Ctrl+Left click edge probabilities to decrease -- Ctrl+Right click edge probabilities to increase - - - 8 - 2 - - + False + 8 - + True + False end - - gtk-close + + gtk-apply + False True True True @@ -688,34 +884,51 @@ Selector nodes are shown in green. 0 + + + gtk-cancel + False + True + True + True + False + True + + + False + False + 1 + + + + + gtk-ok + False + True + True + True + True + False + True + + + False + False + 2 + + False + True end 0 - - - - closebutton1 - - - - 8 - dialog1 - False - machina.svg - dialog - True - True - - - True - 8 True + False 2 2 4 @@ -725,7 +938,10 @@ Selector nodes are shown in green. True True True - + False + False + True + True 1 2 True @@ -735,12 +951,13 @@ Selector nodes are shown in green. 2 1 2 - + True + False 0 Duration: @@ -748,96 +965,45 @@ Selector nodes are shown in green. 1 2 GTK_FILL - + True + False 0 Note: GTK_FILL - + True True - + False + False + True + True 1 True 1 2 - + + True + True 2 - - - True - end - - - gtk-apply - True - True - True - False - True - - - False - False - 0 - - - - - gtk-cancel - True - True - True - False - True - - - False - False - 1 - - - - - gtk-ok - True - True - True - True - False - True - - - False - False - 2 - - - - - False - end - 0 - - @@ -846,4 +1012,11 @@ Selector nodes are shown in green. node_properties_ok_button + + 1 + 256 + 16 + 2 + 8 + -- cgit v1.2.1