PrEditor 1.1.0__py3-none-any.whl → 1.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of PrEditor might be problematic. Click here for more details.
- preditor/__init__.py +4 -1
- preditor/about_module.py +6 -2
- preditor/dccs/.hab.json +10 -0
- preditor/dccs/maya/PrEditor_maya.mod +0 -1
- preditor/dccs/maya/README.md +22 -0
- preditor/dccs/maya/plug-ins/PrEditor_maya.py +32 -1
- preditor/dccs/studiomax/PackageContents.xml +32 -0
- preditor/dccs/studiomax/PrEditor-PrEditor_Show.mcr +8 -0
- preditor/dccs/studiomax/README.md +17 -0
- preditor/dccs/studiomax/preditor.ms +16 -0
- preditor/dccs/studiomax/preditor_menu.mnx +7 -0
- preditor/debug.py +7 -3
- preditor/excepthooks.py +1 -1
- preditor/gui/app.py +2 -2
- preditor/gui/codehighlighter.py +10 -24
- preditor/gui/completer.py +17 -6
- preditor/gui/console.py +94 -47
- preditor/gui/dialog.py +10 -7
- preditor/gui/drag_tab_bar.py +7 -7
- preditor/gui/errordialog.py +2 -2
- preditor/gui/find_files.py +7 -5
- preditor/gui/fuzzy_search/fuzzy_search.py +8 -4
- preditor/gui/group_tab_widget/__init__.py +32 -4
- preditor/gui/group_tab_widget/grouped_tab_models.py +4 -4
- preditor/gui/group_tab_widget/grouped_tab_widget.py +6 -4
- preditor/gui/level_buttons.py +16 -1
- preditor/gui/loggerwindow.py +48 -27
- preditor/gui/set_text_editor_path_dialog.py +3 -1
- preditor/gui/ui/loggerwindow.ui +11 -1
- preditor/gui/window.py +4 -4
- preditor/gui/workbox_mixin.py +43 -14
- preditor/gui/workbox_text_edit.py +7 -5
- preditor/gui/workboxwidget.py +25 -16
- preditor/logging_config.py +5 -2
- preditor/scintilla/__init__.py +19 -1
- preditor/scintilla/delayables/smart_highlight.py +7 -4
- preditor/scintilla/delayables/spell_check.py +5 -4
- preditor/scintilla/documenteditor.py +228 -135
- preditor/scintilla/finddialog.py +3 -3
- preditor/scintilla/lang/language.py +1 -1
- preditor/scintilla/lexers/cpplexer.py +3 -2
- preditor/scintilla/lexers/javascriptlexer.py +6 -4
- preditor/scintilla/lexers/maxscriptlexer.py +8 -7
- preditor/scintilla/lexers/mellexer.py +3 -2
- preditor/scintilla/lexers/mulexer.py +3 -2
- preditor/scintilla/lexers/pythonlexer.py +7 -6
- preditor/utils/cute.py +9 -8
- preditor/version.py +16 -3
- {preditor-1.1.0.dist-info → preditor-1.3.0.dist-info}/METADATA +69 -32
- {preditor-1.1.0.dist-info → preditor-1.3.0.dist-info}/RECORD +56 -47
- preditor-1.3.0.dist-info/top_level.txt +3 -0
- tests/find_files/test_find_files.py +74 -0
- tests/ide/test_delayable_engine.py +171 -0
- preditor-1.1.0.dist-info/top_level.txt +0 -1
- {preditor-1.1.0.dist-info → preditor-1.3.0.dist-info}/WHEEL +0 -0
- {preditor-1.1.0.dist-info → preditor-1.3.0.dist-info}/entry_points.txt +0 -0
- {preditor-1.1.0.dist-info → preditor-1.3.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
from __future__ import absolute_import, print_function
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import Qt
|
|
4
4
|
from Qt.QtCore import QSignalMapper
|
|
5
5
|
from Qt.QtWidgets import QWidget
|
|
6
6
|
|
|
7
7
|
from ...delayable_engine.delayables import SearchDelayable
|
|
8
|
-
from .. import FindState
|
|
8
|
+
from .. import FindState, QsciScintilla
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class SmartHighlight(SearchDelayable):
|
|
12
12
|
key = 'smart_highlight'
|
|
13
13
|
indicator_number = 30
|
|
14
|
-
indicator_style = QsciScintilla.StraightBoxIndicator
|
|
14
|
+
indicator_style = QsciScintilla.IndicatorStyle.StraightBoxIndicator
|
|
15
15
|
border_alpha = 255
|
|
16
16
|
|
|
17
17
|
def __init__(self, engine):
|
|
@@ -36,7 +36,10 @@ class SmartHighlight(SearchDelayable):
|
|
|
36
36
|
)
|
|
37
37
|
|
|
38
38
|
self.signal_mapper.setMapping(document, document)
|
|
39
|
-
|
|
39
|
+
if Qt.IsPyQt4:
|
|
40
|
+
self.signal_mapper.mapped[QWidget].connect(self.update_highlighter)
|
|
41
|
+
else:
|
|
42
|
+
self.signal_mapper.mappedObject.connect(self.update_highlighter)
|
|
40
43
|
document.selectionChanged.connect(self.signal_mapper.map)
|
|
41
44
|
|
|
42
45
|
def clear_markings(self, document):
|
|
@@ -4,12 +4,11 @@ import logging
|
|
|
4
4
|
import re
|
|
5
5
|
import string
|
|
6
6
|
|
|
7
|
-
from PyQt5.Qsci import QsciScintilla
|
|
8
7
|
from Qt.QtCore import Qt
|
|
9
8
|
from Qt.QtGui import QColor
|
|
10
9
|
|
|
11
10
|
from ...delayable_engine.delayables import RangeDelayable
|
|
12
|
-
from .. import lang
|
|
11
|
+
from .. import QsciScintilla, lang
|
|
13
12
|
|
|
14
13
|
logger = logging.getLogger(__name__)
|
|
15
14
|
|
|
@@ -49,12 +48,14 @@ else:
|
|
|
49
48
|
# https://www.scintilla.org/ScintillaDox.html#SCI_INDICSETSTYLE
|
|
50
49
|
# https://qscintilla.com/#clickable_text/indicators
|
|
51
50
|
document.indicatorDefine(
|
|
52
|
-
QsciScintilla.SquiggleLowIndicator, self.indicator_number
|
|
51
|
+
QsciScintilla.IndicatorStyle.SquiggleLowIndicator, self.indicator_number
|
|
53
52
|
)
|
|
54
53
|
document.SendScintilla(
|
|
55
54
|
QsciScintilla.SCI_SETINDICATORCURRENT, self.indicator_number
|
|
56
55
|
)
|
|
57
|
-
document.setIndicatorForegroundColor(
|
|
56
|
+
document.setIndicatorForegroundColor(
|
|
57
|
+
QColor(Qt.GlobalColor.red), self.indicator_number
|
|
58
|
+
)
|
|
58
59
|
|
|
59
60
|
document.SCN_MODIFIED.connect(document.onTextModified)
|
|
60
61
|
|