cutter/src/widgets/notepad.h

73 lines
1.4 KiB
C
Raw Normal View History

#ifndef NOTEPAD_H
#define NOTEPAD_H
#include <QDockWidget>
#include <QPlainTextEdit>
#include "mdhighlighter.h"
#include "highlighter.h"
class MainWindow;
2017-04-09 19:55:06 +00:00
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