]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Alert_pimpl.C
Tiny clean-ups.
[lyx.git] / src / frontends / xforms / Alert_pimpl.C
index 8a7f950fb45c39838eae5bc549e6ce57570fb723..02c62f84ecc43dd00d6343a20a3cacc9d681d6c8 100644 (file)
@@ -5,46 +5,49 @@
  *
  * \author John Levon
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-
-#include "Alert.h"
 #include "Alert_pimpl.h"
+
 #include "forms_gettext.h"
-#include "gettext.h"
 #include "xforms_helpers.h"
 
-#include <algorithm>
+#include "debug.h"
+#include "gettext.h"
+
 #include <boost/tuple/tuple.hpp>
-#include FORMS_H_LOCATION
 
-using std::pair;
+#include "lyx_forms.h"
+
+
 using std::make_pair;
-using std::endl;
+using std::pair;
+using std::string;
+
 
 void warning_pimpl(string const &, string const & message)
 {
-       fl_show_messages(message.c_str());
+       fl_show_messages(formatted(message, 300).c_str());
 }
 
 
 void error_pimpl(string const &, string const & message)
 {
-       fl_show_messages(message.c_str());
+       fl_show_messages(formatted(message, 300).c_str());
 }
 
 
 void information_pimpl(string const &, string const & message)
 {
-       fl_show_messages(message.c_str());
+       fl_show_messages(formatted(message, 300).c_str());
 }
 
 
 int prompt_pimpl(string const &, string const & question,
-           int default_button,
+           int default_button, int /*escape_button*/,
           string const & b1, string const & b2, string const & b3)
 {
        string b1label, b1sc;
@@ -56,11 +59,11 @@ int prompt_pimpl(string const &, string const & question,
 
        if (b3.empty()) {
                fl_set_choices_shortcut(b1sc.c_str(), b2sc.c_str(), "");
-               return fl_show_choices(question.c_str(),
+               return fl_show_choices(formatted(question, 300).c_str(),
                        2, b1label.c_str(), b2label.c_str(), "", default_button + 1) - 1;
        } else {
                fl_set_choices_shortcut(b1sc.c_str(), b2sc.c_str(), b3sc.c_str());
-               return fl_show_choices(question.c_str(),
+               return fl_show_choices(formatted(question, 300).c_str(),
                        3, b1label.c_str(), b2label.c_str(), b3label.c_str(),
                        default_button + 1) - 1;
        }