Misc cleanup
This commit is contained in:
parent
407bd26b0f
commit
d86fa948a9
@ -12,6 +12,9 @@
|
|||||||
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Widget managing saved database connections
|
||||||
|
*/
|
||||||
class Connection_Sidebar extends GtkVBox {
|
class Connection_Sidebar extends GtkVBox {
|
||||||
|
|
||||||
protected $settings, $menu, $treeview, $model;
|
protected $settings, $menu, $treeview, $model;
|
||||||
|
@ -20,7 +20,7 @@ class DB_Info_Widget extends GtkTable {
|
|||||||
protected $conn, $dbtype, $host, $user, $pass, $database, $settings, $db_file, $port;
|
protected $conn, $dbtype, $host, $user, $pass, $database, $settings, $db_file, $port;
|
||||||
|
|
||||||
public function __construct($conn='', $dbtype='', $host='localhost',
|
public function __construct($conn='', $dbtype='', $host='localhost',
|
||||||
$user='', $pass='', $database='', $db_file=NULL, $port='', $conn_db='')
|
$user='', $pass='', $db_file=NULL, $port='', $conn_db='')
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
@ -38,6 +38,7 @@ class DB_Info_Widget extends GtkTable {
|
|||||||
Gtk::FILE_CHOOSER_ACTION_OPEN);
|
Gtk::FILE_CHOOSER_ACTION_OPEN);
|
||||||
|
|
||||||
// Populate the available database types
|
// Populate the available database types
|
||||||
|
// @todo Select type based on dbtype passed
|
||||||
$db_types = $this->get_available_dbs();
|
$db_types = $this->get_available_dbs();
|
||||||
foreach($db_types as $t)
|
foreach($db_types as $t)
|
||||||
{
|
{
|
||||||
@ -51,6 +52,7 @@ class DB_Info_Widget extends GtkTable {
|
|||||||
$this->pass->set_text($pass);
|
$this->pass->set_text($pass);
|
||||||
$this->conn_db->set_text($conn_db);
|
$this->conn_db->set_text($conn_db);
|
||||||
$this->db_file->set_filename($db_file);
|
$this->db_file->set_filename($db_file);
|
||||||
|
$this->port->set_text($port);
|
||||||
|
|
||||||
// Layout the table
|
// Layout the table
|
||||||
$this->layout();
|
$this->layout();
|
||||||
|
Reference in New Issue
Block a user