mirror of
https://github.com/RolandWH/SIPPCompare.git
synced 2025-09-07 10:31:30 +01:00
Compare commits
3 Commits
75e26e229a
...
submission
Author | SHA1 | Date | |
---|---|---|---|
4b8bdfbeea | |||
09f8b7bba8 | |||
abbcbe41d0 |
2
.idea/SIPPCompare.iml
generated
2
.idea/SIPPCompare.iml
generated
@@ -3,6 +3,8 @@
|
|||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/output" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="jdk" jdkName="Python 3.13 (SIPPCompare)" jdkType="Python SDK" />
|
<orderEntry type="jdk" jdkName="Python 3.13 (SIPPCompare)" jdkType="Python SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>420</width>
|
<width>420</width>
|
||||||
<height>243</height>
|
<height>240</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@@ -16,12 +16,15 @@
|
|||||||
<height>240</height>
|
<height>240</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>420</width>
|
||||||
|
<height>240</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>SIPPCompare</string>
|
<string>SIPPCompare</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="tabShape">
|
|
||||||
<enum>QTabWidget::TabShape::Rounded</enum>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<widget class="QWidget" name="formLayoutWidget">
|
<widget class="QWidget" name="formLayoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
@@ -64,9 +67,6 @@
|
|||||||
<pointsize>11</pointsize>
|
<pointsize>11</pointsize>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="frame">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="buttonSymbols">
|
<property name="buttonSymbols">
|
||||||
<enum>QAbstractSpinBox::ButtonSymbols::NoButtons</enum>
|
<enum>QAbstractSpinBox::ButtonSymbols::NoButtons</enum>
|
||||||
</property>
|
</property>
|
||||||
@@ -191,9 +191,6 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusbar">
|
<widget class="QStatusBar" name="statusbar">
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<pointsize>10</pointsize>
|
<pointsize>10</pointsize>
|
||||||
@@ -248,6 +245,8 @@
|
|||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>value_input</tabstop>
|
<tabstop>value_input</tabstop>
|
||||||
<tabstop>mix_slider</tabstop>
|
<tabstop>mix_slider</tabstop>
|
||||||
|
<tabstop>share_trades_box</tabstop>
|
||||||
|
<tabstop>fund_trades_box</tabstop>
|
||||||
<tabstop>calc_but</tabstop>
|
<tabstop>calc_but</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
@@ -123,6 +123,11 @@
|
|||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>time_slider</tabstop>
|
||||||
|
<tabstop>save_csv_but</tabstop>
|
||||||
|
<tabstop>save_graph_but</tabstop>
|
||||||
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@@ -2,9 +2,6 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>PlatformEdit</class>
|
<class>PlatformEdit</class>
|
||||||
<widget class="QWidget" name="PlatformEdit">
|
<widget class="QWidget" name="PlatformEdit">
|
||||||
<property name="windowModality">
|
|
||||||
<enum>Qt::WindowModality::ApplicationModal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
@@ -59,7 +56,7 @@
|
|||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<widget class="QCheckBox" name="plat_name_check">
|
<widget class="QCheckBox" name="plat_name_check">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string> </string>
|
||||||
</property>
|
</property>
|
||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
@@ -131,6 +131,14 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>platListWidget</tabstop>
|
||||||
|
<tabstop>add_plat_but</tabstop>
|
||||||
|
<tabstop>del_plat_but</tabstop>
|
||||||
|
<tabstop>edit_plat_but</tabstop>
|
||||||
|
<tabstop>plist_save_but</tabstop>
|
||||||
|
<tabstop>plat_enabled_check</tabstop>
|
||||||
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
|
@@ -243,11 +243,6 @@ class DBHandler:
|
|||||||
|
|
||||||
return user_details_dict
|
return user_details_dict
|
||||||
|
|
||||||
# Toggle whether fees for this platform should be calculated
|
|
||||||
def toggle_platform_state(self, index: int, state: bool):
|
|
||||||
self.cur.execute("UPDATE tblPlatforms SET IsEnabled = ? WHERE PlatformID = ?", [state, index])
|
|
||||||
self.conn.commit()
|
|
||||||
|
|
||||||
# Remove a platform from the DB - update the IDs to keep them sequential
|
# Remove a platform from the DB - update the IDs to keep them sequential
|
||||||
def remove_platform(self, index: int):
|
def remove_platform(self, index: int):
|
||||||
tbl_list = ["tblPlatforms", "tblFlatPlatFees", "tblFlatDealFees", "tblFundPlatFee"]
|
tbl_list = ["tblPlatforms", "tblFlatPlatFees", "tblFlatDealFees", "tblFundPlatFee"]
|
||||||
|
@@ -18,7 +18,6 @@ class PlatformEdit(QDialog):
|
|||||||
|
|
||||||
# Initialise class variables
|
# Initialise class variables
|
||||||
self.plat = plat
|
self.plat = plat
|
||||||
self.fund_plat_fee = self.plat.fund_plat_fee
|
|
||||||
self.widgets_list_list = []
|
self.widgets_list_list = []
|
||||||
if len(self.plat.fund_plat_fee[0]) > 1:
|
if len(self.plat.fund_plat_fee[0]) > 1:
|
||||||
self.fund_fee_rows = len(self.plat.fund_plat_fee[0]) - 1
|
self.fund_fee_rows = len(self.plat.fund_plat_fee[0]) - 1
|
||||||
|
Reference in New Issue
Block a user