Skip to content

Commit

Permalink
Add showing and loading from Regeltest-Archive and export as CSV
Browse files Browse the repository at this point in the history
This enables the user to create CSV for creating PowerPoint-Regeltests and recreate previously made Regeltests
  • Loading branch information
jfeil committed May 4, 2023
1 parent 233a6cf commit 344b12f
Show file tree
Hide file tree
Showing 11 changed files with 775 additions and 273 deletions.
97 changes: 59 additions & 38 deletions res/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,35 @@
<property name="title">
<string>Ansicht</string>
</property>
<addaction name="actionAnsicht_zur_cksetzen"/>
<addaction name="actionAnsicht_zur_cksetzen"/>
</widget>
<widget class="QMenu" name="menuBearbeiten">
<property name="title">
<string>Bearbeiten</string>
</property>
<addaction name="actionNeue_Kategorie_erstellen"/>
<addaction name="actionRegeltest_einrichten"/>
<addaction name="actionRegeltest_l_schen"/>
</widget>
<widget class="QMenu" name="menu_ber">
<property name="title">
<string>Hilfe</string>
</property>
<addaction name="actionAuf_Updates_pr_fen"/>
<addaction name="action_ber"/>
</widget>
<addaction name="menuDatei"/>
<addaction name="menuBearbeiten"/>
<addaction name="menuAnsicht"/>
<addaction name="menu_ber"/>
<widget class="QMenu" name="menuBearbeiten">
<property name="title">
<string>Bearbeiten</string>
</property>
<addaction name="actionNeue_Kategorie_erstellen"/>
<addaction name="actionRegeltest_einrichten"/>
<addaction name="actionRegeltest_l_schen"/>
</widget>
<widget class="QMenu" name="menu_ber">
<property name="title">
<string>Hilfe</string>
</property>
<addaction name="actionAuf_Updates_pr_fen"/>
<addaction name="action_ber"/>
</widget>
<widget class="QMenu" name="menuRegeltest">
<property name="title">
<string>Regeltest</string>
</property>
<addaction name="actionBisherige_Regeltests"/>
<addaction name="actionDesign_erstellen"/>
</widget>
<addaction name="menuDatei"/>
<addaction name="menuBearbeiten"/>
<addaction name="menuRegeltest"/>
<addaction name="menuAnsicht"/>
<addaction name="menu_ber"/>
</widget>
<widget class="QDockWidget" name="main_window_dockwidget">
<property name="windowTitle">
Expand All @@ -93,26 +101,26 @@
</widget>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar</string>
<string>toolBar</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="actionSelftest"/>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="actionSelftest"/>
</widget>
<action name="actionNeue_Kategorie_erstellen">
<property name="text">
<string>Neue Kategorie erstellen</string>
</property>
</action>
<action name="actionAnsicht_zur_cksetzen">
<property name="text">
<string>Ansicht zurücksetzen</string>
</property>
</action>
<action name="actionNeue_Kategorie_erstellen">
<property name="text">
<string>Neue Kategorie erstellen</string>
</property>
</action>
<action name="actionAnsicht_zur_cksetzen">
<property name="text">
<string>Ansicht zurücksetzen</string>
</property>
</action>
<action name="actionRegeltest_l_schen">
<property name="text">
<string>Regeltest löschen</string>
Expand Down Expand Up @@ -153,6 +161,19 @@
<string>Aus dem Internet</string>
</property>
</action>
<action name="actionBisherige_Regeltests">
<property name="text">
<string>Regeltest-Archiv</string>
</property>
</action>
<action name="actionDesign_erstellen">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Designs verwalten</string>
</property>
</action>
</widget>
<resources/>
<connections/>
Expand Down
163 changes: 163 additions & 0 deletions res/regeltest_archive.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>RegeltestArchiveDialog</class>
<widget class="QDialog" name="RegeltestArchiveDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>639</width>
<height>360</height>
</rect>
</property>
<property name="windowTitle">
<string>Regeltest-Archiv</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTableWidget" name="regeltestTable">
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<attribute name="horizontalHeaderCascadingSectionResizes">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
<bool>true</bool>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderStretchLastSection">
<bool>false</bool>
</attribute>
<row>
<property name="text">
<string/>
</property>
</row>
<column>
<property name="text">
<string>Nr.</string>
</property>
</column>
<column>
<property name="text">
<string>Titel</string>
</property>
</column>
<column>
<property name="text">
<string>Anzahl Fragen</string>
</property>
</column>
<column>
<property name="text">
<string>Maximale Punktzahl</string>
</property>
</column>
<column>
<property name="text">
<string>Datum</string>
</property>
</column>
<item row="0" column="0">
<property name="text">
<string>1</string>
</property>
</item>
<item row="0" column="1">
<property name="text">
<string>A / KK Regeltest</string>
</property>
</item>
<item row="0" column="2">
<property name="text">
<string>15</string>
</property>
</item>
<item row="0" column="3">
<property name="text">
<string>30</string>
</property>
</item>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<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>
<item>
<widget class="QPushButton" name="load_button">
<property name="text">
<string>Laden</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancel_button">
<property name="text">
<string>Abbrechen</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>load_button</sender>
<signal>clicked()</signal>
<receiver>RegeltestArchiveDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>380</x>
<y>337</y>
</hint>
<hint type="destinationlabel">
<x>254</x>
<y>179</y>
</hint>
</hints>
</connection>
<connection>
<sender>cancel_button</sender>
<signal>clicked()</signal>
<receiver>RegeltestArchiveDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>461</x>
<y>337</y>
</hint>
<hint type="destinationlabel">
<x>254</x>
<y>179</y>
</hint>
</hints>
</connection>
</connections>
</ui>
Loading

0 comments on commit 344b12f

Please sign in to comment.