4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
7 * \author John Levon <moz@compsoc.man.ac.uk>
13 #include "support/lstrings.h"
19 /// show an alert message
20 void alert(string const & s1, string const & s2 = string(),
21 string const & s3 = string());
23 /// show an alert message and strerror(errno)
24 void err_alert(string const & s1, string const & s2 = string());
27 bool askQuestion(string const & s1, string const & s2 = string(),
28 string const & s3 = string(), bool default_value = true);
30 /// Returns 1 for yes, 2 for no, 3 for cancel.
31 int askConfirmation(string const & s1, string const & s2 = string(),
32 string const & s3 = string(), int default_value = 1);
35 std::pair<bool, string> const
36 askForText(string const & msg,
37 string const & dflt = string());