diff options
author | Ken Moore <moorekou@gmail.com> | 2016-04-19 13:53:17 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-04-19 13:53:17 -0400 |
commit | 2ac52279a091b1e4a81df199d302e12c8e2cad3e (patch) | |
tree | 5c6bf9cd643cb9379c14dd69f12389fbe27c2685 /desktop-utilities/lumina-textedit/MainUI.h | |
parent | Some more work on lumina-textedit. (diff) | |
download | lumina-2ac52279a091b1e4a81df199d302e12c8e2cad3e.tar.gz lumina-2ac52279a091b1e4a81df199d302e12c8e2cad3e.tar.bz2 lumina-2ac52279a091b1e4a81df199d302e12c8e2cad3e.zip |
Get find/replace support fully implemented.
Diffstat (limited to 'desktop-utilities/lumina-textedit/MainUI.h')
-rw-r--r-- | desktop-utilities/lumina-textedit/MainUI.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop-utilities/lumina-textedit/MainUI.h b/desktop-utilities/lumina-textedit/MainUI.h index 64b4de3d..e040591a 100644 --- a/desktop-utilities/lumina-textedit/MainUI.h +++ b/desktop-utilities/lumina-textedit/MainUI.h @@ -10,6 +10,7 @@ #include <QMainWindow> #include <QStringList> #include <QSettings> +#include <QShortcut> #include "PlainTextEditor.h" @@ -31,6 +32,7 @@ public slots: private: Ui::MainUI *ui; QSettings *settings; + QShortcut *closeFindS; //Simplification functions PlainTextEditor* currentEditor(); @@ -55,6 +57,16 @@ private slots: void tabChanged(); void tabClosed(int); + //Find/Replace functions + void closeFindReplace(); + void openFind(); + void openReplace(); + + void findNext(); + void findPrev(); + void replaceOne(); + void replaceAll(); + protected: void resizeEvent(QResizeEvent *ev){ settings->setValue("lastSize", ev->size()); |