| 1 | // File: objectcodepane.hcxx . . $ `<file>/objectcodepane.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 OBJECTCODEPANE_H |
| 23 | #define OBJECTCODEPANE_Hcxx . . $ `objectcodepane.h:23:9`! |
| 24 | |
| 25 | #include <QWidget> |
| 26 | #include "enu.h"cxx . . $ `<file>/enu.h`/ |
| 27 | |
| 28 | namespace Uicxx . . $ Ui/ { |
| 29 | class ObjectCodePanecxx . . $ Ui/ObjectCodePane#; |
| 30 | } |
| 31 | |
| 32 | class ObjectCodePanecxx . . $ ObjectCodePane# : public QWidgetcxx . . $ QWidget# { |
| 33 | Q_OBJECTcxx . . $ ObjectCodePane#trUtf8(75d9f1c324b4579d). |
| 34 | Q_DISABLE_COPYcxx . . $ ObjectCodePane#`operator=`(22a37218b63db1c5).(ObjectCodePane) |
| 35 | public: |
| 36 | explicit ObjectCodePanecxx . . $ ObjectCodePane#ObjectCodePane(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0); |
| 37 | virtual ~cxx . . $ ObjectCodePane#`~ObjectCodePane`(ced63f7c635d850d).ObjectCodePanecxx . . $ ObjectCodePane#(); |
| 38 | |
| 39 | void setObjectCodecxx . . $ ObjectCodePane#setObjectCode(4bb6f0c1dbf41c14).(QListcxx . . $ QList#<int> objectCode); |
| 40 | // Post Sets text in source code pane. |
| 41 | |
| 42 | void setObjectCodePaneTextcxx . . $ ObjectCodePane#setObjectCodePaneText(7df51288a9ebd664).(QStringcxx . . $ QString# string); |
| 43 | // Post: Sets text in source code pane to string. |
| 44 | |
| 45 | bool getObjectCodecxx . . $ ObjectCodePane#getObjectCode(5fdc15f27bb12933).(QListcxx . . $ QList#<int> &objectCodeList); |
| 46 | // Pre: The object code pane contains object code |
| 47 | // Post: If the object code is syntactically correct, true is returned, and |
| 48 | // &objectCodeList contains the object code, one byte per integer. |
| 49 | // Otherwise, false is returned. |
| 50 | |
| 51 | void clearObjectCodecxx . . $ ObjectCodePane#clearObjectCode(49f6e7a06ebc5aa8).(); |
| 52 | // Post: Clears the source code pane |
| 53 | |
| 54 | bool isModifiedcxx . . $ ObjectCodePane#isModified(c9857a73d68e59ba).(); |
| 55 | // Post: Returns true if the source code pane has been modified |
| 56 | |
| 57 | void setModifiedFalsecxx . . $ ObjectCodePane#setModifiedFalse(49f6e7a06ebc5aa8).(); |
| 58 | // Post: Sets isModified of the source code pane to false |
| 59 | |
| 60 | QStringcxx . . $ QString# toPlainTextcxx . . $ ObjectCodePane#toPlainText(4365c3963150523e).(); |
| 61 | // Post: Contents of the source code pane are returned |
| 62 | |
| 63 | void setCurrentFilecxx . . $ ObjectCodePane#setCurrentFile(7df51288a9ebd664).(QStringcxx . . $ QString# string); |
| 64 | // Post: Title bar of the window is set to "Object Code - 'string'" |
| 65 | |
| 66 | void highlightOnFocuscxx . . $ ObjectCodePane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 67 | // Post: Highlights the label based on the label window color saved in the UI file |
| 68 | |
| 69 | bool hasFocuscxx . . $ ObjectCodePane#hasFocus(c9857a73d68e59ba).(); |
| 70 | // Post: returns if the pane has focus |
| 71 | |
| 72 | void undocxx . . $ ObjectCodePane#undo(49f6e7a06ebc5aa8).(); |
| 73 | // Post: the last action in the text edit is undone |
| 74 | |
| 75 | void redocxx . . $ ObjectCodePane#redo(49f6e7a06ebc5aa8).(); |
| 76 | // Post: the last undo in the text edit is redone |
| 77 | |
| 78 | bool isUndoablecxx . . $ ObjectCodePane#isUndoable(c9857a73d68e59ba).(); |
| 79 | // Returns the undoability of the text edit |
| 80 | |
| 81 | bool isRedoablecxx . . $ ObjectCodePane#isRedoable(c9857a73d68e59ba).(); |
| 82 | // Returns the redoability of the text edit |
| 83 | |
| 84 | void cutcxx . . $ ObjectCodePane#cut(49f6e7a06ebc5aa8).(); |
| 85 | // Post: selected text in the text edit is cut to the clipboard |
| 86 | |
| 87 | void copycxx . . $ ObjectCodePane#copy(49f6e7a06ebc5aa8).(); |
| 88 | // Post: selected text in the text edit is copied to the clipboard |
| 89 | |
| 90 | void pastecxx . . $ ObjectCodePane#paste(49f6e7a06ebc5aa8).(); |
| 91 | // Post: selected text in the clipboard is pasted to the text edit |
| 92 | |
| 93 | void setReadOnlycxx . . $ ObjectCodePane#setReadOnly(b45ddcbc8423892c).(bool b); |
| 94 | // Post: the text edit's read only attribute is set to b |
| 95 | |
| 96 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 97 | void onFontChangedcxx . . $ ObjectCodePane#onFontChanged(19c44da831d1de49).(QFontcxx . . $ QFont# font); |
| 98 | |
| 99 | private: |
| 100 | Uicxx . . $ Ui/::ObjectCodePanecxx . . $ Ui/ObjectCodePane# *uicxx . . $ ObjectCodePane#ui.; |
| 101 | |
| 102 | void mouseReleaseEventcxx . . $ ObjectCodePane#mouseReleaseEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# *); |
| 103 | |
| 104 | void mouseDoubleClickEventcxx . . $ ObjectCodePane#mouseDoubleClickEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# *); |
| 105 | |
| 106 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 107 | void setLabelToModifiedcxx . . $ ObjectCodePane#setLabelToModified(b45ddcbc8423892c).(bool modified); |
| 108 | |
| 109 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 110 | void undoAvailablecxx . . $ ObjectCodePane#undoAvailable(b45ddcbc8423892c).(bool); |
| 111 | void redoAvailablecxx . . $ ObjectCodePane#redoAvailable(b45ddcbc8423892c).(bool); |
| 112 | |
| 113 | void labelDoubleClickedcxx . . $ ObjectCodePane#labelDoubleClicked(d9b7ee7ebef3c77).(Enucxx . . $ Enu/::EPanecxx . . $ Enu/EPane# pane); |
| 114 | }; |
| 115 | |
| 116 | #endif // OBJECTCODEPANE_H |