"Fossies" - the Fresh Open Source Software Archive

Member "mapgenerator-1.1.2/src/image_scroll_box.h" (26 Oct 2003, 2310 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 "image_scroll_box.h" see the Fossies "Dox" file reference documentation.

    1 /***************************************************************************
    2                           image_scroll_box.h  -  description
    3                              -------------------
    4     begin                : Tue Aug 14 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 IMAGE_SCROLL_BOX_H
   19 #define IMAGE_SCROLL_BOX_H
   20 
   21 #include <FL/Fl_Overlay_Window.H>
   22 #include <FL/Fl_Image.H>
   23 #include <FL/Fl_Button.H>
   24 #include <FL/Fl_Group.H>
   25 #include <FL/Fl_Scroll.H>
   26 #include "objects.h"
   27 #include "ocircle.h"
   28 #include "opolygon.h"
   29 #include "osquare.h"
   30 #include <vector>
   31 #include <FL/Fl.H>
   32 #include "htmlfile.h"
   33 #include <FL/Fl_Menu_Button.H>
   34 #include <FL/Fl_Menu_Item.H>
   35 
   36 /**
   37   *@author Gabriel Huber
   38   */
   39 
   40 #ifndef enum_Objects
   41 #define enum_Objects
   42 enum {objCircle,objSquare,objPolygon,objSelector};
   43 #endif
   44 
   45 class Image_scroll_box : public Fl_Overlay_Window {
   46 private:
   47     Fl_RGB_Image *Image;
   48     Fl_Scroll *Image_box;
   49     Fl_Group *Image_grp;
   50     Fl_Menu_Button *menu;
   51     std::string oth_atr;
   52     Frame_Buffer *imgfb;
   53     std::vector<Objects*> obj;
   54     int objnum;
   55     int selected;
   56     int select_num;
   57     int height;
   58     int width;
   59     bool MousePressed;
   60     bool editPolygon;
   61     bool Polygon;
   62     bool Selector;
   63     bool Circle;
   64     bool Square;
   65     bool eventhandling;
   66     htmlfile* html;
   67     bool moveobj;
   68     bool resizeobj;
   69     bool moveitemobj;
   70     void make_menu();
   71 
   72 public:
   73     Image_scroll_box(int x,int y,int w,int h);
   74     ~Image_scroll_box();
   75     void draw_overlay();
   76     void redraw_overlay();
   77     void show();
   78     bool open();
   79     void tool(int selected);
   80     int handle(int event);
   81     void del();
   82     void edit();
   83     void save();
   84 };
   85 
   86 #endif