コード例 #1
0
    def setupUi(self, NodeEditorDialog):
        NodeEditorDialog.setObjectName(_fromUtf8("NodeEditorDialog"))
        NodeEditorDialog.resize(750, 658)
        self.verticalLayout = QtModule.QVBoxLayout(NodeEditorDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.splitter = QtModule.QSplitter(NodeEditorDialog)
        self.splitter.setLineWidth(2)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setHandleWidth(8)
        self.splitter.setChildrenCollapsible(False)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.toolBox = QtModule.QToolBox(self.splitter)
        self.toolBox.setMinimumSize(QtCore.QSize(0, 0))
        self.toolBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.toolBox.setBaseSize(QtCore.QSize(200, 0))
        self.toolBox.setFrameShape(QtModule.QFrame.NoFrame)
        self.toolBox.setFrameShadow(QtModule.QFrame.Plain)
        self.toolBox.setLineWidth(1)
        self.toolBox.setMidLineWidth(0)
        self.toolBox.setObjectName(_fromUtf8("toolBox"))
        self.internals = QtModule.QWidget()
        self.internals.setGeometry(QtCore.QRect(0, 0, 204, 501))
        self.internals.setObjectName(_fromUtf8("internals"))
        self.verticalLayout_3 = QtModule.QVBoxLayout(self.internals)
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.tabs_code_list = QtModule.QTabWidget(self.internals)
        self.tabs_code_list.setObjectName(_fromUtf8("tabs_code_list"))
        self.internals_tab = QtModule.QWidget()
        self.internals_tab.setObjectName(_fromUtf8("internals_tab"))
        self.gridLayout_4 = QtModule.QGridLayout(self.internals_tab)
        self.gridLayout_4.setContentsMargins(2, 2, 2, 2)
        self.gridLayout_4.setSpacing(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.internals_list = NodeNamesEditor(self.internals_tab)
        self.internals_list.setObjectName(_fromUtf8("internals_list"))
        self.gridLayout_4.addWidget(self.internals_list, 0, 0, 1, 1)
        self.tabs_code_list.addTab(self.internals_tab, _fromUtf8(""))
        self.includes_tab = QtModule.QWidget()
        self.includes_tab.setObjectName(_fromUtf8("includes_tab"))
        self.gridLayout_5 = QtModule.QGridLayout(self.includes_tab)
        self.gridLayout_5.setContentsMargins(2, 2, 2, 2)
        self.gridLayout_5.setSpacing(0)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.includes_list = NodeNamesEditor(self.includes_tab)
        self.includes_list.setObjectName(_fromUtf8("includes_list"))
        self.gridLayout_5.addWidget(self.includes_list, 0, 0, 1, 1)
        self.tabs_code_list.addTab(self.includes_tab, _fromUtf8(""))
        self.verticalLayout_3.addWidget(self.tabs_code_list)
        self.toolBox.addItem(self.internals, _fromUtf8(""))
        self.parameters = QtModule.QWidget()
        self.parameters.setGeometry(QtCore.QRect(0, 0, 204, 501))
        self.parameters.setObjectName(_fromUtf8("parameters"))
        self.verticalLayout_8 = QtModule.QVBoxLayout(self.parameters)
        self.verticalLayout_8.setSpacing(0)
        #if  usePyQt4 :
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.tabs_param_list = QtModule.QTabWidget(self.parameters)
        self.tabs_param_list.setObjectName(_fromUtf8("tabs_param_list"))
        self.inputs_tab = QtModule.QWidget()
        self.inputs_tab.setObjectName(_fromUtf8("inputs_tab"))
        self.gridLayout_2 = QtModule.QGridLayout(self.inputs_tab)
        #if  usePyQt4 :
        self.gridLayout_2.setContentsMargins(2, 2, 2, 2)
        self.gridLayout_2.setSpacing(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.input_list = NodeNamesEditor(self.inputs_tab)
        self.input_list.setObjectName(_fromUtf8("input_list"))
        self.gridLayout_2.addWidget(self.input_list, 0, 0, 1, 1)
        self.tabs_param_list.addTab(self.inputs_tab, _fromUtf8(""))
        self.outputs_tab = QtModule.QWidget()
        self.outputs_tab.setObjectName(_fromUtf8("outputs_tab"))
        self.gridLayout_3 = QtModule.QGridLayout(self.outputs_tab)
        #if  usePyQt4 :
        self.gridLayout_3.setContentsMargins(2, 2, 2, 2)
        self.gridLayout_3.setSpacing(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.output_list = NodeNamesEditor(self.outputs_tab)
        self.output_list.setObjectName(_fromUtf8("output_list"))
        self.gridLayout_3.addWidget(self.output_list, 0, 0, 1, 1)
        self.tabs_param_list.addTab(self.outputs_tab, _fromUtf8(""))
        self.verticalLayout_8.addWidget(self.tabs_param_list)
        self.toolBox.addItem(self.parameters, _fromUtf8(""))
        self.handlers = QtModule.QWidget()
        self.handlers.setGeometry(QtCore.QRect(0, 0, 204, 501))
        self.handlers.setObjectName(_fromUtf8("handlers"))
        self.verticalLayout_2 = QtModule.QVBoxLayout(self.handlers)
        self.verticalLayout_2.setSpacing(0)
        #if  usePyQt4 :
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.handlers_list = NodeNamesEditor(self.handlers)
        self.handlers_list.setObjectName(_fromUtf8("handlers_list"))
        self.verticalLayout_2.addWidget(self.handlers_list)
        self.toolBox.addItem(self.handlers, _fromUtf8(""))
        self.links = QtModule.QWidget()
        self.links.setGeometry(QtCore.QRect(0, 0, 204, 501))
        self.links.setObjectName(_fromUtf8("links"))
        self.verticalLayout_81 = QtModule.QVBoxLayout(self.links)
        self.verticalLayout_81.setSpacing(0)
        #if  usePyQt4 :
        self.verticalLayout_81.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_81.setObjectName(_fromUtf8("verticalLayout_81"))
        self.tabs_links_list = QtModule.QTabWidget(self.links)
        self.tabs_links_list.setObjectName(_fromUtf8("tabs_links_list"))
        self.input_links_tab = QtModule.QWidget()
        self.input_links_tab.setObjectName(_fromUtf8("input_links_tab"))
        self.gridLayout_6 = QtModule.QGridLayout(self.input_links_tab)
        #if  usePyQt4 :
        self.gridLayout_6.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_6.setSpacing(0)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.input_links_listWidget = QtModule.QListWidget(
            self.input_links_tab)
        self.input_links_listWidget.setObjectName(
            _fromUtf8("input_links_listWidget"))
        self.gridLayout_6.addWidget(self.input_links_listWidget, 0, 0, 1, 1)
        self.tabs_links_list.addTab(self.input_links_tab, _fromUtf8(""))
        self.output_links_tab = QtModule.QWidget()
        self.output_links_tab.setObjectName(_fromUtf8("output_links_tab"))
        self.gridLayout_66 = QtModule.QGridLayout(self.output_links_tab)
        #if  usePyQt4 :
        self.gridLayout_66.setContentsMargins(2, 2, 2, 2)
        self.gridLayout_66.setSpacing(0)
        self.gridLayout_66.setObjectName(_fromUtf8("gridLayout_66"))
        self.output_links_listWidget = QtModule.QListWidget(
            self.output_links_tab)
        self.output_links_listWidget.setObjectName(
            _fromUtf8("output_links_listWidget"))
        self.gridLayout_66.addWidget(self.output_links_listWidget, 0, 0, 1, 1)
        self.tabs_links_list.addTab(self.output_links_tab, _fromUtf8(""))
        self.verticalLayout_81.addWidget(self.tabs_links_list)
        self.toolBox.addItem(self.links, _fromUtf8(""))
        self.tabWidget = QtModule.QTabWidget(self.splitter)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.node_tab = QtModule.QWidget()
        self.node_tab.setObjectName(_fromUtf8("node_tab"))
        self.gridLayout_10 = QtModule.QGridLayout(self.node_tab)
        self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
        self.node = NodePropertiesEditor(self.node_tab)
        self.node.setObjectName(_fromUtf8("node"))
        self.gridLayout_10.addWidget(self.node, 0, 0, 1, 1)
        self.tabWidget.addTab(self.node_tab, _fromUtf8(""))
        self.node_code_tab = QtModule.QWidget()
        self.node_code_tab.setObjectName(_fromUtf8("node_code_tab"))
        self.gridLayout = QtModule.QGridLayout(self.node_code_tab)
        #if  usePyQt4 :
        self.gridLayout.setContentsMargins(2, 2, 2, 2)
        self.gridLayout.setSpacing(2)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.node_code = NodeCodeEditor(self.node_code_tab)
        self.node_code.setObjectName(_fromUtf8("node_code"))
        self.gridLayout.addWidget(self.node_code, 0, 0, 1, 1)
        self.tabWidget.addTab(self.node_code_tab, _fromUtf8(""))
        self.control_code_tab = QtModule.QWidget()
        self.control_code_tab.setObjectName(_fromUtf8("control_code_tab"))
        self.gridLayout_7 = QtModule.QGridLayout(self.control_code_tab)
        #if  usePyQt4 :
        self.gridLayout_7.setContentsMargins(2, 2, 2, 2)
        self.gridLayout_7.setSpacing(2)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.control_code = NodeCodeEditor(self.control_code_tab)
        self.control_code.setObjectName(_fromUtf8("control_code"))
        self.gridLayout_7.addWidget(self.control_code, 0, 0, 1, 1)
        self.tabWidget.addTab(self.control_code_tab, _fromUtf8(""))
        self.event_code_tab = QtModule.QWidget()
        self.event_code_tab.setObjectName(_fromUtf8("event_code_tab"))
        self.gridLayout_8 = QtModule.QGridLayout(self.event_code_tab)
        #if  usePyQt4 :
        self.gridLayout_8.setContentsMargins(2, 2, 2, 2)
        self.gridLayout_8.setSpacing(2)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.event_code = NodeCodeEditor(self.event_code_tab)
        self.event_code.setObjectName(_fromUtf8("event_code"))
        self.gridLayout_8.addWidget(self.event_code, 0, 0, 1, 1)
        self.tabWidget.addTab(self.event_code_tab, _fromUtf8(""))
        self.param_code_tab = QtModule.QWidget()
        self.param_code_tab.setObjectName(_fromUtf8("param_code_tab"))
        self.gridLayout_9 = QtModule.QGridLayout(self.param_code_tab)
        #if  usePyQt4 :
        self.gridLayout_9.setContentsMargins(2, 2, 2, 2)
        self.gridLayout_9.setSpacing(2)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.param_code = NodeCodeEditor(self.param_code_tab)
        self.param_code.setObjectName(_fromUtf8("param_code"))
        self.gridLayout_9.addWidget(self.param_code, 0, 0, 1, 1)
        self.tabWidget.addTab(self.param_code_tab, _fromUtf8(""))
        self.param_tab = QtModule.QWidget()
        self.param_tab.setObjectName(_fromUtf8("param_tab"))
        self.gridLayout_11 = QtModule.QGridLayout(self.param_tab)
        self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11"))
        self.param = NodeParamEditor(self.param_tab)
        self.param.setObjectName(_fromUtf8("param"))
        self.gridLayout_11.addWidget(self.param, 0, 0, 1, 1)
        self.tabWidget.addTab(self.param_tab, _fromUtf8(""))
        self.link_tab = QtModule.QWidget()
        self.link_tab.setObjectName(_fromUtf8("link_tab"))
        self.gridLayout_12 = QtModule.QGridLayout(self.link_tab)
        self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12"))
        self.link = NodeLinkEditor(self.link_tab)
        self.link.setObjectName(_fromUtf8("link"))
        self.gridLayout_12.addWidget(self.link, 0, 0, 1, 1)
        self.tabWidget.addTab(self.link_tab, _fromUtf8(""))
        self.verticalLayout.addWidget(self.splitter)
        self.horizontalLayout = QtModule.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem = QtModule.QSpacerItem(40, 20,
                                          QtModule.QSizePolicy.Expanding,
                                          QtModule.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.btn_save = QtModule.QPushButton(NodeEditorDialog)
        self.btn_save.setObjectName(_fromUtf8("btn_save"))
        self.horizontalLayout.addWidget(self.btn_save)
        self.btn_close = QtModule.QPushButton(NodeEditorDialog)
        self.btn_close.setObjectName(_fromUtf8("btn_close"))
        self.horizontalLayout.addWidget(self.btn_close)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout.setStretch(0, 1)

        self.retranslateUi(NodeEditorDialog)
        self.toolBox.setCurrentIndex(0)
        self.toolBox.layout().setSpacing(6)
        self.tabs_code_list.setCurrentIndex(0)
        self.tabs_param_list.setCurrentIndex(0)
        self.tabs_links_list.setCurrentIndex(0)
        self.tabWidget.setCurrentIndex(0)
        if usePyQt4:
            QtCore.QObject.connect(
                self.toolBox, QtCore.SIGNAL(_fromUtf8("currentChanged(int)")),
                NodeEditorDialog.onToolBoxIndexChanged)
            QtCore.QObject.connect(self.btn_save,
                                   QtCore.SIGNAL(_fromUtf8("clicked()")),
                                   NodeEditorDialog.accept)
            QtCore.QObject.connect(self.btn_close,
                                   QtCore.SIGNAL(_fromUtf8("clicked()")),
                                   NodeEditorDialog.reject)
            QtCore.QObject.connect(
                self.input_links_listWidget,
                QtCore.SIGNAL(_fromUtf8("itemSelectionChanged()")),
                NodeEditorDialog.updateGui)
            QtCore.QObject.connect(
                self.output_links_listWidget,
                QtCore.SIGNAL(_fromUtf8("itemSelectionChanged()")),
                NodeEditorDialog.updateGui)
            QtCore.QObject.connect(
                self.tabs_links_list,
                QtCore.SIGNAL(_fromUtf8("currentChanged(int)")),
                NodeEditorDialog.updateGui)
        else:
            self.toolBox.currentChanged.connect(
                NodeEditorDialog.onToolBoxIndexChanged)
            self.btn_save.clicked.connect(NodeEditorDialog.accept)
            self.btn_close.clicked.connect(NodeEditorDialog.reject)
            self.input_links_listWidget.itemSelectionChanged.connect(
                NodeEditorDialog.updateGui)
            self.output_links_listWidget.itemSelectionChanged.connect(
                NodeEditorDialog.updateGui)
            self.tabs_links_list.currentChanged.connect(
                NodeEditorDialog.updateGui)

        QtCore.QMetaObject.connectSlotsByName(NodeEditorDialog)
コード例 #2
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(963, 894)
        MainWindow.setDockOptions(QtModule.QMainWindow.AllowTabbedDocks
                                  | QtModule.QMainWindow.AnimatedDocks)
        MainWindow.setUnifiedTitleAndToolBarOnMac(False)
        self.centralwidget = QtModule.QWidget(MainWindow)
        self.centralwidget.setAcceptDrops(True)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtModule.QGridLayout(self.centralwidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tabs = QtModule.QTabWidget(self.centralwidget)
        self.tabs.setAcceptDrops(True)
        self.tabs.setTabPosition(QtModule.QTabWidget.North)
        self.tabs.setTabShape(QtModule.QTabWidget.Rounded)
        self.tabs.setElideMode(QtCore.Qt.ElideNone)
        self.tabs.setDocumentMode(True)
        self.tabs.setTabsClosable(True)
        self.tabs.setMovable(False)
        self.tabs.setObjectName(_fromUtf8("tabs"))
        self.workArea = WorkArea()
        self.workArea.setAcceptDrops(True)
        self.workArea.setObjectName(_fromUtf8("workArea"))
        self.tabs.addTab(self.workArea, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabs, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtModule.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 963, 21))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Lucida Sans"))
        font.setPointSize(9)
        self.menubar.setFont(font)
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtModule.QMenu(self.menubar)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("MS Shell Dlg 2"))
        font.setPointSize(8)
        self.menuFile.setFont(font)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuRecent_Projects = QtModule.QMenu(self.menuFile)
        self.menuRecent_Projects.setObjectName(
            _fromUtf8("menuRecent_Projects"))
        self.menuRecent_Networks = QtModule.QMenu(self.menuFile)
        self.menuRecent_Networks.setObjectName(
            _fromUtf8("menuRecent_Networks"))
        self.menuEdit = QtModule.QMenu(self.menubar)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("MS Shell Dlg 2"))
        font.setPointSize(8)
        self.menuEdit.setFont(font)
        self.menuEdit.setObjectName(_fromUtf8("menuEdit"))
        self.menuCommand = QtModule.QMenu(self.menubar)
        self.menuCommand.setEnabled(True)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("MS Shell Dlg 2"))
        font.setPointSize(8)
        self.menuCommand.setFont(font)
        self.menuCommand.setObjectName(_fromUtf8("menuCommand"))
        self.menuCreateNode = QtModule.QMenu(self.menuCommand)
        self.menuCreateNode.setEnabled(True)
        self.menuCreateNode.setObjectName(_fromUtf8("menuCreateNode"))
        self.menuWindow = QtModule.QMenu(self.menubar)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("MS Shell Dlg 2"))
        font.setPointSize(8)
        self.menuWindow.setFont(font)
        self.menuWindow.setObjectName(_fromUtf8("menuWindow"))
        self.menuHelp = QtModule.QMenu(self.menubar)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("MS Shell Dlg 2"))
        font.setPointSize(8)
        self.menuHelp.setFont(font)
        self.menuHelp.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        self.menuView = QtModule.QMenu(self.menubar)
        self.menuView.setObjectName(_fromUtf8("menuView"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtModule.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.dockNodes = QtModule.QDockWidget(MainWindow)
        self.dockNodes.setMinimumSize(QtCore.QSize(150, 42))
        self.dockNodes.setFloating(False)
        self.dockNodes.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea
                                       | QtCore.Qt.RightDockWidgetArea)
        self.dockNodes.setObjectName(_fromUtf8("dockNodes"))
        self.nodeList_ctl = NodeLibraryView()
        self.nodeList_ctl.setObjectName(_fromUtf8("nodeList_ctl"))
        self.dockNodes.setWidget(self.nodeList_ctl)
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockNodes)
        self.toolBar = QtModule.QToolBar(MainWindow)
        self.toolBar.setMinimumSize(QtCore.QSize(0, 0))
        self.toolBar.setBaseSize(QtCore.QSize(0, 0))
        self.toolBar.setAllowedAreas(QtCore.Qt.LeftToolBarArea
                                     | QtCore.Qt.TopToolBarArea)
        self.toolBar.setIconSize(QtCore.QSize(24, 24))
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.dockPreview = QtModule.QDockWidget(MainWindow)
        self.dockPreview.setBaseSize(QtCore.QSize(300, 0))
        self.dockPreview.setFloating(False)
        self.dockPreview.setFeatures(
            QtModule.QDockWidget.AllDockWidgetFeatures)
        self.dockPreview.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea
                                         | QtCore.Qt.RightDockWidgetArea)
        self.dockPreview.setObjectName(_fromUtf8("dockPreview"))
        self.imageView_ctl = ImageViewWidget()
        self.imageView_ctl.setObjectName(_fromUtf8("imageView_ctl"))
        self.dockPreview.setWidget(self.imageView_ctl)
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockPreview)
        self.dockParam = QtModule.QDockWidget(MainWindow)
        self.dockParam.setBaseSize(QtCore.QSize(300, 0))
        self.dockParam.setFeatures(QtModule.QDockWidget.AllDockWidgetFeatures)
        self.dockParam.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea
                                       | QtCore.Qt.RightDockWidgetArea)
        self.dockParam.setObjectName(_fromUtf8("dockParam"))
        self.nodeParam_ctl = NodeParamView()
        self.nodeParam_ctl.setObjectName(_fromUtf8("nodeParam_ctl"))
        self.dockParam.setWidget(self.nodeParam_ctl)
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockParam)
        self.dockProject = QtModule.QDockWidget(MainWindow)
        self.dockProject.setObjectName(_fromUtf8("dockProject"))
        self.project_ctl = NodeLibraryView()
        self.project_ctl.setObjectName(_fromUtf8("project_ctl"))
        self.dockProject.setWidget(self.project_ctl)
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockProject)
        self.dockSwatch = QtModule.QDockWidget(MainWindow)
        self.dockSwatch.setObjectName(_fromUtf8("dockSwatch"))
        self.swatchParam_ctl = NodeSwatchParam()
        self.swatchParam_ctl.setObjectName(_fromUtf8("swatchParam_ctl"))
        self.dockSwatch.setWidget(self.swatchParam_ctl)
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockSwatch)
        self.actionRendererOptions = QtModule.QAction(MainWindow)
        self.actionRendererOptions.setObjectName(
            _fromUtf8("actionRendererOptions"))
        self.actionPreviewOptions = QtModule.QAction(MainWindow)
        self.actionPreviewOptions.setObjectName(
            _fromUtf8("actionPreviewOptions"))
        self.actionNew = QtModule.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/file_icons/resources/new.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionNew.setIcon(icon)
        self.actionNew.setToolTip(_fromUtf8("New Project"))
        self.actionNew.setStatusTip(_fromUtf8("Create a new project"))
        self.actionNew.setObjectName(_fromUtf8("actionNew"))
        self.actionOpen = QtModule.QAction(MainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/file_icons/resources/open.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionOpen.setIcon(icon1)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionSave = QtModule.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/file_icons/resources/save.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave.setIcon(icon2)
        self.actionSave.setObjectName(_fromUtf8("actionSave"))
        self.actionExit = QtModule.QAction(MainWindow)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionSaveAs = QtModule.QAction(MainWindow)
        self.actionSaveAs.setObjectName(_fromUtf8("actionSaveAs"))
        self.actionImport = QtModule.QAction(MainWindow)
        self.actionImport.setObjectName(_fromUtf8("actionImport"))
        self.actionSaveSelected = QtModule.QAction(MainWindow)
        self.actionSaveSelected.setEnabled(False)
        self.actionSaveSelected.setObjectName(_fromUtf8("actionSaveSelected"))
        self.actionCopy = QtModule.QAction(MainWindow)
        self.actionCopy.setEnabled(False)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/edit_icons/resources/copy.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCopy.setIcon(icon3)
        self.actionCopy.setObjectName(_fromUtf8("actionCopy"))
        self.actionCut = QtModule.QAction(MainWindow)
        self.actionCut.setEnabled(False)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/edit_icons/resources/editcut1.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCut.setIcon(icon4)
        self.actionCut.setObjectName(_fromUtf8("actionCut"))
        self.actionPaste = QtModule.QAction(MainWindow)
        self.actionPaste.setEnabled(False)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/edit_icons/resources/paste.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionPaste.setIcon(icon5)
        self.actionPaste.setObjectName(_fromUtf8("actionPaste"))
        self.actionUndo = QtModule.QAction(MainWindow)
        self.actionUndo.setEnabled(False)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/edit_icons/resources/undo.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionUndo.setIcon(icon6)
        self.actionUndo.setObjectName(_fromUtf8("actionUndo"))
        self.actionRedo = QtModule.QAction(MainWindow)
        self.actionRedo.setEnabled(False)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/edit_icons/resources/redo.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRedo.setIcon(icon7)
        self.actionRedo.setObjectName(_fromUtf8("actionRedo"))
        self.actionEditNode = QtModule.QAction(MainWindow)
        self.actionEditNode.setEnabled(True)
        self.actionEditNode.setObjectName(_fromUtf8("actionEditNode"))
        self.actionRenderPreview = QtModule.QAction(MainWindow)
        self.actionRenderPreview.setEnabled(True)
        self.actionRenderPreview.setObjectName(
            _fromUtf8("actionRenderPreview"))
        self.actionShowNodes = QtModule.QAction(MainWindow)
        self.actionShowNodes.setCheckable(True)
        self.actionShowNodes.setChecked(True)
        self.actionShowNodes.setObjectName(_fromUtf8("actionShowNodes"))
        self.actionShowParameters = QtModule.QAction(MainWindow)
        self.actionShowParameters.setCheckable(True)
        self.actionShowParameters.setChecked(True)
        self.actionShowParameters.setObjectName(
            _fromUtf8("actionShowParameters"))
        self.actionShowGrid = QtModule.QAction(MainWindow)
        self.actionShowGrid.setCheckable(True)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/show_icons/resources/grid_off.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon8.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/show_icons/resources/grid_on.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionShowGrid.setIcon(icon8)
        self.actionShowGrid.setObjectName(_fromUtf8("actionShowGrid"))
        self.actionAbout = QtModule.QAction(MainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionHelp = QtModule.QAction(MainWindow)
        self.actionHelp.setObjectName(_fromUtf8("actionHelp"))
        self.actionShowToolbar = QtModule.QAction(MainWindow)
        self.actionShowToolbar.setCheckable(True)
        self.actionShowToolbar.setChecked(True)
        self.actionShowToolbar.setObjectName(_fromUtf8("actionShowToolbar"))
        self.actionShowPreview = QtModule.QAction(MainWindow)
        self.actionShowPreview.setCheckable(True)
        self.actionShowPreview.setChecked(True)
        self.actionShowPreview.setObjectName(_fromUtf8("actionShowPreview"))
        self.actionDelete = QtModule.QAction(MainWindow)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/edit_icons/resources/delete.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDelete.setIcon(icon9)
        self.actionDelete.setObjectName(_fromUtf8("actionDelete"))
        self.actionProjectSetup = QtModule.QAction(MainWindow)
        self.actionProjectSetup.setObjectName(_fromUtf8("actionProjectSetup"))
        self.actionSettings = QtModule.QAction(MainWindow)
        self.actionSettings.setObjectName(_fromUtf8("actionSettings"))
        self.actionReverseFlow = QtModule.QAction(MainWindow)
        self.actionReverseFlow.setCheckable(True)
        self.actionReverseFlow.setEnabled(False)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/show_icons/resources/ledoff.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon10.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/show_icons/resources/ledon.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionReverseFlow.setIcon(icon10)
        self.actionReverseFlow.setVisible(False)
        self.actionReverseFlow.setObjectName(_fromUtf8("actionReverseFlow"))
        self.actionStraightLinks = QtModule.QAction(MainWindow)
        self.actionStraightLinks.setCheckable(True)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(":/show_icons/resources/straight_off.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon11.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/show_icons/resources/straight_on.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionStraightLinks.setIcon(icon11)
        self.actionStraightLinks.setObjectName(
            _fromUtf8("actionStraightLinks"))
        self.actionSnapGrid = QtModule.QAction(MainWindow)
        self.actionSnapGrid.setCheckable(True)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/show_icons/resources/snap_off.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon12.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/show_icons/resources/snap_on.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionSnapGrid.setIcon(icon12)
        self.actionSnapGrid.setObjectName(_fromUtf8("actionSnapGrid"))
        self.actionFitAll = QtModule.QAction(MainWindow)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/show_icons/resources/fit_all.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFitAll.setIcon(icon13)
        self.actionFitAll.setVisible(True)
        self.actionFitAll.setObjectName(_fromUtf8("actionFitAll"))
        self.actionFitSelected = QtModule.QAction(MainWindow)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(":/show_icons/resources/fit_selected.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFitSelected.setIcon(icon14)
        self.actionFitSelected.setVisible(True)
        self.actionFitSelected.setObjectName(_fromUtf8("actionFitSelected"))
        self.actionZoomReset = QtModule.QAction(MainWindow)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/show_icons/resources/zoom_reset.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionZoomReset.setIcon(icon15)
        self.actionZoomReset.setObjectName(_fromUtf8("actionZoomReset"))
        self.actionNewParamView = QtModule.QAction(MainWindow)
        self.actionNewParamView.setObjectName(_fromUtf8("actionNewParamView"))
        self.actionNewImageView = QtModule.QAction(MainWindow)
        self.actionNewImageView.setObjectName(_fromUtf8("actionNewImageView"))
        self.actionDuplicate = QtModule.QAction(MainWindow)
        self.actionDuplicate.setObjectName(_fromUtf8("actionDuplicate"))
        self.actionDuplicateWithLinks = QtModule.QAction(MainWindow)
        self.actionDuplicateWithLinks.setObjectName(
            _fromUtf8("actionDuplicateWithLinks"))
        self.actionSelectAll = QtModule.QAction(MainWindow)
        self.actionSelectAll.setObjectName(_fromUtf8("actionSelectAll"))
        self.actionSelectBelow = QtModule.QAction(MainWindow)
        self.actionSelectBelow.setObjectName(_fromUtf8("actionSelectBelow"))
        self.actionSelectAbove = QtModule.QAction(MainWindow)
        self.actionSelectAbove.setObjectName(_fromUtf8("actionSelectAbove"))
        self.actionExportShader = QtModule.QAction(MainWindow)
        self.actionExportShader.setObjectName(_fromUtf8("actionExportShader"))
        self.actionShowSwatch = QtModule.QAction(MainWindow)
        self.actionShowSwatch.setObjectName(_fromUtf8("actionShowSwatch"))
        self.actionHideSwatch = QtModule.QAction(MainWindow)
        self.actionHideSwatch.setObjectName(_fromUtf8("actionHideSwatch"))
        self.actionHelpMode = QtModule.QAction(MainWindow)
        self.actionHelpMode.setCheckable(True)
        self.actionHelpMode.setObjectName(_fromUtf8("actionHelpMode"))
        self.actionViewComputedCode = QtModule.QAction(MainWindow)
        self.actionViewComputedCode.setObjectName(
            _fromUtf8("actionViewComputedCode"))
        self.actionCompileShader = QtModule.QAction(MainWindow)
        self.actionCompileShader.setObjectName(
            _fromUtf8("actionCompileShader"))
        self.menuRecent_Projects.addSeparator()
        self.menuRecent_Networks.addSeparator()
        self.menuFile.addAction(self.actionNew)
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addAction(self.actionSaveAs)
        self.menuFile.addAction(self.actionSaveSelected)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionProjectSetup)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionImport)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.menuRecent_Projects.menuAction())
        self.menuFile.addAction(self.menuRecent_Networks.menuAction())
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)
        self.menuEdit.addAction(self.actionUndo)
        self.menuEdit.addAction(self.actionRedo)
        self.menuEdit.addSeparator()
        self.menuEdit.addAction(self.actionSelectAll)
        self.menuEdit.addAction(self.actionSelectBelow)
        self.menuEdit.addAction(self.actionSelectAbove)
        self.menuEdit.addSeparator()
        self.menuEdit.addAction(self.actionCopy)
        self.menuEdit.addAction(self.actionCut)
        self.menuEdit.addAction(self.actionPaste)
        self.menuEdit.addSeparator()
        self.menuEdit.addAction(self.actionDuplicate)
        self.menuEdit.addAction(self.actionDuplicateWithLinks)
        self.menuEdit.addAction(self.actionDelete)
        self.menuEdit.addSeparator()
        self.menuEdit.addAction(self.actionRendererOptions)
        self.menuEdit.addAction(self.actionSettings)
        self.menuCreateNode.addSeparator()
        self.menuCommand.addAction(self.menuCreateNode.menuAction())
        self.menuCommand.addAction(self.actionEditNode)
        self.menuCommand.addAction(self.actionViewComputedCode)
        self.menuCommand.addAction(self.actionExportShader)
        self.menuCommand.addSeparator()
        self.menuCommand.addAction(self.actionCompileShader)
        self.menuCommand.addAction(self.actionRenderPreview)
        self.menuCommand.addAction(self.actionShowSwatch)
        self.menuCommand.addAction(self.actionHideSwatch)
        self.menuWindow.addAction(self.actionShowToolbar)
        self.menuWindow.addAction(self.actionShowNodes)
        self.menuWindow.addAction(self.actionShowParameters)
        self.menuWindow.addAction(self.actionShowPreview)
        self.menuWindow.addSeparator()
        self.menuWindow.addAction(self.actionNewParamView)
        self.menuWindow.addAction(self.actionNewImageView)
        self.menuHelp.addAction(self.actionAbout)
        self.menuHelp.addAction(self.actionHelp)
        self.menuView.addAction(self.actionShowGrid)
        self.menuView.addAction(self.actionSnapGrid)
        self.menuView.addAction(self.actionReverseFlow)
        self.menuView.addAction(self.actionStraightLinks)
        self.menuView.addSeparator()
        self.menuView.addAction(self.actionFitAll)
        self.menuView.addAction(self.actionFitSelected)
        self.menuView.addAction(self.actionZoomReset)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuEdit.menuAction())
        self.menubar.addAction(self.menuCommand.menuAction())
        self.menubar.addAction(self.menuView.menuAction())
        self.menubar.addAction(self.menuWindow.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())
        self.toolBar.addAction(self.actionNew)
        self.toolBar.addAction(self.actionOpen)
        self.toolBar.addAction(self.actionSave)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionCopy)
        self.toolBar.addAction(self.actionCut)
        self.toolBar.addAction(self.actionPaste)
        self.toolBar.addAction(self.actionDelete)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionFitAll)
        self.toolBar.addAction(self.actionFitSelected)
        self.toolBar.addAction(self.actionZoomReset)
        self.toolBar.addAction(self.actionShowGrid)
        self.toolBar.addAction(self.actionSnapGrid)
        self.toolBar.addAction(self.actionStraightLinks)
        self.toolBar.addAction(self.actionReverseFlow)

        self.retranslateUi(MainWindow)
        self.tabs.setCurrentIndex(0)
        if usePyQt4:
            QtCore.QObject.connect(self.actionExit,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.close)
            QtCore.QObject.connect(self.actionProjectSetup,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onProjectSetup)
            QtCore.QObject.connect(self.actionShowGrid,
                                   QtCore.SIGNAL(_fromUtf8("toggled(bool)")),
                                   MainWindow.onShowGrid)
            QtCore.QObject.connect(self.actionRendererOptions,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onRenderSettings)
            QtCore.QObject.connect(self.actionSnapGrid,
                                   QtCore.SIGNAL(_fromUtf8("toggled(bool)")),
                                   MainWindow.onSnapGrid)
            QtCore.QObject.connect(self.actionReverseFlow,
                                   QtCore.SIGNAL(_fromUtf8("toggled(bool)")),
                                   MainWindow.onReverseFlow)
            QtCore.QObject.connect(self.actionStraightLinks,
                                   QtCore.SIGNAL(_fromUtf8("toggled(bool)")),
                                   MainWindow.onStraightLinks)
            QtCore.QObject.connect(self.actionDelete,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onDelete)
            QtCore.QObject.connect(self.actionFitAll,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onFitAll)
            QtCore.QObject.connect(self.actionFitSelected,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onFitSelected)
            QtCore.QObject.connect(self.actionZoomReset,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onZoomReset)
            QtCore.QObject.connect(self.actionNewParamView,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onNewParamView)
            QtCore.QObject.connect(self.actionNew,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onNew)
            QtCore.QObject.connect(self.actionSave,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onSave)
            QtCore.QObject.connect(self.actionSaveAs,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onSaveAs)
            QtCore.QObject.connect(self.actionOpen,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onOpen)
            QtCore.QObject.connect(self.actionSettings,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onSettingsSetup)
            QtCore.QObject.connect(self.actionImport,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onImport)
            QtCore.QObject.connect(self.actionDuplicate,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onDuplicate)
            QtCore.QObject.connect(self.actionDuplicateWithLinks,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onDuplicateWithLinks)
            QtCore.QObject.connect(self.actionCopy,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onCopy)
            QtCore.QObject.connect(self.actionCut,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onCut)
            QtCore.QObject.connect(self.actionSelectAll,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onSelectAll)
            QtCore.QObject.connect(self.actionPaste,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onPaste)
            QtCore.QObject.connect(self.actionSelectAbove,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onSelectAbove)
            QtCore.QObject.connect(self.actionSelectBelow,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onSelectBelow)
            QtCore.QObject.connect(self.actionEditNode,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onEditNode)
            QtCore.QObject.connect(self.actionExportShader,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onExportShader)
            QtCore.QObject.connect(self.actionRenderPreview,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onRenderPreview)
            QtCore.QObject.connect(self.actionShowSwatch,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onShowSwatch)
            QtCore.QObject.connect(self.actionHideSwatch,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onHideSwatch)
            QtCore.QObject.connect(self.actionSaveSelected,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onSaveSelected)
            QtCore.QObject.connect(self.actionViewComputedCode,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onViewComputedCode)
            QtCore.QObject.connect(self.actionCompileShader,
                                   QtCore.SIGNAL(_fromUtf8("triggered()")),
                                   MainWindow.onCompileShader)
        else:
            self.actionExit.triggered.connect(MainWindow.close)
            self.actionProjectSetup.triggered.connect(
                MainWindow.onProjectSetup)
            self.actionShowGrid.toggled.connect(MainWindow.onShowGrid)
            self.actionRendererOptions.triggered.connect(
                MainWindow.onRenderSettings)
            self.actionSnapGrid.toggled.connect(MainWindow.onSnapGrid)
            self.actionReverseFlow.toggled.connect(MainWindow.onReverseFlow)
            self.actionStraightLinks.toggled.connect(
                MainWindow.onStraightLinks)
            self.actionDelete.triggered.connect(MainWindow.onDelete)
            self.actionFitAll.triggered.connect(MainWindow.onFitAll)
            self.actionFitSelected.triggered.connect(MainWindow.onFitSelected)
            self.actionZoomReset.triggered.connect(MainWindow.onZoomReset)
            self.actionNewParamView.triggered.connect(
                MainWindow.onNewParamView)
            self.actionNew.triggered.connect(MainWindow.onNew)
            self.actionSave.triggered.connect(MainWindow.onSave)
            self.actionSaveAs.triggered.connect(MainWindow.onSaveAs)
            self.actionOpen.triggered.connect(MainWindow.onOpen)
            self.actionSettings.triggered.connect(MainWindow.onSettingsSetup)
            self.actionImport.triggered.connect(MainWindow.onImport)
            self.actionDuplicate.triggered.connect(MainWindow.onDuplicate)
            self.actionDuplicateWithLinks.triggered.connect(
                MainWindow.onDuplicateWithLinks)
            self.actionCopy.triggered.connect(MainWindow.onCopy)
            self.actionCut.triggered.connect(MainWindow.onCut)
            self.actionSelectAll.triggered.connect(MainWindow.onSelectAll)
            self.actionPaste.triggered.connect(MainWindow.onPaste)
            self.actionSelectAbove.triggered.connect(MainWindow.onSelectAbove)
            self.actionSelectBelow.triggered.connect(MainWindow.onSelectBelow)
            self.actionEditNode.triggered.connect(MainWindow.onEditNode)
            self.actionExportShader.triggered.connect(
                MainWindow.onExportShader)
            self.actionRenderPreview.triggered.connect(
                MainWindow.onRenderPreview)
            self.actionShowSwatch.triggered.connect(MainWindow.onShowSwatch)
            self.actionHideSwatch.triggered.connect(MainWindow.onHideSwatch)
            self.actionSaveSelected.triggered.connect(
                MainWindow.onSaveSelected)
            self.actionViewComputedCode.triggered.connect(
                MainWindow.onViewComputedCode)
            self.actionCompileShader.triggered.connect(
                MainWindow.onCompileShader)
            """
					"""
        QtCore.QMetaObject.connectSlotsByName(MainWindow)