[depends] ccache 3.3.1
[bitcoinplatinum.git] / src / ui_interface.cpp
blobc778e40a9053a9237eec651458a708a3cb450e8b
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 AmountErrMsg(const char* const optname, const std::string& strValue)
23 return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);