Main Page | Namespace List | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Gui.hh

Go to the documentation of this file.
00001 /*
00002  * Gui class
00003  * by hackervalley@free.fr
00004  * http://hackervalley.free.fr
00005  * May 2004
00006  * this program is licensed under the GPL.
00007  */
00008  
00009 #ifndef GUI_H
00010 #define GUI_H
00011 
00012 // only for developpement
00013 #include <iostream>
00014 #include <fstream>
00015 
00016 // Fltk headers
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 // Handle OpengL
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                 // MainWindow
00048                 Fl_Window * mainWindow;
00049 
00050                 // MainMenuBar
00051                 Fl_Menu_Bar *mainMenuBar;
00052                           
00053                 //OpenGL RenderWindow     
00054                 OpenGLWindow *glWindow;
00055                   
00056                 //StatusBar
00057                 Fl_Group *statusBar;
00058                   
00059                 // GeoBar
00060                  Fl_Group *geoBar;
00061                   
00062                  // about window
00063                 Fl_Window *aboutWindow;
00064 
00065                 // Size of MainWindow;        
00066                 int width;
00067                 int height;
00068 
00069                 // Constructor
00070                   Gui ();
00071                   
00072                   // Destructor
00073                   ~Gui();
00074 
00075                 // Callbacks
00076                 // File Menu
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                 // Help Menu
00086                 static void help_about_cb (Fl_Widget *, void *);
00087                 void help_about_cb2 (Fl_Widget *,void *);
00088                 
00089                 // geoBar callbacks
00090                 static void create_Vertex_cb(Fl_Widget *, void *);
00091                 void create_Vertex_cb2();
00092                 
00093                 // OK Window callback
00094                 static void OK_cb(Fl_Widget *, void *);
00095                 
00096                 // make window
00097                 void create_main_window ();
00098                 void create_about_window ();
00099 
00100                 // general interaction
00101                 
00102                 int run ();
00103 
00104         };
00105 
00106 }
00107 
00108 #endif

Generated on Sat Aug 7 18:49:02 2004 for FE by doxygen 1.3.6-20040222