Switched DatabaseWindow to using the form designer.
This commit is contained in:
parent
03b4194193
commit
7300865c77
4 changed files with 604 additions and 437 deletions
327
pglab/DatabaseWindow.ui
Normal file
327
pglab/DatabaseWindow.ui
Normal file
|
|
@ -0,0 +1,327 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>DatabaseWindow</class>
|
||||
<widget class="QMainWindow" name="DatabaseWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1260</width>
|
||||
<height>732</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>pglab</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QTabWidget" name="mainTabs">
|
||||
<property name="currentIndex">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menuBar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1260</width>
|
||||
<height>29</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
<property name="title">
|
||||
<string>File</string>
|
||||
</property>
|
||||
<addaction name="actionNew_Query"/>
|
||||
<addaction name="actionOpen_Query"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSave_Query"/>
|
||||
<addaction name="actionSave_query_as"/>
|
||||
<addaction name="actionSave_copy_of_query_as"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionExport_data"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionClose"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuEdit">
|
||||
<property name="title">
|
||||
<string>Edit</string>
|
||||
</property>
|
||||
<addaction name="actionCopy"/>
|
||||
<addaction name="actionCopy_as_C_string"/>
|
||||
<addaction name="actionCopy_as_raw_C_string"/>
|
||||
<addaction name="actionPaste_lang_string"/>
|
||||
<addaction name="actionGenerate_code"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuQuery">
|
||||
<property name="title">
|
||||
<string>Query</string>
|
||||
</property>
|
||||
<addaction name="actionExecute_query"/>
|
||||
<addaction name="actionExplain"/>
|
||||
<addaction name="actionExplain_analyze"/>
|
||||
<addaction name="actionCancel_query"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuCatalog">
|
||||
<property name="title">
|
||||
<string>Catalog</string>
|
||||
</property>
|
||||
<addaction name="actionRefreshCatalog"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuCRUD">
|
||||
<property name="title">
|
||||
<string>CRUD</string>
|
||||
</property>
|
||||
<addaction name="actionRefreshCrud"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuWindow">
|
||||
<property name="title">
|
||||
<string>View</string>
|
||||
</property>
|
||||
<addaction name="actionInspect_user_schemas"/>
|
||||
<addaction name="actionInspect_pg_catalog"/>
|
||||
<addaction name="actionInspect_information_schema"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionInspect_server"/>
|
||||
<addaction name="actionShow_connection_manager"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuHelp">
|
||||
<property name="title">
|
||||
<string>Help</string>
|
||||
</property>
|
||||
<addaction name="actionAbout"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
<addaction name="menuEdit"/>
|
||||
<addaction name="menuQuery"/>
|
||||
<addaction name="menuCatalog"/>
|
||||
<addaction name="menuCRUD"/>
|
||||
<addaction name="menuWindow"/>
|
||||
<addaction name="menuHelp"/>
|
||||
</widget>
|
||||
<action name="actionAbout">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/about.png</normaloff>:/icons/about.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>About</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCancel_query">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/script_delete.png</normaloff>:/icons/script_delete.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Cancel query</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionClose">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/page_white_delete.png</normaloff>:/icons/page_white_delete.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Close</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+W</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCopy">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/page_white_copy.png</normaloff>:/icons/page_white_copy.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copy</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+C</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCopy_as_C_string">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/token_shortland_character.png</normaloff>:/icons/token_shortland_character.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copy as C string</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Shift+C</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCopy_as_raw_C_string">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/token_shortland_character.png</normaloff>:/icons/token_shortland_character.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copy as raw C++-string</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExecute_query">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/script_go.png</normaloff>:/icons/script_go.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Execute query</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F5</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExplain">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/lightbulb_off.png</normaloff>:/icons/lightbulb_off.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Explain</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F7</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExplain_analyze">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/lightbulb.png</normaloff>:/icons/lightbulb.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Explain analyze</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Shift+F7</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExport_data">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/table_save.png</normaloff>:/icons/table_save.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Export data</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionGenerate_code">
|
||||
<property name="text">
|
||||
<string>Generate code</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInspect_information_schema">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/page_white_add.png</normaloff>:/icons/page_white_add.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Inspect information_schema</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInspect_pg_catalog">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/page_white_add.png</normaloff>:/icons/page_white_add.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Inspect pg_catalog</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInspect_user_schemas">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/page_white_add.png</normaloff>:/icons/page_white_add.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Inspect user schemas</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInspect_server">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/page_white_add.png</normaloff>:/icons/page_white_add.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Inspect server</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionNew_Query">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/new_query_tab.png</normaloff>:/icons/new_query_tab.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>New Query</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+N</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpen_Query">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/folder.png</normaloff>:/icons/folder.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open Query</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+O</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSave_Query">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/script_save.png</normaloff>:/icons/script_save.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save Query</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+S</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionPaste_lang_string">
|
||||
<property name="text">
|
||||
<string>Paste lang string</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRefreshCatalog">
|
||||
<property name="text">
|
||||
<string>Refresh</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRefreshCrud">
|
||||
<property name="text">
|
||||
<string>Refresh</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSave_query_as">
|
||||
<property name="text">
|
||||
<string>Save query as</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSave_copy_of_query_as">
|
||||
<property name="text">
|
||||
<string>Save copy of query as</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShow_connection_manager">
|
||||
<property name="text">
|
||||
<string>Show connection manager</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="resources.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
Loading…
Add table
Add a link
Reference in a new issue