-
+ 3B747D9DBFAAE92F570C5AFAF6FEA195A0335F56B45FFEA1A9FEC23282958579D7159BACFFD49687EAE0B833DE1AC142444B46DFEB0216A0EB0F15783F9999CA
bitcoin/src/noui.h
(0 . 0)(1 . 105)
18275 // /****************************\
18276 // * EXPERIMENTAL BRANCH. *
18277 // * FOR LABORATORY USE ONLY. *
18278 // ********************************
18279 // ************
18280 // **************
18281 // ****************
18282 // **** **** ****
18283 // *** *** ***
18284 // *** *** ***
18285 // *** * * **
18286 // ******** ********
18287 // ******* ******
18288 // *** **
18289 // * ******* **
18290 // ** * * * * *
18291 // ** * * ***
18292 // **** * * * * ****
18293 // **** *** * * ** ***
18294 // **** ********* ******
18295 // ******* ***** *******
18296 // ********* ****** **
18297 // ** ****** ******
18298 // ** ******* **
18299 // ** ******* ***
18300 // **** ******** ************
18301 // ************ ************
18302 // ******** *******
18303 // ****** ****
18304 // *** ***
18305 // ********************************
18306 // Copyright (c) 2010 Satoshi Nakamoto
18307 // Copyright (c) 2011 The Bitcoin developers
18308 // Distributed under the MIT/X11 software license, see the accompanying
18309 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
18310 #ifndef BITCOIN_NOUI_H
18311 #define BITCOIN_NOUI_H
18312
18313 #include <string>
18314 #include <boost/function.hpp>
18315 #include "wallet.h"
18316
18317 typedef void wxWindow;
18318 #define wxYES 0x00000002
18319 #define wxOK 0x00000004
18320 #define wxNO 0x00000008
18321 #define wxYES_NO (wxYES|wxNO)
18322 #define wxCANCEL 0x00000010
18323 #define wxAPPLY 0x00000020
18324 #define wxCLOSE 0x00000040
18325 #define wxOK_DEFAULT 0x00000000
18326 #define wxYES_DEFAULT 0x00000000
18327 #define wxNO_DEFAULT 0x00000080
18328 #define wxCANCEL_DEFAULT 0x80000000
18329 #define wxICON_EXCLAMATION 0x00000100
18330 #define wxICON_HAND 0x00000200
18331 #define wxICON_WARNING wxICON_EXCLAMATION
18332 #define wxICON_ERROR wxICON_HAND
18333 #define wxICON_QUESTION 0x00000400
18334 #define wxICON_INFORMATION 0x00000800
18335 #define wxICON_STOP wxICON_HAND
18336 #define wxICON_ASTERISK wxICON_INFORMATION
18337 #define wxICON_MASK (0x00000100|0x00000200|0x00000400|0x00000800)
18338 #define wxFORWARD 0x00001000
18339 #define wxBACKWARD 0x00002000
18340 #define wxRESET 0x00004000
18341 #define wxHELP 0x00008000
18342 #define wxMORE 0x00010000
18343 #define wxSETUP 0x00020000
18344
18345 inline int MyMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1)
18346 {
18347 printf("%s: %s\n", caption.c_str(), message.c_str());
18348 fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str());
18349 return 4;
18350 }
18351 #define wxMessageBox MyMessageBox
18352
18353 inline int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1)
18354 {
18355 return MyMessageBox(message, caption, style, parent, x, y);
18356 }
18357
18358 inline bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent)
18359 {
18360 return true;
18361 }
18362
18363 inline void CalledSetStatusBar(const std::string& strText, int nField)
18364 {
18365 }
18366
18367 inline void UIThreadCall(boost::function0<void> fn)
18368 {
18369 }
18370
18371 inline void MainFrameRepaint()
18372 {
18373 }
18374
18375 inline void InitMessage(const std::string &message)
18376 {
18377 }
18378
18379 #endif