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.

Files changed (57) hide show
  1. preditor/__init__.py +4 -1
  2. preditor/about_module.py +6 -2
  3. preditor/dccs/.hab.json +10 -0
  4. preditor/dccs/maya/PrEditor_maya.mod +0 -1
  5. preditor/dccs/maya/README.md +22 -0
  6. preditor/dccs/maya/plug-ins/PrEditor_maya.py +32 -1
  7. preditor/dccs/studiomax/PackageContents.xml +32 -0
  8. preditor/dccs/studiomax/PrEditor-PrEditor_Show.mcr +8 -0
  9. preditor/dccs/studiomax/README.md +17 -0
  10. preditor/dccs/studiomax/preditor.ms +16 -0
  11. preditor/dccs/studiomax/preditor_menu.mnx +7 -0
  12. preditor/debug.py +7 -3
  13. preditor/excepthooks.py +1 -1
  14. preditor/gui/app.py +2 -2
  15. preditor/gui/codehighlighter.py +10 -24
  16. preditor/gui/completer.py +17 -6
  17. preditor/gui/console.py +94 -47
  18. preditor/gui/dialog.py +10 -7
  19. preditor/gui/drag_tab_bar.py +7 -7
  20. preditor/gui/errordialog.py +2 -2
  21. preditor/gui/find_files.py +7 -5
  22. preditor/gui/fuzzy_search/fuzzy_search.py +8 -4
  23. preditor/gui/group_tab_widget/__init__.py +32 -4
  24. preditor/gui/group_tab_widget/grouped_tab_models.py +4 -4
  25. preditor/gui/group_tab_widget/grouped_tab_widget.py +6 -4
  26. preditor/gui/level_buttons.py +16 -1
  27. preditor/gui/loggerwindow.py +48 -27
  28. preditor/gui/set_text_editor_path_dialog.py +3 -1
  29. preditor/gui/ui/loggerwindow.ui +11 -1
  30. preditor/gui/window.py +4 -4
  31. preditor/gui/workbox_mixin.py +43 -14
  32. preditor/gui/workbox_text_edit.py +7 -5
  33. preditor/gui/workboxwidget.py +25 -16
  34. preditor/logging_config.py +5 -2
  35. preditor/scintilla/__init__.py +19 -1
  36. preditor/scintilla/delayables/smart_highlight.py +7 -4
  37. preditor/scintilla/delayables/spell_check.py +5 -4
  38. preditor/scintilla/documenteditor.py +228 -135
  39. preditor/scintilla/finddialog.py +3 -3
  40. preditor/scintilla/lang/language.py +1 -1
  41. preditor/scintilla/lexers/cpplexer.py +3 -2
  42. preditor/scintilla/lexers/javascriptlexer.py +6 -4
  43. preditor/scintilla/lexers/maxscriptlexer.py +8 -7
  44. preditor/scintilla/lexers/mellexer.py +3 -2
  45. preditor/scintilla/lexers/mulexer.py +3 -2
  46. preditor/scintilla/lexers/pythonlexer.py +7 -6
  47. preditor/utils/cute.py +9 -8
  48. preditor/version.py +16 -3
  49. {preditor-1.1.0.dist-info → preditor-1.3.0.dist-info}/METADATA +69 -32
  50. {preditor-1.1.0.dist-info → preditor-1.3.0.dist-info}/RECORD +56 -47
  51. preditor-1.3.0.dist-info/top_level.txt +3 -0
  52. tests/find_files/test_find_files.py +74 -0
  53. tests/ide/test_delayable_engine.py +171 -0
  54. preditor-1.1.0.dist-info/top_level.txt +0 -1
  55. {preditor-1.1.0.dist-info → preditor-1.3.0.dist-info}/WHEEL +0 -0
  56. {preditor-1.1.0.dist-info → preditor-1.3.0.dist-info}/entry_points.txt +0 -0
  57. {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
- from PyQt5.Qsci import QsciScintilla
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
- self.signal_mapper.mapped[QWidget].connect(self.update_highlighter)
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(QColor(Qt.red), self.indicator_number)
56
+ document.setIndicatorForegroundColor(
57
+ QColor(Qt.GlobalColor.red), self.indicator_number
58
+ )
58
59
 
59
60
  document.SCN_MODIFIED.connect(document.onTextModified)
60
61