# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'manage_categories_ui.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_categories_dialog(object):
    def setupUi(self, categories_dialog):
        categories_dialog.setObjectName("categories_dialog")
        categories_dialog.resize(350, 250)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(categories_dialog.sizePolicy().hasHeightForWidth())
        categories_dialog.setSizePolicy(sizePolicy)
        categories_dialog.setMinimumSize(QtCore.QSize(350, 250))
        categories_dialog.setMaximumSize(QtCore.QSize(350, 250))
        categories_dialog.setWindowTitle("Manage Categories")
        self.list_categories = QtWidgets.QListView(categories_dialog)
        self.list_categories.setGeometry(QtCore.QRect(10, 10, 181, 201))
        self.list_categories.setObjectName("list_categories")
        self.txt_desc = QtWidgets.QTextEdit(categories_dialog)
        self.txt_desc.setGeometry(QtCore.QRect(200, 110, 141, 101))
        self.txt_desc.setObjectName("txt_desc")
        self.txt_cat_name = QtWidgets.QLineEdit(categories_dialog)
        self.txt_cat_name.setGeometry(QtCore.QRect(200, 70, 101, 20))
        self.txt_cat_name.setObjectName("txt_cat_name")
        self.lbl_cat_name = QtWidgets.QLabel(categories_dialog)
        self.lbl_cat_name.setGeometry(QtCore.QRect(200, 50, 141, 16))
        self.lbl_cat_name.setObjectName("lbl_cat_name")
        self.lbl_desc = QtWidgets.QLabel(categories_dialog)
        self.lbl_desc.setGeometry(QtCore.QRect(200, 90, 141, 16))
        self.lbl_desc.setObjectName("lbl_desc")
        self.btn_new_cat = QtWidgets.QToolButton(categories_dialog)
        self.btn_new_cat.setGeometry(QtCore.QRect(160, 220, 31, 21))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("./res/add-icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_new_cat.setIcon(icon)
        self.btn_new_cat.setObjectName("btn_new_cat")
        self.btn_del_cat = QtWidgets.QToolButton(categories_dialog)
        self.btn_del_cat.setGeometry(QtCore.QRect(10, 220, 31, 21))
        self.btn_del_cat.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("./res/remove-icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_del_cat.setIcon(icon1)
        self.btn_del_cat.setObjectName("btn_del_cat")
        self.lbl_cat_code = QtWidgets.QLabel(categories_dialog)
        self.lbl_cat_code.setGeometry(QtCore.QRect(200, 10, 141, 16))
        self.lbl_cat_code.setText("Category Code")
        self.lbl_cat_code.setObjectName("lbl_cat_code")
        self.txt_cat_code = QtWidgets.QLineEdit(categories_dialog)
        self.txt_cat_code.setGeometry(QtCore.QRect(200, 30, 81, 20))
        self.txt_cat_code.setObjectName("txt_cat_code")
        self.btn_update = QtWidgets.QPushButton(categories_dialog)
        self.btn_update.setGeometry(QtCore.QRect(260, 220, 81, 23))
        self.btn_update.setObjectName("btn_update")

        self.retranslateUi(categories_dialog)
        QtCore.QMetaObject.connectSlotsByName(categories_dialog)

    def retranslateUi(self, categories_dialog):
        _translate = QtCore.QCoreApplication.translate
        self.lbl_cat_name.setText(_translate("categories_dialog", "Category Name"))
        self.lbl_desc.setText(_translate("categories_dialog", "Category Description"))
        self.btn_new_cat.setToolTip(_translate("categories_dialog", "<html><head/><body><p>Add a new category</p></body></html>"))
        self.btn_del_cat.setToolTip(_translate("categories_dialog", "<html><head/><body><p>Remove currently selected category</p></body></html>"))
        self.btn_update.setText(_translate("categories_dialog", "Update"))

