Preferences/ConfigurationDialog.py

changeset 2964
84b65fb9e780
parent 2907
108abcc64724
child 3010
befeff46ec0f
equal deleted inserted replaced
2963:745d38097b7f 2964:84b65fb9e780
82 @param parent The parent widget of this dialog. (QWidget) 82 @param parent The parent widget of this dialog. (QWidget)
83 @keyparam fromEric flag indicating a dialog generation from within the 83 @keyparam fromEric flag indicating a dialog generation from within the
84 eric5 ide (boolean) 84 eric5 ide (boolean)
85 @keyparam displayMode mode of the configuration dialog 85 @keyparam displayMode mode of the configuration dialog
86 (DefaultMode, HelpBrowserMode, TrayStarterMode) 86 (DefaultMode, HelpBrowserMode, TrayStarterMode)
87 @exception RuntimeError raised to indicate an invalid dialog mode
87 """ 88 """
88 assert displayMode in ( 89 assert displayMode in (
89 ConfigurationWidget.DefaultMode, 90 ConfigurationWidget.DefaultMode,
90 ConfigurationWidget.HelpBrowserMode, 91 ConfigurationWidget.HelpBrowserMode,
91 ConfigurationWidget.TrayStarterMode 92 ConfigurationWidget.TrayStarterMode
629 630
630 def getConfigurationPageName(self): 631 def getConfigurationPageName(self):
631 """ 632 """
632 Public method to get the page name of the current page. 633 Public method to get the page name of the current page.
633 634
634 @param page name of the current page (string) 635 @return page name of the current page (string)
635 """ 636 """
636 return self.__currentConfigurationPageName 637 return self.__currentConfigurationPageName
637 638
638 def calledFromEric(self): 639 def calledFromEric(self):
639 """ 640 """
786 787
787 def getConfigurationPageName(self): 788 def getConfigurationPageName(self):
788 """ 789 """
789 Public method to get the page name of the current page. 790 Public method to get the page name of the current page.
790 791
791 @param page name of the current page (string) 792 @return page name of the current page (string)
792 """ 793 """
793 return self.cw.getConfigurationPageName() 794 return self.cw.getConfigurationPageName()
794 795
795 def setPreferences(self): 796 def setPreferences(self):
796 """ 797 """
797 Public method called to store the selected values into the preferences storage. 798 Public method called to store the selected values into the preferences storage.
798 """ 799 """
799 self.cw.setPreferences() 800 self.cw.setPreferences()
800 801
801 def accept(self): 802 def accept(self):
803 """
804 Public method to accept the dialog.
805 """
802 super().accept() 806 super().accept()
803 807
804 808
805 class ConfigurationWindow(E5MainWindow): 809 class ConfigurationWindow(E5MainWindow):
806 """ 810 """

eric ide

mercurial