Removed completion for tag search bar

dev
Peery 3 years ago
parent 385bfebca3
commit b81ca5a40c

@ -1,365 +0,0 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'picture_importer.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# 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(1140, 849)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setEnabled(True)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.horizontalLayout.setObjectName("horizontalLayout")
self.left_frame = QtWidgets.QFrame(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.left_frame.sizePolicy().hasHeightForWidth())
self.left_frame.setSizePolicy(sizePolicy)
self.left_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.left_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.left_frame.setObjectName("left_frame")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.left_frame)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.presence_docker_button = QtWidgets.QToolButton(self.left_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.presence_docker_button.sizePolicy().hasHeightForWidth())
self.presence_docker_button.setSizePolicy(sizePolicy)
self.presence_docker_button.setObjectName("presence_docker_button")
self.horizontalLayout_2.addWidget(self.presence_docker_button)
self.presence_docker_layout = QtWidgets.QVBoxLayout()
self.presence_docker_layout.setObjectName("presence_docker_layout")
self.horizontalLayout_2.addLayout(self.presence_docker_layout)
self.left_layout = QtWidgets.QVBoxLayout()
self.left_layout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
self.left_layout.setObjectName("left_layout")
self.prev_image_button = QtWidgets.QToolButton(self.left_frame)
self.prev_image_button.setObjectName("prev_image_button")
self.left_layout.addWidget(self.prev_image_button)
self.horizontalLayout_2.addLayout(self.left_layout)
self.center_frame = QtWidgets.QFrame(self.left_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.center_frame.sizePolicy().hasHeightForWidth())
self.center_frame.setSizePolicy(sizePolicy)
self.center_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.center_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.center_frame.setObjectName("center_frame")
self.verticalLayout = QtWidgets.QVBoxLayout(self.center_frame)
self.verticalLayout.setObjectName("verticalLayout")
self.frame = QtWidgets.QFrame(self.center_frame)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.image_title_line = QtWidgets.QLineEdit(self.frame)
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.image_title_line.setFont(font)
self.image_title_line.setAutoFillBackground(False)
self.image_title_line.setAlignment(QtCore.Qt.AlignCenter)
self.image_title_line.setReadOnly(False)
self.image_title_line.setObjectName("image_title_line")
self.horizontalLayout_4.addWidget(self.image_title_line)
self.imageNumberSpinBox = QtWidgets.QSpinBox(self.frame)
self.imageNumberSpinBox.setObjectName("imageNumberSpinBox")
self.horizontalLayout_4.addWidget(self.imageNumberSpinBox)
self.verticalLayout.addWidget(self.frame)
self.image_file_label = QtWidgets.QLabel(self.center_frame)
self.image_file_label.setAlignment(QtCore.Qt.AlignCenter)
self.image_file_label.setObjectName("image_file_label")
self.verticalLayout.addWidget(self.image_file_label)
self.author_by = QtWidgets.QLabel(self.center_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.author_by.sizePolicy().hasHeightForWidth())
self.author_by.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(False)
font.setWeight(50)
self.author_by.setFont(font)
self.author_by.setAlignment(QtCore.Qt.AlignCenter)
self.author_by.setObjectName("author_by")
self.verticalLayout.addWidget(self.author_by)
self.image_author_label = QtWidgets.QLabel(self.center_frame)
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.image_author_label.setFont(font)
self.image_author_label.setAlignment(QtCore.Qt.AlignCenter)
self.image_author_label.setObjectName("image_author_label")
self.verticalLayout.addWidget(self.image_author_label)
self.image_frame = QtWidgets.QFrame(self.center_frame)
self.image_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.image_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.image_frame.setObjectName("image_frame")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.image_frame)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.image_label = QtWidgets.QLabel(self.image_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.image_label.sizePolicy().hasHeightForWidth())
self.image_label.setSizePolicy(sizePolicy)
self.image_label.setAlignment(QtCore.Qt.AlignCenter)
self.image_label.setObjectName("image_label")
self.verticalLayout_2.addWidget(self.image_label)
self.verticalLayout.addWidget(self.image_frame)
self.link_label = QtWidgets.QLabel(self.center_frame)
font = QtGui.QFont()
font.setPointSize(8)
font.setBold(True)
font.setWeight(75)
self.link_label.setFont(font)
self.link_label.setAlignment(QtCore.Qt.AlignCenter)
self.link_label.setObjectName("link_label")
self.verticalLayout.addWidget(self.link_label)
self.source_link_label = QtWidgets.QLabel(self.center_frame)
self.source_link_label.setObjectName("source_link_label")
self.verticalLayout.addWidget(self.source_link_label)
self.link_line = QtWidgets.QLineEdit(self.center_frame)
font = QtGui.QFont()
font.setPointSize(7)
self.link_line.setFont(font)
self.link_line.setObjectName("link_line")
self.verticalLayout.addWidget(self.link_line)
self.description_label = QtWidgets.QLabel(self.center_frame)
self.description_label.setObjectName("description_label")
self.verticalLayout.addWidget(self.description_label)
self.description_edit = QtWidgets.QTextEdit(self.center_frame)
self.description_edit.setObjectName("description_edit")
self.verticalLayout.addWidget(self.description_edit)
self.horizontalLayout_2.addWidget(self.center_frame)
self.right_layout = QtWidgets.QVBoxLayout()
self.right_layout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
self.right_layout.setObjectName("right_layout")
self.next_image_button = QtWidgets.QToolButton(self.left_frame)
self.next_image_button.setObjectName("next_image_button")
self.right_layout.addWidget(self.next_image_button)
self.horizontalLayout_2.addLayout(self.right_layout)
self.horizontalLayout.addWidget(self.left_frame)
self.right_frame = QtWidgets.QFrame(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
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_3 = QtWidgets.QHBoxLayout(self.right_frame)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.tag_layout = QtWidgets.QVBoxLayout()
self.tag_layout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
self.tag_layout.setObjectName("tag_layout")
self.search_tags_label = QtWidgets.QLabel(self.right_frame)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.search_tags_label.setFont(font)
self.search_tags_label.setObjectName("search_tags_label")
self.tag_layout.addWidget(self.search_tags_label)
self.tag_list_layout = QtWidgets.QVBoxLayout()
self.tag_list_layout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
self.tag_list_layout.setObjectName("tag_list_layout")
self.tag_search_bar = QtWidgets.QLineEdit(self.right_frame)
self.tag_search_bar.setMaximumSize(QtCore.QSize(400, 16777215))
self.tag_search_bar.setObjectName("tag_search_bar")
self.tag_list_layout.addWidget(self.tag_search_bar)
self.search_result_list = QtWidgets.QListView(self.right_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.search_result_list.sizePolicy().hasHeightForWidth())
self.search_result_list.setSizePolicy(sizePolicy)
self.search_result_list.setMinimumSize(QtCore.QSize(0, 0))
self.search_result_list.setMaximumSize(QtCore.QSize(400, 16777215))
self.search_result_list.setObjectName("search_result_list")
self.tag_list_layout.addWidget(self.search_result_list)
self.selected_tags_label = QtWidgets.QLabel(self.right_frame)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.selected_tags_label.setFont(font)
self.selected_tags_label.setObjectName("selected_tags_label")
self.tag_list_layout.addWidget(self.selected_tags_label)
self.tag_list = QtWidgets.QListView(self.right_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tag_list.sizePolicy().hasHeightForWidth())
self.tag_list.setSizePolicy(sizePolicy)
self.tag_list.setMinimumSize(QtCore.QSize(100, 0))
self.tag_list.setMaximumSize(QtCore.QSize(400, 16777215))
self.tag_list.setObjectName("tag_list")
self.tag_list_layout.addWidget(self.tag_list)
self.implied_tags_list = QtWidgets.QLabel(self.right_frame)
font = QtGui.QFont()
font.setPointSize(9)
font.setBold(True)
font.setWeight(75)
self.implied_tags_list.setFont(font)
self.implied_tags_list.setObjectName("implied_tags_list")
self.tag_list_layout.addWidget(self.implied_tags_list)
self.implied_tag_list = QtWidgets.QListView(self.right_frame)
self.implied_tag_list.setMinimumSize(QtCore.QSize(100, 0))
self.implied_tag_list.setMaximumSize(QtCore.QSize(400, 16777215))
self.implied_tag_list.setObjectName("implied_tag_list")
self.tag_list_layout.addWidget(self.implied_tag_list)
self.tag_layout.addLayout(self.tag_list_layout)
self.tag_button_layout = QtWidgets.QHBoxLayout()
self.tag_button_layout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
self.tag_button_layout.setSpacing(5)
self.tag_button_layout.setObjectName("tag_button_layout")
self.save_button = QtWidgets.QPushButton(self.right_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.save_button.sizePolicy().hasHeightForWidth())
self.save_button.setSizePolicy(sizePolicy)
self.save_button.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.save_button.setObjectName("save_button")
self.tag_button_layout.addWidget(self.save_button)
self.import_button = QtWidgets.QPushButton(self.right_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.import_button.sizePolicy().hasHeightForWidth())
self.import_button.setSizePolicy(sizePolicy)
self.import_button.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.import_button.setObjectName("import_button")
self.tag_button_layout.addWidget(self.import_button)
self.prev_unknown_image_button = QtWidgets.QPushButton(self.right_frame)
self.prev_unknown_image_button.setObjectName("prev_unknown_image_button")
self.tag_button_layout.addWidget(self.prev_unknown_image_button)
self.next_unknown_image_button = QtWidgets.QPushButton(self.right_frame)
self.next_unknown_image_button.setObjectName("next_unknown_image_button")
self.tag_button_layout.addWidget(self.next_unknown_image_button)
self.delete_button = QtWidgets.QPushButton(self.right_frame)
self.delete_button.setObjectName("delete_button")
self.tag_button_layout.addWidget(self.delete_button)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.tag_button_layout.addItem(spacerItem)
self.tag_layout.addLayout(self.tag_button_layout)
self.horizontalLayout_3.addLayout(self.tag_layout)
self.topic_docker_button = QtWidgets.QToolButton(self.right_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.topic_docker_button.sizePolicy().hasHeightForWidth())
self.topic_docker_button.setSizePolicy(sizePolicy)
self.topic_docker_button.setObjectName("topic_docker_button")
self.horizontalLayout_3.addWidget(self.topic_docker_button)
self.horizontalLayout.addWidget(self.right_frame)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 1140, 34))
self.menuBar.setObjectName("menuBar")
self.menuArtNet = QtWidgets.QMenu(self.menuBar)
self.menuArtNet.setObjectName("menuArtNet")
self.menuTags = QtWidgets.QMenu(self.menuBar)
self.menuTags.setObjectName("menuTags")
self.menuCategory = QtWidgets.QMenu(self.menuBar)
self.menuCategory.setObjectName("menuCategory")
MainWindow.setMenuBar(self.menuBar)
self.actionChange_Connection_Details = QtWidgets.QAction(MainWindow)
self.actionChange_Connection_Details.setObjectName("actionChange_Connection_Details")
self.actionChange_ArtNet_Root_Folder = QtWidgets.QAction(MainWindow)
self.actionChange_ArtNet_Root_Folder.setObjectName("actionChange_ArtNet_Root_Folder")
self.actionCreate_New_Tag = QtWidgets.QAction(MainWindow)
self.actionCreate_New_Tag.setObjectName("actionCreate_New_Tag")
self.actionDelete_a_Tag = QtWidgets.QAction(MainWindow)
self.actionDelete_a_Tag.setObjectName("actionDelete_a_Tag")
self.actionEdit_a_Tag = QtWidgets.QAction(MainWindow)
self.actionEdit_a_Tag.setObjectName("actionEdit_a_Tag")
self.actionCreate_New_Category = QtWidgets.QAction(MainWindow)
self.actionCreate_New_Category.setObjectName("actionCreate_New_Category")
self.actionDelete_a_Category = QtWidgets.QAction(MainWindow)
self.actionDelete_a_Category.setObjectName("actionDelete_a_Category")
self.actionCreate_New_Category_2 = QtWidgets.QAction(MainWindow)
self.actionCreate_New_Category_2.setObjectName("actionCreate_New_Category_2")
self.actionDelete_a_Category_2 = QtWidgets.QAction(MainWindow)
self.actionDelete_a_Category_2.setObjectName("actionDelete_a_Category_2")
self.menuArtNet.addAction(self.actionChange_Connection_Details)
self.menuArtNet.addAction(self.actionChange_ArtNet_Root_Folder)
self.menuTags.addAction(self.actionCreate_New_Tag)
self.menuTags.addAction(self.actionDelete_a_Tag)
self.menuTags.addAction(self.actionEdit_a_Tag)
self.menuCategory.addAction(self.actionCreate_New_Category_2)
self.menuCategory.addAction(self.actionDelete_a_Category_2)
self.menuBar.addAction(self.menuArtNet.menuAction())
self.menuBar.addAction(self.menuTags.menuAction())
self.menuBar.addAction(self.menuCategory.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.presence_docker_button.setText(_translate("MainWindow", "<"))
self.prev_image_button.setText(_translate("MainWindow", "<"))
self.image_title_line.setText(_translate("MainWindow", "Image_Title"))
self.image_file_label.setText(_translate("MainWindow", "file_name"))
self.author_by.setText(_translate("MainWindow", "by"))
self.image_author_label.setText(_translate("MainWindow", "author_name"))
self.image_label.setText(_translate("MainWindow", "No Image"))
self.link_label.setText(_translate("MainWindow", "Source_Link"))
self.source_link_label.setText(_translate("MainWindow", "Link:"))
self.description_label.setText(_translate("MainWindow", "Description:"))
self.next_image_button.setText(_translate("MainWindow", ">"))
self.search_tags_label.setText(_translate("MainWindow", "Search Tags"))
self.selected_tags_label.setText(_translate("MainWindow", "Selected Tags:"))
self.implied_tags_list.setText(_translate("MainWindow", "Implied Tags:"))
self.save_button.setText(_translate("MainWindow", "Save"))
self.import_button.setText(_translate("MainWindow", "Import Tags"))
self.prev_unknown_image_button.setText(_translate("MainWindow", "prev Unknown"))
self.next_unknown_image_button.setText(_translate("MainWindow", "next Unknown"))
self.delete_button.setText(_translate("MainWindow", "Delete"))
self.topic_docker_button.setText(_translate("MainWindow", ">"))
self.menuArtNet.setTitle(_translate("MainWindow", "ArtNet"))
self.menuTags.setTitle(_translate("MainWindow", "Tags"))
self.menuCategory.setTitle(_translate("MainWindow", "Category"))
self.actionChange_Connection_Details.setText(_translate("MainWindow", "Change DB Connection"))
self.actionChange_ArtNet_Root_Folder.setText(_translate("MainWindow", "Change ArtNet Root"))
self.actionCreate_New_Tag.setText(_translate("MainWindow", "Create New Tag"))
self.actionDelete_a_Tag.setText(_translate("MainWindow", "Delete a Tag"))
self.actionEdit_a_Tag.setText(_translate("MainWindow", "Edit a Tag"))
self.actionCreate_New_Category.setText(_translate("MainWindow", "Create New Category"))
self.actionDelete_a_Category.setText(_translate("MainWindow", "Delete a Category"))
self.actionCreate_New_Category_2.setText(_translate("MainWindow", "Create New Category"))
self.actionDelete_a_Category_2.setText(_translate("MainWindow", "Delete a Category"))
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_())

@ -1,587 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1140</width>
<height>849</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="enabled">
<bool>true</bool>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<item>
<widget class="QFrame" name="left_frame">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QToolButton" name="presence_docker_button">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&lt;</string>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="presence_docker_layout"/>
</item>
<item>
<layout class="QVBoxLayout" name="left_layout">
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
</property>
<item>
<widget class="QToolButton" name="prev_image_button">
<property name="text">
<string>&lt;</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QFrame" name="center_frame">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLineEdit" name="image_title_line">
<property name="font">
<font>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string>Image_Title</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="imageNumberSpinBox"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="image_file_label">
<property name="text">
<string>file_name</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="author_by">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>7</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>by</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="image_author_label">
<property name="font">
<font>
<pointsize>10</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>author_name</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="image_frame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="image_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>No Image</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="link_label">
<property name="font">
<font>
<pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Source_Link</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="source_link_label">
<property name="text">
<string>Link:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="link_line">
<property name="font">
<font>
<pointsize>7</pointsize>
</font>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="description_label">
<property name="text">
<string>Description:</string>
</property>
</widget>
</item>
<item>
<widget class="QTextEdit" name="description_edit"/>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="right_layout">
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
</property>
<item>
<widget class="QToolButton" name="next_image_button">
<property name="text">
<string>&gt;</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="right_frame">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<layout class="QVBoxLayout" name="tag_layout">
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
</property>
<item>
<widget class="QLabel" name="search_tags_label">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Search Tags</string>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="tag_list_layout">
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
</property>
<item>
<widget class="QLineEdit" name="tag_search_bar">
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="search_result_list">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="selected_tags_label">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Selected Tags:</string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="tag_list">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="implied_tags_list">
<property name="font">
<font>
<pointsize>9</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Implied Tags:</string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="implied_tag_list">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="tag_button_layout">
<property name="spacing">
<number>5</number>
</property>
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
</property>
<item>
<widget class="QPushButton" name="save_button">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Save</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="import_button">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Import Tags</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="prev_unknown_image_button">
<property name="text">
<string>prev Unknown</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="next_unknown_image_button">
<property name="text">
<string>next Unknown</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="delete_button">
<property name="text">
<string>Delete</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QToolButton" name="topic_docker_button">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1140</width>
<height>34</height>
</rect>
</property>
<widget class="QMenu" name="menuArtNet">
<property name="title">
<string>ArtNet</string>
</property>
<addaction name="actionChange_Connection_Details"/>
<addaction name="actionChange_ArtNet_Root_Folder"/>
</widget>
<widget class="QMenu" name="menuTags">
<property name="title">
<string>Tags</string>
</property>
<addaction name="actionCreate_New_Tag"/>
<addaction name="actionDelete_a_Tag"/>
<addaction name="actionEdit_a_Tag"/>
</widget>
<widget class="QMenu" name="menuCategory">
<property name="title">
<string>Category</string>
</property>
<addaction name="actionCreate_New_Category_2"/>
<addaction name="actionDelete_a_Category_2"/>
</widget>
<addaction name="menuArtNet"/>
<addaction name="menuTags"/>
<addaction name="menuCategory"/>
</widget>
<action name="actionChange_Connection_Details">
<property name="text">
<string>Change DB Connection</string>
</property>
</action>
<action name="actionChange_ArtNet_Root_Folder">
<property name="text">
<string>Change ArtNet Root</string>
</property>
</action>
<action name="actionCreate_New_Tag">
<property name="text">
<string>Create New Tag</string>
</property>
</action>
<action name="actionDelete_a_Tag">
<property name="text">
<string>Delete a Tag</string>
</property>
</action>
<action name="actionEdit_a_Tag">
<property name="text">
<string>Edit a Tag</string>
</property>
</action>
<action name="actionCreate_New_Category">
<property name="text">
<string>Create New Category</string>
</property>
</action>
<action name="actionDelete_a_Category">
<property name="text">
<string>Delete a Category</string>
</property>
</action>
<action name="actionCreate_New_Category_2">
<property name="text">
<string>Create New Category</string>
</property>
</action>
<action name="actionDelete_a_Category_2">
<property name="text">
<string>Delete a Category</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>

@ -7,7 +7,7 @@ from PyQt5.QtGui import QPixmap, QResizeEvent, QKeyEvent, QStandardItemModel, QS
from PyQt5 import QtMultimedia
from PyQt5.QtMultimediaWidgets import QVideoWidget
from ArtNet.gui.picture_importer import Ui_MainWindow
from ArtNet.gui.windows.picture_importer import Ui_MainWindow
from ArtNet.gui.dialogs.db_connection_dialog.db_dialog import DBDialog
from ArtNet.gui.dialogs.tag_modify_dialog.tag_mod_dialog import TagModifyDialog
from ArtNet.gui.dialogs.tag_select_dialog.tag_select_dialog import TagSelectDialog
@ -90,15 +90,6 @@ class Window(QtWidgets.QMainWindow):
self.ui.description_edit.setReadOnly(False)
tags = self.__main.db_connection.search_fuzzy_tag("", all_if_empty=True)
result = []
for tag_name, tag_desc, tag_category in tags:
result.append(tag_name)
complete = QtWidgets.QCompleter(result)
complete.setCaseSensitivity(Qt.CaseInsensitive)
self.ui.tag_search_bar.setCompleter(complete)
self.on_tag_search_change()
self.center()

Loading…
Cancel
Save