cutter/src/widgets/notepad.h
Hugo Teso ca821e1064 First code commit
First commit with the app code
2017-03-29 12:18:37 +02:00

72 lines
1.4 KiB
C++

#ifndef NOTEPAD_H
#define NOTEPAD_H
#include <QDockWidget>
#include <QPlainTextEdit>
#include "mdhighlighter.h"
#include "highlighter.h"
class MainWindow;
namespace Ui {
class Notepad;
}
class Notepad : public QDockWidget
{
Q_OBJECT
public:
explicit Notepad(MainWindow *main, QWidget *parent = 0);
void setText(QString str);
void highlightPreview();
void setFonts(QFont font);
~Notepad();
QPlainTextEdit *notesTextEdit;
private slots:
void on_fontButton_clicked();
void on_boldButton_clicked();
void on_italicsButton_clicked();
void on_h1Button_clicked();
void on_h2Button_clicked();
void on_h3Button_clicked();
void on_undoButton_clicked();
void on_redoButton_clicked();
void on_searchEdit_returnPressed();
void on_searchEdit_textEdited(const QString &arg1);
void on_searchEdit_textChanged(const QString &arg1);
void showNotepadContextMenu(const QPoint &pt);
void on_actionDisassmble_bytes_triggered();
void on_actionDisassmble_function_triggered();
void on_actionHexdump_bytes_triggered();
void on_actionCompact_Hexdump_triggered();
void on_actionHexdump_function_triggered();
private:
Ui::Notepad *ui;
MdHighlighter *highlighter;
Highlighter *disasm_highlighter;
bool isFirstTime;
MainWindow *main;
QString addr;
};
#endif // NOTEPAD_H