Index: /branches/gui/src/defs/class_id.h
===================================================================
--- /branches/gui/src/defs/class_id.h	(revision 8613)
+++ /branches/gui/src/defs/class_id.h	(revision 8614)
@@ -363,4 +363,5 @@
   CL_GLGUI_TEXTFIELD            =    0x00000b61,
   CL_GLGUI_IMAGE                =    0x00000b70,
+  CL_GLGUI_TABLE                =    0x00000b71,
 
   CL_GLGUI_NOTIFIER             =    0x00000b80,
Index: /branches/gui/src/lib/gui/gl/Makefile.am
===================================================================
--- /branches/gui/src/lib/gui/gl/Makefile.am	(revision 8613)
+++ /branches/gui/src/lib/gui/gl/Makefile.am	(revision 8614)
@@ -26,4 +26,5 @@
 		glgui_inputline.cc \
 		glgui_textfield.cc \
+		glgui_table.cc \
 		glgui_image.cc \
 		glgui_window.cc \
@@ -52,4 +53,5 @@
 		glgui_inputline.h \
 		glgui_textfield.h \
+		glgui_table.h \
 		glgui_image.h \
 		glgui_window.h \
Index: /branches/gui/src/lib/gui/gl/glgui_table.cc
===================================================================
--- /branches/gui/src/lib/gui/gl/glgui_table.cc	(revision 8614)
+++ /branches/gui/src/lib/gui/gl/glgui_table.cc	(revision 8614)
@@ -0,0 +1,151 @@
+/*
+   orxonox - the future of 3D-vertical-scrollers
+
+   Copyright (C) 2004 orx
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   ### File Specific:
+   main-programmer: Benjamin Grauer
+   co-programmer: ...
+*/
+
+#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI
+
+#include "glgui_table.h"
+
+namespace OrxGui
+{
+  /**
+   * @brief standard constructor
+   */
+  GLGuiTable::GLGuiTable ()
+  {
+    this->init();
+  }
+
+
+  /**
+   * @brief standard deconstructor
+   */
+  GLGuiTable::~GLGuiTable()
+  {}
+
+  /**
+   * @brief initializes the GUI-element
+   */
+  void GLGuiTable::init()
+  {
+    this->setClassID(CL_GLGUI_TABLE, "GLGuiTable");
+
+    this->setFocusable(true);
+    this->setClickable(true);
+
+    this->resize();
+  }
+
+
+  void GLGuiTable::setRowCount(unsigned int rowCount)
+  {
+    this->_headers.resize(rowCount);
+    for (unsigned int i = 0; i < rowCount; i++)
+      this->_entries[i].resize(rowCount);
+
+    if (!this->isVisible())
+      this->hiding();
+  }
+
+  void GLGuiTable::setColumnCount(unsigned int columnCount)
+  {
+    this->_entries.resize(columnCount);
+    if (!this->isVisible())
+      this->hiding();
+  }
+
+
+
+
+  /**
+   * removes the focus from this Widget.
+   */
+  void GLGuiTable::removedFocus()
+  {
+    GLGuiWidget::removedFocus();
+  }
+
+
+
+  /**
+   * @brief Processes an Event.
+   * @param event The event to be processed
+   * @return true if the event was catched.
+   */
+  bool GLGuiTable::processEvent(const Event& event)
+  {
+    return false;
+  }
+
+
+  /**
+   * @brief Resizes the Widget to the new Size-constraints.
+   */
+  void GLGuiTable::resize()
+  {
+    GLGuiWidget::resize();
+  }
+
+  void GLGuiTable::updateFrontColor()
+  {
+    for (unsigned int i = 0; i < this->rowCount(); ++i)
+    {
+      this->_headers[i].setColor(this->foregroundColor());
+      for (unsigned int j = 0; j < this->columnCount(); ++j)
+        this->_entries[i][j].setColor(this->foregroundColor());
+    }
+  }
+
+  void GLGuiTable::hiding()
+  {
+    for (unsigned int i = 0; i < this->rowCount(); ++i)
+    {
+      this->_headers[i].setVisibility(false);
+      for (unsigned int j = 0; j < this->columnCount(); ++j)
+        this->_entries[i][j].setVisibility(false);
+    }
+  }
+
+  void GLGuiTable::showing()
+  {
+    for (unsigned int i = 0; i < this->rowCount(); ++i)
+    {
+      this->_headers[i].setVisibility(true);
+      for (unsigned int j = 0; j < this->columnCount(); ++j)
+        this->_entries[i][j].setVisibility(true);
+    }
+  }
+
+  /**
+   * @brief ticks the Table
+   * @param dt the time passed.
+   */
+  void GLGuiTable::tick(float dt)
+  {
+  }
+
+  /**
+   * @brief draws the GLGuiTable
+   */
+  void GLGuiTable::draw() const
+  {
+    this->beginDraw();
+    GLGuiWidget::draw();
+
+    //     this->frontMaterial().select();
+    //     GLGuiWidget::drawRect(this->frontRect());
+
+    this->endDraw();
+  }
+}
Index: /branches/gui/src/lib/gui/gl/glgui_table.h
===================================================================
--- /branches/gui/src/lib/gui/gl/glgui_table.h	(revision 8614)
+++ /branches/gui/src/lib/gui/gl/glgui_table.h	(revision 8614)
@@ -0,0 +1,75 @@
+/*!
+ * @file glgui_table.h
+ * The gl_TABLE widget of th openglGUI
+ *
+ */
+
+#ifndef _GLGUI_TABLE_H
+#define _GLGUI_TABLE_H
+
+#include "glgui_widget.h"
+#include "limited_width_text.h"
+#include "event.h"
+
+// FORWARD DECLARATION
+namespace OrxGui
+{
+
+  //! This is Table part of the openglGUI class
+  /**
+   * The Table is a Widget, that displays a Line, that can be manipulated through
+   * Writing Text on it.
+   *
+   * Whenever the Text is changed the textChanged signal is emitted.
+   */
+  class GLGuiTable : public OrxGui::GLGuiWidget
+  {
+
+  public:
+    GLGuiTable();
+    virtual ~GLGuiTable();
+
+    unsigned int columnCount() const { return this->_headers.size(); };
+    unsigned int rowCount() const { return this->_entries.size(); };
+    //const std::vector<std::string>& headers() const { return this->_headers; };
+    //const std::vector<std::vector<std::string> >& entries() const { return this->_entries; };
+
+    void setRowCount(unsigned int rowCount);
+    void setColumnCount(unsigned int columnCount);
+
+    void setHeader(unsigned int number, const std::string& headerName);
+    void setHeader(const std::vector<std::string>& headerNames);
+
+    void setEntry(unsigned int column, unsigned int rowNumber, const std::string& name);
+
+    void setColumnWidth(unsigned int column, float size);
+    void setRowSize(unsigned int row, unsigned int size);
+
+    virtual void tick(float dt);
+    virtual void draw() const;
+
+
+  protected:
+    virtual void removedFocus();
+
+    virtual void updateFrontColor();
+    virtual void hiding();
+    virtual void showing();
+    virtual void resize();
+
+    virtual bool processEvent(const Event& event);
+
+
+  private:
+    void init();
+
+  private:
+    typedef std::vector<LimitedWidthText> TableTextList;
+    TableTextList                _headers;
+    std::vector<TableTextList>   _entries;     //!< inner is by column, outer is by row.
+
+
+  };
+}
+
+#endif /* _GLGUI_TABLE_H */
