PrEditor 1.0.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 +322 -0
- preditor/__main__.py +13 -0
- preditor/about_module.py +161 -0
- preditor/cli.py +192 -0
- preditor/config.py +302 -0
- preditor/contexts.py +119 -0
- preditor/cores/__init__.py +0 -0
- preditor/cores/core.py +20 -0
- preditor/dccs/maya/PrEditor_maya.mod +2 -0
- preditor/dccs/maya/plug-ins/PrEditor_maya.py +110 -0
- preditor/debug.py +144 -0
- preditor/delayable_engine/__init__.py +302 -0
- preditor/delayable_engine/delayables.py +85 -0
- preditor/enum.py +728 -0
- preditor/excepthooks.py +131 -0
- preditor/gui/__init__.py +93 -0
- preditor/gui/app.py +160 -0
- preditor/gui/codehighlighter.py +209 -0
- preditor/gui/completer.py +226 -0
- preditor/gui/console.py +867 -0
- preditor/gui/dialog.py +178 -0
- preditor/gui/drag_tab_bar.py +190 -0
- preditor/gui/editor_chooser.py +57 -0
- preditor/gui/errordialog.py +68 -0
- preditor/gui/find_files.py +125 -0
- preditor/gui/fuzzy_search/__init__.py +0 -0
- preditor/gui/fuzzy_search/fuzzy_search.py +93 -0
- preditor/gui/group_tab_widget/__init__.py +325 -0
- preditor/gui/group_tab_widget/grouped_tab_menu.py +35 -0
- preditor/gui/group_tab_widget/grouped_tab_models.py +108 -0
- preditor/gui/group_tab_widget/grouped_tab_widget.py +78 -0
- preditor/gui/group_tab_widget/one_tab_widget.py +54 -0
- preditor/gui/level_buttons.py +343 -0
- preditor/gui/logger_window_handler.py +48 -0
- preditor/gui/logger_window_plugin.py +32 -0
- preditor/gui/loggerwindow.py +1385 -0
- preditor/gui/newtabwidget.py +69 -0
- preditor/gui/set_text_editor_path_dialog.py +59 -0
- preditor/gui/status_label.py +99 -0
- preditor/gui/suggest_path_quotes_dialog.py +50 -0
- preditor/gui/ui/editor_chooser.ui +93 -0
- preditor/gui/ui/errordialog.ui +74 -0
- preditor/gui/ui/find_files.ui +140 -0
- preditor/gui/ui/loggerwindow.ui +1105 -0
- preditor/gui/ui/set_text_editor_path_dialog.ui +189 -0
- preditor/gui/ui/suggest_path_quotes_dialog.ui +225 -0
- preditor/gui/window.py +161 -0
- preditor/gui/workbox_mixin.py +389 -0
- preditor/gui/workbox_text_edit.py +137 -0
- preditor/gui/workboxwidget.py +298 -0
- preditor/logging_config.py +52 -0
- preditor/osystem.py +401 -0
- preditor/plugins.py +118 -0
- preditor/prefs.py +74 -0
- preditor/resource/environment_variables.html +26 -0
- preditor/resource/error_mail.html +85 -0
- preditor/resource/error_mail_inline.html +41 -0
- preditor/resource/img/README.md +17 -0
- preditor/resource/img/arrow_forward.png +0 -0
- preditor/resource/img/check-bold.png +0 -0
- preditor/resource/img/chevron-down.png +0 -0
- preditor/resource/img/chevron-up.png +0 -0
- preditor/resource/img/close-thick.png +0 -0
- preditor/resource/img/comment-edit.png +0 -0
- preditor/resource/img/content-copy.png +0 -0
- preditor/resource/img/content-cut.png +0 -0
- preditor/resource/img/content-duplicate.png +0 -0
- preditor/resource/img/content-paste.png +0 -0
- preditor/resource/img/content-save.png +0 -0
- preditor/resource/img/debug_disabled.png +0 -0
- preditor/resource/img/eye-check.png +0 -0
- preditor/resource/img/file-plus.png +0 -0
- preditor/resource/img/file-remove.png +0 -0
- preditor/resource/img/format-align-left.png +0 -0
- preditor/resource/img/format-letter-case-lower.png +0 -0
- preditor/resource/img/format-letter-case-upper.png +0 -0
- preditor/resource/img/format-letter-case.svg +1 -0
- preditor/resource/img/information.png +0 -0
- preditor/resource/img/logging_critical.png +0 -0
- preditor/resource/img/logging_custom.png +0 -0
- preditor/resource/img/logging_debug.png +0 -0
- preditor/resource/img/logging_error.png +0 -0
- preditor/resource/img/logging_info.png +0 -0
- preditor/resource/img/logging_not_set.png +0 -0
- preditor/resource/img/logging_warning.png +0 -0
- preditor/resource/img/marker.png +0 -0
- preditor/resource/img/play.png +0 -0
- preditor/resource/img/playlist-play.png +0 -0
- preditor/resource/img/plus-minus-variant.png +0 -0
- preditor/resource/img/preditor.ico +0 -0
- preditor/resource/img/preditor.png +0 -0
- preditor/resource/img/preditor.psd +0 -0
- preditor/resource/img/preditor.svg +44 -0
- preditor/resource/img/regex.svg +1 -0
- preditor/resource/img/restart.svg +1 -0
- preditor/resource/img/skip-forward-outline.png +0 -0
- preditor/resource/img/skip-next-outline.png +0 -0
- preditor/resource/img/skip-next.png +0 -0
- preditor/resource/img/skip-previous.png +0 -0
- preditor/resource/img/subdirectory-arrow-right.png +0 -0
- preditor/resource/img/text-search-variant.png +0 -0
- preditor/resource/img/warning-big.png +0 -0
- preditor/resource/lang/python.json +30 -0
- preditor/resource/settings.ini +25 -0
- preditor/resource/stylesheet/Bright.css +65 -0
- preditor/resource/stylesheet/Dark.css +199 -0
- preditor/scintilla/__init__.py +22 -0
- preditor/scintilla/delayables/__init__.py +11 -0
- preditor/scintilla/delayables/smart_highlight.py +94 -0
- preditor/scintilla/delayables/spell_check.py +173 -0
- preditor/scintilla/documenteditor.py +2038 -0
- preditor/scintilla/finddialog.py +68 -0
- preditor/scintilla/lang/__init__.py +80 -0
- preditor/scintilla/lang/config/bash.ini +15 -0
- preditor/scintilla/lang/config/batch.ini +14 -0
- preditor/scintilla/lang/config/cpp.ini +19 -0
- preditor/scintilla/lang/config/css.ini +19 -0
- preditor/scintilla/lang/config/eyeonscript.ini +17 -0
- preditor/scintilla/lang/config/html.ini +21 -0
- preditor/scintilla/lang/config/javascript.ini +24 -0
- preditor/scintilla/lang/config/lua.ini +16 -0
- preditor/scintilla/lang/config/maxscript.ini +20 -0
- preditor/scintilla/lang/config/mel.ini +18 -0
- preditor/scintilla/lang/config/mu.ini +22 -0
- preditor/scintilla/lang/config/nsi.ini +19 -0
- preditor/scintilla/lang/config/perl.ini +19 -0
- preditor/scintilla/lang/config/puppet.ini +19 -0
- preditor/scintilla/lang/config/python.ini +28 -0
- preditor/scintilla/lang/config/ruby.ini +19 -0
- preditor/scintilla/lang/config/sql.ini +7 -0
- preditor/scintilla/lang/config/xml.ini +21 -0
- preditor/scintilla/lang/config/yaml.ini +18 -0
- preditor/scintilla/lang/language.py +240 -0
- preditor/scintilla/lexers/__init__.py +0 -0
- preditor/scintilla/lexers/cpplexer.py +21 -0
- preditor/scintilla/lexers/javascriptlexer.py +25 -0
- preditor/scintilla/lexers/maxscriptlexer.py +234 -0
- preditor/scintilla/lexers/mellexer.py +368 -0
- preditor/scintilla/lexers/mulexer.py +32 -0
- preditor/scintilla/lexers/pythonlexer.py +41 -0
- preditor/scintilla/ui/finddialog.ui +160 -0
- preditor/settings.py +71 -0
- preditor/stream/__init__.py +80 -0
- preditor/stream/director.py +73 -0
- preditor/stream/manager.py +74 -0
- preditor/streamhandler_helper.py +46 -0
- preditor/utils/__init__.py +0 -0
- preditor/utils/cute.py +30 -0
- preditor/utils/stylesheets.py +54 -0
- preditor/utils/text_search.py +342 -0
- preditor/version.py +21 -0
- preditor/weakref.py +363 -0
- preditor-1.0.0.dist-info/METADATA +224 -0
- preditor-1.0.0.dist-info/RECORD +158 -0
- preditor-1.0.0.dist-info/WHEEL +5 -0
- preditor-1.0.0.dist-info/entry_points.txt +18 -0
- preditor-1.0.0.dist-info/licenses/LICENSE +165 -0
- preditor-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
from __future__ import absolute_import
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
|
|
5
|
+
from PyQt5.Qsci import QsciLexerCPP
|
|
6
|
+
from Qt.QtGui import QColor
|
|
7
|
+
|
|
8
|
+
MEL_SYNTAX = """and array as case catch continue do else exit float for from global if
|
|
9
|
+
in int local not of off on or proc random return select string then throw to try vector
|
|
10
|
+
when where while with true false
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
# Generated by the following code
|
|
14
|
+
# import maya.cmds as cmds
|
|
15
|
+
# print(' '.join(cmds.help( '[a-z]*', list=True )))
|
|
16
|
+
MEL_KEYWORDS = """window aaf2fcp about abs acos acosd acosh addAttr addDynamic
|
|
17
|
+
addExtension addIK2BsolverCallbacks addMetadata addPP adskAsset adskAssetLibrary
|
|
18
|
+
adskAssetList adskAssetListUI adskRepresentation affectedNet affects agFormatIn
|
|
19
|
+
agFormatOut aimConstraint air aliasAttr align alignCtx alignCurve alignSurface
|
|
20
|
+
allNodeTypes ambientLight aminocompound angle angleBetween animCurveEditor animDisplay
|
|
21
|
+
animLayer animView annotate apfEntityNode applicationcomplex applyAttrPattern
|
|
22
|
+
applyMetadata applyTake arcLenDimContext arcLengthDimension arclen arrayMapper
|
|
23
|
+
art3dPaintCtx artAttr artAttrCtx artAttrPaintVertexCtx artAttrSkinPaint
|
|
24
|
+
artAttrSkinPaintCmd artAttrSkinPaintCtx artAttrTool artBaseCtx artBuildPaintMenu
|
|
25
|
+
artFluidAttr artFluidAttrCtx artPuttyCtx artSelect artSelectCtx artSetPaint
|
|
26
|
+
artSetPaintCtx artUserPaintCtx asin asind asinh assembly assignCommand assignInputDevice
|
|
27
|
+
assignViewportFactories atan atan2 atan2d atand atanh attachCurve attachDeviceAttr
|
|
28
|
+
attachFluidCache attachGeometryCache attachNclothCache attachSurface attrColorSliderGrp
|
|
29
|
+
attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp
|
|
30
|
+
attrFieldSliderGrp attrNavigationControlGrp attributeInfo attributeMenu attributeName
|
|
31
|
+
attributeQuery audioTrack autoKeyframe autoPlace autoSave bakeClip bakePartialHistory
|
|
32
|
+
bakeResults bakeSimulation baseTemplate baseView batchRender besselj0 besselj1 besseljn
|
|
33
|
+
besselyn bevel bevelPlus bezierAnchorPreset bezierAnchorState bezierCurveToNurbs
|
|
34
|
+
bezierInfo bifrost bifrostCreateMayaView bifrostproject binMembership bindSkin blend
|
|
35
|
+
blend2 blendCtx blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType
|
|
36
|
+
blocksize boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu
|
|
37
|
+
buildKeyframeMenu buildSendToBackburnerDialog button buttonManip cMuscleAbout
|
|
38
|
+
cMuscleBindSticky cMuscleCache cMuscleCompIndex cMuscleQuery cMuscleRayIntersect
|
|
39
|
+
cMuscleRelaxSetup cMuscleSimulate cMuscleSplineBind cMuscleWeight cMuscleWeightDefault
|
|
40
|
+
cMuscleWeightMirror cMuscleWeightPrune cMuscleWeightSave cacheFile cacheFileCombine
|
|
41
|
+
cacheFileMerge cacheFileTrack callbacks camera cameraSet cameraView canCreateManip
|
|
42
|
+
canvas ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character
|
|
43
|
+
characterMap characterizationToolUICmd characterize chdir checkBox checkBoxGrp
|
|
44
|
+
checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache
|
|
45
|
+
clearNClothStartState clearShear clip clipEditor clipEditorCurrentTimeCtx clipMatching
|
|
46
|
+
clipSchedule clipSchedulerOutliner closeCurve closeSurface cluster cmdFileOutput
|
|
47
|
+
cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell cmdpipe
|
|
48
|
+
coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex
|
|
49
|
+
colorIndexSliderGrp colorManagementCatalog colorManagementPrefs colorSliderButtonGrp
|
|
50
|
+
colorSliderGrp columnLayout commandEcho commandLine commandLogging commandPort
|
|
51
|
+
componentBox componentEditor condition cone confirmDialog connectAttr connectControl
|
|
52
|
+
connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory
|
|
53
|
+
container containerBind containerProxy containerPublish containerTemplate containerView
|
|
54
|
+
contextInfo control convertIffToPsd convertLightmap convertLightmapSetup convertSolidTx
|
|
55
|
+
convertTessellation convertUnit copyAttr copyDeformerWeights copyFlexor copyKey copyNode
|
|
56
|
+
copySkinWeights cos cosd cosh createAttrPatterns createDisplayLayer createEditor
|
|
57
|
+
createLayeredPsdFile createNode createNurbsCircleCtx createNurbsConeCtx
|
|
58
|
+
createNurbsCubeCtx createNurbsCylinderCtx createNurbsPlaneCtx createNurbsSphereCtx
|
|
59
|
+
createNurbsSquareCtx createNurbsTorusCtx createPolyConeCtx createPolyCubeCtx
|
|
60
|
+
createPolyCylinderCtx createPolyHelixCtx createPolyPipeCtx createPolyPlaneCtx
|
|
61
|
+
createPolyPlatonicSolidCtx createPolyPrismCtx createPolyPyramidCtx
|
|
62
|
+
createPolySoccerBallCtx createPolySphereCtx createPolyTorusCtx createPtexUV
|
|
63
|
+
createRenderLayer createSubdivRegion cross ctxAbort ctxCompletion ctxData ctxEditMode
|
|
64
|
+
ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx
|
|
65
|
+
curveBezierCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx
|
|
66
|
+
curveOnSurface curveRGBColor curveSketchCtx customerInvolvementProgram cutKey cycleCheck
|
|
67
|
+
cylinder dR_DoCmd dR_activeHandleX dR_activeHandleXY dR_activeHandleXYZ
|
|
68
|
+
dR_activeHandleXZ dR_activeHandleY dR_activeHandleYZ dR_activeHandleZ
|
|
69
|
+
dR_autoActivateMtkTGL dR_autoWeldTGL dR_bevelPress dR_bevelRelease dR_bevelTool
|
|
70
|
+
dR_bridgePress dR_bridgeRelease dR_bridgeTool dR_cameraToPoly dR_connectPress
|
|
71
|
+
dR_connectRelease dR_connectTool dR_contextChanged dR_convertSelectionToEdge
|
|
72
|
+
dR_convertSelectionToFace dR_convertSelectionToUV dR_convertSelectionToVertex
|
|
73
|
+
dR_coordSpaceCustom dR_coordSpaceLocal dR_coordSpaceObject dR_coordSpaceWorld
|
|
74
|
+
dR_createCameraFromView dR_curveSnapPress dR_curveSnapRelease dR_customPivotTool
|
|
75
|
+
dR_customPivotToolPress dR_customPivotToolRelease dR_cycleCustomCameras
|
|
76
|
+
dR_decreaseManipSize dR_defLightTGL dR_disableTexturesTGL dR_edgedFacesTGL
|
|
77
|
+
dR_extrudeBevelPress dR_extrudeBevelRelease dR_extrudePress dR_extrudeRelease
|
|
78
|
+
dR_extrudeTool dR_graphEditorTGL dR_gridAllTGL dR_gridSnapPress dR_gridSnapRelease
|
|
79
|
+
dR_hypergraphTGL dR_hypershadeTGL dR_increaseManipSize dR_loadRecentFile1
|
|
80
|
+
dR_loadRecentFile2 dR_loadRecentFile3 dR_loadRecentFile4 dR_lockSelTGL dR_modeEdge
|
|
81
|
+
dR_modeMulti dR_modePoly dR_modeUV dR_modeVert dR_movePress dR_moveRelease
|
|
82
|
+
dR_moveTweakTool dR_mtkPanelTGL dR_mtkToolTGL dR_multiCutPointCmd dR_multiCutPress
|
|
83
|
+
dR_multiCutRelease dR_multiCutSlicePointCmd dR_multiCutTool dR_nexCmd dR_nexTool
|
|
84
|
+
dR_objectBackfaceTGL dR_objectEdgesOnlyTGL dR_objectHideTGL dR_objectTemplateTGL
|
|
85
|
+
dR_objectXrayTGL dR_outlinerTGL dR_overlayAppendMeshTGL dR_paintPress dR_paintRelease
|
|
86
|
+
dR_pointSnapPress dR_pointSnapRelease dR_preferencesTGL dR_quadDrawClearDots
|
|
87
|
+
dR_quadDrawPress dR_quadDrawRelease dR_quadDrawTool dR_renderGlobalsTGL dR_renderLastTGL
|
|
88
|
+
dR_rotatePress dR_rotateRelease dR_rotateTweakTool dR_safeFrameTGL dR_scalePress
|
|
89
|
+
dR_scaleRelease dR_scaleTweakTool dR_selConstraintAngle dR_selConstraintBorder
|
|
90
|
+
dR_selConstraintElement dR_selConstraintOff dR_selectAll dR_selectInvert
|
|
91
|
+
dR_selectModeHybrid dR_selectModeMarquee dR_selectModeRaycast dR_selectModeTweakMarquee
|
|
92
|
+
dR_selectPress dR_selectRelease dR_selectSimilar dR_selectTool dR_setExtendBorder
|
|
93
|
+
dR_setExtendEdge dR_setExtendLoop dR_setRelaxAffectsAll dR_setRelaxAffectsAuto
|
|
94
|
+
dR_setRelaxAffectsBorders dR_setRelaxAffectsInterior dR_showAbout dR_showHelp
|
|
95
|
+
dR_showOptions dR_shrinkWrap dR_slideEdge dR_slideOff dR_slideSurface
|
|
96
|
+
dR_softSelDistanceTypeSurface dR_softSelDistanceTypeVolume dR_softSelStickyPress
|
|
97
|
+
dR_softSelStickyRelease dR_softSelToolTGL dR_symmetrize dR_symmetryTGL
|
|
98
|
+
dR_targetWeldPress dR_targetWeldRelease dR_targetWeldTool dR_testCmd dR_timeConfigTGL
|
|
99
|
+
dR_tweakPress dR_tweakRelease dR_vertLockSelected dR_vertSelectLocked dR_vertUnlockAll
|
|
100
|
+
dR_viewBack dR_viewBottom dR_viewFront dR_viewGridTGL dR_viewJointsTGL dR_viewLeft
|
|
101
|
+
dR_viewLightsTGL dR_viewPersp dR_viewRight dR_viewTop dR_viewXrayTGL dR_visorTGL
|
|
102
|
+
dR_wireframeSmoothTGL dagObjectCompare dagObjectHit dagPose dataStructure date dbPeek
|
|
103
|
+
dbcount dbmessage dbpeek dbtrace debug debugNamespace debugVar defaultLightListCheckBox
|
|
104
|
+
defaultNavigation defineDataServer defineVirtualDevice deformer deformerWeights
|
|
105
|
+
deg_to_rad delete deleteAttr deleteAttrPattern deleteExtension deleteGeometryCache
|
|
106
|
+
deleteHistoryAheadOfGeomCache deleteNclothCache deleteUI delrandstr detachCurve
|
|
107
|
+
detachDeviceAttr detachSurface deviceEditor deviceManager devicePanel dgControl dgInfo
|
|
108
|
+
dgPerformance dgcontrol dgdebug dgdirty dgeval dgfilter dgfootprint dgmodified dgstats
|
|
109
|
+
dgtimer dimWhen directConnectPath directKeyCtx directionalLight dirmap disable
|
|
110
|
+
disableIncorrectNameWarning disconnectAttr disconnectJoint diskCache displacementToPoly
|
|
111
|
+
displayAffected displayColor displayCull displayLevelOfDetail displayPref
|
|
112
|
+
displayRGBColor displaySmoothness displayStats displayString displaySurface
|
|
113
|
+
distanceDimContext distanceDimension dnoise doBlur dockControl dolly dollyCtx
|
|
114
|
+
dopeSheetEditor dot doubleProfileBirailSurface dpBirailCtx drag dragAttrContext
|
|
115
|
+
draggerContext drawExtrudeFacetCtx dropoffLocator duplicate duplicateCurve
|
|
116
|
+
duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintCtx
|
|
117
|
+
dynPaintEditor dynParticleCtx dynPref dynSelectCtx dynTestData dynWireCtx
|
|
118
|
+
dynamicConstraintRemove dynamicLoad editDisplayLayerGlobals editDisplayLayerMembers
|
|
119
|
+
editMetadata editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers
|
|
120
|
+
editor editorTemplate effector emit emitter enableDevice encodeString env erf erfc error
|
|
121
|
+
eval evalContinue evalDeferred evalEcho evalNoSelectNotify event exactWorldBoundingBox
|
|
122
|
+
exclusiveLightCheckBox exec exists exp expm1 exportEdits expression
|
|
123
|
+
expressionEditorListen extendCurve extendFluid extendSurface extrude fcheck fclose feof
|
|
124
|
+
fflush fgetline fgetword file fileBrowserDialog fileDialog fileDialog2 fileInfo
|
|
125
|
+
filePathEditor filetest filletCurve filter filterCurve filterExpand findKeyframe
|
|
126
|
+
findType fitBspline flagTest flexor floatField floatFieldGrp floatScrollBar floatSlider
|
|
127
|
+
floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow flowLayout fluidAppend
|
|
128
|
+
fluidAppendOpt fluidCacheInfo fluidDeleteCache fluidDeleteCacheFrames
|
|
129
|
+
fluidDeleteCacheFramesOpt fluidDeleteCacheOpt fluidEmitter fluidMergeCache
|
|
130
|
+
fluidMergeCacheOpt fluidReplaceCache fluidReplaceCacheOpt fluidReplaceFrames
|
|
131
|
+
fluidReplaceFramesOpt fluidVoxelInfo flushIdleQueue flushThumbnailCache flushUndo fmod
|
|
132
|
+
fontAttributes fontDialog fopen formLayout format fprint frameBufferName frameLayout
|
|
133
|
+
fread freadAllLines freadAllText freeFormFillet frewind fwrite fwriteAllLines
|
|
134
|
+
fwriteAllText gameExporter gamma gauss gbGameCommand gbLogManager geoUtils geomBind
|
|
135
|
+
geomToBBox geometryAppendCache geometryAppendCacheOpt geometryCache geometryCacheOpt
|
|
136
|
+
geometryConstraint geometryDeleteCacheFrames geometryDeleteCacheFramesOpt
|
|
137
|
+
geometryDeleteCacheOpt geometryExportCache geometryExportCacheOpt geometryMergeCache
|
|
138
|
+
geometryMergeCacheOpt geometryReplaceCache geometryReplaceCacheFrames
|
|
139
|
+
geometryReplaceCacheFramesOpt geometryReplaceCacheOpt getAttr getClassification
|
|
140
|
+
getDefaultBrush getFileList getFluidAttr getInputDeviceRange getLastError getMetadata
|
|
141
|
+
getModifiers getModulePath getPanel getParticleAttr getProcArguments
|
|
142
|
+
getRenderDependencies getRenderTasks getenv getpid glRender glRenderEditor globalStitch
|
|
143
|
+
gmatch goal gpuCache grabColor gradientControl gradientControlNoAttr graphDollyCtx
|
|
144
|
+
graphSelectContext graphTrackCtx gravity greasePencil greasePencilCtx greasePencilHelper
|
|
145
|
+
greaseRenderPlane grid gridLayout group groupParts hardenPointCurve hardware
|
|
146
|
+
hardwareRenderPanel hasMetadata headsUpDisplay headsUpMessage help helpLine hermite hide
|
|
147
|
+
hikBodyPart hikCharacterToolWidget hikCustomRigToolWidget hikGetEffectorIdFromName
|
|
148
|
+
hikGetNodeCount hikGetNodeIdFromName hikGlobals hikManip hikRigAlign hikRigSync hilite
|
|
149
|
+
hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton
|
|
150
|
+
hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iGroom
|
|
151
|
+
iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection
|
|
152
|
+
iconTextScrollList iconTextStaticLabel igBrush igBrushContext igConvertToLogical
|
|
153
|
+
ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx
|
|
154
|
+
ikSpringSolverCallbacks ikSpringSolverRestPose ikSystem ikSystemInfo ikfkDisplayMethod
|
|
155
|
+
illustratorCurves image imagePlane imageWindowEditor imfPlugins inViewMessage
|
|
156
|
+
inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve
|
|
157
|
+
insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar
|
|
158
|
+
intSlider intSliderGrp interactionStyle internalVar intersect iprEngine isConnected
|
|
159
|
+
isDescendentPulling isDirty isTrue isolateSelect itemFilter itemFilterAttr
|
|
160
|
+
itemFilterRender itemFilterType iterOnNurbs joint jointCluster jointCtx
|
|
161
|
+
jointDisplayScale jointLattice journal keyTangent keyframe keyframeOutliner
|
|
162
|
+
keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx
|
|
163
|
+
keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx
|
|
164
|
+
keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats
|
|
165
|
+
keyingGroup lassoContext lattice latticeDeformKeyCtx launch launchImageEditor
|
|
166
|
+
layerButton layeredShaderPort layeredTexturePort layout layoutDialog license
|
|
167
|
+
licenseCheck lightList lightlink linearPrecision linstep listAnimatable listAttr
|
|
168
|
+
listAttrPatterns listCameras listConnections listDeviceAttachments listHistory
|
|
169
|
+
listInputDeviceAxes listInputDeviceButtons listInputDevices listNodeTypes
|
|
170
|
+
listNodesWithIncorrectNames listRelatives listSets loadFluid loadModule loadPlugin
|
|
171
|
+
loadPrefObjects loadUI lockNode loft log log10 log1p lookThru ls lsThroughFilter lsUI
|
|
172
|
+
mag makeIdentity makeLive makePaintable makeSingleSurface makebot manipComponentPivot
|
|
173
|
+
manipMoveContext manipMoveLimitsCtx manipOptions manipPivot manipRotateContext
|
|
174
|
+
manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match mateCtx max
|
|
175
|
+
maxfloat maxint mayaPreviewRenderIntoNewWindow melInfo memory memoryDiag menu
|
|
176
|
+
menuBarLayout menuEditor menuItem menuSet menuSetPref meshIntersectTest messageLine min
|
|
177
|
+
minfloat minimizeApp minint mirrorJoint modelCurrentTimeCtx modelEditor modelPanel
|
|
178
|
+
modelingToolkitSuperCtx moduleDetectionLogic moduleInfo mouldMesh mouldSrf mouldSubdiv
|
|
179
|
+
mouse movIn movOut move moveKeyCtx moveVertexAlongDirection movieCompressor movieInfo
|
|
180
|
+
mpBirailCtx mrFactory mrMapVisualizer mrProgress mrShaderManager mtkQuadDrawPoint
|
|
181
|
+
mtkShrinkWrap muMessageAdd muMessageDelete muMessageQuery multiProfileBirailSurface
|
|
182
|
+
multiTouch mute mw_FloatingMaya mw_vpe myTestCmd nBase nClothAppend nClothAppendOpt
|
|
183
|
+
nClothCache nClothCacheOpt nClothCreate nClothCreateOptions nClothDeleteCacheFrames
|
|
184
|
+
nClothDeleteCacheFramesOpt nClothDeleteCacheOpt nClothDeleteHistory
|
|
185
|
+
nClothDeleteHistoryOpt nClothMakeCollide nClothMakeCollideOptions nClothMergeCache
|
|
186
|
+
nClothMergeCacheOpt nClothRemove nClothReplaceCache nClothReplaceCacheOpt
|
|
187
|
+
nClothReplaceFrames nClothReplaceFramesOpt nParticle nameCommand nameField namespace
|
|
188
|
+
namespaceInfo newton nexConnectContext nexConnectCtx nexCtx nexMultiCutContext
|
|
189
|
+
nexMultiCutCtx nexOpt nexQuadDrawContext nexQuadDrawCtx nexTRSContext nodeCast
|
|
190
|
+
nodeEditor nodeGrapher nodeIconButton nodeOutliner nodePreset nodeTreeLister nodeType
|
|
191
|
+
noise nonLinear nop normalConstraint nucleusDisplayDynamicConstraintNodes
|
|
192
|
+
nucleusDisplayMaterialNodes nucleusDisplayNComponentNodes nucleusDisplayOtherNodes
|
|
193
|
+
nucleusDisplayTextureNodes nucleusDisplayTransformNodes nucleusGetEffectsAsset
|
|
194
|
+
nucleusGetnClothExample nucleusGetnParticleExample nurbsBoolean nurbsCopyUVSet nurbsCube
|
|
195
|
+
nurbsCurveRebuildPref nurbsCurveToBezier nurbsEditUV nurbsPlane nurbsSelect nurbsSquare
|
|
196
|
+
nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet objExists
|
|
197
|
+
objectCenter objectType objectTypeUI objstats offsetCurve offsetCurveOnSurface
|
|
198
|
+
offsetSurface ogs ogsRender ogsdebug openGLExtension openMayaPref optionMenu
|
|
199
|
+
optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel
|
|
200
|
+
overrideModifier paint3d paintEffectsDisplay pairBlend palettePort panZoom panZoomCtx
|
|
201
|
+
paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension
|
|
202
|
+
paramLocator parent parentConstraint particle particleExists particleFill
|
|
203
|
+
particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose
|
|
204
|
+
perCameraVisibility percent performanceOptions pfxstrokes pickWalk picture pixelMove
|
|
205
|
+
planarSrf plane play playbackOptions playblast pluginDisplayFilter pluginInfo
|
|
206
|
+
pointConstraint pointCurveConstraint pointLight pointOnCurve pointOnPolyConstraint
|
|
207
|
+
pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx
|
|
208
|
+
polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel
|
|
209
|
+
polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCBoolOp polyCacheMonitor
|
|
210
|
+
polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet
|
|
211
|
+
polyColorBlindData polyColorDel polyColorMod polyColorPerVertex polyColorSet polyCompare
|
|
212
|
+
polyCone polyConnectComponents polyCopyUV polyCrease polyCreaseCtx polyCreateFacet
|
|
213
|
+
polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection
|
|
214
|
+
polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge
|
|
215
|
+
polyEditEdgeFlow polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge
|
|
216
|
+
polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler
|
|
217
|
+
polyHelix polyHole polyInfo polyInstallAction polyIterOnPoly polyLayoutUV
|
|
218
|
+
polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove
|
|
219
|
+
polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV
|
|
220
|
+
polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV
|
|
221
|
+
polyMoveVertex polyMultiLayoutUV polyNormal polyNormalPerVertex polyNormalizeUV
|
|
222
|
+
polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane
|
|
223
|
+
polyPlatonicSolid polyPoke polyPrimitive polyPrimitiveMisc polyPrism polyProjectCurve
|
|
224
|
+
polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect
|
|
225
|
+
polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx
|
|
226
|
+
polySelectEditCtxDataCmd polySelectSp polySeparate polySetToFaceNormal polySetVertices
|
|
227
|
+
polySewEdge polyShortestPathCtx polySlideEdge polySlideEdgeCtx polySmooth polySoftEdge
|
|
228
|
+
polySphere polySphericalProjection polySpinEdge polySplit polySplitCtx polySplitCtx2
|
|
229
|
+
polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge
|
|
230
|
+
polySubdivideFacet polySuperCtx polyTestPop polyToCurve polyToSubdiv polyTorus
|
|
231
|
+
polyTransfer polyTriangulate polyUVRectangle polyUVSet polyUnite polyUniteSkinned
|
|
232
|
+
polyVertexNormalCtx polyWarpImage polyWedgeFace popPinning popen popupMenu pose pow
|
|
233
|
+
preloadRefEd prepareRender print profiler profilerTool progressBar progressWindow
|
|
234
|
+
projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx
|
|
235
|
+
propMove psdChannelOutliner psdConvSolidTxOptions psdEditTextureFile psdExport
|
|
236
|
+
psdTextureFile ptexBake pushPinning putenv pwd python querySubdiv quit rad_to_deg radial
|
|
237
|
+
radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort
|
|
238
|
+
rampWidget rampWidgetAttrless rand randstate rangeControl readPDC readTake rebuildCurve
|
|
239
|
+
rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery
|
|
240
|
+
refineSubdivSelectionList refresh refreshEditorTemplates regionSelectKeyCtx regmatch
|
|
241
|
+
rehash relationship reloadImage removeJoint removeMultiInstance rename renameAttr
|
|
242
|
+
renameUI render renderGlobalsNode renderInfo renderLayerPostProcess renderManip
|
|
243
|
+
renderPartition renderPassRegistry renderQualityNode renderSettings
|
|
244
|
+
renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder
|
|
245
|
+
reorderContainer reorderDeformers repeatLast requires reroot resampleFluid resetTool
|
|
246
|
+
resolutionNode resourceManager retarget retimeHelper retimeKeyCtx reverseCurve
|
|
247
|
+
reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rot rotate
|
|
248
|
+
rotationInterpolation roundCRCtx roundConstantRadius rowColumnLayout rowLayout
|
|
249
|
+
runTimeCommand runup sampleImage saveAllShelves saveFluid saveImage saveInitialState
|
|
250
|
+
saveMenu savePrefObjects savePrefs saveShelf saveToolSettings saveViewportSettings
|
|
251
|
+
sbs_AffectTheseAttributes sbs_AffectedByAllInputs sbs_EditSubstance
|
|
252
|
+
sbs_GetAllInputsFromSubstanceNode sbs_GetBakeFormat
|
|
253
|
+
sbs_GetChannelsNamesFromSubstanceNode sbs_GetEditionModeScale sbs_GetEngine
|
|
254
|
+
sbs_GetEnumCount sbs_GetEnumName sbs_GetEnumValue sbs_GetGlobalTextureHeight
|
|
255
|
+
sbs_GetGlobalTextureWidth sbs_GetGraphsNamesFromSubstanceNode
|
|
256
|
+
sbs_GetPackageFullPathNameFromSubstanceNode sbs_GetSubstanceBuildVersion
|
|
257
|
+
sbs_GoToMarketPlace sbs_IsSubstanceRelocalized sbs_SetBakeFormat sbs_SetEditionModeScale
|
|
258
|
+
sbs_SetEngine sbs_SetGlobalTextureHeight sbs_SetGlobalTextureWidth scale scaleComponents
|
|
259
|
+
scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx
|
|
260
|
+
scriptEditorInfo scriptJob scriptNode scriptTable scriptedPanel scriptedPanelType
|
|
261
|
+
scrollField scrollLayout sculpt seed selLoadSettings select selectContext selectKey
|
|
262
|
+
selectKeyCtx selectKeyframe selectKeyframeRegionCtx selectMode selectPref selectPriority
|
|
263
|
+
selectType selectedNodes selectionConnection separator sequenceManager setAttr
|
|
264
|
+
setAttrMapping setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx
|
|
265
|
+
setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe
|
|
266
|
+
setKeyframeBlendshapeTargetWts setMenuMode setNClothStartState setNodeTypeFlag setParent
|
|
267
|
+
setParticleAttr setRenderPassType setStartupMessage setToolTo setUITemplate
|
|
268
|
+
setXformManip sets shaderfx shadingConnection shadingGeometryRelCtx shadingLightRelCtx
|
|
269
|
+
shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout
|
|
270
|
+
shot shotRipple shotTrack showHelp showHidden showManipCtx showSelectionInTitle
|
|
271
|
+
showShadingGroupAttrEditor showWindow sign simplify sin sind singleProfileBirailSurface
|
|
272
|
+
sinh size sizeBytes skinBindCtx skinCluster skinPercent smoothCurve smoothTangentSurface
|
|
273
|
+
smoothstep snapKey snapMode snapTogetherCtx snapshot snapshotBeadContext snapshotBeadCtx
|
|
274
|
+
snapshotModifyKeyCtx soft softMod softModContext softModCtx softSelect
|
|
275
|
+
softSelectOptionsCtx sort sound soundControl spBirailCtx spaceLocator sphere sphrand
|
|
276
|
+
spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext
|
|
277
|
+
stackTrace stitchSurface stitchSurfaceCtx stitchSurfacePoints strcmp
|
|
278
|
+
stringArrayIntersector stringArrayRemove stroke subdAutoProjection subdCleanTopology
|
|
279
|
+
subdCollapse subdDisplayMode subdDuplicateAndConnect subdEditUV subdLayoutUV
|
|
280
|
+
subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror
|
|
281
|
+
subdPlanarProjection subdToBlind subdToNurbs subdToPoly subdTransferUVsToCache subdiv
|
|
282
|
+
subdivCrease subdivDisplaySmoothness subgraph substitute substituteGeometry substring
|
|
283
|
+
suitePrefs superCtx surface surfaceSampler surfaceShaderList swatchDisplayPort
|
|
284
|
+
swatchRefresh switchTable symbolButton symbolCheckBox symmetricModelling sysFile system
|
|
285
|
+
tabLayout tan tand tangentConstraint tanh targetWeldCtx testPa testPassContribution
|
|
286
|
+
texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext
|
|
287
|
+
texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx
|
|
288
|
+
texSmoothContext texSmudgeUVContext texTweakUVContext texWinToolCtx text textCurves
|
|
289
|
+
textField textFieldButtonGrp textFieldGrp textManip textScrollList textureDeformer
|
|
290
|
+
textureLassoContext texturePlacementContext textureWindow threadCount threePointArcCtx
|
|
291
|
+
timeCode timeControl timePort timeWarp timer timerX toggle toggleAxis
|
|
292
|
+
toggleWindowVisibility tokenize tolerance tolower toolBar toolButton toolCollection
|
|
293
|
+
toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx
|
|
294
|
+
transferAttributes transferShadingSets transformCompare transformLimits translator
|
|
295
|
+
treeLister treeView trim trimCtx trunc truncateFluidCache truncateHairCache tumble
|
|
296
|
+
tumbleCtx turbulence twoPointArcCtx ubercam uiTemplate unassignInputDevice undo undoInfo
|
|
297
|
+
unfold ungroup uniform unit unloadPlugin untangleUV untrim upAxis userCtx uvLink
|
|
298
|
+
uvSnapshot vectorize vectornum view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn
|
|
299
|
+
viewLookAt viewManip viewPlace viewSet visor volumeAxis volumeBind vortex waitCursor
|
|
300
|
+
walkCtx warning webBrowser webBrowserPrefs webView webViewCmd wfnum whatIs
|
|
301
|
+
whatsNewHighlight window windowPref wire wireContext workspace wrinkle wrinkleContext
|
|
302
|
+
writeTake xform xgmAddGuide xgmBakeGuideVertices xgmBindPatches xgmClumpMap
|
|
303
|
+
xgmCopyDescription xgmCurveToGuide xgmDensityComp xgmDraRender xgmExport xgmExportToP3D
|
|
304
|
+
xgmFileRender xgmFindAttachment xgmGuideContext xgmGuideGeom xgmGuideRender
|
|
305
|
+
xgmInterpSetup xgmMelRender xgmMoveDescription xgmNullRender xgmParticleRender
|
|
306
|
+
xgmPatchInfo xgmPointRender xgmPoints xgmPointsContext xgmPolyToGuide xgmPreview
|
|
307
|
+
xgmPrimSelectionContext xgmPromoteRender xgmPushOver xgmRebuildCurve xgmSelectedPrims
|
|
308
|
+
xgmSetActive xgmSetArchiveSize xgmSetAttr xgmSetGuideCVCount xgmSyncPatchVisibility
|
|
309
|
+
xgmWrapXGen xgmr xpmPicker
|
|
310
|
+
"""
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
class MelLexer(QsciLexerCPP):
|
|
314
|
+
# Items in this list will be highlighted using the color for self.GlobalClass
|
|
315
|
+
_highlightedKeywords = ''
|
|
316
|
+
# Mel uses $varName for variables, so we have to allow them in words
|
|
317
|
+
selectionValidator = re.compile(r'[ \t\n\r\.,?;:!()\[\]+\-\*\/#@^%"\\~&{}|=<>\']')
|
|
318
|
+
wordCharactersOverride = (
|
|
319
|
+
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$'
|
|
320
|
+
)
|
|
321
|
+
|
|
322
|
+
@property
|
|
323
|
+
def highlightedKeywords(self):
|
|
324
|
+
return self._highlightedKeywords
|
|
325
|
+
|
|
326
|
+
@highlightedKeywords.setter
|
|
327
|
+
def highlightedKeywords(self, keywords):
|
|
328
|
+
if len(keywords.split(' ')) == 1:
|
|
329
|
+
# If only one keyword was passed in, check if the current selection starts
|
|
330
|
+
# with a $ if so, insert it in front of provided keyword
|
|
331
|
+
parent = self.parent()
|
|
332
|
+
if parent:
|
|
333
|
+
sline, spos, eline, epos = parent.getSelection()
|
|
334
|
+
pos = parent.positionFromLineIndex(sline, spos)
|
|
335
|
+
try:
|
|
336
|
+
if parent.text()[pos - 1] == '$':
|
|
337
|
+
keywords = '${}'.format(keywords)
|
|
338
|
+
except IndexError:
|
|
339
|
+
pass
|
|
340
|
+
self._highlightedKeywords = keywords
|
|
341
|
+
|
|
342
|
+
def defaultColor(self, style):
|
|
343
|
+
if style == self.KeywordSet2:
|
|
344
|
+
# Set the highlight color for this lexer
|
|
345
|
+
return QColor(0, 127, 0)
|
|
346
|
+
return super(MelLexer, self).defaultColor(style)
|
|
347
|
+
|
|
348
|
+
def defaultFont(self, style):
|
|
349
|
+
if style == self.KeywordSet2:
|
|
350
|
+
return super(MelLexer, self).defaultFont(self.Keyword)
|
|
351
|
+
return super(MelLexer, self).defaultFont(style)
|
|
352
|
+
|
|
353
|
+
def defaultPaper(self, style):
|
|
354
|
+
if style == self.GlobalClass:
|
|
355
|
+
# Set the highlight color for this lexer
|
|
356
|
+
return QColor(155, 255, 155)
|
|
357
|
+
return super(MelLexer, self).defaultPaper(style)
|
|
358
|
+
|
|
359
|
+
def keywords(self, style):
|
|
360
|
+
if (
|
|
361
|
+
style == 4 and self.highlightedKeywords
|
|
362
|
+
): # GlobalClass Used to handle SmartHighlighting
|
|
363
|
+
return self.highlightedKeywords
|
|
364
|
+
elif style == 1: # Keyword
|
|
365
|
+
return MEL_SYNTAX
|
|
366
|
+
elif style == 2: # KeywordSet2
|
|
367
|
+
return MEL_KEYWORDS
|
|
368
|
+
return super(MelLexer, self).keywords(style)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from __future__ import absolute_import
|
|
2
|
+
|
|
3
|
+
from PyQt5.Qsci import QsciLexerCPP
|
|
4
|
+
from Qt.QtGui import QColor
|
|
5
|
+
|
|
6
|
+
MU_KEYWORDS = """
|
|
7
|
+
method string Color use require module for_each let global function nil void
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MuLexer(QsciLexerCPP):
|
|
12
|
+
# Items in this list will be highlighted using the color for self.KeywordSet2
|
|
13
|
+
highlightedKeywords = ''
|
|
14
|
+
|
|
15
|
+
def defaultPaper(self, style):
|
|
16
|
+
if style == self.CommentLine:
|
|
17
|
+
# Set the highlight color for this lexer
|
|
18
|
+
return QColor(155, 255, 155)
|
|
19
|
+
return super(MuLexer, self).defaultPaper(style)
|
|
20
|
+
|
|
21
|
+
def keywords(self, style):
|
|
22
|
+
# Words to be highlighted
|
|
23
|
+
if style == self.CommentLine and self.highlightedKeywords:
|
|
24
|
+
return self.highlightedKeywords
|
|
25
|
+
|
|
26
|
+
output = super(MuLexer, self).keywords(style)
|
|
27
|
+
# for some reason, CPP lexer uses comment style for
|
|
28
|
+
# its keywords
|
|
29
|
+
if style == self.Comment:
|
|
30
|
+
output += MU_KEYWORDS
|
|
31
|
+
|
|
32
|
+
return output
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from __future__ import absolute_import
|
|
2
|
+
|
|
3
|
+
from PyQt5.Qsci import QsciLexerPython
|
|
4
|
+
from Qt.QtGui import QColor
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class PythonLexer(QsciLexerPython):
|
|
8
|
+
# Items in this list will be highlighted using the color for
|
|
9
|
+
# self.HighlightedIdentifier
|
|
10
|
+
highlightedKeywords = ''
|
|
11
|
+
|
|
12
|
+
def __init__(self, *args):
|
|
13
|
+
super(PythonLexer, self).__init__(*args)
|
|
14
|
+
|
|
15
|
+
# set the indentation warning
|
|
16
|
+
self.setIndentationWarning(self.Inconsistent)
|
|
17
|
+
|
|
18
|
+
def defaultPaper(self, style):
|
|
19
|
+
if style == self.HighlightedIdentifier:
|
|
20
|
+
# Set the highlight color for this lexer
|
|
21
|
+
return QColor(155, 255, 155)
|
|
22
|
+
return super(PythonLexer, self).defaultPaper(style)
|
|
23
|
+
|
|
24
|
+
def keywords(self, keyset):
|
|
25
|
+
# Words to be highlighted
|
|
26
|
+
if keyset == 2 and self.highlightedKeywords:
|
|
27
|
+
return self.highlightedKeywords
|
|
28
|
+
ret = super(PythonLexer, self).keywords(keyset)
|
|
29
|
+
if keyset == 1:
|
|
30
|
+
ret += (
|
|
31
|
+
' True False abs divmod input open staticmethod all enumerate int ord '
|
|
32
|
+
'str any eval isinstance pow sum basestring execfile'
|
|
33
|
+
' issubclass print super bin file iter property tuple bool filter len '
|
|
34
|
+
'range type bytearray float list raw_input unichr'
|
|
35
|
+
' callable format locals reduce unicode chr frozenset long reload vars '
|
|
36
|
+
'classmethod getattr map repr xrange cmp globals max'
|
|
37
|
+
' reversed zip compile hasattr memoryview round complex hash min set '
|
|
38
|
+
'apply delattr help next setattr buffer dict hex object'
|
|
39
|
+
' slice coerce dir id oct sorted intern __import__'
|
|
40
|
+
)
|
|
41
|
+
return ret
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<ui version="4.0">
|
|
3
|
+
<class>dialog</class>
|
|
4
|
+
<widget class="QDialog" name="dialog">
|
|
5
|
+
<property name="geometry">
|
|
6
|
+
<rect>
|
|
7
|
+
<x>0</x>
|
|
8
|
+
<y>0</y>
|
|
9
|
+
<width>436</width>
|
|
10
|
+
<height>170</height>
|
|
11
|
+
</rect>
|
|
12
|
+
</property>
|
|
13
|
+
<property name="windowTitle">
|
|
14
|
+
<string>Find</string>
|
|
15
|
+
</property>
|
|
16
|
+
<layout class="QGridLayout" name="gridLayout">
|
|
17
|
+
<item row="0" column="4">
|
|
18
|
+
<widget class="QPushButton" name="uiFindNextBTN">
|
|
19
|
+
<property name="minimumSize">
|
|
20
|
+
<size>
|
|
21
|
+
<width>118</width>
|
|
22
|
+
<height>0</height>
|
|
23
|
+
</size>
|
|
24
|
+
</property>
|
|
25
|
+
<property name="maximumSize">
|
|
26
|
+
<size>
|
|
27
|
+
<width>118</width>
|
|
28
|
+
<height>16777215</height>
|
|
29
|
+
</size>
|
|
30
|
+
</property>
|
|
31
|
+
<property name="text">
|
|
32
|
+
<string>Find Next</string>
|
|
33
|
+
</property>
|
|
34
|
+
<property name="autoDefault">
|
|
35
|
+
<bool>true</bool>
|
|
36
|
+
</property>
|
|
37
|
+
</widget>
|
|
38
|
+
</item>
|
|
39
|
+
<item row="1" column="4">
|
|
40
|
+
<widget class="QPushButton" name="uiFindPrevBTN">
|
|
41
|
+
<property name="minimumSize">
|
|
42
|
+
<size>
|
|
43
|
+
<width>118</width>
|
|
44
|
+
<height>0</height>
|
|
45
|
+
</size>
|
|
46
|
+
</property>
|
|
47
|
+
<property name="maximumSize">
|
|
48
|
+
<size>
|
|
49
|
+
<width>118</width>
|
|
50
|
+
<height>16777215</height>
|
|
51
|
+
</size>
|
|
52
|
+
</property>
|
|
53
|
+
<property name="text">
|
|
54
|
+
<string>Find Prev</string>
|
|
55
|
+
</property>
|
|
56
|
+
</widget>
|
|
57
|
+
</item>
|
|
58
|
+
<item row="2" column="4">
|
|
59
|
+
<spacer name="verticalSpacer">
|
|
60
|
+
<property name="orientation">
|
|
61
|
+
<enum>Qt::Vertical</enum>
|
|
62
|
+
</property>
|
|
63
|
+
<property name="sizeHint" stdset="0">
|
|
64
|
+
<size>
|
|
65
|
+
<width>115</width>
|
|
66
|
+
<height>62</height>
|
|
67
|
+
</size>
|
|
68
|
+
</property>
|
|
69
|
+
</spacer>
|
|
70
|
+
</item>
|
|
71
|
+
<item row="3" column="0">
|
|
72
|
+
<widget class="QCheckBox" name="uiFindWholeWordsCHK">
|
|
73
|
+
<property name="text">
|
|
74
|
+
<string>Match Whole Word</string>
|
|
75
|
+
</property>
|
|
76
|
+
</widget>
|
|
77
|
+
</item>
|
|
78
|
+
<item row="3" column="1">
|
|
79
|
+
<widget class="QCheckBox" name="uiCaseSensitiveCHK">
|
|
80
|
+
<property name="text">
|
|
81
|
+
<string>Case Sensitive</string>
|
|
82
|
+
</property>
|
|
83
|
+
</widget>
|
|
84
|
+
</item>
|
|
85
|
+
<item row="3" column="3">
|
|
86
|
+
<spacer name="horizontalSpacer">
|
|
87
|
+
<property name="orientation">
|
|
88
|
+
<enum>Qt::Horizontal</enum>
|
|
89
|
+
</property>
|
|
90
|
+
<property name="sizeHint" stdset="0">
|
|
91
|
+
<size>
|
|
92
|
+
<width>32</width>
|
|
93
|
+
<height>20</height>
|
|
94
|
+
</size>
|
|
95
|
+
</property>
|
|
96
|
+
</spacer>
|
|
97
|
+
</item>
|
|
98
|
+
<item row="3" column="4">
|
|
99
|
+
<widget class="QPushButton" name="uiCloseBTN">
|
|
100
|
+
<property name="minimumSize">
|
|
101
|
+
<size>
|
|
102
|
+
<width>118</width>
|
|
103
|
+
<height>0</height>
|
|
104
|
+
</size>
|
|
105
|
+
</property>
|
|
106
|
+
<property name="maximumSize">
|
|
107
|
+
<size>
|
|
108
|
+
<width>118</width>
|
|
109
|
+
<height>16777215</height>
|
|
110
|
+
</size>
|
|
111
|
+
</property>
|
|
112
|
+
<property name="text">
|
|
113
|
+
<string>Close</string>
|
|
114
|
+
</property>
|
|
115
|
+
</widget>
|
|
116
|
+
</item>
|
|
117
|
+
<item row="3" column="2">
|
|
118
|
+
<widget class="QCheckBox" name="uiQRegExpCHK">
|
|
119
|
+
<property name="toolTip">
|
|
120
|
+
<string><html><head/><body><p>Use Qt's QRegExp engine to find using regular expressions instead of a plain text find.</p></body></html></string>
|
|
121
|
+
</property>
|
|
122
|
+
<property name="text">
|
|
123
|
+
<string>QRegExp</string>
|
|
124
|
+
</property>
|
|
125
|
+
</widget>
|
|
126
|
+
</item>
|
|
127
|
+
<item row="0" column="0" rowspan="3" colspan="4">
|
|
128
|
+
<widget class="QPlainTextEdit" name="uiSearchTXT"/>
|
|
129
|
+
</item>
|
|
130
|
+
</layout>
|
|
131
|
+
</widget>
|
|
132
|
+
<tabstops>
|
|
133
|
+
<tabstop>uiSearchTXT</tabstop>
|
|
134
|
+
<tabstop>uiFindNextBTN</tabstop>
|
|
135
|
+
<tabstop>uiFindPrevBTN</tabstop>
|
|
136
|
+
<tabstop>uiFindWholeWordsCHK</tabstop>
|
|
137
|
+
<tabstop>uiCaseSensitiveCHK</tabstop>
|
|
138
|
+
<tabstop>uiQRegExpCHK</tabstop>
|
|
139
|
+
<tabstop>uiCloseBTN</tabstop>
|
|
140
|
+
</tabstops>
|
|
141
|
+
<resources/>
|
|
142
|
+
<connections>
|
|
143
|
+
<connection>
|
|
144
|
+
<sender>uiCloseBTN</sender>
|
|
145
|
+
<signal>clicked()</signal>
|
|
146
|
+
<receiver>dialog</receiver>
|
|
147
|
+
<slot>reject()</slot>
|
|
148
|
+
<hints>
|
|
149
|
+
<hint type="sourcelabel">
|
|
150
|
+
<x>322</x>
|
|
151
|
+
<y>154</y>
|
|
152
|
+
</hint>
|
|
153
|
+
<hint type="destinationlabel">
|
|
154
|
+
<x>284</x>
|
|
155
|
+
<y>172</y>
|
|
156
|
+
</hint>
|
|
157
|
+
</hints>
|
|
158
|
+
</connection>
|
|
159
|
+
</connections>
|
|
160
|
+
</ui>
|