]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/FindAndReplace.h
Make code a bit easier to read
[lyx.git] / src / frontends / qt / FindAndReplace.h
index 565db5afa631ddeb07cd1992c059f1b930b8b862..07c03eab0f78158602d6b4924d9abcd2f1c3014e 100644 (file)
@@ -16,6 +16,7 @@
 // This is needed so that ui_FindAndReplaceUi.h can find qt_()
 #include "qt_helpers.h"
 #include "ui_FindAndReplaceUi.h"
+#include "support/docstring.h"
 
 #include <string>
 
@@ -32,7 +33,11 @@ class FindAndReplaceWidget : public QTabWidget, public Ui::FindAndReplaceUi
 public:
        FindAndReplaceWidget(GuiView & view);
        bool initialiseParams(std::string const & params);
-       void updateGUI();
+       void updateWorkAreas();
+       void updateButtons();
+
+       // return true if \c wa is one if the adv. F&R workareas
+       bool hasWorkArea(GuiWorkArea * wa) const;
 
 public Q_SLOTS:
        ///
@@ -65,10 +70,17 @@ private:
 
        void hideDialog();
 
+       void setFormatIgnores(bool const b);
+
+       docstring const checkState(std::string const s, bool const b);
+
 protected Q_SLOTS:
        void on_findNextPB_clicked();
        void on_replacePB_clicked();
        void on_replaceallPB_clicked();
+       void on_searchbackCB_clicked();
+       void on_selectAllPB_clicked();
+       void on_deselectAllPB_clicked();
 };
 
 
@@ -88,6 +100,7 @@ public:
        void dispatchParams() override {}
        bool isBufferDependent() const override { return false; }
        bool canApplyToReadOnly() const override { return true; }
+       bool hasWorkArea(GuiWorkArea * wa) const { return widget_->hasWorkArea(wa); }
        void selectAll();
 
        /// update