2018-01-02 18:12:05 +01:00
|
|
|
// Copyright (c) 2010-2017 The Bitcoin Core developers
|
2016-03-21 18:29:17 +01:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2017-11-10 01:57:53 +01:00
|
|
|
#include <ui_interface.h>
|
|
|
|
#include <util.h>
|
2016-03-21 18:29:17 +01:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2016-01-08 01:14:09 +01:00
|
|
|
std::string AmountHighWarn(const std::string& optname)
|
|
|
|
{
|
|
|
|
return strprintf(_("%s is set very high!"), optname);
|
|
|
|
}
|
|
|
|
|
2016-03-21 18:29:17 +01:00
|
|
|
std::string AmountErrMsg(const char* const optname, const std::string& strValue)
|
|
|
|
{
|
|
|
|
return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);
|
|
|
|
}
|