10 import os |
10 import os |
11 |
11 |
12 from PyQt6.QtCore import pyqtSlot |
12 from PyQt6.QtCore import pyqtSlot |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
14 |
14 |
15 from EricWidgets.EricApplication import ericApp |
15 from eric7.EricWidgets.EricApplication import ericApp |
16 from EricWidgets import EricMessageBox |
16 from eric7.EricWidgets import EricMessageBox |
17 |
17 |
18 from .Ui_DotDesktopWizardDialog import Ui_DotDesktopWizardDialog |
18 from .Ui_DotDesktopWizardDialog import Ui_DotDesktopWizardDialog |
19 |
19 |
20 import Utilities |
20 from eric7 import Utilities |
21 import UI.PixmapCache |
21 from eric7.EricGui import EricPixmapCache |
22 |
22 |
23 |
23 |
24 class DotDesktopWizardDialog(QDialog, Ui_DotDesktopWizardDialog): |
24 class DotDesktopWizardDialog(QDialog, Ui_DotDesktopWizardDialog): |
25 """ |
25 """ |
26 Class implementing the .desktop wizard dialog. |
26 Class implementing the .desktop wizard dialog. |
242 ) |
242 ) |
243 |
243 |
244 projectOpen = ericApp().getObject("Project").isOpen() |
244 projectOpen = ericApp().getObject("Project").isOpen() |
245 self.projectButton.setEnabled(projectOpen) |
245 self.projectButton.setEnabled(projectOpen) |
246 |
246 |
247 icon = UI.PixmapCache.getIcon("listSelection") |
247 icon = EricPixmapCache.getIcon("listSelection") |
248 self.categoriesButton.setIcon(icon) |
248 self.categoriesButton.setIcon(icon) |
249 self.onlyShowButton.setIcon(icon) |
249 self.onlyShowButton.setIcon(icon) |
250 self.notShowButton.setIcon(icon) |
250 self.notShowButton.setIcon(icon) |
251 |
251 |
252 def getCode(self): |
252 def getCode(self): |