From: Ralphred
Date: Fri, 2 Jul 2021 08:41:23 +0000 (+0100)
Subject: First proper commit.
X-Git-Url: https://git.liquid.me.uk/?a=commitdiff_plain;h=81c9bdf0497c37f7a16b6e7e4c595bf7ee0a2ebd;p=qtgentools.git
First proper commit.
---
diff --git a/QtGentools.epj b/QtGentools.epj
index 30fd7eb..71d1337 100644
--- a/QtGentools.epj
+++ b/QtGentools.epj
@@ -2,7 +2,7 @@
"header": {
"comment": "eric project file for project QtGentools",
"copyright": "Copyright (C) 2021 Andrew Foster, qtgentools@liquid.me.uk",
- "saved": "2021-06-30, 00:16:36"
+ "saved": "2021-06-30, 08:26:38"
},
"project": {
"AUTHOR": "Andrew Foster",
@@ -34,7 +34,9 @@
"README.*": "OTHERS",
"makefile": "OTHERS"
},
- "FORMS": [],
+ "FORMS": [
+ "ui/mainwindow.ui"
+ ],
"HASH": "d281728577b1da42b1c49d27174d437ec65311a5",
"IDLPARAMS": {
"DefinedNames": [],
@@ -71,7 +73,9 @@
"RESOURCES": [],
"SOURCES": [
"__init__.py",
- "qtgentools.py"
+ "qtgentools.py",
+ "ui/Ui_mainwindow.py",
+ "ui/mainwindow.py"
],
"SPELLEXCLUDES": "",
"SPELLLANGUAGE": "",
diff --git a/__init__.py b/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/qtgentools.py b/qtgentools.py
old mode 100644
new mode 100755
index e69de29..b30c0a0
--- a/qtgentools.py
+++ b/qtgentools.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+from PyQt5 import QtWidgets
+from ui.mainwindow import MainWindow
+
+if __name__ == "__main__":
+ import sys
+ app = QtWidgets.QApplication(sys.argv)
+ ui = MainWindow()
+ ui.show()
+ sys.exit(app.exec_())
+
diff --git a/ui/Ui_mainwindow.py b/ui/Ui_mainwindow.py
index 399f726..a3f08d7 100644
--- a/ui/Ui_mainwindow.py
+++ b/ui/Ui_mainwindow.py
@@ -14,7 +14,7 @@ from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
- MainWindow.resize(714, 450)
+ MainWindow.resize(685, 452)
self.centralWidget = QtWidgets.QWidget(MainWindow)
self.centralWidget.setObjectName("centralWidget")
self.gridLayout_2 = QtWidgets.QGridLayout(self.centralWidget)
@@ -58,10 +58,12 @@ class Ui_MainWindow(object):
self.s_tv_results.setAlternatingRowColors(True)
self.s_tv_results.setSelectionMode(QtWidgets.QAbstractItemView.NoSelection)
self.s_tv_results.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems)
- self.s_tv_results.setSortingEnabled(True)
+ self.s_tv_results.setSortingEnabled(False)
self.s_tv_results.setWordWrap(False)
self.s_tv_results.setObjectName("s_tv_results")
- self.s_tv_results.header().setSortIndicatorShown(True)
+ self.s_tv_results.header().setCascadingSectionResizes(False)
+ self.s_tv_results.header().setSortIndicatorShown(False)
+ self.s_tv_results.header().setStretchLastSection(True)
self.gridLayout.addWidget(self.s_tv_results, 3, 0, 1, 11)
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
self.verticalLayout_4.setObjectName("verticalLayout_4")
@@ -131,24 +133,26 @@ class Ui_MainWindow(object):
self.tw_1.addTab(self.tab_search, "")
self.tab_depgraph = QtWidgets.QWidget()
self.tab_depgraph.setObjectName("tab_depgraph")
- self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_depgraph)
- self.gridLayout_3.setObjectName("gridLayout_3")
+ self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_depgraph)
+ self.gridLayout_4.setObjectName("gridLayout_4")
self.d_rb_select = QtWidgets.QRadioButton(self.tab_depgraph)
self.d_rb_select.setChecked(True)
self.d_rb_select.setObjectName("d_rb_select")
- self.gridLayout_3.addWidget(self.d_rb_select, 0, 0, 1, 1)
+ self.gridLayout_4.addWidget(self.d_rb_select, 0, 0, 1, 1)
self.d_cb_category = QtWidgets.QComboBox(self.tab_depgraph)
self.d_cb_category.setObjectName("d_cb_category")
self.d_cb_category.addItem("")
- self.gridLayout_3.addWidget(self.d_cb_category, 0, 1, 1, 2)
+ self.gridLayout_4.addWidget(self.d_cb_category, 0, 1, 1, 1)
self.d_cb_package = QtWidgets.QComboBox(self.tab_depgraph)
self.d_cb_package.setObjectName("d_cb_package")
self.d_cb_package.addItem("")
- self.gridLayout_3.addWidget(self.d_cb_package, 0, 3, 1, 1)
+ self.gridLayout_4.addWidget(self.d_cb_package, 0, 2, 1, 1)
self.d_cb_version = QtWidgets.QComboBox(self.tab_depgraph)
self.d_cb_version.setObjectName("d_cb_version")
self.d_cb_version.addItem("")
- self.gridLayout_3.addWidget(self.d_cb_version, 0, 4, 1, 1)
+ self.gridLayout_4.addWidget(self.d_cb_version, 0, 3, 1, 1)
+ self.gridLayout_3 = QtWidgets.QGridLayout()
+ self.gridLayout_3.setObjectName("gridLayout_3")
self.d_label_depth = QtWidgets.QLabel(self.tab_depgraph)
self.d_label_depth.setMaximumSize(QtCore.QSize(60, 16777215))
font = QtGui.QFont()
@@ -158,7 +162,7 @@ class Ui_MainWindow(object):
self.d_label_depth.setLayoutDirection(QtCore.Qt.LeftToRight)
self.d_label_depth.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.d_label_depth.setObjectName("d_label_depth")
- self.gridLayout_3.addWidget(self.d_label_depth, 0, 5, 1, 1)
+ self.gridLayout_3.addWidget(self.d_label_depth, 0, 0, 1, 1)
self.d_le_depth = QtWidgets.QLineEdit(self.tab_depgraph)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
@@ -170,22 +174,27 @@ class Ui_MainWindow(object):
self.d_le_depth.setBaseSize(QtCore.QSize(30, 0))
self.d_le_depth.setInputMask("")
self.d_le_depth.setObjectName("d_le_depth")
- self.gridLayout_3.addWidget(self.d_le_depth, 0, 6, 1, 1)
- spacerItem3 = QtWidgets.QSpacerItem(50, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
- self.gridLayout_3.addItem(spacerItem3, 0, 7, 1, 1)
+ self.gridLayout_3.addWidget(self.d_le_depth, 0, 1, 1, 1)
+ self.d_ckb_installed = QtWidgets.QCheckBox(self.tab_depgraph)
+ self.d_ckb_installed.setObjectName("d_ckb_installed")
+ self.gridLayout_3.addWidget(self.d_ckb_installed, 1, 0, 1, 2)
+ self.gridLayout_4.addLayout(self.gridLayout_3, 0, 4, 2, 1)
+ spacerItem3 = QtWidgets.QSpacerItem(0, 48, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.gridLayout_4.addItem(spacerItem3, 0, 5, 2, 1)
self.d_pb_calculate = QtWidgets.QPushButton(self.tab_depgraph)
self.d_pb_calculate.setObjectName("d_pb_calculate")
- self.gridLayout_3.addWidget(self.d_pb_calculate, 0, 8, 1, 2)
+ self.gridLayout_4.addWidget(self.d_pb_calculate, 0, 6, 1, 1)
self.d_rb_manual = QtWidgets.QRadioButton(self.tab_depgraph)
self.d_rb_manual.setObjectName("d_rb_manual")
- self.gridLayout_3.addWidget(self.d_rb_manual, 1, 0, 1, 1)
+ self.gridLayout_4.addWidget(self.d_rb_manual, 1, 0, 1, 1)
self.d_le_package = QtWidgets.QLineEdit(self.tab_depgraph)
self.d_le_package.setEnabled(False)
+ self.d_le_package.setText("")
+ self.d_le_package.setPlaceholderText("")
self.d_le_package.setObjectName("d_le_package")
- self.gridLayout_3.addWidget(self.d_le_package, 1, 1, 1, 4)
- self.d_ckb_installed = QtWidgets.QCheckBox(self.tab_depgraph)
- self.d_ckb_installed.setObjectName("d_ckb_installed")
- self.gridLayout_3.addWidget(self.d_ckb_installed, 1, 5, 1, 4)
+ self.gridLayout_4.addWidget(self.d_le_package, 1, 1, 1, 3)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 18, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ self.gridLayout_4.addItem(spacerItem4, 1, 6, 1, 1)
self.d_tv_results = QtWidgets.QTreeView(self.tab_depgraph)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
@@ -194,21 +203,37 @@ class Ui_MainWindow(object):
self.d_tv_results.setSizePolicy(sizePolicy)
self.d_tv_results.setMinimumSize(QtCore.QSize(0, 250))
self.d_tv_results.setObjectName("d_tv_results")
- self.gridLayout_3.addWidget(self.d_tv_results, 2, 0, 1, 10)
+ self.gridLayout_4.addWidget(self.d_tv_results, 2, 0, 1, 7)
self.d_pbar = QtWidgets.QProgressBar(self.tab_depgraph)
self.d_pbar.setProperty("value", 0)
self.d_pbar.setTextVisible(True)
self.d_pbar.setFormat("")
self.d_pbar.setObjectName("d_pbar")
- self.gridLayout_3.addWidget(self.d_pbar, 3, 0, 1, 10)
+ self.gridLayout_4.addWidget(self.d_pbar, 3, 0, 1, 7)
+ self.gridLayout_7 = QtWidgets.QGridLayout()
+ self.gridLayout_7.setObjectName("gridLayout_7")
self.d_pb_expand = QtWidgets.QPushButton(self.tab_depgraph)
self.d_pb_expand.setObjectName("d_pb_expand")
- self.gridLayout_3.addWidget(self.d_pb_expand, 4, 0, 1, 1)
+ self.gridLayout_7.addWidget(self.d_pb_expand, 0, 0, 1, 1)
self.d_pb_collapse = QtWidgets.QPushButton(self.tab_depgraph)
self.d_pb_collapse.setObjectName("d_pb_collapse")
- self.gridLayout_3.addWidget(self.d_pb_collapse, 4, 1, 1, 1)
- spacerItem4 = QtWidgets.QSpacerItem(372, 27, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
- self.gridLayout_3.addItem(spacerItem4, 4, 2, 1, 8)
+ self.gridLayout_7.addWidget(self.d_pb_collapse, 0, 1, 1, 1)
+ spacerItem5 = QtWidgets.QSpacerItem(3000, 27, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.gridLayout_7.addItem(spacerItem5, 0, 2, 1, 1)
+ self.label = QtWidgets.QLabel(self.tab_depgraph)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMaximumSize(QtCore.QSize(100, 16777215))
+ self.label.setObjectName("label")
+ self.gridLayout_7.addWidget(self.label, 0, 3, 1, 1)
+ self.d_lcd_deps = QtWidgets.QLCDNumber(self.tab_depgraph)
+ self.d_lcd_deps.setSegmentStyle(QtWidgets.QLCDNumber.Flat)
+ self.d_lcd_deps.setObjectName("d_lcd_deps")
+ self.gridLayout_7.addWidget(self.d_lcd_deps, 0, 4, 1, 1)
+ self.gridLayout_4.addLayout(self.gridLayout_7, 4, 0, 1, 7)
self.tw_1.addTab(self.tab_depgraph, "")
self.tab_update = QtWidgets.QWidget()
self.tab_update.setObjectName("tab_update")
@@ -236,22 +261,24 @@ class Ui_MainWindow(object):
self.tree_buttongroup.addButton(self.e_rb_update)
self.gridLayout_5.addWidget(self.e_rb_update, 0, 1, 1, 1)
self.e_cb_deep = QtWidgets.QCheckBox(self.tab_update)
- self.e_cb_deep.setChecked(True)
+ self.e_cb_deep.setChecked(False)
self.e_cb_deep.setObjectName("e_cb_deep")
self.gridLayout_5.addWidget(self.e_cb_deep, 0, 2, 1, 1)
self.e_rb_world = QtWidgets.QRadioButton(self.tab_update)
- self.e_rb_world.setChecked(True)
+ self.e_rb_world.setCheckable(True)
+ self.e_rb_world.setChecked(False)
self.e_rb_world.setObjectName("e_rb_world")
self.atom_buttongroup = QtWidgets.QButtonGroup(MainWindow)
self.atom_buttongroup.setObjectName("atom_buttongroup")
self.atom_buttongroup.addButton(self.e_rb_world)
self.gridLayout_5.addWidget(self.e_rb_world, 0, 3, 1, 1)
self.e_rb_atom = QtWidgets.QRadioButton(self.tab_update)
+ self.e_rb_atom.setChecked(True)
self.e_rb_atom.setObjectName("e_rb_atom")
self.atom_buttongroup.addButton(self.e_rb_atom)
self.gridLayout_5.addWidget(self.e_rb_atom, 0, 4, 1, 1)
- spacerItem5 = QtWidgets.QSpacerItem(44, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
- self.gridLayout_5.addItem(spacerItem5, 0, 5, 1, 1)
+ spacerItem6 = QtWidgets.QSpacerItem(44, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+ self.gridLayout_5.addItem(spacerItem6, 0, 5, 1, 1)
self.e_pb_go = QtWidgets.QPushButton(self.tab_update)
self.e_pb_go.setObjectName("e_pb_go")
self.gridLayout_5.addWidget(self.e_pb_go, 0, 6, 1, 1)
@@ -291,14 +318,14 @@ class Ui_MainWindow(object):
MainWindow.setCentralWidget(self.centralWidget)
self.retranslateUi(MainWindow)
- self.tw_1.setCurrentIndex(1)
+ self.tw_1.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "PyGentools"))
self.s_pb_expand_pkg.setToolTip(_translate("MainWindow", "
Expand all categories to show packages
"))
- self.s_pb_expand_pkg.setText(_translate("MainWindow", "Expand Pkgs"))
+ self.s_pb_expand_pkg.setText(_translate("MainWindow", "Exp Categories"))
self.s_pb_updatedb.setToolTip(_translate("MainWindow", "\n"
"