summaryrefslogtreecommitdiff
path: root/src/texteditor.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-25 18:54:47 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-02 10:10:19 -0400
commitcac0fb710c48fa55c6e7303485adf9f4f3364682 (patch)
treeea2b272d39b55097a5dce1becc986306a395c6f8 /src/texteditor.h
parentcb56bf76fd8036895bda468a5ad9ef707dbefce9 (diff)
added explore button to editors
fixed save button on editor being enabled with empty documents added ctrl+s always show vertical scrollbar in thumbnails, fixes nonstop relayouts when the height is just right and the scrollbar flickers on and off
Diffstat (limited to 'src/texteditor.h')
-rw-r--r--src/texteditor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/texteditor.h b/src/texteditor.h
index 775565f2..798222a3 100644
--- a/src/texteditor.h
+++ b/src/texteditor.h
@@ -16,9 +16,11 @@ private:
TextEditor& m_editor;
QAction* m_save;
QAction* m_wordWrap;
+ QAction* m_explore;
void onTextModified(bool b);
void onWordWrap(bool b);
+ void onLoaded(const QString& s);
};
@@ -112,7 +114,10 @@ public:
QColor highlightBackgroundColor() const;
void setHighlightBackgroundColor(const QColor& c);
+ void explore();
+
signals:
+ void loaded(QString filename);
void modified(bool b);
void wordWrapChanged(bool b);
@@ -127,6 +132,7 @@ private:
QString m_filename;
QString m_encoding;
bool m_dirty;
+ bool m_loading;
void setDefaultStyle();
void onModified(bool b);