Core Objects¶
Application Globals¶
The app_globals file contains pointers in application scope.
# Typical usage
import app_globals as G
# access the settings
G.settings.get_servers()
-
pyqtdb.app_globals.docs_gen= '1'¶ Flag to indicate Sphinx docs gen, Quirk of ReadTheDocs.org
XSettings¶
-
class
pyqtdb.XSettings.XSettings[source]¶ Bases:
QSettingsThis class is intended as a central place to hold the config. The idea is that later if can use different backends.
Some data such as the server config is serialised as json (a dependancy)
Warning
Security risk - the passwords are not encrypted
Todo
Inplement yaml backend and json
-
NS= 'PYQTDB'¶ Namespace prepended to all keys
-
SERVERS= 'PYQTDB_serversss'¶ Key that hold the servers data
-
DBMainWindow¶
-
class
pyqtdb.DBMainWindow.DBMainWindow(parent=None)[source]¶ Bases:
QMainWindowMain Window and Portal
Todo
Remember the dock position
-
W_NAME= 'DBMainWindow'¶
-
closeEvent(event)[source]¶ Save window settings on close with
save_window
-
serversWidget= None¶ Instance of
DBServersWidgetin dock
-
tabWidget= None¶ The main tabs
-
Images Helper¶
-
class
pyqtdb.img.Ico[source]¶ Icons Definition and Loader
- All icons used are listed as class constants.
- Static methods create icons loaded from the file system
-
Cancel= 'bullet_black.png'¶
-
Connect= 'connect.png'¶
-
Disconnect= 'disconnect.png'¶
-
FavIcon= 'page_white_swoosh.png'¶
-
Save= 'accept.png'¶
-
Server= 'server.png'¶
-
ServerAdd= 'server_add.png'¶
-
ServerConnect= 'server_connect.png'¶
-
ServerDelete= 'server_delete.png'¶
-
ServerEdit= 'server_edit.png'¶
-
Servers= 'server_database.png'¶