aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui/MachinaGUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/MachinaGUI.cpp')
-rw-r--r--src/gui/MachinaGUI.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp
index fe7462e..c3083ed 100644
--- a/src/gui/MachinaGUI.cpp
+++ b/src/gui/MachinaGUI.cpp
@@ -43,7 +43,6 @@
using namespace Machina;
-
MachinaGUI::MachinaGUI(SharedPtr<Machina::Engine> engine)
: _refresh(false)
, _evolve(false)
@@ -201,12 +200,10 @@ MachinaGUI::MachinaGUI(SharedPtr<Machina::Engine> engine)
_client_model->signal_erase_object.connect(sigc::mem_fun(this, &MachinaGUI::on_erase_object));
}
-
MachinaGUI::~MachinaGUI()
{
}
-
#ifdef HAVE_EUGENE
bool
MachinaGUI::evolve_callback()
@@ -222,7 +219,6 @@ MachinaGUI::evolve_callback()
}
#endif
-
bool
MachinaGUI::idle_callback()
{
@@ -230,7 +226,6 @@ MachinaGUI::idle_callback()
return true;
}
-
bool
MachinaGUI::scrolled_window_event(GdkEvent* event)
{
@@ -256,14 +251,12 @@ MachinaGUI::scrolled_window_event(GdkEvent* event)
return false;
}
-
void
MachinaGUI::arrange()
{
_canvas->arrange(_menu_view_time_edges->get_active());
}
-
void
MachinaGUI::load_target_clicked()
{
@@ -284,7 +277,6 @@ MachinaGUI::load_target_clicked()
_target_filename = dialog.get_filename();
}
-
#ifdef HAVE_EUGENE
void
MachinaGUI::evolve_toggled()
@@ -307,7 +299,6 @@ MachinaGUI::evolve_toggled()
}
#endif
-
void
MachinaGUI::random_mutation(SharedPtr<Machine> machine)
{
@@ -317,7 +308,6 @@ MachinaGUI::random_mutation(SharedPtr<Machine> machine)
mutate(machine, machine->nodes().size() < 2 ? 1 : rand() % 7);
}
-
void
MachinaGUI::mutate(SharedPtr<Machine> machine, unsigned mutation)
{
@@ -361,7 +351,6 @@ MachinaGUI::mutate(SharedPtr<Machine> machine, unsigned mutation)
#endif
}
-
void
MachinaGUI::update_toolbar()
{
@@ -371,7 +360,6 @@ MachinaGUI::update_toolbar()
_quantize_spinbutton->set_sensitive(_quantize_checkbutton->get_active());
}
-
void
MachinaGUI::quantize_changed()
{
@@ -383,21 +371,18 @@ MachinaGUI::quantize_changed()
update_toolbar();
}
-
void
MachinaGUI::tempo_changed()
{
_engine->set_bpm(_bpm_spinbutton->get_value_as_int());
}
-
void
MachinaGUI::zoom(double z)
{
_canvas->set_zoom(z);
}
-
/** Update the sensitivity status of menus to reflect the present.
*/
void
@@ -407,14 +392,12 @@ MachinaGUI::connect_widgets()
using namespace std;
-
void
MachinaGUI::menu_file_quit()
{
_main_window->hide();
}
-
void
MachinaGUI::menu_file_open()
{
@@ -441,7 +424,6 @@ MachinaGUI::menu_file_open()
}
}
-
void
MachinaGUI::menu_file_save()
{
@@ -457,7 +439,6 @@ MachinaGUI::menu_file_save()
}
}
-
void
MachinaGUI::menu_file_save_as()
{
@@ -510,7 +491,6 @@ MachinaGUI::menu_file_save_as()
}
}
-
void
MachinaGUI::menu_import_midi()
{
@@ -535,7 +515,6 @@ MachinaGUI::menu_import_midi()
dialog.set_extra_widget(*extra_widget);
extra_widget->show_all();
-
const int result = dialog.run();
if (result == Gtk::RESPONSE_OK) {
@@ -560,7 +539,6 @@ MachinaGUI::menu_import_midi()
}
}
-
void
MachinaGUI::menu_export_midi()
{
@@ -594,7 +572,6 @@ MachinaGUI::menu_export_midi()
}
}
-
void
MachinaGUI::menu_export_graphviz()
{
@@ -609,7 +586,6 @@ MachinaGUI::menu_export_graphviz()
_canvas->render_to_dot(dialog.get_filename());
}
-
void
MachinaGUI::show_toolbar_toggled()
{
@@ -619,7 +595,6 @@ MachinaGUI::show_toolbar_toggled()
_toolbar->hide();
}
-
void
MachinaGUI::show_labels_toggled()
{
@@ -639,7 +614,6 @@ MachinaGUI::show_labels_toggled()
}
}
-
void
MachinaGUI::menu_help_about()
{
@@ -647,7 +621,6 @@ MachinaGUI::menu_help_about()
_about_window->show();
}
-
void
MachinaGUI::menu_help_help()
{
@@ -656,7 +629,6 @@ MachinaGUI::menu_help_help()
_help_dialog->hide();
}
-
void
MachinaGUI::record_toggled()
{
@@ -669,7 +641,6 @@ MachinaGUI::record_toggled()
}
}
-
void
MachinaGUI::stop_clicked()
{
@@ -687,7 +658,6 @@ MachinaGUI::stop_clicked()
update_toolbar();
}
-
void
MachinaGUI::play_toggled()
{