ivlFct and maxIvl

This commit is contained in:
Damien Elmes 2012-05-24 14:10:47 +09:00
parent 235fe8accb
commit f836d8d9bb
2 changed files with 52 additions and 25 deletions

View file

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

View file

@ -197,13 +197,24 @@
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QGridLayout" name="gridLayout_3">
<item row="1" column="1">
<widget class="QSpinBox" name="revSpace">
<property name="maximum">
<number>100</number>
<item row="3" column="0">
<widget class="QLabel" name="label_20">
<property name="text">
<string>Easy bonus</string>
</property>
<property name="singleStep">
<number>5</number>
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="label_19">
<property name="text">
<string>days</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_16">
<property name="text">
<string>Minimum sibling range</string>
</property>
</widget>
</item>
@ -220,24 +231,13 @@
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_16">
<property name="text">
<string>Minimum sibling range</string>
<item row="1" column="1">
<widget class="QSpinBox" name="revSpace">
<property name="maximum">
<number>100</number>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="label_19">
<property name="text">
<string>days</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_20">
<property name="text">
<string>Easy bonus</string>
<property name="singleStep">
<number>5</number>
</property>
</widget>
</item>
@ -322,6 +322,30 @@
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Maximum interval</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QSpinBox" name="maxIvl">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>99999</number>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QLabel" name="label_23">
<property name="text">
<string>days</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
@ -598,6 +622,7 @@
<tabstop>revMinSpace</tabstop>
<tabstop>easyBonus</tabstop>
<tabstop>fi1</tabstop>
<tabstop>maxIvl</tabstop>
<tabstop>lapSteps</tabstop>
<tabstop>lapMult</tabstop>
<tabstop>lapMinInt</tabstop>