31 class Ui_PlainTextEditor;
49 QWidget* parent =
nullptr);
95 [[nodiscard]]
bool ReadDone()
const {
return this->read_done_; }
112 std::shared_ptr<Ui_PlainTextEditor> ui_;
115 bool read_done_ =
false;
116 size_t read_bytes_ = 0;
117 bool is_crlf_ =
false;
Class for handling a single tab of the tabwidget.
Definition: PlainTextEditorPage.h:39
void slot_insert_text(QByteArray bytes_data)
Definition: PlainTextEditorPage.cpp:189
void NotifyFileSaved()
notify the user that the file has been saved.
Definition: PlainTextEditorPage.cpp:83
void slot_format_gpg_header()
Definition: PlainTextEditorPage.cpp:109
bool sign_marked_
true, if the signed header is marked, false if not
Definition: PlainTextEditorPage.h:114
QPlainTextEdit * GetTextPage()
Definition: PlainTextEditorPage.cpp:81
PlainTextEditorPage(QString file_path={}, QWidget *parent=nullptr)
Definition: PlainTextEditorPage.cpp:39
void SetFilePath(const QString &filePath)
Definition: PlainTextEditorPage.cpp:90
bool ReadDone() const
Definition: PlainTextEditorPage.h:95
QString full_file_path_
The path to the file handled in the tab.
Definition: PlainTextEditorPage.h:113
void CloseNoteByClass(const char *className)
Definition: PlainTextEditorPage.cpp:100
void ShowNotificationWidget(QWidget *widget, const char *className)
Definition: PlainTextEditorPage.cpp:94
void SignalUIBytesDisplayed()
this signal is emitted when the bytes has been append in texteditor.
const QString & GetFilePath() const
Definition: PlainTextEditorPage.cpp:77
Definition: FileReadTask.cpp:31