GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
29 #ifndef __EDITORPAGE_H__
30 #define __EDITORPAGE_H__
32 #include "core/GpgConstants.h"
33 #include "ui/GpgFrontendUI.h"
35 class Ui_PlainTextEditor;
53 QWidget* parent =
nullptr);
99 [[nodiscard]]
bool ReadDone()
const {
return this->read_done_; }
105 void PrepareToDestroy();
108 std::shared_ptr<Ui_PlainTextEditor> ui_;
111 bool read_done_ =
false;
112 QThread* read_thread_ =
nullptr;
113 bool binary_mode_ =
false;
114 size_t read_bytes_ = 0;
147 #endif // __EDITORPAGE_H__
void SetFilePath(const QString &filePath)
Definition: PlainTextEditorPage.cpp:78
Definition: VerifyDetailsDialog.cpp:33
const QString & GetFilePath() const
Definition: PlainTextEditorPage.cpp:72
void ShowNotificationWidget(QWidget *widget, const char *className)
Definition: PlainTextEditorPage.cpp:82
void slot_insert_text(const std::string &data)
Definition: PlainTextEditorPage.cpp:184
Definition: FileReadThread.h:38
void CloseNoteByClass(const char *className)
Definition: PlainTextEditorPage.cpp:88
bool sign_marked_
true, if the signed header is marked, false if not
Definition: PlainTextEditorPage.h:110
PlainTextEditorPage(QString file_path="", QWidget *parent=nullptr)
Definition: PlainTextEditorPage.cpp:39
void detect_cr_lf(const QString &data)
Definition: PlainTextEditorPage.cpp:248
Class for handling a single tab of the tabwidget.
Definition: PlainTextEditorPage.h:43
void detect_encoding(const std::string &data)
Definition: PlainTextEditorPage.cpp:224
void SignalSendReadBlock(const std::string &block)
void slot_format_gpg_header()
Definition: PlainTextEditorPage.cpp:97
QPlainTextEdit * GetTextPage()
Definition: PlainTextEditorPage.cpp:76
QString full_file_path_
The path to the file handled in the tab.
Definition: PlainTextEditorPage.h:109
bool ReadDone() const
Definition: PlainTextEditorPage.h:99