]> git.lyx.org Git - lyx.git/blob - src/frontends/Alert.h
add shortcuts to filedialogs directory buttons; small gnome patch from Michael
[lyx.git] / src / frontends / Alert.h
1 /**
2  * \file Alert.h
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #include "support/lstrings.h"
10 #include <algorithm>
11  
12 namespace Alert {
13         /// show an alert message
14         void alert(string const & s1, string const & s2 = string(), 
15                 string const & s3 = string());
16
17         /// show an alert message and strerror(errno)
18         void err_alert(string const & s1, string const & s2 = string());
19
20         /// ask a question 
21         bool askQuestion(string const & s1, string const & s2 = string(),
22                  string const & s3 = string(), bool default_value = true);
23
24         /// Returns 1 for yes, 2 for no, 3 for cancel.
25         int askConfirmation(string const & s1, string const & s2 = string(), 
26                 string const & s3 = string(), int default_value = 1);
27  
28         /// Asks for a text
29         std::pair<bool, string> const askForText(string const & msg, 
30                 string const & dflt = string());
31 }