Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5359 in orxonox.OLD for trunk/src/lib/gui


Ignore:
Timestamp:
Oct 11, 2005, 12:51:27 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some simple proto-widget

Location:
trunk/src/lib/gui/gl_gui
Files:
1 edited
4 copied

Legend:

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

    r5316 r5359  
     1/*!
     2 * @file glgui.h
     3 * includes all the Files the GLGui knows.
     4 */
     5
     6#ifndef _GLGUI_H
     7#define _GLGUI_H
     8
     9#include "glgui_widget.h"
     10
     11
     12
     13
     14
     15
     16#endif _GLGUI_H
  • trunk/src/lib/gui/gl_gui/glgui_widget.cc

    r5357 r5359  
    1010
    1111   ### File Specific:
    12    main-programmer: ...
     12   main-programmer: Benjamin Grauer
    1313   co-programmer: ...
    1414*/
    1515
    16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
     16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI
    1717
    18 #include "proto_class.h"
     18#include "glgui_.h"
    1919
    2020using namespace std;
    2121
    22 
    2322/**
    2423 * standard constructor
    25  * @todo this constructor is not jet implemented - do it
    2624*/
    27 ProtoClass::ProtoClass ()
     25GLGui::GLGui ()
    2826{
    29    this->setClassID(CL_PROTO_ID, "ProtoClass");
     27  this->init();
    3028
    31    /* If you make a new class, what is most probably the case when you write this file
    32       don't forget to:
    33        1. Add the new file new_class.cc to the ./src/Makefile.am
    34        2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS
    35 
    36       Advanced Topics:
    37       - if you want to let your object be managed via the ObjectManager make sure to read
    38         the object_manager.h header comments. You will use this most certanly only if you
    39         make many objects of your class, like a weapon bullet.
    40    */
    4129}
    4230
     
    4533 * standard deconstructor
    4634*/
    47 ProtoClass::~ProtoClass ()
     35GLGui::~GLGui()
    4836{
    49   // delete what has to be deleted here
     37
    5038}
     39
     40/**
     41 * initializes the GUI-element
     42 */
     43GLGui::init()
     44{
     45  this->setClassID(CL_GLGUI_, "GLGui");
     46
     47}
     48
     49/**
     50 * draws the GLGui
     51 */
     52void GLGui::draw()
     53{
     54
     55}
  • trunk/src/lib/gui/gl_gui/glgui_widget.h

    r5357 r5359  
    11/*!
    2  * @file proto_class.h
    3  * @brief Definition of ...
    4 */
     2 * @file glgui_.h
     3 * The gl_ widget of th openglGUI
     4 *
     5 */
    56
    6 #ifndef _PROTO_CLASS_H
    7 #define _PROTO_CLASS_H
     7#ifndef _GLGUI__H
     8#define _GLGUI__H
    89
    910#include "base_object.h"
     
    1112// FORWARD DECLARATION
    1213
    13 
    14 
    15 //! A class for ...
    16 class ProtoClass : public BaseObject {
     14//! This is part of the openglGUI class
     15/**
     16 *
     17 */
     18class GLGui : public GLGui {
    1719
    1820 public:
    19   ProtoClass();
    20   virtual ~ProtoClass();
     21  GLGui();
     22  virtual ~GLGui();
    2123
     24  void init();
     25
     26  virtual void draw();
    2227
    2328 private:
     
    2530};
    2631
    27 #endif /* _PROTO_CLASS_H */
     32#endif /* _GLGUI__H */
Note: See TracChangeset for help on using the changeset viewer.