]> 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 41c211dc93061588c920c0cb3ee2d73a946a5c39..07c03eab0f78158602d6b4924d9abcd2f1c3014e 100644 (file)
@@ -33,9 +33,12 @@ 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:
        ///
        void dockLocationChanged(Qt::DockWidgetArea area);
@@ -97,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