]> git.lyx.org Git - lyx.git/blob - src/frontends/Alert.h
fix typo that put too many include paths for most people
[lyx.git] / src / frontends / Alert.h
1 // -*- C++ -*-
2 /**
3  * \file Alert.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  */
9
10 #ifndef LYX_ALERT_H
11 #define LYX_ALERT_H
12
13 #include "support/lstrings.h"
14
15 #include <algorithm>
16
17 namespace Alert {
18
19 /// show an alert message
20 void alert(string const & s1, string const & s2 = string(),
21            string const & s3 = string());
22
23 /// show an alert message and strerror(errno)
24 void err_alert(string const & s1, string const & s2 = string());
25
26 /// ask a question
27 bool askQuestion(string const & s1, string const & s2 = string(),
28                  string const & s3 = string(), bool default_value = true);
29
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);
33
34 /// Asks for a text
35 std::pair<bool, string> const
36 askForText(string const & msg,
37            string const & dflt = string());
38
39 }
40
41 #endif