23 |
23 |
24 from PyQt4.QtCore import QFile, QFileInfo, pyqtSignal, QCryptographicHash, QIODevice, \ |
24 from PyQt4.QtCore import QFile, QFileInfo, pyqtSignal, QCryptographicHash, QIODevice, \ |
25 QByteArray, QObject, Qt |
25 QByteArray, QObject, Qt |
26 from PyQt4.QtGui import QCursor, QLineEdit, QToolBar, QDialog, QInputDialog, \ |
26 from PyQt4.QtGui import QCursor, QLineEdit, QToolBar, QDialog, QInputDialog, \ |
27 QApplication, QMenu, QAction |
27 QApplication, QMenu, QAction |
|
28 from PyQt4.Qsci import QsciScintilla |
28 |
29 |
29 from E5Gui.E5Application import e5App |
30 from E5Gui.E5Application import e5App |
30 from E5Gui import E5FileDialog, E5MessageBox |
31 from E5Gui import E5FileDialog, E5MessageBox |
31 |
32 |
32 from Globals import recentNameProject |
33 from Globals import recentNameProject |
405 self.pdata["PROJECTTYPESPECIFICDATA"] = {} |
406 self.pdata["PROJECTTYPESPECIFICDATA"] = {} |
406 self.pdata["CHECKERSPARMS"] = {} |
407 self.pdata["CHECKERSPARMS"] = {} |
407 self.pdata["PACKAGERSPARMS"] = {} |
408 self.pdata["PACKAGERSPARMS"] = {} |
408 self.pdata["DOCUMENTATIONPARMS"] = {} |
409 self.pdata["DOCUMENTATIONPARMS"] = {} |
409 self.pdata["OTHERTOOLSPARMS"] = {} |
410 self.pdata["OTHERTOOLSPARMS"] = {} |
410 self.pdata["EOL"] = [0] |
411 self.pdata["EOL"] = [-1] |
411 |
412 |
412 self.__initDebugProperties() |
413 self.__initDebugProperties() |
413 |
414 |
414 self.pudata = {} |
415 self.pudata = {} |
415 for key in self.__class__.userKeynames: |
416 for key in self.__class__.userKeynames: |
2973 """ |
2974 """ |
2974 Public method to get the EOL-string to be used by the project. |
2975 Public method to get the EOL-string to be used by the project. |
2975 |
2976 |
2976 @return eol string (string) |
2977 @return eol string (string) |
2977 """ |
2978 """ |
2978 return self.eols[self.pdata["EOL"][0]] |
2979 if self.pdata["EOL"][0] >= 0: |
|
2980 return self.eols[self.pdata["EOL"][0]] |
|
2981 else: |
|
2982 eolMode = Preferences.getEditor("EOLMode") |
|
2983 if eolMode == QsciScintilla.EolWindows: |
|
2984 eol = '\r\n' |
|
2985 elif eolMode == QsciScintilla.EolUnix: |
|
2986 eol = '\n' |
|
2987 elif eolMode == QsciScintilla.EolMac: |
|
2988 eol = '\r' |
|
2989 else: |
|
2990 eol = os.linesep |
|
2991 return eol |
2979 |
2992 |
2980 def useSystemEol(self): |
2993 def useSystemEol(self): |
2981 """ |
2994 """ |
2982 Public method to check, if the project uses the system eol setting. |
2995 Public method to check, if the project uses the system eol setting. |
2983 |
2996 |