4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
15 #include "support/lstrings.h"
21 /// show an alert message
22 void alert(string const & title, string const & s1 = string(),
23 string const & s2 = string());
25 /// show an alert message and strerror(errno)
26 void err_alert(string const & s1, string const & s2 = string());
29 bool askQuestion(string const & s1, string const & s2 = string(),
30 string const & s3 = string(), bool default_value = true);
32 /// Returns 1 for yes, 2 for no, 3 for cancel.
33 int askConfirmation(string const & s1, string const & s2 = string(),
34 string const & s3 = string(), int default_value = 1);
37 std::pair<bool, string> const
38 askForText(string const & msg,
39 string const & dflt = string());