-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathguiinterfaceutil.h
More file actions
26 lines (21 loc) · 821 Bytes
/
guiinterfaceutil.h
File metadata and controls
26 lines (21 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2020 The PIVX developers
// Copyright (c) 2020 The CLEARCOIN developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef GUIINTERFACEUTIL_H
#define GUIINTERFACEUTIL_H
inline static bool UIError(const std::string &str)
{
uiInterface.ThreadSafeMessageBox(str, "Error", CClientUIInterface::MSG_ERROR);
return false;
}
inline static bool UIWarning(const std::string &str)
{
uiInterface.ThreadSafeMessageBox(str, "Warning", CClientUIInterface::MSG_WARNING);
return true;
}
inline static std::string AmountErrMsg(const char * const optname, const std::string& strValue)
{
return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);
}
#endif //GUIINTERFACEUTIL_H