Update License in File Headers
[novacoin.git] / src / ui_interface.h
1 // Copyright (c) 2010 Satoshi Nakamoto
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 #ifndef BITCOIN_UI_INTERFACE_H
5 #define BITCOIN_UI_INTERFACE_H
6
7 #include <string>
8 #include "util.h" // for int64
9
10 #define wxYES                   0x00000002
11 #define wxOK                    0x00000004
12 #define wxNO                    0x00000008
13 #define wxYES_NO                (wxYES|wxNO)
14 #define wxCANCEL                0x00000010
15 #define wxAPPLY                 0x00000020
16 #define wxCLOSE                 0x00000040
17 #define wxOK_DEFAULT            0x00000000
18 #define wxYES_DEFAULT           0x00000000
19 #define wxNO_DEFAULT            0x00000080
20 #define wxCANCEL_DEFAULT        0x80000000
21 #define wxICON_EXCLAMATION      0x00000100
22 #define wxICON_HAND             0x00000200
23 #define wxICON_WARNING          wxICON_EXCLAMATION
24 #define wxICON_ERROR            wxICON_HAND
25 #define wxICON_QUESTION         0x00000400
26 #define wxICON_INFORMATION      0x00000800
27 #define wxICON_STOP             wxICON_HAND
28 #define wxICON_ASTERISK         wxICON_INFORMATION
29 #define wxICON_MASK             (0x00000100|0x00000200|0x00000400|0x00000800)
30 #define wxFORWARD               0x00001000
31 #define wxBACKWARD              0x00002000
32 #define wxRESET                 0x00004000
33 #define wxHELP                  0x00008000
34 #define wxMORE                  0x00010000
35 #define wxSETUP                 0x00020000
36 // Force blocking, modal message box dialog (not just notification)
37 #define wxMODAL                 0x00040000
38
39 /* These UI communication functions are implemented in bitcoin.cpp (for ui) and noui.cpp (no ui) */
40
41 extern int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style=wxOK);
42 extern bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption);
43 extern void ThreadSafeHandleURI(const std::string& strURI);
44 extern void MainFrameRepaint();
45 extern void AddressBookRepaint();
46 extern void QueueShutdown();
47 extern void InitMessage(const std::string &message);
48 extern std::string _(const char* psz);
49
50 #endif