-----------------------------------------------------------------------------
| 31 | |
| 32 | //----------------------------------------------------------------------------- |
| 33 | pqPythonEditorActions::pqPythonEditorActions() |
| 34 | { |
| 35 | using Action = GeneralActionType; |
| 36 | |
| 37 | this->GeneralActions[Action::NewFile].setText( |
| 38 | QCoreApplication::translate("pqPythonEditorActions", "&New")); |
| 39 | this->GeneralActions[Action::NewFile].setShortcut(QKeySequence::New); |
| 40 | this->GeneralActions[Action::NewFile].setStatusTip( |
| 41 | QCoreApplication::translate("pqPythonEditorActions", "Create a new file")); |
| 42 | |
| 43 | this->GeneralActions[Action::OpenFile].setText( |
| 44 | QCoreApplication::translate("pqPythonEditorActions", "&Open...")); |
| 45 | this->GeneralActions[Action::OpenFile].setShortcut(QKeySequence::Open); |
| 46 | this->GeneralActions[Action::OpenFile].setStatusTip( |
| 47 | QCoreApplication::translate("pqPythonEditorActions", "Open an existing file")); |
| 48 | |
| 49 | this->GeneralActions[Action::SaveFile].setText( |
| 50 | QCoreApplication::translate("pqPythonEditorActions", "&Save")); |
| 51 | this->GeneralActions[Action::SaveFile].setShortcut(QKeySequence::Save); |
| 52 | this->GeneralActions[Action::SaveFile].setStatusTip( |
| 53 | QCoreApplication::translate("pqPythonEditorActions", "Save the document to disk")); |
| 54 | |
| 55 | this->GeneralActions[Action::SaveFileAs].setText( |
| 56 | QCoreApplication::translate("pqPythonEditorActions", "Save &As...")); |
| 57 | this->GeneralActions[Action::SaveFileAs].setStatusTip( |
| 58 | QCoreApplication::translate("pqPythonEditorActions", "Save the document under a new name")); |
| 59 | |
| 60 | this->GeneralActions[Action::SaveFileAsMacro].setText( |
| 61 | QCoreApplication::translate("pqPythonEditorActions", "Save As &Macro...")); |
| 62 | this->GeneralActions[Action::SaveFileAsMacro].setStatusTip( |
| 63 | QCoreApplication::translate("pqPythonEditorActions", "Save the document as a Macro")); |
| 64 | |
| 65 | this->GeneralActions[Action::SaveFileAsScript].setText( |
| 66 | QCoreApplication::translate("pqPythonEditorActions", "Save As &Script...")); |
| 67 | this->GeneralActions[Action::SaveFileAsScript].setStatusTip( |
| 68 | QCoreApplication::translate("pqPythonEditorActions", "Save the document as a Script")); |
| 69 | |
| 70 | this->GeneralActions[Action::DeleteAll].setText( |
| 71 | QCoreApplication::translate("pqPythonEditorActions", "Delete All")); |
| 72 | this->GeneralActions[Action::DeleteAll].setStatusTip( |
| 73 | QCoreApplication::translate("pqPythonEditorActions", "Delete all scripts from disk")); |
| 74 | |
| 75 | this->GeneralActions[Action::Run].setText( |
| 76 | QCoreApplication::translate("pqPythonEditorActions", "Run...")); |
| 77 | this->GeneralActions[Action::Run].setStatusTip( |
| 78 | QCoreApplication::translate("pqPythonEditorActions", "Run the currently edited script")); |
| 79 | |
| 80 | this->GeneralActions[Action::Cut].setText( |
| 81 | QCoreApplication::translate("pqPythonEditorActions", "Cut")); |
| 82 | this->GeneralActions[Action::Cut].setShortcut(QKeySequence::Cut); |
| 83 | this->GeneralActions[Action::Cut].setStatusTip( |
| 84 | QCoreApplication::translate("pqPythonEditorActions", |
| 85 | "Cut the current selection's contents to the " |
| 86 | "clipboard")); |
| 87 | |
| 88 | this->GeneralActions[Action::Undo].setText( |
| 89 | QCoreApplication::translate("pqPythonEditorActions", "Undo")); |
| 90 | this->GeneralActions[Action::Undo].setShortcut(QKeySequence::Undo); |