Changeset 684:64c3835e1ef4 for src
- Timestamp:
- 10/18/15 14:50:13 (9 years ago)
- Branch:
- cef
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r652 r684 233 233 self._vsSmoothingLength = -2 234 234 235 self._useSimBrief = False 236 235 237 self._pirepDirectory = None 236 238 self._pirepAutoSave = False … … 442 444 if vsSmoothingLength!=self._vsSmoothingLength: 443 445 self._vsSmoothingLength = vsSmoothingLength 446 self._modified = True 447 448 @property 449 def useSimBrief(self): 450 """Check if SimBrief should be used.""" 451 return self._useSimBrief 452 453 @useSimBrief.setter 454 def useSimBrief(self, useSimBrief): 455 """Check if SimBrief should be used.""" 456 if self._useSimBrief != useSimBrief: 457 self._useSimBrief = useSimBrief 444 458 self._modified = True 445 459 … … 678 692 "vsSmoothingLength", 679 693 -2)) 694 695 self._useSimBrief = self._getBoolean(config, "general", 696 "useSimBrief", False) 697 680 698 self._pirepDirectory = self._get(config, "general", 681 699 "pirepDirectory", None) … … 758 776 str(self._vsSmoothingLength)) 759 777 778 config.set("general", "useSimBrief", 779 "yes" if self._useSimBrief else "no") 780 760 781 if self._pirepDirectory is not None: 761 782 config.set("general", "pirepDirectory", self._pirepDirectory) … … 907 928 print " vsSmoothingLength:", self._vsSmoothingLength 908 929 930 print " useSimBrief:", self._useSimBrief 931 909 932 print " pirepDirectory:", self._pirepDirectory 910 933 print " pirepAutoSave:", self._pirepAutoSave -
src/mlx/gui/prefs.py
r392 r684 243 243 self._setSmoothing(self._vsSmoothingEnabled, self._vsSmoothingLength, 244 244 config.vsSmoothingLength) 245 246 self._useSimBrief.set_active(config.useSimBrief) 245 247 246 248 pirepDirectory = config.pirepDirectory … … 291 293 config.vsSmoothingLength = self._getSmoothing(self._vsSmoothingEnabled, 292 294 self._vsSmoothingLength) 295 config.useSimBrief = self._useSimBrief.get_active() 293 296 config.pirepDirectory = text2unicode(self._pirepDirectory.get_text()) 294 297 config.pirepAutoSave = self._pirepAutoSave.get_active() … … 406 409 xstr("prefs_vsSmoothingEnabledTooltip")) 407 410 simulatorBox.pack_start(vsSmoothingBox, False, False, 4) 411 412 self._useSimBrief = gtk.CheckButton(xstr("prefs_useSimBrief")) 413 self._useSimBrief.set_use_underline(True) 414 self._useSimBrief.set_tooltip_text(xstr("prefs_useSimBrief_tooltip")) 415 mainBox.pack_start(self._useSimBrief, False, False, 0) 408 416 409 417 pirepBox = gtk.HBox()
Note:
See TracChangeset
for help on using the changeset viewer.