[tests] Add -blocknotify functional test
[bitcoinplatinum.git] / src / ui_interface.cpp
blob74a13e0e052bcb23a87d7a56b75a058e13ce22c9
1 // Copyright (c) 2010-2016 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #include "ui_interface.h"
6 #include "util.h"
8 CClientUIInterface uiInterface;
10 bool InitError(const std::string& str)
12 uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_ERROR);
13 return false;
16 void InitWarning(const std::string& str)
18 uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_WARNING);
21 std::string AmountHighWarn(const std::string& optname)
23 return strprintf(_("%s is set very high!"), optname);
26 std::string AmountErrMsg(const char* const optname, const std::string& strValue)
28 return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);