\hypertarget{PlainTextEditorPage_8h_source}{}\doxysection{Plain\+Text\+Editor\+Page.\+h} \label{PlainTextEditorPage_8h_source}\index{src/ui/widgets/PlainTextEditorPage.h@{src/ui/widgets/PlainTextEditorPage.h}} \begin{DoxyCode}{0} \DoxyCodeLine{1 } \DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef \_\_EDITORPAGE\_H\_\_}} \DoxyCodeLine{30 \textcolor{preprocessor}{\#define \_\_EDITORPAGE\_H\_\_}} \DoxyCodeLine{31 } \DoxyCodeLine{32 \textcolor{preprocessor}{\#include "{}core/GpgConstants.h"{}}} \DoxyCodeLine{33 \textcolor{preprocessor}{\#include "{}ui/GpgFrontendUI.h"{}}} \DoxyCodeLine{34 } \DoxyCodeLine{35 \textcolor{keyword}{class }Ui\_PlainTextEditor;} \DoxyCodeLine{36 } \DoxyCodeLine{37 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend_1_1UI}{GpgFrontend::UI}} \{} \DoxyCodeLine{38 } \DoxyCodeLine{43 \textcolor{keyword}{class }\mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage}{PlainTextEditorPage}} : \textcolor{keyword}{public} QWidget \{} \DoxyCodeLine{44 Q\_OBJECT} \DoxyCodeLine{45 \textcolor{keyword}{public}:} \DoxyCodeLine{52 \textcolor{keyword}{explicit} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_a68a9460aabd6cbcb2af9420dd2d96e0c}{PlainTextEditorPage}}(QString file\_path = \textcolor{stringliteral}{"{}"{}},} \DoxyCodeLine{53 QWidget* parent = \textcolor{keyword}{nullptr});} \DoxyCodeLine{54 } \DoxyCodeLine{58 [[nodiscard]] \textcolor{keyword}{const} QString\& \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_aff81f0f98a399fa55b6b0ebf2230d4cf}{GetFilePath}}() \textcolor{keyword}{const};} \DoxyCodeLine{59 } \DoxyCodeLine{65 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_aa9e82690824c82e7628ba4ace9d6e2fe}{SetFilePath}}(\textcolor{keyword}{const} QString\& filePath);} \DoxyCodeLine{66 } \DoxyCodeLine{70 QPlainTextEdit* \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_a6218e6e12bdba0228e4ab4276f7fed7a}{GetTextPage}}();} \DoxyCodeLine{71 } \DoxyCodeLine{78 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_af5dfdfd48ef64cc46e524ec70a22fe3a}{ShowNotificationWidget}}(QWidget* widget, \textcolor{keyword}{const} \textcolor{keywordtype}{char}* className);} \DoxyCodeLine{79 } \DoxyCodeLine{85 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_aee4f46e54f29da671838ed232e526700}{CloseNoteByClass}}(\textcolor{keyword}{const} \textcolor{keywordtype}{char}* className);} \DoxyCodeLine{86 } \DoxyCodeLine{91 \textcolor{keywordtype}{void} ReadFile();} \DoxyCodeLine{92 } \DoxyCodeLine{99 [[nodiscard]] \textcolor{keywordtype}{bool} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_ac1902b063decfeebe7f0908cbfe618ce}{ReadDone}}()\textcolor{keyword}{ const }\{ \textcolor{keywordflow}{return} this-\/>read\_done\_; \}} \DoxyCodeLine{100 } \DoxyCodeLine{105 \textcolor{keywordtype}{void} PrepareToDestroy();} \DoxyCodeLine{106 } \DoxyCodeLine{107 \textcolor{keyword}{private}:} \DoxyCodeLine{108 std::shared\_ptr ui\_; } \DoxyCodeLine{109 QString \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_ae867b6329fcb1978479a9d70f7b017db}{full\_file\_path\_}}; } \DoxyCodeLine{110 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_a4f94e9ef7889a169bda5a47b7f657358}{sign\_marked\_}}\{\}; } \DoxyCodeLine{111 \textcolor{keywordtype}{bool} read\_done\_ = \textcolor{keyword}{false}; } \DoxyCodeLine{112 QThread* read\_thread\_ = \textcolor{keyword}{nullptr}; } \DoxyCodeLine{113 \textcolor{keywordtype}{bool} binary\_mode\_ = \textcolor{keyword}{false}; } \DoxyCodeLine{114 \textcolor{keywordtype}{size\_t} read\_bytes\_ = 0; } \DoxyCodeLine{115 } \DoxyCodeLine{121 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_a14b7431a786ce59e98576e3680cb9a58}{detect\_encoding}}(\textcolor{keyword}{const} std::string\& data);} \DoxyCodeLine{122 } \DoxyCodeLine{128 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_a770be847f7d01556a2674972f848e1aa}{detect\_cr\_lf}}(\textcolor{keyword}{const} QString\& data);} \DoxyCodeLine{129 } \DoxyCodeLine{130 \textcolor{keyword}{private} slots:} \DoxyCodeLine{131 } \DoxyCodeLine{135 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_a45267bcfc8fc83851894061c0fe2a9c2}{slot\_format\_gpg\_header}}();} \DoxyCodeLine{136 } \DoxyCodeLine{142 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage_a8ba8f52aa2d1102d3513fdf0f4760b28}{slot\_insert\_text}}(\textcolor{keyword}{const} std::string\& data);} \DoxyCodeLine{143 \};} \DoxyCodeLine{144 } \DoxyCodeLine{145 \} \textcolor{comment}{// namespace GpgFrontend::UI}} \DoxyCodeLine{146 } \DoxyCodeLine{147 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// \_\_EDITORPAGE\_H\_\_}} \end{DoxyCode}