PRCYCoin  2.0.0.7rc1
P2P Digital Currency
guiinterfaceutil.h
Go to the documentation of this file.
1 // Copyright (c) 2020 The PIVX developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef GUIINTERFACEUTIL_H
6 #define GUIINTERFACEUTIL_H
7 
8 inline static bool UIError(const std::string &str)
9 {
11  return false;
12 }
13 
14 inline static bool UIWarning(const std::string &str)
15 {
17  return true;
18 }
19 
20 inline static std::string AmountErrMsg(const char * const optname, const std::string& strValue)
21 {
22  return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);
23 }
24 
25 #endif //GUIINTERFACEUTIL_H
uiInterface
CClientUIInterface uiInterface
Definition: init.cpp:101
_
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result.
Definition: guiinterface.h:119
CClientUIInterface::ThreadSafeMessageBox
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: guiinterface.h:80
CClientUIInterface::MSG_WARNING
@ MSG_WARNING
Definition: guiinterface.h:75
strprintf
#define strprintf
Definition: tinyformat.h:1056
CClientUIInterface::MSG_ERROR
@ MSG_ERROR
Definition: guiinterface.h:76