Raven Core  3.0.0
P2P Digital Currency
ui_interface.cpp
Go to the documentation of this file.
1 // Copyright (c) 2010-2016 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #include "ui_interface.h"
7 #include "util.h"
8 
10 
11 bool InitError(const std::string& str)
12 {
14  return false;
15 }
16 
17 void InitWarning(const std::string& str)
18 {
20 }
21 
22 std::string AmountHighWarn(const std::string& optname)
23 {
24  return strprintf(_("%s is set very high!"), optname);
25 }
26 
27 std::string AmountErrMsg(const char* const optname, const std::string& strValue)
28 {
29  return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);
30 }
#define strprintf
Definition: tinyformat.h:1054
Signals for UI communication.
Definition: ui_interface.h:28
std::string AmountHighWarn(const std::string &optname)
bool InitError(const std::string &str)
Show error message.
boost::signals2::signal< bool(const std::string &message, const std::string &caption, unsigned int style), boost::signals2::last_value< bool > > ThreadSafeMessageBox
Show message box.
Definition: ui_interface.h:76
void InitWarning(const std::string &str)
Show warning message.
CClientUIInterface uiInterface
Definition: ui_interface.cpp:9
std::string AmountErrMsg(const char *const optname, const std::string &strValue)
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result...
Definition: util.h:66