This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
menu_builder_dialog_base.py
152 lines (144 loc) · 8.27 KB
/
menu_builder_dialog_base.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'menu_builder_dialog_base.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.setWindowModality(QtCore.Qt.NonModal)
Dialog.resize(742, 499)
Dialog.setSizeGripEnabled(True)
Dialog.setModal(True)
self.verticalLayout = QtGui.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.source = QtGui.QTreeView(Dialog)
self.source.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.source.sizePolicy().hasHeightForWidth())
self.source.setSizePolicy(sizePolicy)
self.source.setAutoFillBackground(True)
self.source.setObjectName(_fromUtf8("source"))
self.source.header().setVisible(True)
self.horizontalLayout.addWidget(self.source)
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setVerticalSpacing(6)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.button_add_menu = QtGui.QPushButton(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_add_menu.sizePolicy().hasHeightForWidth())
self.button_add_menu.setSizePolicy(sizePolicy)
self.button_add_menu.setObjectName(_fromUtf8("button_add_menu"))
self.gridLayout.addWidget(self.button_add_menu, 9, 0, 1, 1)
self.label_database = QtGui.QLabel(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_database.sizePolicy().hasHeightForWidth())
self.label_database.setSizePolicy(sizePolicy)
self.label_database.setObjectName(_fromUtf8("label_database"))
self.gridLayout.addWidget(self.label_database, 1, 0, 1, 1)
self.combo_database = QtGui.QComboBox(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.combo_database.sizePolicy().hasHeightForWidth())
self.combo_database.setSizePolicy(sizePolicy)
self.combo_database.setEditable(False)
self.combo_database.setObjectName(_fromUtf8("combo_database"))
self.gridLayout.addWidget(self.combo_database, 2, 0, 1, 1)
self.combo_profile = QtGui.QComboBox(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.combo_profile.sizePolicy().hasHeightForWidth())
self.combo_profile.setSizePolicy(sizePolicy)
self.combo_profile.setEditable(True)
self.combo_profile.setObjectName(_fromUtf8("combo_profile"))
self.gridLayout.addWidget(self.combo_profile, 7, 0, 1, 1)
self.label_profile = QtGui.QLabel(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_profile.sizePolicy().hasHeightForWidth())
self.label_profile.setSizePolicy(sizePolicy)
self.label_profile.setObjectName(_fromUtf8("label_profile"))
self.gridLayout.addWidget(self.label_profile, 5, 0, 1, 1)
self.button_delete_profile = QtGui.QPushButton(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_delete_profile.sizePolicy().hasHeightForWidth())
self.button_delete_profile.setSizePolicy(sizePolicy)
self.button_delete_profile.setText(_fromUtf8(""))
self.button_delete_profile.setObjectName(_fromUtf8("button_delete_profile"))
self.gridLayout.addWidget(self.button_delete_profile, 7, 1, 1, 1)
self.combo_schema = QtGui.QComboBox(Dialog)
self.combo_schema.setObjectName(_fromUtf8("combo_schema"))
self.gridLayout.addWidget(self.combo_schema, 4, 0, 1, 1)
self.label_schema = QtGui.QLabel(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_schema.sizePolicy().hasHeightForWidth())
self.label_schema.setSizePolicy(sizePolicy)
self.label_schema.setObjectName(_fromUtf8("label_schema"))
self.gridLayout.addWidget(self.label_schema, 3, 0, 1, 1)
spacerItem = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
self.gridLayout.addItem(spacerItem, 8, 0, 1, 1)
self.verticalLayout_2.addLayout(self.gridLayout)
self.horizontalLayout.addLayout(self.verticalLayout_2)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.label = QtGui.QLabel(Dialog)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout_2.addWidget(self.label)
self.activate_menubar = QtGui.QCheckBox(Dialog)
self.activate_menubar.setObjectName(_fromUtf8("activate_menubar"))
self.horizontalLayout_2.addWidget(self.activate_menubar)
self.activate_dock = QtGui.QCheckBox(Dialog)
self.activate_dock.setObjectName(_fromUtf8("activate_dock"))
self.horizontalLayout_2.addWidget(self.activate_dock)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Apply|QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.verticalLayout.addWidget(self.buttonBox)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(_translate("Dialog", "Menu Configuration", None))
self.button_add_menu.setText(_translate("Dialog", "Add a menu", None))
self.label_database.setText(_translate("Dialog", "Choose database where profiles are stored", None))
self.label_profile.setText(_translate("Dialog", "Choose profile", None))
self.button_delete_profile.setToolTip(_translate("Dialog", "Delete current profile", None))
self.label_schema.setText(_translate("Dialog", "Choose schema", None))
self.label.setText(_translate("Dialog", "Activate profile", None))
self.activate_menubar.setText(_translate("Dialog", "Main menu bar", None))
self.activate_dock.setText(_translate("Dialog", "dock", None))