bitcoind now compiles without wxWidgets or wxBase
[novacoin.git] / noui.h
1 // Copyright (c) 2010 Satoshi Nakamoto\r
2 // Distributed under the MIT/X11 software license, see the accompanying\r
3 // file license.txt or http://www.opensource.org/licenses/mit-license.php.\r
4 \r
5 \r
6 inline int MyMessageBox(const string& message, const string& caption="Message", int style=4, void* parent=NULL, int x=-1, int y=-1)\r
7 {\r
8     printf("%s: %s\n", caption.c_str(), message.c_str());\r
9     fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str());\r
10     return 4;\r
11 }\r
12 #define wxMessageBox  MyMessageBox\r
13 \r
14 inline int ThreadSafeMessageBox(const string& message, const string& caption, int style, void* parent, int x, int y)\r
15 {\r
16     return MyMessageBox(message, caption, style, parent, x, y);\r
17 }\r
18 \r
19 inline bool ThreadSafeAskFee(int64 nFeeRequired, const string& strCaption, void* parent)\r
20 {\r
21     return true;\r
22 }\r
23 \r
24 inline void CalledSetStatusBar(const string& strText, int nField)\r
25 {\r
26 }\r
27 \r
28 inline void UIThreadCall(boost::function0<void> fn)\r
29 {\r
30 }\r
31 \r
32 inline void MainFrameRepaint()\r
33 {\r
34 }\r