Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8441 in orxonox.OLD


Ignore:
Timestamp:
Jun 15, 2006, 10:22:12 AM (18 years ago)
Author:
bensch
Message:

gui: less compile-time for gui

Location:
branches/gui
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/Makefile.am

    r4976 r8441  
    2828include doc/documentation.am
    2929endif
     30
     31
     32version:
     33        echo VERSION: $(PACKAGE_VERSION)
  • branches/gui/src/lib/gui/gl/glgui_defs.h

    r8145 r8441  
    1515    Vertical       //!< Vertical Orientation.
    1616  } Orientation;
     17
     18  //! An enumerator that defines the different states Widgets may be in.
     19  typedef enum {
     20    Normal,           //!< Normal state of the GUI's Widgets.
     21    Active,           //!< If the widget is Active.
     22    Selected,         //!< If the Widget is Selected.
     23    Insensitive       //!< If the Widget is insensitive.
     24  } State;
     25#define GLGUI_STATE_COUNT   4
     26
     27
    1728};
    1829
  • branches/gui/src/lib/gui/gl/glgui_style.h

    r8440 r8441  
    77#define _GLGUI_STYLE_H
    88
    9 // FORWARD DECLARATION
     9#include "glgui_defs.h"
    1010
    1111#include "font.h"
     
    2727      FeatureBottom,        //!< At the Bottom of the rest of the Widget.
    2828    } FeaturePosition;
    29 
    30 
    3129
    3230  public:
     
    5149    StatedStyle;
    5250
    53     StatedStyle      _style[4];
     51
     52    StatedStyle         _style[GLGUI_STATE_COUNT];
    5453
    5554    FeaturePosition   _featurePosition;      //!< The Position a Feature will be layed at (checkbox(box), slider(text),...)
    56     Font*             _font;                 //!< The Font used in the current Widget.
     55    Font*               _font;                 //!< The Font used in the current Widget.
    5756
    5857
  • branches/gui/src/lib/gui/gl/glgui_widget.h

    r8440 r8441  
    3030  class GLGuiWidget : public Element2D
    3131  {
    32   public:
    33     //! An enumerator that defines the different states Widgets may be in.
    34     typedef enum {
    35       Normal,           //!< Normal state of the GUI's Widgets.
    36       Active,           //!< If the widget is Active.
    37       Selected,         //!< If the Widget is Selected.
    38       Insensitive       //!< If the Widget is insensitive.
    39     } State;
    40 
    41 
    42 
    4332  public:
    4433    GLGuiWidget(GLGuiWidget* parent = NULL);
  • branches/gui/src/util/hud.cc

    r8419 r8441  
    2121
    2222#include "world_entities/weapons/weapon_manager.h"
    23 
    24 using namespace std;
    25 
     23#include "glgui_widget.h"
    2624
    2725/**
  • branches/gui/src/util/hud.h

    r8145 r8441  
    77#define _HUD_H
    88
    9 #include "glgui_widget.h"
    10 #include <list>
    11 
     9#include "element_2d.h"
    1210// FORWARD DECLARATION
    1311class TiXmlElement;
    1412class WeaponManager;
     13namespace OrxGui { class GLGuiWidget; }
    1514
    1615//! A class that renders a HUD.
Note: See TracChangeset for help on using the changeset viewer.