"Fossies" - the Fresh Open Source Software Archive

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

    1 /***************************************************************************
    2                           objects.h  -  description
    3                              -------------------
    4     begin                : Mon Aug 13 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 OBJECTS_H
   19 #define OBJECTS_H
   20 
   21 #include <FL/fl_draw.H>
   22 #include <FL/fl_ask.H>
   23 #include <string>
   24 #include <FL/Fl.H>
   25 #include "htmlfile.h"
   26 
   27 /**
   28   *@author Gabriel Huber
   29   */
   30 
   31 class Objects {
   32 protected:  
   33     std::string URL;
   34     Fl_Color black_line,white_line;
   35     std::string alt_text;
   36     std::string oth_atr;
   37 public:
   38     Objects(const std::string & alt,const std::string oth);
   39     virtual ~Objects();
   40     virtual void draw(int xpos=0,int ypos=0);
   41     virtual void add_size(int x=0,int y=0)=0;
   42     virtual int select(int x,int y)=0;
   43     void editURL();
   44     void setURL(const std::string & name);
   45     void edit(bool what); //Set edit true or false
   46     virtual void save(htmlfile *html)=0;
   47     virtual int type()=0;
   48     virtual void add_item(){}
   49     virtual bool del_item(){return false;}
   50     virtual void move(int x,int y)=0;
   51     virtual void resize(int x,int y){}
   52     virtual void moveitem(int x,int y){}
   53 };
   54 
   55 #endif