Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 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
Esempio n. 4
0
 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
Esempio n. 5
0
 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
Esempio n. 6
0
 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
Esempio n. 7
0
 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
Esempio n. 8
0
 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