"Fossies" - the Fresh Open Source Software Archive

Member "mapgenerator-1.1.2/src/maininterface.h" (26 Oct 2003, 1997 Bytes) of package /linux/www/old/mapgenerator-1.1.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "maininterface.h" see the Fossies "Dox" file reference documentation.

    1 /***************************************************************************
    2                           maininterface.h  -  description
    3                              -------------------
    4     begin                : Fri Aug 10 2001
    5     copyright            : (C) 2001 by Gabriel Huber
    6     email                : Gabriel-Huber@gmx.de
    7  ***************************************************************************/
    8 
    9 /***************************************************************************
   10  *                                                                         *
   11  *   This program is free software; you can redistribute it and/or modify  *
   12  *   it under the terms of the GNU General Public License as published by  *
   13  *   the Free Software Foundation; either version 2 of the License, or     *
   14  *   (at your option) any later version.                                   *
   15  *                                                                         *
   16  ***************************************************************************/
   17 
   18 #ifndef MAININTERFACE_H
   19 #define MAININTERFACE_H
   20 
   21 #include <FL/Fl.H>
   22 #include <FL/Fl_Window.H>
   23 #include <FL/Fl_Button.H>
   24 #include <FL/Fl_Group.H>
   25 #include <FL/Fl_Pixmap.H>
   26 #include "image_scroll_box.h"
   27 #include <htmlfile.h>
   28 #include <FL/fl_ask.H>
   29 
   30 /**
   31   *@author Gabriel Huber
   32   */
   33 
   34 class MainInterface : public Fl_Window {
   35 private:
   36     Fl_Button *Open;
   37     Fl_Button *Save;
   38     Fl_Button *Exit;
   39     Fl_Button *Close;
   40     Fl_Group *Selection;
   41     Fl_Button *Polygon;
   42     Fl_Button *Circle;
   43     Fl_Button *Square;
   44     Fl_Button *Selector;
   45     Image_scroll_box *Image_box;
   46 
   47     void open_call();
   48     void exit_call();
   49     void selection_call();
   50     void close_call();
   51     void save_call();
   52         
   53     static void exit_cb(Fl_Widget*,void* o);
   54     static void open_cb(Fl_Widget*,void* o); //o should be this;
   55     static void selection_cb(Fl_Widget*,void* o);
   56     static void close_cb(Fl_Widget*,void *o);
   57     static void save_cb(Fl_Widget*,void *o);
   58 public:
   59     void make_window();
   60     MainInterface();
   61     ~MainInterface();
   62     void show();
   63 };
   64 
   65 #endif