def __init__(self, mainWindow=None): rvtypes.MinorMode.__init__(self) self.mainWindow = mainWindow if self.mainWindow is None: return ueClient.Client() self.spec = ueSpec.Context().spec self.edit = {"sequences": []} self.toolBox = ueEditUI.ToolBox(parent=self.mainWindow) self.edit = ueEditUI.Edit(parent=self.mainWindow) self.build = ueEditUI.Build(parent=self.mainWindow) self.assets = ueEditUI.Assets(spec=self.spec, parent=self.mainWindow) self.media = ueEditUI.Media(spec=self.spec, parent=self.mainWindow) self.assetInfo = ueEditUI.AssetInfo(spec=self.spec, parent=self.mainWindow) self.spreadsheet = ueEditUI.Spreadsheet(spec=self.spec, parent=self.mainWindow) self.timeline = ueEditUI.Timeline(spec=self.spec, parent=self.mainWindow) self.mainWindow.addToolBar(QtCore.Qt.LeftToolBarArea, self.toolBox) self.mainWindow.addDockWidget(QtCore.Qt.LeftDockWidgetArea, self.edit) self.mainWindow.addDockWidget(QtCore.Qt.LeftDockWidgetArea, self.build) self.mainWindow.addDockWidget(QtCore.Qt.LeftDockWidgetArea, self.assets) self.mainWindow.tabifyDockWidget(self.build, self.edit) self.mainWindow.tabifyDockWidget(self.edit, self.assets) self.mainWindow.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.media) self.mainWindow.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.assetInfo) self.mainWindow.tabifyDockWidget(self.media, self.assetInfo) self.mainWindow.addDockWidget(QtCore.Qt.BottomDockWidgetArea, self.spreadsheet) self.mainWindow.addDockWidget(QtCore.Qt.BottomDockWidgetArea, self.timeline) self.mainWindow.tabifyDockWidget(self.spreadsheet, self.timeline) self.toolBox.load()
settings["spec"] = ueSpec.Spec(os.getenv("PROJ")) for o, a in opts: if o in ("-h", "--help"): usage() sys.exit(0) elif o in ("-s", "--spec"): settings["spec"] = ueSpec.Spec(a) elif o in ("-p", "--paths"): settings["paths"] = True else: print "ERROR: Unrecognised argument '%s'" % o sys.exit(2) def usage(): print "Usage: %s" % os.path.basename(sys.argv[0]) print "Lists groups in a ue project." print "" print "\t-s, --spec " print "\t-p, --paths Show the groups root paths" print "\t-h, --help Print this help" if __name__ == "__main__": parse() ueClient.Client() listGroups() sys.exit(0)