*
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-#include "xformsBC.h"
-#include "ControlCommand.h"
#include "FormText.h"
+#include "ControlCommand.h"
#include "forms/form_text.h"
+
+#include "xformsBC.h"
#include "forms_gettext.h"
+#include "controllers/ButtonController.h"
+
#include "support/lstrings.h"
-#include FORMS_H_LOCATION
+#include "lyx_forms.h"
+
+using std::string;
+
+namespace lyx {
+
+using support::trim;
+
+namespace frontend {
typedef FormController<ControlCommand, FormView<FD_text> > base_class;
fl_set_button_shortcut(dialog_->input_text, scex(label_).c_str(), 1);
// Manage the ok, apply, restore and cancel/close buttons
- bc().setOK(dialog_->button_ok);
- bc().setApply(dialog_->button_apply);
- bc().setCancel(dialog_->button_close);
- bc().setRestore(dialog_->button_restore);
+ bcview().setOK(dialog_->button_ok);
+ bcview().setApply(dialog_->button_apply);
+ bcview().setCancel(dialog_->button_close);
+ bcview().setRestore(dialog_->button_restore);
- bc().addReadOnly(dialog_->input_text);
+ bcview().addReadOnly(dialog_->input_text);
}
{
controller().params().setContents(fl_get_input(dialog_->input_text));
}
+
+} // namespace frontend
+} // namespace lyx