| 123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef VEDIT_H
- #define VEDIT_H
- #include <QTextEdit>
- #include <QString>
- #include "vconstants.h"
- #include "vnotefile.h"
- class HGMarkdownHighlighter;
- class VEdit : public QTextEdit
- {
- Q_OBJECT
- public:
- VEdit(VNoteFile *noteFile, QWidget *parent = 0);
- void beginEdit();
- bool tryEndEdit();
- // begin: sync the buffer to noteFile->content;
- // end: setModified(false)
- void beginSave();
- void endSave();
- void reloadFile();
- signals:
- public slots:
- private:
- VNoteFile *noteFile;
- HGMarkdownHighlighter *mdHighlighter;
- };
- #endif // VEDIT_H
|