6 Star 7 Fork 0

Gitee 极速下载 / sasm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Dman95/SASM
克隆/下载
debugtablewidget.h 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
Dman95 提交于 2016-03-19 04:19 . Documentation has been fixed.
#ifndef DEBUGTABLEWIDGET_H
#define DEBUGTABLEWIDGET_H
#include <QTableWidget>
#include <QDesktopWidget>
#include <QHeaderView>
#include <QMouseEvent>
#include <QAction>
#include <QMenu>
#include <QByteArray>
#include "debugger.h"
#include "watchsettingswidget.h"
#include "ruqplaintextedit.h"
/**
* @file debugtablewidget.h
* Defines the debugging window (memory or registers table).
*/
enum DebugTableWidgetType {registersTable, memoryTable};
/**
* ! \brief This class represents memory or registers table.
*
* This class contains the methods and variables relevant to memory and register windows under the debugger.
* Methods include adding variable watches, modifying variable contents, and adding registers.
* */
class DebugTableWidget : public QTableWidget
{
Q_OBJECT
public:
explicit DebugTableWidget(int rows, int columns, DebugTableWidgetType widgetType, QWidget *parent = 0);
~DebugTableWidget();
bool isEmpty();
void initializeMemoryWindow(const QList<RuQPlainTextEdit::Watch> &watches);
static QByteArray memoryHeaderState;
static QByteArray registerWindowState;
static bool geometryMemorySaved;
static bool geometryRegistersSaved;
protected:
void closeEvent(QCloseEvent *);
void mousePressEvent(QMouseEvent *event);
void keyPressEvent(QKeyEvent *event);
signals:
void closeSignal();
void debugShowMemory();
public slots:
void deleteVariable();
void addVariable(const QString &variableName, int rowNumber = -1);
void addVariable(const RuQPlainTextEdit::Watch &variable, int rowNumber = -1);
void changeVariableValue(const QString &value, int rowNumber, bool isValid);
void addRegister(const QString &name, const QString &hexValue, const QString &decValue, int rowNumber);
void changeMemoryWindow(int row, int column);
void setValuesFromDebugger(QList<Debugger::memoryInfo> watches);
void setValuesFromDebugger(QList<Debugger::registersInfo> registers);
private:
int contextMenuLineNumber;
DebugTableWidgetType type;
bool empty;
bool firstTime;
};
#endif // DEBUGTABLEWIDGET_H
1
https://gitee.com/mirrors/sasm.git
git@gitee.com:mirrors/sasm.git
mirrors
sasm
sasm
master

搜索帮助