summaryrefslogtreecommitdiff
path: root/src/GipfelWidget.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-26 16:59:22 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-26 16:59:22 +0100
commitefaaa4afd39d20af03ac579e9654b6d92f21b203 (patch)
tree4572e9742ef8540c9c0a979f74c2a66c447df3c1 /src/GipfelWidget.cxx
parent5f0f1bd03de95f48e11b371c87e47f956792fbad (diff)
remove center popup menu
Diffstat (limited to 'src/GipfelWidget.cxx')
-rw-r--r--src/GipfelWidget.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 0f94f9f..aa66a6e 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -18,7 +18,6 @@
#include <algorithm>
#include <FL/Fl.H>
-#include <FL/Fl_Menu_Item.H>
#include <FL/Fl_Shared_Image.H>
#include <FL/Fl_JPEG_Image.H>
#include <FL/Fl_Preferences.H>
@@ -39,7 +38,6 @@ GipfelWidget::GipfelWidget(int X,int Y,int W, int H): Fl_Group(X, Y, W, H) {
pan = new Panorama();
cur_mountain = NULL;
focused_mountain = NULL;
- mb = NULL;
known_hills = new Hills();
img_file = NULL;
track_width = 200.0;
@@ -75,11 +73,6 @@ GipfelWidget::load_image(char *file) {
h(img->h());
w(img->w());
- mb = new Fl_Menu_Button(x(),y(),w()+x(),h()+y(),"&popup");
- mb->type(Fl_Menu_Button::POPUP3);
- mb->box(FL_NO_BOX);
- mb->add("Center Peak", 0, (Fl_Callback*) center_cb, this);
-
// try to retrieve gipfel data from JPEG meta data
md->load_image(file);
set_view_long(md->longitude());
@@ -517,19 +510,6 @@ GipfelWidget::get_focal_length_35mm() {
return pan->get_scale() * 35.0 / (double) img->w();
}
-void
-GipfelWidget::center_cb(Fl_Widget *o, void *f) {
- GipfelWidget *g = (GipfelWidget*) f;
-
- Hill *m = choose_hill(g->pan->get_close_mountains(), "Center Peak");
- if (m) {
- g->set_center_angle(m->alph / deg2rad);
-
- if (!g->known_hills->contains(m))
- g->known_hills->add(m);
- }
-}
-
void
GipfelWidget::set_height_dist_ratio(double r) {
pan->set_height_dist_ratio(r);