This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
OpenSQLManager/sys/widgets/data_grid.php

47 lines
873 B
PHP
Raw Normal View History

<?php
/**
* OpenSQLManager
*
* Free Database manager for Open Source Databases
*
2012-04-20 13:30:27 -04:00
* @package OpenSQLManager
* @author Timothy J. Warren
* @copyright Copyright (c) 2012
* @link https://github.com/aviat4ion/OpenSQLManager
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
2012-05-29 14:29:20 -04:00
namespace OpenSQLManager;
/**
2012-04-20 13:30:27 -04:00
* Class to simplify dealing with GtkTreeView
*
* @package OpenSQLManager
* @subpackage Widgets
*/
2012-05-29 14:29:20 -04:00
class Data_Grid extends \wxGrid {
/**
* Create the object
*
2012-05-30 16:47:16 -04:00
* @param object
*/
2012-05-30 16:41:33 -04:00
public function __construct($parent = NULL)
{
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);
$this->CreateGrid(0,0);
$this->HideColLabels();
$this->HideRowLabels();
2012-04-12 11:32:15 -04:00
}
else
{
parent::__construct();
}
}
}
2012-05-30 16:47:16 -04:00
// End of data_grid.php