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