eric6/Preferences/ConfigurationDialog.py

branch
maintenance
changeset 8043
0acf98cd089a
parent 7924
8a96736d465e
parent 7960
e8fc383322f7
child 8142
43248bafe9b2
equal deleted inserted replaced
7991:866adc8c315b 8043:0acf98cd089a
2 2
3 # Copyright (c) 2002 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2002 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog for the configuration of eric6. 7 Module implementing a dialog for the configuration of eric.
8 """ 8 """
9 9
10 import os 10 import os
11 import types 11 import types
12 12
60 return self.__pageName 60 return self.__pageName
61 61
62 62
63 class ConfigurationWidget(QWidget): 63 class ConfigurationWidget(QWidget):
64 """ 64 """
65 Class implementing a dialog for the configuration of eric6. 65 Class implementing a dialog for the configuration of eric.
66 66
67 @signal preferencesChanged() emitted after settings have been changed 67 @signal preferencesChanged() emitted after settings have been changed
68 @signal masterPasswordChanged(str, str) emitted after the master 68 @signal masterPasswordChanged(str, str) emitted after the master
69 password has been changed with the old and the new password 69 password has been changed with the old and the new password
70 @signal accepted() emitted to indicate acceptance of the changes 70 @signal accepted() emitted to indicate acceptance of the changes
85 expandedEntries=None): 85 expandedEntries=None):
86 """ 86 """
87 Constructor 87 Constructor
88 88
89 @param parent The parent widget of this dialog. (QWidget) 89 @param parent The parent widget of this dialog. (QWidget)
90 @keyparam fromEric flag indicating a dialog generation from within the 90 @param fromEric flag indicating a dialog generation from within the
91 eric6 ide (boolean) 91 eric ide (boolean)
92 @keyparam displayMode mode of the configuration dialog 92 @param displayMode mode of the configuration dialog
93 (DefaultMode, HelpBrowserMode, TrayStarterMode, HexEditorMode, 93 (DefaultMode, HelpBrowserMode, TrayStarterMode, HexEditorMode,
94 WebBrowserMode) 94 WebBrowserMode)
95 @exception RuntimeError raised to indicate an invalid dialog mode 95 @exception RuntimeError raised to indicate an invalid dialog mode
96 @keyparam expandedEntries list of entries to be shown expanded 96 @param expandedEntries list of entries to be shown expanded
97 (list of strings) 97 (list of strings)
98 """ 98 """
99 super(ConfigurationWidget, self).__init__(parent) 99 super(ConfigurationWidget, self).__init__(parent)
100 self.fromEric = fromEric 100 self.fromEric = fromEric
101 self.displayMode = displayMode 101 self.displayMode = displayMode
342 None, None, None], 342 None, None, None],
343 "webBrowserAppearancePage": 343 "webBrowserAppearancePage":
344 [self.tr("Appearance"), "preferences-styles", 344 [self.tr("Appearance"), "preferences-styles",
345 "WebBrowserAppearancePage", "0webBrowserPage", None], 345 "WebBrowserAppearancePage", "0webBrowserPage", None],
346 "webBrowserPage": 346 "webBrowserPage":
347 [self.tr("eric6 Web Browser"), "ericWeb", 347 [self.tr("eric Web Browser"), "ericWeb",
348 "WebBrowserPage", "0webBrowserPage", None], 348 "WebBrowserPage", "0webBrowserPage", None],
349 "webBrowserFlashCookieManagerPage": 349 "webBrowserFlashCookieManagerPage":
350 [self.tr("Flash Cookie Manager"), 350 [self.tr("Flash Cookie Manager"),
351 "flashCookie16", 351 "flashCookie16",
352 "WebBrowserFlashCookieManagerPage", "0webBrowserPage", 352 "WebBrowserFlashCookieManagerPage", "0webBrowserPage",
392 392
393 "webBrowserAppearancePage": 393 "webBrowserAppearancePage":
394 [self.tr("Appearance"), "preferences-styles", 394 [self.tr("Appearance"), "preferences-styles",
395 "WebBrowserAppearancePage", None, None], 395 "WebBrowserAppearancePage", None, None],
396 "webBrowserPage": 396 "webBrowserPage":
397 [self.tr("eric6 Web Browser"), "ericWeb", 397 [self.tr("eric Web Browser"), "ericWeb",
398 "WebBrowserPage", None, None], 398 "WebBrowserPage", None, None],
399 399
400 "webBrowserFlashCookieManagerPage": 400 "webBrowserFlashCookieManagerPage":
401 [self.tr("Flash Cookie Manager"), 401 [self.tr("Flash Cookie Manager"),
402 "flashCookie16", 402 "flashCookie16",
924 Constructor 924 Constructor
925 925
926 @param parent The parent widget of this dialog. (QWidget) 926 @param parent The parent widget of this dialog. (QWidget)
927 @param name The name of this dialog. string 927 @param name The name of this dialog. string
928 @param modal Flag indicating a modal dialog. (boolean) 928 @param modal Flag indicating a modal dialog. (boolean)
929 @keyparam fromEric flag indicating a dialog generation from within the 929 @param fromEric flag indicating a dialog generation from within the
930 eric6 ide (boolean) 930 eric ide (boolean)
931 @keyparam displayMode mode of the configuration dialog 931 @param displayMode mode of the configuration dialog
932 (DefaultMode, HelpBrowserMode, TrayStarterMode, HexEditorMode, 932 (DefaultMode, HelpBrowserMode, TrayStarterMode, HexEditorMode,
933 WebBrowserMode) 933 WebBrowserMode)
934 @keyparam expandedEntries list of entries to be shown expanded 934 @param expandedEntries list of entries to be shown expanded
935 (list of strings) 935 (list of strings)
936 """ 936 """
937 super(ConfigurationDialog, self).__init__(parent) 937 super(ConfigurationDialog, self).__init__(parent)
938 if name: 938 if name:
939 self.setObjectName(name) 939 self.setObjectName(name)

eric ide

mercurial