Reformat db_tabs class, update reference to Query

This commit is contained in:
Timothy Warren 2012-04-13 12:00:17 -04:00
parent eea60cbd05
commit 036cb83b33

View File

@ -102,21 +102,15 @@ class DB_tabs extends GTKNotebook {
{ {
// Empty the tabs // Empty the tabs
self::reset(); self::reset();
self::$instance->hide_all(); self::$instance->hide_all();
// 'Databases' Tab // 'Databases' Tab
/*{
self::_add_tab($conn, 'Databases', 'Db Name', 'get_dbs'); self::_add_tab($conn, 'Databases', 'Db Name', 'get_dbs');
}*/
// 'Schemas' Tab // 'Schemas' Tab
{
self::_add_tab($conn, 'Schemas', 'Schema Name', 'get_schemas'); self::_add_tab($conn, 'Schemas', 'Schema Name', 'get_schemas');
}
// 'Tables' Tab // 'Tables' Tab
{
self::_add_tab($conn, 'Tables', 'Table Name', 'get_tables', array( self::_add_tab($conn, 'Tables', 'Table Name', 'get_tables', array(
array( array(
'row-activated', 'row-activated',
@ -124,10 +118,8 @@ class DB_tabs extends GTKNotebook {
$conn $conn
) )
)); ));
}
// 'System Tables' Tab // 'System Tables' Tab
/*{
self::_add_tab($conn, 'System Tables', 'Table Name', 'get_system_tables', array( self::_add_tab($conn, 'System Tables', 'Table Name', 'get_system_tables', array(
array( array(
'row-activated', 'row-activated',
@ -135,10 +127,8 @@ class DB_tabs extends GTKNotebook {
$conn $conn
) )
)); ));
}*/
// 'Views' Tab // 'Views' Tab
{
self::_add_tab($conn, 'Views', 'View Name', 'get_views', array( self::_add_tab($conn, 'Views', 'View Name', 'get_views', array(
array( array(
'row-activated', 'row-activated',
@ -146,29 +136,20 @@ class DB_tabs extends GTKNotebook {
$conn $conn
) )
)); ));
}
// 'Sequences' Tab // 'Sequences' Tab
{
self::_add_tab($conn, 'Sequences', 'Sequence Name', 'get_sequences'); self::_add_tab($conn, 'Sequences', 'Sequence Name', 'get_sequences');
}
// 'Triggers' Tab // 'Triggers' Tab
{
self::_add_row_tab($conn, 'Triggers','get_triggers'); self::_add_row_tab($conn, 'Triggers','get_triggers');
}
// 'Procedures' Tab // 'Procedures' Tab
{
self::_add_row_tab($conn, 'Procedures', 'get_procedures'); self::_add_row_tab($conn, 'Procedures', 'get_procedures');
}
// 'Functions' Tab // 'Functions' Tab
{
self::_add_row_tab($conn, 'Functions', 'get_functions'); self::_add_row_tab($conn, 'Functions', 'get_functions');
}
// Show the tabs
self::$instance->show_all(); self::$instance->show_all();
} }
@ -248,6 +229,8 @@ class DB_tabs extends GTKNotebook {
} }
self::$instance->show_all();
return; return;
} }
@ -282,6 +265,8 @@ class DB_tabs extends GTKNotebook {
self::$instance->add_tab($tab_name, $tab); self::$instance->add_tab($tab_name, $tab);
} }
self::$instance->show_all();
return; return;
} }