PrEditor 2.1.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.
Files changed (179) hide show
  1. preditor/__init__.py +315 -0
  2. preditor/__main__.py +13 -0
  3. preditor/about_module.py +165 -0
  4. preditor/cli.py +192 -0
  5. preditor/config.py +318 -0
  6. preditor/constants.py +13 -0
  7. preditor/contexts.py +210 -0
  8. preditor/cores/__init__.py +0 -0
  9. preditor/cores/core.py +20 -0
  10. preditor/dccs/.hab.json +10 -0
  11. preditor/dccs/maya/PrEditor_maya.mod +1 -0
  12. preditor/dccs/maya/README.md +22 -0
  13. preditor/dccs/maya/plug-ins/PrEditor_maya.py +141 -0
  14. preditor/dccs/studiomax/PackageContents.xml +32 -0
  15. preditor/dccs/studiomax/PrEditor-PrEditor_Show.mcr +8 -0
  16. preditor/dccs/studiomax/README.md +17 -0
  17. preditor/dccs/studiomax/preditor.ms +16 -0
  18. preditor/dccs/studiomax/preditor_menu.mnx +7 -0
  19. preditor/debug.py +149 -0
  20. preditor/delayable_engine/__init__.py +302 -0
  21. preditor/delayable_engine/delayables.py +85 -0
  22. preditor/enum.py +728 -0
  23. preditor/excepthooks.py +165 -0
  24. preditor/gui/__init__.py +56 -0
  25. preditor/gui/app.py +163 -0
  26. preditor/gui/codehighlighter.py +289 -0
  27. preditor/gui/completer.py +237 -0
  28. preditor/gui/console.py +605 -0
  29. preditor/gui/console_base.py +911 -0
  30. preditor/gui/dialog.py +181 -0
  31. preditor/gui/drag_tab_bar.py +625 -0
  32. preditor/gui/editor_chooser.py +57 -0
  33. preditor/gui/errordialog.py +69 -0
  34. preditor/gui/find_files.py +137 -0
  35. preditor/gui/fuzzy_search/__init__.py +0 -0
  36. preditor/gui/fuzzy_search/fuzzy_search.py +97 -0
  37. preditor/gui/group_tab_widget/__init__.py +0 -0
  38. preditor/gui/group_tab_widget/group_tab_widget.py +528 -0
  39. preditor/gui/group_tab_widget/grouped_tab_menu.py +35 -0
  40. preditor/gui/group_tab_widget/grouped_tab_models.py +107 -0
  41. preditor/gui/group_tab_widget/grouped_tab_widget.py +223 -0
  42. preditor/gui/group_tab_widget/one_tab_widget.py +96 -0
  43. preditor/gui/level_buttons.py +358 -0
  44. preditor/gui/logger_window_handler.py +77 -0
  45. preditor/gui/logger_window_plugin.py +35 -0
  46. preditor/gui/loggerwindow.py +2405 -0
  47. preditor/gui/newtabwidget.py +69 -0
  48. preditor/gui/output_console.py +11 -0
  49. preditor/gui/qtdesigner/__init__.py +21 -0
  50. preditor/gui/qtdesigner/_log_plugin.py +29 -0
  51. preditor/gui/qtdesigner/console_base_plugin.py +48 -0
  52. preditor/gui/qtdesigner/console_predit_plugin.py +48 -0
  53. preditor/gui/set_text_editor_path_dialog.py +61 -0
  54. preditor/gui/status_label.py +99 -0
  55. preditor/gui/suggest_path_quotes_dialog.py +50 -0
  56. preditor/gui/ui/editor_chooser.ui +93 -0
  57. preditor/gui/ui/errordialog.ui +74 -0
  58. preditor/gui/ui/find_files.ui +140 -0
  59. preditor/gui/ui/loggerwindow.ui +1909 -0
  60. preditor/gui/ui/set_text_editor_path_dialog.ui +189 -0
  61. preditor/gui/ui/suggest_path_quotes_dialog.ui +225 -0
  62. preditor/gui/window.py +161 -0
  63. preditor/gui/workbox_mixin.py +1139 -0
  64. preditor/gui/workbox_text_edit.py +136 -0
  65. preditor/gui/workboxwidget.py +315 -0
  66. preditor/logging_config.py +55 -0
  67. preditor/osystem.py +401 -0
  68. preditor/plugins.py +118 -0
  69. preditor/prefs.py +381 -0
  70. preditor/resource/environment_variables.html +26 -0
  71. preditor/resource/error_mail.html +85 -0
  72. preditor/resource/error_mail_inline.html +41 -0
  73. preditor/resource/img/README.md +17 -0
  74. preditor/resource/img/arrow_forward.png +0 -0
  75. preditor/resource/img/check-bold.png +0 -0
  76. preditor/resource/img/chevron-down.png +0 -0
  77. preditor/resource/img/chevron-up.png +0 -0
  78. preditor/resource/img/close-thick.png +0 -0
  79. preditor/resource/img/comment-edit.png +0 -0
  80. preditor/resource/img/content-copy.png +0 -0
  81. preditor/resource/img/content-cut.png +0 -0
  82. preditor/resource/img/content-duplicate.png +0 -0
  83. preditor/resource/img/content-paste.png +0 -0
  84. preditor/resource/img/content-save.png +0 -0
  85. preditor/resource/img/debug_disabled.png +0 -0
  86. preditor/resource/img/eye-check.png +0 -0
  87. preditor/resource/img/file-plus.png +0 -0
  88. preditor/resource/img/file-remove.png +0 -0
  89. preditor/resource/img/format-align-left.png +0 -0
  90. preditor/resource/img/format-letter-case-lower.png +0 -0
  91. preditor/resource/img/format-letter-case-upper.png +0 -0
  92. preditor/resource/img/format-letter-case.svg +1 -0
  93. preditor/resource/img/information.png +0 -0
  94. preditor/resource/img/logging_critical.png +0 -0
  95. preditor/resource/img/logging_custom.png +0 -0
  96. preditor/resource/img/logging_debug.png +0 -0
  97. preditor/resource/img/logging_error.png +0 -0
  98. preditor/resource/img/logging_info.png +0 -0
  99. preditor/resource/img/logging_not_set.png +0 -0
  100. preditor/resource/img/logging_warning.png +0 -0
  101. preditor/resource/img/marker.png +0 -0
  102. preditor/resource/img/play.png +0 -0
  103. preditor/resource/img/playlist-play.png +0 -0
  104. preditor/resource/img/plus-minus-variant.png +0 -0
  105. preditor/resource/img/preditor.ico +0 -0
  106. preditor/resource/img/preditor.png +0 -0
  107. preditor/resource/img/preditor.psd +0 -0
  108. preditor/resource/img/preditor.svg +44 -0
  109. preditor/resource/img/regex.svg +1 -0
  110. preditor/resource/img/restart.svg +1 -0
  111. preditor/resource/img/skip-forward-outline.png +0 -0
  112. preditor/resource/img/skip-next-outline.png +0 -0
  113. preditor/resource/img/skip-next.png +0 -0
  114. preditor/resource/img/skip-previous.png +0 -0
  115. preditor/resource/img/subdirectory-arrow-right.png +0 -0
  116. preditor/resource/img/text-search-variant.png +0 -0
  117. preditor/resource/img/warning-big.png +0 -0
  118. preditor/resource/lang/python.json +30 -0
  119. preditor/resource/pref_updates/pref_updates.json +17 -0
  120. preditor/resource/settings.ini +25 -0
  121. preditor/resource/stylesheet/Bright.css +76 -0
  122. preditor/resource/stylesheet/Dark.css +210 -0
  123. preditor/scintilla/__init__.py +40 -0
  124. preditor/scintilla/delayables/__init__.py +11 -0
  125. preditor/scintilla/delayables/smart_highlight.py +97 -0
  126. preditor/scintilla/delayables/spell_check.py +174 -0
  127. preditor/scintilla/documenteditor.py +1924 -0
  128. preditor/scintilla/finddialog.py +68 -0
  129. preditor/scintilla/lang/__init__.py +80 -0
  130. preditor/scintilla/lang/config/bash.ini +15 -0
  131. preditor/scintilla/lang/config/batch.ini +14 -0
  132. preditor/scintilla/lang/config/cpp.ini +19 -0
  133. preditor/scintilla/lang/config/css.ini +19 -0
  134. preditor/scintilla/lang/config/eyeonscript.ini +17 -0
  135. preditor/scintilla/lang/config/html.ini +21 -0
  136. preditor/scintilla/lang/config/javascript.ini +24 -0
  137. preditor/scintilla/lang/config/lua.ini +16 -0
  138. preditor/scintilla/lang/config/maxscript.ini +20 -0
  139. preditor/scintilla/lang/config/mel.ini +18 -0
  140. preditor/scintilla/lang/config/mu.ini +22 -0
  141. preditor/scintilla/lang/config/nsi.ini +19 -0
  142. preditor/scintilla/lang/config/perl.ini +19 -0
  143. preditor/scintilla/lang/config/puppet.ini +19 -0
  144. preditor/scintilla/lang/config/python.ini +28 -0
  145. preditor/scintilla/lang/config/ruby.ini +19 -0
  146. preditor/scintilla/lang/config/sql.ini +7 -0
  147. preditor/scintilla/lang/config/xml.ini +21 -0
  148. preditor/scintilla/lang/config/yaml.ini +18 -0
  149. preditor/scintilla/lang/language.py +240 -0
  150. preditor/scintilla/lexers/__init__.py +0 -0
  151. preditor/scintilla/lexers/cpplexer.py +22 -0
  152. preditor/scintilla/lexers/javascriptlexer.py +27 -0
  153. preditor/scintilla/lexers/maxscriptlexer.py +235 -0
  154. preditor/scintilla/lexers/mellexer.py +369 -0
  155. preditor/scintilla/lexers/mulexer.py +33 -0
  156. preditor/scintilla/lexers/pythonlexer.py +42 -0
  157. preditor/scintilla/ui/finddialog.ui +160 -0
  158. preditor/settings.py +71 -0
  159. preditor/stream/__init__.py +72 -0
  160. preditor/stream/console_handler.py +169 -0
  161. preditor/stream/director.py +144 -0
  162. preditor/stream/manager.py +97 -0
  163. preditor/streamhandler_helper.py +46 -0
  164. preditor/utils/__init__.py +191 -0
  165. preditor/utils/call_stack.py +86 -0
  166. preditor/utils/cute.py +106 -0
  167. preditor/utils/stylesheets.py +54 -0
  168. preditor/utils/text_search.py +338 -0
  169. preditor/version.py +34 -0
  170. preditor/weakref.py +363 -0
  171. preditor-2.1.0.dist-info/METADATA +308 -0
  172. preditor-2.1.0.dist-info/RECORD +179 -0
  173. preditor-2.1.0.dist-info/WHEEL +5 -0
  174. preditor-2.1.0.dist-info/entry_points.txt +19 -0
  175. preditor-2.1.0.dist-info/licenses/LICENSE +165 -0
  176. preditor-2.1.0.dist-info/top_level.txt +3 -0
  177. tests/encodings/test_ecoding.py +33 -0
  178. tests/find_files/test_find_files.py +74 -0
  179. tests/ide/test_delayable_engine.py +171 -0
@@ -0,0 +1,179 @@
1
+ preditor/__init__.py,sha256=OYa3hr4hYRnFzLEkpSS0eMZ_gpf80TZQbSEFsprDuSs,11914
2
+ preditor/__main__.py,sha256=boRVSmxX6eF8EkzbePtCZbzdcaPseqVae4RPPLp3U1A,449
3
+ preditor/about_module.py,sha256=_jhd2vaWArnnw2qvsZtOSQvntec9PG_PCiSFbcS1j_I,5347
4
+ preditor/cli.py,sha256=kyVr0V43KYSMLIEWXH54CA0ByFmPcpbFF-8cli6PVow,5300
5
+ preditor/config.py,sha256=DTDqJ8cVnbvAE8IytAREMV7HJS2b3DLH1jtFIkdTo8c,11883
6
+ preditor/constants.py,sha256=YWL14kdC1lkLv_PQnwwyGQJk-x_aJpzf6zbO13rozAE,381
7
+ preditor/contexts.py,sha256=LsMhcIeoEPPSKqYnn9cKroxHuYkTnXqqbEcLVJ-EWso,8753
8
+ preditor/debug.py,sha256=JClWCZc5A04KM1wHOibDG3tsLoNoa6d4-4uIaWnlyUo,4733
9
+ preditor/enum.py,sha256=snG5V259dH9SI1kwBqZeZdhat36F1iAmIjYErosnDUg,23489
10
+ preditor/excepthooks.py,sha256=EdWoP4tAFFm5hGudLMCHN3GP_9Y1qgRTJ_Kl6RYvTjA,6282
11
+ preditor/logging_config.py,sha256=e6J6ZxvmWG1fzATXobN2v0JXv0pv9mLfOczu_5rRxwY,1572
12
+ preditor/osystem.py,sha256=vRr-WaIzYEO38tJeyHMOlAyrvGaWGBuiyaPx0X9JfZ4,13682
13
+ preditor/plugins.py,sha256=RAeyvdZxQsZY313ae5aAhahqpjuhaXJzDxPyLcR-09U,4401
14
+ preditor/prefs.py,sha256=pEpI1pzid7M7uohYrgXuDKGEV1Ib9AYNbE01wXr7et8,12303
15
+ preditor/settings.py,sha256=DV9_DbJorEnhdIvW15E7h7PswlQUsy0UlA8bXUYN0og,2206
16
+ preditor/streamhandler_helper.py,sha256=kiU6T9WqJ3JKTTKCa7IUU8brwK7zO5UUpEzLhEfKe44,1788
17
+ preditor/version.py,sha256=3MXh5QXFi-65BYS232qxecLA7-LYV8NDqcdIWRoP7KA,712
18
+ preditor/weakref.py,sha256=b--KomFAHcMWr3DEAIN2j3XxRhjDWKw0WABXyn1nxDg,12177
19
+ preditor/cores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ preditor/cores/core.py,sha256=mdVXlEPDh8kIdOpMDqi8P1VaqfVvyu5cXBq_toONcaM,586
21
+ preditor/dccs/.hab.json,sha256=9_x-QXUhqrDJDPXXJF4hS3KZh9S27m6egeS5xYbJrtI,236
22
+ preditor/dccs/maya/PrEditor_maya.mod,sha256=uY9moRGjwKDYt6RdKxw_8oCHSQwZ0cmYRSAknUs7eKo,25
23
+ preditor/dccs/maya/README.md,sha256=b-W0MmhII_y4_NSIPlbjBbPNxciGVAwW4plsLNiDhtc,1155
24
+ preditor/dccs/maya/plug-ins/PrEditor_maya.py,sha256=NI0ysu84GZ8dRMQpesEvSHY2YGra0jiP7N5qxR0ih0A,5102
25
+ preditor/dccs/studiomax/PackageContents.xml,sha256=063SW-C9bje7_ZlJgQnT6ehoV7-42eHaSbZaIsMArQk,1647
26
+ preditor/dccs/studiomax/PrEditor-PrEditor_Show.mcr,sha256=Cju39XiwGHP5AtfgVqxkts9GjFVlZmTK_VUDUO_jegE,164
27
+ preditor/dccs/studiomax/README.md,sha256=grDwWRsCVut8ncEKNHIGFwVGeSJRYDs6oukd-SYM1qc,814
28
+ preditor/dccs/studiomax/preditor.ms,sha256=GeX2taJgSsqJBB8_cCdVMV6-G75xjCWyh1G_8atVR6Y,558
29
+ preditor/dccs/studiomax/preditor_menu.mnx,sha256=AjUOFC9vz4f3qxYYMGo0-wmlYzCo5D6N5hP5Fv0RHc8,684
30
+ preditor/delayable_engine/__init__.py,sha256=imy_fMPiBQUKkN4CvPcSy_mYvWEpphaTMYZbMPPgjZw,11214
31
+ preditor/delayable_engine/delayables.py,sha256=GWxv4iTcqFeo7703SMrtotKx4cfq1ujJMNdpmtawPqc,2708
32
+ preditor/gui/__init__.py,sha256=LjMyLLCLj2WKyIdhkxO-kx4Pl0HiT3sbmX80zF6Y-h8,1750
33
+ preditor/gui/app.py,sha256=mswsa_zODqyZXoG8UBjDsiJhr6r2L7TXrS88FA7mzmU,6022
34
+ preditor/gui/codehighlighter.py,sha256=OhpPUazDjWYAaq5X-MHJchY9egzz_JTuu-hfDjLsASo,9966
35
+ preditor/gui/completer.py,sha256=U2FBJA_ceFq_viGqPogncH-6vhrtTcpxAF61SUnaOJ8,7813
36
+ preditor/gui/console.py,sha256=2lQ0rLdz9H-9YebWHxGHYSlVex809I2NEbLfdWEg46I,23764
37
+ preditor/gui/console_base.py,sha256=fYOK-N0DQrZvvNQDVqU9USXXzXFrxsc_upA6AaruSpw,36967
38
+ preditor/gui/dialog.py,sha256=fasmBDhN-B6uretbSQ3x1SxImsQLSKIMw4PC9B8BimI,6535
39
+ preditor/gui/drag_tab_bar.py,sha256=gAJUuzUOvJp0SKPnP3fz5q-Xlgen7wRvegaGcsnSMZ4,25454
40
+ preditor/gui/editor_chooser.py,sha256=lv1eY0UJOulX1l-P-ZQEoneYz6BNX2VkXEbg3GUu1ag,1991
41
+ preditor/gui/errordialog.py,sha256=0BEYGJOGXejNCCmPb7x1xg8T5m7iAzTZfhK0qwfChLg,2099
42
+ preditor/gui/find_files.py,sha256=sXkZswJeTr-SFvaQyFdTwjB_RStyghTDHs2euEIiTHo,4662
43
+ preditor/gui/level_buttons.py,sha256=h0pMMzp-ElwcN_qfR4EBQtXn1C666KVcnR9dMoixD3E,12597
44
+ preditor/gui/logger_window_handler.py,sha256=CR3sBcxzNritTj_vGiIAtW-BnrhUHaMAflZOpEnfBBw,2471
45
+ preditor/gui/logger_window_plugin.py,sha256=Lj9Q8L82GjzZ21ZI5W0FCHhrPHNALIunT_C9ua15l2w,1272
46
+ preditor/gui/loggerwindow.py,sha256=RTuRhUzzy5o505_hEaf5R_xalvyr-D6bgunqMHi6XdI,93591
47
+ preditor/gui/newtabwidget.py,sha256=5aCWn9xAl5h1oZACqVuEsOAbzKTS2RegrLI41gROC8A,1971
48
+ preditor/gui/output_console.py,sha256=Tr34VEThwthWkx9o7bIo6x9mdqR9U6-0xYY0T2GzqS0,342
49
+ preditor/gui/set_text_editor_path_dialog.py,sha256=bn8IeQHXPSU4PLYXQmSxKB1V8iuJaI1PA5aDJNgxXks,2292
50
+ preditor/gui/status_label.py,sha256=SlNRmPc28S4E2OFVmErv0DmZstk4011Q_7uLp43SF0A,3320
51
+ preditor/gui/suggest_path_quotes_dialog.py,sha256=QUJf_9hs8wOO6bFOr8_Z2xnNhSA8TfKFMOzheUqUDnY,1822
52
+ preditor/gui/window.py,sha256=6Ztjqb0Xfh8DsI7hBF4Rg-4-gWPZKTV4GRJiz3V8O6Q,5904
53
+ preditor/gui/workbox_mixin.py,sha256=EOJZIn3eMMsWjaZaRUsqQB10gJXxGkMGKvxpWU-Az0E,40317
54
+ preditor/gui/workbox_text_edit.py,sha256=_0mMK7Ry--efMwfOTo_r6pMA1L1CRIrnr9KjVTJU62A,4120
55
+ preditor/gui/workboxwidget.py,sha256=dY3ZTNhV0PML5GU3rWGwpaYk2Ly_FoISrNLf-qkqKSg,10655
56
+ preditor/gui/fuzzy_search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
+ preditor/gui/fuzzy_search/fuzzy_search.py,sha256=zohr6oAE99FZFlLjqKZajBrdyJIYLW96rcCOy5Bn1i0,3714
58
+ preditor/gui/group_tab_widget/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
+ preditor/gui/group_tab_widget/group_tab_widget.py,sha256=MKBAlabXBalt_ITVOVf2CbcfFqn_13oUqQ6JHJf9Tt8,20825
60
+ preditor/gui/group_tab_widget/grouped_tab_menu.py,sha256=lopd3mjHJIE_5xLdlZL0ghuBzsYo36vO1OZE6L6tqbI,1288
61
+ preditor/gui/group_tab_widget/grouped_tab_models.py,sha256=vzILt9xbueLL5VVSdyep0EO0x6Pfyz6pXMLdSjpmag8,4026
62
+ preditor/gui/group_tab_widget/grouped_tab_widget.py,sha256=QT36tBWOPN-uPG34qAaJ4soagI47lSxIekqrOA9SN5U,7526
63
+ preditor/gui/group_tab_widget/one_tab_widget.py,sha256=RtRPTqC5QicuSVzYGaz_qa4_UMt9WHNvAvRc122BnCk,3447
64
+ preditor/gui/qtdesigner/__init__.py,sha256=_C4or13NGOQA2LKMUyxiGVCMEXEm8okuypQfA8eGVLA,605
65
+ preditor/gui/qtdesigner/_log_plugin.py,sha256=jUS-bXhUKPFwA_4Mz-6mMc2tCEji6RAFN9ig72ViWqw,874
66
+ preditor/gui/qtdesigner/console_base_plugin.py,sha256=8ymcE_YTluKXbnmQB5WwQkwB-aLMDm-luteERIehW-U,1058
67
+ preditor/gui/qtdesigner/console_predit_plugin.py,sha256=HKv74TnvF_qXBYXsuUAoy8QX1fu80udJxnDQhcZyR0M,1044
68
+ preditor/gui/ui/editor_chooser.ui,sha256=cYSVHK0A4-zst6JyDkrBZK9qcAontbhV4Mmnw5ps72E,2736
69
+ preditor/gui/ui/errordialog.ui,sha256=i7cVc28FPxA_b4Xa58W_xmRJ_1GFb5rgtUhR_gZcf4E,1831
70
+ preditor/gui/ui/find_files.ui,sha256=8mdD3Vg3ofRMChdKntxiDHO3JXHQSKjjY6OLY_1W5lc,3328
71
+ preditor/gui/ui/loggerwindow.ui,sha256=Kq0roQIAqJHYJQPSDSlzRJVyzbc-8w3efkHtBBrPHNk,69024
72
+ preditor/gui/ui/set_text_editor_path_dialog.ui,sha256=VLBpTvGneXAi9RX1dRd6oPwKoZhQ_m5HO1j1qXPhTxc,5201
73
+ preditor/gui/ui/suggest_path_quotes_dialog.ui,sha256=0hcr7kEFmmMVEp7vv18mDpvWZ0zOrojlkTLhIWCFKww,5923
74
+ preditor/resource/environment_variables.html,sha256=-uWicgOkour-sxtY-crrjMiLMyJzAzshwUXKqSm6TmI,3134
75
+ preditor/resource/error_mail.html,sha256=oCzynF3QSHi_Xg1wlmU5M5u1Q05mp7QV0ZtQ4e8KQDA,2400
76
+ preditor/resource/error_mail_inline.html,sha256=ceZ8HReyTirMOX-xNgVB9kMO8QhpbHI4-WObFeOG9KY,4014
77
+ preditor/resource/settings.ini,sha256=JhPumV7SzlRTZG3Fs1dxPokat3bthfZPw84lJ7E9zPQ,893
78
+ preditor/resource/img/README.md,sha256=gJo4tydTyeZgUlpoEjiNI7SHlKz5Y-e8aE8Yb7mPrHk,1025
79
+ preditor/resource/img/arrow_forward.png,sha256=41jN4EuemyaZtJ1vcynlAvCGRPJmq3NYq1HeWBGRbko,426
80
+ preditor/resource/img/check-bold.png,sha256=FLu28U1BTyUaljouxEGaoHXhG2z4OzvL57MfMSwAnSI,500
81
+ preditor/resource/img/chevron-down.png,sha256=4GNzTPW-q4LR_3tHj1ymlHsRymVma9J_N1eUvNboTJw,451
82
+ preditor/resource/img/chevron-up.png,sha256=ldNfpkqmW_EkugjxjJGGZLKvBhn8YQ8F6xyp-_T09-M,427
83
+ preditor/resource/img/close-thick.png,sha256=RDtR-m7A8sOUjlixX8Up14FAJ-vx7GxscZiMIkL37gs,543
84
+ preditor/resource/img/comment-edit.png,sha256=lh8vFwBRT8k4caF5hWfXeO7V198aiZDzY3TVo9FAibc,680
85
+ preditor/resource/img/content-copy.png,sha256=HWX_3y7gFYu3uaPBMtdqtUIC1jfHN2yP5HxHltpV7BA,492
86
+ preditor/resource/img/content-cut.png,sha256=uljaz_Q8BOvdcGDNvmhkurBZwxoSfbIo05yOnDUpe24,756
87
+ preditor/resource/img/content-duplicate.png,sha256=ou41vXqV3YKNMCwXJrGqYyafd8t3qe9It-YHJA4PYNU,572
88
+ preditor/resource/img/content-paste.png,sha256=TiZmBdJ9myTbjmjySXCuDiF_IB2sdaN05RMFO3vKymU,537
89
+ preditor/resource/img/content-save.png,sha256=q0nTRbq_AaqQHKnWNhfVTnMYlMISd5X7o5AG_aw07SE,573
90
+ preditor/resource/img/debug_disabled.png,sha256=bZ1dFi39QNRbXqQ85llmHbRMR-FGYLryRYfr0bDokrQ,207
91
+ preditor/resource/img/eye-check.png,sha256=tsAVRaL4LREpIT9HefEntQ458zGzEcSBieCcU0eGhXg,968
92
+ preditor/resource/img/file-plus.png,sha256=dvm1hKUMGGeUD7-ngBjVbMeMoFQwOZgJvpWARazcbTo,577
93
+ preditor/resource/img/file-remove.png,sha256=pnJVe9EBzvpMq8G7ikY_DXXDhM9e2m2pJtPTZz3zO_k,690
94
+ preditor/resource/img/format-align-left.png,sha256=y2ixRoDurohX5E5ddxr4tVib_bczRRT7DN9CBDhDmcw,331
95
+ preditor/resource/img/format-letter-case-lower.png,sha256=CkqlY2HABrGLyCEkDC8CPI4To873uNysB-f5PUK1gJA,978
96
+ preditor/resource/img/format-letter-case-upper.png,sha256=NECM28lYBHhnQ_GgKvgli2xbCbiVylNyfWY7VVNpSXw,977
97
+ preditor/resource/img/format-letter-case.svg,sha256=iny15GecoxoRdExnnPNNWQqpqoWicDSTBSV8kRIYF3M,964
98
+ preditor/resource/img/information.png,sha256=vb_-kGXq2T_zeAJlrt5FJGSK8WUFYstzQl8WuMSfs5I,778
99
+ preditor/resource/img/logging_critical.png,sha256=lj4U6l8iRcgmWZWxdaJALvWn_KQELiqY936ZkPlRWJU,151
100
+ preditor/resource/img/logging_custom.png,sha256=zmVRkBX2CVjqD8QdnRKxv7Jss1114bhBt6vpDVkxxdo,297
101
+ preditor/resource/img/logging_debug.png,sha256=1dTtIiPSn5BcAjKs-o5Z8EY0GvNN3MmUJROMMO5CaYc,151
102
+ preditor/resource/img/logging_error.png,sha256=iFCjyDbTub5-McVNPbyRnNgL2UTgUSRX-LEyO3qdPMg,151
103
+ preditor/resource/img/logging_info.png,sha256=KyV71eXTyjks8h5wu4xOBWhV-YVpBHgPp3Rj4KEuTws,151
104
+ preditor/resource/img/logging_not_set.png,sha256=aFp_jOIbLHcdgeNTRMt93trtZWul0uQeV6KmSI9dhRk,151
105
+ preditor/resource/img/logging_warning.png,sha256=de_PP_OZ8VNxhO4UqmlA0eVKQG1oWMa6XCp4P7XROfE,151
106
+ preditor/resource/img/marker.png,sha256=-HKjoNnAXUALmN4R2Qot8V3Gr01l5ulOS1H0-Eh9fGk,655
107
+ preditor/resource/img/play.png,sha256=WDU5whfyVtyNwXmUqkfhcR2xdwBaXN9L8VhxgE4EoOo,502
108
+ preditor/resource/img/playlist-play.png,sha256=DAz-PkqLtOKVgcxSQtP2bQbKHe5ebUKrJc36L_n1ItI,422
109
+ preditor/resource/img/plus-minus-variant.png,sha256=jN7AKN1OUL3kTfvSdkDXpxVRUKCMXd9belaHbdWCMAg,677
110
+ preditor/resource/img/preditor.ico,sha256=HjJbjJ3MYBmw5pFmkY2hEaomK-zPO7LJsOgGgALQN2c,144374
111
+ preditor/resource/img/preditor.png,sha256=y-AdFUy_zDnkylDe8kX1BTfwZS_TIgmEBqrHhx_IhWE,32788
112
+ preditor/resource/img/preditor.psd,sha256=SZgadVDuDAzlUcg6ymlfAL7uw_JzLb1PsmkSAoSazv0,200136
113
+ preditor/resource/img/preditor.svg,sha256=MRsRxcZw3HSJ4ZRDA3XMLytJX34QPJVIAET4lG613KU,3804
114
+ preditor/resource/img/regex.svg,sha256=nIZ6QnNUycEYB9wacB8-DcxzDdcb1ris0ewi3DzGwlM,682
115
+ preditor/resource/img/restart.svg,sha256=v3CFD1bROBch5n8vSQAzQqQc-bzvL_YwkD0JAhn4fuc,403
116
+ preditor/resource/img/skip-forward-outline.png,sha256=5PAOknMYBZcuzskG8OO_QGAjLvA8g9M08MgjTvxfDrM,475
117
+ preditor/resource/img/skip-next-outline.png,sha256=FUTDclE-U4nF5JhjvX-31QTwfv5pKgaX4UziY6UUioU,478
118
+ preditor/resource/img/skip-next.png,sha256=q9V896VWgwatGShqSL7Ebv8sia3Q2XwBv5Y4KaZA60o,446
119
+ preditor/resource/img/skip-previous.png,sha256=ixJHaTPWnyD98aDv_VFuWepcRAHpnTQFYycOufTva5M,469
120
+ preditor/resource/img/subdirectory-arrow-right.png,sha256=PXmp15L0nBHgq_YJlG4WLd_eA2nZk_fHue9yzUpJQm4,456
121
+ preditor/resource/img/text-search-variant.png,sha256=98uwrqOgxmraS1DJ8kJskr9_J7cF3e-niwVuBDqYinA,718
122
+ preditor/resource/img/warning-big.png,sha256=z5QKX3DNLo_UDRKdjwtELbXL_JLf2zOwhkMPnIeu3vw,1065
123
+ preditor/resource/lang/python.json,sha256=fns1tu_8JSTpxJ6YeGZlYUtXR8nWtpUZ2MogM19J0_k,317
124
+ preditor/resource/pref_updates/pref_updates.json,sha256=XLMMNgRqA0xOGLxQIMQrdTUNY2bYfmHJSWGP0lDBV8s,645
125
+ preditor/resource/stylesheet/Bright.css,sha256=z7aYk5aiflNHEyKYB9g7nUk0O3IkMXz4LfVlqDFaP9g,2848
126
+ preditor/resource/stylesheet/Dark.css,sha256=N9i1eyEahiBEW6vELN-MSo82XdoHCc-_yLzeaMRpgpo,5728
127
+ preditor/scintilla/__init__.py,sha256=IDndbcS8KW1TMcQTA1Vd-LzcdsNtOUfyldnjkKae0yw,956
128
+ preditor/scintilla/documenteditor.py,sha256=mzAnhguCHceGsnMDsobu1VdrrxViLGddreFVWqnBNOk,73980
129
+ preditor/scintilla/finddialog.py,sha256=WxNVvkCfXrw_8E3-7tS1DIS9H1-ioLASDgIbniDxz3g,2376
130
+ preditor/scintilla/delayables/__init__.py,sha256=lj9tMc3IL2QeaN858Ixt_n7clJngbKqG2sk66vIcFcQ,275
131
+ preditor/scintilla/delayables/smart_highlight.py,sha256=5emI4StsQCIYizoFsib1rdw0gnUarV9TQ6CwxmzXXpU,3623
132
+ preditor/scintilla/delayables/spell_check.py,sha256=eHia6y-nOlQ-bhcfOm_EbgdREItVFNvIjkX8UIbv6ks,6936
133
+ preditor/scintilla/lang/__init__.py,sha256=db0L84UKwXoiv_5PR3wFcywzbBo5a7SuZIz04S17nIM,1705
134
+ preditor/scintilla/lang/language.py,sha256=okngeGkVANP4e-GJT3NnCowlVxhs13wQZPNy87wp60I,6916
135
+ preditor/scintilla/lang/config/bash.ini,sha256=dtvJOl5HKQo4JMpqoZ3ZcujAyk0qYa61hWYVpp6uzZw,152
136
+ preditor/scintilla/lang/config/batch.ini,sha256=n0gQR47Zs5L9Hb1lkdJ7s2_4bqR7LwXcuCc2uOX4wpA,154
137
+ preditor/scintilla/lang/config/cpp.ini,sha256=un8AiviOrYDrrPJYDSlBjjctWVr4OkSFjLZ5A43DYKU,263
138
+ preditor/scintilla/lang/config/css.ini,sha256=HiVhTHMZSQSPKHbHXMI5ugQNMoJ5t0SnCYDURBd4O3o,215
139
+ preditor/scintilla/lang/config/eyeonscript.ini,sha256=_0J5Svwf0lvWCnaXeRZ_wk9aD_UwC-njK6F8kJOFS0M,223
140
+ preditor/scintilla/lang/config/html.ini,sha256=FM9ernqI9t7XolJnZ2w3n4CBBlrDmIyOXDXQQKnjR6s,437
141
+ preditor/scintilla/lang/config/javascript.ini,sha256=UwBTp2QifcMOAtevF6E0S2AU8DAjHKN4LlVzSCbrkMA,467
142
+ preditor/scintilla/lang/config/lua.ini,sha256=26NE-G5QHi3Mfc41d6pTaRyoGwDFux8HITnOe5y9bxU,169
143
+ preditor/scintilla/lang/config/maxscript.ini,sha256=t2TziHJpggwh78Hlh9fLp6XiFtyCtQejmxv2woFeifQ,368
144
+ preditor/scintilla/lang/config/mel.ini,sha256=VSl6no0olUBr6wIWdX5zUl7DTtytS9rQ1kJ6J0QLbR0,246
145
+ preditor/scintilla/lang/config/mu.ini,sha256=PPwzbROmBpM5BrAvCUVVaJZXJIBONvtV4422CNoPYaw,361
146
+ preditor/scintilla/lang/config/nsi.ini,sha256=8OR0xoW7Oo8JsuO-x_Pgr2ub2FOhf5OBFrm90toT4n8,259
147
+ preditor/scintilla/lang/config/perl.ini,sha256=Qke5rkHFRGvDmIMLpH_KL12VEQ9xttmXWpxsNEQ-MiY,212
148
+ preditor/scintilla/lang/config/puppet.ini,sha256=ABJuceYqutptN1DevP_3GW4aeoI3CcNGRQg889E-dgU,212
149
+ preditor/scintilla/lang/config/python.ini,sha256=Tz86xWNoki3wTW6mIptrGLNmXohrc1Y9Ts_NL1R58Ow,472
150
+ preditor/scintilla/lang/config/ruby.ini,sha256=JwxiiuPfSqLX5FPT1GXY4OK-Axsg640lXx9WUN1fOTo,211
151
+ preditor/scintilla/lang/config/sql.ini,sha256=TrRCliEmJvAlBXyKniJQdtKjfdPnBV-ywqTQct678vE,78
152
+ preditor/scintilla/lang/config/xml.ini,sha256=xEhjIazrQhlEb19fff-mgkftK8cJW9DGcFnZwzTfbjA,469
153
+ preditor/scintilla/lang/config/yaml.ini,sha256=rdFvgxQ7_L3kxqd5TwCAG4YFA75hBi8buVLGDZLaKwg,222
154
+ preditor/scintilla/lexers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
+ preditor/scintilla/lexers/cpplexer.py,sha256=xbFEFdadSrSnJJuq5hb0lwVrx_lZsUYovfCkvcyaa7M,692
156
+ preditor/scintilla/lexers/javascriptlexer.py,sha256=QSh2kGSmhEwQOLd5WjqespY5iMbE-zarZUUxRDU7myI,884
157
+ preditor/scintilla/lexers/maxscriptlexer.py,sha256=0z7I_jhDmyVHFSxXB29rO85nb37Rl2Hg77VPgknbvkw,8485
158
+ preditor/scintilla/lexers/mellexer.py,sha256=egQfRZJ49aJLUObCw-Ya7zdR8APpj4_IpOlwHxA9GJk,26496
159
+ preditor/scintilla/lexers/mulexer.py,sha256=tlyiKYBDRpmxcrH9FGi-Ogz2alHPhyqNaqVrWBvAx6I,966
160
+ preditor/scintilla/lexers/pythonlexer.py,sha256=dh_wSBhhYIIV1hUF_0cWbZCdMBMsOB6EY6x8valWo1s,1737
161
+ preditor/scintilla/ui/finddialog.ui,sha256=CEXouVKqVCDOfMBciK-89OmsGe2Kr6XdMbSPiffp0PA,4048
162
+ preditor/stream/__init__.py,sha256=OjhHuO-E9VbR1xBfnnmnSJhbOy_dEKrpL5jCLHti2zw,2979
163
+ preditor/stream/console_handler.py,sha256=HRRnUcWX7WqUZqRlI3aCFmnr6KGodweNpx0pUZhOVX0,5746
164
+ preditor/stream/director.py,sha256=rOqD5iY0gYERofL4Mys_vNlex9mDWpx0J6cp8TWuppM,5283
165
+ preditor/stream/manager.py,sha256=X-drhWUVBOrkK1p8azJzw6GIi6X5ukG8-uh8sCI79u4,3492
166
+ preditor/utils/__init__.py,sha256=7CtGahN3ZqAWXYhH-Xi3hdkgMnD06Qz5Yd24qmYBRzw,6903
167
+ preditor/utils/call_stack.py,sha256=GtxgdFWisHUYfGYHTRHRkzn4-Saihjl1AKMXWbjjMCI,2927
168
+ preditor/utils/cute.py,sha256=K-emKzX77nAoeYFOK799PZpcIUVNlZY7Rz3g2k45rDg,4322
169
+ preditor/utils/stylesheets.py,sha256=EVWZNq3WnaRiyUPoYMKQo_dLEwbRyKu26b03I1JDA-s,1622
170
+ preditor/utils/text_search.py,sha256=Eq8_fum-WF4rOQxt8KNfLr75NOMjz8jnKlSBGrLBw0k,13924
171
+ preditor-2.1.0.dist-info/licenses/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
172
+ tests/encodings/test_ecoding.py,sha256=m2of7fEQl80KxZb1YcEAqxkDwekO9T4JngqOg2nBCPI,1128
173
+ tests/find_files/test_find_files.py,sha256=ETVe1tC666uTc_5pPhjzPCaMrMkYUB8iKGXDfW9usgI,2722
174
+ tests/ide/test_delayable_engine.py,sha256=Nv6SQXpwIdfgRbEOsEcR-7jhjZ6E0THPdwDoPvAM6y4,5948
175
+ preditor-2.1.0.dist-info/METADATA,sha256=hgrlMUgJhBNDg0KRi6nS5QS8OwV2xN1gP3RgP9gu_ls,15548
176
+ preditor-2.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
177
+ preditor-2.1.0.dist-info/entry_points.txt,sha256=KfOcwa4r1IWIhlfpYQ0srWEISR4ri2nHCxWMQI7ThlM,576
178
+ preditor-2.1.0.dist-info/top_level.txt,sha256=dZSBDecBQovRyqbFdvwk1AvMon636dJ14vr9ov1LSPs,20
179
+ preditor-2.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,19 @@
1
+ [console_scripts]
2
+ preditor = preditor.cli:cli
3
+
4
+ [gui_scripts]
5
+ preditorw = preditor.cli:cli
6
+
7
+ [preditor.plug.about_module]
8
+ Exe = preditor.about_module:AboutExe
9
+ PrEditor = preditor.about_module:AboutPreditor
10
+ Python = preditor.about_module:AboutPython
11
+ Qt = preditor.about_module:AboutQt
12
+
13
+ [preditor.plug.editors]
14
+ QScintilla = preditor.gui.workboxwidget:WorkboxWidget
15
+ TextEdit = preditor.gui.workbox_text_edit:WorkboxTextEdit
16
+
17
+ [preditor.plug.logging_handlers]
18
+ Console = preditor.stream.console_handler:ConsoleHandler
19
+ PrEditor = preditor.gui.logger_window_handler:LoggerWindowHandler
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,3 @@
1
+ dist
2
+ preditor
3
+ tests
@@ -0,0 +1,33 @@
1
+ from pathlib import Path
2
+
3
+ import pytest
4
+
5
+ from preditor.gui.workbox_mixin import WorkboxMixin
6
+
7
+ this_dir = Path(__file__).parent
8
+
9
+
10
+ @pytest.mark.parametrize(
11
+ "filename, check_encoding",
12
+ (
13
+ # This file doesn't have any strictly unicode characters in it so it would
14
+ # get detected as cp037 which doesn't get handled correctly on save.
15
+ ("a_utf-8.txt", "utf-8"),
16
+ # This file has a unicode only character as well as the previous text
17
+ ("b_utf-8.txt", "utf-8"),
18
+ ),
19
+ )
20
+ def test_workbox_mixin_open_file(filename, check_encoding):
21
+ """Test how preditor handles text encoding of varous files.
22
+
23
+ To test a specific case, add a new .txt file next to this file and add it to
24
+ the parametrize decorator specifying the encoding that should be detected
25
+ and decoded. Use a comment to explain what this file is testing.
26
+ """
27
+ filename = this_dir / filename
28
+ encoding, text = WorkboxMixin.__open_file__(filename)
29
+ check_bytes = filename.open("rb").read()
30
+ check_text = check_bytes.decode(check_encoding)
31
+
32
+ assert encoding == check_encoding
33
+ assert text == check_text
@@ -0,0 +1,74 @@
1
+ import os
2
+
3
+ import pytest
4
+
5
+ from preditor.utils.text_search import RegexTextSearch, SimpleTextSearch
6
+
7
+
8
+ def text_for_test(filename):
9
+ dirname = os.path.dirname(__file__)
10
+ filename = os.path.join(dirname, filename)
11
+ with open(filename) as fle:
12
+ return fle.read()
13
+
14
+
15
+ @pytest.mark.parametrize(
16
+ "check_type,search_text,is_cs,context,is_re",
17
+ (
18
+ # Simple text search testing context and case
19
+ ("simple", "search term", False, 0, False),
20
+ ("simple", "search term", False, 1, False),
21
+ ("simple", "search term", False, 2, False),
22
+ ("simple", "search term", False, 3, False),
23
+ ("simple", "search term", True, 2, False),
24
+ # Regex search testing context and case
25
+ ("re_simple", "search term", False, 0, True),
26
+ ("re_simple", "search term", False, 2, True),
27
+ ("re_simple", "search term", False, 3, True),
28
+ ("re_simple", "search term", True, 2, True),
29
+ # Complex regex with a greedy search term
30
+ ("re_greedy", "search.+term", False, 0, True),
31
+ ("re_greedy", "search.+term", False, 2, True),
32
+ ("re_greedy", "search.+term", True, 2, True),
33
+ ("re_greedy_upper", "Search.+term", True, 2, True),
34
+ ),
35
+ )
36
+ def test_find_files(capsys, check_type, search_text, is_cs, context, is_re):
37
+ workbox_id = "1,2"
38
+ path = 'First Group/First Tab'
39
+ text = text_for_test("tab_text.txt")
40
+
41
+ if is_re:
42
+ TextSearch = RegexTextSearch
43
+ else:
44
+ TextSearch = SimpleTextSearch
45
+
46
+ search = TextSearch(search_text, case_sensitive=is_cs, context=context)
47
+ # Add the title to the printed output so title is tested when checking
48
+ # `captured.out` later.
49
+ print(search.title())
50
+
51
+ # Generate the search text and print it to `captured.out` so we can check
52
+ search.search_text(text, path, workbox_id)
53
+
54
+ captured = capsys.readouterr()
55
+ check_filename = "{}_{}_{}_{}.md".format(check_type, is_cs, context, is_re)
56
+ check = text_for_test(check_filename)
57
+
58
+ # To update tests, print text and save over top of the md. Then verify
59
+ # that it is actually rendered properly. You will need to add one trailing
60
+ # space after dot lines, two spaces after blank lines, and ensue the end of
61
+ # file newline is present. The default print callbacks use markdown links,
62
+ # but don't really render valid markdown. If you want to render to html,
63
+ # use regular markdown not github flavored.
64
+ # print(check_filename)
65
+ # print(captured.out)
66
+
67
+ # print('*' * 50)
68
+ # for line in check.rstrip().splitlines(keepends=True):
69
+ # print([line])
70
+ # print('*' * 50)
71
+ # for line in captured.out.splitlines(keepends=True):
72
+ # print([line])
73
+
74
+ assert captured.out == check
@@ -0,0 +1,171 @@
1
+ from __future__ import absolute_import, print_function
2
+
3
+ import sys
4
+
5
+ import pytest
6
+ from Qt.QtWidgets import QApplication
7
+
8
+ from preditor.delayable_engine import DelayableEngine
9
+ from preditor.delayable_engine.delayables import Delayable, RangeDelayable
10
+ from preditor.scintilla.documenteditor import DocumentEditor
11
+
12
+ # TODO: Re-enable these tests once they work on the github runners
13
+ pytestmark = pytest.mark.skipif(
14
+ sys.platform != "win32", reason="Test fails on gitrunner"
15
+ )
16
+
17
+
18
+ class RangeTestDelayable(RangeDelayable):
19
+ key = 'range_test'
20
+
21
+ def add_document(self, document):
22
+ try:
23
+ document.init_count += 1
24
+ except AttributeError:
25
+ document.init_count = 1
26
+
27
+ def loop(self, document, line_num, line_end, value):
28
+ return
29
+
30
+ def remove_document(self, document):
31
+ document.init_count -= 1
32
+
33
+
34
+ class ADelayable(Delayable):
35
+ key = 'a_delayable'
36
+
37
+ def add_document(self, document):
38
+ try:
39
+ document.init_count += 1
40
+ except AttributeError:
41
+ document.init_count = 1
42
+ # enqueue a command so we can verify that remove_delayable removes it
43
+ self.engine.enqueue(document, self.key)
44
+
45
+ def remove_document(self, document):
46
+ document.init_count -= 1
47
+
48
+
49
+ @pytest.fixture()
50
+ def engine():
51
+ """Creates a test DelayableEngine and DocumentEditor.
52
+ The DocumentEditor can be accessed by using `engine.test_doc`.
53
+ """
54
+ global app
55
+ if not QApplication.instance():
56
+ # These test require an initialized QApplication create one and ensure
57
+ # it doesn't get garbage collected. Creating the app here prevents
58
+ # segfaults when skipping this file on linux. We need to figure out
59
+ # how to run these tests in github actions.
60
+ app = QApplication([])
61
+
62
+ engine = DelayableEngine('test_engine')
63
+ engine.test_doc = DocumentEditor(None)
64
+ engine.add_document(engine.test_doc)
65
+
66
+ return engine
67
+
68
+
69
+ def test_add_delayable(engine):
70
+ assert len(engine.delayables) == 0
71
+
72
+ # Check that we can add a instance of Delayable
73
+ delayable = RangeTestDelayable(engine)
74
+ engine.add_delayable(delayable)
75
+ assert len(engine.delayables) == 1
76
+
77
+ # Adding a second delayable with the same key replaces the previous one
78
+ delayable1 = RangeTestDelayable(engine)
79
+ engine.add_delayable(delayable1)
80
+ assert len(engine.delayables) == 1
81
+ assert engine.delayables['range_test'] == delayable1
82
+
83
+ # Check that if a invalid delayable key is passed a exception is raised
84
+ with pytest.raises(KeyError):
85
+ engine.add_delayable('undefined_key')
86
+ assert len(engine.delayables) == 1
87
+
88
+ # We can add a new Delayable instance if a valid key is passed
89
+ engine.add_delayable('a_delayable')
90
+ assert len(engine.delayables) == 2
91
+
92
+
93
+ @pytest.mark.parametrize(
94
+ 'args1,args2,merged',
95
+ (
96
+ # Smallest start should be used
97
+ ((10, 100, 'a'), (25, 75, 'b'), (10, 100, 'b')),
98
+ ((50, 100, 'a'), (25, 75, 'b'), (25, 100, 'b')),
99
+ # Largest end should be used
100
+ ((50, 60, 'a'), (25, 75, 'b'), (25, 75, 'b')),
101
+ ((50, 100, 'a'), (60, 75, 'b'), (50, 100, 'b')),
102
+ # None should always be used for end if passed
103
+ ((50, 60, 'a'), (25, None, 'b'), (25, None, 'b')),
104
+ ((50, None, 'a'), (25, 75, 'b'), (25, None, 'b')),
105
+ ((50, None, 'a'), (25, None, 'b'), (25, None, 'b')),
106
+ ),
107
+ )
108
+ def test_merge_args(engine, args1, args2, merged):
109
+ delayable = RangeTestDelayable(engine)
110
+ engine.add_delayable(delayable)
111
+
112
+ engine.enqueue(engine.test_doc, 'range_test', *args1)
113
+ args = engine.test_doc.delayable_info['range_test']
114
+ # merge_args should not have been called yet, so args should be unchanged
115
+ assert args == args1
116
+
117
+ # Encueue the same key twice without looping will force a call of merge_args
118
+ engine.enqueue(engine.test_doc, 'range_test', *args2)
119
+ args = engine.test_doc.delayable_info['range_test']
120
+ assert args == merged
121
+
122
+
123
+ def test_remove_documents(engine):
124
+ """Check that a document can be removed and added correctly."""
125
+ delayable = RangeTestDelayable(engine)
126
+ engine.add_delayable(delayable)
127
+
128
+ # Check that add_document was called originally
129
+ assert len(engine.documents) == 1
130
+ assert engine.test_doc.init_count == 1
131
+ # Check that the delayable_engine was updated correctly
132
+ assert engine.test_doc.delayable_engine.name == 'test_engine'
133
+
134
+ # Check that remove_document was called
135
+ engine.remove_document(engine.test_doc)
136
+ assert len(engine.documents) == 0
137
+ assert engine.test_doc.init_count == 0
138
+ assert engine.test_doc.delayable_engine.name == 'default'
139
+
140
+ # Check that add_document is called again
141
+ engine.add_document(engine.test_doc)
142
+ assert len(engine.documents) == 1
143
+ assert engine.test_doc.init_count == 1
144
+ assert engine.test_doc.delayable_engine.name == 'test_engine'
145
+
146
+
147
+ def test_remove_delayables(engine):
148
+ """Check that a delayable can be added and removed correctly."""
149
+ delayable = ADelayable(engine)
150
+ engine.add_delayable(delayable)
151
+
152
+ # Check that add_document was called originally
153
+ assert len(engine.delayables) == 1
154
+ assert engine.test_doc.init_count == 1
155
+ assert 'a_delayable' in engine.test_doc.delayable_info
156
+ # Removing a delayable doesn't remove the delay engine
157
+ assert engine.test_doc.delayable_engine.name == 'test_engine'
158
+
159
+ # Check that remove_document was called
160
+ engine.remove_delayable(delayable)
161
+ assert len(engine.delayables) == 0
162
+ assert engine.test_doc.init_count == 0
163
+ assert 'a_delayable' not in engine.test_doc.delayable_info
164
+ assert engine.test_doc.delayable_engine.name == 'test_engine'
165
+
166
+ # Check that add_document is called again
167
+ engine.add_delayable(delayable)
168
+ assert len(engine.delayables) == 1
169
+ assert engine.test_doc.init_count == 1
170
+ assert 'a_delayable' in engine.test_doc.delayable_info
171
+ assert engine.test_doc.delayable_engine.name == 'test_engine'