-
Notifications
You must be signed in to change notification settings - Fork 2
/
form_Lists.py
243 lines (237 loc) · 13.9 KB
/
form_Lists.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Lists.ui'
#
# Created by: PyQt5 UI code generator 5.10
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_frmSpeciesList(object):
def setupUi(self, frmSpeciesList):
frmSpeciesList.setObjectName("frmSpeciesList")
frmSpeciesList.resize(676, 486)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(frmSpeciesList.sizePolicy().hasHeightForWidth())
frmSpeciesList.setSizePolicy(sizePolicy)
frmSpeciesList.setMinimumSize(QtCore.QSize(200, 300))
frmSpeciesList.setSizeIncrement(QtCore.QSize(0, 0))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon_bird.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
frmSpeciesList.setWindowIcon(icon)
self.scrollArea = QtWidgets.QScrollArea(frmSpeciesList)
self.scrollArea.setGeometry(QtCore.QRect(0, 23, 671, 480))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
self.scrollArea.setSizePolicy(sizePolicy)
self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
self.scrollArea.setFrameShadow(QtWidgets.QFrame.Plain)
self.scrollArea.setLineWidth(0)
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName("scrollArea")
self.layLists = QtWidgets.QWidget()
self.layLists.setGeometry(QtCore.QRect(0, 0, 657, 492))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.layLists.sizePolicy().hasHeightForWidth())
self.layLists.setSizePolicy(sizePolicy)
self.layLists.setObjectName("layLists")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layLists)
self.verticalLayout_2.setContentsMargins(5, 5, 5, 5)
self.verticalLayout_2.setSpacing(4)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.lblLocation = QtWidgets.QLabel(self.layLists)
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.lblLocation.setFont(font)
self.lblLocation.setWordWrap(True)
self.lblLocation.setObjectName("lblLocation")
self.verticalLayout_2.addWidget(self.lblLocation)
self.frmRow2 = QtWidgets.QFrame(self.layLists)
self.frmRow2.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frmRow2.setFrameShadow(QtWidgets.QFrame.Plain)
self.frmRow2.setLineWidth(0)
self.frmRow2.setObjectName("frmRow2")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frmRow2)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.frmRangeAndDetails = QtWidgets.QFrame(self.frmRow2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frmRangeAndDetails.sizePolicy().hasHeightForWidth())
self.frmRangeAndDetails.setSizePolicy(sizePolicy)
self.frmRangeAndDetails.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frmRangeAndDetails.setFrameShadow(QtWidgets.QFrame.Plain)
self.frmRangeAndDetails.setLineWidth(0)
self.frmRangeAndDetails.setObjectName("frmRangeAndDetails")
self.verticalLayout = QtWidgets.QVBoxLayout(self.frmRangeAndDetails)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.lblDateRange = QtWidgets.QLabel(self.frmRangeAndDetails)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(False)
font.setWeight(50)
self.lblDateRange.setFont(font)
self.lblDateRange.setLineWidth(0)
self.lblDateRange.setObjectName("lblDateRange")
self.verticalLayout.addWidget(self.lblDateRange)
self.lblDetails = QtWidgets.QLabel(self.frmRangeAndDetails)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(False)
font.setWeight(50)
self.lblDetails.setFont(font)
self.lblDetails.setLineWidth(0)
self.lblDetails.setObjectName("lblDetails")
self.verticalLayout.addWidget(self.lblDetails)
self.horizontalLayout.addWidget(self.frmRangeAndDetails)
self.frmLocationButton = QtWidgets.QFrame(self.frmRow2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frmLocationButton.sizePolicy().hasHeightForWidth())
self.frmLocationButton.setSizePolicy(sizePolicy)
self.frmLocationButton.setMaximumSize(QtCore.QSize(200, 16777215))
self.frmLocationButton.setLayoutDirection(QtCore.Qt.RightToLeft)
self.frmLocationButton.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frmLocationButton.setFrameShadow(QtWidgets.QFrame.Plain)
self.frmLocationButton.setLineWidth(0)
self.frmLocationButton.setObjectName("frmLocationButton")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frmLocationButton)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.btnShowLocation = QtWidgets.QPushButton(self.frmLocationButton)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btnShowLocation.sizePolicy().hasHeightForWidth())
self.btnShowLocation.setSizePolicy(sizePolicy)
self.btnShowLocation.setMinimumSize(QtCore.QSize(100, 20))
self.btnShowLocation.setStatusTip("")
self.btnShowLocation.setObjectName("btnShowLocation")
self.verticalLayout_3.addWidget(self.btnShowLocation)
self.horizontalLayout.addWidget(self.frmLocationButton)
self.verticalLayout_2.addWidget(self.frmRow2)
self.frmRow3 = QtWidgets.QFrame(self.layLists)
self.frmRow3.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frmRow3.setFrameShadow(QtWidgets.QFrame.Plain)
self.frmRow3.setLineWidth(0)
self.frmRow3.setObjectName("frmRow3")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frmRow3)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.frmSpecies = QtWidgets.QFrame(self.frmRow3)
self.frmSpecies.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frmSpecies.setFrameShadow(QtWidgets.QFrame.Plain)
self.frmSpecies.setLineWidth(0)
self.frmSpecies.setObjectName("frmSpecies")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frmSpecies)
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.lblSpecies = QtWidgets.QLabel(self.frmSpecies)
font = QtGui.QFont()
font.setPointSize(10)
self.lblSpecies.setFont(font)
self.lblSpecies.setObjectName("lblSpecies")
self.verticalLayout_4.addWidget(self.lblSpecies)
self.horizontalLayout_2.addWidget(self.frmSpecies)
self.frmSpeciesAndFind = QtWidgets.QFrame(self.frmRow3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frmSpeciesAndFind.sizePolicy().hasHeightForWidth())
self.frmSpeciesAndFind.setSizePolicy(sizePolicy)
self.frmSpeciesAndFind.setLayoutDirection(QtCore.Qt.LeftToRight)
self.frmSpeciesAndFind.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frmSpeciesAndFind.setFrameShadow(QtWidgets.QFrame.Plain)
self.frmSpeciesAndFind.setLineWidth(0)
self.frmSpeciesAndFind.setObjectName("frmSpeciesAndFind")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frmSpeciesAndFind)
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_3.setSpacing(0)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.lblFind = QtWidgets.QLabel(self.frmSpeciesAndFind)
self.lblFind.setLayoutDirection(QtCore.Qt.LeftToRight)
self.lblFind.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.lblFind.setObjectName("lblFind")
self.horizontalLayout_3.addWidget(self.lblFind)
self.txtFind = QtWidgets.QLineEdit(self.frmSpeciesAndFind)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.txtFind.sizePolicy().hasHeightForWidth())
self.txtFind.setSizePolicy(sizePolicy)
self.txtFind.setObjectName("txtFind")
self.horizontalLayout_3.addWidget(self.txtFind)
self.horizontalLayout_2.addWidget(self.frmSpeciesAndFind)
self.verticalLayout_2.addWidget(self.frmRow3)
self.tblList = QtWidgets.QTableWidget(self.layLists)
self.tblList.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
self.tblList.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.tblList.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.tblList.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.tblList.setShowGrid(False)
self.tblList.setObjectName("tblList")
self.tblList.setColumnCount(0)
self.tblList.setRowCount(0)
self.tblList.horizontalHeader().setVisible(False)
self.tblList.horizontalHeader().setHighlightSections(False)
self.tblList.verticalHeader().setVisible(False)
self.tblList.verticalHeader().setDefaultSectionSize(100)
self.tblList.verticalHeader().setHighlightSections(False)
self.tblList.verticalHeader().setMinimumSectionSize(20)
self.verticalLayout_2.addWidget(self.tblList)
self.txtChecklistComments = QtWidgets.QPlainTextEdit(self.layLists)
self.txtChecklistComments.setObjectName("txtChecklistComments")
self.verticalLayout_2.addWidget(self.txtChecklistComments)
self.scrollArea.setWidget(self.layLists)
self.actionSetDateFilter = QtWidgets.QAction(frmSpeciesList)
self.actionSetDateFilter.setObjectName("actionSetDateFilter")
self.actionSetLocationFilter = QtWidgets.QAction(frmSpeciesList)
self.actionSetLocationFilter.setObjectName("actionSetLocationFilter")
self.actionSetFirstDateFilter = QtWidgets.QAction(frmSpeciesList)
self.actionSetFirstDateFilter.setObjectName("actionSetFirstDateFilter")
self.actionSetLastDateFilter = QtWidgets.QAction(frmSpeciesList)
self.actionSetLastDateFilter.setObjectName("actionSetLastDateFilter")
self.actionSetSpeciesFilter = QtWidgets.QAction(frmSpeciesList)
self.actionSetSpeciesFilter.setObjectName("actionSetSpeciesFilter")
self.actionSetCountryFilter = QtWidgets.QAction(frmSpeciesList)
self.actionSetCountryFilter.setObjectName("actionSetCountryFilter")
self.actionSetStateFilter = QtWidgets.QAction(frmSpeciesList)
self.actionSetStateFilter.setObjectName("actionSetStateFilter")
self.actionSetCountyFilter = QtWidgets.QAction(frmSpeciesList)
self.actionSetCountyFilter.setObjectName("actionSetCountyFilter")
self.retranslateUi(frmSpeciesList)
QtCore.QMetaObject.connectSlotsByName(frmSpeciesList)
def retranslateUi(self, frmSpeciesList):
_translate = QtCore.QCoreApplication.translate
frmSpeciesList.setWindowTitle(_translate("frmSpeciesList", "Species Report"))
self.lblLocation.setText(_translate("frmSpeciesList", "Location"))
self.lblDateRange.setText(_translate("frmSpeciesList", "Date Range"))
self.lblDetails.setText(_translate("frmSpeciesList", "Details Label"))
self.btnShowLocation.setToolTip(_translate("frmSpeciesList", "Click to show the checklist location."))
self.btnShowLocation.setText(_translate("frmSpeciesList", "Location"))
self.lblSpecies.setText(_translate("frmSpeciesList", "Species"))
self.lblFind.setText(_translate("frmSpeciesList", "Find: "))
self.tblList.setSortingEnabled(True)
self.actionSetDateFilter.setText(_translate("frmSpeciesList", "Set Filter to Date"))
self.actionSetLocationFilter.setText(_translate("frmSpeciesList", "Set Filter to Location"))
self.actionSetFirstDateFilter.setText(_translate("frmSpeciesList", "Set Filter to \"First\" Date"))
self.actionSetLastDateFilter.setText(_translate("frmSpeciesList", "Set Filter to \"Last\" Date"))
self.actionSetSpeciesFilter.setText(_translate("frmSpeciesList", "Set Filter to Species"))
self.actionSetCountryFilter.setText(_translate("frmSpeciesList", "Set Filter to Country"))
self.actionSetStateFilter.setText(_translate("frmSpeciesList", "Set Filter to State"))
self.actionSetCountyFilter.setText(_translate("frmSpeciesList", "Set Filter to County"))
import icons_rc