aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-12-08 23:27:31 +0000
committerDavid Robillard <d@drobilla.net>2007-12-08 23:27:31 +0000
commit61e1a1a8a5b4934d2bed752967d3cf2446946745 (patch)
tree7d68970a39bae784ef04936f3dce23e4da50a7a3 /src/gui
parent8b186d26598af398c6bd8f21933b548eccff1edd (diff)
downloadmachina-61e1a1a8a5b4934d2bed752967d3cf2446946745.tar.gz
machina-61e1a1a8a5b4934d2bed752967d3cf2446946745.tar.bz2
machina-61e1a1a8a5b4934d2bed752967d3cf2446946745.zip
Fix compilation w/o Eugene.
git-svn-id: http://svn.drobilla.net/lad/machina@966 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/MachinaGUI.cpp7
-rw-r--r--src/gui/MachinaGUI.hpp11
2 files changed, 14 insertions, 4 deletions
diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp
index 4fdc6fa..c6ecfc0 100644
--- a/src/gui/MachinaGUI.cpp
+++ b/src/gui/MachinaGUI.cpp
@@ -179,7 +179,8 @@ MachinaGUI::MachinaGUI(SharedPtr<Machina::Engine> engine)
_evolve_button->signal_clicked().connect(sigc::mem_fun(this, &MachinaGUI::evolve_toggled));
Glib::signal_timeout().connect(sigc::mem_fun(this, &MachinaGUI::evolve_callback), 1000);
#else
- _evolve_button->hide();
+ _evolve_button->set_sensitive(false);
+ _load_target_button->set_sensitive(false);
#endif
_canvas->build(engine->machine(), _menu_view_labels->get_active());
@@ -191,6 +192,7 @@ MachinaGUI::~MachinaGUI()
}
+#ifdef HAVE_EUGENE
bool
MachinaGUI::evolve_callback()
{
@@ -203,6 +205,7 @@ MachinaGUI::evolve_callback()
return true;
}
+#endif
bool
@@ -274,6 +277,7 @@ MachinaGUI::load_target_clicked()
}
+#ifdef HAVE_EUGENE
void
MachinaGUI::evolve_toggled()
{
@@ -293,6 +297,7 @@ MachinaGUI::evolve_toggled()
_engine->driver()->activate();
}
}
+#endif
void
diff --git a/src/gui/MachinaGUI.hpp b/src/gui/MachinaGUI.hpp
index 26cfad4..b0d379e 100644
--- a/src/gui/MachinaGUI.hpp
+++ b/src/gui/MachinaGUI.hpp
@@ -64,14 +64,19 @@ protected:
void menu_help_help();
void arrange();
void load_target_clicked();
- void evolve_toggled();
+
void random_mutation(SharedPtr<Machina::Machine> machine);
void mutate(SharedPtr<Machina::Machine> machine, unsigned mutation);
void zoom(double z);
void update_toolbar();
- bool evolve_callback();
- bool idle_callback();
+
bool scrolled_window_event(GdkEvent* ev);
+ bool idle_callback();
+
+#ifdef HAVE_EUGENE
+ void evolve_toggled();
+ bool evolve_callback();
+#endif
void record_toggled();
void stop_clicked();