Skip to content

Commit a1ebd1d

Browse files
committed
Open folder func
1 parent 8209925 commit a1ebd1d

10 files changed

Lines changed: 50 additions & 50 deletions

File tree

pw_multiScriptEditor/managers/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ def mayaCompleter(*args):
3838
def mayaDropEvent(*args):
3939
from managers import _maya
4040
return _maya.wrapDroppedText(*args)
41-
41+
def getMayaContextMenu(*args):
42+
from managers import _maya
43+
reload(_maya)
44+
return _maya.contextMenu(*args)
4245
###################################################################
4346

4447

@@ -50,7 +53,8 @@ def mayaDropEvent(*args):
5053

5154
contextMenus = dict(
5255
hou=getHoudiniContextMenu,
53-
nuke=getNukeContextMenu
56+
nuke=getNukeContextMenu,
57+
maya=getMayaContextMenu
5458
)
5559

5660
dropEvents = dict(

pw_multiScriptEditor/managers/_maya.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,15 @@ def wrapDroppedText(namespace, text, event):
146146
pass
147147
return text
148148

149+
def contextMenu(parent):
150+
m = mayaMenuClass(parent)
151+
return m
152+
153+
class mayaMenuClass(QMenu):
154+
def __init__(self, parent):
155+
super(mayaMenuClass, self).__init__('Maya', parent)
156+
self.par = parent
157+
a = QAction('Still Empty...', parent)
158+
a.setEnabled(0)
159+
self.addAction(a)
149160

pw_multiScriptEditor/run.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pythonw.exe scriptEditor.py %*
1+
start pythonw.exe scriptEditor.py %*

pw_multiScriptEditor/scriptEditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def fixButton(btn, ico):
6767
self.settingsFile_act.triggered.connect(self.openSettingsFile)
6868
self.splitter.splitterMoved.connect(self.adjustColmpeters)
6969
self.donate_act.triggered.connect(lambda :self.openLink('donate'))
70-
self.openManual_act.triggered.connect(lambda :self.openLink('tutorials'))
70+
self.openManual_act.triggered.connect(lambda :self.openLink('manual'))
7171
self.about_act.triggered.connect(self.about)
7272
self.shortcuts_act.triggered.connect(self.shortcuts)
7373
self.printHelp_act.triggered.connect(self.mse_help)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
links = dict(
22
donate = 'http://www.paulwinex.ru/donate/',
33
tutorials='http://www.paulwinex.ru/multi-script-editor-v2-0/',
4+
manual='https://github.com/paulwinex/pw_MultiScriptEditor',
45
site='http://www.paulwinex.ru/'
56
)

pw_multiScriptEditor/tested.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Supported applications:
2+
Maya
3+
Houdini
4+
Nuke
5+
6+
Tested on:
7+
Windows 7x64 Maya 2015
8+
Windows 7x64 Maya 2014
9+
Windows 7x64 Maya 2013
10+
Windows 7x64 Houdini 13
11+
Windows 7x64 Houdini 14
12+
Windows 7x64 Nuke 8
13+
Windows 7x64 Nuke 9
14+
Kubuntu Houdini 13
15+
Kubuntu Houdini 14
16+
Ubuntu 12.4

pw_multiScriptEditor/widgets/about.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from PySide.QtGui import *
33
import icons
44
import about_UIs
5+
import os
56

67
class aboutClass(QDialog, about_UIs.Ui_Dialog):
78
def __init__(self, parent):
@@ -14,6 +15,10 @@ def __init__(self, parent):
1415
self.donate_btn.setIconSize(QSize(24,24))
1516
self.donate_btn.setIcon(QIcon(icons.icons['donate']))
1617
self.donate_btn.clicked.connect(lambda :parent.openLink('donate'))
18+
testedFile = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'tested.txt')
19+
if os.path.exists(testedFile):
20+
outText = open(testedFile).read()
21+
self.textBrowser.setPlainText(outText)
1722

1823

1924
text = '''Paul Winex 2015

pw_multiScriptEditor/widgets/about.ui

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<x>0</x>
88
<y>0</y>
99
<width>465</width>
10-
<height>299</height>
10+
<height>393</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
1414
<string>About Multi Script Editor</string>
1515
</property>
16-
<layout class="QVBoxLayout" name="verticalLayout">
16+
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,1,0">
1717
<item>
1818
<layout class="QHBoxLayout" name="horizontalLayout">
1919
<property name="topMargin">
@@ -88,24 +88,7 @@
8888
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
8989
p, li { white-space: pre-wrap; }
9090
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
91-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Supported applications:&lt;/span&gt;&lt;/p&gt;
92-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Maya&lt;/span&gt;&lt;/p&gt;
93-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Houdini&lt;/span&gt;&lt;/p&gt;
94-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Nuke&lt;/span&gt;&lt;/p&gt;
95-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
96-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Tested on:&lt;/span&gt;&lt;/p&gt;
97-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Windows 7x64 Maya 2016&lt;/span&gt;&lt;/p&gt;
98-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Windows 7x64 Maya 2015&lt;/span&gt;&lt;/p&gt;
99-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Windows 7x64 Maya 2014&lt;/span&gt;&lt;/p&gt;
100-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Windows 7x64 Maya 2013&lt;/span&gt;&lt;/p&gt;
101-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Windows 7x64 Houdini 13&lt;/span&gt;&lt;/p&gt;
102-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Windows 7x64 Houdini 14&lt;/span&gt;&lt;/p&gt;
103-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Windows 7x64 Nuke 8&lt;/span&gt;&lt;/p&gt;
104-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Windows 7x64 Nuke 9&lt;/span&gt;&lt;/p&gt;
105-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Kubuntu Houdini 13&lt;/span&gt;&lt;/p&gt;
106-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; Kubuntu Houdini 14&lt;/span&gt;&lt;/p&gt;
107-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
108-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
91+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;File not Found :(&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
10992
</property>
11093
</widget>
11194
</item>

pw_multiScriptEditor/widgets/about_UIs.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Form implementation generated from reading ui file 'D:\Dropbox\Dropbox\pw_prefs\RnD\tools\pw_scriptEditor\pw_multiScriptEditor\widgets\about.ui'
44
#
5-
# Created: Fri Mar 27 10:51:33 2015
5+
# Created: Thu Apr 02 22:56:45 2015
66
# by: pyside-uic 0.2.15 running on PySide 1.2.2
77
#
88
# WARNING! All changes made in this file will be lost!
@@ -12,7 +12,7 @@
1212
class Ui_Dialog(object):
1313
def setupUi(self, Dialog):
1414
Dialog.setObjectName("Dialog")
15-
Dialog.resize(465, 299)
15+
Dialog.resize(465, 393)
1616
self.verticalLayout = QtGui.QVBoxLayout(Dialog)
1717
self.verticalLayout.setObjectName("verticalLayout")
1818
self.horizontalLayout = QtGui.QHBoxLayout()
@@ -48,6 +48,7 @@ def setupUi(self, Dialog):
4848
self.donate_btn.setObjectName("donate_btn")
4949
self.horizontalLayout_2.addWidget(self.donate_btn)
5050
self.verticalLayout.addLayout(self.horizontalLayout_2)
51+
self.verticalLayout.setStretch(2, 1)
5152

5253
self.retranslateUi(Dialog)
5354
QtCore.QMetaObject.connectSlotsByName(Dialog)
@@ -60,22 +61,6 @@ def retranslateUi(self, Dialog):
6061
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
6162
"p, li { white-space: pre-wrap; }\n"
6263
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
63-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Supported applications:</span></p>\n"
64-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Maya</span></p>\n"
65-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Houdini</span></p>\n"
66-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Nuke</span></p>\n"
67-
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"><br /></p>\n"
68-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Tested on:</span></p>\n"
69-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Windows 7x64 Maya 2015</span></p>\n"
70-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Windows 7x64 Maya 2014</span></p>\n"
71-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Windows 7x64 Maya 2013</span></p>\n"
72-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Windows 7x64 Houdini 13</span></p>\n"
73-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Windows 7x64 Houdini 14</span></p>\n"
74-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Windows 7x64 Nuke 8</span></p>\n"
75-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Windows 7x64 Nuke 9</span></p>\n"
76-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Kubuntu Houdini 13</span></p>\n"
77-
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Kubuntu Houdini 14</span></p>\n"
78-
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"><br /></p>\n"
79-
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"><br /></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
64+
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">File not Found :(</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
8065
self.donate_btn.setText(QtGui.QApplication.translate("Dialog", "Donate", None, QtGui.QApplication.UnicodeUTF8))
8166

pw_multiScriptEditor/widgets/inputWidget.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -399,23 +399,18 @@ def addText(self, text):
399399
########################### DROP
400400
def dragEnterEvent(self, event):
401401
event.acceptProposedAction()
402-
# if not event.mimeData().hasText():
403-
# event.mimeData().setText(managers.mayaDragTempData)
404402
QTextEdit.dragEnterEvent(self,event)
405403

406404
def dragMoveEvent(self, event):
407405
event.acceptProposedAction()
408-
# QTextEdit.dragMoveEvent(self,event)
409-
# if event.mimeData().hasText():
410406
QTextEdit.dragMoveEvent(self,event)
411407

412408
def dragLeaveEvent(self, event):
413-
event.accept()
414-
# if event.mimeData().hasText():
409+
event.acceptProposedAction()
415410
QTextEdit.dragLeaveEvent(self,event)
416411

417412
def dropEvent(self, event):
418-
event.accept()
413+
event.acceptProposedAction()
419414
if managers.context in managers.dropEvents and event.mimeData().hasText():
420415
mim = event.mimeData()
421416
text = mim.text()

0 commit comments

Comments
 (0)