src/eric7/Preferences/ConfigurationDialog.py

branch
pdf_viewer
changeset 9712
24bdc37413dd
parent 9653
e67609152c5e
child 9900
d6a4d160425a
equal deleted inserted replaced
9711:614bb8b0d175 9712:24bdc37413dd
81 DEFAULTMODE = 0 81 DEFAULTMODE = 0
82 TRAYSTARTERMODE = 1 82 TRAYSTARTERMODE = 1
83 HEXEDITORMODE = 2 83 HEXEDITORMODE = 2
84 WEBBROWSERMODE = 3 84 WEBBROWSERMODE = 3
85 EDITORMODE = 4 85 EDITORMODE = 4
86 PDFVIEWERMODE = 5
86 87
87 88
88 class ConfigurationWidget(QWidget): 89 class ConfigurationWidget(QWidget):
89 """ 90 """
90 Class implementing a dialog for the configuration of eric. 91 Class implementing a dialog for the configuration of eric.
242 ], 243 ],
243 "notificationsPage": [ 244 "notificationsPage": [
244 self.tr("Notifications"), 245 self.tr("Notifications"),
245 "preferences-notifications", 246 "preferences-notifications",
246 "NotificationsPage", 247 "NotificationsPage",
248 None,
249 None,
250 ],
251 "pdfViewerPage": [
252 self.tr("PDF Viewer"),
253 "ericPdf",
254 "PdfViewerPage",
247 None, 255 None,
248 None, 256 None,
249 ], 257 ],
250 "pipPage": [ 258 "pipPage": [
251 self.tr("Python Package Management"), 259 self.tr("Python Package Management"),
852 None, 860 None,
853 None, 861 None,
854 ], 862 ],
855 } 863 }
856 864
865 elif displayMode == ConfigurationMode.PDFVIEWERMODE:
866 self.configItems = {
867 # key : [display string, pixmap name, dialog module name or
868 # page creation function, parent key,
869 # reference to configuration page (must always be last)]
870 # The dialog module must have the module function 'create' to
871 # create the configuration page. This must have the method
872 # 'save' to save the settings.
873 "iconsPage": [
874 self.tr("Icons"),
875 "preferences-icons",
876 "IconsPage",
877 None,
878 None,
879 ],
880 "interfacePage": [
881 self.tr("Interface"),
882 "preferences-interface",
883 "InterfaceLightPage",
884 None,
885 None,
886 ],
887 "pdfViewerPage": [
888 self.tr("PDF Viewer"),
889 "ericPdf",
890 "PdfViewerPage",
891 None,
892 None,
893 ],
894 }
895
857 else: 896 else:
858 # display mode for generic use 897 # display mode for generic use
859 self.configItems = { 898 self.configItems = {
860 # key : [display string, pixmap name, dialog module name or 899 # key : [display string, pixmap name, dialog module name or
861 # page creation function, parent key, 900 # page creation function, parent key,

eric ide

mercurial