summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-10-30 22:38:13 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-10-30 22:38:13 +0100
commita10646b1c87e6abc1651ae7160ddd2c7fd1753bc (patch)
treeb39dc657f9388b04913a5ae671da8cc8d517ca47
parentf8fb82ba705f6314d502b8efc8f03ecd16b8bed8 (diff)
set window title bar
-rw-r--r--configure.ac2
-rw-r--r--src/gipfel.cxx6
2 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 1b5d0ac..27e4908 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
-AC_INIT(gipfel, 0.1.3, Johannes.Hofmann@gmx.de)
+AC_INIT(gipfel, 0.2.0, Johannes.Hofmann@gmx.de)
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/Panorama.H])
AC_CONFIG_HEADER(config.h)
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index 6eb4ee9..cf43af7 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -42,6 +42,7 @@ char *img_file;
char *data_file = DEFAULT_DATAFILE;
GipfelWidget *gipf = NULL;
+Fl_Window *control_win, *view_win;
Fl_Dial *s_center = NULL;
Fl_Slider *s_nick, *s_focal_length, *s_tilt, *s_height_dist, *s_track_width;
Fl_Value_Input *i_view_lat, *i_view_long, *i_view_height;
@@ -81,6 +82,8 @@ void open_cb() {
char *file = fl_file_chooser("Open File?", "*.jpg", img_file);
if(file != NULL) {
gipf->load_image(file);
+ view_win->label(file);
+ control_win->label(file);
set_values();
}
}
@@ -322,7 +325,6 @@ int main(int argc, char** argv) {
int stitch_flag = 0, stitch_w = 2000, stitch_h = 500;
int jpeg_flag = 0, tiff_flag = 0;
char *outpath;
- Fl_Window *control_win, *view_win;
Fl_Scroll *scroll;
@@ -404,6 +406,8 @@ int main(int argc, char** argv) {
gipf = new GipfelWidget(0,0,800,600);
if (img_file) {
gipf->load_image(img_file);
+ view_win->label(img_file);
+ control_win->label(img_file);
}
view_win->size(gipf->w(), gipf->h());