Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7476 in orxonox.OLD for branches/qt_gui/src


Ignore:
Timestamp:
May 2, 2006, 7:39:56 PM (19 years ago)
Author:
bensch
Message:

qt_gui: added some missing files

Location:
branches/qt_gui/src/lib/gui
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/Makefile.am

    r7470 r7476  
    99libORXbasegui_a_SOURCES = \
    1010                gui_element.cc \
    11                 gui_saveable.cc
     11                gui_saveable.cc \
     12                gui.cc
    1213
    1314
    1415noinst_HEADERS= \
    1516                gui_element.h \
    16                 gui_saveable.h
     17                gui_saveable.h \
     18                gui.h
     19
    1720
    1821EXTRA_DIST =
  • branches/qt_gui/src/lib/gui/gui.cc

    r7469 r7476  
    1616//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
    1717
    18 #include "proto_class.h"
     18#include "gui.h"
    1919
    20 using namespace std;
     20namespace OrxGui
     21{
    2122
    2223
    23 /**
    24  * standard constructor
    25  * @todo this constructor is not jet implemented - do it
    26 */
    27 ProtoClass::ProtoClass ()
    28 {
    29    this->setClassID(CL_PROTO_ID, "ProtoClass");
    30 
    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    */
    41 }
     24  /**
     25   * standard constructor
     26  */
     27  Gui::Gui ()
     28  {
     29    //this->setClassID(CL_PROTO_ID, "Gui");
     30  }
    4231
    4332
    44 /**
    45  * standard deconstructor
    46 */
    47 ProtoClass::~ProtoClass ()
    48 {
    49   // delete what has to be deleted here
     33  /**
     34   * standard deconstructor
     35  */
     36  Gui::~Gui ()
     37  {
     38    // delete what has to be deleted here
     39  }
    5040}
  • branches/qt_gui/src/lib/gui/gui.h

    r7469 r7476  
    11/*!
    2  * @file proto_class.h
     2 * @file gui.h
    33 * @brief Definition of ...
    44*/
    55
    6 #ifndef _PROTO_CLASS_H
    7 #define _PROTO_CLASS_H
     6#ifndef _GUI_H
     7#define _GUI_H
    88
    99#include "base_object.h"
     
    1111// FORWARD DECLARATION
    1212
     13namespace OrxGui
     14{
     15  //! A class for ...
     16  class Gui : public BaseObject
     17  {
    1318
     19  public:
     20    Gui();
     21    virtual ~Gui();
    1422
    15 //! A class for ...
    16 class ProtoClass : public BaseObject {
    17 
    18  public:
    19   ProtoClass();
    20   virtual ~ProtoClass();
    21 
    22 
    23  private:
    24 
    25 };
    26 
    27 #endif /* _PROTO_CLASS_H */
     23    //! Start the Gui
     24    virtual void startGui() = 0;
     25    //! Stop the gui
     26    virtual void stopGui() = 0;
     27    //! Suspend the Gui.
     28    virtual void suspend() = 0;
     29    //! Update the Gui.
     30    virtual void update() = 0;
     31  };
     32}
     33#endif /* _GUI_H */
  • branches/qt_gui/src/lib/gui/gui_element.cc

    r7470 r7476  
    2626  /**
    2727   *  standard constructor
    28      @todo this constructor is not jet implemented - do it
    29   */
     28   */
    3029  GuiElement::GuiElement ()
    3130  {
  • branches/qt_gui/src/lib/gui/gui_element.h

    r7470 r7476  
    88#define _GUI_ELEMENT_H
    99
    10 class Widget;
    1110namespace OrxGui
    1211{
     12  class Widget;
     13
    1314  //! A SuperClass for all the Different GuiElements
    1415  class GuiElement
     
    2021
    2122    /** @returns the main Widget of this GuiElement. */
    22     Widget* getWidget() { return this->mainWidget; }
     23    Widget* getWidget() const { return this->mainWidget; }
    2324  protected:
    2425    void setMainWidget(Widget* widget);
Note: See TracChangeset for help on using the changeset viewer.