Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
259 changes: 259 additions & 0 deletions src/GUI_UIs/ui_report_comparisons.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog_reportComparisons</class>
<widget class="QDialog" name="Dialog_reportComparisons">
<property name="windowModality">
<enum>Qt::WindowModality::NonModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>804</width>
<height>606</height>
</rect>
</property>
<property name="windowTitle">
<string>Coder Comparisons</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>132</height>
</size>
</property>
<property name="title">
<string/>
</property>
<widget class="QLabel" name="label_coders">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>32</width>
<height>28</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>32</width>
<height>28</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32</width>
<height>28</height>
</size>
</property>
<property name="toolTip">
<string>Coder</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QComboBox" name="comboBox_coders">
<property name="geometry">
<rect>
<x>50</x>
<y>27</y>
<width>221</width>
<height>32</height>
</rect>
</property>
<property name="toolTip">
<string>Select two coders</string>
</property>
</widget>
<widget class="QLabel" name="label_title">
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>491</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>Coder comparisons - text files</string>
</property>
</widget>
<widget class="QLabel" name="label_selections">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>751</width>
<height>32</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777213</width>
<height>32</height>
</size>
</property>
<property name="text">
<string>Coders selected:</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="pushButton_run">
<property name="geometry">
<rect>
<x>280</x>
<y>27</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="toolTip">
<string>Run comparison</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_clear">
<property name="geometry">
<rect>
<x>320</x>
<y>27</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="toolTip">
<string>Clear selection</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_export">
<property name="geometry">
<rect>
<x>360</x>
<y>27</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="toolTip">
<string>Export Excel</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_help1">
<property name="geometry">
<rect>
<x>400</x>
<y>27</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="toolTip">
<string>Statistics help</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_files">
<property name="geometry">
<rect>
<x>440</x>
<y>27</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="toolTip">
<string>Select text files for the comparison subcorpus</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_files">
<property name="geometry">
<rect>
<x>482</x>
<y>27</y>
<width>280</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>Files: All</string>
</property>
</widget>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string/>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>1</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<property name="rightMargin">
<number>1</number>
</property>
<property name="bottomMargin">
<number>1</number>
</property>
<property name="verticalSpacing">
<number>2</number>
</property>
<item row="0" column="0">
<widget class="QTreeWidget" name="treeWidget">
<column>
<property name="text">
<string notr="true">1</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>comboBox_coders</tabstop>
<tabstop>pushButton_run</tabstop>
<tabstop>pushButton_clear</tabstop>
<tabstop>pushButton_export</tabstop>
<tabstop>pushButton_help1</tabstop>
<tabstop>treeWidget</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>
60 changes: 23 additions & 37 deletions src/qualcoder/GUI/ui_report_comparisons.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Form implementation generated from reading ui file 'ui_report_comparisons.ui'
# Form implementation generated from reading ui file 'src/GUI_UIs/ui_report_comparisons.ui'
#
# Created by: PyQt6 UI code generator 6.10.2
# Created by: PyQt6 UI code generator 6.11.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
Expand All @@ -21,14 +21,6 @@ def setupUi(self, Dialog_reportComparisons):
self.groupBox.setMaximumSize(QtCore.QSize(16777215, 132))
self.groupBox.setTitle("")
self.groupBox.setObjectName("groupBox")
self.pushButton_export = QtWidgets.QPushButton(parent=self.groupBox)
self.pushButton_export.setGeometry(QtCore.QRect(360, 27, 32, 32))
self.pushButton_export.setText("")
self.pushButton_export.setObjectName("pushButton_export")
self.pushButton_run = QtWidgets.QPushButton(parent=self.groupBox)
self.pushButton_run.setGeometry(QtCore.QRect(280, 27, 32, 32))
self.pushButton_run.setText("")
self.pushButton_run.setObjectName("pushButton_run")
self.label_coders = QtWidgets.QLabel(parent=self.groupBox)
self.label_coders.setGeometry(QtCore.QRect(10, 30, 32, 28))
self.label_coders.setMinimumSize(QtCore.QSize(32, 28))
Expand All @@ -38,10 +30,6 @@ def setupUi(self, Dialog_reportComparisons):
self.comboBox_coders = QtWidgets.QComboBox(parent=self.groupBox)
self.comboBox_coders.setGeometry(QtCore.QRect(50, 27, 221, 32))
self.comboBox_coders.setObjectName("comboBox_coders")
self.pushButton_clear = QtWidgets.QPushButton(parent=self.groupBox)
self.pushButton_clear.setGeometry(QtCore.QRect(320, 27, 32, 32))
self.pushButton_clear.setText("")
self.pushButton_clear.setObjectName("pushButton_clear")
self.label_title = QtWidgets.QLabel(parent=self.groupBox)
self.label_title.setGeometry(QtCore.QRect(10, 0, 491, 22))
self.label_title.setObjectName("label_title")
Expand All @@ -51,19 +39,29 @@ def setupUi(self, Dialog_reportComparisons):
self.label_selections.setMaximumSize(QtCore.QSize(16777213, 32))
self.label_selections.setWordWrap(True)
self.label_selections.setObjectName("label_selections")
self.pushButton_run = QtWidgets.QPushButton(parent=self.groupBox)
self.pushButton_run.setGeometry(QtCore.QRect(280, 27, 32, 32))
self.pushButton_run.setText("")
self.pushButton_run.setObjectName("pushButton_run")
self.pushButton_clear = QtWidgets.QPushButton(parent=self.groupBox)
self.pushButton_clear.setGeometry(QtCore.QRect(320, 27, 32, 32))
self.pushButton_clear.setText("")
self.pushButton_clear.setObjectName("pushButton_clear")
self.pushButton_export = QtWidgets.QPushButton(parent=self.groupBox)
self.pushButton_export.setGeometry(QtCore.QRect(360, 27, 32, 32))
self.pushButton_export.setText("")
self.pushButton_export.setObjectName("pushButton_export")
self.pushButton_help1 = QtWidgets.QPushButton(parent=self.groupBox)
self.pushButton_help1.setGeometry(QtCore.QRect(400, 27, 32, 32))
self.pushButton_help1.setText("")
self.pushButton_help1.setObjectName("pushButton_help1")
self.label_files = QtWidgets.QLabel(parent=self.groupBox)
self.label_files.setGeometry(QtCore.QRect(10, 97, 751, 32))
self.label_files.setMinimumSize(QtCore.QSize(0, 32))
self.label_files.setMaximumSize(QtCore.QSize(16777213, 32))
self.label_files.setWordWrap(True)
self.label_files.setObjectName("label_files")
self.pushButton_files = QtWidgets.QPushButton(parent=self.groupBox)
self.pushButton_files.setGeometry(QtCore.QRect(440, 27, 110, 32))
self.pushButton_files.setGeometry(QtCore.QRect(440, 27, 32, 32))
self.pushButton_files.setText("")
self.pushButton_files.setObjectName("pushButton_files")
self.label_files = QtWidgets.QLabel(parent=self.groupBox)
self.label_files.setGeometry(QtCore.QRect(482, 27, 280, 32))
self.label_files.setObjectName("label_files")
self.verticalLayout.addWidget(self.groupBox)
self.groupBox_2 = QtWidgets.QGroupBox(parent=Dialog_reportComparisons)
self.groupBox_2.setTitle("")
Expand All @@ -89,25 +87,13 @@ def setupUi(self, Dialog_reportComparisons):
def retranslateUi(self, Dialog_reportComparisons):
_translate = QtCore.QCoreApplication.translate
Dialog_reportComparisons.setWindowTitle(_translate("Dialog_reportComparisons", "Coder Comparisons"))
self.pushButton_export.setToolTip(_translate("Dialog_reportComparisons", "Export Excel"))
self.pushButton_run.setToolTip(_translate("Dialog_reportComparisons", "Run comparison"))
self.label_coders.setToolTip(_translate("Dialog_reportComparisons", "Coder"))
self.comboBox_coders.setToolTip(_translate("Dialog_reportComparisons", "Select two coders"))
self.pushButton_clear.setToolTip(_translate("Dialog_reportComparisons", "Clear selection"))
self.label_title.setText(_translate("Dialog_reportComparisons", "Coder comparisons - text files"))
self.label_selections.setText(_translate("Dialog_reportComparisons", "Coders selected:"))
self.pushButton_run.setToolTip(_translate("Dialog_reportComparisons", "Run comparison"))
self.pushButton_clear.setToolTip(_translate("Dialog_reportComparisons", "Clear selection"))
self.pushButton_export.setToolTip(_translate("Dialog_reportComparisons", "Export Excel"))
self.pushButton_help1.setToolTip(_translate("Dialog_reportComparisons", "Statistics help"))
self.pushButton_files.setText(_translate("Dialog_reportComparisons", "Select files"))
self.pushButton_files.setToolTip(_translate("Dialog_reportComparisons", "Select text files for the comparison subcorpus"))
self.label_files.setText(_translate("Dialog_reportComparisons", "Files: all text files"))


if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Dialog_reportComparisons = QtWidgets.QDialog()
ui = Ui_Dialog_reportComparisons()
ui.setupUi(Dialog_reportComparisons)
Dialog_reportComparisons.show()
sys.exit(app.exec())

self.label_files.setText(_translate("Dialog_reportComparisons", "Files: All"))
1 change: 1 addition & 0 deletions src/qualcoder/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ def __init__(self, app, parent_textedit):
self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowType.WindowContextHelpButtonHint)
self.ui.pushButton_run.setEnabled(False)
self.ui.pushButton_run.pressed.connect(self.calculate_statistics)
self.ui.pushButton_files.setIcon(qta.icon('mdi6.file-document-multiple-outline', options=[{'scale_factor': 1.4}]))
self.ui.pushButton_files.pressed.connect(self.select_files)
self.ui.pushButton_run.setIcon(qta.icon('mdi6.play', options=[{'scale_factor': 1.4}]))
self.ui.pushButton_clear.pressed.connect(self.clear_selection)
Expand Down
Loading