]> git.lyx.org Git - features.git/commitdiff
Implemented controller-view split for Search popup.
authorAngus Leeming <leeming@lyx.org>
Mon, 26 Mar 2001 15:25:37 +0000 (15:25 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 26 Mar 2001 15:25:37 +0000 (15:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1829 a592a061-630c-0410-9148-cb99ea01b6c8

15 files changed:
src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlSearch.C [new file with mode: 0644]
src/frontends/controllers/ControlSearch.h [new file with mode: 0644]
src/frontends/controllers/ControlUrl.C
src/frontends/controllers/GUI.h
src/frontends/controllers/Makefile.am
src/frontends/xforms/ChangeLog
src/frontends/xforms/Dialogs.C
src/frontends/xforms/FormCitation.C
src/frontends/xforms/FormCopyright.h
src/frontends/xforms/FormSearch.C
src/frontends/xforms/FormSearch.h
src/frontends/xforms/form_search.C
src/frontends/xforms/form_search.h
src/frontends/xforms/forms/form_search.fd

index 9dc04f61f631ff3a859cbe20e9b69f01bf30cdeb..25fcc1fe309c4b1caddbeb880c5262834fbd6464 100644 (file)
@@ -4,8 +4,9 @@
        of the buffer, LaTeX, Literate, LinuxDoc or DocBook.
 
        * ControlRef.[Ch]:
-       * ControlTabularCreate.[Ch]: new files; controller for the Ref and
-       TabularCreate popups, respectively.
+       * ControlSearch.[Ch]:
+       * ControlTabularCreate.[Ch]: new files; controller for the Ref,
+       Search and TabularCreate popups, respectively.
 
        * GUI.h:
        * Makefile.am: associated changes.
diff --git a/src/frontends/controllers/ControlSearch.C b/src/frontends/controllers/ControlSearch.C
new file mode 100644 (file)
index 0000000..ca077e0
--- /dev/null
@@ -0,0 +1,71 @@
+/* This file is part of
+ * ====================================================== 
+ *
+ *           LyX, The Document Processor
+ *
+ *           Copyright 2001 The LyX Team.
+ *
+ * ======================================================
+ *
+ * \file ControlSearch.C
+ * \author Angus Leeming <a.leeming@ic.ac.uk>
+ */
+
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include "ControlSearch.h"
+#include "Dialogs.h"
+#include "Liason.h"
+#include "LyXView.h"
+#include "buffer.h"
+#include "lyxfind.h"
+#include "debug.h"
+
+using Liason::setMinibuffer;
+using SigC::slot;
+
+ControlSearch::ControlSearch(LyXView & lv, Dialogs & d)
+       : ControlDialog<ControlConnectBD>(lv, d)
+{
+       d_.showSearch.connect(SigC::slot(this, &ControlSearch::show));
+
+       // perhaps in the future we'd like a
+       // "search again" button/keybinding
+       // d_.searchAgain.connect(SigC::slot(this, &ControlSearch::FindNext));
+}
+
+
+void ControlSearch::find(string const & search,
+                        bool casesensitive, bool matchword, bool forward) const
+{
+       bool const found = LyXFind(lv_.view(), search, casesensitive,
+                                  matchword, forward);
+   
+       if (!found)
+               setMinibuffer(&lv_, _("String not found!"));
+}
+
+
+void ControlSearch::replace(string const & search, string const & replace,
+                           bool casesensitive, bool matchword, bool all) const
+{
+       int const replace_count = LyXReplace(lv_.view(),
+                                            search, replace, casesensitive, 
+                                            matchword, true, all);
+                                 
+       if (replace_count == 0) {
+               setMinibuffer(&lv_, _("String not found!"));
+       } else {
+               if (replace_count == 1) {
+                       setMinibuffer(&lv_, _("String has been replaced."));
+               } else {
+                       string str = tostr(replace_count);
+                       str += _(" strings have been replaced.");
+                       setMinibuffer(&lv_, str.c_str());
+               }
+       }
+}
diff --git a/src/frontends/controllers/ControlSearch.h b/src/frontends/controllers/ControlSearch.h
new file mode 100644 (file)
index 0000000..194f953
--- /dev/null
@@ -0,0 +1,45 @@
+/* This file is part of
+ * ====================================================== 
+ *
+ *           LyX, The Document Processor
+ *
+ *           Copyright 2001 The LyX Team.
+ *
+ * ======================================================
+ *
+ * \file ControlSearch.h
+ * \author Angus Leeming <a.leeming@ic.ac.uk>
+ */
+
+#ifndef CONTROLSEARCH_H
+#define CONTROLSEARCH_H
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+#include "ControlDialogs.h"
+
+/** A controller for Search dialogs.
+ */
+class ControlSearch : public ControlDialog<ControlConnectBD> {
+public:
+       ///
+       ControlSearch(LyXView &, Dialogs &);
+   
+       /// Searches occurence of string
+       void find(string const & search,
+                 bool casesensitive, bool matchword, bool forward) const;
+
+       /// Replaces occurence of string
+       void replace(string const & search, string const & replace,
+                    bool casesensitive, bool matchword, bool all) const;
+
+private:
+       /// not needed.
+       virtual void apply() {}
+       /// 
+       virtual void clearDaughterParams() {}
+};
+
+#endif // CONTROLSEARCH_H
index 435880b76b6272cf9f8cba0fc695e9317053dcb8..86f942a1d58384fc2e3bdf2243bc9fbe58f3968c 100644 (file)
@@ -17,7 +17,6 @@
 #pragma implementation
 #endif
 
-#include "Dialogs.h"
 #include "ControlUrl.h"
 #include "Dialogs.h"
 #include "LyXView.h"
index 89442abd1bb75b77e657488866972f6796bb9529..187997437ea50df7ad3a5b8f65d504f5e96b37a0 100644 (file)
@@ -165,6 +165,20 @@ public:
 };
 
 
+/** Specialization for Search dialog
+ */
+class ControlSearch;
+
+template <class GUIview, class GUIbc>
+class GUISearch :
+       public GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
+public:
+       ///
+       GUISearch(LyXView & lv, Dialogs & d)
+               : GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
+};
+
+
 /** Specialization for TabularCreate dialog
  */
 class ControlTabularCreate;
index 96beb38d17826710e24b3f89cef3b4954b3eeb4e..2fad59c60f7d03a5fb9e0a5ab4ea08f4285e0a44 100644 (file)
@@ -42,6 +42,8 @@ libcontrollers_la_SOURCES=\
        ControlLog.h \
        ControlRef.C \
        ControlRef.h \
+       ControlSearch.C \
+       ControlSearch.h \
        ControlTabularCreate.C \
        ControlTabularCreate.h \
        ControlUrl.C \
index e0c925312f962bcebd5b38e9c303a79bfe8f1ed9..bf53365ecb82cbe12478f2a3ede504a1b0f44d36 100644 (file)
@@ -2,6 +2,8 @@
 
        * FormRef.[Ch]:
        * forms/form_ref.fd:
+       * FormSearch.[Ch]:
+       * forms/form_search.fd:
        * FormTabularCreate.[Ch]:
        * forms/form_tabular_create.fd: implemented controller-view split.
 
index fc5fa6cff6d9c852a2dfae264973e7a772110c3b..4ce3bcc5bb28ab3c54905e987b980b39a33eb942 100644 (file)
@@ -30,6 +30,7 @@
 #include "ControlLog.h"
 #include "ControlUrl.h"
 #include "ControlRef.h"
+#include "ControlSearch.h"
 #include "ControlTabularCreate.h"
 #include "ControlVCLog.h"
 
@@ -46,6 +47,7 @@
 #include "form_error.h"
 #include "form_include.h"
 #include "form_ref.h"
+#include "form_search.h"
 #include "form_tabular_create.h"
 #include "form_url.h"
 
@@ -59,6 +61,7 @@
 #include "FormInclude.h"
 #include "FormLog.h"
 #include "FormRef.h"
+#include "FormSearch.h"
 #include "FormTabularCreate.h"
 #include "FormUrl.h"
 #include "FormVCLog.h"
@@ -72,7 +75,6 @@
 #include "FormPreamble.h"
 #include "FormPreferences.h"
 #include "FormPrint.h"
-#include "FormSearch.h"
 #include "FormSplash.h"
 #include "FormTabular.h"
 #include "FormToc.h"
@@ -96,9 +98,10 @@ Dialogs::Dialogs(LyXView * lv)
        add(new GUIInclude<FormInclude, xformsBC>(*lv, *this));
        add(new GUILog<FormLog, xformsBC>(*lv, *this));
        add(new GUIRef<FormRef, xformsBC>(*lv, *this));
+       add(new GUISearch<FormSearch, xformsBC>(*lv, *this));
+       add(new GUITabularCreate<FormTabularCreate, xformsBC>(*lv, *this));
        add(new GUIUrl<FormUrl, xformsBC>(*lv, *this));
        add(new GUIVCLog<FormVCLog, xformsBC>(*lv, *this));
-       add(new GUITabularCreate<FormTabularCreate, xformsBC>(*lv, *this));
 
        add(new FormDocument(lv, this));
        add(new FormExternal(lv, this));
@@ -109,7 +112,6 @@ Dialogs::Dialogs(LyXView * lv)
        add(new FormPreamble(lv, this));
        add(new FormPreferences(lv, this));
        add(new FormPrint(lv, this));
-       add(new FormSearch(lv, this));
        add(new FormSplash(lv, this));
        add(new FormTabular(lv, this));
        add(new FormToc(lv, this));
index a5580f0799ed2fd359cdb8551536b030c38dcc49..5e00d1e0c8ff3c21969f02d9c44c0eabf118d084 100644 (file)
@@ -247,7 +247,7 @@ ButtonPolicy::SMInput FormCitation::input(FL_OBJECT * ob, long)
 
                vector<string>::const_iterator start = bibkeys.begin();
                int const sel = fl_get_browser(dialog_->browser_bib);
-               if (sel >= 1 && sel <= bibkeys.size())
+               if (sel >= 1 && sel <= int(bibkeys.size()))
                        start += sel-1;
 
                // Find the NEXT instance...
index a11c95725d03653aa45faaa917443a7323a9bc10..43c2c25da8a34b89b19f36cf48c4bf0e822ee79f 100644 (file)
@@ -39,10 +39,10 @@ public:
 private:
        /// not needed.
        virtual void apply() {}
-       /// not needed.
-       virtual void update() {}
        /// Build the dialog
        virtual void build();
+       /// not needed.
+       virtual void update() {}
 
        /// Fdesign generated method
        FD_form_copyright * build_copyright();
index 30e121a636623f9c7d7d2892ab8d2861be01c451..ec3387358bb6ef19ccf61d534846fcde02f4324c 100644 (file)
 #pragma implementation
 #endif
 
+#include "xformsBC.h"
+#include "ControlSearch.h"
 #include "FormSearch.h"
 #include "form_search.h"
-#include "gettext.h"
-#include "Dialogs.h"
-#include "Liason.h"
-#include "LyXView.h"
-#include "buffer.h"
-#include "gettext.h"
-#include "lyxfind.h"
-#include "debug.h"
 
-using Liason::setMinibuffer;
-using SigC::slot;
-
-FormSearch::FormSearch(LyXView * lv, Dialogs * d)
-       : FormBaseBD(lv, d, _("LyX: Find and Replace"))
-{
-    // let the popup be shown
-    // This is a permanent connection so we won't bother
-    // storing a copy because we won't be disconnecting.
-    d->showSearch.connect(slot(this, &FormSearch::show));
-   // perhaps in the future we'd like a
-   // "search again" button/keybinding
-//    d->searchAgain.connect(slot(this, &FormSearch::FindNext));
-}
+typedef FormCB<ControlSearch, FormDB<FD_form_search> > base_class;
 
+FormSearch::FormSearch(ControlSearch & c)
+       : base_class(c, _("LyX: Find and Replace"))
+{}
 
-FL_FORM * FormSearch::form() const
-{
-    if (dialog_.get()) 
-           return dialog_->form;
-    return 0;
-}
 
 void FormSearch::build()
 {
-   dialog_.reset(build_search());
+       dialog_.reset(build_search());
        
-   // Manage the ok, apply and cancel/close buttons
-   bc_.setCancel(dialog_->button_cancel);
-   bc_.addReadOnly(dialog_->input_replace);
-   bc_.addReadOnly(dialog_->replace);
-   bc_.addReadOnly(dialog_->replaceall);
-   bc_.refresh();
+       // Manage the ok, apply and cancel/close buttons
+       bc().setCancel(dialog_->button_cancel);
+       bc().addReadOnly(dialog_->input_replace);
+       bc().addReadOnly(dialog_->replace);
+       bc().addReadOnly(dialog_->replaceall);
+       bc().refresh();
 }
 
-void FormSearch::update()
-{
-   if (!dialog_.get())
-     return;
 
-   bc_.readOnly(lv_->buffer()->isReadonly());
-}
-
-bool FormSearch::input(FL_OBJECT * obj, long)
+ButtonPolicy::SMInput FormSearch::input(FL_OBJECT * obj, long)
 {
-   if (obj == dialog_->findnext)
-     Find();
-   else if (obj == dialog_->findprev)
-     Find(false);
-   else if (obj == dialog_->replace)
-     Replace();
-   else if (obj == dialog_->replaceall)
-     Replace(true);
-   
-   return 0;
-}
+       if (obj == dialog_->findnext || obj == dialog_->findprev) {
+               bool const forward = (obj == dialog_->findnext);
+       
+               controller().find(fl_get_input(dialog_->input_search),
+                                 fl_get_button(dialog_->casesensitive),
+                                 fl_get_button(dialog_->matchword),
+                                 forward);
 
-void FormSearch::Find(bool const next)
-{
-   bool found = LyXFind(lv_->view(),
-                       fl_get_input(dialog_->input_search),
-                       fl_get_button(dialog_->casesensitive),
-                       fl_get_button(dialog_->matchword),
-                       next);
+       } else if (obj == dialog_->replace || obj == dialog_->replaceall) {
+               bool const all = (obj == dialog_->replaceall);
+       
+               controller().replace(fl_get_input(dialog_->input_search),
+                                    fl_get_input(dialog_->input_replace),
+                                    fl_get_button(dialog_->casesensitive),
+                                    fl_get_button(dialog_->matchword),
+                                    all);
+       }
    
-   if (!found)
-     setMinibuffer(lv_, _("String not found!"));
-}
-
-
-void FormSearch::Replace(bool const all)
-{
-   int replace_count = LyXReplace(lv_->view(),
-                                 fl_get_input(dialog_->input_search),
-                                 fl_get_input(dialog_->input_replace),
-                                 fl_get_button(dialog_->casesensitive),
-                                 fl_get_button(dialog_->matchword), 
-                                 true, 
-                                 all);
-                                 
-   if (replace_count == 0) {
-      setMinibuffer(lv_, _("String not found!"));
-   } else {
-      if (replace_count == 1) {
-        setMinibuffer(lv_, _("String has been replaced."));
-      } else {
-        string str = tostr(replace_count);
-        str += _(" strings have been replaced.");
-        setMinibuffer(lv_, str.c_str());
-      }
-   }
+       return ButtonPolicy::SMI_VALID;
 }
-
-
index cf1af9fe3be402796a5d8cadb34f241cd3dafc27..1999ed6dad7b3ec66226636cd552be0b09ab6368 100644 (file)
@@ -9,59 +9,35 @@
 #ifndef FORMSEARCH_H
 #define FORMSEARCH_H
 
-#include <boost/smart_ptr.hpp>
-
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-#include "FormBaseDeprecated.h"
+#include "FormBase.h"
 
+class ControlSearch;
 struct FD_form_search;
 
 /** This class provides an XForms implementation of the FormSearch Dialog.
  */
-class FormSearch : public FormBaseBD {
+class FormSearch : public FormCB<ControlSearch, FormDB<FD_form_search> > {
 public:
        ///
-       FormSearch(LyXView *, Dialogs *);
+       FormSearch(ControlSearch &);
    
 private:
-       /// Pointer to the actual instantiation of the ButtonController.
-       virtual xformsBC & bc();
-
-       /// Filter the inputs
-       virtual bool input(FL_OBJECT *, long);
-   
-       /// Build the popup
+       /// not needed.
+       virtual void apply() {}
+       /// Build the dialog
        virtual void build();
+       /// not needed.
+       virtual void update() {}
 
-       /// 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;
+       /// Filter the inputs
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
    
-       /// Typedefinitions from the fdesign produced Header file
+       /// Fdesign generated method
        FD_form_search  * build_search();
-   
-       /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_search> dialog_;
-       /// The ButtonController
-       ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
 };
 
-
-inline
-xformsBC & FormSearch::bc()
-{
-       return bc_;
-}
-#endif
+#endif // FORMSEARCH_H
index fa28b3bc9de327b120d740c489beb6c1ea1f107b..00bd8ba0ab58fb91da0d4c38c9d7d6a945eaa28f 100644 (file)
@@ -35,7 +35,7 @@ FD_form_search * FormSearch::build_search()
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
     fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
     fl_set_object_resize(obj, FL_RESIZE_X);
-    fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
+    fl_set_object_callback(obj, C_FormBaseInputCB, 0);
   {
     char const * const dummy = N_("Replace with|#W");
     fdui->input_replace = obj = fl_add_input(FL_NORMAL_INPUT, 110, 40, 180, 30, idex(_(dummy)));
@@ -44,7 +44,7 @@ FD_form_search * FormSearch::build_search()
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
     fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
     fl_set_object_resize(obj, FL_RESIZE_X);
-    fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
+    fl_set_object_callback(obj, C_FormBaseInputCB, 0);
   {
     char const * const dummy = N_(" >|#F^s");
     fdui->findnext = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 80, 90, 30, idex(_(dummy)));
@@ -52,7 +52,7 @@ FD_form_search * FormSearch::build_search()
   }
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
-    fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
+    fl_set_object_callback(obj, C_FormBaseInputCB, 0);
   {
     char const * const dummy = N_(" <|#B^r");
     fdui->findprev = obj = fl_add_button(FL_NORMAL_BUTTON, 110, 80, 90, 30, idex(_(dummy)));
@@ -60,7 +60,7 @@ FD_form_search * FormSearch::build_search()
   }
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
-    fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
+    fl_set_object_callback(obj, C_FormBaseInputCB, 0);
   {
     char const * const dummy = N_("Replace|#R#r");
     fdui->replace = obj = fl_add_button(FL_NORMAL_BUTTON, 110, 120, 90, 30, idex(_(dummy)));
@@ -68,7 +68,7 @@ FD_form_search * FormSearch::build_search()
   }
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
-    fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
+    fl_set_object_callback(obj, C_FormBaseInputCB, 0);
   {
     char const * const dummy = N_("Close|^[");
     fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 350, 120, 80, 30, idex(_(dummy)));
@@ -76,21 +76,21 @@ FD_form_search * FormSearch::build_search()
   }
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
-    fl_set_object_callback(obj, C_FormBaseDeprecatedCancelCB, 0);
+    fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
   {
     char const * const dummy = N_("Case sensitive|#s#S");
     fdui->casesensitive = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 300, 20, 150, 30, idex(_(dummy)));
     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
   }
     fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
-    fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
+    fl_set_object_callback(obj, C_FormBaseInputCB, 0);
   {
     char const * const dummy = N_("Match word|#M#m");
     fdui->matchword = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 300, 50, 150, 30, idex(_(dummy)));
     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
   }
     fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
-    fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
+    fl_set_object_callback(obj, C_FormBaseInputCB, 0);
   {
     char const * const dummy = N_("Replace All|#A#a");
     fdui->replaceall = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 120, 90, 30, idex(_(dummy)));
@@ -98,7 +98,7 @@ FD_form_search * FormSearch::build_search()
   }
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
-    fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
+    fl_set_object_callback(obj, C_FormBaseInputCB, 0);
   fl_end_form();
 
   fdui->form->fdui = fdui;
index c9ac9ecf8b62139402608d27b2a76de2579888b6..414700558344f2c6b19da2845d0f8c2b8d210e27 100644 (file)
@@ -5,8 +5,8 @@
 #define FD_form_search_h_
 
 /** Callbacks, globals and object handlers **/
-extern  "C" void C_FormBaseDeprecatedInputCB(FL_OBJECT *, long);
-extern  "C" void C_FormBaseDeprecatedCancelCB(FL_OBJECT *, long);
+extern  "C" void C_FormBaseInputCB(FL_OBJECT *, long);
+extern  "C" void C_FormBaseCancelCB(FL_OBJECT *, long);
 
 
 /**** Forms and Objects ****/
index bfec4e870d6731224c28e937432fd1859af39da0..bd9196ce631bf8da8f2c5a88f955c710a7f0a7f6 100644 (file)
@@ -63,7 +63,7 @@ shortcut:
 resize: FL_RESIZE_X
 gravity: FL_NorthWest FL_NorthEast
 name: input_search
-callback: C_FormBaseDeprecatedInputCB
+callback: C_FormBaseInputCB
 argument: 0
 
 --------------------
@@ -81,7 +81,7 @@ shortcut:
 resize: FL_RESIZE_X
 gravity: FL_NorthWest FL_NorthEast
 name: input_replace
-callback: C_FormBaseDeprecatedInputCB
+callback: C_FormBaseInputCB
 argument: 0
 
 --------------------
@@ -99,7 +99,7 @@ shortcut:
 resize: FL_RESIZE_NONE
 gravity: FL_SouthEast FL_SouthEast
 name: findnext
-callback: C_FormBaseDeprecatedInputCB
+callback: C_FormBaseInputCB
 argument: 0
 
 --------------------
@@ -117,7 +117,7 @@ shortcut:
 resize: FL_RESIZE_NONE
 gravity: FL_SouthEast FL_SouthEast
 name: findprev
-callback: C_FormBaseDeprecatedInputCB
+callback: C_FormBaseInputCB
 argument: 0
 
 --------------------
@@ -135,7 +135,7 @@ shortcut:
 resize: FL_RESIZE_NONE
 gravity: FL_SouthEast FL_SouthEast
 name: replace
-callback: C_FormBaseDeprecatedInputCB
+callback: C_FormBaseInputCB
 argument: 0
 
 --------------------
@@ -153,7 +153,7 @@ shortcut:
 resize: FL_RESIZE_NONE
 gravity: FL_SouthEast FL_SouthEast
 name: button_cancel
-callback: C_FormBaseDeprecatedCancelCB
+callback: C_FormBaseCancelCB
 argument: 0
 
 --------------------
@@ -171,7 +171,7 @@ shortcut:
 resize: FL_RESIZE_NONE
 gravity: FL_NorthEast FL_NorthEast
 name: casesensitive
-callback: C_FormBaseDeprecatedInputCB
+callback: C_FormBaseInputCB
 argument: 0
 
 --------------------
@@ -189,7 +189,7 @@ shortcut:
 resize: FL_RESIZE_NONE
 gravity: FL_NorthEast FL_NorthEast
 name: matchword
-callback: C_FormBaseDeprecatedInputCB
+callback: C_FormBaseInputCB
 argument: 0
 
 --------------------
@@ -207,7 +207,7 @@ shortcut:
 resize: FL_RESIZE_NONE
 gravity: FL_SouthEast FL_SouthEast
 name: replaceall
-callback: C_FormBaseDeprecatedInputCB
+callback: C_FormBaseInputCB
 argument: 0
 
 ==============================