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