2012-01-30 07:57:17 -05:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* OpenSQLManager
|
|
|
|
*
|
|
|
|
* Free Database manager for Open Source Databases
|
|
|
|
*
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2012
|
|
|
|
* @link https://github.com/aviat4ion/OpenSQLManager
|
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Window controlling addtion of database connections
|
|
|
|
*/
|
|
|
|
class Add_DB extends GtkWindow {
|
2012-01-31 16:19:34 -05:00
|
|
|
|
2012-02-22 16:30:27 -05:00
|
|
|
public function __construct()
|
2012-01-30 07:57:17 -05:00
|
|
|
{
|
|
|
|
parent::__construct();
|
2012-01-31 12:42:38 -05:00
|
|
|
|
2012-02-03 16:17:19 -05:00
|
|
|
$this->set_position(Gtk::WIN_POS_CENTER);
|
2012-02-01 16:36:55 -05:00
|
|
|
$this->set_title("Add Database Connection");
|
2012-01-31 12:42:38 -05:00
|
|
|
|
2012-02-21 20:15:49 -05:00
|
|
|
// Create the layout table
|
2012-02-22 16:30:27 -05:00
|
|
|
$connection_form = new DB_Info_Widget();
|
2012-02-21 20:15:49 -05:00
|
|
|
|
2012-01-31 12:42:38 -05:00
|
|
|
// Add the Vbox, and show the window
|
2012-02-22 16:30:27 -05:00
|
|
|
$this->add($connection_form);
|
2012-01-31 12:42:38 -05:00
|
|
|
$this->show_all();
|
|
|
|
}
|
2012-01-30 07:57:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// End of add_db.php
|