You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
258 lines
15 KiB
Python
258 lines
15 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'windows/browser/picture_browser.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.15.9
|
|
#
|
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
|
# run again. Do not edit this file unless you know what you are doing.
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
class Ui_MainWindow(object):
|
|
def setupUi(self, MainWindow):
|
|
MainWindow.setObjectName("MainWindow")
|
|
MainWindow.resize(1176, 610)
|
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
|
self.centralwidget.setObjectName("centralwidget")
|
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.centralwidget)
|
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
|
self.top_frame = QtWidgets.QFrame(self.centralwidget)
|
|
self.top_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.top_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.top_frame.setObjectName("top_frame")
|
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.top_frame)
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
|
self.browse_frame = QtWidgets.QFrame(self.top_frame)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.browse_frame.sizePolicy().hasHeightForWidth())
|
|
self.browse_frame.setSizePolicy(sizePolicy)
|
|
self.browse_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.browse_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.browse_frame.setObjectName("browse_frame")
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.browse_frame)
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
self.image_headbar_frame = QtWidgets.QFrame(self.browse_frame)
|
|
self.image_headbar_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.image_headbar_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.image_headbar_frame.setObjectName("image_headbar_frame")
|
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.image_headbar_frame)
|
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
|
self.image_title_label = QtWidgets.QLabel(self.image_headbar_frame)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.image_title_label.sizePolicy().hasHeightForWidth())
|
|
self.image_title_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setPointSize(10)
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.image_title_label.setFont(font)
|
|
self.image_title_label.setLayoutDirection(QtCore.Qt.LeftToRight)
|
|
self.image_title_label.setAlignment(QtCore.Qt.AlignCenter)
|
|
self.image_title_label.setObjectName("image_title_label")
|
|
self.horizontalLayout_3.addWidget(self.image_title_label)
|
|
self.image_number_spinbox = QtWidgets.QSpinBox(self.image_headbar_frame)
|
|
self.image_number_spinbox.setObjectName("image_number_spinbox")
|
|
self.horizontalLayout_3.addWidget(self.image_number_spinbox)
|
|
self.image_info_button = QtWidgets.QToolButton(self.image_headbar_frame)
|
|
self.image_info_button.setObjectName("image_info_button")
|
|
self.horizontalLayout_3.addWidget(self.image_info_button)
|
|
self.verticalLayout_2.addWidget(self.image_headbar_frame)
|
|
self.graphics_view = QtWidgets.QGraphicsView(self.browse_frame)
|
|
self.graphics_view.setMinimumSize(QtCore.QSize(800, 0))
|
|
self.graphics_view.setObjectName("graphics_view")
|
|
self.verticalLayout_2.addWidget(self.graphics_view)
|
|
self.toggle_detail_frame_button = QtWidgets.QToolButton(self.browse_frame)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.toggle_detail_frame_button.sizePolicy().hasHeightForWidth())
|
|
self.toggle_detail_frame_button.setSizePolicy(sizePolicy)
|
|
self.toggle_detail_frame_button.setArrowType(QtCore.Qt.DownArrow)
|
|
self.toggle_detail_frame_button.setObjectName("toggle_detail_frame_button")
|
|
self.verticalLayout_2.addWidget(self.toggle_detail_frame_button)
|
|
self.horizontalLayout.addWidget(self.browse_frame)
|
|
self.right_frame = QtWidgets.QFrame(self.top_frame)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.right_frame.sizePolicy().hasHeightForWidth())
|
|
self.right_frame.setSizePolicy(sizePolicy)
|
|
self.right_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.right_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.right_frame.setObjectName("right_frame")
|
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.right_frame)
|
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
|
self.toggle_search_frame_button = QtWidgets.QToolButton(self.right_frame)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.toggle_search_frame_button.sizePolicy().hasHeightForWidth())
|
|
self.toggle_search_frame_button.setSizePolicy(sizePolicy)
|
|
self.toggle_search_frame_button.setArrowType(QtCore.Qt.LeftArrow)
|
|
self.toggle_search_frame_button.setObjectName("toggle_search_frame_button")
|
|
self.horizontalLayout_2.addWidget(self.toggle_search_frame_button)
|
|
self.search_param_frame = QtWidgets.QFrame(self.right_frame)
|
|
self.search_param_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.search_param_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.search_param_frame.setObjectName("search_param_frame")
|
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.search_param_frame)
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
self.tag_search_label = QtWidgets.QLabel(self.search_param_frame)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.tag_search_label.setFont(font)
|
|
self.tag_search_label.setObjectName("tag_search_label")
|
|
self.verticalLayout.addWidget(self.tag_search_label)
|
|
self.tag_search_bar = QtWidgets.QLineEdit(self.search_param_frame)
|
|
self.tag_search_bar.setObjectName("tag_search_bar")
|
|
self.verticalLayout.addWidget(self.tag_search_bar)
|
|
self.result_tags_label = QtWidgets.QLabel(self.search_param_frame)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.result_tags_label.setFont(font)
|
|
self.result_tags_label.setObjectName("result_tags_label")
|
|
self.verticalLayout.addWidget(self.result_tags_label)
|
|
self.result_tags_listview = QtWidgets.QListView(self.search_param_frame)
|
|
self.result_tags_listview.setObjectName("result_tags_listview")
|
|
self.verticalLayout.addWidget(self.result_tags_listview)
|
|
self.button_frame = QtWidgets.QFrame(self.search_param_frame)
|
|
self.button_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.button_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.button_frame.setObjectName("button_frame")
|
|
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.button_frame)
|
|
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
|
self.open_location_button = QtWidgets.QPushButton(self.button_frame)
|
|
self.open_location_button.setObjectName("open_location_button")
|
|
self.horizontalLayout_4.addWidget(self.open_location_button)
|
|
self.delete_art_button = QtWidgets.QPushButton(self.button_frame)
|
|
self.delete_art_button.setObjectName("delete_art_button")
|
|
self.horizontalLayout_4.addWidget(self.delete_art_button)
|
|
self.verticalLayout.addWidget(self.button_frame)
|
|
self.horizontalLayout_2.addWidget(self.search_param_frame)
|
|
self.horizontalLayout.addWidget(self.right_frame)
|
|
self.verticalLayout_3.addWidget(self.top_frame)
|
|
self.bottom_frame = QtWidgets.QFrame(self.centralwidget)
|
|
self.bottom_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.bottom_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.bottom_frame.setObjectName("bottom_frame")
|
|
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.bottom_frame)
|
|
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
|
|
self.description_frame = QtWidgets.QFrame(self.bottom_frame)
|
|
self.description_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.description_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.description_frame.setObjectName("description_frame")
|
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.description_frame)
|
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
|
self.label_4 = QtWidgets.QLabel(self.description_frame)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.label_4.setFont(font)
|
|
self.label_4.setObjectName("label_4")
|
|
self.verticalLayout_4.addWidget(self.label_4)
|
|
self.description_edit = QtWidgets.QTextEdit(self.description_frame)
|
|
self.description_edit.setObjectName("description_edit")
|
|
self.verticalLayout_4.addWidget(self.description_edit)
|
|
self.horizontalLayout_5.addWidget(self.description_frame)
|
|
self.collection_frame = QtWidgets.QFrame(self.bottom_frame)
|
|
self.collection_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.collection_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.collection_frame.setObjectName("collection_frame")
|
|
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.collection_frame)
|
|
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
|
self.collections_label = QtWidgets.QLabel(self.collection_frame)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setUnderline(False)
|
|
font.setWeight(75)
|
|
self.collections_label.setFont(font)
|
|
self.collections_label.setObjectName("collections_label")
|
|
self.verticalLayout_5.addWidget(self.collections_label)
|
|
self.collections_list = QtWidgets.QListView(self.collection_frame)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.collections_list.sizePolicy().hasHeightForWidth())
|
|
self.collections_list.setSizePolicy(sizePolicy)
|
|
self.collections_list.setObjectName("collections_list")
|
|
self.verticalLayout_5.addWidget(self.collections_list)
|
|
self.horizontalLayout_5.addWidget(self.collection_frame)
|
|
self.verticalLayout_3.addWidget(self.bottom_frame)
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
|
self.menubar = QtWidgets.QMenuBar(MainWindow)
|
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 1176, 34))
|
|
self.menubar.setObjectName("menubar")
|
|
self.menuArtNet = QtWidgets.QMenu(self.menubar)
|
|
self.menuArtNet.setObjectName("menuArtNet")
|
|
self.menuOther_Apps = QtWidgets.QMenu(self.menuArtNet)
|
|
self.menuOther_Apps.setObjectName("menuOther_Apps")
|
|
self.menuCollection = QtWidgets.QMenu(self.menubar)
|
|
self.menuCollection.setObjectName("menuCollection")
|
|
MainWindow.setMenuBar(self.menubar)
|
|
self.statusbar = QtWidgets.QStatusBar(MainWindow)
|
|
self.statusbar.setObjectName("statusbar")
|
|
MainWindow.setStatusBar(self.statusbar)
|
|
self.actionArtNet_Importer = QtWidgets.QAction(MainWindow)
|
|
self.actionArtNet_Importer.setObjectName("actionArtNet_Importer")
|
|
self.actionChange_DB_Connection = QtWidgets.QAction(MainWindow)
|
|
self.actionChange_DB_Connection.setObjectName("actionChange_DB_Connection")
|
|
self.actionChange_ArtNet_root = QtWidgets.QAction(MainWindow)
|
|
self.actionChange_ArtNet_root.setObjectName("actionChange_ArtNet_root")
|
|
self.actionSearch_Collection = QtWidgets.QAction(MainWindow)
|
|
self.actionSearch_Collection.setObjectName("actionSearch_Collection")
|
|
self.actionEdit_Collection = QtWidgets.QAction(MainWindow)
|
|
self.actionEdit_Collection.setObjectName("actionEdit_Collection")
|
|
self.menuOther_Apps.addAction(self.actionArtNet_Importer)
|
|
self.menuArtNet.addAction(self.actionChange_DB_Connection)
|
|
self.menuArtNet.addAction(self.actionChange_ArtNet_root)
|
|
self.menuArtNet.addSeparator()
|
|
self.menuArtNet.addAction(self.menuOther_Apps.menuAction())
|
|
self.menuCollection.addAction(self.actionSearch_Collection)
|
|
self.menuCollection.addAction(self.actionEdit_Collection)
|
|
self.menubar.addAction(self.menuArtNet.menuAction())
|
|
self.menubar.addAction(self.menuCollection.menuAction())
|
|
|
|
self.retranslateUi(MainWindow)
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
|
|
|
def retranslateUi(self, MainWindow):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
|
|
self.image_title_label.setText(_translate("MainWindow", "Image_Title"))
|
|
self.image_info_button.setText(_translate("MainWindow", "?"))
|
|
self.toggle_detail_frame_button.setText(_translate("MainWindow", "v"))
|
|
self.toggle_search_frame_button.setText(_translate("MainWindow", "<"))
|
|
self.tag_search_label.setText(_translate("MainWindow", "Search"))
|
|
self.result_tags_label.setText(_translate("MainWindow", "Result Stats"))
|
|
self.open_location_button.setText(_translate("MainWindow", "Open Location"))
|
|
self.delete_art_button.setText(_translate("MainWindow", "Delete"))
|
|
self.label_4.setText(_translate("MainWindow", "Description"))
|
|
self.collections_label.setText(_translate("MainWindow", "Collections"))
|
|
self.menuArtNet.setTitle(_translate("MainWindow", "ArtNet"))
|
|
self.menuOther_Apps.setTitle(_translate("MainWindow", "Other Apps"))
|
|
self.menuCollection.setTitle(_translate("MainWindow", "Collection"))
|
|
self.actionArtNet_Importer.setText(_translate("MainWindow", "ArtNet Importer"))
|
|
self.actionChange_DB_Connection.setText(_translate("MainWindow", "Change DB Connection"))
|
|
self.actionChange_ArtNet_root.setText(_translate("MainWindow", "Change ArtNet Root"))
|
|
self.actionSearch_Collection.setText(_translate("MainWindow", "Search Collection"))
|
|
self.actionEdit_Collection.setText(_translate("MainWindow", "Edit Collection"))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
MainWindow = QtWidgets.QMainWindow()
|
|
ui = Ui_MainWindow()
|
|
ui.setupUi(MainWindow)
|
|
MainWindow.show()
|
|
sys.exit(app.exec_())
|