+ FindAndReplaceWidget(GuiView & view);
+ bool initialiseParams(std::string const & params);
+
+private:
+ ///
+ GuiView & view_;
+
+ /// add a string to the combo if needed
+ void remember(std::string const & find, QComboBox & combo);
+
+ /// FIXME Probably to be merged with findAndReplace(bool, bool)
+ void findAndReplace(
+ bool casesensitive, bool matchword, bool backwards,
+ bool expandmacros, bool ignoreformat, bool replace,
+ bool keep_case
+ );
+
+ /// Perform the scope-related buffer switch while searching
+ void findAndReplaceScope(FindAndReplaceOptions & opt);
+
+ /// Collect options from the GUI elements, then perform the search
+ void findAndReplace(bool backwards, bool replace);
+
+ bool eventFilter(QObject *obj, QEvent *event);
+
+ void virtual showEvent(QShowEvent *ev);
+ void virtual hideEvent(QHideEvent *ev);
+
+ void hideDialog();
+
+protected Q_SLOTS:
+ void on_findNextPB_clicked();
+ void on_findPrevPB_clicked();
+ void on_replaceNextPB_clicked();
+ void on_replacePrevPB_clicked();
+ void on_replaceallPB_clicked();
+ void insertRegexp(QAction *);
+};
+
+
+class FindAndReplace : public DockView
+{
+ Q_OBJECT
+public:
+ FindAndReplace(
+ GuiView & parent, ///< the main window where to dock.
+ Qt::DockWidgetArea area = Qt::RightDockWidgetArea, ///< Position of the dock (and also drawer)
+ Qt::WindowFlags flags = 0);
+
+ ~FindAndReplace();