Author: | Neil Wallace (neil@openmolar.com) |
---|---|
Release: | 2.0.906~hg207 |
The PostgresMainWindow class provides a re-implementation of BaseMainWindow , but adds functionality for handling connections to postgres database using OpenmolarDatabase
Inherited by AdminMainWindow and ClientMainWindow
Bases: lib_openmolar.common.qt4.plugin_tools.plugable_main_window.PlugableMainWindow
A main window with functions to connect to postgres
True if more than one pg session is allowed (False for client)
alias of OpenmolarDatabase
get self.new_session_widget give it the session and to the ui.
Note
returns whatever self.new_session_widget created so that calling functions have a reference to it.
should be Overwritten the central widget should have functions frequently associated with a tab widget. namely addTab etc..
re-implement the close event of QtGui.QMainWindow, and check the user really meant to do this.
parse the allowed locations for connections. returns a list of ConnectionData
return a widget (of type PostgresSessionWidget ) single-session widgets should return the existing session widget. multi-session clients should return a new widget (and keep a reference to it)