Make the interface better

This commit is contained in:
Christopher T. Johnson
2023-12-08 11:25:06 -05:00
parent 6135c5d278
commit 6752249680
8 changed files with 330 additions and 182 deletions

View File

@@ -22,19 +22,23 @@
<widget class="QWidget" name="widget" native="true">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QPushButton" name="WordButton">
<property name="enabled">
<bool>false</bool>
</property>
<widget class="QPushButton" name="readBtn">
<property name="text">
<string>Words</string>
<string>Read</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="toggleBtn">
<widget class="QPushButton" name="editBtn">
<property name="text">
<string>Enable</string>
<string>Edit</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
@@ -58,6 +62,13 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="addBtn">
<property name="text">
<string>Add Person</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@@ -80,8 +91,24 @@
</widget>
<widget class="QMenu" name="menuBooks">
<property name="title">
<string>Books</string>
<string>Edit</string>
</property>
<widget class="QMenu" name="menuBooks_2">
<property name="title">
<string>Books</string>
</property>
<addaction name="actionAddBook"/>
<addaction name="actionEditBook"/>
</widget>
<widget class="QMenu" name="menuPeople">
<property name="title">
<string>People</string>
</property>
<addaction name="actionAddPerson"/>
<addaction name="actionEditPerson"/>
</widget>
<addaction name="menuBooks_2"/>
<addaction name="menuPeople"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuBooks"/>
@@ -92,7 +119,112 @@
<string>Quit</string>
</property>
</action>
<action name="actionAddBook">
<property name="text">
<string>Add</string>
</property>
<property name="toolTip">
<string>Add Book</string>
</property>
</action>
<action name="actionEditBook">
<property name="text">
<string>Edit</string>
</property>
<property name="toolTip">
<string>Edit Book</string>
</property>
</action>
<action name="actionAddPerson">
<property name="text">
<string>Add</string>
</property>
<property name="toolTip">
<string>Add A Person</string>
</property>
</action>
<action name="actionEditPerson">
<property name="text">
<string>Edit</string>
</property>
<property name="toolTip">
<string>Edit A Person</string>
</property>
</action>
<action name="actionRead">
<property name="text">
<string>Read</string>
</property>
<property name="toolTip">
<string>Read Book</string>
</property>
</action>
</widget>
<resources/>
<connections/>
<connections>
<connection>
<sender>editBtn</sender>
<signal>clicked()</signal>
<receiver>actionEditPerson</receiver>
<slot>trigger()</slot>
<hints>
<hint type="sourcelabel">
<x>722</x>
<y>117</y>
</hint>
<hint type="destinationlabel">
<x>-1</x>
<y>-1</y>
</hint>
</hints>
</connection>
<connection>
<sender>addBtn</sender>
<signal>clicked()</signal>
<receiver>actionAddPerson</receiver>
<slot>trigger()</slot>
<hints>
<hint type="sourcelabel">
<x>722</x>
<y>532</y>
</hint>
<hint type="destinationlabel">
<x>-1</x>
<y>-1</y>
</hint>
</hints>
</connection>
<connection>
<sender>bookBtn</sender>
<signal>clicked()</signal>
<receiver>actionAddBook</receiver>
<slot>trigger()</slot>
<hints>
<hint type="sourcelabel">
<x>722</x>
<y>491</y>
</hint>
<hint type="destinationlabel">
<x>-1</x>
<y>-1</y>
</hint>
</hints>
</connection>
<connection>
<sender>readBtn</sender>
<signal>clicked()</signal>
<receiver>actionRead</receiver>
<slot>trigger()</slot>
<hints>
<hint type="sourcelabel">
<x>722</x>
<y>67</y>
</hint>
<hint type="destinationlabel">
<x>-1</x>
<y>-1</y>
</hint>
</hints>
</connection>
</connections>
</ui>