6 """ |
6 """ |
7 Module implementing a dialog to show the output of the git status command |
7 Module implementing a dialog to show the output of the git status command |
8 process. |
8 process. |
9 """ |
9 """ |
10 |
10 |
|
11 import contextlib |
11 import os |
12 import os |
12 import tempfile |
13 import tempfile |
13 import contextlib |
14 |
14 |
15 from PyQt6.QtCore import QProcess, QSize, Qt, QTimer, pyqtSlot |
15 from PyQt6.QtCore import pyqtSlot, Qt, QProcess, QTimer, QSize |
|
16 from PyQt6.QtGui import QTextCursor |
16 from PyQt6.QtGui import QTextCursor |
17 from PyQt6.QtWidgets import ( |
17 from PyQt6.QtWidgets import ( |
|
18 QDialogButtonBox, |
|
19 QHeaderView, |
|
20 QInputDialog, |
|
21 QLineEdit, |
|
22 QMenu, |
|
23 QTreeWidgetItem, |
18 QWidget, |
24 QWidget, |
19 QDialogButtonBox, |
|
20 QMenu, |
|
21 QHeaderView, |
|
22 QTreeWidgetItem, |
|
23 QLineEdit, |
|
24 QInputDialog, |
|
25 ) |
25 ) |
26 |
|
27 from eric7.EricWidgets.EricApplication import ericApp |
|
28 from eric7.EricWidgets import EricMessageBox |
|
29 |
|
30 from eric7.Globals import strToQByteArray |
|
31 |
|
32 from .Ui_GitStatusDialog import Ui_GitStatusDialog |
|
33 |
|
34 from .GitDiffHighlighter import GitDiffHighlighter |
|
35 from .GitDiffGenerator import GitDiffGenerator |
|
36 from .GitDiffParser import GitDiffParser |
|
37 |
26 |
38 from eric7 import Preferences, Utilities |
27 from eric7 import Preferences, Utilities |
39 from eric7.EricGui import EricPixmapCache |
28 from eric7.EricGui import EricPixmapCache |
|
29 from eric7.EricWidgets import EricMessageBox |
|
30 from eric7.EricWidgets.EricApplication import ericApp |
|
31 from eric7.Globals import strToQByteArray |
|
32 |
|
33 from .GitDiffGenerator import GitDiffGenerator |
|
34 from .GitDiffHighlighter import GitDiffHighlighter |
|
35 from .GitDiffParser import GitDiffParser |
|
36 from .Ui_GitStatusDialog import Ui_GitStatusDialog |
40 |
37 |
41 |
38 |
42 class GitStatusDialog(QWidget, Ui_GitStatusDialog): |
39 class GitStatusDialog(QWidget, Ui_GitStatusDialog): |
43 """ |
40 """ |
44 Class implementing a dialog to show the output of the git status command |
41 Class implementing a dialog to show the output of the git status command |