-
+ A83FD14F7D3FB94E67062C70E789EA554D8DDBA74D397A794498FD1E89C18CC7AD37AA32EF4109E9FD0714BD5F418C83D6D0AF799556735B8CB9C5D5C3163002bitcoin/src/noui.h(0 . 0)(1 . 74)
17066 // Copyright (c) 2010 Satoshi Nakamoto
17067 // Copyright (c) 2011 The Bitcoin developers
17068 // Distributed under the MIT/X11 software license, see the accompanying
17069 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
17070 #ifndef BITCOIN_NOUI_H
17071 #define BITCOIN_NOUI_H
17072
17073 #include <string>
17074 #include <boost/function.hpp>
17075 #include "wallet.h"
17076
17077 typedef void wxWindow;
17078 #define wxYES 0x00000002
17079 #define wxOK 0x00000004
17080 #define wxNO 0x00000008
17081 #define wxYES_NO (wxYES|wxNO)
17082 #define wxCANCEL 0x00000010
17083 #define wxAPPLY 0x00000020
17084 #define wxCLOSE 0x00000040
17085 #define wxOK_DEFAULT 0x00000000
17086 #define wxYES_DEFAULT 0x00000000
17087 #define wxNO_DEFAULT 0x00000080
17088 #define wxCANCEL_DEFAULT 0x80000000
17089 #define wxICON_EXCLAMATION 0x00000100
17090 #define wxICON_HAND 0x00000200
17091 #define wxICON_WARNING wxICON_EXCLAMATION
17092 #define wxICON_ERROR wxICON_HAND
17093 #define wxICON_QUESTION 0x00000400
17094 #define wxICON_INFORMATION 0x00000800
17095 #define wxICON_STOP wxICON_HAND
17096 #define wxICON_ASTERISK wxICON_INFORMATION
17097 #define wxICON_MASK (0x00000100|0x00000200|0x00000400|0x00000800)
17098 #define wxFORWARD 0x00001000
17099 #define wxBACKWARD 0x00002000
17100 #define wxRESET 0x00004000
17101 #define wxHELP 0x00008000
17102 #define wxMORE 0x00010000
17103 #define wxSETUP 0x00020000
17104
17105 inline int MyMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1)
17106 {
17107 printf("%s: %s\n", caption.c_str(), message.c_str());
17108 fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str());
17109 return 4;
17110 }
17111 #define wxMessageBox MyMessageBox
17112
17113 inline int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1)
17114 {
17115 return MyMessageBox(message, caption, style, parent, x, y);
17116 }
17117
17118 inline bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent)
17119 {
17120 return true;
17121 }
17122
17123 inline void CalledSetStatusBar(const std::string& strText, int nField)
17124 {
17125 }
17126
17127 inline void UIThreadCall(boost::function0<void> fn)
17128 {
17129 }
17130
17131 inline void MainFrameRepaint()
17132 {
17133 }
17134
17135 inline void InitMessage(const std::string &message)
17136 {
17137 }
17138
17139 #endif