def about_action(self): action = QtWidgets.QAction("&About", self) action.triggered.connect(self.main_ctrl.show_about) action.setShortcut("Ctrl+Alt+A") action.setStatusTip("Show the About window") return action
def prebuild_all_action(self): action = QtWidgets.QAction("Pre&build All", self) action.triggered.connect(self.main_ctrl.prebuild_all) action.setShortcut("Ctrl+B") action.setStatusTip("Launch the Prebuild function of every scripts") return action
def execute_all_action(self): action = QtWidgets.QAction("&Execute All", self) action.triggered.connect(self.main_ctrl.execute_all) action.setShortcut("Ctrl+E") action.setStatusTip("Launch the Execute function of every scripts") return action
def refresh_action(self): action = QtWidgets.QAction("&Refresh", self) action.triggered.connect(self.common_ctrl.refresh) action.setShortcut("Ctrl+R") action.setStatusTip("Refresh categories & scripts") return action
def import_project_action(self): action = QtWidgets.QAction("Import Project", self) action.triggered.connect(partial(self.common_ctrl.open_project, True)) action.setShortcut("Ctrl+I") action.setStatusTip("Import & append a project to the currect project") return action
def save_project_as_action(self): action = QtWidgets.QAction("Save Project &As", self) action.triggered.connect(self.common_ctrl.save_project_as) action.setShortcut("Ctrl+Shift+S") action.setStatusTip("Save current project as") return action
def open_project_action(self): action = QtWidgets.QAction("&Open Project", self) action.triggered.connect(self.common_ctrl.open_project) action.setShortcut("Ctrl+O") action.setStatusTip("Open a project") return action
def new_project_action(self): action = QtWidgets.QAction("&New Project", self) action.triggered.connect(self.common_ctrl.new_project) action.setShortcut("Ctrl+N") action.setStatusTip("Clear current project") return action