00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef GUI_H
00010 #define GUI_H
00011
00012
00013 #include <iostream>
00014 #include <fstream>
00015
00016
00017 #include <FL/Fl.H>
00018 #include <FL/Fl_Widget.H>
00019 #include <FL/Fl_Window.H>
00020 #include <FL/Fl_Menu_Bar.H>
00021 #include <FL/Fl_Menu_Item.H>
00022 #include <FL/Fl_Group.H>
00023 #include <FL/Fl_Box.H>
00024 #include <FL/Fl_Multiline_Output.H>
00025 #include <FL/Fl_Button.H>
00026 #include <FL/Fl_Return_Button.H>
00027 #include <FL/Fl_File_Chooser.H>
00028
00029
00030 #include <FL/gl.h>
00031 #include <FL/Fl_Gl_Window.H>
00032
00033 extern "C"
00034 {
00035 #include <stdlib.h>
00036 }
00037
00038 #include "OpenGLWindow.hh"
00039
00040 namespace FE
00041 {
00042
00043 class Gui
00044 {
00045 public:
00046
00047
00048 Fl_Window * mainWindow;
00049
00050
00051 Fl_Menu_Bar *mainMenuBar;
00052
00053
00054 OpenGLWindow *glWindow;
00055
00056
00057 Fl_Group *statusBar;
00058
00059
00060 Fl_Group *geoBar;
00061
00062
00063 Fl_Window *aboutWindow;
00064
00065
00066 int width;
00067 int height;
00068
00069
00070 Gui ();
00071
00072
00073 ~Gui();
00074
00075
00076
00077 static void open_cb(Fl_Widget *, void *);
00078 void open_cb2(Fl_Widget *, void *);
00079
00080 static void saveas_cb(Fl_Widget *, void *);
00081 void saveas_cb2(Fl_Widget *, void *);
00082
00083 static void file_quit_cb(Fl_Widget *, void *);
00084
00085
00086 static void help_about_cb (Fl_Widget *, void *);
00087 void help_about_cb2 (Fl_Widget *,void *);
00088
00089
00090 static void create_Vertex_cb(Fl_Widget *, void *);
00091 void create_Vertex_cb2();
00092
00093
00094 static void OK_cb(Fl_Widget *, void *);
00095
00096
00097 void create_main_window ();
00098 void create_about_window ();
00099
00100
00101
00102 int run ();
00103
00104 };
00105
00106 }
00107
00108 #endif