def __init__(self, session_instance, internal_action, session_ui, parent=None): """ This is the constructor @param session_instance: this is the session we want to display the data of @param internal_action: this is the action class we want to work on with this UI @param session_ui: this is is the instance of the sessionUi class @param parent: this is the parent widget holding the sub_ui """ fileActionUi.FileActionUi.__init__(self, session_instance, internal_action, session_ui, parent) #Setupping the pathWidget self.pathWidget.set_label_text("exportPath:") self.pathWidget.set_should_file_exists(False) self.pathWidget.set_force_end_slash(False) self.meshName = pathWidget.PathWidget() self.meshName.set_label_text("meshName: ") self.meshName.pickPB.hide() self.verticalLayout_2.addWidget(self.meshName) self.skinCB = QtWidgets.QCheckBox("Export Skin") self.verticalLayout_2.addWidget(self.skinCB) self.skinPathWidget = pathWidget.PathWidget() self.skinPathWidget.set_label_text("skinPath: ") self.skinPathWidget.set_force_end_slash(False) self.skinPathWidget.set_should_file_exists(False) self.verticalLayout_2.addWidget(self.skinPathWidget)
def __init__(self, session_instance, internal_action, session_ui, parent=None): """ This is the constructor @param session_instance: this is the session we want to display the data of @param internal_action: this is the action class we want to work on with this UI @param session_ui: this is is the instance of the sessionUi class @param parent: this is the parent widget holding the sub_ui """ fileActionUi.FileActionUi.__init__(self, session_instance, internal_action, session_ui, parent) # Setupping the pathWidget self.pathWidget.set_label_text("exportPath:") self.pathWidget.set_should_file_exists(False) self.pathWidget.set_force_end_slash(False) self.root = pathWidget.PathWidget() self.root.set_label_text("root: ") self.root.pickPB.hide() self.verticalLayout_2.addWidget(self.root) self.skeletonName = pathWidget.PathWidget() self.skeletonName.set_label_text("Skeleton name: ") self.skeletonName.pickPB.hide() self.verticalLayout_2.addWidget(self.skeletonName) self.frameRateSB = spinWidget.SpinWidget(True) self.frameRateSB.value = 1.0 / 33.0 self.frameRateSB.set_precision(6) self.frameRateSB.set_label_text("framerate: ") self.verticalLayout_2.addWidget(self.frameRateSB) self.startFrameSB = spinWidget.SpinWidget() self.startFrameSB.set_label_text("start frame: ") self.startFrameSB.set_precision(6) self.startFrameSB.set_min_max(-1000, 1000) self.verticalLayout_2.addWidget(self.startFrameSB) self.endFrameSB = spinWidget.SpinWidget() self.endFrameSB.set_label_text("end frame: ") self.endFrameSB.set_min_max(-1000, 1000) self.verticalLayout_2.addWidget(self.endFrameSB) self.keyValues = keywordWidget.KeywordWidget() self.verticalLayout_2.addWidget(self.keyValues)
def customizeUi(self): """ This function is automatically called at init time, it is going to add all the missing bits that are not possible to add in the designer """ #this attribute holds the instance of the currently #displayed session self.currentSession = session.ActionSession() self.currentSession.load() #adding path widget for base path self.projectPath = pathWidget.PathWidget() self.projectPath.set_should_file_exists(True) self.projectPath.set_is_directory(True) self.projectPath.set_label_text("Project path:") self.projectPath.path = self.currentSession.projectPath self.horizontalLayout_6.addWidget(self.projectPath) #this attribute holds the Actions added to the session self.actions = [] #this private list holds the list of the available #action guis to be instanciated self.__available_actions_uis = [] #this private dict holds a dict that maps the module #name to its full path on disk self.__uis_dict = {} #this private list holds all the stored sessions self.__available_sessions = [] #forcing the private variables to populate self.__get_available_actions_uis() #laoding the data in the session then in the ui self.load_actions() self.load_ui_sessions() ##list holding all the loaded UIs self.action_uis = [] ##Item used to squeze the sessionsUis up self.__spacer_item = None #now that all is in place we load the current session self.load_current_session() #adding needed signals self.addPB.clicked.connect(self.add_action) self.savePB.clicked.connect(self.save_session) self.executePB.clicked.connect(self.execute)
def __init__(self,session_instance, internal_action, session_ui, parent=None ): """ This is the constructor @param session_instance: this is the session we want to display the data of @param internal_action: this is the acton class we want to work on with this UI @param session_ui: this is is the instance of the sessionUi class @param parent: this is the parent widget holding the sub_ui """ actionUi.ActionUi.__init__(self, session_instance, internal_action, session_ui, parent) #Widget used to pick a path from disk self.pathWidget = pathWidget.PathWidget() self.verticalLayout_2.addWidget(self.pathWidget)