diff --git a/sys/common/data_grid.php b/sys/common/data_grid.php new file mode 100644 index 0000000..db459ef --- /dev/null +++ b/sys/common/data_grid.php @@ -0,0 +1,43 @@ +model = new GtkTreeStore(Gobject::TYPE_PHP_VALUE, Gobject::TYPE_PHP_VALUE); + parent::__construct($this->model); + } + + // -------------------------------------------------------------------------- + + /** + * Get the value of the cell at the provided coordinate array + * + * @param array $coord + * @return mixed + */ + public function get(array $coord) + { + // @todo implement + } +} \ No newline at end of file diff --git a/sys/windows/main.php b/sys/windows/main.php index b263bdc..54e31ae 100644 --- a/sys/windows/main.php +++ b/sys/windows/main.php @@ -150,7 +150,7 @@ class Main extends GtkWindow { $scrolled_win = new GtkScrolledWindow(); $scrolled_win->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); - //$scrolled_win->add(new DataGrid()); + $scrolled_win->add(new Data_Grid()); // Add the connection sidebar $this->connection_sidebar =& Connection_Sidebar::get_instance(); @@ -189,10 +189,6 @@ class Main extends GtkWindow { //File Menu { - //Set up the open item - //$open = new GtkImageMenuItem(GTK::STOCK_OPEN); - //$file_menu->append($open); - //Set up the quit item $quit = new GtkImageMenuItem(GTK::STOCK_QUIT); $quit->connect_simple('activate', array($this, 'quit'));