-
+ 2118EED5CB752A2E6556FED97925061C2B9CF87C558BD328A4ABA36E51D72255D45BA461889587426DB60D2F6405187F9EB387B29666435F984AFD1F277DD8D9bitcoin/src/qtui.h(0 . 0)(1 . 49)
17638 // Copyright (c) 2010 Satoshi Nakamoto
17639 // Distributed under the MIT/X11 software license, see the accompanying
17640 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
17641 #ifndef BITCOIN_EXTERNUI_H
17642 #define BITCOIN_EXTERNUI_H
17643
17644 #include <string>
17645 #include <boost/function/function0.hpp>
17646 #include "wallet.h"
17647
17648 typedef void wxWindow;
17649 #define wxYES 0x00000002
17650 #define wxOK 0x00000004
17651 #define wxNO 0x00000008
17652 #define wxYES_NO (wxYES|wxNO)
17653 #define wxCANCEL 0x00000010
17654 #define wxAPPLY 0x00000020
17655 #define wxCLOSE 0x00000040
17656 #define wxOK_DEFAULT 0x00000000
17657 #define wxYES_DEFAULT 0x00000000
17658 #define wxNO_DEFAULT 0x00000080
17659 #define wxCANCEL_DEFAULT 0x80000000
17660 #define wxICON_EXCLAMATION 0x00000100
17661 #define wxICON_HAND 0x00000200
17662 #define wxICON_WARNING wxICON_EXCLAMATION
17663 #define wxICON_ERROR wxICON_HAND
17664 #define wxICON_QUESTION 0x00000400
17665 #define wxICON_INFORMATION 0x00000800
17666 #define wxICON_STOP wxICON_HAND
17667 #define wxICON_ASTERISK wxICON_INFORMATION
17668 #define wxICON_MASK (0x00000100|0x00000200|0x00000400|0x00000800)
17669 #define wxFORWARD 0x00001000
17670 #define wxBACKWARD 0x00002000
17671 #define wxRESET 0x00004000
17672 #define wxHELP 0x00008000
17673 #define wxMORE 0x00010000
17674 #define wxSETUP 0x00020000
17675
17676 extern int MyMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
17677 #define wxMessageBox MyMessageBox
17678 extern int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
17679 extern bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent);
17680 extern void CalledSetStatusBar(const std::string& strText, int nField);
17681 extern void UIThreadCall(boost::function0<void> fn);
17682 extern void MainFrameRepaint();
17683 extern void InitMessage(const std::string &message);
17684 extern std::string _(const char* psz);
17685
17686 #endif