| 1 | // File: terminalpane.hcxx . . $ `<file>/terminalpane.h`/ |
| 2 | /* |
| 3 | Pep8-1 is a virtual machine for writing machine language and assembly |
| 4 | language programs. |
| 5 | |
| 6 | Copyright (C) 2009 J. Stanley Warford, Pepperdine University |
| 7 | |
| 8 | This program is free software: you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation, either version 3 of the License, or |
| 11 | (at your option) any later version. |
| 12 | |
| 13 | This program is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | |
| 22 | #ifndef TERMINALPANE_H |
| 23 | #define TERMINALPANE_Hcxx . . $ `terminalpane.h:23:9`! |
| 24 | |
| 25 | #include <QWidget> |
| 26 | #include <QKeyEvent> |
| 27 | |
| 28 | namespace Uicxx . . $ Ui/ { |
| 29 | class TerminalPanecxx . . $ Ui/TerminalPane#; |
| 30 | } |
| 31 | |
| 32 | class TerminalPanecxx . . $ TerminalPane# : public QWidgetcxx . . $ QWidget# { |
| 33 | Q_OBJECTcxx . . $ TerminalPane#trUtf8(75d9f1c324b4579d). |
| 34 | Q_DISABLE_COPYcxx . . $ TerminalPane#(TerminalPane) |
| 35 | public: |
| 36 | explicit TerminalPanecxx . . $ TerminalPane#TerminalPane(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0); |
| 37 | virtual ~cxx . . $ TerminalPane#`~TerminalPane`(ced63f7c635d850d).TerminalPanecxx . . $ TerminalPane#(); |
| 38 | |
| 39 | void appendOutputcxx . . $ TerminalPane#appendOutput(7df51288a9ebd664).(QStringcxx . . $ QString# str); |
| 40 | // Post: str is appended to the text edit |
| 41 | |
| 42 | void waitingForInputcxx . . $ TerminalPane#waitingForInput(49f6e7a06ebc5aa8).(); |
| 43 | // Post: Sets the writability of the text edit to true, and prevents previously entered text from being modified |
| 44 | |
| 45 | void clearTerminalcxx . . $ TerminalPane#clearTerminal(49f6e7a06ebc5aa8).(); |
| 46 | // Post: Clears the terminal |
| 47 | |
| 48 | void highlightOnFocuscxx . . $ TerminalPane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 49 | // Post: Highlights the label based on the label window color saved in the UI file |
| 50 | |
| 51 | bool hasFocuscxx . . $ TerminalPane#hasFocus(c9857a73d68e59ba).(); |
| 52 | // Post: returns if the pane has focus |
| 53 | |
| 54 | void copycxx . . $ TerminalPane#copy(49f6e7a06ebc5aa8).(); |
| 55 | // Post: selected text in the text edit is copied to the clipboard |
| 56 | |
| 57 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 58 | void onFontChangedcxx . . $ TerminalPane#onFontChanged(19c44da831d1de49).(QFontcxx . . $ QFont# font); |
| 59 | |
| 60 | private: |
| 61 | Uicxx . . $ Ui/::TerminalPanecxx . . $ Ui/TerminalPane# *uicxx . . $ TerminalPane#ui.; |
| 62 | |
| 63 | bool waitingcxx . . $ TerminalPane#waiting.; |
| 64 | |
| 65 | QStringcxx . . $ QString# strokeStringcxx . . $ TerminalPane#strokeString.; |
| 66 | QStringcxx . . $ QString# retStringcxx . . $ TerminalPane#retString.; |
| 67 | |
| 68 | void displayTerminalcxx . . $ TerminalPane#displayTerminal(49f6e7a06ebc5aa8).(); |
| 69 | |
| 70 | bool eventFiltercxx . . $ TerminalPane#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject# *, QEventcxx . . $ QEvent# *event); |
| 71 | |
| 72 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 73 | void mouseReleaseEventcxx . . $ TerminalPane#mouseReleaseEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# *); |
| 74 | |
| 75 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 76 | void undoAvailablecxx . . $ TerminalPane#undoAvailable(b45ddcbc8423892c).(bool); |
| 77 | void redoAvailablecxx . . $ TerminalPane#redoAvailable(b45ddcbc8423892c).(bool); |
| 78 | void inputReceivedcxx . . $ TerminalPane#inputReceived(49f6e7a06ebc5aa8).(); |
| 79 | |
| 80 | }; |
| 81 | |
| 82 | #endif // TERMINALPANE_H |