diff options
author | saturneric <[email protected]> | 2025-04-16 22:38:40 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-16 22:38:40 +0000 |
commit | 72d98ff183bcedd05c5a996fccaa0544cb4ac309 (patch) | |
tree | eb7ce626d3bf4243c9efe3f23bba6ec830f59a5b /src/ui/widgets/TextEditTabWidget.h | |
parent | fix: solve CI build dependencies (diff) | |
download | GpgFrontend-72d98ff183bcedd05c5a996fccaa0544cb4ac309.tar.gz GpgFrontend-72d98ff183bcedd05c5a996fccaa0544cb4ac309.zip |
feat: switch text-based model to workspace-based model
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/TextEditTabWidget.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ui/widgets/TextEditTabWidget.h b/src/ui/widgets/TextEditTabWidget.h index 9df2d6ab..ed6a0b50 100644 --- a/src/ui/widgets/TextEditTabWidget.h +++ b/src/ui/widgets/TextEditTabWidget.h @@ -90,6 +90,12 @@ class TextEditTabWidget : public QTabWidget { void SlotNewTabWithContent(QString title, const QString& content); /** + * @brief + * + */ + void SlotOpenDefaultPath(); + + /** * @details Adds a new tab with opening file by path */ void SlotOpenFile(const QString& path); @@ -105,7 +111,7 @@ class TextEditTabWidget : public QTabWidget { * @brief * */ - void SlotOpenDirectory(const QString& target_directory); + void SlotOpenPath(const QString& target_path); /** * @details put a * in front of current tabs title, if current textedit is @@ -146,6 +152,12 @@ class TextEditTabWidget : public QTabWidget { int count_page_ = 0; int text_page_data_modified_count_ = 0; + /** + * @brief + * + * @param full_file_name + * @return QString + */ static auto stripped_name(const QString& full_file_name) -> QString; }; |