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