aboutsummaryrefslogtreecommitdiff
path: root/noui.h
diff options
context:
space:
mode:
authorSatoshi Nakamoto <satoshin@gmx.com>2010-07-26 17:44:51 +0000
committerGavin Andresen <gavinandresen@gmail.com>2010-07-26 17:44:51 +0000
commitb6dc3b517b74ef2baa0e707f837a65b4ff5a6f2e (patch)
tree757fa9f209b9cb6a42c6b6e6df9e58cad074cd03 /noui.h
parentf0c11b1917009f1648eb42f1d17f35196fb7c539 (diff)
downloadbitcoin-b6dc3b517b74ef2baa0e707f837a65b4ff5a6f2e.tar.xz
bitcoind now compiles without wxWidgets or wxBase
Diffstat (limited to 'noui.h')
-rw-r--r--noui.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/noui.h b/noui.h
new file mode 100644
index 0000000000..fe19ea1f1f
--- /dev/null
+++ b/noui.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2010 Satoshi Nakamoto
+// Distributed under the MIT/X11 software license, see the accompanying
+// file license.txt or http://www.opensource.org/licenses/mit-license.php.
+
+
+inline int MyMessageBox(const string& message, const string& caption="Message", int style=4, void* parent=NULL, int x=-1, int y=-1)
+{
+ printf("%s: %s\n", caption.c_str(), message.c_str());
+ fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str());
+ return 4;
+}
+#define wxMessageBox MyMessageBox
+
+inline int ThreadSafeMessageBox(const string& message, const string& caption, int style, void* parent, int x, int y)
+{
+ return MyMessageBox(message, caption, style, parent, x, y);
+}
+
+inline bool ThreadSafeAskFee(int64 nFeeRequired, const string& strCaption, void* parent)
+{
+ return true;
+}
+
+inline void CalledSetStatusBar(const string& strText, int nField)
+{
+}
+
+inline void UIThreadCall(boost::function0<void> fn)
+{
+}
+
+inline void MainFrameRepaint()
+{
+}