summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-11-10 22:19:05 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-11-10 22:19:05 +0100
commit08d3264b49e01075daadef68350e4fddd9993bee (patch)
tree70b4f864a853180b04482a0989a8bb975fd471f3
parenta7db5dd4c4b90cecee7639f945d156c3f2274072 (diff)
add Option to show hidden peaks
-rw-r--r--src/gipfel.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index 7ffcf7d..6dd96d6 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -157,6 +157,10 @@ void proj_cb(Fl_Value_Input* o, void*d) {
}
}
+void hidden_cb(Fl_Menu_* o, void*d) {
+ gipf->set_show_hidden(o->mvalue()->value());
+}
+
void comp_cb(Fl_Widget *, void *) {
gipf->comp_params();
set_values();
@@ -184,11 +188,14 @@ void fill_menubar(Fl_Menu_Bar* mb) {
mb->add("&File/&Quit", FL_CTRL+'q', (Fl_Callback*)quit_cb);
- mb->add("&Option/Normal Projection", NULL, (Fl_Callback *)proj_cb,
+ mb->add("&Projection/Normal Projection", NULL, (Fl_Callback *)proj_cb,
(void *)0, FL_MENU_RADIO|FL_MENU_VALUE);
- mb->add("&Option/Panoramic Projection", NULL, (Fl_Callback *)proj_cb,
+ mb->add("&Projection/Panoramic Projection", NULL, (Fl_Callback *)proj_cb,
(void *)1, FL_MENU_RADIO);
+ mb->add("&Option/Show Hidden Peaks", NULL, (Fl_Callback *) hidden_cb,
+ (void *)0, FL_MENU_TOGGLE);
+
mb->add("&Help/About", NULL, (Fl_Callback*)about_cb);
}