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, |