Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7779 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_mainwidget.h


Ignore:
Timestamp:
May 23, 2006, 10:04:17 PM (18 years ago)
Author:
bensch
Message:

3088 linews changed :): trunk: namespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_mainwidget.h

    r5405 r7779  
    99#include "glgui_widget.h"
    1010
    11 // FORWARD DECLARATION
     11namespace OrxGui
     12{
    1213
    13 //! A default singleton class.
    14 class GLGuiMainWidget : public GLGuiWidget {
     14  //! A default singleton class.
     15  class GLGuiMainWidget : public GLGuiWidget
     16  {
    1517
    16  public:
    17   virtual ~GLGuiMainWidget(void);
    18   /** @returns a Pointer to the only object of this Class */
    19   inline static GLGuiMainWidget* getInstance(void) { if (!GLGuiMainWidget::singletonRef) GLGuiMainWidget::singletonRef = new GLGuiMainWidget();  return GLGuiMainWidget::singletonRef; };
     18  public:
     19    virtual ~GLGuiMainWidget(void);
     20    /** @returns a Pointer to the only object of this Class */
     21    inline static GLGuiMainWidget* getInstance(void) { if (!GLGuiMainWidget::singletonRef) GLGuiMainWidget::singletonRef = new GLGuiMainWidget();  return GLGuiMainWidget::singletonRef; };
    2022
    2123  virtual void update() {};
    22   virtual void draw() const {};
     24    virtual void draw() const {};
    2325
    24  private:
    25   GLGuiMainWidget(void);
    26   static GLGuiMainWidget*       singletonRef;
    27 };
     26  private:
     27    GLGuiMainWidget(void);
     28    static GLGuiMainWidget*       singletonRef;
     29  };
     30}
    2831
    2932#endif /* _GLGUI_MAINWIDGET_H */
Note: See TracChangeset for help on using the changeset viewer.