]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormThesaurus.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / FormThesaurus.C
index d94196dcf2a25184809c52bf6f0db2afff68fa76..245ea49207123910ebfeed1ecb4a15a2a8c21121 100644 (file)
@@ -5,38 +5,43 @@
  *
  * \author Edwin Leuven
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include "ControlThesaurus.h"
 #include "FormThesaurus.h"
+#include "ControlThesaurus.h"
 #include "forms/form_thesaurus.h"
-#include "xformsBC.h"
+
 #include "xforms_helpers.h"
-#include "debug.h"
+#include "xformsBC.h"
+
 #include "support/lstrings.h"
-#include FORMS_H_LOCATION
-#include <cctype>
+
+#include "lyx_forms.h"
 
 #ifndef CXX_GLOBAL_CSTD
-using std::isupper;
 using std::islower;
+using std::isupper;
 #endif
 
 using std::vector;
+using std::string;
 
+namespace lyx {
 
-typedef FormCB<ControlThesaurus, FormDB<FD_thesaurus> > base_class;
+using support::lowercase;
+using support::trim;
+using support::uppercase;
 
+namespace frontend {
 
-FormThesaurus::FormThesaurus()
-       : base_class(_("Thesaurus"), false),
+typedef FormController<ControlThesaurus, FormView<FD_thesaurus> > base_class;
+
+
+FormThesaurus::FormThesaurus(Dialog & parent)
+       : base_class(parent, _("Thesaurus"), false),
          clickline_(-1)
 {
 }
@@ -53,8 +58,8 @@ void FormThesaurus::build()
        setPrehandler(dialog_->input_replace);
 
        // Manage the ok, apply and cancel/close buttons
-       bc().setCancel(dialog_->button_close);
-       bc().addReadOnly(dialog_->input_replace);
+       bcview().setCancel(dialog_->button_close);
+       bcview().addReadOnly(dialog_->input_replace);
 
        fl_set_input_return(dialog_->input_entry, FL_RETURN_END_CHANGED);
 }
@@ -188,3 +193,6 @@ ButtonPolicy::SMInput FormThesaurus::input(FL_OBJECT * obj, long)
 
        return ButtonPolicy::SMI_VALID;
 }
+
+} // namespace frontend
+} // namespace lyx