Moved datagrid to widgets

This commit is contained in:
Timothy Warren 2012-02-24 14:18:34 -05:00
parent 4e1c604c3a
commit dda089bfc6
3 changed files with 38 additions and 2 deletions

View File

@ -0,0 +1,37 @@
<?php
/**
* OpenSQLManager
*
* Free Database manager for Open Source Databases
*
* @author Timothy J. Warren
* @copyright Copyright (c) 2012
* @link https://github.com/aviat4ion/OpenSQLManager
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* Class for controlling database views
*/
class DataGrid extends GtkTreeView{
protected $model, $view;
function __construct()
{
$this->model = new GtkTreeStore(GObject::TYPE_PHP_VALUE, GObject::TYPE_STRING);
parent::__construct($this->model);
}
function __get($key)
{
}
function __set($key, $val)
{
}
}

View File

@ -38,6 +38,7 @@ class CoreTest extends UnitTestCase {
function TestPHPVersion()
{
$this->assertTrue(version_compare(PHP_VERSION, "5.2", "ge"));
$this->assertTrue(version_compare(PHP_VERSION, "5.4", "<"));
}
/**

View File

@ -130,6 +130,4 @@ SQL;
$table_exists = in_array('create_test', $this->tables);
$this->assertFalse($table_exists);
}
}