1379 |
1379 |
1380 def __showPreferences(self): |
1380 def __showPreferences(self): |
1381 """ |
1381 """ |
1382 Private slot to set the preferences. |
1382 Private slot to set the preferences. |
1383 """ |
1383 """ |
1384 from Preferences.ConfigurationDialog import ConfigurationDialog |
1384 from Preferences.ConfigurationDialog import ( |
|
1385 ConfigurationDialog, ConfigurationMode |
|
1386 ) |
1385 dlg = ConfigurationDialog( |
1387 dlg = ConfigurationDialog( |
1386 None, 'Configuration', True, fromEric=True, |
1388 None, 'Configuration', True, fromEric=True, |
1387 displayMode=ConfigurationDialog.HexEditorMode) |
1389 displayMode=ConfigurationMode.HEXEDITORMODE) |
1388 dlg.preferencesChanged.connect( |
1390 dlg.preferencesChanged.connect( |
1389 self.__preferencesChangedByLocalPreferencesDialog) |
1391 self.__preferencesChangedByLocalPreferencesDialog) |
1390 dlg.show() |
1392 dlg.show() |
1391 dlg.showConfigurationPageByName("hexEditorPage") |
1393 dlg.showConfigurationPageByName("hexEditorPage") |
1392 dlg.exec() |
1394 dlg.exec() |