diff options
Diffstat (limited to 'src/ui/widgets/TextEditTabWidget.h')
-rw-r--r-- | src/ui/widgets/TextEditTabWidget.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/ui/widgets/TextEditTabWidget.h b/src/ui/widgets/TextEditTabWidget.h index 13ed00f0..9df2d6ab 100644 --- a/src/ui/widgets/TextEditTabWidget.h +++ b/src/ui/widgets/TextEditTabWidget.h @@ -39,79 +39,79 @@ class TextEditTabWidget : public QTabWidget { public: explicit TextEditTabWidget(QWidget* parent = nullptr); - public slots: - /** * @brief * + * @return PlainTextEditorPage* */ - void SlotNewTab(); + [[nodiscard]] auto CurTextPage() const -> PlainTextEditorPage*; /** * @brief * + * @return PlainTextEditorPage* */ - void SlotNewEMailTab(); + [[nodiscard]] auto CurEMailPage() const -> EMailEditorPage*; /** * @brief * - * @param title - * @param content + * @return PlainTextEditorPage* */ - void SlotNewTabWithContent(QString title, const QString& content); + [[nodiscard]] auto CurPageTextEdit() const -> PlainTextEditorPage*; /** - * @details Adds a new tab with opening file by path + * @brief + * + * @return FilePage* */ - void SlotOpenFile(const QString& path); + [[nodiscard]] auto CurFilePage() const -> FilePage*; + + public slots: /** * @brief * - * @param path */ - void SlotOpenEMLFile(const QString& path); + void SlotNewTab(); /** * @brief * */ - void SlotOpenDirectory(const QString& target_directory); + void SlotNewEMailTab(); /** - * @details put a * in front of current tabs title, if current textedit is - * modified + * @brief + * + * @param title + * @param content */ - void SlotShowModified(); + void SlotNewTabWithContent(QString title, const QString& content); /** - * @brief - * - * @return PlainTextEditorPage* + * @details Adds a new tab with opening file by path */ - [[nodiscard]] auto CurTextPage() const -> PlainTextEditorPage*; + void SlotOpenFile(const QString& path); /** * @brief * - * @return PlainTextEditorPage* + * @param path */ - [[nodiscard]] auto CurEMailPage() const -> EMailEditorPage*; + void SlotOpenEMLFile(const QString& path); /** * @brief * - * @return PlainTextEditorPage* */ - auto SlotCurPageTextEdit() -> PlainTextEditorPage*; + void SlotOpenDirectory(const QString& target_directory); /** - * @brief - * - * @return FilePage* + * @details put a * in front of current tabs title, if current textedit is + * modified */ - [[nodiscard]] auto CurFilePage() const -> FilePage*; + void SlotShowModified(); protected: /** |