]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormSearch.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / FormSearch.h
index 66ad7acf4682b1228ffe7781cf4c980db3ff9287..7208a27c02e9425245ac540934ece36989169975 100644 (file)
@@ -1,58 +1,45 @@
+// -*- C++ -*-
 /**
  * \file FormSearch.h
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORMSEARCH_H
 #define FORMSEARCH_H
 
-#include "FormBase.h"
+#include "FormDialogView.h"
+
+namespace lyx {
+namespace frontend {
 
-struct FD_form_search;
-class LyXView;
-class Dialogs;
+class ControlSearch;
+struct FD_search;
 
 /** This class provides an XForms implementation of the FormSearch Dialog.
  */
-class FormSearch : public FormBaseBD {
+class FormSearch
+       : public FormController<ControlSearch, FormView<FD_search> > {
 public:
-   ///
-   FormSearch(LyXView *, Dialogs *);
-   ///
-   ~FormSearch();
-   
+       ///
+       FormSearch(Dialog &);
 private:
-   /** Redraw the form (on receipt of a Signal indicating, for example,
-    *  that the xform colours have been re-mapped). 
-    */
-
-   /// Filter the inputs
-   virtual bool input(FL_OBJECT *, long);
-   
-   /// Build the popup
-   virtual void build();
-
-   /// Update the popup
-   virtual void update();
-
-   /// Searches occurance of string
-   /// if argument=true forward search otherwise backward search
-   void Find(bool const = true);
-   /// if argument=false replace once otherwise replace all
-   /// Replaces occurance of string
-   void Replace(bool const = false);
-   
-   ///
-   virtual FL_FORM * form() const;
-   
-   /// Typedefinitions from the fdesign produced Header file
-   FD_form_search  * build_search();
-   
-   /// Real GUI implementation.
-   FD_form_search  * dialog_;
+       /// not needed.
+       virtual void apply() {}
+       /// Build the dialog
+       virtual void build();
+       /// update the dialog
+       virtual void update();
+
+       /// Filter the inputs
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 };
 
-#endif
+} // namespace frontend
+} // namespace lyx
+
+#endif // FORMSEARCH_H