diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-08-10 15:51:30 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-08-10 15:51:30 +0100 |
commit | 0b248f506eb56c0e120da0d08017dc6e466cd9cf (patch) | |
tree | 485e77b8f86e51ae9568ddeb06003d371a7a6547 /src/gipfel.cxx | |
parent | f1e6812f1826a67965f9f1204b600d7a6ca519ce (diff) |
add panoramic option to GUI
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r-- | src/gipfel.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 19fcdeb..07087e6 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -138,6 +138,16 @@ void view_height_cb(Fl_Value_Input* o, void*) { } } +void proj_cb(Fl_Value_Input* o, void*d) { + if (gipf) { + if(d == NULL) { + gipf->set_projection(PROJECTION_TANGENTIAL); + } else { + gipf->set_projection(PROJECTION_SPHAERIC); + } + } +} + void comp_cb(Fl_Widget *, void *) { if (gipf) { gipf->comp_params(); @@ -165,6 +175,10 @@ Fl_Menu_Item menuitems[] = { { "Load &Track", FL_CTRL + 't', (Fl_Callback *)track_cb, 0 }, { "&Quit", FL_CTRL + 'q', (Fl_Callback *)quit_cb, 0 }, {0}, + { "&Option", 0, 0, 0, FL_SUBMENU }, + { "Normal Projection", 0, (Fl_Callback *)proj_cb, (void *)0, FL_MENU_RADIO|FL_MENU_VALUE}, + { "Panoramic Projection", 0, (Fl_Callback *)proj_cb, (void *)1, FL_MENU_RADIO}, + {0}, { "&Help", 0, 0, 0, FL_SUBMENU }, { "About", 0, (Fl_Callback *)about_cb }, { 0 }, |