aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/widgets/TextEdit.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui/widgets/TextEdit.h')
-rw-r--r--include/ui/widgets/TextEdit.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/include/ui/widgets/TextEdit.h b/include/ui/widgets/TextEdit.h
index f98da145..b807d6c6 100644
--- a/include/ui/widgets/TextEdit.h
+++ b/include/ui/widgets/TextEdit.h
@@ -40,7 +40,7 @@ public:
/**
* @brief
*/
- TextEdit();
+ TextEdit(QWidget *parent);
/**
* @details Load the content of file into the current textpage
@@ -69,7 +69,7 @@ public:
*/
[[nodiscard]] QTextEdit *curTextPage() const;
- [[nodiscard]] QTextBrowser *curHelpPage() const;
+ [[nodiscard]] FilePage * curFilePage() const;
/**
* @details List of currently unsaved tabs.
@@ -82,10 +82,16 @@ public:
public slots:
/**
- * @details Return pointer to the currently activated tabpage.
+ * @details Return pointer to the currently activated text edit tab page.
*
*/
- [[nodiscard]] EditorPage *slotCurPage() const;
+ [[nodiscard]] EditorPage *slotCurPageTextEdit() const;
+
+ /**
+ * @details Return pointer to the currently activated file treeview tab page.
+ *
+ */
+ [[nodiscard]] FilePage *slotCurPageFileTreeView() const;
/**
* @details Insert a ">" at the begining of every line of current textedit.
@@ -130,6 +136,11 @@ public slots:
void slotNewTab();
/**
+ * @details Adds a new tab with opening file by path
+ */
+ void slotOpenFile(QString &path);
+
+ /**
* @details Adds a new tab with the given title and opens given html file.
* Increase Tab-Count by one
* @param title title for the tab
@@ -189,6 +200,8 @@ private:
private slots:
+ void slotFilePagePathChanged(const QString& path);
+
/**
* @details Remove the tab with given index
*