Misc tweaks
This commit is contained in:
parent
f0ffcc577c
commit
dfb975119d
@ -182,6 +182,14 @@ class OpenSQLManager extends \wxApp {
|
||||
\wxExit();
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle Fatal Exceptions
|
||||
*/
|
||||
public function OnFatalException($e)
|
||||
{
|
||||
file_put_contents('errors.txt', print_r($e, TRUE), FILE_APPEND);
|
||||
}
|
||||
}
|
||||
|
||||
// Create the app instance
|
||||
|
@ -21,8 +21,8 @@ namespace OpenSQLManager;
|
||||
* Decouples the Settings class from the query builder
|
||||
* and organizes database connections
|
||||
*
|
||||
* @package Query
|
||||
* @subpackage Helper Classes
|
||||
* @package OpenSQLManager
|
||||
* @subpackage Common
|
||||
*/
|
||||
class DB_Reg {
|
||||
|
||||
|
@ -12,8 +12,13 @@
|
||||
*/
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// ! Global Functions
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Global Functions
|
||||
*
|
||||
* @package OpenSQLManager
|
||||
* @subpackage Common
|
||||
*/
|
||||
|
||||
namespace OpenSQLManager;
|
||||
|
||||
|
@ -18,8 +18,8 @@ namespace OpenSQLManager;
|
||||
/**
|
||||
* Class for manipulating datbase connections, and miscellaneous settings
|
||||
*
|
||||
* @package Query
|
||||
* @subpackage Helper Classes
|
||||
* @package OpenSQLManager
|
||||
* @subpackage Common
|
||||
*/
|
||||
class Settings {
|
||||
|
||||
|
@ -174,51 +174,13 @@ class Connection_Sidebar extends \wxPanel {
|
||||
* @return void
|
||||
*/
|
||||
private function _layout()
|
||||
{
|
||||
// Create an ImageList
|
||||
/*\wxBitmap::InitStandardHandlers();
|
||||
$img_list = new \wxImageList();
|
||||
$img_list->Add(new \wxBitmap(BASE_DIR . '/images/firebirdlogo32.xpm', wxBITMAP_TYPE_XPM));
|
||||
$img_list->Add(new \wxBitmap(BASE_DIR . '/images/mysqllogo32.xpm', wxBITMAP_TYPE_XPM));
|
||||
$img_list->Add(new \wxBitmap(BASE_DIR . '/images/posgresqllogo32.xpm', wxBITMAP_TYPE_XPM));
|
||||
$img_list->Add(new \wxBitmap(file_get_contents(BASE_DIR . '/images/sqlitelogo32.xpm'), wxBITMAP_TYPE_XPM_DATA));*/
|
||||
|
||||
{
|
||||
// Add the actual connections
|
||||
$conns = $this->settings->get_dbs();
|
||||
|
||||
foreach($conns as $c)
|
||||
{
|
||||
/*switch($c->type)
|
||||
{
|
||||
case "firebird":
|
||||
$img_num = 0;
|
||||
break;
|
||||
|
||||
case "mysql":
|
||||
$img_num = 1;
|
||||
break;
|
||||
|
||||
case "pgsql":
|
||||
$img_num = 2;
|
||||
break;
|
||||
|
||||
case "sqlite":
|
||||
$img_num = 3;
|
||||
break;
|
||||
|
||||
default:
|
||||
$img_num = NULL;
|
||||
break;
|
||||
}*/
|
||||
|
||||
/*if ( ! is_null($img_num))
|
||||
{
|
||||
$this->list->InsertItem(0, $c->name, 0);
|
||||
}
|
||||
else
|
||||
{*/
|
||||
$this->list->InsertItem(0, $c->name);
|
||||
//}
|
||||
$this->list->InsertItem(0, $c->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user