]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/alert.h
Fix bug #4510: GuiInclude->Edit marks master as changed.
[lyx.git] / src / frontends / alert.h
index a163caf69a08d6af88ff001112267eca58c2515a..b4e123731c0878cfb4d303578fbf20bb1c2a422d 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef LYX_ALERT_H
 #define LYX_ALERT_H
 
-#include "support/lstrings.h"
+#include "support/docstring.h"
 
 
 namespace lyx {
@@ -54,9 +54,12 @@ void error(docstring const & title, docstring const & message);
  */
 void information(docstring const & title, docstring const & message);
 
-/// Asks for a text. DO NOT USE !!
-std::pair<bool, docstring> const
-askForText(docstring const & msg, docstring const & dflt = docstring());
+/**
+ * Asks for a text. Returns true for OK. Obtained message is in response
+ * (even empty string). dflt stands for default message in the dialog.
+ */
+bool askForText(docstring & response, docstring const & msg,
+       docstring const & dflt = docstring());
 
 } // namespace Alert
 } // namespace frontend