Projects : bitcoin : bitcoin_tx_fee_cleanup
1 | // Copyright (c) 2010 Satoshi Nakamoto |
2 | // Copyright (c) 2011 The Bitcoin developers |
3 | // Distributed under the MIT/X11 software license, see the accompanying |
4 | // file license.txt or http://www.opensource.org/licenses/mit-license.php. |
5 | #ifndef BITCOIN_NOUI_H |
6 | #define BITCOIN_NOUI_H |
7 | |
8 | #include <string> |
9 | #include <boost/function.hpp> |
10 | #include "wallet.h" |
11 | |
12 | typedef void wxWindow; |
13 | #define wxYES 0x00000002 |
14 | #define wxOK 0x00000004 |
15 | #define wxNO 0x00000008 |
16 | #define wxYES_NO (wxYES|wxNO) |
17 | #define wxCANCEL 0x00000010 |
18 | #define wxAPPLY 0x00000020 |
19 | #define wxCLOSE 0x00000040 |
20 | #define wxOK_DEFAULT 0x00000000 |
21 | #define wxYES_DEFAULT 0x00000000 |
22 | #define wxNO_DEFAULT 0x00000080 |
23 | #define wxCANCEL_DEFAULT 0x80000000 |
24 | #define wxICON_EXCLAMATION 0x00000100 |
25 | #define wxICON_HAND 0x00000200 |
26 | #define wxICON_WARNING wxICON_EXCLAMATION |
27 | #define wxICON_ERROR wxICON_HAND |
28 | #define wxICON_QUESTION 0x00000400 |
29 | #define wxICON_INFORMATION 0x00000800 |
30 | #define wxICON_STOP wxICON_HAND |
31 | #define wxICON_ASTERISK wxICON_INFORMATION |
32 | #define wxICON_MASK (0x00000100|0x00000200|0x00000400|0x00000800) |
33 | #define wxFORWARD 0x00001000 |
34 | #define wxBACKWARD 0x00002000 |
35 | #define wxRESET 0x00004000 |
36 | #define wxHELP 0x00008000 |
37 | #define wxMORE 0x00010000 |
38 | #define wxSETUP 0x00020000 |
39 | |
40 | inline int MyMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1) |
41 | { |
42 | printf("%s: %s\n", caption.c_str(), message.c_str()); |
43 | fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str()); |
44 | return 4; |
45 | } |
46 | #define wxMessageBox MyMessageBox |
47 | |
48 | inline int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1) |
49 | { |
50 | return MyMessageBox(message, caption, style, parent, x, y); |
51 | } |
52 | |
53 | inline bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent) |
54 | { |
55 | return true; |
56 | } |
57 | |
58 | inline void CalledSetStatusBar(const std::string& strText, int nField) |
59 | { |
60 | } |
61 | |
62 | inline void UIThreadCall(boost::function0<void> fn) |
63 | { |
64 | } |
65 | |
66 | inline void MainFrameRepaint() |
67 | { |
68 | } |
69 | |
70 | inline void InitMessage(const std::string &message) |
71 | { |
72 | } |
73 | |
74 | #endif |