Moved datagrid to widgets
This commit is contained in:
parent
4e1c604c3a
commit
dda089bfc6
37
src/windows/widgets/datagrid.php
Normal file
37
src/windows/widgets/datagrid.php
Normal 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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -38,6 +38,7 @@ class CoreTest extends UnitTestCase {
|
|||||||
function TestPHPVersion()
|
function TestPHPVersion()
|
||||||
{
|
{
|
||||||
$this->assertTrue(version_compare(PHP_VERSION, "5.2", "ge"));
|
$this->assertTrue(version_compare(PHP_VERSION, "5.2", "ge"));
|
||||||
|
$this->assertTrue(version_compare(PHP_VERSION, "5.4", "<"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -130,6 +130,4 @@ SQL;
|
|||||||
$table_exists = in_array('create_test', $this->tables);
|
$table_exists = in_array('create_test', $this->tables);
|
||||||
$this->assertFalse($table_exists);
|
$this->assertFalse($table_exists);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user