mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
[ui] Move InitError, InitWarning, AmountErrMsg
This commit is contained in:
parent
30c2dd8d05
commit
fabbf80f2f
6 changed files with 56 additions and 58 deletions
24
src/ui_interface.cpp
Normal file
24
src/ui_interface.cpp
Normal file
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue