replace fi adjustment with ivl factor

This commit is contained in:
Damien Elmes 2012-05-20 21:38:14 +09:00
parent 2bb2a4f412
commit d2fb8ac572
2 changed files with 39 additions and 59 deletions

View file

@ -172,8 +172,7 @@ class DeckConf(QDialog):
f.revSpace.setValue(c['fuzz']*100)
f.revMinSpace.setValue(c['minSpace'])
f.easyBonus.setValue(c['ease4']*100)
f.fi1.setValue(c['fi'][0])
f.fi2.setValue(c['fi'][1])
f.fi1.setValue(c.get('ivlfct', 1))
f.revplim.setText(self.parentLimText('rev'))
# lapse
c = self.conf['lapse']
@ -248,7 +247,7 @@ class DeckConf(QDialog):
c['fuzz'] = f.revSpace.value()/100.0
c['minSpace'] = f.revMinSpace.value()
c['ease4'] = f.easyBonus.value()/100.0
c['fi'] = [f.fi1.value(), f.fi2.value()]
c['ivlfct'] = f.fi1.value()
# lapse
c = self.conf['lapse']
self.updateList(c, 'delays', f.lapSteps, minSize=0)

View file

@ -58,7 +58,7 @@
<item>
<widget class="QLabel" name="count">
<property name="text">
<string>TextLabel</string>
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@ -197,13 +197,6 @@
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QGridLayout" name="gridLayout_3">
<item row="1" column="0">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Space siblings by up to</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="revSpace">
<property name="maximum">
@ -248,16 +241,13 @@
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLabel" name="label_21">
<item row="1" column="0">
<widget class="QLabel" name="label_15">
<property name="text">
<string>%</string>
<string>Space siblings by up to</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="revMinSpace"/>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="easyBonus">
<property name="minimum">
@ -271,43 +261,22 @@
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_33">
<item row="3" column="2">
<widget class="QLabel" name="label_21">
<property name="text">
<string>Desired forgetting index</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="fi1">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>50</number>
<string>%</string>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QLabel" name="label_34">
<property name="text">
<string>%</string>
<string>x</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_35">
<property name="text">
<string>Assumed forgetting index</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_37">
<property name="text">
<string>Maximum reviews/day</string>
</property>
</widget>
<item row="2" column="1">
<widget class="QSpinBox" name="revMinSpace"/>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="revPerDay">
@ -319,20 +288,6 @@
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QLabel" name="label_36">
<property name="text">
<string>%</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QSpinBox" name="fi2">
<property name="minimum">
<number>1</number>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="revplim">
<property name="text">
@ -340,6 +295,33 @@
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_33">
<property name="text">
<string>Interval modifier</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_37">
<property name="text">
<string>Maximum reviews/day</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QDoubleSpinBox" name="fi1">
<property name="minimum">
<double>0.300000000000000</double>
</property>
<property name="singleStep">
<double>0.050000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
</property>
</widget>
</item>
</layout>
</item>
<item>
@ -616,7 +598,6 @@
<tabstop>revMinSpace</tabstop>
<tabstop>easyBonus</tabstop>
<tabstop>fi1</tabstop>
<tabstop>fi2</tabstop>
<tabstop>lapSteps</tabstop>
<tabstop>lapMult</tabstop>
<tabstop>lapMinInt</tabstop>