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