2012-03-30 14:48:50 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* OpenSQLManager
|
|
|
|
*
|
|
|
|
* Free Database manager for Open Source Databases
|
|
|
|
*
|
2012-04-20 13:30:27 -04:00
|
|
|
* @package OpenSQLManager
|
2012-03-30 14:48:50 -04:00
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2012
|
|
|
|
* @link https://github.com/aviat4ion/OpenSQLManager
|
2012-11-27 09:47:27 -05:00
|
|
|
* @license https://timshomepage.net/dbaj.txt
|
2012-03-30 14:48:50 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
2012-05-29 14:29:20 -04:00
|
|
|
namespace OpenSQLManager;
|
|
|
|
|
2012-03-30 14:48:50 -04:00
|
|
|
/**
|
2012-04-20 13:30:27 -04:00
|
|
|
* Class to simplify dealing with GtkTreeView
|
|
|
|
*
|
|
|
|
* @package OpenSQLManager
|
|
|
|
* @subpackage Widgets
|
2012-03-30 14:48:50 -04:00
|
|
|
*/
|
2012-05-29 14:29:20 -04:00
|
|
|
class Data_Grid extends \wxGrid {
|
2012-03-30 14:48:50 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create the object
|
|
|
|
*
|
2012-05-30 16:47:16 -04:00
|
|
|
* @param object
|
2012-03-30 14:48:50 -04:00
|
|
|
*/
|
2012-05-30 16:41:33 -04:00
|
|
|
public function __construct($parent = NULL)
|
2012-03-30 14:48:50 -04:00
|
|
|
{
|
2012-05-30 16:41:33 -04:00
|
|
|
if ( ! is_null($parent))
|
2012-04-12 11:32:15 -04:00
|
|
|
{
|
2012-05-30 16:41:33 -04:00
|
|
|
parent::__construct($parent, wxID_ANY);
|
2012-11-27 13:31:55 -05:00
|
|
|
$this->CreateGrid(10,10);
|
2012-05-30 16:41:33 -04:00
|
|
|
$this->HideColLabels();
|
|
|
|
$this->HideRowLabels();
|
2012-04-12 11:32:15 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
}
|
2012-03-30 14:48:50 -04:00
|
|
|
}
|
|
|
|
}
|
2012-05-30 16:47:16 -04:00
|
|
|
|
2012-03-30 14:48:50 -04:00
|
|
|
// End of data_grid.php
|