aboutsummaryrefslogtreecommitdiff
path: root/src/ui_interface.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2016-08-09 05:45:50 +0000
committerLuke Dashjr <[email protected]>2016-08-09 05:45:50 +0000
commitdf634908ba758232413c50e8f1f7a80d546d777b (patch)
tree92cccae378b192f5f70986d2167209cbfd24ae08 /src/ui_interface.cpp
parentBugfix: Only use git for build info if the repository is actually the right one (diff)
parentqt: periodic translations update (diff)
downloaddiscoin-df634908ba758232413c50e8f1f7a80d546d777b.tar.xz
discoin-df634908ba758232413c50e8f1f7a80d546d777b.zip
Merge tag 'branch-0.13' into bugfix_gitdir
Diffstat (limited to 'src/ui_interface.cpp')
-rw-r--r--src/ui_interface.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ui_interface.cpp b/src/ui_interface.cpp
new file mode 100644
index 000000000..c778e40a9
--- /dev/null
+++ b/src/ui_interface.cpp
@@ -0,0 +1,24 @@
+// Copyright (c) 2010-2016 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#include "ui_interface.h"
+#include "util.h"
+
+CClientUIInterface uiInterface;
+
+bool InitError(const std::string& str)
+{
+ uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_ERROR);
+ return false;
+}
+
+void InitWarning(const std::string& str)
+{
+ uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_WARNING);
+}
+
+std::string AmountErrMsg(const char* const optname, const std::string& strValue)
+{
+ return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);
+}