genesis 1
genesis 2
genesis 3
genesis 4 #ifndef BITCOIN_EXTERNUI_H
genesis 5 #define BITCOIN_EXTERNUI_H
genesis 6
genesis 7 #include <string>
genesis 8 #include <boost/function/function0.hpp>
genesis 9 #include "wallet.h"
genesis 10
genesis 11 typedef void wxWindow;
genesis 12 #define wxYES 0x00000002
genesis 13 #define wxOK 0x00000004
genesis 14 #define wxNO 0x00000008
genesis 15 #define wxYES_NO (wxYES|wxNO)
genesis 16 #define wxCANCEL 0x00000010
genesis 17 #define wxAPPLY 0x00000020
genesis 18 #define wxCLOSE 0x00000040
genesis 19 #define wxOK_DEFAULT 0x00000000
genesis 20 #define wxYES_DEFAULT 0x00000000
genesis 21 #define wxNO_DEFAULT 0x00000080
genesis 22 #define wxCANCEL_DEFAULT 0x80000000
genesis 23 #define wxICON_EXCLAMATION 0x00000100
genesis 24 #define wxICON_HAND 0x00000200
genesis 25 #define wxICON_WARNING wxICON_EXCLAMATION
genesis 26 #define wxICON_ERROR wxICON_HAND
genesis 27 #define wxICON_QUESTION 0x00000400
genesis 28 #define wxICON_INFORMATION 0x00000800
genesis 29 #define wxICON_STOP wxICON_HAND
genesis 30 #define wxICON_ASTERISK wxICON_INFORMATION
genesis 31 #define wxICON_MASK (0x00000100|0x00000200|0x00000400|0x00000800)
genesis 32 #define wxFORWARD 0x00001000
genesis 33 #define wxBACKWARD 0x00002000
genesis 34 #define wxRESET 0x00004000
genesis 35 #define wxHELP 0x00008000
genesis 36 #define wxMORE 0x00010000
genesis 37 #define wxSETUP 0x00020000
genesis 38
genesis 39 extern int MyMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
genesis 40 #define wxMessageBox MyMessageBox
genesis 41 extern int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
genesis 42 extern bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent);
genesis 43 extern void CalledSetStatusBar(const std::string& strText, int nField);
genesis 44 extern void UIThreadCall(boost::function0<void> fn);
genesis 45 extern void MainFrameRepaint();
genesis 46 extern void InitMessage(const std::string &message);
genesis 47 extern std::string _(const char* psz);
genesis 48
genesis 49 #endif