| 1 | // File: memorycellgraphicsitem.hcxx . . $ `<file>/memorycellgraphicsitem.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 MEMORYCELLGRAPHICSITEM_H |
| 23 | #define MEMORYCELLGRAPHICSITEM_Hcxx . . $ `memorycellgraphicsitem.h:23:9`! |
| 24 | |
| 25 | #include <QGraphicsItem> |
| 26 | #include "enu.h"cxx . . $ `<file>/enu.h`/ |
| 27 | |
| 28 | class MemoryCellGraphicsItemcxx . . $ MemoryCellGraphicsItem# : public QGraphicsItemcxx . . $ QGraphicsItem# |
| 29 | { |
| 30 | public: |
| 31 | MemoryCellGraphicsItemcxx . . $ MemoryCellGraphicsItem#MemoryCellGraphicsItem(fdb9435aa122334d).(int addr, QStringcxx . . $ QString# sym, Enucxx . . $ Enu/::ESymbolFormatcxx . . $ Enu/ESymbolFormat# eSymFrmt, int xLoc, int yLoc); |
| 32 | ~cxx . . $ MemoryCellGraphicsItem#`~MemoryCellGraphicsItem`(ced63f7c635d850d).MemoryCellGraphicsItemcxx . . $ MemoryCellGraphicsItem#() { } |
| 33 | |
| 34 | QRectFcxx . . $ QRectF# boundingRectcxx . . $ MemoryCellGraphicsItem#boundingRect(19f9350443f914b1).() const; |
| 35 | |
| 36 | void paintcxx . . $ MemoryCellGraphicsItem#paint(75fb761ce905ae5).(QPaintercxx . . $ QPainter# *painter, const QStyleOptionGraphicsItemcxx . . $ QStyleOptionGraphicsItem# *, QWidgetcxx . . $ QWidget# *); |
| 37 | |
| 38 | static const int boxHeightcxx . . $ MemoryCellGraphicsItem#boxHeight.; |
| 39 | static const int boxWidthcxx . . $ MemoryCellGraphicsItem#boxWidth.; |
| 40 | static const int addressWidthcxx . . $ MemoryCellGraphicsItem#addressWidth.; |
| 41 | static const int symbolWidthcxx . . $ MemoryCellGraphicsItem#symbolWidth.; |
| 42 | static const int bufferWidthcxx . . $ MemoryCellGraphicsItem#bufferWidth.; |
| 43 | static int cellSizecxx . . $ MemoryCellGraphicsItem#cellSize(10342dda07a560ad).(Enucxx . . $ Enu/::ESymbolFormatcxx . . $ Enu/ESymbolFormat# symbolFormat); |
| 44 | |
| 45 | QStringcxx . . $ QString# valuecxx . . $ MemoryCellGraphicsItem#value.; |
| 46 | QColorcxx . . $ QColor# boxColorcxx . . $ MemoryCellGraphicsItem#boxColor.; |
| 47 | QColorcxx . . $ QColor# boxBgColorcxx . . $ MemoryCellGraphicsItem#boxBgColor.; |
| 48 | QColorcxx . . $ QColor# textColorcxx . . $ MemoryCellGraphicsItem#textColor.; |
| 49 | QColorcxx . . $ QColor# boxTextColorcxx . . $ MemoryCellGraphicsItem#boxTextColor.; |
| 50 | void updateValuecxx . . $ MemoryCellGraphicsItem#updateValue(49f6e7a06ebc5aa8).(); |
| 51 | int getAddresscxx . . $ MemoryCellGraphicsItem#getAddress(b126dc7c1de90089).(); |
| 52 | int getNumBytescxx . . $ MemoryCellGraphicsItem#getNumBytes(b126dc7c1de90089).(); |
| 53 | |
| 54 | private: |
| 55 | int xcxx . . $ MemoryCellGraphicsItem#x.; |
| 56 | int ycxx . . $ MemoryCellGraphicsItem#y.; |
| 57 | int addresscxx . . $ MemoryCellGraphicsItem#address.; |
| 58 | Enucxx . . $ Enu/::ESymbolFormatcxx . . $ Enu/ESymbolFormat# eSymbolFormatcxx . . $ MemoryCellGraphicsItem#eSymbolFormat.; |
| 59 | QStringcxx . . $ QString# symbolcxx . . $ MemoryCellGraphicsItem#symbol.; |
| 60 | QRectFcxx . . $ QRectF# boxcxx . . $ MemoryCellGraphicsItem#box.; |
| 61 | |
| 62 | }; |
| 63 | |
| 64 | #endif // MEMORYCELLGRAPHICSITEM_H |