25 from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter |
25 from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter |
26 |
26 |
27 from .Ui_CxfreezeConfigDialog import Ui_CxfreezeConfigDialog |
27 from .Ui_CxfreezeConfigDialog import Ui_CxfreezeConfigDialog |
28 |
28 |
29 import Utilities |
29 import Utilities |
|
30 import UI.PixmapCache |
30 |
31 |
31 |
32 |
32 class DirFileDialog(QFileDialog): |
33 class DirFileDialog(QFileDialog): |
33 """ |
34 """ |
34 Derived QFileDialog to select files and folders at once. |
35 Derived QFileDialog to select files and folders at once. |
147 @param parms parameters to set in the dialog |
148 @param parms parameters to set in the dialog |
148 @param parent parent widget of this dialog (QWidget) |
149 @param parent parent widget of this dialog (QWidget) |
149 """ |
150 """ |
150 QDialog.__init__(self, parent) |
151 QDialog.__init__(self, parent) |
151 self.setupUi(self) |
152 self.setupUi(self) |
|
153 |
|
154 self.targetDirButton.setIcon( |
|
155 UI.PixmapCache.getIcon("open.png")) |
|
156 self.iconFileButton.setIcon( |
|
157 UI.PixmapCache.getIcon("open.png")) |
|
158 self.extListFileButton.setIcon( |
|
159 UI.PixmapCache.getIcon("open.png")) |
|
160 self.selectFileOrFolderButton.setIcon( |
|
161 UI.PixmapCache.getIcon("open.png")) |
152 |
162 |
153 self.project = project |
163 self.project = project |
154 self.__initializeDefaults() |
164 self.__initializeDefaults() |
155 |
165 |
156 # get a copy of the defaults to store the user settings |
166 # get a copy of the defaults to store the user settings |