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"
22 * Prompt for a question. Returns 0-2 for the chosen button.
23 * Set default_button to a reasonable value. b1-b3 should have
24 * accelerators marked with an '&'. title should be a short summary.
25 * Strings should be gettextised. Please think about the poor user.
27 * Remember to use boost::format. If you make any of these buttons
28 * "Yes" or "No", I will personally come around to your house and
29 * slap you with fish, and not in an enjoyable way either.
31 int prompt(string const & title, string const & question,
33 string const & b1, string const & b2, string const & b3 = string());
36 * Display a warning to the user. Title should be a short (general) summary.
37 * Only use this if the user cannot perform some remedial action.
39 void warning(string const & title, string const & message);
42 * Display a warning to the user. Title should be a short (general) summary.
43 * Only use this if the user cannot perform some remedial action.
45 void error(string const & title, string const & message);
48 * Informational message. Use very very sparingly. That is, you must
49 * apply to me, in triplicate, under the sea, breathing in petrol
50 * and reciting the Nicene Creed, whilst running uphill and also
53 void information(string const & title, string const & message);
55 /// Asks for a text. DO NOT USE !!
56 std::pair<bool, string> const
57 askForText(string const & msg,
58 string const & dflt = string());