complete db & graph implementation (except for delete)

This commit is contained in:
2025-04-24 22:55:26 +01:00
parent d8c4b5d64d
commit 929c3719c0
12 changed files with 396 additions and 244 deletions

View File

@@ -1,55 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PlatformRename</class>
<widget class="QWidget" name="PlatformRename">
<widget class="QDialog" name="PlatformRename">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>300</width>
<height>90</height>
<height>100</height>
</rect>
</property>
<property name="windowTitle">
<string>Rename Platform</string>
<string>Name Platform</string>
</property>
<widget class="QPushButton" name="rename_plat_ok_but">
<widget class="QLineEdit" name="rename_plat_box">
<property name="geometry">
<rect>
<x>221</x>
<y>62</y>
<width>75</width>
<height>24</height>
<x>7</x>
<y>41</y>
<width>287</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>OK</string>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
</widget>
<widget class="QLabel" name="rename_plat_lab">
<property name="geometry">
<rect>
<x>60</x>
<y>10</y>
<width>191</width>
<x>35</x>
<y>9</y>
<width>241</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Enter a new name for the platform</string>
</property>
</widget>
<widget class="QLineEdit" name="rename_plat_box">
<widget class="QPushButton" name="rename_plat_ok_but">
<property name="geometry">
<rect>
<x>8</x>
<y>34</y>
<width>287</width>
<height>22</height>
<x>220</x>
<y>70</y>
<width>75</width>
<height>24</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>OK</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
<connections>
<connection>
<sender>rename_plat_ok_but</sender>
<signal>clicked()</signal>
<receiver>PlatformRename</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>257</x>
<y>71</y>
</hint>
<hint type="destinationlabel">
<x>149</x>
<y>44</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@@ -1,104 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ResultsWindow</class>
<widget class="QWidget" name="ResultsWindow">
<class>OutputWindow</class>
<widget class="QWidget" name="OutputWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>355</height>
<width>1330</width>
<height>630</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>400</width>
<height>355</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>355</height>
</size>
</property>
<property name="windowTitle">
<string>Results</string>
</property>
<widget class="QTextEdit" name="output">
<widget class="MplWidget" name="graphWidget" native="true">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>381</width>
<height>301</height>
<x>-10</x>
<y>-10</y>
<width>1350</width>
<height>650</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
</widget>
<widget class="QPushButton" name="res_ok_but">
<property name="geometry">
<rect>
<x>318</x>
<y>323</y>
<width>75</width>
<height>24</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>OK</string>
</property>
</widget>
<widget class="QPushButton" name="res_save_but">
<property name="geometry">
<rect>
<x>238</x>
<y>323</y>
<width>75</width>
<height>24</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>Save</string>
</property>
</widget>
</widget>
<tabstops>
<tabstop>output</tabstop>
<tabstop>res_save_but</tabstop>
<tabstop>res_ok_but</tabstop>
</tabstops>
<customwidgets>
<customwidget>
<class>MplWidget</class>
<extends>QWidget</extends>
<header>widgets/mpl_widget</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>res_ok_but</sender>
<signal>clicked(bool)</signal>
<receiver>ResultsWindow</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>357</x>
<y>281</y>
</hint>
<hint type="destinationlabel">
<x>199</x>
<y>149</y>
</hint>
</hints>
</connection>
</connections>
<connections/>
</ui>

View File

@@ -2,6 +2,9 @@
<ui version="4.0">
<class>PlatformEdit</class>
<widget class="QWidget" name="PlatformEdit">
<property name="windowModality">
<enum>Qt::WindowModality::ApplicationModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>

View File

@@ -2,6 +2,9 @@
<ui version="4.0">
<class>PlatformList</class>
<widget class="QWidget" name="PlatformList">
<property name="windowModality">
<enum>Qt::WindowModality::ApplicationModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
@@ -120,5 +123,22 @@
</widget>
</widget>
<resources/>
<connections/>
<connections>
<connection>
<sender>plist_save_but</sender>
<signal>clicked()</signal>
<receiver>PlatformList</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>196</x>
<y>453</y>
</hint>
<hint type="destinationlabel">
<x>131</x>
<y>236</y>
</hint>
</hints>
</connection>
</connections>
</ui>