summaryrefslogtreecommitdiff
path: root/src/gipfel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-07-30 16:59:09 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-07-30 16:59:09 +0100
commit306a3865d4874417df3ce35e5a1792d194a0a1c6 (patch)
tree69d737675fafd18a8ba610e232911ddecc9bd816 /src/gipfel.cxx
parent02a0aca8283e7acd62eb4223c41a671209e5bf7d (diff)
initial track support
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r--src/gipfel.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index 74dba5e..d5392a0 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -80,6 +80,11 @@ void open_cb() {
}
}
+void track_cb() {
+ char *file = fl_file_chooser("Track File?", NULL, NULL);
+ gipf->load_track(file);
+}
+
void scale_cb(Fl_Slider* o, void*) {
if (gipf) {
gipf->set_scale(o->value());
@@ -151,6 +156,7 @@ void about_cb() {
Fl_Menu_Item menuitems[] = {
{ "&File", 0, 0, 0, FL_SUBMENU },
+ { "Load &Track", FL_CTRL + 't', (Fl_Callback *)track_cb, 0 },
{ "&Quit", FL_CTRL + 'q', (Fl_Callback *)quit_cb, 0 },
{0},
{ "&Help", 0, 0, 0, FL_SUBMENU },