initial commit

This commit is contained in:
2025-01-28 15:25:41 +00:00
commit cafe2da484
13 changed files with 597 additions and 0 deletions

174
gui/main_gui.ui Normal file
View File

@ -0,0 +1,174 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>420</width>
<height>250</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>420</width>
<height>250</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>420</width>
<height>250</height>
</size>
</property>
<property name="windowTitle">
<string>SIPPCompare</string>
</property>
<property name="tabShape">
<enum>QTabWidget::TabShape::Rounded</enum>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QWidget" name="formLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>401</width>
<height>191</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="leftMargin">
<number>5</number>
</property>
<property name="topMargin">
<number>5</number>
</property>
<property name="rightMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="value_lab">
<property name="text">
<string>Pension value</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="value_input">
<property name="inputMask">
<string>£0000000000</string>
</property>
<property name="text">
<string>£</string>
</property>
<property name="maxLength">
<number>11</number>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="cursorPosition">
<number>1</number>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QLabel" name="mix_lab">
<property name="text">
<string>Investment mix (funds 50% / shares 50%)</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QSlider" name="mix_slider">
<property name="maximum">
<number>100</number>
</property>
<property name="value">
<number>50</number>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::TickPosition::NoTicks</enum>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="share_trades_lab">
<property name="text">
<string>Annual share trades</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="share_trades_combo">
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="fund_trades_lab">
<property name="text">
<string>Annual fund trades</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="fund_trades_combo">
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QPushButton" name="calc_but">
<property name="text">
<string>Calculate</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QStatusBar" name="statusbar">
<property name="enabled">
<bool>true</bool>
</property>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>420</width>
<height>33</height>
</rect>
</property>
<widget class="QMenu" name="menuPlatforms">
<property name="title">
<string>File</string>
</property>
<addaction name="actionEdit_Platforms"/>
</widget>
<addaction name="menuPlatforms"/>
</widget>
<action name="actionEdit_Platforms">
<property name="text">
<string>Edit Platforms</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>

71
gui/output_window.ui Normal file
View File

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ResultsWindow</class>
<widget class="QWidget" name="ResultsWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="windowTitle">
<string>Results</string>
</property>
<widget class="QTextEdit" name="output">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>380</width>
<height>250</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="res_ok_but">
<property name="geometry">
<rect>
<x>320</x>
<y>270</y>
<width>75</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>OK</string>
</property>
</widget>
</widget>
<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>
</ui>

70
gui/platform_edit.ui Normal file
View File

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PlatformEdit</class>
<widget class="QWidget" name="PlatformEdit">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>771</width>
<height>502</height>
</rect>
</property>
<property name="windowTitle">
<string>Platform Editor</string>
</property>
<widget class="QScrollArea" name="scrollArea">
<property name="geometry">
<rect>
<x>180</x>
<y>130</y>
<width>331</width>
<height>191</height>
</rect>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>329</width>
<height>189</height>
</rect>
</property>
<widget class="QListWidget" name="listWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>311</width>
<height>141</height>
</rect>
</property>
<item>
<property name="text">
<string>up to</string>
</property>
</item>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>210</x>
<y>160</y>
<width>111</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>PushButton</string>
</property>
</widget>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>