-#include "Mainwindow.h++"
+#include "Mainwindow.hxx"
#include <iostream>
#include <sstream>
#include <QtGui>
+#include <QAction>
+#include <QMenuBar>
+#include <QMenu>
+#include <QDockWidget>
+#include <QMessageBox>
+#include <QFileDialog>
+#include <QTableWidget>
+#include <QHeaderView>
+#include <QGraphicsScene>
+#include <QGraphicsItem>
+#include <QGraphicsView>
namespace {
// Listing
QTableWidget * t = new QTableWidget();
t->setColumnCount(3);
- t->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
+ t->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
curBin->for_each_instruction(sym, [&t](long add, std::string bytes, std::string mnemonic) {
int row = t->rowCount();
std::stringstream s;
QGraphicsView * view = new QGraphicsView(scene);
w->addTab(view, "CFG");
-
-
listWidget->addItem(sym.c_str());
stackedWidget->addWidget(w);
}
+++ /dev/null
-#include "include.hxx"
-
-#include <QTextEdit>
-#include <QPushButton>
-#include <QMainWindow>
-#include <QListWidget>
-#include <QStackedWidget>
-
-#include "Binary.hxx"
-
-class Mainwindow : public QMainWindow {
- Q_OBJECT
-public:
- Mainwindow();
-private:
- void populateSymbolInformation(const std::string& sym);
-
- QTextEdit *textEdit;
- QPushButton *quitButton;
- QMenu *fileMenu;
-
- QTabWidget * tabwidget;
- QListWidget * listWidget;
- QStackedWidget * stackedWidget;
- QDockWidget * dockWidget;
-
- QAction *exitAction;
- QAction *openAction;
-
- qtlldb::Binary * curBin;
-private slots:
- void quit();
- void open();
-};
--- /dev/null
+#include "include.hxx"
+
+#include <QTextEdit>
+#include <QPushButton>
+#include <QMainWindow>
+#include <QListWidget>
+#include <QStackedWidget>
+
+#include "Binary.hxx"
+
+class Mainwindow : public QMainWindow {
+ Q_OBJECT
+public:
+ Mainwindow();
+private:
+ void populateSymbolInformation(const std::string& sym);
+
+ QTextEdit *textEdit;
+ QPushButton *quitButton;
+ QMenu *fileMenu;
+
+ QTabWidget * tabwidget;
+ QListWidget * listWidget;
+ QStackedWidget * stackedWidget;
+ QDockWidget * dockWidget;
+
+ QAction *exitAction;
+ QAction *openAction;
+
+ qtlldb::Binary * curBin;
+private slots:
+ void quit();
+ void open();
+};
#include <QTextEdit>
#include "Binary.hxx"
-#include "gui/Mainwindow.h++"
+#include "gui/Mainwindow.hxx"
using std::cout;
using std::cin;