Differential D11179 Diff 29086 plugins/python/scripter/ui_scripter/actions/reloadaction/reloadaction.py
Changeset View
Changeset View
Standalone View
Standalone View
plugins/python/scripter/ui_scripter/actions/reloadaction/reloadaction.py
Context not available. | |||||
14 | 14 | | |||
---|---|---|---|---|---|
15 | self.setText('Reload File') | 15 | self.setText('Reload File') | ||
16 | self.setObjectName('reloadfile') | 16 | self.setObjectName('reloadfile') | ||
17 | self.setIcon(Krita.instance().icon("view-refresh")) | ||||
17 | self.setShortcut(QKeySequence(Qt.ALT + Qt.Key_R)) | 18 | self.setShortcut(QKeySequence(Qt.ALT + Qt.Key_R)) | ||
18 | 19 | | |||
19 | @property | 20 | @property | ||
20 | def parent(self): | 21 | def parent(self): | ||
21 | return 'File' | 22 | return 'File' | ||
22 | 23 | | |||
24 | def doAfterLoadAction(self): | ||||
25 | # add it to the main toolbar as well | ||||
26 | print("adding the reload button to the action toolbar") | ||||
27 | self.scripter.uicontroller.actionToolbar.addAction(self) | ||||
28 | | ||||
23 | def reloadFile(self): | 29 | def reloadFile(self): | ||
24 | # get the currently open document's path | 30 | # get the currently open document's path | ||
25 | curr_doc_fpath = '' | 31 | curr_doc_fpath = '' | ||
Context not available. |