Updated example ships loader

This commit is contained in:
Jose Luis Cercós pita 2012-06-09 17:41:05 +02:00
parent 8f8cac1734
commit 493be7b2a2
2 changed files with 10 additions and 3 deletions

View File

@ -38,10 +38,12 @@ class TaskPanel:
path = Paths.modulePath() + "/Examples/"
if(self.form.ship.currentIndex() == 0): # s60 from Iowa University
App.open(path + "s60.fcstd")
elif(self.form.ship.currentIndex() == 1): # Barehull 5415
App.open(path + "barehull5415.fcstd")
elif(self.form.ship.currentIndex() == 1): # Wigley canonical ship
App.open(path + "wigley.fcstd")
elif(self.form.ship.currentIndex() == 2): # s60 (Katamaran)
App.open(path + "s60_katamaran.fcstd")
elif(self.form.ship.currentIndex() == 2): # Wigley (Katamaran)
App.open(path + "wigley_katamaran.fcstd")
return True
def reject(self):

View File

@ -81,7 +81,7 @@
</item>
<item>
<property name="text">
<string>Barehull 5145</string>
<string>Wigley canonical ship</string>
</property>
</item>
<item>
@ -89,6 +89,11 @@
<string>Series 60 (Katamaran)</string>
</property>
</item>
<item>
<property name="text">
<string>Wigley (Katamaran)</string>
</property>
</item>
</widget>
</item>
<item>