| 1 | #cxx . . $ `<file>/src/HexViewer.h`/ifndef HEXVIEWER_H |
| 2 | #define HEXVIEWER_Hcxx . . $ `src/HexViewer.h:2:9`! |
| 3 | |
| 4 | #include <QFrame> |
| 5 | #include <cstdint> |
| 6 | #include <vector> |
| 7 | |
| 8 | class HexRequestcxx . . $ HexRequest#; |
| 9 | class QScrollBarcxx . . $ QScrollBar#; |
| 10 | class QPaintEventcxx . . $ QPaintEvent#; |
| 11 | |
| 12 | class HexViewercxx . . $ HexViewer# : public QFramecxx . . $ QFrame# |
| 13 | { |
| 14 | Q_OBJECTcxx . . $ QMetaObject#Call# |
| 15 | public: |
| 16 | HexViewercxx . . $ HexViewer#HexViewer(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent = nullptr); |
| 17 | |
| 18 | enum Modecxx . . $ HexViewer#Mode# { FIXEDcxx . . $ HexViewer#FIXED., FILL_WIDTHcxx . . $ HexViewer#FILL_WIDTH., FILL_WIDTH_POWEROF2cxx . . $ HexViewer#FILL_WIDTH_POWEROF2. }; |
| 19 | |
| 20 | void setDebuggablecxx . . $ HexViewer#setDebuggable(29ed8fcd127906b1).(const QStringcxx . . $ QString#& name, int size); |
| 21 | void setIsInteractivecxx . . $ HexViewer#setIsInteractive(b45ddcbc8423892c).(bool enabled); |
| 22 | void setUseMarkercxx . . $ HexViewer#setUseMarker(b45ddcbc8423892c).(bool enabled); |
| 23 | void setIsEditablecxx . . $ HexViewer#setIsEditable(b45ddcbc8423892c).(bool enabled); |
| 24 | |
| 25 | void setDisplayModecxx . . $ HexViewer#setDisplayMode(4496567c628f8dee).(Modecxx . . $ HexViewer#Mode# mode); |
| 26 | void setDisplayWidthcxx . . $ HexViewer#setDisplayWidth(68e3ae50fe6578a9).(short width); |
| 27 | |
| 28 | QSizecxx . . $ QSize# sizeHintcxx . . $ HexViewer#sizeHint(4b3b776e5ee2b367).() const override; |
| 29 | |
| 30 | void setLocationcxx . . $ HexViewer#setLocation(d4f767463ce0a6b3).(int addr); |
| 31 | void setTopLocationcxx . . $ HexViewer#setTopLocation(d4f767463ce0a6b3).(int addr); |
| 32 | void scrollBarChangedcxx . . $ HexViewer#scrollBarChanged(d4f767463ce0a6b3).(int addr); |
| 33 | void settingsChangedcxx . . $ HexViewer#settingsChanged(49f6e7a06ebc5aa8).(); |
| 34 | void refreshcxx . . $ HexViewer#refresh(49f6e7a06ebc5aa8).(); |
| 35 | |
| 36 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 37 | void locationChangedcxx . . $ HexViewer#locationChanged(d4f767463ce0a6b3).(int addr); |
| 38 | |
| 39 | private: |
| 40 | void wheelEventcxx . . $ HexViewer#wheelEvent(92d40974398e4832).(QWheelEventcxx . . $ QWheelEvent#* e) override; |
| 41 | void resizeEventcxx . . $ HexViewer#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent#* e) override; |
| 42 | void paintEventcxx . . $ HexViewer#paintEvent(f239c9e85d61a220).(QPaintEventcxx . . $ QPaintEvent#* e) override; |
| 43 | void mousePressEventcxx . . $ HexViewer#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* e) override; |
| 44 | bool eventcxx . . $ HexViewer#event(f123fa2ce489f0bd).(QEventcxx . . $ QEvent#* e) override; |
| 45 | void keyPressEventcxx . . $ HexViewer#keyPressEvent(c92999c1b6b09cc0).(QKeyEventcxx . . $ QKeyEvent#* e) override; |
| 46 | void focusInEventcxx . . $ HexViewer#focusInEvent(897a5ce4b6676619).(QFocusEventcxx . . $ QFocusEvent#* e) override; |
| 47 | void focusOutEventcxx . . $ HexViewer#focusOutEvent(897a5ce4b6676619).(QFocusEventcxx . . $ QFocusEvent#* e) override; |
| 48 | |
| 49 | void createActionscxx . . $ HexViewer#createActions(49f6e7a06ebc5aa8).(); |
| 50 | |
| 51 | void setSizescxx . . $ HexViewer#setSizes(49f6e7a06ebc5aa8).(); |
| 52 | void hexdataTransferedcxx . . $ HexViewer#hexdataTransfered(ec2c4844b45cf9f6).(HexRequestcxx . . $ HexRequest#* r); |
| 53 | void transferCancelledcxx . . $ HexViewer#transferCancelled(ec2c4844b45cf9f6).(HexRequestcxx . . $ HexRequest#* r); |
| 54 | int coorToOffsetcxx . . $ HexViewer#coorToOffset(adc74905ab378dc7).(int x, int y) const; |
| 55 | |
| 56 | void changeWidthcxx . . $ HexViewer#changeWidth(49f6e7a06ebc5aa8).(); |
| 57 | |
| 58 | private: |
| 59 | QScrollBarcxx . . $ QScrollBar#* vertScrollBarcxx . . $ HexViewer#vertScrollBar.; |
| 60 | QActioncxx . . $ QAction#* fillWidthActioncxx . . $ HexViewer#fillWidthAction.; |
| 61 | QActioncxx . . $ QAction#* fillWidth2Actioncxx . . $ HexViewer#fillWidth2Action.; |
| 62 | QActioncxx . . $ QAction#* setWith8Actioncxx . . $ HexViewer#setWith8Action.; |
| 63 | QActioncxx . . $ QAction#* setWith16Actioncxx . . $ HexViewer#setWith16Action.; |
| 64 | QActioncxx . . $ QAction#* setWith32Actioncxx . . $ HexViewer#setWith32Action.; |
| 65 | |
| 66 | int wheelRemaindercxx . . $ HexViewer#wheelRemainder. = 0; |
| 67 | |
| 68 | // layout |
| 69 | int frameLcxx . . $ HexViewer#frameL., frameRcxx . . $ HexViewer#frameR., frameTcxx . . $ HexViewer#frameT., frameBcxx . . $ HexViewer#frameB.; |
| 70 | int leftCharPoscxx . . $ HexViewer#leftCharPos., leftValuePoscxx . . $ HexViewer#leftValuePos., rightValuePoscxx . . $ HexViewer#rightValuePos., rightCharPoscxx . . $ HexViewer#rightCharPos.; |
| 71 | Modecxx . . $ HexViewer#Mode# displayModecxx . . $ HexViewer#displayMode. = FILL_WIDTHcxx . . $ HexViewer#FILL_WIDTH.; |
| 72 | short horBytescxx . . $ HexViewer#horBytes. = 16; |
| 73 | int visibleLinescxx . . $ HexViewer#visibleLines., partialBottomLinecxx . . $ HexViewer#partialBottomLine.; |
| 74 | int lineHeightcxx . . $ HexViewer#lineHeight., xAddrcxx . . $ HexViewer#xAddr., xDatacxx . . $ HexViewer#xData., xCharcxx . . $ HexViewer#xChar., dataWidthcxx . . $ HexViewer#dataWidth., charWidthcxx . . $ HexViewer#charWidth., hexCharWidthcxx . . $ HexViewer#hexCharWidth.; |
| 75 | int addressLengthcxx . . $ HexViewer#addressLength. = 4; |
| 76 | |
| 77 | // data |
| 78 | QStringcxx . . $ QString# debuggableNamecxx . . $ HexViewer#debuggableName.; |
| 79 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<uint8_tcxx . . $ uint8_t#> hexDatacxx . . $ HexViewer#hexData.; |
| 80 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<uint8_tcxx . . $ uint8_t#> previousHexDatacxx . . $ HexViewer#previousHexData.; |
| 81 | int debuggableSizecxx . . $ HexViewer#debuggableSize. = 0; |
| 82 | int hexTopAddresscxx . . $ HexViewer#hexTopAddress. = 0; |
| 83 | int hexMarkAddresscxx . . $ HexViewer#hexMarkAddress. = 0; |
| 84 | bool waitingForDatacxx . . $ HexViewer#waitingForData. = false; |
| 85 | bool highlitChangescxx . . $ HexViewer#highlitChanges. = true; |
| 86 | bool useMarkercxx . . $ HexViewer#useMarker. = false; |
| 87 | bool isInteractivecxx . . $ HexViewer#isInteractive. = false; |
| 88 | bool isEditablecxx . . $ HexViewer#isEditable. = false; |
| 89 | bool beingEditedcxx . . $ HexViewer#beingEdited. = false; |
| 90 | bool editedCharscxx . . $ HexViewer#editedChars. = false; |
| 91 | bool hasFocuscxx . . $ HexViewer#hasFocus. = false; |
| 92 | int cursorPositioncxx . . $ HexViewer#cursorPosition., editValuecxx . . $ HexViewer#editValue.; |
| 93 | |
| 94 | friend class HexRequestcxx . . $ HexRequest#; |
| 95 | }; |
| 96 | |
| 97 | #endif // HEXVIEWER_H |