Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

ui_interface.cpp
Go to the documentation of this file.
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.
4 
5 #include <ui_interface.h>
6 #include <util.h>
7 
9 
10 bool InitError(const std::string& str)
11 {
13  return false;
14 }
15 
16 void InitWarning(const std::string& str)
17 {
19 }
20 
21 std::string AmountHighWarn(const std::string& optname)
22 {
23  return strprintf(_("%s is set very high!"), optname);
24 }
25 
26 std::string AmountErrMsg(const char* const optname, const std::string& strValue)
27 {
28  return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);
29 }
#define strprintf
Definition: tinyformat.h:1066
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:8
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:92
Released under the MIT license