]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/table.cpp
Strip copyright messages and id tags from individual files
[libs/gltk.git] / source / table.cpp
index 085a44237f979bbe9013534c9c160881d75b14eb..4a74e17ba5edec6d2b4e5ac42e1e9d56d0948c7b 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2008  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/gl/matrix.h>
 #include <msp/gl/transform.h>
 #include "part.h"
@@ -16,15 +9,13 @@ using namespace std;
 namespace Msp {
 namespace GLtk {
 
-Table::Table(const Resources &r):
-       Widget(r),
+Table::Table():
        rows(1),
        columns(1),
        data(1),
        col_w(1)
 {
        focusable = false;
-       update_style();
 }
 
 void Table::set_rows(unsigned r)
@@ -124,22 +115,22 @@ Table::Loader::Loader(Table &t):
 
 void Table::Loader::cell_text(unsigned r, unsigned c, const string &t)
 {
-       static_cast<Table &>(wdg).set_cell_text(r, c, t);
+       static_cast<Table &>(obj).set_cell_text(r, c, t);
 }
 
 void Table::Loader::column_width(unsigned c, unsigned w)
 {
-       static_cast<Table &>(wdg).set_column_width(c, w);
+       static_cast<Table &>(obj).set_column_width(c, w);
 }
 
 void Table::Loader::columns(unsigned c)
 {
-       static_cast<Table &>(wdg).set_columns(c);
+       static_cast<Table &>(obj).set_columns(c);
 }
 
 void Table::Loader::rows(unsigned r)
 {
-       static_cast<Table &>(wdg).set_rows(r);
+       static_cast<Table &>(obj).set_rows(r);
 }
 
 } // namespace GLtk