]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Alert.h
fix typo that put too many include paths for most people
[lyx.git] / src / frontends / Alert.h
index 0fe2a71417ef9bb3726a0ecc57257c86429d0783..450bc2daacd010d41f662af9af0a462b3956010d 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file Alert.h
  * Copyright 2001 the LyX Team
@@ -6,26 +7,35 @@
  * \author John Levon <moz@compsoc.man.ac.uk>
  */
 
+#ifndef LYX_ALERT_H
+#define LYX_ALERT_H
+
 #include "support/lstrings.h"
+
 #include <algorithm>
+
 namespace Alert {
-       /// show an alert message
-       void alert(string const & s1, string const & s2 = string(), 
-               string const & s3 = string());
 
-       /// show an alert message and strerror(errno)
-       void err_alert(string const & s1, string const & s2 = string());
+/// show an alert message
+void alert(string const & s1, string const & s2 = string(),
+          string const & s3 = string());
+
+/// show an alert message and strerror(errno)
+void err_alert(string const & s1, string const & s2 = string());
 
-       /// ask a question 
-       bool askQuestion(string const & s1, string const & s2 = string(),
+/// ask a question
+bool askQuestion(string const & s1, string const & s2 = string(),
                 string const & s3 = string(), bool default_value = true);
 
-       /// Returns 1 for yes, 2 for no, 3 for cancel.
-       int askConfirmation(string const & s1, string const & s2 = string(), 
-               string const & s3 = string(), int default_value = 1);
-       /// Asks for a text
-       std::pair<bool, string> const askForText(string const & msg, 
-               string const & dflt = string());
+/// Returns 1 for yes, 2 for no, 3 for cancel.
+int askConfirmation(string const & s1, string const & s2 = string(),
+                   string const & s3 = string(), int default_value = 1);
+
+/// Asks for a text
+std::pair<bool, string> const
+askForText(string const & msg,
+          string const & dflt = string());
+
 }
+
+#endif