107 lines
8.9 KiB
TeX
107 lines
8.9 KiB
TeX
\hypertarget{TextEdit_8h_source}{}\doxysection{Text\+Edit.\+h}
|
|
\label{TextEdit_8h_source}\index{src/ui/widgets/TextEdit.h@{src/ui/widgets/TextEdit.h}}
|
|
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{1 }
|
|
\DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef \_\_TEXTEDIT\_H\_\_}}
|
|
\DoxyCodeLine{30 \textcolor{preprocessor}{\#define \_\_TEXTEDIT\_H\_\_}}
|
|
\DoxyCodeLine{31 }
|
|
\DoxyCodeLine{32 \textcolor{preprocessor}{\#include "{}ui/dialog/QuitDialog.h"{}}}
|
|
\DoxyCodeLine{33 \textcolor{preprocessor}{\#include "{}ui/widgets/FilePage.h"{}}}
|
|
\DoxyCodeLine{34 \textcolor{preprocessor}{\#include "{}ui/widgets/HelpPage.h"{}}}
|
|
\DoxyCodeLine{35 \textcolor{preprocessor}{\#include "{}ui/widgets/PlainTextEditorPage.h"{}}}
|
|
\DoxyCodeLine{36 }
|
|
\DoxyCodeLine{37 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend_1_1UI}{GpgFrontend::UI}} \{}
|
|
\DoxyCodeLine{41 \textcolor{keyword}{class }\mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit}{TextEdit}} : \textcolor{keyword}{public} QWidget \{}
|
|
\DoxyCodeLine{42 Q\_OBJECT}
|
|
\DoxyCodeLine{43 \textcolor{keyword}{public}:}
|
|
\DoxyCodeLine{47 \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit}{TextEdit}}(QWidget* parent);}
|
|
\DoxyCodeLine{48 }
|
|
\DoxyCodeLine{55 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a72ed46454c833adb038c36d8d4322d18}{LoadFile}}(\textcolor{keyword}{const} QString\& fileName);}
|
|
\DoxyCodeLine{56 }
|
|
\DoxyCodeLine{64 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a3c976a5494d06c2186d94e7cc8ebe457}{MaybeSaveAnyTab}}();}
|
|
\DoxyCodeLine{65 }
|
|
\DoxyCodeLine{71 [[nodiscard]] \textcolor{keywordtype}{int} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a05c54658597b04c3976c72d3a5f9add9}{TabCount}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{72 }
|
|
\DoxyCodeLine{78 [[nodiscard]] \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage}{PlainTextEditorPage}}* \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a7aa1230fbf796225bd6b83d381e11a3b}{CurTextPage}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{79 }
|
|
\DoxyCodeLine{85 [[nodiscard]] \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1FilePage}{FilePage}}* \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_aa30daf558cb85bbdcad55a805a106109}{CurFilePage}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{86 }
|
|
\DoxyCodeLine{91 [[nodiscard]] QHash<int, QString> \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a82fe98d45f54909ebea933b540367c39}{UnsavedDocuments}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{92 }
|
|
\DoxyCodeLine{93 QTabWidget* tab\_widget\_; }
|
|
\DoxyCodeLine{95 \textcolor{keyword}{public} slots:}
|
|
\DoxyCodeLine{96 }
|
|
\DoxyCodeLine{101 \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1PlainTextEditorPage}{PlainTextEditorPage}}* \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a48351dc1529da3b8da311f65b735b5f1}{SlotCurPageTextEdit}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{102 }
|
|
\DoxyCodeLine{107 \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1FilePage}{FilePage}}* \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a72014409d407c161b048e07c061b4cf9}{SlotCurPageFileTreeView}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{108 }
|
|
\DoxyCodeLine{112 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a6a02fce9dc4039c982d6dd19231517ee}{SlotQuote}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{113 }
|
|
\DoxyCodeLine{118 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_af466ec2b8ab3f695d206efc0574bbe20}{SlotFillTextEditWithText}}(\textcolor{keyword}{const} QString\& text) \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{119 }
|
|
\DoxyCodeLine{124 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_ace0b8f4c161db9f4f5db5ecbfd7a91c0}{SlotSave}}();}
|
|
\DoxyCodeLine{125 }
|
|
\DoxyCodeLine{132 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a02fa44ba0c56f3f6ae125f8490faf254}{SlotSaveAs}}();}
|
|
\DoxyCodeLine{133 }
|
|
\DoxyCodeLine{139 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a15335d38187ddf580b7200d856768cfb}{SlotOpen}}();}
|
|
\DoxyCodeLine{140 }
|
|
\DoxyCodeLine{144 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_adca2bbfa746b5598f2a4f74026b84224}{SlotPrint}}();}
|
|
\DoxyCodeLine{145 }
|
|
\DoxyCodeLine{151 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a57a46ab5595622ae0b7bceef7d56bd7c}{SlotNewTab}}();}
|
|
\DoxyCodeLine{152 }
|
|
\DoxyCodeLine{156 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a72006c9f8f45ac4d154c67f62a29446d}{SlotOpenFile}}(QString\& path);}
|
|
\DoxyCodeLine{157 }
|
|
\DoxyCodeLine{164 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a3c17fdf3abf9c4fb6ce35cfb8f0f8fc4}{slotNewHelpTab}}(\textcolor{keyword}{const} QString\& title, \textcolor{keyword}{const} QString\& path) \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{165 }
|
|
\DoxyCodeLine{169 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_ae22ecadf31648f424eb8ab86bd28ef39}{SlotNewFileTab}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{170 }
|
|
\DoxyCodeLine{175 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a7544182198b729373843635bbfea082a}{SlotShowModified}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{176 }
|
|
\DoxyCodeLine{181 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_aa21659aa7acba98dfd6286d69e00ab9b}{SlotCloseTab}}();}
|
|
\DoxyCodeLine{182 }
|
|
\DoxyCodeLine{187 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_af1e364b513f566c743a5d36c19098762}{SlotSwitchTabUp}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{188 }
|
|
\DoxyCodeLine{193 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a576e06390e65576465297d2ab8d7d474}{SlotSwitchTabDown}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{194 }
|
|
\DoxyCodeLine{195 \textcolor{keyword}{private}:}
|
|
\DoxyCodeLine{202 \textcolor{keyword}{static} QString \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_afb9b7a7d88154d774b3d727d8e640cbb}{stripped\_name}}(\textcolor{keyword}{const} QString\& full\_file\_name);}
|
|
\DoxyCodeLine{203 }
|
|
\DoxyCodeLine{209 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a8fad090a19479a9fe89432300cca2b6c}{maybe\_save\_current\_tab}}(\textcolor{keywordtype}{bool} askToSave);}
|
|
\DoxyCodeLine{210 }
|
|
\DoxyCodeLine{211 \textcolor{keywordtype}{int} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a747d3740a88295e6c9565788d4cf56ec}{count\_page\_}}; }
|
|
\DoxyCodeLine{212 }
|
|
\DoxyCodeLine{213 \textcolor{keyword}{private} slots:}
|
|
\DoxyCodeLine{214 }
|
|
\DoxyCodeLine{215 \textcolor{keywordtype}{void} slot\_file\_page\_path\_changed(\textcolor{keyword}{const} QString\& path) \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{216 }
|
|
\DoxyCodeLine{222 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a12f65fbc4984c266a5df4505ecde7c42}{slot\_remove\_tab}}(\textcolor{keywordtype}{int} index);}
|
|
\DoxyCodeLine{223 }
|
|
\DoxyCodeLine{224 \textcolor{keyword}{public} slots:}
|
|
\DoxyCodeLine{225 }
|
|
\DoxyCodeLine{229 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_ae1e710c6722910b8d35df97aaabb3162}{SlotCut}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{230 }
|
|
\DoxyCodeLine{234 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a3599bd01636a873cf3437ab6b9d38780}{SlotCopy}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{235 }
|
|
\DoxyCodeLine{239 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_aa2230418dc8f72c400f5a90082a983c9}{SlotPaste}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{240 }
|
|
\DoxyCodeLine{245 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a4a81e69f6dc74ea649ca9a2358342fd5}{SlotUndo}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{246 }
|
|
\DoxyCodeLine{251 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_ae2b3bf422789d56087face98b6a9e929}{SlotRedo}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{252 }
|
|
\DoxyCodeLine{257 \textcolor{keywordtype}{void} SlotZoomIn() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{258 }
|
|
\DoxyCodeLine{263 \textcolor{keywordtype}{void} SlotZoomOut() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{264 }
|
|
\DoxyCodeLine{269 \textcolor{keywordtype}{void} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a6c814253dfc061bfdae0fa71c6196c55}{SlotSelectAll}}() \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{270 }
|
|
\DoxyCodeLine{271 \textcolor{keyword}{protected}:}
|
|
\DoxyCodeLine{277 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classGpgFrontend_1_1UI_1_1TextEdit_a66b6f6633e7ac71e5fe8b7814a81cadf}{save\_file}}(\textcolor{keyword}{const} QString\& fileName);}
|
|
\DoxyCodeLine{278 \};}
|
|
\DoxyCodeLine{279 }
|
|
\DoxyCodeLine{280 \} \textcolor{comment}{// namespace GpgFrontend::UI}}
|
|
\DoxyCodeLine{281 }
|
|
\DoxyCodeLine{282 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// \_\_TEXTEDIT\_H\_\_}}
|
|
|
|
\end{DoxyCode}
|