7 Module implementing the multi project management functionality. |
7 Module implementing the multi project management functionality. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import * |
12 from PyQt4.QtCore import pyqtSignal, Qt, QFileInfo, QFile, QIODevice, QObject |
13 from PyQt4.QtGui import * |
13 from PyQt4.QtGui import QMenu, QApplication, QDialog, QCursor, QToolBar |
14 |
14 |
15 from Globals import recentNameMultiProject |
15 from Globals import recentNameMultiProject |
16 |
16 |
17 from .PropertiesDialog import PropertiesDialog |
17 from .PropertiesDialog import PropertiesDialog |
18 from .AddProjectDialog import AddProjectDialog |
18 from .AddProjectDialog import AddProjectDialog |
473 fn += ex |
473 fn += ex |
474 if QFileInfo(fn).exists(): |
474 if QFileInfo(fn).exists(): |
475 res = E5MessageBox.yesNo(self.parent(), |
475 res = E5MessageBox.yesNo(self.parent(), |
476 self.trUtf8("Save File"), |
476 self.trUtf8("Save File"), |
477 self.trUtf8("<p>The file <b>{0}</b> already exists." |
477 self.trUtf8("<p>The file <b>{0}</b> already exists." |
478 " Overwrite it?</p>").format(fileName), |
478 " Overwrite it?</p>").format(fn), |
479 icon=E5MessageBox.Warning) |
479 icon=E5MessageBox.Warning) |
480 if not res: |
480 if not res: |
481 return False |
481 return False |
482 |
482 |
483 self.name = QFileInfo(fn).baseName() |
483 self.name = QFileInfo(fn).baseName() |