Merge pull request #558 from luke-jr/bugfix_CreateThread_ThreadSocketHandler_errReporting
authorGavin Andresen <gavinandresen@gmail.com>
Wed, 5 Oct 2011 14:27:56 +0000 (07:27 -0700)
committerGavin Andresen <gavinandresen@gmail.com>
Wed, 5 Oct 2011 14:27:56 +0000 (07:27 -0700)
Bugfix: ThreadSocketHandler creation error

195 files changed:
.gitignore
INSTALL [new file with mode: 0644]
README.md
bitcoin-qt.pro [new file with mode: 0644]
contrib/Bitcoin.app/Contents/Info.plist
contrib/BitcoinTemplate.dmg [new file with mode: 0644]
contrib/bitrpc/bitrpc.py [new file with mode: 0644]
contrib/create_osx_dmg.sh [new file with mode: 0755]
contrib/gitian-downloader/linux-download-config [copied from contrib/gitian-downloader/bitcoin-download-config with 100% similarity]
contrib/gitian-downloader/win32-download-config [moved from contrib/gitian-downloader/bitcoin-download-config with 86% similarity]
contrib/miniupnpc/Portfile [new file with mode: 0644]
contrib/wallettools/walletchangepass.py [new file with mode: 0644]
contrib/wallettools/walletunlock.py [new file with mode: 0644]
doc/README
doc/README_windows.txt
doc/assets-attribution.txt [new file with mode: 0644]
doc/build-msw.txt
doc/build-osx.txt
doc/build-unix.txt
doc/readme-qt.rst [new file with mode: 0644]
doc/release-process.txt
scripts/qt/extract_strings_qt.py [new file with mode: 0755]
scripts/qt/img/reload.xcf [new file with mode: 0644]
scripts/qt/make_spinner.py [new file with mode: 0755]
scripts/qt/make_windows_icon.py [new file with mode: 0755]
share/setup.nsi
share/uiproject.fbp [deleted file]
src/bitcoinrpc.cpp [moved from src/rpc.cpp with 93% similarity]
src/bitcoinrpc.h [moved from src/rpc.h with 100% similarity]
src/db.cpp
src/headers.h
src/init.cpp
src/key.h
src/main.cpp
src/main.h
src/makefile.linux-mingw
src/makefile.mingw
src/makefile.osx
src/makefile.unix
src/makefile.vc
src/net.cpp
src/net.h
src/noui.h
src/qt/aboutdialog.cpp [new file with mode: 0644]
src/qt/aboutdialog.h [new file with mode: 0644]
src/qt/addressbookpage.cpp [new file with mode: 0644]
src/qt/addressbookpage.h [new file with mode: 0644]
src/qt/addresstablemodel.cpp [new file with mode: 0644]
src/qt/addresstablemodel.h [new file with mode: 0644]
src/qt/askpassphrasedialog.cpp [new file with mode: 0644]
src/qt/askpassphrasedialog.h [new file with mode: 0644]
src/qt/bitcoin.cpp [new file with mode: 0644]
src/qt/bitcoin.qrc [new file with mode: 0644]
src/qt/bitcoinaddressvalidator.cpp [new file with mode: 0644]
src/qt/bitcoinaddressvalidator.h [new file with mode: 0644]
src/qt/bitcoinamountfield.cpp [new file with mode: 0644]
src/qt/bitcoinamountfield.h [new file with mode: 0644]
src/qt/bitcoingui.cpp [new file with mode: 0644]
src/qt/bitcoingui.h [new file with mode: 0644]
src/qt/bitcoinstrings.cpp [new file with mode: 0644]
src/qt/bitcoinunits.cpp [new file with mode: 0644]
src/qt/bitcoinunits.h [new file with mode: 0644]
src/qt/clientmodel.cpp [new file with mode: 0644]
src/qt/clientmodel.h [new file with mode: 0644]
src/qt/csvmodelwriter.cpp [new file with mode: 0644]
src/qt/csvmodelwriter.h [new file with mode: 0644]
src/qt/editaddressdialog.cpp [new file with mode: 0644]
src/qt/editaddressdialog.h [new file with mode: 0644]
src/qt/forms/aboutdialog.ui [new file with mode: 0644]
src/qt/forms/addressbookpage.ui [new file with mode: 0644]
src/qt/forms/askpassphrasedialog.ui [new file with mode: 0644]
src/qt/forms/editaddressdialog.ui [new file with mode: 0644]
src/qt/forms/overviewpage.ui [new file with mode: 0644]
src/qt/forms/sendcoinsdialog.ui [new file with mode: 0644]
src/qt/forms/sendcoinsentry.ui [new file with mode: 0644]
src/qt/forms/transactiondescdialog.ui [new file with mode: 0644]
src/qt/guiconstants.h [new file with mode: 0644]
src/qt/guiutil.cpp [new file with mode: 0644]
src/qt/guiutil.h [new file with mode: 0644]
src/qt/locale/bitcoin_de.ts [new file with mode: 0644]
src/qt/locale/bitcoin_nl.ts [new file with mode: 0644]
src/qt/locale/bitcoin_ru.ts [new file with mode: 0644]
src/qt/monitoreddatamapper.cpp [new file with mode: 0644]
src/qt/monitoreddatamapper.h [new file with mode: 0644]
src/qt/notificator.cpp [new file with mode: 0644]
src/qt/notificator.h [new file with mode: 0644]
src/qt/optionsdialog.cpp [new file with mode: 0644]
src/qt/optionsdialog.h [new file with mode: 0644]
src/qt/optionsmodel.cpp [new file with mode: 0644]
src/qt/optionsmodel.h [new file with mode: 0644]
src/qt/overviewpage.cpp [new file with mode: 0644]
src/qt/overviewpage.h [new file with mode: 0644]
src/qt/qvalidatedlineedit.cpp [new file with mode: 0644]
src/qt/qvalidatedlineedit.h [new file with mode: 0644]
src/qt/qvaluecombobox.cpp [new file with mode: 0644]
src/qt/qvaluecombobox.h [new file with mode: 0644]
src/qt/res/bitcoin-qt.rc [new file with mode: 0644]
src/qt/res/icons/add.png [new file with mode: 0644]
src/qt/res/icons/address-book.png [new file with mode: 0644]
src/qt/res/icons/bitcoin.icns [new file with mode: 0644]
src/qt/res/icons/bitcoin.ico [new file with mode: 0644]
src/qt/res/icons/bitcoin.png [new file with mode: 0644]
src/qt/res/icons/bitcoin_testnet.png [new file with mode: 0644]
src/qt/res/icons/clock1.png [new file with mode: 0644]
src/qt/res/icons/clock2.png [new file with mode: 0644]
src/qt/res/icons/clock3.png [new file with mode: 0644]
src/qt/res/icons/clock4.png [new file with mode: 0644]
src/qt/res/icons/clock5.png [new file with mode: 0644]
src/qt/res/icons/configure.png [new file with mode: 0644]
src/qt/res/icons/connect0_16.png [new file with mode: 0644]
src/qt/res/icons/connect1_16.png [new file with mode: 0644]
src/qt/res/icons/connect2_16.png [new file with mode: 0644]
src/qt/res/icons/connect3_16.png [new file with mode: 0644]
src/qt/res/icons/connect4_16.png [new file with mode: 0644]
src/qt/res/icons/edit.png [new file with mode: 0644]
src/qt/res/icons/editcopy.png [new file with mode: 0644]
src/qt/res/icons/editpaste.png [new file with mode: 0644]
src/qt/res/icons/export.png [new file with mode: 0644]
src/qt/res/icons/history.png [new file with mode: 0644]
src/qt/res/icons/key.png [new file with mode: 0644]
src/qt/res/icons/lock_closed.png [new file with mode: 0644]
src/qt/res/icons/lock_open.png [new file with mode: 0644]
src/qt/res/icons/notsynced.png [new file with mode: 0644]
src/qt/res/icons/overview.png [new file with mode: 0644]
src/qt/res/icons/quit.png [new file with mode: 0644]
src/qt/res/icons/receive.png [new file with mode: 0644]
src/qt/res/icons/remove.png [new file with mode: 0644]
src/qt/res/icons/send.png [new file with mode: 0644]
src/qt/res/icons/synced.png [new file with mode: 0644]
src/qt/res/icons/toolbar.png [new file with mode: 0644]
src/qt/res/icons/toolbar_testnet.png [new file with mode: 0644]
src/qt/res/icons/transaction0.png [new file with mode: 0644]
src/qt/res/icons/transaction2.png [new file with mode: 0644]
src/qt/res/icons/tx_inout.png [new file with mode: 0644]
src/qt/res/icons/tx_input.png [new file with mode: 0644]
src/qt/res/icons/tx_mined.png [new file with mode: 0644]
src/qt/res/icons/tx_output.png [new file with mode: 0644]
src/qt/res/images/about.png [new file with mode: 0644]
src/qt/res/images/splash2.jpg [new file with mode: 0644]
src/qt/res/movies/update_spinner.mng [new file with mode: 0644]
src/qt/res/src/bitcoin.svg [new file with mode: 0644]
src/qt/res/src/clock1.svg [new file with mode: 0644]
src/qt/res/src/clock2.svg [new file with mode: 0644]
src/qt/res/src/clock3.svg [new file with mode: 0644]
src/qt/res/src/clock4.svg [new file with mode: 0644]
src/qt/res/src/clock5.svg [new file with mode: 0644]
src/qt/res/src/clock_green.svg [new file with mode: 0644]
src/qt/res/src/inout.svg [new file with mode: 0644]
src/qt/res/src/questionmark.svg [new file with mode: 0644]
src/qt/sendcoinsdialog.cpp [new file with mode: 0644]
src/qt/sendcoinsdialog.h [new file with mode: 0644]
src/qt/sendcoinsentry.cpp [new file with mode: 0644]
src/qt/sendcoinsentry.h [new file with mode: 0644]
src/qt/transactiondesc.cpp [new file with mode: 0644]
src/qt/transactiondesc.h [new file with mode: 0644]
src/qt/transactiondescdialog.cpp [new file with mode: 0644]
src/qt/transactiondescdialog.h [new file with mode: 0644]
src/qt/transactionfilterproxy.cpp [new file with mode: 0644]
src/qt/transactionfilterproxy.h [new file with mode: 0644]
src/qt/transactionrecord.cpp [new file with mode: 0644]
src/qt/transactionrecord.h [new file with mode: 0644]
src/qt/transactiontablemodel.cpp [new file with mode: 0644]
src/qt/transactiontablemodel.h [new file with mode: 0644]
src/qt/transactionview.cpp [new file with mode: 0644]
src/qt/transactionview.h [new file with mode: 0644]
src/qt/walletmodel.cpp [new file with mode: 0644]
src/qt/walletmodel.h [new file with mode: 0644]
src/qtui.h [new file with mode: 0644]
src/script.cpp
src/serialize.h
src/test/DoS_tests.cpp [new file with mode: 0644]
src/test/base58_tests.cpp [new file with mode: 0644]
src/test/base64_tests.cpp [new file with mode: 0644]
src/test/test_bitcoin.cpp
src/test/util_tests.cpp [new file with mode: 0644]
src/ui.cpp [deleted file]
src/ui.h [deleted file]
src/uibase.cpp [deleted file]
src/uibase.h [deleted file]
src/util.cpp
src/util.h
src/wallet.cpp
src/wallet.h
src/xpm/about.xpm [deleted file]
src/xpm/addressbook16.xpm [deleted file]
src/xpm/addressbook20.xpm [deleted file]
src/xpm/bitcoin16.xpm [deleted file]
src/xpm/bitcoin20.xpm [deleted file]
src/xpm/bitcoin32.xpm [deleted file]
src/xpm/bitcoin48.xpm [deleted file]
src/xpm/bitcoin80.xpm [deleted file]
src/xpm/check.xpm [deleted file]
src/xpm/send16.xpm [deleted file]
src/xpm/send16noshadow.xpm [deleted file]
src/xpm/send20.xpm [deleted file]

index c1d06a3..66f9386 100644 (file)
@@ -9,3 +9,13 @@ src/bitcoind
 *.o
 *.patch
 .bitcoin
+#compilation and Qt preprocessor part
+*.qm
+Makefile
+bitcoin-qt
+#resources cpp
+qrc_*.cpp
+#qt creator
+*.pro.user
+#mac specific
+.DS_Store
diff --git a/INSTALL b/INSTALL
new file mode 100644 (file)
index 0000000..6989d89
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,9 @@
+Building Bitcoin
+
+See doc/readme-qt.rst for instructions on building Bitcoin QT,
+the intended-for-end-users, nice-graphical-interface, reference
+implementation of Bitcoin.
+
+See doc/build-*.txt for instructions on building bitcoind,
+the intended-for-services, no-graphical-interface, reference
+implementation of Bitcoin.
index 92635bb..0c475ea 100644 (file)
--- a/README.md
+++ b/README.md
@@ -28,3 +28,15 @@ help test the Bitcoin core, please contact QA@BitcoinTesting.org.
 Feature branches are created when there are major new features being
 worked on by several people.
 
+From time to time a pull request will become outdated. If this occurs, and
+the pull is no longer automatically mergeable; a comment on the pull will
+be used to issue a warning of closure. The pull will be closed 15 days
+after the warning if action is not taken by the author. Pull requests closed
+in this manner will have their corresponding issue labeled 'stagnant'.
+
+Issues with no commits will be given a similar warning, and closed after
+15 days from their last activity. Issues closed in this manner will be 
+labeled 'stale'. 
+
+Requests to reopen closed pull requests and/or issues can be submitted to 
+QA@BitcoinTesting.org. 
\ No newline at end of file
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro
new file mode 100644 (file)
index 0000000..2d9cdc7
--- /dev/null
@@ -0,0 +1,240 @@
+TEMPLATE = app
+TARGET =
+INCLUDEPATH += src src/json src/cryptopp src/qt
+DEFINES += QT_GUI
+CONFIG += no_include_pwd
+
+# for boost 1.37, add -mt to the boost libraries 
+# use: qmake BOOST_LIB_SUFFIX=-mt
+# or when linking against a specific BerkelyDB version: BDB_LIB_SUFFIX=-4.8
+
+# Dependency library locations can be customized with BOOST_INCLUDE_PATH, 
+#    BOOST_LIB_PATH, BDB_INCLUDE_PATH, BDB_LIB_PATH
+#    OPENSSL_INCLUDE_PATH and OPENSSL_LIB_PATH respectively
+
+OBJECTS_DIR = build
+MOC_DIR = build
+UI_DIR = build
+
+# use: qmake "USE_UPNP=0" (disable by default) or "USE_UPNP=1" (enable by default)
+# miniupnpc (http://miniupnp.free.fr/files/) must be installed
+count(USE_UPNP, 1) {
+    message(Building with UPNP support)
+    DEFINES += USE_UPNP=$$USE_UPNP
+    LIBS += -lminiupnpc
+}
+
+# use: qmake "USE_DBUS=1"
+contains(USE_DBUS, 1) {
+    message(Building with DBUS (Freedesktop notifications) support)
+    DEFINES += USE_DBUS
+    QT += dbus
+}
+
+# use: qmake "USE_SSL=1"
+contains(USE_DBUS, 1) {
+    message(Building with SSL support for RPC)
+    DEFINES += USE_SSL
+}
+
+# for extra security against potential buffer overflows
+QMAKE_CXXFLAGS += -fstack-protector 
+QMAKE_LFLAGS += -fstack-protector
+
+# disable quite some warnings because bitcoin core "sins" a lot
+QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-char-subscripts  -Wno-unused-value -Wno-sequence-point -Wno-parentheses -Wno-unknown-pragmas -Wno-switch
+
+# Input
+DEPENDPATH += src/qt src src/cryptopp src json/include
+HEADERS += src/qt/bitcoingui.h \
+    src/qt/transactiontablemodel.h \
+    src/qt/addresstablemodel.h \
+    src/qt/optionsdialog.h \
+    src/qt/sendcoinsdialog.h \
+    src/qt/addressbookpage.h \
+    src/qt/aboutdialog.h \
+    src/qt/editaddressdialog.h \
+    src/qt/bitcoinaddressvalidator.h \
+    src/base58.h \
+    src/bignum.h \
+    src/util.h \
+    src/uint256.h \
+    src/serialize.h \
+    src/cryptopp/stdcpp.h \
+    src/cryptopp/smartptr.h \
+    src/cryptopp/simple.h \
+    src/cryptopp/sha.h \
+    src/cryptopp/secblock.h \
+    src/cryptopp/pch.h \
+    src/cryptopp/misc.h \
+    src/cryptopp/iterhash.h \
+    src/cryptopp/cryptlib.h \
+    src/cryptopp/cpu.h \
+    src/cryptopp/config.h \
+    src/strlcpy.h \
+    src/main.h \
+    src/net.h \
+    src/key.h \
+    src/db.h \
+    src/script.h \
+    src/noui.h \
+    src/init.h \
+    src/headers.h \
+    src/irc.h \
+    src/json/json_spirit_writer_template.h \
+    src/json/json_spirit_writer.h \
+    src/json/json_spirit_value.h \
+    src/json/json_spirit_utils.h \
+    src/json/json_spirit_stream_reader.h \
+    src/json/json_spirit_reader_template.h \
+    src/json/json_spirit_reader.h \
+    src/json/json_spirit_error_position.h \
+    src/json/json_spirit.h \
+    src/qt/clientmodel.h \
+    src/qt/guiutil.h \
+    src/qt/transactionrecord.h \
+    src/qt/guiconstants.h \
+    src/qt/optionsmodel.h \
+    src/qt/monitoreddatamapper.h \
+    src/qtui.h \
+    src/qt/transactiondesc.h \
+    src/qt/transactiondescdialog.h \
+    src/qt/bitcoinamountfield.h \
+    src/wallet.h \
+    src/keystore.h \
+    src/qt/transactionfilterproxy.h \
+    src/qt/transactionview.h \
+    src/qt/walletmodel.h \
+    src/bitcoinrpc.h \
+    src/qt/overviewpage.h \
+    src/qt/csvmodelwriter.h \
+    src/crypter.h \
+    src/qt/sendcoinsentry.h \
+    src/qt/qvalidatedlineedit.h \
+    src/qt/bitcoinunits.h \
+    src/qt/qvaluecombobox.h \
+    src/qt/askpassphrasedialog.h \
+    src/protocol.h \
+    src/qt/notificator.h
+
+SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
+    src/qt/transactiontablemodel.cpp \
+    src/qt/addresstablemodel.cpp \
+    src/qt/optionsdialog.cpp \
+    src/qt/sendcoinsdialog.cpp \
+    src/qt/addressbookpage.cpp \
+    src/qt/aboutdialog.cpp \
+    src/qt/editaddressdialog.cpp \
+    src/qt/bitcoinaddressvalidator.cpp \
+    src/cryptopp/sha.cpp \
+    src/cryptopp/cpu.cpp \
+    src/util.cpp \
+    src/script.cpp \
+    src/main.cpp \
+    src/init.cpp \
+    src/net.cpp \
+    src/irc.cpp \
+    src/db.cpp \
+    src/json/json_spirit_writer.cpp \
+    src/json/json_spirit_value.cpp \
+    src/json/json_spirit_reader.cpp \
+    src/qt/clientmodel.cpp \
+    src/qt/guiutil.cpp \
+    src/qt/transactionrecord.cpp \
+    src/qt/optionsmodel.cpp \
+    src/qt/monitoreddatamapper.cpp \
+    src/qt/transactiondesc.cpp \
+    src/qt/transactiondescdialog.cpp \
+    src/qt/bitcoinstrings.cpp \
+    src/qt/bitcoinamountfield.cpp \
+    src/wallet.cpp \
+    src/keystore.cpp \
+    src/qt/transactionfilterproxy.cpp \
+    src/qt/transactionview.cpp \
+    src/qt/walletmodel.cpp \
+    src/bitcoinrpc.cpp \
+    src/qt/overviewpage.cpp \
+    src/qt/csvmodelwriter.cpp \
+    src/crypter.cpp \
+    src/qt/sendcoinsentry.cpp \
+    src/qt/qvalidatedlineedit.cpp \
+    src/qt/bitcoinunits.cpp \
+    src/qt/qvaluecombobox.cpp \
+    src/qt/askpassphrasedialog.cpp \
+    src/protocol.cpp \
+    src/qt/notificator.cpp
+
+RESOURCES += \
+    src/qt/bitcoin.qrc
+
+FORMS += \
+    src/qt/forms/sendcoinsdialog.ui \
+    src/qt/forms/addressbookpage.ui \
+    src/qt/forms/aboutdialog.ui \
+    src/qt/forms/editaddressdialog.ui \
+    src/qt/forms/transactiondescdialog.ui \
+    src/qt/forms/overviewpage.ui \
+    src/qt/forms/sendcoinsentry.ui \
+    src/qt/forms/askpassphrasedialog.ui
+
+CODECFORTR = UTF-8
+
+# for lrelease/lupdate
+TRANSLATIONS = src/qt/locale/bitcoin_nl.ts src/qt/locale/bitcoin_de.ts \
+               src/qt/locale/bitcoin_ru.ts
+
+isEmpty(QMAKE_LRELEASE) {
+    win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
+    else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
+}
+isEmpty(TS_DIR):TS_DIR = src/qt/locale
+# automatically build translations, so they can be included in resource file
+TSQM.name = lrelease ${QMAKE_FILE_IN}
+TSQM.input = TRANSLATIONS
+TSQM.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm
+TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN}
+TSQM.CONFIG = no_link
+QMAKE_EXTRA_COMPILERS += TSQM
+PRE_TARGETDEPS += compiler_TSQM_make_all
+
+# "Other files" to show in Qt Creator
+OTHER_FILES += \
+    doc/*.rst doc/*.txt doc/README README.md
+
+# platform specific defaults, if not overridden on command line
+isEmpty(BOOST_LIB_SUFFIX) {
+    macx:BOOST_LIB_SUFFIX = -mt
+    windows:BOOST_LIB_SUFFIX = -mgw44-mt-1_43
+}
+
+isEmpty(BDB_LIB_PATH) {
+    macx:BDB_LIB_PATH = /opt/local/lib/db48
+}
+
+isEmpty(BDB_INCLUDE_PATH) {
+    macx:BDB_INCLUDE_PATH = /opt/local/include/db48
+}
+
+isEmpty(BOOST_LIB_PATH) {
+    macx:BOOST_LIB_PATH = /opt/local/lib
+}
+
+isEmpty(BOOST_INCLUDE_PATH) {
+    macx:BOOST_INCLUDE_PATH = /opt/local/include
+}
+
+windows:LIBS += -lws2_32 -lgdi32
+windows:DEFINES += __WXMSW__
+windows:RC_FILE = src/qt/res/bitcoin-qt.rc
+
+macx:DEFINES += __WXMAC_OSX__ MSG_NOSIGNAL=0 BOOST_FILESYSTEM_VERSION=3
+macx:ICON = src/qt/res/icons/bitcoin.icns
+macx:TARGET = "Bitcoin Qt"
+
+# Set libraries and includes at end, to use platform-defined defaults if not overridden
+INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH
+LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,)
+LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
+LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_LIB_SUFFIX
+
+system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)
index a5c7da1..d5a278a 100644 (file)
@@ -17,7 +17,7 @@
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
-       <string>0.4.00</string>
+       <string>0.4.1</string>
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
diff --git a/contrib/BitcoinTemplate.dmg b/contrib/BitcoinTemplate.dmg
new file mode 100644 (file)
index 0000000..ca86308
Binary files /dev/null and b/contrib/BitcoinTemplate.dmg differ
diff --git a/contrib/bitrpc/bitrpc.py b/contrib/bitrpc/bitrpc.py
new file mode 100644 (file)
index 0000000..b02b299
--- /dev/null
@@ -0,0 +1,324 @@
+from jsonrpc import ServiceProxy
+import sys
+import string
+
+# ===== BEGIN USER SETTINGS =====
+# if you do not set these you will be prompted for a password for every command
+rpcuser = ""
+rpcpass = ""
+# ====== END USER SETTINGS ======
+
+
+if rpcpass == "":
+       access = ServiceProxy("http://127.0.0.1:8332")
+else:
+       access = ServiceProxy("http://"+rpcuser+":"+rpcpass+"@127.0.0.1:8332")
+cmd = sys.argv[1].lower()
+
+if cmd == "backupwallet":
+       try:
+               path = raw_input("Enter destination path/filename: ")
+               print access.backupwallet(path)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getaccount":
+       try:
+               addr = raw_input("Enter a Bitcoin address: ")
+               print access.getaccount(addr)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getaccountaddress":
+       try:
+               acct = raw_input("Enter an account name: ")
+               print access.getaccountaddress(acct)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getaddressesbyaccount":
+       try:
+               acct = raw_input("Enter an account name: ")
+               print access.getaddressesbyaccount(acct)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getbalance":
+       try:
+               acct = raw_input("Enter an account (optional): ")
+               mc = raw_input("Minimum confirmations (optional): ")
+               try:
+                       print access.getbalance(acct, mc)
+               except:
+                       print access.getbalance()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getblockbycount":
+       try:
+               height = raw_input("Height: ")
+               print access.getblockbycount(height)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getblockcount":
+       try:
+               print access.getblockcount()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getblocknumber":
+       try:
+               print access.getblocknumber()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getconnectioncount":
+       try:
+               print access.getconnectioncount()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getdifficulty":
+       try:
+               print access.getdifficulty()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getgenerate":
+       try:
+               print access.getgenerate()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "gethashespersec":
+       try:
+               print access.gethashespersec()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getinfo":
+       try:
+               print access.getinfo()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getnewaddress":
+       try:
+               acct = raw_input("Enter an account name: ")
+               try:
+                       print access.getnewaddress(acct)
+               except:
+                       print access.getnewaddress()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getreceivedbyaccount":
+       try:
+               acct = raw_input("Enter an account (optional): ")
+               mc = raw_input("Minimum confirmations (optional): ")
+               try:
+                       print access.getreceivedbyaccount(acct, mc)
+               except:
+                       print access.getreceivedbyaccount()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getreceivedbyaddress":
+       try:
+               addr = raw_input("Enter a Bitcoin address (optional): ")
+               mc = raw_input("Minimum confirmations (optional): ")
+               try:
+                       print access.getreceivedbyaddress(addr, mc)
+               except:
+                       print access.getreceivedbyaddress()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "gettransaction":
+       try:
+               txid = raw_input("Enter a transaction ID: ")
+               print access.gettransaction(txid)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "getwork":
+       try:
+               data = raw_input("Data (optional): ")
+               try:
+                       print access.gettransaction(data)
+               except:
+                       print access.gettransaction()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "help":
+       try:
+               cmd = raw_input("Command (optional): ")
+               try:
+                       print access.help(cmd)
+               except:
+                       print access.help()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "listaccounts":
+       try:
+               mc = raw_input("Minimum confirmations (optional): ")
+               try:
+                       print access.listaccounts(mc)
+               except:
+                       print access.listaccounts()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "listreceivedbyaccount":
+       try:
+               mc = raw_input("Minimum confirmations (optional): ")
+               incemp = raw_input("Include empty? (true/false, optional): ")
+               try:
+                       print access.listreceivedbyaccount(mc, incemp)
+               except:
+                       print access.listreceivedbyaccount()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "listreceivedbyaddress":
+       try:
+               mc = raw_input("Minimum confirmations (optional): ")
+               incemp = raw_input("Include empty? (true/false, optional): ")
+               try:
+                       print access.listreceivedbyaddress(mc, incemp)
+               except:
+                       print access.listreceivedbyaddress()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "listtransactions":
+       try:
+               acct = raw_input("Account (optional): ")
+               count = raw_input("Number of transactions (optional): ")
+               frm = raw_input("Skip (optional):")
+               try:
+                       print access.listtransactions(acct, count, frm)
+               except:
+                       print access.listtransactions()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "move":
+       try:
+               frm = raw_input("From: ")
+               to = raw_input("To: ")
+               amt = raw_input("Amount:")
+               mc = raw_input("Minimum confirmations (optional): ")
+               comment = raw_input("Comment (optional): ")
+               try:
+                       print access.move(frm, to, amt, mc, comment)
+               except:
+                       print access.move(frm, to, amt)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "sendfrom":
+       try:
+               frm = raw_input("From: ")
+               to = raw_input("To: ")
+               amt = raw_input("Amount:")
+               mc = raw_input("Minimum confirmations (optional): ")
+               comment = raw_input("Comment (optional): ")
+               commentto = raw_input("Comment-to (optional): ")
+               try:
+                       print access.sendfrom(frm, to, amt, mc, comment, commentto)
+               except:
+                       print access.sendfrom(frm, to, amt)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "sendmany":
+       try:
+               frm = raw_input("From: ")
+               to = raw_input("To (in format address1:amount1,address2:amount2,...): ")
+               mc = raw_input("Minimum confirmations (optional): ")
+               comment = raw_input("Comment (optional): ")
+               try:
+                       print access.sendmany(frm,to,mc,comment)
+               except:
+                       print access.sendmany(frm,to)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "sendtoaddress":
+       try:
+               to = raw_input("To (in format address1:amount1,address2:amount2,...): ")
+               amt = raw_input("Amount:")
+               comment = raw_input("Comment (optional): ")
+               commentto = raw_input("Comment-to (optional): ")
+               try:
+                       print access.sendtoaddress(to,amt,comment,commentto)
+               except:
+                       print access.sendtoaddress(to,amt)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "setaccount":
+       try:
+               addr = raw_input("Address: ")
+               acct = raw_input("Account:")
+               print access.setaccount(addr,acct)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "setgenerate":
+       try:
+               gen= raw_input("Generate? (true/false): ")
+               cpus = raw_input("Max processors/cores (-1 for unlimited, optional):")
+               try:
+                       print access.setgenerate(gen, cpus)
+               except:
+                       print access.setgenerate(gen)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "settxfee":
+       try:
+               amt = raw_input("Amount:")
+               print access.settxfee(amt)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "stop":
+       try:
+               print access.stop()
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "validateaddress":
+       try:
+               addr = raw_input("Address: ")
+               print access.validateaddress(addr)
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "walletpassphrase":
+       try:
+               pwd = raw_input("Enter wallet passphrase: ")
+               access.walletpassphrase(pwd, 60)
+               print "\n---Wallet unlocked---\n"
+       except:
+               print "\n---An error occurred---\n"
+
+elif cmd == "walletpassphrasechange":
+       try:
+               pwd = raw_input("Enter old wallet passphrase: ")
+               pwd2 = raw_input("Enter new wallet passphrase: ")
+               access.walletpassphrasechange(pwd, pwd2)
+               print
+               print "\n---Passphrase changed---\n"
+       except:
+               print
+               print "\n---An error occurred---\n"
+               print
+
+else:
+       print "Command not found or not supported"
\ No newline at end of file
diff --git a/contrib/create_osx_dmg.sh b/contrib/create_osx_dmg.sh
new file mode 100755 (executable)
index 0000000..af164e5
--- /dev/null
@@ -0,0 +1,60 @@
+#!/usr/bin/env bash
+# 
+# Creates a Bitcoin.dmg OSX file from the contrib/BitcoinTemplate.dmg file
+#
+# Recipe from: http://digital-sushi.org/entry/how-to-create-a-disk-image-installer-for-apple-mac-os-x/
+#
+# To make a prettier BitcoinTemplate.dmg:
+#  + open (mount) BitcoinTemplate.dmg
+#  + change the file properties, icon positions, background image, etc
+#  + eject, then commit the changed BitcoinTemplate.dmg
+#
+
+CWD=$(pwd)
+
+if [ $# -lt 1 ]; then
+    if [ $(basename $CWD) == "contrib" ]
+    then
+        TOP=$(dirname $CWD)
+    else
+        echo "Usage: $0 /path/to/bitcoin/tree"
+        exit 1
+    fi
+else
+    TOP=$1
+fi
+
+CONTRIB=$TOP/contrib
+BUILD_DIR=/tmp/bitcoin_osx_build
+
+# First, compile bitcoin and bitcoind
+cd "$TOP/src"
+if [ ! -e bitcoin ]; then make -f makefile.osx bitcoin; fi
+if [ ! -e bitcoind ]; then make -f makefile.osx bitcoind; fi
+strip bitcoin bitcoind
+
+mkdir -p "$BUILD_DIR"
+cd "$BUILD_DIR"
+
+rm -f Bitcoin.sparseimage
+hdiutil convert "$CONTRIB/BitcoinTemplate.dmg" -format UDSP -o Bitcoin
+hdiutil mount Bitcoin.sparseimage
+
+# Copy over placeholders in /Volumes/Bitcoin
+cp "$TOP/src/bitcoind" /Volumes/Bitcoin/
+cp "$TOP/src/bitcoin" /Volumes/Bitcoin/Bitcoin.app/Contents/MacOS/
+
+# Create source code .zip
+cd "$TOP"
+git archive -o /Volumes/Bitcoin/bitcoin.zip $(git branch 2>/dev/null|grep -e ^* | cut -d ' ' -f 2)
+
+# Fix permissions
+chmod -Rf go-w /Volumes/Bitcoin
+
+cd "$BUILD_DIR"
+hdiutil eject /Volumes/Bitcoin
+rm -f "$CWD/Bitcoin.dmg"
+hdiutil convert Bitcoin.sparseimage -format UDBZ -o "$CWD/Bitcoin.dmg"
+
+cd "$CWD"
+rm -rf "$BUILD_DIR"
@@ -1,11 +1,11 @@
 --- 
 name: bitcoin
 urls:
-- http://bitcoin.org/bitcoin-latest-linux-gitian.zip
+- http://bitcoin.org/bitcoin-latest-win32-gitian.zip
 rss:
 - url: http://sourceforge.net/api/file/index/project-id/244765/mtime/desc/limit/100/rss
   xpath: //item/link/text()
-  pattern: bitcoin-\d+.\d+.\d+-linux-gitian.zip
+  pattern: bitcoin-\d+.\d+.\d+-win32-gitian.zip
 signers:
   0A82509767C7D4A5D14DA2301AE1D35043E08E54:
     weight: 40
diff --git a/contrib/miniupnpc/Portfile b/contrib/miniupnpc/Portfile
new file mode 100644 (file)
index 0000000..133aee5
--- /dev/null
@@ -0,0 +1,43 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                miniupnpc
+epoch               2
+version             1.6
+revision            2
+categories          net
+platforms           darwin
+license             BSD
+maintainers         singingwolfboy openmaintainer
+description         Lightweight client for UPnP protocol
+long_description    \
+    ${description}
+    
+homepage            http://miniupnp.free.fr/
+master_sites        http://miniupnp.free.fr/files/download.php?file=${distname}${extract.suffix}&dummy=
+checksums           md5     88055f2d4a061cfd4cfe25a9eae22f67 \
+                    sha1    ef8f2edb17f2e7c5b8dc67ee80a65c199d823e0a \
+                    rmd160  d86b75b331a3fb5525c71708548f311977c0598f
+
+use_configure       no
+
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+
+build.args-append   CC="${configure.cc} ${archflags}"
+
+post-patch {
+    reinplace "s|-Wl,-install_name,|-Wl,-install_name,${prefix}/lib/|" ${worksrcpath}/Makefile
+}
+
+destroot.destdir    PREFIX=${prefix} INSTALLPREFIX=${destroot}${prefix}
+
+livecheck.type      regex
+livecheck.url       http://miniupnp.free.fr/files/
+livecheck.regex     ${name}-(\\d+(\\.\\d{1,4})+)${extract.suffix}
diff --git a/contrib/wallettools/walletchangepass.py b/contrib/wallettools/walletchangepass.py
new file mode 100644 (file)
index 0000000..30f3f5b
--- /dev/null
@@ -0,0 +1,5 @@
+from jsonrpc import ServiceProxy
+access = ServiceProxy("http://127.0.0.1:8332")
+pwd = raw_input("Enter old wallet passphrase: ")
+pwd2 = raw_input("Enter new wallet passphrase: ")
+access.walletpassphrasechange(pwd, pwd2)
\ No newline at end of file
diff --git a/contrib/wallettools/walletunlock.py b/contrib/wallettools/walletunlock.py
new file mode 100644 (file)
index 0000000..f847c6f
--- /dev/null
@@ -0,0 +1,4 @@
+from jsonrpc import ServiceProxy
+access = ServiceProxy("http://127.0.0.1:8332")
+pwd = raw_input("Enter wallet passphrase: ")
+access.walletpassphrase(pwd, 60)
\ No newline at end of file
index 772fd7f..789cc9f 100644 (file)
@@ -1,4 +1,4 @@
-Bitcoin 0.4.0rc1 BETA
+Bitcoin 0.4.1 BETA
 
 Copyright (c) 2009-2011 Bitcoin Developers
 Distributed under the MIT/X11 software license, see the accompanying
index 8378ae5..7ff8834 100644 (file)
@@ -1,4 +1,4 @@
-Bitcoin 0.4.00rc1 BETA\r
+Bitcoin 0.4.1 BETA\r
 \r
 Copyright (c) 2009-2011 Bitcoin Developers\r
 Distributed under the MIT/X11 software license, see the accompanying\r
diff --git a/doc/assets-attribution.txt b/doc/assets-attribution.txt
new file mode 100644 (file)
index 0000000..91d2e65
--- /dev/null
@@ -0,0 +1,73 @@
+Icon: src/qt/res/icons/clock*.png, src/qt/res/icons/tx*.png,
+      src/qt/res/src/*.svg
+Designer: Wladimir van der Laan
+License: Creative Commons Attribution
+
+Icon: src/qt/res/icons/send.png
+Icon Pack: Vista Style Arrow
+Designer: Icons Land
+License: Freeware Non-commercial
+Site: http://findicons.com/icon/231371/right3green
+
+Icon: src/qt/res/icons/address-book.png
+Icon Pack: Farm-Fresh Web
+Designer: FatCow Web Hosting
+License: Creative Commons Attribution (by)
+Site: http://findicons.com/icon/163938/book_open
+
+Icon: src/qt/res/icons/connect*.png, src/qt/res/icons/synced.png, src/qt/res/icons/lock_*.png
+Icon Pack: Human-O2
+Designer: schollidesign
+License: GNU/GPL
+Site: http://findicons.com/icon/93743/blocks_gnome_netstatus_0
+
+Icon: src/qt/res/icons/transaction*.png
+Designer: md2k7
+Site: https://forum.bitcoin.org/index.php?topic=15276.0
+License: You are free to do with these icons as you wish, including selling,
+ copying, modifying etc.
+
+Icon: src/qt/res/icons/configure.png, src/qt/res/icons/quit.png,
+      src/qt/res/icons/editcopy.png, src/qt/res/icons/editpaste.png,
+      src/qt/res/icons/add.png, src/qt/res/icons/edit.png,
+      src/qt/res/icons/remove.png (edited)
+Designer: http://www.everaldo.com
+Icon Pack: Crystal SVG
+License: LGPL
+
+Icon: src/qt/res/icons/receive.png, src/qt/res/icons/history.png,
+      src/qt/res/icons/export.png
+Designer: Oxygen team
+Icon Pack: Oxygen
+License: Creative Common Attribution-ShareAlike 3.0 License or LGPL
+Site: http://www.oxygen-icons.org/
+
+Icon: src/qt/res/icons/bitcoin.png, src/qt/res/icons/toolbar.png
+Designer: Bitboy (optimized for 16x16 by Wladimir van der Laan)
+License: Public Domain
+Site: http://forum.bitcoin.org/?topic=1756.0
+
+Icon: src/qt/res/icons/overview.png
+Icon Pack: Primo
+Designer: Jack Cai
+License: Creative Commons Attribution No Derivatives (by-nd)
+Site: http://findicons.com/icon/175944/home?id=176221#
+
+Icon:  scripts/img/reload.xcf (modified),src/qt/res/movies/update_spinner.mng
+Icon Pack: Kids
+Designer: Everaldo (Everaldo Coelho)
+License: GNU/GPL 
+Site: http://findicons.com/icon/17102/reload?id=17102
+
+Image: src/qt/res/images/splash2.jpg (Wallet image)
+Designer: Crobbo (forum)
+Site: https://bitcointalk.org/index.php?topic=32273.0
+License: Public domain
+
+Icon: src/qt/res/icons/key.png
+Designer: VisualPharm (Ivan Boyko)
+Icon Pack: Must Have
+Site: http://findicons.com/icon/51009/key?id=51009
+License: Creative Commons Attribution (by)
+
+
index d08e3a2..f3150e0 100644 (file)
@@ -7,6 +7,9 @@ cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP
 software written by Thomas Bernard.
 
 
+See readme-qt.rst for instructions on building Bitcoin QT, the
+graphical user interface.
+
 WINDOWS BUILD NOTES
 ===================
 
@@ -27,39 +30,24 @@ Dependencies
 Libraries you need to download separately and build:
 
                 default path               download
-wxWidgets       \wxwidgets-2.9.2-mgw       http://www.wxwidgets.org/downloads/
 OpenSSL         \openssl-1.0.0d-mgw        http://www.openssl.org/source/
 Berkeley DB     \db-4.8.30.NC-mgw          http://www.oracle.com/technology/software/products/berkeley-db/index.html
 Boost           \boost-1.47.0-mgw          http://www.boost.org/users/download/
 miniupnpc       \miniupnpc-1.6-mgw         http://miniupnp.tuxfamily.org/files/
 
 Their licenses:
-wxWidgets      LGPL 2.1 with very liberal exceptions
 OpenSSL        Old BSD license with the problematic advertising requirement
 Berkeley DB    New BSD license with additional requirement that linked software must be free open source
 Boost          MIT-like license
 miniupnpc      New (3-clause) BSD license
 
 Versions used in this release:
-wxWidgets    2.9.2
 OpenSSL      1.0.0d
 Berkeley DB  4.8.30.NC
 Boost        1.47.0
 miniupnpc    1.6
 
 
-Notes
------
-The UI layout is edited with wxFormBuilder.  The project file is
-uiproject.fbp.  It generates uibase.cpp and uibase.h, which define base
-classes that do the rote work of constructing all the UI elements.
-
-wxWidgets
----------
-DOS shell:
-cd \wxWidgets-2.9.2-mgw\build\msw
-mingw32-make -f makefile.gcc
-
 OpenSSL
 -------
 MSYS shell:
@@ -98,6 +86,5 @@ Bitcoin
 -------
 DOS prompt:
 cd \bitcoin\src
-mingw32-make bitcoin.exe bitcoind.exe -f makefile.mingw
-strip bitcoin.exe
+mingw32-make bitcoind.exe -f makefile.mingw
 strip bitcoind.exe
index 52d876d..ac67080 100644 (file)
@@ -8,11 +8,14 @@ software written by Eric Young (eay@cryptsoft.com) and UPnP software written by
 Thomas Bernard.
 
 
-Mac OS X build instructions
+Mac OS X bitcoind build instructions
 Laszlo Hanyecz <solar@heliacal.net>
 Douglas Huff <dhuff@jrbobdobbs.org>
 
 
+See readme-qt.rst for instructions on building Bitcoin QT, the
+graphical user interface.
+
 Tested on 10.5 and 10.6 intel.  PPC is not supported because it's big-endian.
 
 All of the commands should be executed in Terminal.app.. it's in
@@ -32,7 +35,6 @@ structure I use looks like this:
 ~/bitcoin/bitcoin       # Upstream source tree
 ~/bitcoin/src           # source code (symlink to ~/bitcoin/bitcoin/src)
 ~/bitcoin/deps          # dependencies.. like libraries and headers needed to compile
-~/bitcoin/Bitcoin.app   # the application bundle where you can run the app
 
 Just execute: mkdir ~/bitcoin
 This will create the top dir for you..
@@ -180,99 +182,7 @@ cd db-4.8.30/build_unix
 ../dist/configure --prefix=/Users/macosuser/bitcoin/deps --enable-cxx && make && make install
 
 
-wxWidgets
----------
-
-(The wxWidgets-devel MacPorts package will work but will throw annoying assertion dialogs.)
-
-This is the big one..
-
-Check it out from svn
-
-cd ~/bitcoin/deps
-svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets-trunk
-
-This will make a wxWidgets-trunk directory in deps.
-
-Use this script snippet, change your prefix to whatever your dir is:
-
-PREFIX=~/bitcoin/deps
-SRCDIR="$PREFIX/wxWidgets-trunk"
-BUILDDIR="$SRCDIR/macbuild"
-
-cd "$PREFIX" &&
-#svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets-trunk &&
-cd "$SRCDIR" &&
-
-[ -f include/wx/hashmap.h.orig ] || cp include/wx/hashmap.h include/wx/hashmap.h.orig &&
-sed 's/if wxUSE_STL/if 0 \&\& wxUSE_STL/g' < include/wx/hashmap.h.orig > include/wx/hashmap.h &&
-
-[ -f include/wx/hashset.h.orig ] || cp include/wx/hashset.h include/wx/hashset.h.orig &&
-sed 's/if wxUSE_STL/if 0 \&\& wxUSE_STL/g' < include/wx/hashset.h.orig > include/wx/hashset.h &&
-
-
-
-rm -vrf "$BUILDDIR" &&
-mkdir "$BUILDDIR" &&
-cd "$BUILDDIR" &&
-
-../configure --prefix="$PREFIX" \
---with-osx_cocoa \
---disable-shared \
---disable-debug_flag \
---with-macosx-version-min=10.5 \
---enable-stl \
---enable-utf8 \
---enable-universal_binary \
---with-libjpeg=builtin \
---with-libpng=builtin \
---with-regex=builtin \
---with-libtiff=builtin \
---with-zlib=builtin \
---with-expat=builtin \
---with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk &&
-
-
-find . -name Makefile | 
-while read i; do 
-  echo $i; 
-  sed 's/-arch i386/-arch i386 -arch x86_64/g' < "$i" > "$i".new && 
-  mv "$i" "$i".old && 
-  mv "$i".new "$i"; 
-done
-
-
-
-make && 
-make install
-
-
-
-Now you should be able to build bitcoin
+Now you should be able to build bitcoind:
 
 cd ~/bitcoin/src
-make -f makefile.osx bitcoin
-
-Before you can run it, you need to create an application bundle for Mac OS.
-
-A bundle is provided in contrib/Bitcoin.app.
-
-Copy the bitcoin binary in to it like this:
-  cp -pR ~/bitcoin/bitcoin/contrib/Bitcoin.app ~/bitcoin/
-  cp ~/bitcoin/src/bitcoin ~/bitcoin/Bitcoin.app/Contents/MacOS/
-
-To run it you can just click the Bitcoin.app in Finder, or just do:
-open ~/bitcoin/Bitcoin.app
-
-If you want to run it with arguments you can just run it without backgrounding
-by specifying the full name in terminal:
-
-~/bitcoin/Bitcoin.app/Contents/MacOS/bitcoin -addnode=192.75.207.66
-
-You can also run it with arguments in the background with output going to the
-normal places for apps (Console) like this:
-
-open ~/bitcoin/Bitcoin.app --args -connect=192.75.207.66
-
-It is advisable to relocate Bitcoin.app to /Applications or $HOME/Applications.
-
+make -f makefile.osx bitcoind
index 4ecf15a..b7aa711 100644 (file)
@@ -1,4 +1,5 @@
 Copyright (c) 2009-2010 Satoshi Nakamoto
+Copyright (c) 2011 Bitcoin Developers
 Distributed under the MIT/X11 software license, see the accompanying
 file license.txt or http://www.opensource.org/licenses/mit-license.php.
 This product includes software developed by the OpenSSL Project for use in
@@ -14,16 +15,14 @@ To Build
 --------
 
 cd src/
+make -f makefile.unix            # Headless bitcoin
 
-make -f makefile.unix            # Bitcoin with wxWidgets GUI
-  or
-make -f makefile.unix bitcoind   # Headless bitcoin
-
+See readme-qt.rst for instructions on building Bitcoin QT,
+the graphical bitcoin.
 
 Dependencies
 ------------
 sudo apt-get install build-essential
-sudo apt-get install libgtk2.0-dev
 sudo apt-get install libssl-dev
 sudo apt-get install libdb4.8-dev
 sudo apt-get install libdb4.8++-dev
@@ -32,12 +31,6 @@ or Boost 1.37: sudo apt-get install libboost1.37-dev
 
 If using Boost 1.37, append -mt to the boost libraries in the makefile.
 
-Requires wxWidgets 2.9.1 or newer.
-
-You need to download wxWidgets from http://www.wxwidgets.org/downloads/
-and build it yourself.  See the build instructions and configure parameters
-below.
-
 Requires miniupnpc for UPnP port mapping.  It can be downloaded from
 http://miniupnp.tuxfamily.org/files/.  UPnP support is compiled in and
 turned off by default.  Set USE_UPNP to a different value to control this:
@@ -46,7 +39,6 @@ USE_UPNP=0  (the default) UPnP support turned off by default at runtime;
 USE_UPNP=1  UPnP support turned on by default at runtime.
 
 Licenses of statically linked libraries:
-wxWidgets      LGPL 2.1 with very liberal exceptions
 Berkeley DB    New BSD license with additional requirement that linked software must be free open source
 Boost          MIT-like license
 miniupnpc      New (3-clause) BSD license
@@ -54,7 +46,6 @@ miniupnpc      New (3-clause) BSD license
 Versions used in this release:
 GCC          4.3.3
 OpenSSL      0.9.8g
-wxWidgets    2.9.2
 Berkeley DB  4.8.30.NC
 Boost        1.37
 miniupnpc    1.6
@@ -62,28 +53,10 @@ miniupnpc    1.6
 
 Notes
 -----
-The UI layout is edited with wxFormBuilder.  The project file is
-uiproject.fbp.  It generates uibase.cpp and uibase.h, which define base
-classes that do the rote work of constructing all the UI elements.
-
 The release is built with GCC and then "strip bitcoin" to strip the debug
 symbols, which reduces the executable size by about 90%.
 
 
-wxWidgets
----------
-cd /usr/local
-tar -xzvf wxWidgets-2.9.2.tar.gz
-cd wxWidgets-2.9.2
-mkdir buildgtk
-cd buildgtk
-../configure --with-gtk --enable-debug --disable-shared --enable-monolithic --without-libpng --disable-svg
-make
-sudo su
-make install
-ldconfig
-
-
 miniupnpc
 ---------
 tar -xzvf miniupnpc-1.6.tar.gz
@@ -106,3 +79,45 @@ If you need to build Boost yourself:
 sudo su
 ./bootstrap.sh
 ./bjam install
+
+
+Security
+--------
+To help make your bitcoin installation more secure by making certain attacks impossible to
+exploit even if a vulnerability is found, you can take the following measures:
+
+* Position Independent Executable
+    Build position independent code to take advantage of Address Space Layout Randomization
+    offered by some kernels. An attacker who is able to cause execution of code at an arbitrary
+    memory location is thwarted if he doesn't know where anything useful is located.
+    The stack and heap are randomly located by default but this allows the code section to be
+    randomly located as well.
+
+    On an Amd64 processor where a library was not compiled with -fPIC, this will cause an error
+    such as: "relocation R_X86_64_32 against `......' can not be used when making a shared object;"
+
+    To build with PIE, use:
+    make -f makefile.unix ... -e PIE=1
+
+    To test that you have built PIE executable, install scanelf, part of paxutils, and use:
+    scanelf -e ./bitcoin
+
+    The output should contain:
+     TYPE
+    ET_DYN
+
+* Non-executable Stack
+    If the stack is executable then trivial stack based buffer overflow exploits are possible if
+    vulnerable buffers are found. By default, bitcoin should be built with a non-executable stack
+    but if one of the libraries it uses asks for an executable stack or someone makes a mistake
+    and uses a compiler extension which requires an executable stack, it will silently build an
+    executable without the non-executable stack protection.
+
+    To verify that the stack is non-executable after compiling use:
+    scanelf -e ./bitcoin
+
+    the output should contain:
+    STK/REL/PTL
+    RW- R-- RW-
+
+    The STK RW- means that the stack is readable and writeable but not executable.
diff --git a/doc/readme-qt.rst b/doc/readme-qt.rst
new file mode 100644 (file)
index 0000000..b12aa30
--- /dev/null
@@ -0,0 +1,162 @@
+Bitcoin-qt: Qt4 based GUI replacement for Bitcoin
+=================================================
+
+Features
+========
+
+- All functionality of the Wx GUI, including wallet encryption
+
+- Compatibility with Linux (both GNOME and KDE), MacOSX and Windows
+
+- Notification on incoming / outgoing transactions (compatible with FreeDesktop and other desktop notification schemes)
+
+- General interface improvements: Splash screen, tabbed interface
+
+- Overview page with current balance, unconfirmed balance, and such
+
+- Better transaction list with status icons, real-time filtering and a context menu
+
+- Asks for confirmation before sending coins, for your own safety
+
+- CSV export of transactions and address book (for Excel bookkeeping)
+
+- Shows alternative icon when connected to testnet, so you never accidentally send real coins during testing
+
+- Shows a progress bar on initial block download, so that you don't have to wonder how many blocks it needs to download to be up to date
+
+- Sendmany support, send to multiple recipients at the same time
+
+- Multiple unit support, can show subdivided bitcoins (uBTC, mBTC) for users that like large numbers
+
+- Support for English, German, Russian and Dutch languages
+
+- Address books and transaction table can be sorted by any column
+
+- Accepts "bitcoin:" URLs from browsers and other sources through drag and drop
+
+Build instructions
+===================
+
+Debian
+-------
+
+First, make sure that the required packages for Qt4 development of your
+distribution are installed, for Debian and Ubuntu these are:
+
+::
+
+    apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \
+        libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \
+        libssl-dev libdb4.8++-dev
+
+then execute the following:
+
+::
+
+    qmake
+    make
+
+Alternatively, install Qt Creator and open the `bitcoin-qt.pro` file.
+
+An executable named `bitcoin-qt` will be built.
+
+
+Windows
+--------
+
+Windows build instructions:
+
+- Download the `QT Windows SDK`_ and install it. You don't need the Symbian stuff, just the desktop Qt.
+
+- Download and extract the `dependencies archive`_  [#]_, or compile openssl, boost and dbcxx yourself.
+
+- Copy the contents of the folder "deps" to "X:\\QtSDK\\mingw", replace X:\\ with the location where you installed the Qt SDK. Make sure that the contents of "deps\\include" end up in the current "include" directory.
+
+- Open the .pro file in QT creator and build as normal (ctrl-B)
+
+.. _`QT Windows SDK`: http://qt.nokia.com/downloads/sdk-windows-cpp
+.. _`dependencies archive`: https://download.visucore.com/bitcoin/qtgui_deps_1.zip
+.. [#] PGP signature: https://download.visucore.com/bitcoin/qtgui_deps_1.zip.sig (signed with RSA key ID `610945D0`_)
+.. _`610945D0`: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x610945D0
+
+
+Mac OS X
+--------
+
+- Download and install the `Qt Mac OS X SDK`_. It is recommended to also install Apple's Xcode with UNIX tools.
+
+- Download and install `MacPorts`_.
+
+- Execute the following commands in a terminal to get the dependencies:
+
+::
+
+       sudo port selfupdate
+       sudo port install boost db48
+
+- Open the .pro file in Qt Creator and build as normal (cmd-B)
+
+.. _`Qt Mac OS X SDK`: http://qt.nokia.com/downloads/sdk-mac-os-cpp
+.. _`MacPorts`: http://www.macports.org/install.php
+
+
+Build configuration options
+============================
+
+UPNnP port forwarding
+---------------------
+
+To use UPnP for port forwarding behind a NAT router (recommended, as more connections overall allow for a faster and more stable bitcoin experience), pass the following argument to qmake:
+
+::
+
+    qmake "USE_UPNP=1"
+
+(in **Qt Creator**, you can find the setting for additional qmake arguments under "Projects" -> "Build Settings" -> "Build Steps", then click "Details" next to **qmake**)
+
+This requires miniupnpc for UPnP port mapping.  It can be downloaded from
+http://miniupnp.tuxfamily.org/files/.  UPnP support is not compiled in by default.
+
+Set USE_UPNP to a different value to control this:
+
++------------+--------------------------------------------------------------+
+| USE_UPNP=  | (the default) no UPnP support, miniupnpc not required;       |
++------------+--------------------------------------------------------------+
+| USE_UPNP=0 | UPnP support turned off by default at runtime;               |
++------------+--------------------------------------------------------------+
+| USE_UPNP=1 | UPnP support turned on by default at runtime.                |
++------------+--------------------------------------------------------------+
+
+Mac OS X users: miniupnpc is currently outdated on MacPorts. An updated Portfile is provided in contrib/miniupnpc within this project.
+You can execute the following commands in a terminal to install it:
+
+::
+
+       cd <location of bitcoin-qt>/contrib/miniupnpc
+       sudo port install
+
+Notification support for recent (k)ubuntu versions
+---------------------------------------------------
+
+To see desktop notifications on (k)ubuntu versions starting from 10.04, enable usage of the
+FreeDesktop notification interface through DBUS using the following qmake option:
+
+::
+
+    qmake "USE_DBUS=1"
+
+Berkely DB version warning
+==========================
+
+A warning for people using the *static binary* version of Bitcoin on a Linux/UNIX-ish system (tl;dr: **Berkely DB databases are not forward compatible**).
+
+The static binary version of Bitcoin is linked against libdb4.7 or libdb4.8 (see also `this Debian issue`_).
+
+Now the nasty thing is that databases from 5.X are not compatible with 4.X.
+
+If the globally installed development package of Berkely DB installed on your system is 5.X, any source you
+build yourself will be linked against that. The first time you run with a 5.X version the database will be upgraded,
+and 4.X cannot open the new format. This means that you cannot go back to the old statically linked version without
+significant hassle!
+
+.. _`this Debian issue`: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621425
index bcda64d..4d06627 100644 (file)
 
 * perform gitian builds
 
-  * From the bitcoin source dir
-  $ cd ../gitian-builder
-  $ ./bin/gbuild --commit bitcoin=v0.3.23 ../bitcoin/contrib/gitian.yml
-  $ ./bin/gbuild --commit bitcoin=v0.3.23 ../bitcoin/contrib/gitian-win32.yml
+  * From a directory containing the bitcoin source, gitian-builder and gitian.sigs
+  $ export VERSION=0.3.23
+  $ cd ./gitian-builder
+  $ ./bin/gbuild --commit bitcoin=v$VERSION ../bitcoin/contrib/gitian-descriptors/gitian.yml
+  $ ./bin/gsign --signer (your gitian key, ie bluematt, sipa, etc) --release $VERSION --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian.yml
+  $ cd build/out
+  $ zip bitcoin-$VERSION-linux-gitian.zip *
+  $ mv bitcoin-$VERSION-linux-gitian.zip ../../
+  $ ./bin/gbuild --commit bitcoin=v$VERSION ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
+  $ ./bin/gsign --signer (your gitian key, ie bluematt, sipa, etc) --release $VERSION-win32 --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
+  $ cd build/out
+  $ zip bitcoin-$VERSION-win32-gitian.zip *
+  $ mv bitcoin-$VERSION-win32-gitian.zip ../../
  
   Build output expected:
-  1. linux 32-bit and 64-bit binaries + source
-  2. windows 32-bit binary + source
-  3. windows installer
+  1. linux 32-bit and 64-bit binaries + source (bitcoin-$VERSION-linux-gitian.zip)
+  2. windows 32-bit binary, installer + source (bitcoin-$VERSION-win32-gitian.zip)
+  3. Gitian signatures (in gitian.sigs/$VERSION[-win32]/(your gitian key)/
+
+* repackage gitian builds for release as stand-alone zip/tar/installer exe
+
+  * Windows .zip and setup.exe:
+  $ mkdir bitcoin-$VERSION-win32
+  $ cd bitcoin-$VERSION-win32
+  $ unzip bitcoin-$VERSION-win32-gitian.zip
+  $ mv bitcoin-$VERSION-win32-setup.exe ..
+  $ cd ..; zip bitcoin-$VERSION-win32.zip bitcoin-$VERSION-win32
+
+  * Linux .tar.gz:
+  $ mkdir bitcoin-$VERSION-linux
+  $ cd bitcoin-$VERSION-linux
+  $ unzip bitcoin-$VERSION-linux-gitian.zip
+  $ cd ..; tar czvf bitcoin-$VERSION-linux.tar.gz bitcoin-$VERSION-linux
+
+* perform Mac build
+  * From the bitcoin source dir
+  $ cd contrib
+  $ ./create_osx_dmg.sh
+  $ mv Bitcoin.dmg bitcoin-$VERSION-macosx.dmg
 
 * upload source and builds to SF
 
 
 * update wiki download links
 
+* release gitian-signed gitian archives
+
+  * Collect enough gitian signatures to meet minimum_weight (see contrib/gitian-downloader/*-download-config)
+
+  * From a directory containing bitcoin source, gitian.sigs and gitian zips
+  $ export VERSION=0.3.23
+  $ mkdir bitcoin-$VERSION-win32-gitian; cd bitcoin-$VERSION-win32-gitian
+  $ unzip ../bitcoin-$VERSION-win32-gitian.zip
+  $ mkdir gitian
+  $ cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
+  $ for file in `ls ../gitian.sigs/$VERSION-win32/`; do
+  $   cp ../gitian.sigs/$VERSION-win32/$file/bitcoin-build.assert ./gitian/$file-build.assert
+  $   cp ../gitian.sigs/$VERSION-win32/$file/bitcoin-build.assert.sig ./gitian/$file-build.assert.sig
+  $ done
+  $ zip bitcoin-$VERSION-win32-gitian.zip *
+  $ cp bitcoin-$VERSION-win32-gitian.zip ../
+  $ cd ..
+  $ mkdir bitcoin-$VERSION-linux-gitian; cd bitcoin-$VERSION-linux-gitian
+  $ unzip ../bitcoin-$VERSION-linux-gitian.zip
+  $ mkdir gitian
+  $ cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
+  $ for file in `ls ../gitian.sigs/$VERSION/`; do
+  $   cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert ./gitian/$file-build.assert
+  $   cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert.sig ./gitian/$file-build.assert.sig
+  $ done
+  $ zip bitcoin-$VERSION-linux-gitian.zip *
+  $ cp bitcoin-$VERSION-linux-gitian.zip ../
+
+  * Upload gitian zips to SF
+
 
diff --git a/scripts/qt/extract_strings_qt.py b/scripts/qt/extract_strings_qt.py
new file mode 100755 (executable)
index 0000000..6627de4
--- /dev/null
@@ -0,0 +1,63 @@
+#!/usr/bin/python
+'''
+Extract _("...") strings for translation and convert to Qt4 stringdefs so that
+they can be picked up by Qt linguist.
+'''
+from subprocess import Popen, PIPE
+
+OUT_CPP="src/qt/bitcoinstrings.cpp"
+EMPTY=['""']
+
+def parse_po(text):
+    """
+    Parse 'po' format produced by xgettext.
+    Return a list of (msgid,msgstr) tuples.
+    """
+    messages = []
+    msgid = []
+    msgstr = []
+    in_msgid = False
+    in_msgstr = False
+
+    for line in text.split('\n'):
+        line = line.rstrip('\r')
+        if line.startswith('msgid '):
+            if in_msgstr:
+                messages.append((msgid, msgstr))
+                in_msgstr = False
+            # message start
+            in_msgid = True
+            
+            msgid = [line[6:]]
+        elif line.startswith('msgstr '):
+            in_msgid = False
+            in_msgstr = True
+            msgstr = [line[7:]]
+        elif line.startswith('"'):
+            if in_msgid:
+                msgid.append(line)
+            if in_msgstr:
+                msgstr.append(line)
+
+    if in_msgstr:
+        messages.append((msgid, msgstr))
+
+    return messages
+
+files = ['src/base58.h', 'src/bignum.h', 'src/db.cpp', 'src/db.h', 'src/headers.h', 'src/init.cpp', 'src/init.h', 'src/irc.cpp', 'src/irc.h', 'src/key.h', 'src/main.cpp', 'src/main.h', 'src/net.cpp', 'src/net.h', 'src/noui.h', 'src/script.cpp', 'src/script.h', 'src/serialize.h', 'src/strlcpy.h', 'src/uint256.h', 'src/util.cpp', 'src/util.h']
+
+# xgettext -n --keyword=_ $FILES
+child = Popen(['xgettext','--output=-','-n','--keyword=_'] + files, stdout=PIPE)
+(out, err) = child.communicate()
+
+messages = parse_po(out) 
+
+f = open(OUT_CPP, 'w')
+f.write('#include <QtGlobal>\n')
+f.write('// Automatically generated by extract_strings.py\n')
+f.write('static const char *bitcoin_strings[] = {')
+for (msgid, msgstr) in messages:
+    if msgid != EMPTY:
+        f.write('QT_TRANSLATE_NOOP("bitcoin-core", %s),\n' % ('\n'.join(msgid)))
+f.write('};')
+f.close()
diff --git a/scripts/qt/img/reload.xcf b/scripts/qt/img/reload.xcf
new file mode 100644 (file)
index 0000000..dc8be62
Binary files /dev/null and b/scripts/qt/img/reload.xcf differ
diff --git a/scripts/qt/make_spinner.py b/scripts/qt/make_spinner.py
new file mode 100755 (executable)
index 0000000..136aff3
--- /dev/null
@@ -0,0 +1,43 @@
+#!/usr/bin/env python
+# W.J. van der Laan, 2011
+# Make spinning .mng animation from a .png
+# Requires imagemagick 6.7+
+from __future__ import division
+from os import path
+from PIL import Image
+from subprocess import Popen
+
+SRC='img/reload_scaled.png'
+DST='../../src/qt/res/movies/update_spinner.mng'
+TMPDIR='/tmp'
+TMPNAME='tmp-%03i.png'
+NUMFRAMES=35
+FRAMERATE=10.0
+CONVERT='convert'
+CLOCKWISE=True
+DSIZE=(16,16)
+
+im_src = Image.open(SRC)
+
+if CLOCKWISE:
+    im_src = im_src.transpose(Image.FLIP_LEFT_RIGHT)
+
+def frame_to_filename(frame):
+    return path.join(TMPDIR, TMPNAME % frame)
+
+frame_files = []
+for frame in xrange(NUMFRAMES):
+    rotation = (frame + 0.5) / NUMFRAMES * 360.0
+    if CLOCKWISE:
+        rotation = -rotation
+    im_new = im_src.rotate(rotation, Image.BICUBIC)
+    im_new.thumbnail(DSIZE, Image.ANTIALIAS)
+    outfile = frame_to_filename(frame)
+    im_new.save(outfile, 'png')
+    frame_files.append(outfile)
+
+p = Popen([CONVERT, "-delay", str(FRAMERATE), "-dispose", "2"] + frame_files + [DST])
+p.communicate()
+
+
+
diff --git a/scripts/qt/make_windows_icon.py b/scripts/qt/make_windows_icon.py
new file mode 100755 (executable)
index 0000000..bf607b1
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+# create multiresolution windows icon
+ICON_SRC=../../src/qt/res/icons/bitcoin.png
+ICON_DST=../../src/qt/res/icons/bitcoin.ico
+convert ${ICON_SRC} -resize 16x16 bitcoin-16.png
+convert ${ICON_SRC} -resize 32x32 bitcoin-32.png
+convert ${ICON_SRC} -resize 48x48 bitcoin-48.png
+convert bitcoin-16.png bitcoin-32.png bitcoin-48.png ${ICON_DST}
+
index 6cf4777..4c837c9 100644 (file)
@@ -5,7 +5,7 @@ SetCompressor /SOLID lzma
 \r
 # General Symbol Definitions\r
 !define REGKEY "SOFTWARE\$(^Name)"\r
-!define VERSION 0.4.00\r
+!define VERSION 0.4.1\r
 !define COMPANY "Bitcoin project"\r
 !define URL http://www.bitcoin.org/\r
 \r
@@ -45,13 +45,13 @@ Var StartMenuGroup
 !insertmacro MUI_LANGUAGE English\r
 \r
 # Installer attributes\r
-OutFile bitcoin-0.4.00-win32-setup.exe\r
+OutFile bitcoin-0.4.1-win32-setup.exe\r
 InstallDir $PROGRAMFILES\Bitcoin\r
 CRCCheck on\r
 XPStyle on\r
 BrandingText " "\r
 ShowInstDetails show\r
-VIProductVersion 0.4.00.0\r
+VIProductVersion 0.4.1.0\r
 VIAddVersionKey ProductName Bitcoin\r
 VIAddVersionKey ProductVersion "${VERSION}"\r
 VIAddVersionKey CompanyName "${COMPANY}"\r
diff --git a/share/uiproject.fbp b/share/uiproject.fbp
deleted file mode 100644 (file)
index 7d2c258..0000000
+++ /dev/null
@@ -1,6388 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>\r
-<wxFormBuilder_Project>\r
-    <FileVersion major="1" minor="9" />\r
-    <object class="Project" expanded="1">\r
-        <property name="class_decoration"></property>\r
-        <property name="code_generation">C++</property>\r
-        <property name="disconnect_events">1</property>\r
-        <property name="encoding">UTF-8</property>\r
-        <property name="event_generation">connect</property>\r
-        <property name="event_handler">impl_virtual</property>\r
-        <property name="file">uibase</property>\r
-        <property name="first_id">1000</property>\r
-        <property name="help_provider">none</property>\r
-        <property name="internationalize">1</property>\r
-        <property name="name"></property>\r
-        <property name="namespace"></property>\r
-        <property name="path">.</property>\r
-        <property name="precompiled_header"></property>\r
-        <property name="relative_path">1</property>\r
-        <property name="use_enum">0</property>\r
-        <property name="use_microsoft_bom">0</property>\r
-        <object class="Frame" expanded="0">\r
-            <property name="bg">wxSYS_COLOUR_BTNFACE</property>\r
-            <property name="center"></property>\r
-            <property name="context_help"></property>\r
-            <property name="enabled">1</property>\r
-            <property name="extra_style"></property>\r
-            <property name="fg"></property>\r
-            <property name="font"></property>\r
-            <property name="hidden">0</property>\r
-            <property name="id">wxID_MAINFRAME</property>\r
-            <property name="maximum_size"></property>\r
-            <property name="minimum_size"></property>\r
-            <property name="name">CMainFrameBase</property>\r
-            <property name="pos"></property>\r
-            <property name="size">723,484</property>\r
-            <property name="style">wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER</property>\r
-            <property name="subclass"></property>\r
-            <property name="title">Bitcoin</property>\r
-            <property name="tooltip"></property>\r
-            <property name="validator_data_type"></property>\r
-            <property name="validator_style">wxFILTER_NONE</property>\r
-            <property name="validator_type">wxDefaultValidator</property>\r
-            <property name="validator_variable"></property>\r
-            <property name="window_extra_style"></property>\r
-            <property name="window_name"></property>\r
-            <property name="window_style">wxTAB_TRAVERSAL</property>\r
-            <property name="xrc_skip_sizer">1</property>\r
-            <event name="OnActivate"></event>\r
-            <event name="OnActivateApp"></event>\r
-            <event name="OnChar"></event>\r
-            <event name="OnClose">OnClose</event>\r
-            <event name="OnEnterWindow"></event>\r
-            <event name="OnEraseBackground"></event>\r
-            <event name="OnHibernate"></event>\r
-            <event name="OnIconize">OnIconize</event>\r
-            <event name="OnIdle">OnIdle</event>\r
-            <event name="OnKeyDown"></event>\r
-            <event name="OnKeyUp"></event>\r
-            <event name="OnKillFocus"></event>\r
-            <event name="OnLeaveWindow"></event>\r
-            <event name="OnLeftDClick"></event>\r
-            <event name="OnLeftDown"></event>\r
-            <event name="OnLeftUp"></event>\r
-            <event name="OnMiddleDClick"></event>\r
-            <event name="OnMiddleDown"></event>\r
-            <event name="OnMiddleUp"></event>\r
-            <event name="OnMotion"></event>\r
-            <event name="OnMouseEvents">OnMouseEvents</event>\r
-            <event name="OnMouseWheel"></event>\r
-            <event name="OnPaint">OnPaint</event>\r
-            <event name="OnRightDClick"></event>\r
-            <event name="OnRightDown"></event>\r
-            <event name="OnRightUp"></event>\r
-            <event name="OnSetFocus"></event>\r
-            <event name="OnSize"></event>\r
-            <event name="OnUpdateUI"></event>\r
-            <object class="wxMenuBar" expanded="1">\r
-                <property name="bg"></property>\r
-                <property name="context_help"></property>\r
-                <property name="enabled">1</property>\r
-                <property name="fg"></property>\r
-                <property name="font"></property>\r
-                <property name="hidden">0</property>\r
-                <property name="id">wxID_ANY</property>\r
-                <property name="label">MyMenuBar</property>\r
-                <property name="maximum_size"></property>\r
-                <property name="minimum_size"></property>\r
-                <property name="name">m_menubar</property>\r
-                <property name="permission">protected</property>\r
-                <property name="pos"></property>\r
-                <property name="size"></property>\r
-                <property name="style"></property>\r
-                <property name="subclass"></property>\r
-                <property name="tooltip"></property>\r
-                <property name="validator_data_type"></property>\r
-                <property name="validator_style">wxFILTER_NONE</property>\r
-                <property name="validator_type">wxDefaultValidator</property>\r
-                <property name="validator_variable"></property>\r
-                <property name="window_extra_style"></property>\r
-                <property name="window_name"></property>\r
-                <property name="window_style"></property>\r
-                <event name="OnChar"></event>\r
-                <event name="OnEnterWindow"></event>\r
-                <event name="OnEraseBackground"></event>\r
-                <event name="OnKeyDown"></event>\r
-                <event name="OnKeyUp"></event>\r
-                <event name="OnKillFocus"></event>\r
-                <event name="OnLeaveWindow"></event>\r
-                <event name="OnLeftDClick"></event>\r
-                <event name="OnLeftDown"></event>\r
-                <event name="OnLeftUp"></event>\r
-                <event name="OnMiddleDClick"></event>\r
-                <event name="OnMiddleDown"></event>\r
-                <event name="OnMiddleUp"></event>\r
-                <event name="OnMotion"></event>\r
-                <event name="OnMouseEvents"></event>\r
-                <event name="OnMouseWheel"></event>\r
-                <event name="OnPaint"></event>\r
-                <event name="OnRightDClick"></event>\r
-                <event name="OnRightDown"></event>\r
-                <event name="OnRightUp"></event>\r
-                <event name="OnSetFocus"></event>\r
-                <event name="OnSize"></event>\r
-                <event name="OnUpdateUI"></event>\r
-                <object class="wxMenu" expanded="1">\r
-                    <property name="label">&amp;File</property>\r
-                    <property name="name">m_menuFile</property>\r
-                    <property name="permission">protected</property>\r
-                    <object class="wxMenuItem" expanded="1">\r
-                        <property name="bitmap"></property>\r
-                        <property name="checked">0</property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="help"></property>\r
-                        <property name="id">wxID_EXIT</property>\r
-                        <property name="kind">wxITEM_NORMAL</property>\r
-                        <property name="label">E&amp;xit</property>\r
-                        <property name="name">m_menuFileExit</property>\r
-                        <property name="permission">none</property>\r
-                        <property name="shortcut"></property>\r
-                        <property name="unchecked_bitmap"></property>\r
-                        <event name="OnMenuSelection">OnMenuFileExit</event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                </object>\r
-                <object class="wxMenu" expanded="1">\r
-                    <property name="label">&amp;Settings</property>\r
-                    <property name="name">m_menuOptions</property>\r
-                    <property name="permission">public</property>\r
-                    <object class="wxMenuItem" expanded="1">\r
-                        <property name="bitmap"></property>\r
-                        <property name="checked">0</property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="help"></property>\r
-                        <property name="id">wxID_ANY</property>\r
-                        <property name="kind">wxITEM_NORMAL</property>\r
-                        <property name="label">&amp;Your Receiving Addresses...</property>\r
-                        <property name="name">m_menuOptionsChangeYourAddress</property>\r
-                        <property name="permission">none</property>\r
-                        <property name="shortcut"></property>\r
-                        <property name="unchecked_bitmap"></property>\r
-                        <event name="OnMenuSelection">OnMenuOptionsChangeYourAddress</event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                    <object class="wxMenuItem" expanded="1">\r
-                        <property name="bitmap"></property>\r
-                        <property name="checked">0</property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="help"></property>\r
-                        <property name="id">wxID_ANY</property>\r
-                        <property name="kind">wxITEM_NORMAL</property>\r
-                        <property name="label">&amp;Encrypt Wallet...</property>\r
-                        <property name="name">m_menuOptionsEncryptWallet</property>\r
-                        <property name="permission">public</property>\r
-                        <property name="shortcut"></property>\r
-                        <property name="unchecked_bitmap"></property>\r
-                        <event name="OnMenuSelection">OnMenuOptionsEncryptWallet</event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                    <object class="wxMenuItem" expanded="1">\r
-                        <property name="bitmap"></property>\r
-                        <property name="checked">0</property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="help"></property>\r
-                        <property name="id">wxID_ANY</property>\r
-                        <property name="kind">wxITEM_NORMAL</property>\r
-                        <property name="label">&amp;Change Wallet Encryption Passphrase...</property>\r
-                        <property name="name">m_menuOptionsChangeWalletPassphrase</property>\r
-                        <property name="permission">public</property>\r
-                        <property name="shortcut"></property>\r
-                        <property name="unchecked_bitmap"></property>\r
-                        <event name="OnMenuSelection">OnMenuOptionsChangeWalletPassphrase</event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                    <object class="wxMenuItem" expanded="1">\r
-                        <property name="bitmap"></property>\r
-                        <property name="checked">0</property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="help"></property>\r
-                        <property name="id">wxID_PREFERENCES</property>\r
-                        <property name="kind">wxITEM_NORMAL</property>\r
-                        <property name="label">&amp;Options...</property>\r
-                        <property name="name">m_menuOptionsOptions</property>\r
-                        <property name="permission">none</property>\r
-                        <property name="shortcut"></property>\r
-                        <property name="unchecked_bitmap"></property>\r
-                        <event name="OnMenuSelection">OnMenuOptionsOptions</event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                </object>\r
-                <object class="wxMenu" expanded="1">\r
-                    <property name="label">&amp;Help</property>\r
-                    <property name="name">m_menuHelp</property>\r
-                    <property name="permission">protected</property>\r
-                    <object class="wxMenuItem" expanded="1">\r
-                        <property name="bitmap"></property>\r
-                        <property name="checked">0</property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="help"></property>\r
-                        <property name="id">wxID_ABOUT</property>\r
-                        <property name="kind">wxITEM_NORMAL</property>\r
-                        <property name="label">&amp;About...</property>\r
-                        <property name="name">m_menuHelpAbout</property>\r
-                        <property name="permission">none</property>\r
-                        <property name="shortcut"></property>\r
-                        <property name="unchecked_bitmap"></property>\r
-                        <event name="OnMenuSelection">OnMenuHelpAbout</event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-            <object class="wxToolBar" expanded="1">\r
-                <property name="bg"></property>\r
-                <property name="bitmapsize">20,20</property>\r
-                <property name="context_help"></property>\r
-                <property name="enabled">1</property>\r
-                <property name="fg"></property>\r
-                <property name="font">,90,90,-1,70,0</property>\r
-                <property name="hidden">0</property>\r
-                <property name="id">wxID_ANY</property>\r
-                <property name="margins"></property>\r
-                <property name="maximum_size"></property>\r
-                <property name="minimum_size"></property>\r
-                <property name="name">m_toolBar</property>\r
-                <property name="packing">1</property>\r
-                <property name="permission">protected</property>\r
-                <property name="pos"></property>\r
-                <property name="separation">1</property>\r
-                <property name="size">-1,-1</property>\r
-                <property name="style">wxTB_FLAT|wxTB_HORZ_TEXT</property>\r
-                <property name="subclass"></property>\r
-                <property name="tooltip"></property>\r
-                <property name="validator_data_type"></property>\r
-                <property name="validator_style">wxFILTER_NONE</property>\r
-                <property name="validator_type">wxDefaultValidator</property>\r
-                <property name="validator_variable"></property>\r
-                <property name="window_extra_style"></property>\r
-                <property name="window_name"></property>\r
-                <property name="window_style"></property>\r
-                <event name="OnChar"></event>\r
-                <event name="OnEnterWindow"></event>\r
-                <event name="OnEraseBackground"></event>\r
-                <event name="OnKeyDown"></event>\r
-                <event name="OnKeyUp"></event>\r
-                <event name="OnKillFocus"></event>\r
-                <event name="OnLeaveWindow"></event>\r
-                <event name="OnLeftDClick"></event>\r
-                <event name="OnLeftDown"></event>\r
-                <event name="OnLeftUp"></event>\r
-                <event name="OnMiddleDClick"></event>\r
-                <event name="OnMiddleDown"></event>\r
-                <event name="OnMiddleUp"></event>\r
-                <event name="OnMotion"></event>\r
-                <event name="OnMouseEvents"></event>\r
-                <event name="OnMouseWheel"></event>\r
-                <event name="OnPaint"></event>\r
-                <event name="OnRightDClick"></event>\r
-                <event name="OnRightDown"></event>\r
-                <event name="OnRightUp"></event>\r
-                <event name="OnSetFocus"></event>\r
-                <event name="OnSize"></event>\r
-                <event name="OnUpdateUI"></event>\r
-                <object class="tool" expanded="1">\r
-                    <property name="bitmap">xpm/send20.xpm; Load From File</property>\r
-                    <property name="id">wxID_BUTTONSEND</property>\r
-                    <property name="kind">wxITEM_NORMAL</property>\r
-                    <property name="label">Send Coins</property>\r
-                    <property name="name">m_tool1</property>\r
-                    <property name="statusbar"></property>\r
-                    <property name="tooltip"></property>\r
-                    <event name="OnMenuSelection"></event>\r
-                    <event name="OnToolClicked">OnButtonSend</event>\r
-                    <event name="OnToolEnter"></event>\r
-                    <event name="OnToolRClicked"></event>\r
-                    <event name="OnUpdateUI"></event>\r
-                </object>\r
-                <object class="tool" expanded="1">\r
-                    <property name="bitmap">xpm/addressbook20.xpm; Load From File</property>\r
-                    <property name="id">wxID_BUTTONRECEIVE</property>\r
-                    <property name="kind">wxITEM_NORMAL</property>\r
-                    <property name="label">Address Book</property>\r
-                    <property name="name">m_tool2</property>\r
-                    <property name="statusbar"></property>\r
-                    <property name="tooltip"></property>\r
-                    <event name="OnMenuSelection"></event>\r
-                    <event name="OnToolClicked">OnButtonAddressBook</event>\r
-                    <event name="OnToolEnter"></event>\r
-                    <event name="OnToolRClicked"></event>\r
-                    <event name="OnUpdateUI"></event>\r
-                </object>\r
-            </object>\r
-            <object class="wxStatusBar" expanded="1">\r
-                <property name="bg"></property>\r
-                <property name="context_help"></property>\r
-                <property name="enabled">1</property>\r
-                <property name="fg"></property>\r
-                <property name="fields">1</property>\r
-                <property name="font"></property>\r
-                <property name="hidden">0</property>\r
-                <property name="id">wxID_ANY</property>\r
-                <property name="maximum_size"></property>\r
-                <property name="minimum_size"></property>\r
-                <property name="name">m_statusBar</property>\r
-                <property name="permission">public</property>\r
-                <property name="pos"></property>\r
-                <property name="size"></property>\r
-                <property name="style">wxST_SIZEGRIP</property>\r
-                <property name="subclass"></property>\r
-                <property name="tooltip"></property>\r
-                <property name="validator_data_type"></property>\r
-                <property name="validator_style">wxFILTER_NONE</property>\r
-                <property name="validator_type">wxDefaultValidator</property>\r
-                <property name="validator_variable"></property>\r
-                <property name="window_extra_style"></property>\r
-                <property name="window_name"></property>\r
-                <property name="window_style"></property>\r
-                <event name="OnChar"></event>\r
-                <event name="OnEnterWindow"></event>\r
-                <event name="OnEraseBackground"></event>\r
-                <event name="OnKeyDown"></event>\r
-                <event name="OnKeyUp"></event>\r
-                <event name="OnKillFocus"></event>\r
-                <event name="OnLeaveWindow"></event>\r
-                <event name="OnLeftDClick"></event>\r
-                <event name="OnLeftDown"></event>\r
-                <event name="OnLeftUp"></event>\r
-                <event name="OnMiddleDClick"></event>\r
-                <event name="OnMiddleDown"></event>\r
-                <event name="OnMiddleUp"></event>\r
-                <event name="OnMotion"></event>\r
-                <event name="OnMouseEvents"></event>\r
-                <event name="OnMouseWheel"></event>\r
-                <event name="OnPaint"></event>\r
-                <event name="OnRightDClick"></event>\r
-                <event name="OnRightDown"></event>\r
-                <event name="OnRightUp"></event>\r
-                <event name="OnSetFocus"></event>\r
-                <event name="OnSize"></event>\r
-                <event name="OnUpdateUI"></event>\r
-            </object>\r
-            <object class="wxBoxSizer" expanded="1">\r
-                <property name="minimum_size"></property>\r
-                <property name="name">bSizer2</property>\r
-                <property name="orient">wxVERTICAL</property>\r
-                <property name="permission">none</property>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="spacer" expanded="1">\r
-                        <property name="height">2</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="width">0</property>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND|wxRIGHT|wxLEFT</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer85</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxLEFT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxStaticText" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="label">Your Bitcoin Address:</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_staticText32</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <property name="wrap">-1</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxTextCtrl" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_TEXTCTRLADDRESS</property>\r
-                                <property name="maximum_size">-1,-1</property>\r
-                                <property name="maxlength">0</property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_textCtrlAddress</property>\r
-                                <property name="permission">public</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">340,-1</property>\r
-                                <property name="style">wxTE_READONLY</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="value"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown">OnKeyDown</event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents">OnMouseEventsAddress</event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus">OnSetFocusAddress</event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnText"></event>\r
-                                <event name="OnTextEnter"></event>\r
-                                <event name="OnTextMaxLen"></event>\r
-                                <event name="OnTextURL"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxRIGHT|wxALIGN_CENTER_VERTICAL</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONNEW</property>\r
-                                <property name="label"> &amp;New... </property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_buttonNew</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style">wxBU_EXACTFIT</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonNew</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONCOPY</property>\r
-                                <property name="label"> &amp;Copy to Clipboard </property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_buttonCopy</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style">wxBU_EXACTFIT</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonCopy</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer3</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND|wxALL</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="wxBoxSizer" expanded="1">\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">bSizer66</property>\r
-                                <property name="orient">wxHORIZONTAL</property>\r
-                                <property name="permission">none</property>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">5</property>\r
-                                    <property name="flag">wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT</property>\r
-                                    <property name="proportion">0</property>\r
-                                    <object class="wxStaticText" expanded="1">\r
-                                        <property name="bg"></property>\r
-                                        <property name="context_help"></property>\r
-                                        <property name="enabled">1</property>\r
-                                        <property name="fg"></property>\r
-                                        <property name="font"></property>\r
-                                        <property name="hidden">0</property>\r
-                                        <property name="id">wxID_ANY</property>\r
-                                        <property name="label">Balance:</property>\r
-                                        <property name="maximum_size"></property>\r
-                                        <property name="minimum_size"></property>\r
-                                        <property name="name">m_staticText41</property>\r
-                                        <property name="permission">protected</property>\r
-                                        <property name="pos"></property>\r
-                                        <property name="size">-1,15</property>\r
-                                        <property name="style"></property>\r
-                                        <property name="subclass"></property>\r
-                                        <property name="tooltip"></property>\r
-                                        <property name="validator_data_type"></property>\r
-                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                        <property name="validator_variable"></property>\r
-                                        <property name="window_extra_style"></property>\r
-                                        <property name="window_name"></property>\r
-                                        <property name="window_style"></property>\r
-                                        <property name="wrap">-1</property>\r
-                                        <event name="OnChar"></event>\r
-                                        <event name="OnEnterWindow"></event>\r
-                                        <event name="OnEraseBackground"></event>\r
-                                        <event name="OnKeyDown"></event>\r
-                                        <event name="OnKeyUp"></event>\r
-                                        <event name="OnKillFocus"></event>\r
-                                        <event name="OnLeaveWindow"></event>\r
-                                        <event name="OnLeftDClick"></event>\r
-                                        <event name="OnLeftDown"></event>\r
-                                        <event name="OnLeftUp"></event>\r
-                                        <event name="OnMiddleDClick"></event>\r
-                                        <event name="OnMiddleDown"></event>\r
-                                        <event name="OnMiddleUp"></event>\r
-                                        <event name="OnMotion"></event>\r
-                                        <event name="OnMouseEvents"></event>\r
-                                        <event name="OnMouseWheel"></event>\r
-                                        <event name="OnPaint"></event>\r
-                                        <event name="OnRightDClick"></event>\r
-                                        <event name="OnRightDown"></event>\r
-                                        <event name="OnRightUp"></event>\r
-                                        <event name="OnSetFocus"></event>\r
-                                        <event name="OnSize"></event>\r
-                                        <event name="OnUpdateUI"></event>\r
-                                    </object>\r
-                                </object>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">5</property>\r
-                                    <property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>\r
-                                    <property name="proportion">0</property>\r
-                                    <object class="wxStaticText" expanded="1">\r
-                                        <property name="bg">255,255,255</property>\r
-                                        <property name="context_help"></property>\r
-                                        <property name="enabled">1</property>\r
-                                        <property name="fg"></property>\r
-                                        <property name="font">,90,90,8,70,0</property>\r
-                                        <property name="hidden">0</property>\r
-                                        <property name="id">wxID_ANY</property>\r
-                                        <property name="label"></property>\r
-                                        <property name="maximum_size"></property>\r
-                                        <property name="minimum_size"></property>\r
-                                        <property name="name">m_staticTextBalance</property>\r
-                                        <property name="permission">protected</property>\r
-                                        <property name="pos"></property>\r
-                                        <property name="size">120,15</property>\r
-                                        <property name="style">wxALIGN_RIGHT|wxST_NO_AUTORESIZE</property>\r
-                                        <property name="subclass"></property>\r
-                                        <property name="tooltip"></property>\r
-                                        <property name="validator_data_type"></property>\r
-                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                        <property name="validator_variable"></property>\r
-                                        <property name="window_extra_style"></property>\r
-                                        <property name="window_name"></property>\r
-                                        <property name="window_style"></property>\r
-                                        <property name="wrap">-1</property>\r
-                                        <event name="OnChar"></event>\r
-                                        <event name="OnEnterWindow"></event>\r
-                                        <event name="OnEraseBackground"></event>\r
-                                        <event name="OnKeyDown"></event>\r
-                                        <event name="OnKeyUp"></event>\r
-                                        <event name="OnKillFocus"></event>\r
-                                        <event name="OnLeaveWindow"></event>\r
-                                        <event name="OnLeftDClick"></event>\r
-                                        <event name="OnLeftDown"></event>\r
-                                        <event name="OnLeftUp"></event>\r
-                                        <event name="OnMiddleDClick"></event>\r
-                                        <event name="OnMiddleDown"></event>\r
-                                        <event name="OnMiddleUp"></event>\r
-                                        <event name="OnMotion"></event>\r
-                                        <event name="OnMouseEvents"></event>\r
-                                        <event name="OnMouseWheel"></event>\r
-                                        <event name="OnPaint"></event>\r
-                                        <event name="OnRightDClick"></event>\r
-                                        <event name="OnRightDown"></event>\r
-                                        <event name="OnRightUp"></event>\r
-                                        <event name="OnSetFocus"></event>\r
-                                        <event name="OnSize"></event>\r
-                                        <event name="OnUpdateUI"></event>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALIGN_BOTTOM|wxTOP|wxRIGHT|wxLEFT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxChoice" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="choices">&quot; All&quot; &quot; Sent&quot; &quot; Received&quot; &quot; In Progress&quot;</property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">1</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_choiceFilter</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="selection">0</property>\r
-                                <property name="size">110,-1</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnChoice"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">1</property>\r
-                    <object class="wxNotebook" expanded="1">\r
-                        <property name="bg"></property>\r
-                        <property name="bitmapsize"></property>\r
-                        <property name="context_help"></property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="fg"></property>\r
-                        <property name="font"></property>\r
-                        <property name="hidden">0</property>\r
-                        <property name="id">wxID_ANY</property>\r
-                        <property name="maximum_size"></property>\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">m_notebook</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="pos"></property>\r
-                        <property name="size"></property>\r
-                        <property name="style"></property>\r
-                        <property name="subclass"></property>\r
-                        <property name="tooltip"></property>\r
-                        <property name="validator_data_type"></property>\r
-                        <property name="validator_style">wxFILTER_NONE</property>\r
-                        <property name="validator_type">wxDefaultValidator</property>\r
-                        <property name="validator_variable"></property>\r
-                        <property name="window_extra_style"></property>\r
-                        <property name="window_name"></property>\r
-                        <property name="window_style"></property>\r
-                        <event name="OnChar"></event>\r
-                        <event name="OnEnterWindow"></event>\r
-                        <event name="OnEraseBackground"></event>\r
-                        <event name="OnKeyDown"></event>\r
-                        <event name="OnKeyUp"></event>\r
-                        <event name="OnKillFocus"></event>\r
-                        <event name="OnLeaveWindow"></event>\r
-                        <event name="OnLeftDClick"></event>\r
-                        <event name="OnLeftDown"></event>\r
-                        <event name="OnLeftUp"></event>\r
-                        <event name="OnMiddleDClick"></event>\r
-                        <event name="OnMiddleDown"></event>\r
-                        <event name="OnMiddleUp"></event>\r
-                        <event name="OnMotion"></event>\r
-                        <event name="OnMouseEvents"></event>\r
-                        <event name="OnMouseWheel"></event>\r
-                        <event name="OnNotebookPageChanged">OnNotebookPageChanged</event>\r
-                        <event name="OnNotebookPageChanging"></event>\r
-                        <event name="OnPaint"></event>\r
-                        <event name="OnRightDClick"></event>\r
-                        <event name="OnRightDown"></event>\r
-                        <event name="OnRightUp"></event>\r
-                        <event name="OnSetFocus"></event>\r
-                        <event name="OnSize"></event>\r
-                        <event name="OnUpdateUI"></event>\r
-                        <object class="notebookpage" expanded="1">\r
-                            <property name="bitmap"></property>\r
-                            <property name="label">All Transactions</property>\r
-                            <property name="select">1</property>\r
-                            <object class="wxPanel" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_panel9</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style">wxTAB_TRAVERSAL</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                                <object class="wxBoxSizer" expanded="1">\r
-                                    <property name="minimum_size"></property>\r
-                                    <property name="name">bSizer11</property>\r
-                                    <property name="orient">wxVERTICAL</property>\r
-                                    <property name="permission">none</property>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxEXPAND</property>\r
-                                        <property name="proportion">1</property>\r
-                                        <object class="wxListCtrl" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">0</property>\r
-                                            <property name="id">wxID_ANY</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_listCtrlAll</property>\r
-                                            <property name="permission">public</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="style">wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING</property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style"></property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnListBeginDrag"></event>\r
-                                            <event name="OnListBeginLabelEdit"></event>\r
-                                            <event name="OnListBeginRDrag"></event>\r
-                                            <event name="OnListCacheHint"></event>\r
-                                            <event name="OnListColBeginDrag">OnListColBeginDrag</event>\r
-                                            <event name="OnListColClick"></event>\r
-                                            <event name="OnListColDragging"></event>\r
-                                            <event name="OnListColEndDrag"></event>\r
-                                            <event name="OnListColRightClick"></event>\r
-                                            <event name="OnListDeleteAllItems"></event>\r
-                                            <event name="OnListDeleteItem"></event>\r
-                                            <event name="OnListEndLabelEdit"></event>\r
-                                            <event name="OnListInsertItem"></event>\r
-                                            <event name="OnListItemActivated">OnListItemActivated</event>\r
-                                            <event name="OnListItemDeselected"></event>\r
-                                            <event name="OnListItemFocused"></event>\r
-                                            <event name="OnListItemMiddleClick"></event>\r
-                                            <event name="OnListItemRightClick"></event>\r
-                                            <event name="OnListItemSelected"></event>\r
-                                            <event name="OnListKeyDown"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint">OnPaintListCtrl</event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                        </object>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                        <object class="notebookpage" expanded="1">\r
-                            <property name="bitmap"></property>\r
-                            <property name="label">Sent/Received</property>\r
-                            <property name="select">0</property>\r
-                            <object class="wxPanel" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_panel91</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style">wxTAB_TRAVERSAL</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                                <object class="wxBoxSizer" expanded="1">\r
-                                    <property name="minimum_size"></property>\r
-                                    <property name="name">bSizer111</property>\r
-                                    <property name="orient">wxVERTICAL</property>\r
-                                    <property name="permission">none</property>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxEXPAND</property>\r
-                                        <property name="proportion">1</property>\r
-                                        <object class="wxListCtrl" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">0</property>\r
-                                            <property name="id">wxID_ANY</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_listCtrlSentReceived</property>\r
-                                            <property name="permission">public</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="style">wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING</property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style"></property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnListBeginDrag"></event>\r
-                                            <event name="OnListBeginLabelEdit"></event>\r
-                                            <event name="OnListBeginRDrag"></event>\r
-                                            <event name="OnListCacheHint"></event>\r
-                                            <event name="OnListColBeginDrag">OnListColBeginDrag</event>\r
-                                            <event name="OnListColClick"></event>\r
-                                            <event name="OnListColDragging"></event>\r
-                                            <event name="OnListColEndDrag"></event>\r
-                                            <event name="OnListColRightClick"></event>\r
-                                            <event name="OnListDeleteAllItems"></event>\r
-                                            <event name="OnListDeleteItem"></event>\r
-                                            <event name="OnListEndLabelEdit"></event>\r
-                                            <event name="OnListInsertItem"></event>\r
-                                            <event name="OnListItemActivated">OnListItemActivated</event>\r
-                                            <event name="OnListItemDeselected"></event>\r
-                                            <event name="OnListItemFocused"></event>\r
-                                            <event name="OnListItemMiddleClick"></event>\r
-                                            <event name="OnListItemRightClick"></event>\r
-                                            <event name="OnListItemSelected"></event>\r
-                                            <event name="OnListKeyDown"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint">OnPaintListCtrl</event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                        </object>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                        <object class="notebookpage" expanded="1">\r
-                            <property name="bitmap"></property>\r
-                            <property name="label">Sent</property>\r
-                            <property name="select">0</property>\r
-                            <object class="wxPanel" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_panel92</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style">wxTAB_TRAVERSAL</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                                <object class="wxBoxSizer" expanded="1">\r
-                                    <property name="minimum_size"></property>\r
-                                    <property name="name">bSizer112</property>\r
-                                    <property name="orient">wxVERTICAL</property>\r
-                                    <property name="permission">none</property>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxEXPAND</property>\r
-                                        <property name="proportion">1</property>\r
-                                        <object class="wxListCtrl" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">0</property>\r
-                                            <property name="id">wxID_ANY</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_listCtrlSent</property>\r
-                                            <property name="permission">public</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="style">wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING</property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style"></property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnListBeginDrag"></event>\r
-                                            <event name="OnListBeginLabelEdit"></event>\r
-                                            <event name="OnListBeginRDrag"></event>\r
-                                            <event name="OnListCacheHint"></event>\r
-                                            <event name="OnListColBeginDrag">OnListColBeginDrag</event>\r
-                                            <event name="OnListColClick"></event>\r
-                                            <event name="OnListColDragging"></event>\r
-                                            <event name="OnListColEndDrag"></event>\r
-                                            <event name="OnListColRightClick"></event>\r
-                                            <event name="OnListDeleteAllItems"></event>\r
-                                            <event name="OnListDeleteItem"></event>\r
-                                            <event name="OnListEndLabelEdit"></event>\r
-                                            <event name="OnListInsertItem"></event>\r
-                                            <event name="OnListItemActivated">OnListItemActivated</event>\r
-                                            <event name="OnListItemDeselected"></event>\r
-                                            <event name="OnListItemFocused"></event>\r
-                                            <event name="OnListItemMiddleClick"></event>\r
-                                            <event name="OnListItemRightClick"></event>\r
-                                            <event name="OnListItemSelected"></event>\r
-                                            <event name="OnListKeyDown"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint">OnPaintListCtrl</event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                        </object>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                        <object class="notebookpage" expanded="1">\r
-                            <property name="bitmap"></property>\r
-                            <property name="label">Received</property>\r
-                            <property name="select">0</property>\r
-                            <object class="wxPanel" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_panel93</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style">wxTAB_TRAVERSAL</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                                <object class="wxBoxSizer" expanded="1">\r
-                                    <property name="minimum_size"></property>\r
-                                    <property name="name">bSizer113</property>\r
-                                    <property name="orient">wxVERTICAL</property>\r
-                                    <property name="permission">none</property>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxEXPAND</property>\r
-                                        <property name="proportion">1</property>\r
-                                        <object class="wxListCtrl" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">0</property>\r
-                                            <property name="id">wxID_ANY</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_listCtrlReceived</property>\r
-                                            <property name="permission">public</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="style">wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING</property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style"></property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnListBeginDrag"></event>\r
-                                            <event name="OnListBeginLabelEdit"></event>\r
-                                            <event name="OnListBeginRDrag"></event>\r
-                                            <event name="OnListCacheHint"></event>\r
-                                            <event name="OnListColBeginDrag">OnListColBeginDrag</event>\r
-                                            <event name="OnListColClick"></event>\r
-                                            <event name="OnListColDragging"></event>\r
-                                            <event name="OnListColEndDrag"></event>\r
-                                            <event name="OnListColRightClick"></event>\r
-                                            <event name="OnListDeleteAllItems"></event>\r
-                                            <event name="OnListDeleteItem"></event>\r
-                                            <event name="OnListEndLabelEdit"></event>\r
-                                            <event name="OnListInsertItem"></event>\r
-                                            <event name="OnListItemActivated">OnListItemActivated</event>\r
-                                            <event name="OnListItemDeselected"></event>\r
-                                            <event name="OnListItemFocused"></event>\r
-                                            <event name="OnListItemMiddleClick"></event>\r
-                                            <event name="OnListItemRightClick"></event>\r
-                                            <event name="OnListItemSelected"></event>\r
-                                            <event name="OnListKeyDown"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint">OnPaintListCtrl</event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                        </object>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-        </object>\r
-        <object class="Dialog" expanded="0">\r
-            <property name="bg"></property>\r
-            <property name="center"></property>\r
-            <property name="context_help"></property>\r
-            <property name="enabled">1</property>\r
-            <property name="extra_style"></property>\r
-            <property name="fg"></property>\r
-            <property name="font"></property>\r
-            <property name="hidden">0</property>\r
-            <property name="id">wxID_ANY</property>\r
-            <property name="maximum_size"></property>\r
-            <property name="minimum_size"></property>\r
-            <property name="name">CTxDetailsDialogBase</property>\r
-            <property name="pos"></property>\r
-            <property name="size">620,450</property>\r
-            <property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>\r
-            <property name="subclass"></property>\r
-            <property name="title">Transaction Details</property>\r
-            <property name="tooltip"></property>\r
-            <property name="validator_data_type"></property>\r
-            <property name="validator_style">wxFILTER_NONE</property>\r
-            <property name="validator_type">wxDefaultValidator</property>\r
-            <property name="validator_variable"></property>\r
-            <property name="window_extra_style"></property>\r
-            <property name="window_name"></property>\r
-            <property name="window_style"></property>\r
-            <event name="OnActivate"></event>\r
-            <event name="OnActivateApp"></event>\r
-            <event name="OnChar"></event>\r
-            <event name="OnClose"></event>\r
-            <event name="OnEnterWindow"></event>\r
-            <event name="OnEraseBackground"></event>\r
-            <event name="OnHibernate"></event>\r
-            <event name="OnIconize"></event>\r
-            <event name="OnIdle"></event>\r
-            <event name="OnInitDialog"></event>\r
-            <event name="OnKeyDown"></event>\r
-            <event name="OnKeyUp"></event>\r
-            <event name="OnKillFocus"></event>\r
-            <event name="OnLeaveWindow"></event>\r
-            <event name="OnLeftDClick"></event>\r
-            <event name="OnLeftDown"></event>\r
-            <event name="OnLeftUp"></event>\r
-            <event name="OnMiddleDClick"></event>\r
-            <event name="OnMiddleDown"></event>\r
-            <event name="OnMiddleUp"></event>\r
-            <event name="OnMotion"></event>\r
-            <event name="OnMouseEvents"></event>\r
-            <event name="OnMouseWheel"></event>\r
-            <event name="OnPaint"></event>\r
-            <event name="OnRightDClick"></event>\r
-            <event name="OnRightDown"></event>\r
-            <event name="OnRightUp"></event>\r
-            <event name="OnSetFocus"></event>\r
-            <event name="OnSize"></event>\r
-            <event name="OnUpdateUI"></event>\r
-            <object class="wxBoxSizer" expanded="1">\r
-                <property name="minimum_size"></property>\r
-                <property name="name">bSizer64</property>\r
-                <property name="orient">wxVERTICAL</property>\r
-                <property name="permission">none</property>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">1</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer66</property>\r
-                        <property name="orient">wxVERTICAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxEXPAND</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="wxHtmlWindow" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_htmlWin</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style">wxHW_SCROLLBAR_AUTO</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnHtmlCellClicked"></event>\r
-                                <event name="OnHtmlCellHover"></event>\r
-                                <event name="OnHtmlLinkClicked"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxALIGN_RIGHT</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer65</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_OK</property>\r
-                                <property name="label">OK</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_buttonOK</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonOK</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-        </object>\r
-        <object class="Dialog" expanded="0">\r
-            <property name="bg"></property>\r
-            <property name="center"></property>\r
-            <property name="context_help"></property>\r
-            <property name="enabled">1</property>\r
-            <property name="extra_style"></property>\r
-            <property name="fg"></property>\r
-            <property name="font"></property>\r
-            <property name="hidden">0</property>\r
-            <property name="id">wxID_ANY</property>\r
-            <property name="maximum_size"></property>\r
-            <property name="minimum_size"></property>\r
-            <property name="name">COptionsDialogBase</property>\r
-            <property name="pos"></property>\r
-            <property name="size">540,360</property>\r
-            <property name="style">wxDEFAULT_DIALOG_STYLE</property>\r
-            <property name="subclass"></property>\r
-            <property name="title">Options</property>\r
-            <property name="tooltip"></property>\r
-            <property name="validator_data_type"></property>\r
-            <property name="validator_style">wxFILTER_NONE</property>\r
-            <property name="validator_type">wxDefaultValidator</property>\r
-            <property name="validator_variable"></property>\r
-            <property name="window_extra_style"></property>\r
-            <property name="window_name"></property>\r
-            <property name="window_style"></property>\r
-            <event name="OnActivate"></event>\r
-            <event name="OnActivateApp"></event>\r
-            <event name="OnChar"></event>\r
-            <event name="OnClose"></event>\r
-            <event name="OnEnterWindow"></event>\r
-            <event name="OnEraseBackground"></event>\r
-            <event name="OnHibernate"></event>\r
-            <event name="OnIconize"></event>\r
-            <event name="OnIdle"></event>\r
-            <event name="OnInitDialog"></event>\r
-            <event name="OnKeyDown"></event>\r
-            <event name="OnKeyUp"></event>\r
-            <event name="OnKillFocus"></event>\r
-            <event name="OnLeaveWindow"></event>\r
-            <event name="OnLeftDClick"></event>\r
-            <event name="OnLeftDown"></event>\r
-            <event name="OnLeftUp"></event>\r
-            <event name="OnMiddleDClick"></event>\r
-            <event name="OnMiddleDown"></event>\r
-            <event name="OnMiddleUp"></event>\r
-            <event name="OnMotion"></event>\r
-            <event name="OnMouseEvents"></event>\r
-            <event name="OnMouseWheel"></event>\r
-            <event name="OnPaint"></event>\r
-            <event name="OnRightDClick"></event>\r
-            <event name="OnRightDown"></event>\r
-            <event name="OnRightUp"></event>\r
-            <event name="OnSetFocus"></event>\r
-            <event name="OnSize"></event>\r
-            <event name="OnUpdateUI"></event>\r
-            <object class="wxBoxSizer" expanded="1">\r
-                <property name="minimum_size"></property>\r
-                <property name="name">bSizer55</property>\r
-                <property name="orient">wxVERTICAL</property>\r
-                <property name="permission">none</property>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">9</property>\r
-                    <property name="flag">wxEXPAND|wxALL</property>\r
-                    <property name="proportion">1</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer66</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND|wxRIGHT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxListBox" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="choices"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_listBox</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">110,-1</property>\r
-                                <property name="style">wxLB_NEEDED_SB|wxLB_SINGLE</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnListBox">OnListBox</event>\r
-                                <event name="OnListBoxDClick"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND|wxLEFT</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="wxScrolledWindow" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_scrolledWindow</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="scroll_rate_x">5</property>\r
-                                <property name="scroll_rate_y">5</property>\r
-                                <property name="size"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                                <object class="wxBoxSizer" expanded="1">\r
-                                    <property name="minimum_size"></property>\r
-                                    <property name="name">bSizer63</property>\r
-                                    <property name="orient">wxVERTICAL</property>\r
-                                    <property name="permission">none</property>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxEXPAND</property>\r
-                                        <property name="proportion">0</property>\r
-                                        <object class="wxPanel" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">0</property>\r
-                                            <property name="id">wxID_ANY</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_panelMain</property>\r
-                                            <property name="permission">protected</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style">wxTAB_TRAVERSAL</property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint"></event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                            <object class="wxBoxSizer" expanded="1">\r
-                                                <property name="minimum_size"></property>\r
-                                                <property name="name">bSizer69</property>\r
-                                                <property name="orient">wxVERTICAL</property>\r
-                                                <property name="permission">none</property>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxEXPAND</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="spacer" expanded="1">\r
-                                                        <property name="height">16</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="width">0</property>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxALL</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxCheckBox" expanded="1">\r
-                                                        <property name="bg"></property>\r
-                                                        <property name="checked">0</property>\r
-                                                        <property name="context_help"></property>\r
-                                                        <property name="enabled">1</property>\r
-                                                        <property name="fg"></property>\r
-                                                        <property name="font"></property>\r
-                                                        <property name="hidden">0</property>\r
-                                                        <property name="id">wxID_ANY</property>\r
-                                                        <property name="label">&amp;Start Bitcoin on system startup</property>\r
-                                                        <property name="maximum_size"></property>\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">m_checkBoxStartOnSystemStartup</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="pos"></property>\r
-                                                        <property name="size"></property>\r
-                                                        <property name="style"></property>\r
-                                                        <property name="subclass"></property>\r
-                                                        <property name="tooltip"></property>\r
-                                                        <property name="validator_data_type"></property>\r
-                                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                                        <property name="validator_variable"></property>\r
-                                                        <property name="window_extra_style"></property>\r
-                                                        <property name="window_name"></property>\r
-                                                        <property name="window_style"></property>\r
-                                                        <event name="OnChar"></event>\r
-                                                        <event name="OnCheckBox"></event>\r
-                                                        <event name="OnEnterWindow"></event>\r
-                                                        <event name="OnEraseBackground"></event>\r
-                                                        <event name="OnKeyDown"></event>\r
-                                                        <event name="OnKeyUp"></event>\r
-                                                        <event name="OnKillFocus"></event>\r
-                                                        <event name="OnLeaveWindow"></event>\r
-                                                        <event name="OnLeftDClick"></event>\r
-                                                        <event name="OnLeftDown"></event>\r
-                                                        <event name="OnLeftUp"></event>\r
-                                                        <event name="OnMiddleDClick"></event>\r
-                                                        <event name="OnMiddleDown"></event>\r
-                                                        <event name="OnMiddleUp"></event>\r
-                                                        <event name="OnMotion"></event>\r
-                                                        <event name="OnMouseEvents"></event>\r
-                                                        <event name="OnMouseWheel"></event>\r
-                                                        <event name="OnPaint"></event>\r
-                                                        <event name="OnRightDClick"></event>\r
-                                                        <event name="OnRightDown"></event>\r
-                                                        <event name="OnRightUp"></event>\r
-                                                        <event name="OnSetFocus"></event>\r
-                                                        <event name="OnSize"></event>\r
-                                                        <event name="OnUpdateUI"></event>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxALL</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxCheckBox" expanded="1">\r
-                                                        <property name="bg"></property>\r
-                                                        <property name="checked">0</property>\r
-                                                        <property name="context_help"></property>\r
-                                                        <property name="enabled">1</property>\r
-                                                        <property name="fg"></property>\r
-                                                        <property name="font"></property>\r
-                                                        <property name="hidden">0</property>\r
-                                                        <property name="id">wxID_ANY</property>\r
-                                                        <property name="label">&amp;Minimize to the tray instead of the taskbar</property>\r
-                                                        <property name="maximum_size"></property>\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">m_checkBoxMinimizeToTray</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="pos"></property>\r
-                                                        <property name="size"></property>\r
-                                                        <property name="style"></property>\r
-                                                        <property name="subclass"></property>\r
-                                                        <property name="tooltip"></property>\r
-                                                        <property name="validator_data_type"></property>\r
-                                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                                        <property name="validator_variable"></property>\r
-                                                        <property name="window_extra_style"></property>\r
-                                                        <property name="window_name"></property>\r
-                                                        <property name="window_style"></property>\r
-                                                        <event name="OnChar"></event>\r
-                                                        <event name="OnCheckBox">OnCheckBoxMinimizeToTray</event>\r
-                                                        <event name="OnEnterWindow"></event>\r
-                                                        <event name="OnEraseBackground"></event>\r
-                                                        <event name="OnKeyDown"></event>\r
-                                                        <event name="OnKeyUp"></event>\r
-                                                        <event name="OnKillFocus"></event>\r
-                                                        <event name="OnLeaveWindow"></event>\r
-                                                        <event name="OnLeftDClick"></event>\r
-                                                        <event name="OnLeftDown"></event>\r
-                                                        <event name="OnLeftUp"></event>\r
-                                                        <event name="OnMiddleDClick"></event>\r
-                                                        <event name="OnMiddleDown"></event>\r
-                                                        <event name="OnMiddleUp"></event>\r
-                                                        <event name="OnMotion"></event>\r
-                                                        <event name="OnMouseEvents"></event>\r
-                                                        <event name="OnMouseWheel"></event>\r
-                                                        <event name="OnPaint"></event>\r
-                                                        <event name="OnRightDClick"></event>\r
-                                                        <event name="OnRightDown"></event>\r
-                                                        <event name="OnRightUp"></event>\r
-                                                        <event name="OnSetFocus"></event>\r
-                                                        <event name="OnSize"></event>\r
-                                                        <event name="OnUpdateUI"></event>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxALL</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxCheckBox" expanded="1">\r
-                                                        <property name="bg"></property>\r
-                                                        <property name="checked">0</property>\r
-                                                        <property name="context_help"></property>\r
-                                                        <property name="enabled">1</property>\r
-                                                        <property name="fg"></property>\r
-                                                        <property name="font"></property>\r
-                                                        <property name="hidden">0</property>\r
-                                                        <property name="id">wxID_ANY</property>\r
-                                                        <property name="label">Map port using &amp;UPnP</property>\r
-                                                        <property name="maximum_size"></property>\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">m_checkBoxUseUPnP</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="pos"></property>\r
-                                                        <property name="size"></property>\r
-                                                        <property name="style"></property>\r
-                                                        <property name="subclass"></property>\r
-                                                        <property name="tooltip"></property>\r
-                                                        <property name="validator_data_type"></property>\r
-                                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                                        <property name="validator_variable"></property>\r
-                                                        <property name="window_extra_style"></property>\r
-                                                        <property name="window_name"></property>\r
-                                                        <property name="window_style"></property>\r
-                                                        <event name="OnChar"></event>\r
-                                                        <event name="OnCheckBox"></event>\r
-                                                        <event name="OnEnterWindow"></event>\r
-                                                        <event name="OnEraseBackground"></event>\r
-                                                        <event name="OnKeyDown"></event>\r
-                                                        <event name="OnKeyUp"></event>\r
-                                                        <event name="OnKillFocus"></event>\r
-                                                        <event name="OnLeaveWindow"></event>\r
-                                                        <event name="OnLeftDClick"></event>\r
-                                                        <event name="OnLeftDown"></event>\r
-                                                        <event name="OnLeftUp"></event>\r
-                                                        <event name="OnMiddleDClick"></event>\r
-                                                        <event name="OnMiddleDown"></event>\r
-                                                        <event name="OnMiddleUp"></event>\r
-                                                        <event name="OnMotion"></event>\r
-                                                        <event name="OnMouseEvents"></event>\r
-                                                        <event name="OnMouseWheel"></event>\r
-                                                        <event name="OnPaint"></event>\r
-                                                        <event name="OnRightDClick"></event>\r
-                                                        <event name="OnRightDown"></event>\r
-                                                        <event name="OnRightUp"></event>\r
-                                                        <event name="OnSetFocus"></event>\r
-                                                        <event name="OnSize"></event>\r
-                                                        <event name="OnUpdateUI"></event>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxCheckBox" expanded="1">\r
-                                                        <property name="bg"></property>\r
-                                                        <property name="checked">0</property>\r
-                                                        <property name="context_help"></property>\r
-                                                        <property name="enabled">1</property>\r
-                                                        <property name="fg"></property>\r
-                                                        <property name="font"></property>\r
-                                                        <property name="hidden">0</property>\r
-                                                        <property name="id">wxID_ANY</property>\r
-                                                        <property name="label">M&amp;inimize to the tray on close</property>\r
-                                                        <property name="maximum_size"></property>\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">m_checkBoxMinimizeOnClose</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="pos"></property>\r
-                                                        <property name="size"></property>\r
-                                                        <property name="style"></property>\r
-                                                        <property name="subclass"></property>\r
-                                                        <property name="tooltip"></property>\r
-                                                        <property name="validator_data_type"></property>\r
-                                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                                        <property name="validator_variable"></property>\r
-                                                        <property name="window_extra_style"></property>\r
-                                                        <property name="window_name"></property>\r
-                                                        <property name="window_style"></property>\r
-                                                        <event name="OnChar"></event>\r
-                                                        <event name="OnCheckBox"></event>\r
-                                                        <event name="OnEnterWindow"></event>\r
-                                                        <event name="OnEraseBackground"></event>\r
-                                                        <event name="OnKeyDown"></event>\r
-                                                        <event name="OnKeyUp"></event>\r
-                                                        <event name="OnKillFocus"></event>\r
-                                                        <event name="OnLeaveWindow"></event>\r
-                                                        <event name="OnLeftDClick"></event>\r
-                                                        <event name="OnLeftDown"></event>\r
-                                                        <event name="OnLeftUp"></event>\r
-                                                        <event name="OnMiddleDClick"></event>\r
-                                                        <event name="OnMiddleDown"></event>\r
-                                                        <event name="OnMiddleUp"></event>\r
-                                                        <event name="OnMotion"></event>\r
-                                                        <event name="OnMouseEvents"></event>\r
-                                                        <event name="OnMouseWheel"></event>\r
-                                                        <event name="OnPaint"></event>\r
-                                                        <event name="OnRightDClick"></event>\r
-                                                        <event name="OnRightDown"></event>\r
-                                                        <event name="OnRightUp"></event>\r
-                                                        <event name="OnSetFocus"></event>\r
-                                                        <event name="OnSize"></event>\r
-                                                        <event name="OnUpdateUI"></event>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxEXPAND</property>\r
-                                                    <property name="proportion">1</property>\r
-                                                    <object class="wxBoxSizer" expanded="1">\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">bSizer102</property>\r
-                                                        <property name="orient">wxHORIZONTAL</property>\r
-                                                        <property name="permission">none</property>\r
-                                                        <object class="sizeritem" expanded="1">\r
-                                                            <property name="border">5</property>\r
-                                                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>\r
-                                                            <property name="proportion">0</property>\r
-                                                            <object class="wxCheckBox" expanded="1">\r
-                                                                <property name="bg"></property>\r
-                                                                <property name="checked">0</property>\r
-                                                                <property name="context_help"></property>\r
-                                                                <property name="enabled">1</property>\r
-                                                                <property name="fg"></property>\r
-                                                                <property name="font"></property>\r
-                                                                <property name="hidden">0</property>\r
-                                                                <property name="id">wxID_ANY</property>\r
-                                                                <property name="label">&amp;Connect through socks4 proxy (requires restart to apply): </property>\r
-                                                                <property name="maximum_size"></property>\r
-                                                                <property name="minimum_size"></property>\r
-                                                                <property name="name">m_checkBoxUseProxy</property>\r
-                                                                <property name="permission">protected</property>\r
-                                                                <property name="pos"></property>\r
-                                                                <property name="size"></property>\r
-                                                                <property name="style"></property>\r
-                                                                <property name="subclass"></property>\r
-                                                                <property name="tooltip"></property>\r
-                                                                <property name="validator_data_type"></property>\r
-                                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                                <property name="validator_variable"></property>\r
-                                                                <property name="window_extra_style"></property>\r
-                                                                <property name="window_name"></property>\r
-                                                                <property name="window_style"></property>\r
-                                                                <event name="OnChar"></event>\r
-                                                                <event name="OnCheckBox">OnCheckBoxUseProxy</event>\r
-                                                                <event name="OnEnterWindow"></event>\r
-                                                                <event name="OnEraseBackground"></event>\r
-                                                                <event name="OnKeyDown"></event>\r
-                                                                <event name="OnKeyUp"></event>\r
-                                                                <event name="OnKillFocus"></event>\r
-                                                                <event name="OnLeaveWindow"></event>\r
-                                                                <event name="OnLeftDClick"></event>\r
-                                                                <event name="OnLeftDown"></event>\r
-                                                                <event name="OnLeftUp"></event>\r
-                                                                <event name="OnMiddleDClick"></event>\r
-                                                                <event name="OnMiddleDown"></event>\r
-                                                                <event name="OnMiddleUp"></event>\r
-                                                                <event name="OnMotion"></event>\r
-                                                                <event name="OnMouseEvents"></event>\r
-                                                                <event name="OnMouseWheel"></event>\r
-                                                                <event name="OnPaint"></event>\r
-                                                                <event name="OnRightDClick"></event>\r
-                                                                <event name="OnRightDown"></event>\r
-                                                                <event name="OnRightUp"></event>\r
-                                                                <event name="OnSetFocus"></event>\r
-                                                                <event name="OnSize"></event>\r
-                                                                <event name="OnUpdateUI"></event>\r
-                                                            </object>\r
-                                                        </object>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxEXPAND</property>\r
-                                                    <property name="proportion">1</property>\r
-                                                    <object class="wxBoxSizer" expanded="1">\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">bSizer103</property>\r
-                                                        <property name="orient">wxHORIZONTAL</property>\r
-                                                        <property name="permission">none</property>\r
-                                                        <object class="sizeritem" expanded="1">\r
-                                                            <property name="border">5</property>\r
-                                                            <property name="flag"></property>\r
-                                                            <property name="proportion">0</property>\r
-                                                            <object class="spacer" expanded="1">\r
-                                                                <property name="height">0</property>\r
-                                                                <property name="permission">protected</property>\r
-                                                                <property name="width">18</property>\r
-                                                            </object>\r
-                                                        </object>\r
-                                                        <object class="sizeritem" expanded="1">\r
-                                                            <property name="border">5</property>\r
-                                                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>\r
-                                                            <property name="proportion">0</property>\r
-                                                            <object class="wxStaticText" expanded="1">\r
-                                                                <property name="bg"></property>\r
-                                                                <property name="context_help"></property>\r
-                                                                <property name="enabled">1</property>\r
-                                                                <property name="fg"></property>\r
-                                                                <property name="font"></property>\r
-                                                                <property name="hidden">0</property>\r
-                                                                <property name="id">wxID_ANY</property>\r
-                                                                <property name="label">Proxy &amp;IP:</property>\r
-                                                                <property name="maximum_size"></property>\r
-                                                                <property name="minimum_size"></property>\r
-                                                                <property name="name">m_staticTextProxyIP</property>\r
-                                                                <property name="permission">protected</property>\r
-                                                                <property name="pos"></property>\r
-                                                                <property name="size"></property>\r
-                                                                <property name="style"></property>\r
-                                                                <property name="subclass"></property>\r
-                                                                <property name="tooltip"></property>\r
-                                                                <property name="validator_data_type"></property>\r
-                                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                                <property name="validator_variable"></property>\r
-                                                                <property name="window_extra_style"></property>\r
-                                                                <property name="window_name"></property>\r
-                                                                <property name="window_style"></property>\r
-                                                                <property name="wrap">-1</property>\r
-                                                                <event name="OnChar"></event>\r
-                                                                <event name="OnEnterWindow"></event>\r
-                                                                <event name="OnEraseBackground"></event>\r
-                                                                <event name="OnKeyDown"></event>\r
-                                                                <event name="OnKeyUp"></event>\r
-                                                                <event name="OnKillFocus"></event>\r
-                                                                <event name="OnLeaveWindow"></event>\r
-                                                                <event name="OnLeftDClick"></event>\r
-                                                                <event name="OnLeftDown"></event>\r
-                                                                <event name="OnLeftUp"></event>\r
-                                                                <event name="OnMiddleDClick"></event>\r
-                                                                <event name="OnMiddleDown"></event>\r
-                                                                <event name="OnMiddleUp"></event>\r
-                                                                <event name="OnMotion"></event>\r
-                                                                <event name="OnMouseEvents"></event>\r
-                                                                <event name="OnMouseWheel"></event>\r
-                                                                <event name="OnPaint"></event>\r
-                                                                <event name="OnRightDClick"></event>\r
-                                                                <event name="OnRightDown"></event>\r
-                                                                <event name="OnRightUp"></event>\r
-                                                                <event name="OnSetFocus"></event>\r
-                                                                <event name="OnSize"></event>\r
-                                                                <event name="OnUpdateUI"></event>\r
-                                                            </object>\r
-                                                        </object>\r
-                                                        <object class="sizeritem" expanded="1">\r
-                                                            <property name="border">5</property>\r
-                                                            <property name="flag">wxALIGN_CENTER_VERTICAL</property>\r
-                                                            <property name="proportion">0</property>\r
-                                                            <object class="wxTextCtrl" expanded="1">\r
-                                                                <property name="bg"></property>\r
-                                                                <property name="context_help"></property>\r
-                                                                <property name="enabled">1</property>\r
-                                                                <property name="fg"></property>\r
-                                                                <property name="font"></property>\r
-                                                                <property name="hidden">0</property>\r
-                                                                <property name="id">wxID_PROXYIP</property>\r
-                                                                <property name="maximum_size"></property>\r
-                                                                <property name="maxlength">15</property>\r
-                                                                <property name="minimum_size"></property>\r
-                                                                <property name="name">m_textCtrlProxyIP</property>\r
-                                                                <property name="permission">protected</property>\r
-                                                                <property name="pos"></property>\r
-                                                                <property name="size">140,-1</property>\r
-                                                                <property name="style"></property>\r
-                                                                <property name="subclass"></property>\r
-                                                                <property name="tooltip"></property>\r
-                                                                <property name="validator_data_type"></property>\r
-                                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                                <property name="validator_variable"></property>\r
-                                                                <property name="value"></property>\r
-                                                                <property name="window_extra_style"></property>\r
-                                                                <property name="window_name"></property>\r
-                                                                <property name="window_style"></property>\r
-                                                                <event name="OnChar"></event>\r
-                                                                <event name="OnEnterWindow"></event>\r
-                                                                <event name="OnEraseBackground"></event>\r
-                                                                <event name="OnKeyDown"></event>\r
-                                                                <event name="OnKeyUp"></event>\r
-                                                                <event name="OnKillFocus">OnKillFocusProxy</event>\r
-                                                                <event name="OnLeaveWindow"></event>\r
-                                                                <event name="OnLeftDClick"></event>\r
-                                                                <event name="OnLeftDown"></event>\r
-                                                                <event name="OnLeftUp"></event>\r
-                                                                <event name="OnMiddleDClick"></event>\r
-                                                                <event name="OnMiddleDown"></event>\r
-                                                                <event name="OnMiddleUp"></event>\r
-                                                                <event name="OnMotion"></event>\r
-                                                                <event name="OnMouseEvents"></event>\r
-                                                                <event name="OnMouseWheel"></event>\r
-                                                                <event name="OnPaint"></event>\r
-                                                                <event name="OnRightDClick"></event>\r
-                                                                <event name="OnRightDown"></event>\r
-                                                                <event name="OnRightUp"></event>\r
-                                                                <event name="OnSetFocus"></event>\r
-                                                                <event name="OnSize"></event>\r
-                                                                <event name="OnText"></event>\r
-                                                                <event name="OnTextEnter"></event>\r
-                                                                <event name="OnTextMaxLen"></event>\r
-                                                                <event name="OnTextURL"></event>\r
-                                                                <event name="OnUpdateUI"></event>\r
-                                                            </object>\r
-                                                        </object>\r
-                                                        <object class="sizeritem" expanded="1">\r
-                                                            <property name="border">5</property>\r
-                                                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>\r
-                                                            <property name="proportion">0</property>\r
-                                                            <object class="wxStaticText" expanded="1">\r
-                                                                <property name="bg"></property>\r
-                                                                <property name="context_help"></property>\r
-                                                                <property name="enabled">1</property>\r
-                                                                <property name="fg"></property>\r
-                                                                <property name="font"></property>\r
-                                                                <property name="hidden">0</property>\r
-                                                                <property name="id">wxID_ANY</property>\r
-                                                                <property name="label"> &amp;Port:</property>\r
-                                                                <property name="maximum_size"></property>\r
-                                                                <property name="minimum_size"></property>\r
-                                                                <property name="name">m_staticTextProxyPort</property>\r
-                                                                <property name="permission">protected</property>\r
-                                                                <property name="pos"></property>\r
-                                                                <property name="size"></property>\r
-                                                                <property name="style"></property>\r
-                                                                <property name="subclass"></property>\r
-                                                                <property name="tooltip"></property>\r
-                                                                <property name="validator_data_type"></property>\r
-                                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                                <property name="validator_variable"></property>\r
-                                                                <property name="window_extra_style"></property>\r
-                                                                <property name="window_name"></property>\r
-                                                                <property name="window_style"></property>\r
-                                                                <property name="wrap">-1</property>\r
-                                                                <event name="OnChar"></event>\r
-                                                                <event name="OnEnterWindow"></event>\r
-                                                                <event name="OnEraseBackground"></event>\r
-                                                                <event name="OnKeyDown"></event>\r
-                                                                <event name="OnKeyUp"></event>\r
-                                                                <event name="OnKillFocus"></event>\r
-                                                                <event name="OnLeaveWindow"></event>\r
-                                                                <event name="OnLeftDClick"></event>\r
-                                                                <event name="OnLeftDown"></event>\r
-                                                                <event name="OnLeftUp"></event>\r
-                                                                <event name="OnMiddleDClick"></event>\r
-                                                                <event name="OnMiddleDown"></event>\r
-                                                                <event name="OnMiddleUp"></event>\r
-                                                                <event name="OnMotion"></event>\r
-                                                                <event name="OnMouseEvents"></event>\r
-                                                                <event name="OnMouseWheel"></event>\r
-                                                                <event name="OnPaint"></event>\r
-                                                                <event name="OnRightDClick"></event>\r
-                                                                <event name="OnRightDown"></event>\r
-                                                                <event name="OnRightUp"></event>\r
-                                                                <event name="OnSetFocus"></event>\r
-                                                                <event name="OnSize"></event>\r
-                                                                <event name="OnUpdateUI"></event>\r
-                                                            </object>\r
-                                                        </object>\r
-                                                        <object class="sizeritem" expanded="1">\r
-                                                            <property name="border">5</property>\r
-                                                            <property name="flag">wxALIGN_CENTER_VERTICAL</property>\r
-                                                            <property name="proportion">0</property>\r
-                                                            <object class="wxTextCtrl" expanded="1">\r
-                                                                <property name="bg"></property>\r
-                                                                <property name="context_help"></property>\r
-                                                                <property name="enabled">1</property>\r
-                                                                <property name="fg"></property>\r
-                                                                <property name="font"></property>\r
-                                                                <property name="hidden">0</property>\r
-                                                                <property name="id">wxID_PROXYPORT</property>\r
-                                                                <property name="maximum_size"></property>\r
-                                                                <property name="maxlength">5</property>\r
-                                                                <property name="minimum_size"></property>\r
-                                                                <property name="name">m_textCtrlProxyPort</property>\r
-                                                                <property name="permission">protected</property>\r
-                                                                <property name="pos"></property>\r
-                                                                <property name="size">55,-1</property>\r
-                                                                <property name="style"></property>\r
-                                                                <property name="subclass"></property>\r
-                                                                <property name="tooltip"></property>\r
-                                                                <property name="validator_data_type"></property>\r
-                                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                                <property name="validator_variable"></property>\r
-                                                                <property name="value"></property>\r
-                                                                <property name="window_extra_style"></property>\r
-                                                                <property name="window_name"></property>\r
-                                                                <property name="window_style"></property>\r
-                                                                <event name="OnChar"></event>\r
-                                                                <event name="OnEnterWindow"></event>\r
-                                                                <event name="OnEraseBackground"></event>\r
-                                                                <event name="OnKeyDown"></event>\r
-                                                                <event name="OnKeyUp"></event>\r
-                                                                <event name="OnKillFocus">OnKillFocusProxy</event>\r
-                                                                <event name="OnLeaveWindow"></event>\r
-                                                                <event name="OnLeftDClick"></event>\r
-                                                                <event name="OnLeftDown"></event>\r
-                                                                <event name="OnLeftUp"></event>\r
-                                                                <event name="OnMiddleDClick"></event>\r
-                                                                <event name="OnMiddleDown"></event>\r
-                                                                <event name="OnMiddleUp"></event>\r
-                                                                <event name="OnMotion"></event>\r
-                                                                <event name="OnMouseEvents"></event>\r
-                                                                <event name="OnMouseWheel"></event>\r
-                                                                <event name="OnPaint"></event>\r
-                                                                <event name="OnRightDClick"></event>\r
-                                                                <event name="OnRightDown"></event>\r
-                                                                <event name="OnRightUp"></event>\r
-                                                                <event name="OnSetFocus"></event>\r
-                                                                <event name="OnSize"></event>\r
-                                                                <event name="OnText"></event>\r
-                                                                <event name="OnTextEnter"></event>\r
-                                                                <event name="OnTextMaxLen"></event>\r
-                                                                <event name="OnTextURL"></event>\r
-                                                                <event name="OnUpdateUI"></event>\r
-                                                            </object>\r
-                                                        </object>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag"></property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="spacer" expanded="1">\r
-                                                        <property name="height">1</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="width">0</property>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxStaticText" expanded="1">\r
-                                                        <property name="bg"></property>\r
-                                                        <property name="context_help"></property>\r
-                                                        <property name="enabled">1</property>\r
-                                                        <property name="fg"></property>\r
-                                                        <property name="font"></property>\r
-                                                        <property name="hidden">0</property>\r
-                                                        <property name="id">wxID_ANY</property>\r
-                                                        <property name="label">Optional transaction fee per KB that helps make sure your transactions are processed quickly.  Most transactions are 1KB.  Fee 0.01 recommended.</property>\r
-                                                        <property name="maximum_size"></property>\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">m_staticText32</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="pos"></property>\r
-                                                        <property name="size"></property>\r
-                                                        <property name="style"></property>\r
-                                                        <property name="subclass"></property>\r
-                                                        <property name="tooltip"></property>\r
-                                                        <property name="validator_data_type"></property>\r
-                                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                                        <property name="validator_variable"></property>\r
-                                                        <property name="window_extra_style"></property>\r
-                                                        <property name="window_name"></property>\r
-                                                        <property name="window_style"></property>\r
-                                                        <property name="wrap">365</property>\r
-                                                        <event name="OnChar"></event>\r
-                                                        <event name="OnEnterWindow"></event>\r
-                                                        <event name="OnEraseBackground"></event>\r
-                                                        <event name="OnKeyDown"></event>\r
-                                                        <event name="OnKeyUp"></event>\r
-                                                        <event name="OnKillFocus"></event>\r
-                                                        <event name="OnLeaveWindow"></event>\r
-                                                        <event name="OnLeftDClick"></event>\r
-                                                        <event name="OnLeftDown"></event>\r
-                                                        <event name="OnLeftUp"></event>\r
-                                                        <event name="OnMiddleDClick"></event>\r
-                                                        <event name="OnMiddleDown"></event>\r
-                                                        <event name="OnMiddleUp"></event>\r
-                                                        <event name="OnMotion"></event>\r
-                                                        <event name="OnMouseEvents"></event>\r
-                                                        <event name="OnMouseWheel"></event>\r
-                                                        <event name="OnPaint"></event>\r
-                                                        <event name="OnRightDClick"></event>\r
-                                                        <event name="OnRightDown"></event>\r
-                                                        <event name="OnRightUp"></event>\r
-                                                        <event name="OnSetFocus"></event>\r
-                                                        <event name="OnSize"></event>\r
-                                                        <event name="OnUpdateUI"></event>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxEXPAND</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxBoxSizer" expanded="1">\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">bSizer56</property>\r
-                                                        <property name="orient">wxHORIZONTAL</property>\r
-                                                        <property name="permission">none</property>\r
-                                                        <object class="sizeritem" expanded="1">\r
-                                                            <property name="border">5</property>\r
-                                                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT</property>\r
-                                                            <property name="proportion">0</property>\r
-                                                            <object class="wxStaticText" expanded="1">\r
-                                                                <property name="bg"></property>\r
-                                                                <property name="context_help"></property>\r
-                                                                <property name="enabled">1</property>\r
-                                                                <property name="fg"></property>\r
-                                                                <property name="font"></property>\r
-                                                                <property name="hidden">0</property>\r
-                                                                <property name="id">wxID_ANY</property>\r
-                                                                <property name="label">Pay transaction fee:</property>\r
-                                                                <property name="maximum_size"></property>\r
-                                                                <property name="minimum_size"></property>\r
-                                                                <property name="name">m_staticText31</property>\r
-                                                                <property name="permission">protected</property>\r
-                                                                <property name="pos"></property>\r
-                                                                <property name="size"></property>\r
-                                                                <property name="style"></property>\r
-                                                                <property name="subclass"></property>\r
-                                                                <property name="tooltip"></property>\r
-                                                                <property name="validator_data_type"></property>\r
-                                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                                <property name="validator_variable"></property>\r
-                                                                <property name="window_extra_style"></property>\r
-                                                                <property name="window_name"></property>\r
-                                                                <property name="window_style"></property>\r
-                                                                <property name="wrap">-1</property>\r
-                                                                <event name="OnChar"></event>\r
-                                                                <event name="OnEnterWindow"></event>\r
-                                                                <event name="OnEraseBackground"></event>\r
-                                                                <event name="OnKeyDown"></event>\r
-                                                                <event name="OnKeyUp"></event>\r
-                                                                <event name="OnKillFocus"></event>\r
-                                                                <event name="OnLeaveWindow"></event>\r
-                                                                <event name="OnLeftDClick"></event>\r
-                                                                <event name="OnLeftDown"></event>\r
-                                                                <event name="OnLeftUp"></event>\r
-                                                                <event name="OnMiddleDClick"></event>\r
-                                                                <event name="OnMiddleDown"></event>\r
-                                                                <event name="OnMiddleUp"></event>\r
-                                                                <event name="OnMotion"></event>\r
-                                                                <event name="OnMouseEvents"></event>\r
-                                                                <event name="OnMouseWheel"></event>\r
-                                                                <event name="OnPaint"></event>\r
-                                                                <event name="OnRightDClick"></event>\r
-                                                                <event name="OnRightDown"></event>\r
-                                                                <event name="OnRightUp"></event>\r
-                                                                <event name="OnSetFocus"></event>\r
-                                                                <event name="OnSize"></event>\r
-                                                                <event name="OnUpdateUI"></event>\r
-                                                            </object>\r
-                                                        </object>\r
-                                                        <object class="sizeritem" expanded="1">\r
-                                                            <property name="border">5</property>\r
-                                                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>\r
-                                                            <property name="proportion">0</property>\r
-                                                            <object class="wxTextCtrl" expanded="1">\r
-                                                                <property name="bg"></property>\r
-                                                                <property name="context_help"></property>\r
-                                                                <property name="enabled">1</property>\r
-                                                                <property name="fg"></property>\r
-                                                                <property name="font"></property>\r
-                                                                <property name="hidden">0</property>\r
-                                                                <property name="id">wxID_TRANSACTIONFEE</property>\r
-                                                                <property name="maximum_size"></property>\r
-                                                                <property name="maxlength">0</property>\r
-                                                                <property name="minimum_size"></property>\r
-                                                                <property name="name">m_textCtrlTransactionFee</property>\r
-                                                                <property name="permission">protected</property>\r
-                                                                <property name="pos"></property>\r
-                                                                <property name="size">70,-1</property>\r
-                                                                <property name="style"></property>\r
-                                                                <property name="subclass"></property>\r
-                                                                <property name="tooltip"></property>\r
-                                                                <property name="validator_data_type"></property>\r
-                                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                                <property name="validator_variable"></property>\r
-                                                                <property name="value"></property>\r
-                                                                <property name="window_extra_style"></property>\r
-                                                                <property name="window_name"></property>\r
-                                                                <property name="window_style"></property>\r
-                                                                <event name="OnChar"></event>\r
-                                                                <event name="OnEnterWindow"></event>\r
-                                                                <event name="OnEraseBackground"></event>\r
-                                                                <event name="OnKeyDown"></event>\r
-                                                                <event name="OnKeyUp"></event>\r
-                                                                <event name="OnKillFocus">OnKillFocusTransactionFee</event>\r
-                                                                <event name="OnLeaveWindow"></event>\r
-                                                                <event name="OnLeftDClick"></event>\r
-                                                                <event name="OnLeftDown"></event>\r
-                                                                <event name="OnLeftUp"></event>\r
-                                                                <event name="OnMiddleDClick"></event>\r
-                                                                <event name="OnMiddleDown"></event>\r
-                                                                <event name="OnMiddleUp"></event>\r
-                                                                <event name="OnMotion"></event>\r
-                                                                <event name="OnMouseEvents"></event>\r
-                                                                <event name="OnMouseWheel"></event>\r
-                                                                <event name="OnPaint"></event>\r
-                                                                <event name="OnRightDClick"></event>\r
-                                                                <event name="OnRightDown"></event>\r
-                                                                <event name="OnRightUp"></event>\r
-                                                                <event name="OnSetFocus"></event>\r
-                                                                <event name="OnSize"></event>\r
-                                                                <event name="OnText"></event>\r
-                                                                <event name="OnTextEnter"></event>\r
-                                                                <event name="OnTextMaxLen"></event>\r
-                                                                <event name="OnTextURL"></event>\r
-                                                                <event name="OnUpdateUI"></event>\r
-                                                            </object>\r
-                                                        </object>\r
-                                                    </object>\r
-                                                </object>\r
-                                            </object>\r
-                                        </object>\r
-                                    </object>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxEXPAND</property>\r
-                                        <property name="proportion">0</property>\r
-                                        <object class="wxPanel" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">0</property>\r
-                                            <property name="id">wxID_ANY</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_panelTest2</property>\r
-                                            <property name="permission">protected</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style">wxTAB_TRAVERSAL</property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint"></event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                            <object class="wxBoxSizer" expanded="1">\r
-                                                <property name="minimum_size"></property>\r
-                                                <property name="name">bSizer64</property>\r
-                                                <property name="orient">wxVERTICAL</property>\r
-                                                <property name="permission">none</property>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxEXPAND</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="spacer" expanded="1">\r
-                                                        <property name="height">16</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="width">0</property>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxStaticText" expanded="1">\r
-                                                        <property name="bg"></property>\r
-                                                        <property name="context_help"></property>\r
-                                                        <property name="enabled">1</property>\r
-                                                        <property name="fg"></property>\r
-                                                        <property name="font"></property>\r
-                                                        <property name="hidden">0</property>\r
-                                                        <property name="id">wxID_ANY</property>\r
-                                                        <property name="label">// [don&apos;t translate] Test panel 2 for future expansion</property>\r
-                                                        <property name="maximum_size"></property>\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">m_staticText321</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="pos"></property>\r
-                                                        <property name="size"></property>\r
-                                                        <property name="style"></property>\r
-                                                        <property name="subclass"></property>\r
-                                                        <property name="tooltip"></property>\r
-                                                        <property name="validator_data_type"></property>\r
-                                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                                        <property name="validator_variable"></property>\r
-                                                        <property name="window_extra_style"></property>\r
-                                                        <property name="window_name"></property>\r
-                                                        <property name="window_style"></property>\r
-                                                        <property name="wrap">-1</property>\r
-                                                        <event name="OnChar"></event>\r
-                                                        <event name="OnEnterWindow"></event>\r
-                                                        <event name="OnEraseBackground"></event>\r
-                                                        <event name="OnKeyDown"></event>\r
-                                                        <event name="OnKeyUp"></event>\r
-                                                        <event name="OnKillFocus"></event>\r
-                                                        <event name="OnLeaveWindow"></event>\r
-                                                        <event name="OnLeftDClick"></event>\r
-                                                        <event name="OnLeftDown"></event>\r
-                                                        <event name="OnLeftUp"></event>\r
-                                                        <event name="OnMiddleDClick"></event>\r
-                                                        <event name="OnMiddleDown"></event>\r
-                                                        <event name="OnMiddleUp"></event>\r
-                                                        <event name="OnMotion"></event>\r
-                                                        <event name="OnMouseEvents"></event>\r
-                                                        <event name="OnMouseWheel"></event>\r
-                                                        <event name="OnPaint"></event>\r
-                                                        <event name="OnRightDClick"></event>\r
-                                                        <event name="OnRightDown"></event>\r
-                                                        <event name="OnRightUp"></event>\r
-                                                        <event name="OnSetFocus"></event>\r
-                                                        <event name="OnSize"></event>\r
-                                                        <event name="OnUpdateUI"></event>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxALL</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxStaticText" expanded="1">\r
-                                                        <property name="bg"></property>\r
-                                                        <property name="context_help"></property>\r
-                                                        <property name="enabled">1</property>\r
-                                                        <property name="fg"></property>\r
-                                                        <property name="font"></property>\r
-                                                        <property name="hidden">0</property>\r
-                                                        <property name="id">wxID_ANY</property>\r
-                                                        <property name="label">// [don&apos;t translate] Let&apos;s not start multiple pages until the first page is filled up</property>\r
-                                                        <property name="maximum_size"></property>\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">m_staticText69</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="pos"></property>\r
-                                                        <property name="size"></property>\r
-                                                        <property name="style"></property>\r
-                                                        <property name="subclass"></property>\r
-                                                        <property name="tooltip"></property>\r
-                                                        <property name="validator_data_type"></property>\r
-                                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                                        <property name="validator_variable"></property>\r
-                                                        <property name="window_extra_style"></property>\r
-                                                        <property name="window_name"></property>\r
-                                                        <property name="window_style"></property>\r
-                                                        <property name="wrap">-1</property>\r
-                                                        <event name="OnChar"></event>\r
-                                                        <event name="OnEnterWindow"></event>\r
-                                                        <event name="OnEraseBackground"></event>\r
-                                                        <event name="OnKeyDown"></event>\r
-                                                        <event name="OnKeyUp"></event>\r
-                                                        <event name="OnKillFocus"></event>\r
-                                                        <event name="OnLeaveWindow"></event>\r
-                                                        <event name="OnLeftDClick"></event>\r
-                                                        <event name="OnLeftDown"></event>\r
-                                                        <event name="OnLeftUp"></event>\r
-                                                        <event name="OnMiddleDClick"></event>\r
-                                                        <event name="OnMiddleDown"></event>\r
-                                                        <event name="OnMiddleUp"></event>\r
-                                                        <event name="OnMotion"></event>\r
-                                                        <event name="OnMouseEvents"></event>\r
-                                                        <event name="OnMouseWheel"></event>\r
-                                                        <event name="OnPaint"></event>\r
-                                                        <event name="OnRightDClick"></event>\r
-                                                        <event name="OnRightDown"></event>\r
-                                                        <event name="OnRightUp"></event>\r
-                                                        <event name="OnSetFocus"></event>\r
-                                                        <event name="OnSize"></event>\r
-                                                        <event name="OnUpdateUI"></event>\r
-                                                    </object>\r
-                                                </object>\r
-                                            </object>\r
-                                        </object>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxALIGN_RIGHT</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer58</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_OK</property>\r
-                                <property name="label">OK</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_buttonOK</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonOK</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_CANCEL</property>\r
-                                <property name="label">Cancel</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonCancel</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonCancel</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_APPLY</property>\r
-                                <property name="label">&amp;Apply</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonApply</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonApply</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-        </object>\r
-        <object class="Dialog" expanded="0">\r
-            <property name="bg"></property>\r
-            <property name="center"></property>\r
-            <property name="context_help"></property>\r
-            <property name="enabled">1</property>\r
-            <property name="extra_style"></property>\r
-            <property name="fg"></property>\r
-            <property name="font"></property>\r
-            <property name="hidden">0</property>\r
-            <property name="id">wxID_ANY</property>\r
-            <property name="maximum_size"></property>\r
-            <property name="minimum_size"></property>\r
-            <property name="name">CAboutDialogBase</property>\r
-            <property name="pos"></property>\r
-            <property name="size">532,333</property>\r
-            <property name="style">wxDEFAULT_DIALOG_STYLE</property>\r
-            <property name="subclass"></property>\r
-            <property name="title">About Bitcoin</property>\r
-            <property name="tooltip"></property>\r
-            <property name="validator_data_type"></property>\r
-            <property name="validator_style">wxFILTER_NONE</property>\r
-            <property name="validator_type">wxDefaultValidator</property>\r
-            <property name="validator_variable"></property>\r
-            <property name="window_extra_style"></property>\r
-            <property name="window_name"></property>\r
-            <property name="window_style"></property>\r
-            <event name="OnActivate"></event>\r
-            <event name="OnActivateApp"></event>\r
-            <event name="OnChar"></event>\r
-            <event name="OnClose"></event>\r
-            <event name="OnEnterWindow"></event>\r
-            <event name="OnEraseBackground"></event>\r
-            <event name="OnHibernate"></event>\r
-            <event name="OnIconize"></event>\r
-            <event name="OnIdle"></event>\r
-            <event name="OnInitDialog"></event>\r
-            <event name="OnKeyDown"></event>\r
-            <event name="OnKeyUp"></event>\r
-            <event name="OnKillFocus"></event>\r
-            <event name="OnLeaveWindow"></event>\r
-            <event name="OnLeftDClick"></event>\r
-            <event name="OnLeftDown"></event>\r
-            <event name="OnLeftUp"></event>\r
-            <event name="OnMiddleDClick"></event>\r
-            <event name="OnMiddleDown"></event>\r
-            <event name="OnMiddleUp"></event>\r
-            <event name="OnMotion"></event>\r
-            <event name="OnMouseEvents"></event>\r
-            <event name="OnMouseWheel"></event>\r
-            <event name="OnPaint"></event>\r
-            <event name="OnRightDClick"></event>\r
-            <event name="OnRightDown"></event>\r
-            <event name="OnRightUp"></event>\r
-            <event name="OnSetFocus"></event>\r
-            <event name="OnSize"></event>\r
-            <event name="OnUpdateUI"></event>\r
-            <object class="wxBoxSizer" expanded="1">\r
-                <property name="minimum_size"></property>\r
-                <property name="name">bSizer63</property>\r
-                <property name="orient">wxHORIZONTAL</property>\r
-                <property name="permission">none</property>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag"></property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxStaticBitmap" expanded="1">\r
-                        <property name="bg"></property>\r
-                        <property name="bitmap">xpm/about.xpm; Load From File</property>\r
-                        <property name="context_help"></property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="fg"></property>\r
-                        <property name="font"></property>\r
-                        <property name="hidden">0</property>\r
-                        <property name="id">wxID_ANY</property>\r
-                        <property name="maximum_size"></property>\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">m_bitmap</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="pos"></property>\r
-                        <property name="size"></property>\r
-                        <property name="subclass"></property>\r
-                        <property name="tooltip"></property>\r
-                        <property name="validator_data_type"></property>\r
-                        <property name="validator_style">wxFILTER_NONE</property>\r
-                        <property name="validator_type">wxDefaultValidator</property>\r
-                        <property name="validator_variable"></property>\r
-                        <property name="window_extra_style"></property>\r
-                        <property name="window_name"></property>\r
-                        <property name="window_style"></property>\r
-                        <event name="OnChar"></event>\r
-                        <event name="OnEnterWindow"></event>\r
-                        <event name="OnEraseBackground"></event>\r
-                        <event name="OnKeyDown"></event>\r
-                        <event name="OnKeyUp"></event>\r
-                        <event name="OnKillFocus"></event>\r
-                        <event name="OnLeaveWindow"></event>\r
-                        <event name="OnLeftDClick"></event>\r
-                        <event name="OnLeftDown"></event>\r
-                        <event name="OnLeftUp"></event>\r
-                        <event name="OnMiddleDClick"></event>\r
-                        <event name="OnMiddleDown"></event>\r
-                        <event name="OnMiddleUp"></event>\r
-                        <event name="OnMotion"></event>\r
-                        <event name="OnMouseEvents"></event>\r
-                        <event name="OnMouseWheel"></event>\r
-                        <event name="OnPaint"></event>\r
-                        <event name="OnRightDClick"></event>\r
-                        <event name="OnRightDown"></event>\r
-                        <event name="OnRightUp"></event>\r
-                        <event name="OnSetFocus"></event>\r
-                        <event name="OnSize"></event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND|wxLEFT</property>\r
-                    <property name="proportion">1</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer60</property>\r
-                        <property name="orient">wxVERTICAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="wxBoxSizer" expanded="1">\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">bSizer62</property>\r
-                                <property name="orient">wxHORIZONTAL</property>\r
-                                <property name="permission">none</property>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">5</property>\r
-                                    <property name="flag">wxEXPAND</property>\r
-                                    <property name="proportion">1</property>\r
-                                    <object class="wxBoxSizer" expanded="1">\r
-                                        <property name="minimum_size"></property>\r
-                                        <property name="name">bSizer631</property>\r
-                                        <property name="orient">wxVERTICAL</property>\r
-                                        <property name="permission">none</property>\r
-                                        <object class="sizeritem" expanded="1">\r
-                                            <property name="border">5</property>\r
-                                            <property name="flag">wxEXPAND</property>\r
-                                            <property name="proportion">0</property>\r
-                                            <object class="spacer" expanded="1">\r
-                                                <property name="height">65</property>\r
-                                                <property name="permission">protected</property>\r
-                                                <property name="width">0</property>\r
-                                            </object>\r
-                                        </object>\r
-                                        <object class="sizeritem" expanded="1">\r
-                                            <property name="border">5</property>\r
-                                            <property name="flag">wxEXPAND</property>\r
-                                            <property name="proportion">0</property>\r
-                                            <object class="wxBoxSizer" expanded="1">\r
-                                                <property name="minimum_size"></property>\r
-                                                <property name="name">bSizer64</property>\r
-                                                <property name="orient">wxHORIZONTAL</property>\r
-                                                <property name="permission">none</property>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxALIGN_BOTTOM|wxTOP|wxBOTTOM|wxLEFT</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxStaticText" expanded="1">\r
-                                                        <property name="bg"></property>\r
-                                                        <property name="context_help"></property>\r
-                                                        <property name="enabled">1</property>\r
-                                                        <property name="fg"></property>\r
-                                                        <property name="font">Tahoma,90,92,10,74,0</property>\r
-                                                        <property name="hidden">0</property>\r
-                                                        <property name="id">wxID_ANY</property>\r
-                                                        <property name="label">Bitcoin </property>\r
-                                                        <property name="maximum_size"></property>\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">m_staticText40</property>\r
-                                                        <property name="permission">protected</property>\r
-                                                        <property name="pos"></property>\r
-                                                        <property name="size"></property>\r
-                                                        <property name="style"></property>\r
-                                                        <property name="subclass"></property>\r
-                                                        <property name="tooltip"></property>\r
-                                                        <property name="validator_data_type"></property>\r
-                                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                                        <property name="validator_variable"></property>\r
-                                                        <property name="window_extra_style"></property>\r
-                                                        <property name="window_name"></property>\r
-                                                        <property name="window_style"></property>\r
-                                                        <property name="wrap">-1</property>\r
-                                                        <event name="OnChar"></event>\r
-                                                        <event name="OnEnterWindow"></event>\r
-                                                        <event name="OnEraseBackground"></event>\r
-                                                        <event name="OnKeyDown"></event>\r
-                                                        <event name="OnKeyUp"></event>\r
-                                                        <event name="OnKillFocus"></event>\r
-                                                        <event name="OnLeaveWindow"></event>\r
-                                                        <event name="OnLeftDClick"></event>\r
-                                                        <event name="OnLeftDown"></event>\r
-                                                        <event name="OnLeftUp"></event>\r
-                                                        <event name="OnMiddleDClick"></event>\r
-                                                        <event name="OnMiddleDown"></event>\r
-                                                        <event name="OnMiddleUp"></event>\r
-                                                        <event name="OnMotion"></event>\r
-                                                        <event name="OnMouseEvents"></event>\r
-                                                        <event name="OnMouseWheel"></event>\r
-                                                        <event name="OnPaint"></event>\r
-                                                        <event name="OnRightDClick"></event>\r
-                                                        <event name="OnRightDown"></event>\r
-                                                        <event name="OnRightUp"></event>\r
-                                                        <event name="OnSetFocus"></event>\r
-                                                        <event name="OnSize"></event>\r
-                                                        <event name="OnUpdateUI"></event>\r
-                                                    </object>\r
-                                                </object>\r
-                                                <object class="sizeritem" expanded="1">\r
-                                                    <property name="border">5</property>\r
-                                                    <property name="flag">wxALIGN_BOTTOM|wxTOP|wxBOTTOM|wxRIGHT</property>\r
-                                                    <property name="proportion">0</property>\r
-                                                    <object class="wxStaticText" expanded="1">\r
-                                                        <property name="bg"></property>\r
-                                                        <property name="context_help"></property>\r
-                                                        <property name="enabled">1</property>\r
-                                                        <property name="fg"></property>\r
-                                                        <property name="font">Tahoma,90,90,10,74,0</property>\r
-                                                        <property name="hidden">0</property>\r
-                                                        <property name="id">wxID_ANY</property>\r
-                                                        <property name="label">version</property>\r
-                                                        <property name="maximum_size"></property>\r
-                                                        <property name="minimum_size"></property>\r
-                                                        <property name="name">m_staticTextVersion</property>\r
-                                                        <property name="permission">public</property>\r
-                                                        <property name="pos"></property>\r
-                                                        <property name="size"></property>\r
-                                                        <property name="style"></property>\r
-                                                        <property name="subclass"></property>\r
-                                                        <property name="tooltip"></property>\r
-                                                        <property name="validator_data_type"></property>\r
-                                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                                        <property name="validator_variable"></property>\r
-                                                        <property name="window_extra_style"></property>\r
-                                                        <property name="window_name"></property>\r
-                                                        <property name="window_style"></property>\r
-                                                        <property name="wrap">-1</property>\r
-                                                        <event name="OnChar"></event>\r
-                                                        <event name="OnEnterWindow"></event>\r
-                                                        <event name="OnEraseBackground"></event>\r
-                                                        <event name="OnKeyDown"></event>\r
-                                                        <event name="OnKeyUp"></event>\r
-                                                        <event name="OnKillFocus"></event>\r
-                                                        <event name="OnLeaveWindow"></event>\r
-                                                        <event name="OnLeftDClick"></event>\r
-                                                        <event name="OnLeftDown"></event>\r
-                                                        <event name="OnLeftUp"></event>\r
-                                                        <event name="OnMiddleDClick"></event>\r
-                                                        <event name="OnMiddleDown"></event>\r
-                                                        <event name="OnMiddleUp"></event>\r
-                                                        <event name="OnMotion"></event>\r
-                                                        <event name="OnMouseEvents"></event>\r
-                                                        <event name="OnMouseWheel"></event>\r
-                                                        <event name="OnPaint"></event>\r
-                                                        <event name="OnRightDClick"></event>\r
-                                                        <event name="OnRightDown"></event>\r
-                                                        <event name="OnRightUp"></event>\r
-                                                        <event name="OnSetFocus"></event>\r
-                                                        <event name="OnSize"></event>\r
-                                                        <event name="OnUpdateUI"></event>\r
-                                                    </object>\r
-                                                </object>\r
-                                            </object>\r
-                                        </object>\r
-                                        <object class="sizeritem" expanded="1">\r
-                                            <property name="border">5</property>\r
-                                            <property name="flag">wxEXPAND</property>\r
-                                            <property name="proportion">0</property>\r
-                                            <object class="spacer" expanded="1">\r
-                                                <property name="height">4</property>\r
-                                                <property name="permission">protected</property>\r
-                                                <property name="width">0</property>\r
-                                            </object>\r
-                                        </object>\r
-                                        <object class="sizeritem" expanded="1">\r
-                                            <property name="border">5</property>\r
-                                            <property name="flag">wxALL</property>\r
-                                            <property name="proportion">0</property>\r
-                                            <object class="wxStaticText" expanded="1">\r
-                                                <property name="bg"></property>\r
-                                                <property name="context_help"></property>\r
-                                                <property name="enabled">1</property>\r
-                                                <property name="fg"></property>\r
-                                                <property name="font"></property>\r
-                                                <property name="hidden">0</property>\r
-                                                <property name="id">wxID_ANY</property>\r
-                                                <property name="label">Copyright (c) 2009-2011 Bitcoin Developers&#x0A;&#x0A;This is experimental software.&#x0A;&#x0A;Distributed under the MIT/X11 software license, see the accompanying file &#x0A;license.txt or http://www.opensource.org/licenses/mit-license.php.&#x0A;&#x0A;This product includes software developed by the OpenSSL Project for use in the &#x0A;OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by &#x0A;Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</property>\r
-                                                <property name="maximum_size"></property>\r
-                                                <property name="minimum_size"></property>\r
-                                                <property name="name">m_staticTextMain</property>\r
-                                                <property name="permission">protected</property>\r
-                                                <property name="pos"></property>\r
-                                                <property name="size"></property>\r
-                                                <property name="style"></property>\r
-                                                <property name="subclass"></property>\r
-                                                <property name="tooltip"></property>\r
-                                                <property name="validator_data_type"></property>\r
-                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                <property name="validator_variable"></property>\r
-                                                <property name="window_extra_style"></property>\r
-                                                <property name="window_name"></property>\r
-                                                <property name="window_style"></property>\r
-                                                <property name="wrap">-1</property>\r
-                                                <event name="OnChar"></event>\r
-                                                <event name="OnEnterWindow"></event>\r
-                                                <event name="OnEraseBackground"></event>\r
-                                                <event name="OnKeyDown"></event>\r
-                                                <event name="OnKeyUp"></event>\r
-                                                <event name="OnKillFocus"></event>\r
-                                                <event name="OnLeaveWindow"></event>\r
-                                                <event name="OnLeftDClick"></event>\r
-                                                <event name="OnLeftDown"></event>\r
-                                                <event name="OnLeftUp"></event>\r
-                                                <event name="OnMiddleDClick"></event>\r
-                                                <event name="OnMiddleDown"></event>\r
-                                                <event name="OnMiddleUp"></event>\r
-                                                <event name="OnMotion"></event>\r
-                                                <event name="OnMouseEvents"></event>\r
-                                                <event name="OnMouseWheel"></event>\r
-                                                <event name="OnPaint"></event>\r
-                                                <event name="OnRightDClick"></event>\r
-                                                <event name="OnRightDown"></event>\r
-                                                <event name="OnRightUp"></event>\r
-                                                <event name="OnSetFocus"></event>\r
-                                                <event name="OnSize"></event>\r
-                                                <event name="OnUpdateUI"></event>\r
-                                            </object>\r
-                                        </object>\r
-                                        <object class="sizeritem" expanded="1">\r
-                                            <property name="border">5</property>\r
-                                            <property name="flag">wxEXPAND</property>\r
-                                            <property name="proportion">0</property>\r
-                                            <object class="spacer" expanded="1">\r
-                                                <property name="height">0</property>\r
-                                                <property name="permission">protected</property>\r
-                                                <property name="width">0</property>\r
-                                            </object>\r
-                                        </object>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">2</property>\r
-                            <property name="flag">wxALIGN_RIGHT|wxEXPAND|wxRIGHT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxBoxSizer" expanded="1">\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">bSizer61</property>\r
-                                <property name="orient">wxHORIZONTAL</property>\r
-                                <property name="permission">none</property>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">5</property>\r
-                                    <property name="flag">wxEXPAND</property>\r
-                                    <property name="proportion">1</property>\r
-                                    <object class="spacer" expanded="1">\r
-                                        <property name="height">0</property>\r
-                                        <property name="permission">protected</property>\r
-                                        <property name="width">0</property>\r
-                                    </object>\r
-                                </object>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">6</property>\r
-                                    <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                                    <property name="proportion">0</property>\r
-                                    <object class="wxButton" expanded="1">\r
-                                        <property name="bg"></property>\r
-                                        <property name="context_help"></property>\r
-                                        <property name="default">0</property>\r
-                                        <property name="enabled">1</property>\r
-                                        <property name="fg"></property>\r
-                                        <property name="font"></property>\r
-                                        <property name="hidden">0</property>\r
-                                        <property name="id">wxID_OK</property>\r
-                                        <property name="label">OK</property>\r
-                                        <property name="maximum_size"></property>\r
-                                        <property name="minimum_size"></property>\r
-                                        <property name="name">m_buttonOK</property>\r
-                                        <property name="permission">protected</property>\r
-                                        <property name="pos"></property>\r
-                                        <property name="size">-1,-1</property>\r
-                                        <property name="style"></property>\r
-                                        <property name="subclass"></property>\r
-                                        <property name="tooltip"></property>\r
-                                        <property name="validator_data_type"></property>\r
-                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                        <property name="validator_variable"></property>\r
-                                        <property name="window_extra_style"></property>\r
-                                        <property name="window_name"></property>\r
-                                        <property name="window_style"></property>\r
-                                        <event name="OnButtonClick">OnButtonOK</event>\r
-                                        <event name="OnChar"></event>\r
-                                        <event name="OnEnterWindow"></event>\r
-                                        <event name="OnEraseBackground"></event>\r
-                                        <event name="OnKeyDown"></event>\r
-                                        <event name="OnKeyUp"></event>\r
-                                        <event name="OnKillFocus"></event>\r
-                                        <event name="OnLeaveWindow"></event>\r
-                                        <event name="OnLeftDClick"></event>\r
-                                        <event name="OnLeftDown"></event>\r
-                                        <event name="OnLeftUp"></event>\r
-                                        <event name="OnMiddleDClick"></event>\r
-                                        <event name="OnMiddleDown"></event>\r
-                                        <event name="OnMiddleUp"></event>\r
-                                        <event name="OnMotion"></event>\r
-                                        <event name="OnMouseEvents"></event>\r
-                                        <event name="OnMouseWheel"></event>\r
-                                        <event name="OnPaint"></event>\r
-                                        <event name="OnRightDClick"></event>\r
-                                        <event name="OnRightDown"></event>\r
-                                        <event name="OnRightUp"></event>\r
-                                        <event name="OnSetFocus"></event>\r
-                                        <event name="OnSize"></event>\r
-                                        <event name="OnUpdateUI"></event>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-        </object>\r
-        <object class="Dialog" expanded="1">\r
-            <property name="bg"></property>\r
-            <property name="center"></property>\r
-            <property name="context_help"></property>\r
-            <property name="enabled">1</property>\r
-            <property name="extra_style"></property>\r
-            <property name="fg"></property>\r
-            <property name="font"></property>\r
-            <property name="hidden">0</property>\r
-            <property name="id">wxID_ANY</property>\r
-            <property name="maximum_size"></property>\r
-            <property name="minimum_size"></property>\r
-            <property name="name">CSendDialogBase</property>\r
-            <property name="pos"></property>\r
-            <property name="size">498,157</property>\r
-            <property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>\r
-            <property name="subclass"></property>\r
-            <property name="title">Send Coins</property>\r
-            <property name="tooltip"></property>\r
-            <property name="validator_data_type"></property>\r
-            <property name="validator_style">wxFILTER_NONE</property>\r
-            <property name="validator_type">wxDefaultValidator</property>\r
-            <property name="validator_variable"></property>\r
-            <property name="window_extra_style"></property>\r
-            <property name="window_name"></property>\r
-            <property name="window_style"></property>\r
-            <event name="OnActivate"></event>\r
-            <event name="OnActivateApp"></event>\r
-            <event name="OnChar"></event>\r
-            <event name="OnClose"></event>\r
-            <event name="OnEnterWindow"></event>\r
-            <event name="OnEraseBackground"></event>\r
-            <event name="OnHibernate"></event>\r
-            <event name="OnIconize"></event>\r
-            <event name="OnIdle"></event>\r
-            <event name="OnInitDialog"></event>\r
-            <event name="OnKeyDown"></event>\r
-            <event name="OnKeyUp"></event>\r
-            <event name="OnKillFocus"></event>\r
-            <event name="OnLeaveWindow"></event>\r
-            <event name="OnLeftDClick"></event>\r
-            <event name="OnLeftDown"></event>\r
-            <event name="OnLeftUp"></event>\r
-            <event name="OnMiddleDClick"></event>\r
-            <event name="OnMiddleDown"></event>\r
-            <event name="OnMiddleUp"></event>\r
-            <event name="OnMotion"></event>\r
-            <event name="OnMouseEvents"></event>\r
-            <event name="OnMouseWheel"></event>\r
-            <event name="OnPaint"></event>\r
-            <event name="OnRightDClick"></event>\r
-            <event name="OnRightDown"></event>\r
-            <event name="OnRightUp"></event>\r
-            <event name="OnSetFocus"></event>\r
-            <event name="OnSize"></event>\r
-            <event name="OnUpdateUI"></event>\r
-            <object class="wxBoxSizer" expanded="1">\r
-                <property name="minimum_size"></property>\r
-                <property name="name">bSizer21</property>\r
-                <property name="orient">wxVERTICAL</property>\r
-                <property name="permission">none</property>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="spacer" expanded="1">\r
-                        <property name="height">5</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="width">0</property>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND|wxLEFT</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxFlexGridSizer" expanded="1">\r
-                        <property name="cols">2</property>\r
-                        <property name="flexible_direction">wxBOTH</property>\r
-                        <property name="growablecols">1</property>\r
-                        <property name="growablerows"></property>\r
-                        <property name="hgap">0</property>\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">fgSizer1</property>\r
-                        <property name="non_flexible_grow_mode">wxFLEX_GROWMODE_SPECIFIED</property>\r
-                        <property name="permission">none</property>\r
-                        <property name="rows">0</property>\r
-                        <property name="vgap">0</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxTOP|wxRIGHT|wxLEFT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxStaticText" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="label">Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_staticTextInstructions</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <property name="wrap">-1</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND|wxLEFT</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="wxBoxSizer" expanded="1">\r
-                                <property name="minimum_size">70,-1</property>\r
-                                <property name="name">bSizer47</property>\r
-                                <property name="orient">wxHORIZONTAL</property>\r
-                                <property name="permission">none</property>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">5</property>\r
-                                    <property name="flag">wxEXPAND</property>\r
-                                    <property name="proportion">1</property>\r
-                                    <object class="spacer" expanded="1">\r
-                                        <property name="height">0</property>\r
-                                        <property name="permission">protected</property>\r
-                                        <property name="width">0</property>\r
-                                    </object>\r
-                                </object>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">5</property>\r
-                                    <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>\r
-                                    <property name="proportion">0</property>\r
-                                    <object class="wxStaticBitmap" expanded="1">\r
-                                        <property name="bg"></property>\r
-                                        <property name="bitmap">xpm/check.xpm; Load From File</property>\r
-                                        <property name="context_help"></property>\r
-                                        <property name="enabled">1</property>\r
-                                        <property name="fg"></property>\r
-                                        <property name="font"></property>\r
-                                        <property name="hidden">0</property>\r
-                                        <property name="id">wxID_ANY</property>\r
-                                        <property name="maximum_size"></property>\r
-                                        <property name="minimum_size"></property>\r
-                                        <property name="name">m_bitmapCheckMark</property>\r
-                                        <property name="permission">protected</property>\r
-                                        <property name="pos"></property>\r
-                                        <property name="size">16,16</property>\r
-                                        <property name="subclass"></property>\r
-                                        <property name="tooltip"></property>\r
-                                        <property name="validator_data_type"></property>\r
-                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                        <property name="validator_variable"></property>\r
-                                        <property name="window_extra_style"></property>\r
-                                        <property name="window_name"></property>\r
-                                        <property name="window_style"></property>\r
-                                        <event name="OnChar"></event>\r
-                                        <event name="OnEnterWindow"></event>\r
-                                        <event name="OnEraseBackground"></event>\r
-                                        <event name="OnKeyDown"></event>\r
-                                        <event name="OnKeyUp"></event>\r
-                                        <event name="OnKillFocus"></event>\r
-                                        <event name="OnLeaveWindow"></event>\r
-                                        <event name="OnLeftDClick"></event>\r
-                                        <event name="OnLeftDown"></event>\r
-                                        <event name="OnLeftUp"></event>\r
-                                        <event name="OnMiddleDClick"></event>\r
-                                        <event name="OnMiddleDown"></event>\r
-                                        <event name="OnMiddleUp"></event>\r
-                                        <event name="OnMotion"></event>\r
-                                        <event name="OnMouseEvents"></event>\r
-                                        <event name="OnMouseWheel"></event>\r
-                                        <event name="OnPaint"></event>\r
-                                        <event name="OnRightDClick"></event>\r
-                                        <event name="OnRightDown"></event>\r
-                                        <event name="OnRightUp"></event>\r
-                                        <event name="OnSetFocus"></event>\r
-                                        <event name="OnSize"></event>\r
-                                        <event name="OnUpdateUI"></event>\r
-                                    </object>\r
-                                </object>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">5</property>\r
-                                    <property name="flag">wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT</property>\r
-                                    <property name="proportion">0</property>\r
-                                    <object class="wxStaticText" expanded="1">\r
-                                        <property name="bg"></property>\r
-                                        <property name="context_help"></property>\r
-                                        <property name="enabled">1</property>\r
-                                        <property name="fg"></property>\r
-                                        <property name="font"></property>\r
-                                        <property name="hidden">0</property>\r
-                                        <property name="id">wxID_ANY</property>\r
-                                        <property name="label">Pay &amp;To:</property>\r
-                                        <property name="maximum_size"></property>\r
-                                        <property name="minimum_size"></property>\r
-                                        <property name="name">m_staticText36</property>\r
-                                        <property name="permission">protected</property>\r
-                                        <property name="pos"></property>\r
-                                        <property name="size">-1,-1</property>\r
-                                        <property name="style">wxALIGN_RIGHT</property>\r
-                                        <property name="subclass"></property>\r
-                                        <property name="tooltip"></property>\r
-                                        <property name="validator_data_type"></property>\r
-                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                        <property name="validator_variable"></property>\r
-                                        <property name="window_extra_style"></property>\r
-                                        <property name="window_name"></property>\r
-                                        <property name="window_style"></property>\r
-                                        <property name="wrap">-1</property>\r
-                                        <event name="OnChar"></event>\r
-                                        <event name="OnEnterWindow"></event>\r
-                                        <event name="OnEraseBackground"></event>\r
-                                        <event name="OnKeyDown"></event>\r
-                                        <event name="OnKeyUp"></event>\r
-                                        <event name="OnKillFocus"></event>\r
-                                        <event name="OnLeaveWindow"></event>\r
-                                        <event name="OnLeftDClick"></event>\r
-                                        <event name="OnLeftDown"></event>\r
-                                        <event name="OnLeftUp"></event>\r
-                                        <event name="OnMiddleDClick"></event>\r
-                                        <event name="OnMiddleDown"></event>\r
-                                        <event name="OnMiddleUp"></event>\r
-                                        <event name="OnMotion"></event>\r
-                                        <event name="OnMouseEvents"></event>\r
-                                        <event name="OnMouseWheel"></event>\r
-                                        <event name="OnPaint"></event>\r
-                                        <event name="OnRightDClick"></event>\r
-                                        <event name="OnRightDown"></event>\r
-                                        <event name="OnRightUp"></event>\r
-                                        <event name="OnSetFocus"></event>\r
-                                        <event name="OnSize"></event>\r
-                                        <event name="OnUpdateUI"></event>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND|wxRIGHT</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="wxBoxSizer" expanded="1">\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">bSizer19</property>\r
-                                <property name="orient">wxHORIZONTAL</property>\r
-                                <property name="permission">none</property>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">5</property>\r
-                                    <property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>\r
-                                    <property name="proportion">1</property>\r
-                                    <object class="wxTextCtrl" expanded="1">\r
-                                        <property name="bg"></property>\r
-                                        <property name="context_help"></property>\r
-                                        <property name="enabled">1</property>\r
-                                        <property name="fg"></property>\r
-                                        <property name="font"></property>\r
-                                        <property name="hidden">0</property>\r
-                                        <property name="id">wxID_TEXTCTRLPAYTO</property>\r
-                                        <property name="maximum_size"></property>\r
-                                        <property name="maxlength">0</property>\r
-                                        <property name="minimum_size"></property>\r
-                                        <property name="name">m_textCtrlAddress</property>\r
-                                        <property name="permission">protected</property>\r
-                                        <property name="pos"></property>\r
-                                        <property name="size"></property>\r
-                                        <property name="style"></property>\r
-                                        <property name="subclass"></property>\r
-                                        <property name="tooltip"></property>\r
-                                        <property name="validator_data_type"></property>\r
-                                        <property name="validator_style">wxFILTER_NONE</property>\r
-                                        <property name="validator_type">wxDefaultValidator</property>\r
-                                        <property name="validator_variable"></property>\r
-                                        <property name="value"></property>\r
-                                        <property name="window_extra_style"></property>\r
-                                        <property name="window_name"></property>\r
-                                        <property name="window_style"></property>\r
-                                        <event name="OnChar"></event>\r
-                                        <event name="OnEnterWindow"></event>\r
-                                        <event name="OnEraseBackground"></event>\r
-                                        <event name="OnKeyDown">OnKeyDown</event>\r
-                                        <event name="OnKeyUp"></event>\r
-                                        <event name="OnKillFocus"></event>\r
-                                        <event name="OnLeaveWindow"></event>\r
-                                        <event name="OnLeftDClick"></event>\r
-                                        <event name="OnLeftDown"></event>\r
-                                        <event name="OnLeftUp"></event>\r
-                                        <event name="OnMiddleDClick"></event>\r
-                                        <event name="OnMiddleDown"></event>\r
-                                        <event name="OnMiddleUp"></event>\r
-                                        <event name="OnMotion"></event>\r
-                                        <event name="OnMouseEvents"></event>\r
-                                        <event name="OnMouseWheel"></event>\r
-                                        <event name="OnPaint"></event>\r
-                                        <event name="OnRightDClick"></event>\r
-                                        <event name="OnRightDown"></event>\r
-                                        <event name="OnRightUp"></event>\r
-                                        <event name="OnSetFocus"></event>\r
-                                        <event name="OnSize"></event>\r
-                                        <event name="OnText">OnTextAddress</event>\r
-                                        <event name="OnTextEnter"></event>\r
-                                        <event name="OnTextMaxLen"></event>\r
-                                        <event name="OnTextURL"></event>\r
-                                        <event name="OnUpdateUI"></event>\r
-                                    </object>\r
-                                </object>\r
-                                <object class="sizeritem" expanded="1">\r
-                                    <property name="border">5</property>\r
-                                    <property name="flag">wxALIGN_CENTER_VERTICAL</property>\r
-                                    <property name="proportion">0</property>\r
-                                    <object class="wxBoxSizer" expanded="1">\r
-                                        <property name="minimum_size"></property>\r
-                                        <property name="name">bSizer66</property>\r
-                                        <property name="orient">wxHORIZONTAL</property>\r
-                                        <property name="permission">none</property>\r
-                                        <object class="sizeritem" expanded="1">\r
-                                            <property name="border">5</property>\r
-                                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxEXPAND</property>\r
-                                            <property name="proportion">0</property>\r
-                                            <object class="wxButton" expanded="1">\r
-                                                <property name="bg"></property>\r
-                                                <property name="context_help"></property>\r
-                                                <property name="default">0</property>\r
-                                                <property name="enabled">1</property>\r
-                                                <property name="fg"></property>\r
-                                                <property name="font"></property>\r
-                                                <property name="hidden">0</property>\r
-                                                <property name="id">wxID_BUTTONPASTE</property>\r
-                                                <property name="label">&amp;Paste</property>\r
-                                                <property name="maximum_size"></property>\r
-                                                <property name="minimum_size"></property>\r
-                                                <property name="name">m_buttonPaste</property>\r
-                                                <property name="permission">protected</property>\r
-                                                <property name="pos"></property>\r
-                                                <property name="size">-1,-1</property>\r
-                                                <property name="style">wxBU_EXACTFIT</property>\r
-                                                <property name="subclass"></property>\r
-                                                <property name="tooltip"></property>\r
-                                                <property name="validator_data_type"></property>\r
-                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                <property name="validator_variable"></property>\r
-                                                <property name="window_extra_style"></property>\r
-                                                <property name="window_name"></property>\r
-                                                <property name="window_style"></property>\r
-                                                <event name="OnButtonClick">OnButtonPaste</event>\r
-                                                <event name="OnChar"></event>\r
-                                                <event name="OnEnterWindow"></event>\r
-                                                <event name="OnEraseBackground"></event>\r
-                                                <event name="OnKeyDown"></event>\r
-                                                <event name="OnKeyUp"></event>\r
-                                                <event name="OnKillFocus"></event>\r
-                                                <event name="OnLeaveWindow"></event>\r
-                                                <event name="OnLeftDClick"></event>\r
-                                                <event name="OnLeftDown"></event>\r
-                                                <event name="OnLeftUp"></event>\r
-                                                <event name="OnMiddleDClick"></event>\r
-                                                <event name="OnMiddleDown"></event>\r
-                                                <event name="OnMiddleUp"></event>\r
-                                                <event name="OnMotion"></event>\r
-                                                <event name="OnMouseEvents"></event>\r
-                                                <event name="OnMouseWheel"></event>\r
-                                                <event name="OnPaint"></event>\r
-                                                <event name="OnRightDClick"></event>\r
-                                                <event name="OnRightDown"></event>\r
-                                                <event name="OnRightUp"></event>\r
-                                                <event name="OnSetFocus"></event>\r
-                                                <event name="OnSize"></event>\r
-                                                <event name="OnUpdateUI"></event>\r
-                                            </object>\r
-                                        </object>\r
-                                        <object class="sizeritem" expanded="1">\r
-                                            <property name="border">5</property>\r
-                                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxEXPAND</property>\r
-                                            <property name="proportion">0</property>\r
-                                            <object class="wxButton" expanded="1">\r
-                                                <property name="bg"></property>\r
-                                                <property name="context_help"></property>\r
-                                                <property name="default">0</property>\r
-                                                <property name="enabled">1</property>\r
-                                                <property name="fg"></property>\r
-                                                <property name="font"></property>\r
-                                                <property name="hidden">0</property>\r
-                                                <property name="id">wxID_BUTTONADDRESSBOOK</property>\r
-                                                <property name="label"> Address &amp;Book...</property>\r
-                                                <property name="maximum_size"></property>\r
-                                                <property name="minimum_size"></property>\r
-                                                <property name="name">m_buttonAddress</property>\r
-                                                <property name="permission">protected</property>\r
-                                                <property name="pos"></property>\r
-                                                <property name="size"></property>\r
-                                                <property name="style"></property>\r
-                                                <property name="subclass"></property>\r
-                                                <property name="tooltip"></property>\r
-                                                <property name="validator_data_type"></property>\r
-                                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                                <property name="validator_type">wxDefaultValidator</property>\r
-                                                <property name="validator_variable"></property>\r
-                                                <property name="window_extra_style"></property>\r
-                                                <property name="window_name"></property>\r
-                                                <property name="window_style"></property>\r
-                                                <event name="OnButtonClick">OnButtonAddressBook</event>\r
-                                                <event name="OnChar"></event>\r
-                                                <event name="OnEnterWindow"></event>\r
-                                                <event name="OnEraseBackground"></event>\r
-                                                <event name="OnKeyDown"></event>\r
-                                                <event name="OnKeyUp"></event>\r
-                                                <event name="OnKillFocus"></event>\r
-                                                <event name="OnLeaveWindow"></event>\r
-                                                <event name="OnLeftDClick"></event>\r
-                                                <event name="OnLeftDown"></event>\r
-                                                <event name="OnLeftUp"></event>\r
-                                                <event name="OnMiddleDClick"></event>\r
-                                                <event name="OnMiddleDown"></event>\r
-                                                <event name="OnMiddleUp"></event>\r
-                                                <event name="OnMotion"></event>\r
-                                                <event name="OnMouseEvents"></event>\r
-                                                <event name="OnMouseWheel"></event>\r
-                                                <event name="OnPaint"></event>\r
-                                                <event name="OnRightDClick"></event>\r
-                                                <event name="OnRightDown"></event>\r
-                                                <event name="OnRightUp"></event>\r
-                                                <event name="OnSetFocus"></event>\r
-                                                <event name="OnSize"></event>\r
-                                                <event name="OnUpdateUI"></event>\r
-                                            </object>\r
-                                        </object>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_RIGHT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxStaticText" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="label">&amp;Amount:</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_staticText19</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style">wxALIGN_RIGHT</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <property name="wrap">-1</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxTextCtrl" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font">,90,90,-1,70,0</property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_TEXTCTRLAMOUNT</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="maxlength">20</property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_textCtrlAmount</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">145,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="value"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown">OnKeyDown</event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus">OnKillFocusAmount</event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnText"></event>\r
-                                <event name="OnTextEnter"></event>\r
-                                <event name="OnTextMaxLen"></event>\r
-                                <event name="OnTextURL"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxTOP|wxBOTTOM|wxLEFT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxStaticText" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">1</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="label">T&amp;ransfer:</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_staticText20</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style">wxALIGN_RIGHT</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <property name="wrap">-1</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxChoice" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="choices">&quot; Standard&quot;</property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">1</property>\r
-                                <property name="id">wxID_CHOICETRANSFERTYPE</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_choiceTransferType</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="selection">0</property>\r
-                                <property name="size"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnChoice"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">3</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="0">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer672</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="0">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer23</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font">,90,90,-1,70,0</property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONSEND</property>\r
-                                <property name="label">&amp;Send</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonSend</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonSend</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_CANCEL</property>\r
-                                <property name="label">Cancel</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonCancel</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonCancel</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-        </object>\r
-        <object class="Dialog" expanded="0">\r
-            <property name="bg"></property>\r
-            <property name="center"></property>\r
-            <property name="context_help"></property>\r
-            <property name="enabled">1</property>\r
-            <property name="extra_style"></property>\r
-            <property name="fg"></property>\r
-            <property name="font"></property>\r
-            <property name="hidden">0</property>\r
-            <property name="id">wxID_ANY</property>\r
-            <property name="maximum_size"></property>\r
-            <property name="minimum_size"></property>\r
-            <property name="name">CSendingDialogBase</property>\r
-            <property name="pos"></property>\r
-            <property name="size">442,151</property>\r
-            <property name="style">wxDEFAULT_DIALOG_STYLE</property>\r
-            <property name="subclass"></property>\r
-            <property name="title">Sending...</property>\r
-            <property name="tooltip"></property>\r
-            <property name="validator_data_type"></property>\r
-            <property name="validator_style">wxFILTER_NONE</property>\r
-            <property name="validator_type">wxDefaultValidator</property>\r
-            <property name="validator_variable"></property>\r
-            <property name="window_extra_style"></property>\r
-            <property name="window_name"></property>\r
-            <property name="window_style"></property>\r
-            <event name="OnActivate"></event>\r
-            <event name="OnActivateApp"></event>\r
-            <event name="OnChar"></event>\r
-            <event name="OnClose">OnClose</event>\r
-            <event name="OnEnterWindow"></event>\r
-            <event name="OnEraseBackground"></event>\r
-            <event name="OnHibernate"></event>\r
-            <event name="OnIconize"></event>\r
-            <event name="OnIdle"></event>\r
-            <event name="OnInitDialog"></event>\r
-            <event name="OnKeyDown"></event>\r
-            <event name="OnKeyUp"></event>\r
-            <event name="OnKillFocus"></event>\r
-            <event name="OnLeaveWindow"></event>\r
-            <event name="OnLeftDClick"></event>\r
-            <event name="OnLeftDown"></event>\r
-            <event name="OnLeftUp"></event>\r
-            <event name="OnMiddleDClick"></event>\r
-            <event name="OnMiddleDown"></event>\r
-            <event name="OnMiddleUp"></event>\r
-            <event name="OnMotion"></event>\r
-            <event name="OnMouseEvents"></event>\r
-            <event name="OnMouseWheel"></event>\r
-            <event name="OnPaint">OnPaint</event>\r
-            <event name="OnRightDClick"></event>\r
-            <event name="OnRightDown"></event>\r
-            <event name="OnRightUp"></event>\r
-            <event name="OnSetFocus"></event>\r
-            <event name="OnSize"></event>\r
-            <event name="OnUpdateUI"></event>\r
-            <object class="wxBoxSizer" expanded="1">\r
-                <property name="minimum_size"></property>\r
-                <property name="name">bSizer68</property>\r
-                <property name="orient">wxVERTICAL</property>\r
-                <property name="permission">none</property>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">8</property>\r
-                    <property name="flag">wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxStaticText" expanded="1">\r
-                        <property name="bg"></property>\r
-                        <property name="context_help"></property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="fg"></property>\r
-                        <property name="font"></property>\r
-                        <property name="hidden">0</property>\r
-                        <property name="id">wxID_ANY</property>\r
-                        <property name="label"></property>\r
-                        <property name="maximum_size"></property>\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">m_staticTextSending</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="pos"></property>\r
-                        <property name="size">-1,14</property>\r
-                        <property name="style"></property>\r
-                        <property name="subclass"></property>\r
-                        <property name="tooltip"></property>\r
-                        <property name="validator_data_type"></property>\r
-                        <property name="validator_style">wxFILTER_NONE</property>\r
-                        <property name="validator_type">wxDefaultValidator</property>\r
-                        <property name="validator_variable"></property>\r
-                        <property name="window_extra_style"></property>\r
-                        <property name="window_name"></property>\r
-                        <property name="window_style"></property>\r
-                        <property name="wrap">-1</property>\r
-                        <event name="OnChar"></event>\r
-                        <event name="OnEnterWindow"></event>\r
-                        <event name="OnEraseBackground"></event>\r
-                        <event name="OnKeyDown"></event>\r
-                        <event name="OnKeyUp"></event>\r
-                        <event name="OnKillFocus"></event>\r
-                        <event name="OnLeaveWindow"></event>\r
-                        <event name="OnLeftDClick"></event>\r
-                        <event name="OnLeftDown"></event>\r
-                        <event name="OnLeftUp"></event>\r
-                        <event name="OnMiddleDClick"></event>\r
-                        <event name="OnMiddleDown"></event>\r
-                        <event name="OnMiddleUp"></event>\r
-                        <event name="OnMotion"></event>\r
-                        <event name="OnMouseEvents"></event>\r
-                        <event name="OnMouseWheel"></event>\r
-                        <event name="OnPaint"></event>\r
-                        <event name="OnRightDClick"></event>\r
-                        <event name="OnRightDown"></event>\r
-                        <event name="OnRightUp"></event>\r
-                        <event name="OnSetFocus"></event>\r
-                        <event name="OnSize"></event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">10</property>\r
-                    <property name="flag">wxEXPAND|wxRIGHT|wxLEFT</property>\r
-                    <property name="proportion">1</property>\r
-                    <object class="wxTextCtrl" expanded="1">\r
-                        <property name="bg">wxSYS_COLOUR_BTNFACE</property>\r
-                        <property name="context_help"></property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="fg"></property>\r
-                        <property name="font"></property>\r
-                        <property name="hidden">0</property>\r
-                        <property name="id">wxID_ANY</property>\r
-                        <property name="maximum_size"></property>\r
-                        <property name="maxlength">0</property>\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">m_textCtrlStatus</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="pos"></property>\r
-                        <property name="size"></property>\r
-                        <property name="style">wxTE_CENTRE|wxTE_MULTILINE|wxTE_NO_VSCROLL|wxTE_READONLY</property>\r
-                        <property name="subclass"></property>\r
-                        <property name="tooltip"></property>\r
-                        <property name="validator_data_type"></property>\r
-                        <property name="validator_style">wxFILTER_NONE</property>\r
-                        <property name="validator_type">wxDefaultValidator</property>\r
-                        <property name="validator_variable"></property>\r
-                        <property name="value">&#x0A;&#x0A;Connecting...</property>\r
-                        <property name="window_extra_style"></property>\r
-                        <property name="window_name"></property>\r
-                        <property name="window_style">wxNO_BORDER</property>\r
-                        <event name="OnChar"></event>\r
-                        <event name="OnEnterWindow"></event>\r
-                        <event name="OnEraseBackground"></event>\r
-                        <event name="OnKeyDown"></event>\r
-                        <event name="OnKeyUp"></event>\r
-                        <event name="OnKillFocus"></event>\r
-                        <event name="OnLeaveWindow"></event>\r
-                        <event name="OnLeftDClick"></event>\r
-                        <event name="OnLeftDown"></event>\r
-                        <event name="OnLeftUp"></event>\r
-                        <event name="OnMiddleDClick"></event>\r
-                        <event name="OnMiddleDown"></event>\r
-                        <event name="OnMiddleUp"></event>\r
-                        <event name="OnMotion"></event>\r
-                        <event name="OnMouseEvents"></event>\r
-                        <event name="OnMouseWheel"></event>\r
-                        <event name="OnPaint"></event>\r
-                        <event name="OnRightDClick"></event>\r
-                        <event name="OnRightDown"></event>\r
-                        <event name="OnRightUp"></event>\r
-                        <event name="OnSetFocus"></event>\r
-                        <event name="OnSize"></event>\r
-                        <event name="OnText"></event>\r
-                        <event name="OnTextEnter"></event>\r
-                        <event name="OnTextMaxLen"></event>\r
-                        <event name="OnTextURL"></event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer69</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">0</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="label">OK</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonOK</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonOK</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_CANCEL</property>\r
-                                <property name="label">Cancel</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonCancel</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonCancel</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-        </object>\r
-        <object class="Dialog" expanded="0">\r
-            <property name="bg"></property>\r
-            <property name="center"></property>\r
-            <property name="context_help"></property>\r
-            <property name="enabled">1</property>\r
-            <property name="extra_style"></property>\r
-            <property name="fg"></property>\r
-            <property name="font"></property>\r
-            <property name="hidden">0</property>\r
-            <property name="id">wxID_ANY</property>\r
-            <property name="maximum_size"></property>\r
-            <property name="minimum_size"></property>\r
-            <property name="name">CYourAddressDialogBase</property>\r
-            <property name="pos"></property>\r
-            <property name="size">610,390</property>\r
-            <property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>\r
-            <property name="subclass"></property>\r
-            <property name="title">Your Bitcoin Addresses</property>\r
-            <property name="tooltip"></property>\r
-            <property name="validator_data_type"></property>\r
-            <property name="validator_style">wxFILTER_NONE</property>\r
-            <property name="validator_type">wxDefaultValidator</property>\r
-            <property name="validator_variable"></property>\r
-            <property name="window_extra_style"></property>\r
-            <property name="window_name"></property>\r
-            <property name="window_style"></property>\r
-            <event name="OnActivate"></event>\r
-            <event name="OnActivateApp"></event>\r
-            <event name="OnChar"></event>\r
-            <event name="OnClose">OnClose</event>\r
-            <event name="OnEnterWindow"></event>\r
-            <event name="OnEraseBackground"></event>\r
-            <event name="OnHibernate"></event>\r
-            <event name="OnIconize"></event>\r
-            <event name="OnIdle"></event>\r
-            <event name="OnInitDialog"></event>\r
-            <event name="OnKeyDown"></event>\r
-            <event name="OnKeyUp"></event>\r
-            <event name="OnKillFocus"></event>\r
-            <event name="OnLeaveWindow"></event>\r
-            <event name="OnLeftDClick"></event>\r
-            <event name="OnLeftDown"></event>\r
-            <event name="OnLeftUp"></event>\r
-            <event name="OnMiddleDClick"></event>\r
-            <event name="OnMiddleDown"></event>\r
-            <event name="OnMiddleUp"></event>\r
-            <event name="OnMotion"></event>\r
-            <event name="OnMouseEvents"></event>\r
-            <event name="OnMouseWheel"></event>\r
-            <event name="OnPaint"></event>\r
-            <event name="OnRightDClick"></event>\r
-            <event name="OnRightDown"></event>\r
-            <event name="OnRightUp"></event>\r
-            <event name="OnSetFocus"></event>\r
-            <event name="OnSize"></event>\r
-            <event name="OnUpdateUI"></event>\r
-            <object class="wxBoxSizer" expanded="1">\r
-                <property name="minimum_size"></property>\r
-                <property name="name">bSizer68</property>\r
-                <property name="orient">wxVERTICAL</property>\r
-                <property name="permission">none</property>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="spacer" expanded="1">\r
-                        <property name="height">5</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="width">0</property>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxALL</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxStaticText" expanded="1">\r
-                        <property name="bg"></property>\r
-                        <property name="context_help"></property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="fg"></property>\r
-                        <property name="font"></property>\r
-                        <property name="hidden">0</property>\r
-                        <property name="id">wxID_ANY</property>\r
-                        <property name="label">These are your Bitcoin addresses for receiving payments.  You may want to give a different one to each sender so you can keep track of who is paying you.  The highlighted address is displayed in the main window.</property>\r
-                        <property name="maximum_size"></property>\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">m_staticText45</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="pos"></property>\r
-                        <property name="size"></property>\r
-                        <property name="style"></property>\r
-                        <property name="subclass"></property>\r
-                        <property name="tooltip"></property>\r
-                        <property name="validator_data_type"></property>\r
-                        <property name="validator_style">wxFILTER_NONE</property>\r
-                        <property name="validator_type">wxDefaultValidator</property>\r
-                        <property name="validator_variable"></property>\r
-                        <property name="window_extra_style"></property>\r
-                        <property name="window_name"></property>\r
-                        <property name="window_style"></property>\r
-                        <property name="wrap">590</property>\r
-                        <event name="OnChar"></event>\r
-                        <event name="OnEnterWindow"></event>\r
-                        <event name="OnEraseBackground"></event>\r
-                        <event name="OnKeyDown"></event>\r
-                        <event name="OnKeyUp"></event>\r
-                        <event name="OnKillFocus"></event>\r
-                        <event name="OnLeaveWindow"></event>\r
-                        <event name="OnLeftDClick"></event>\r
-                        <event name="OnLeftDown"></event>\r
-                        <event name="OnLeftUp"></event>\r
-                        <event name="OnMiddleDClick"></event>\r
-                        <event name="OnMiddleDown"></event>\r
-                        <event name="OnMiddleUp"></event>\r
-                        <event name="OnMotion"></event>\r
-                        <event name="OnMouseEvents"></event>\r
-                        <event name="OnMouseWheel"></event>\r
-                        <event name="OnPaint"></event>\r
-                        <event name="OnRightDClick"></event>\r
-                        <event name="OnRightDown"></event>\r
-                        <event name="OnRightUp"></event>\r
-                        <event name="OnSetFocus"></event>\r
-                        <event name="OnSize"></event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxALL|wxEXPAND</property>\r
-                    <property name="proportion">1</property>\r
-                    <object class="wxListCtrl" expanded="1">\r
-                        <property name="bg"></property>\r
-                        <property name="context_help"></property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="fg"></property>\r
-                        <property name="font"></property>\r
-                        <property name="hidden">0</property>\r
-                        <property name="id">wxID_LISTCTRL</property>\r
-                        <property name="maximum_size"></property>\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">m_listCtrl</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="pos"></property>\r
-                        <property name="size"></property>\r
-                        <property name="style">wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_ASCENDING</property>\r
-                        <property name="subclass"></property>\r
-                        <property name="tooltip"></property>\r
-                        <property name="validator_data_type"></property>\r
-                        <property name="validator_style">wxFILTER_NONE</property>\r
-                        <property name="validator_type">wxDefaultValidator</property>\r
-                        <property name="validator_variable"></property>\r
-                        <property name="window_extra_style"></property>\r
-                        <property name="window_name"></property>\r
-                        <property name="window_style"></property>\r
-                        <event name="OnChar"></event>\r
-                        <event name="OnEnterWindow"></event>\r
-                        <event name="OnEraseBackground"></event>\r
-                        <event name="OnKeyDown"></event>\r
-                        <event name="OnKeyUp"></event>\r
-                        <event name="OnKillFocus"></event>\r
-                        <event name="OnLeaveWindow"></event>\r
-                        <event name="OnLeftDClick"></event>\r
-                        <event name="OnLeftDown"></event>\r
-                        <event name="OnLeftUp"></event>\r
-                        <event name="OnListBeginDrag"></event>\r
-                        <event name="OnListBeginLabelEdit"></event>\r
-                        <event name="OnListBeginRDrag"></event>\r
-                        <event name="OnListCacheHint"></event>\r
-                        <event name="OnListColBeginDrag"></event>\r
-                        <event name="OnListColClick"></event>\r
-                        <event name="OnListColDragging"></event>\r
-                        <event name="OnListColEndDrag"></event>\r
-                        <event name="OnListColRightClick"></event>\r
-                        <event name="OnListDeleteAllItems"></event>\r
-                        <event name="OnListDeleteItem"></event>\r
-                        <event name="OnListEndLabelEdit">OnListEndLabelEdit</event>\r
-                        <event name="OnListInsertItem"></event>\r
-                        <event name="OnListItemActivated">OnListItemActivated</event>\r
-                        <event name="OnListItemDeselected"></event>\r
-                        <event name="OnListItemFocused"></event>\r
-                        <event name="OnListItemMiddleClick"></event>\r
-                        <event name="OnListItemRightClick"></event>\r
-                        <event name="OnListItemSelected">OnListItemSelected</event>\r
-                        <event name="OnListKeyDown"></event>\r
-                        <event name="OnMiddleDClick"></event>\r
-                        <event name="OnMiddleDown"></event>\r
-                        <event name="OnMiddleUp"></event>\r
-                        <event name="OnMotion"></event>\r
-                        <event name="OnMouseEvents"></event>\r
-                        <event name="OnMouseWheel"></event>\r
-                        <event name="OnPaint"></event>\r
-                        <event name="OnRightDClick"></event>\r
-                        <event name="OnRightDown"></event>\r
-                        <event name="OnRightUp"></event>\r
-                        <event name="OnSetFocus"></event>\r
-                        <event name="OnSize"></event>\r
-                        <event name="OnUpdateUI"></event>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer69</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONRENAME</property>\r
-                                <property name="label">&amp;Edit...</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonRename</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonRename</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONNEW</property>\r
-                                <property name="label"> &amp;New Address... </property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonNew</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonNew</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONCOPY</property>\r
-                                <property name="label"> &amp;Copy to Clipboard </property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonCopy</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonCopy</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_OK</property>\r
-                                <property name="label">OK</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonOK</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonOK</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">1</property>\r
-                                <property name="id">wxID_CANCEL</property>\r
-                                <property name="label">Cancel</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonCancel</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonCancel</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-        </object>\r
-        <object class="Dialog" expanded="0">\r
-            <property name="bg"></property>\r
-            <property name="center"></property>\r
-            <property name="context_help"></property>\r
-            <property name="enabled">1</property>\r
-            <property name="extra_style"></property>\r
-            <property name="fg"></property>\r
-            <property name="font"></property>\r
-            <property name="hidden">0</property>\r
-            <property name="id">wxID_ANY</property>\r
-            <property name="maximum_size"></property>\r
-            <property name="minimum_size"></property>\r
-            <property name="name">CAddressBookDialogBase</property>\r
-            <property name="pos"></property>\r
-            <property name="size">610,390</property>\r
-            <property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>\r
-            <property name="subclass"></property>\r
-            <property name="title">Address Book</property>\r
-            <property name="tooltip"></property>\r
-            <property name="validator_data_type"></property>\r
-            <property name="validator_style">wxFILTER_NONE</property>\r
-            <property name="validator_type">wxDefaultValidator</property>\r
-            <property name="validator_variable"></property>\r
-            <property name="window_extra_style"></property>\r
-            <property name="window_name"></property>\r
-            <property name="window_style"></property>\r
-            <event name="OnActivate"></event>\r
-            <event name="OnActivateApp"></event>\r
-            <event name="OnChar"></event>\r
-            <event name="OnClose">OnClose</event>\r
-            <event name="OnEnterWindow"></event>\r
-            <event name="OnEraseBackground"></event>\r
-            <event name="OnHibernate"></event>\r
-            <event name="OnIconize"></event>\r
-            <event name="OnIdle"></event>\r
-            <event name="OnInitDialog"></event>\r
-            <event name="OnKeyDown"></event>\r
-            <event name="OnKeyUp"></event>\r
-            <event name="OnKillFocus"></event>\r
-            <event name="OnLeaveWindow"></event>\r
-            <event name="OnLeftDClick"></event>\r
-            <event name="OnLeftDown"></event>\r
-            <event name="OnLeftUp"></event>\r
-            <event name="OnMiddleDClick"></event>\r
-            <event name="OnMiddleDown"></event>\r
-            <event name="OnMiddleUp"></event>\r
-            <event name="OnMotion"></event>\r
-            <event name="OnMouseEvents"></event>\r
-            <event name="OnMouseWheel"></event>\r
-            <event name="OnPaint"></event>\r
-            <event name="OnRightDClick"></event>\r
-            <event name="OnRightDown"></event>\r
-            <event name="OnRightUp"></event>\r
-            <event name="OnSetFocus"></event>\r
-            <event name="OnSize"></event>\r
-            <event name="OnUpdateUI"></event>\r
-            <object class="wxBoxSizer" expanded="1">\r
-                <property name="minimum_size"></property>\r
-                <property name="name">bSizer58</property>\r
-                <property name="orient">wxVERTICAL</property>\r
-                <property name="permission">none</property>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND|wxTOP|wxRIGHT|wxLEFT</property>\r
-                    <property name="proportion">1</property>\r
-                    <object class="wxNotebook" expanded="1">\r
-                        <property name="bg"></property>\r
-                        <property name="bitmapsize"></property>\r
-                        <property name="context_help"></property>\r
-                        <property name="enabled">1</property>\r
-                        <property name="fg"></property>\r
-                        <property name="font"></property>\r
-                        <property name="hidden">0</property>\r
-                        <property name="id">wxID_ANY</property>\r
-                        <property name="maximum_size"></property>\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">m_notebook</property>\r
-                        <property name="permission">protected</property>\r
-                        <property name="pos"></property>\r
-                        <property name="size"></property>\r
-                        <property name="style"></property>\r
-                        <property name="subclass"></property>\r
-                        <property name="tooltip"></property>\r
-                        <property name="validator_data_type"></property>\r
-                        <property name="validator_style">wxFILTER_NONE</property>\r
-                        <property name="validator_type">wxDefaultValidator</property>\r
-                        <property name="validator_variable"></property>\r
-                        <property name="window_extra_style"></property>\r
-                        <property name="window_name"></property>\r
-                        <property name="window_style"></property>\r
-                        <event name="OnChar"></event>\r
-                        <event name="OnEnterWindow"></event>\r
-                        <event name="OnEraseBackground"></event>\r
-                        <event name="OnKeyDown"></event>\r
-                        <event name="OnKeyUp"></event>\r
-                        <event name="OnKillFocus"></event>\r
-                        <event name="OnLeaveWindow"></event>\r
-                        <event name="OnLeftDClick"></event>\r
-                        <event name="OnLeftDown"></event>\r
-                        <event name="OnLeftUp"></event>\r
-                        <event name="OnMiddleDClick"></event>\r
-                        <event name="OnMiddleDown"></event>\r
-                        <event name="OnMiddleUp"></event>\r
-                        <event name="OnMotion"></event>\r
-                        <event name="OnMouseEvents"></event>\r
-                        <event name="OnMouseWheel"></event>\r
-                        <event name="OnNotebookPageChanged">OnNotebookPageChanged</event>\r
-                        <event name="OnNotebookPageChanging"></event>\r
-                        <event name="OnPaint"></event>\r
-                        <event name="OnRightDClick"></event>\r
-                        <event name="OnRightDown"></event>\r
-                        <event name="OnRightUp"></event>\r
-                        <event name="OnSetFocus"></event>\r
-                        <event name="OnSize"></event>\r
-                        <event name="OnUpdateUI"></event>\r
-                        <object class="notebookpage" expanded="1">\r
-                            <property name="bitmap"></property>\r
-                            <property name="label">Sending</property>\r
-                            <property name="select">0</property>\r
-                            <object class="wxPanel" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_PANELSENDING</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_panelSending</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style">wxTAB_TRAVERSAL</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                                <object class="wxBoxSizer" expanded="1">\r
-                                    <property name="minimum_size"></property>\r
-                                    <property name="name">bSizer68</property>\r
-                                    <property name="orient">wxVERTICAL</property>\r
-                                    <property name="permission">none</property>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxEXPAND</property>\r
-                                        <property name="proportion">0</property>\r
-                                        <object class="spacer" expanded="1">\r
-                                            <property name="height">0</property>\r
-                                            <property name="permission">protected</property>\r
-                                            <property name="width">0</property>\r
-                                        </object>\r
-                                    </object>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxTOP|wxRIGHT|wxLEFT</property>\r
-                                        <property name="proportion">0</property>\r
-                                        <object class="wxStaticText" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">1</property>\r
-                                            <property name="id">wxID_ANY</property>\r
-                                            <property name="label">Bitcoin Address</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_staticText55</property>\r
-                                            <property name="permission">protected</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="style"></property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style"></property>\r
-                                            <property name="wrap">-1</property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint"></event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                        </object>\r
-                                    </object>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxALL|wxEXPAND</property>\r
-                                        <property name="proportion">1</property>\r
-                                        <object class="wxListCtrl" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">0</property>\r
-                                            <property name="id">wxID_LISTCTRLSENDING</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_listCtrlSending</property>\r
-                                            <property name="permission">protected</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="style">wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_ASCENDING</property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style"></property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnListBeginDrag"></event>\r
-                                            <event name="OnListBeginLabelEdit"></event>\r
-                                            <event name="OnListBeginRDrag"></event>\r
-                                            <event name="OnListCacheHint"></event>\r
-                                            <event name="OnListColBeginDrag"></event>\r
-                                            <event name="OnListColClick"></event>\r
-                                            <event name="OnListColDragging"></event>\r
-                                            <event name="OnListColEndDrag"></event>\r
-                                            <event name="OnListColRightClick"></event>\r
-                                            <event name="OnListDeleteAllItems"></event>\r
-                                            <event name="OnListDeleteItem"></event>\r
-                                            <event name="OnListEndLabelEdit">OnListEndLabelEdit</event>\r
-                                            <event name="OnListInsertItem"></event>\r
-                                            <event name="OnListItemActivated">OnListItemActivated</event>\r
-                                            <event name="OnListItemDeselected"></event>\r
-                                            <event name="OnListItemFocused"></event>\r
-                                            <event name="OnListItemMiddleClick"></event>\r
-                                            <event name="OnListItemRightClick"></event>\r
-                                            <event name="OnListItemSelected">OnListItemSelected</event>\r
-                                            <event name="OnListKeyDown"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint"></event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                        </object>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                        <object class="notebookpage" expanded="1">\r
-                            <property name="bitmap"></property>\r
-                            <property name="label">Receiving</property>\r
-                            <property name="select">1</property>\r
-                            <object class="wxPanel" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_PANELRECEIVING</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_panelReceiving</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style">wxTAB_TRAVERSAL</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                                <object class="wxBoxSizer" expanded="1">\r
-                                    <property name="minimum_size"></property>\r
-                                    <property name="name">bSizer681</property>\r
-                                    <property name="orient">wxVERTICAL</property>\r
-                                    <property name="permission">none</property>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxEXPAND</property>\r
-                                        <property name="proportion">0</property>\r
-                                        <object class="spacer" expanded="1">\r
-                                            <property name="height">0</property>\r
-                                            <property name="permission">protected</property>\r
-                                            <property name="width">0</property>\r
-                                        </object>\r
-                                    </object>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">6</property>\r
-                                        <property name="flag">wxTOP|wxRIGHT|wxLEFT</property>\r
-                                        <property name="proportion">0</property>\r
-                                        <object class="wxStaticText" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">0</property>\r
-                                            <property name="id">wxID_ANY</property>\r
-                                            <property name="label">These are your Bitcoin addresses for receiving payments.  You can give a different one to each sender to keep track of who is paying you.  The highlighted address will be displayed in the main window.</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_staticText45</property>\r
-                                            <property name="permission">protected</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="style"></property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style"></property>\r
-                                            <property name="wrap">570</property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint"></event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                        </object>\r
-                                    </object>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxEXPAND</property>\r
-                                        <property name="proportion">0</property>\r
-                                        <object class="spacer" expanded="1">\r
-                                            <property name="height">2</property>\r
-                                            <property name="permission">protected</property>\r
-                                            <property name="width">0</property>\r
-                                        </object>\r
-                                    </object>\r
-                                    <object class="sizeritem" expanded="1">\r
-                                        <property name="border">5</property>\r
-                                        <property name="flag">wxALL|wxEXPAND</property>\r
-                                        <property name="proportion">1</property>\r
-                                        <object class="wxListCtrl" expanded="1">\r
-                                            <property name="bg"></property>\r
-                                            <property name="context_help"></property>\r
-                                            <property name="enabled">1</property>\r
-                                            <property name="fg"></property>\r
-                                            <property name="font"></property>\r
-                                            <property name="hidden">0</property>\r
-                                            <property name="id">wxID_LISTCTRLRECEIVING</property>\r
-                                            <property name="maximum_size"></property>\r
-                                            <property name="minimum_size"></property>\r
-                                            <property name="name">m_listCtrlReceiving</property>\r
-                                            <property name="permission">protected</property>\r
-                                            <property name="pos"></property>\r
-                                            <property name="size"></property>\r
-                                            <property name="style">wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_ASCENDING</property>\r
-                                            <property name="subclass"></property>\r
-                                            <property name="tooltip"></property>\r
-                                            <property name="validator_data_type"></property>\r
-                                            <property name="validator_style">wxFILTER_NONE</property>\r
-                                            <property name="validator_type">wxDefaultValidator</property>\r
-                                            <property name="validator_variable"></property>\r
-                                            <property name="window_extra_style"></property>\r
-                                            <property name="window_name"></property>\r
-                                            <property name="window_style"></property>\r
-                                            <event name="OnChar"></event>\r
-                                            <event name="OnEnterWindow"></event>\r
-                                            <event name="OnEraseBackground"></event>\r
-                                            <event name="OnKeyDown"></event>\r
-                                            <event name="OnKeyUp"></event>\r
-                                            <event name="OnKillFocus"></event>\r
-                                            <event name="OnLeaveWindow"></event>\r
-                                            <event name="OnLeftDClick"></event>\r
-                                            <event name="OnLeftDown"></event>\r
-                                            <event name="OnLeftUp"></event>\r
-                                            <event name="OnListBeginDrag"></event>\r
-                                            <event name="OnListBeginLabelEdit"></event>\r
-                                            <event name="OnListBeginRDrag"></event>\r
-                                            <event name="OnListCacheHint"></event>\r
-                                            <event name="OnListColBeginDrag"></event>\r
-                                            <event name="OnListColClick"></event>\r
-                                            <event name="OnListColDragging"></event>\r
-                                            <event name="OnListColEndDrag"></event>\r
-                                            <event name="OnListColRightClick"></event>\r
-                                            <event name="OnListDeleteAllItems"></event>\r
-                                            <event name="OnListDeleteItem"></event>\r
-                                            <event name="OnListEndLabelEdit">OnListEndLabelEdit</event>\r
-                                            <event name="OnListInsertItem"></event>\r
-                                            <event name="OnListItemActivated">OnListItemActivated</event>\r
-                                            <event name="OnListItemDeselected"></event>\r
-                                            <event name="OnListItemFocused"></event>\r
-                                            <event name="OnListItemMiddleClick"></event>\r
-                                            <event name="OnListItemRightClick"></event>\r
-                                            <event name="OnListItemSelected">OnListItemSelected</event>\r
-                                            <event name="OnListKeyDown"></event>\r
-                                            <event name="OnMiddleDClick"></event>\r
-                                            <event name="OnMiddleDown"></event>\r
-                                            <event name="OnMiddleUp"></event>\r
-                                            <event name="OnMotion"></event>\r
-                                            <event name="OnMouseEvents"></event>\r
-                                            <event name="OnMouseWheel"></event>\r
-                                            <event name="OnPaint"></event>\r
-                                            <event name="OnRightDClick"></event>\r
-                                            <event name="OnRightDown"></event>\r
-                                            <event name="OnRightUp"></event>\r
-                                            <event name="OnSetFocus"></event>\r
-                                            <event name="OnSize"></event>\r
-                                            <event name="OnUpdateUI"></event>\r
-                                        </object>\r
-                                    </object>\r
-                                </object>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer69</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONDELETE</property>\r
-                                <property name="label">&amp;Delete</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonDelete</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonDelete</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONCOPY</property>\r
-                                <property name="label"> &amp;Copy to Clipboard </property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonCopy</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonCopy</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONEDIT</property>\r
-                                <property name="label">&amp;Edit...</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonEdit</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonEdit</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_BUTTONNEW</property>\r
-                                <property name="label"> &amp;New Address... </property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonNew</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonNew</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_OK</property>\r
-                                <property name="label">OK</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonOK</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonOK</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_CANCEL</property>\r
-                                <property name="label">Cancel</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonCancel</property>\r
-                                <property name="permission">public</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonCancel</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-        </object>\r
-        <object class="Dialog" expanded="0">\r
-            <property name="bg"></property>\r
-            <property name="center"></property>\r
-            <property name="context_help"></property>\r
-            <property name="enabled">1</property>\r
-            <property name="extra_style"></property>\r
-            <property name="fg"></property>\r
-            <property name="font"></property>\r
-            <property name="hidden">0</property>\r
-            <property name="id">wxID_ANY</property>\r
-            <property name="maximum_size"></property>\r
-            <property name="minimum_size"></property>\r
-            <property name="name">CGetTextFromUserDialogBase</property>\r
-            <property name="pos"></property>\r
-            <property name="size">440,138</property>\r
-            <property name="style">wxDEFAULT_DIALOG_STYLE</property>\r
-            <property name="subclass"></property>\r
-            <property name="title"></property>\r
-            <property name="tooltip"></property>\r
-            <property name="validator_data_type"></property>\r
-            <property name="validator_style">wxFILTER_NONE</property>\r
-            <property name="validator_type">wxDefaultValidator</property>\r
-            <property name="validator_variable"></property>\r
-            <property name="window_extra_style"></property>\r
-            <property name="window_name"></property>\r
-            <property name="window_style"></property>\r
-            <event name="OnActivate"></event>\r
-            <event name="OnActivateApp"></event>\r
-            <event name="OnChar"></event>\r
-            <event name="OnClose">OnClose</event>\r
-            <event name="OnEnterWindow"></event>\r
-            <event name="OnEraseBackground"></event>\r
-            <event name="OnHibernate"></event>\r
-            <event name="OnIconize"></event>\r
-            <event name="OnIdle"></event>\r
-            <event name="OnInitDialog"></event>\r
-            <event name="OnKeyDown"></event>\r
-            <event name="OnKeyUp"></event>\r
-            <event name="OnKillFocus"></event>\r
-            <event name="OnLeaveWindow"></event>\r
-            <event name="OnLeftDClick"></event>\r
-            <event name="OnLeftDown"></event>\r
-            <event name="OnLeftUp"></event>\r
-            <event name="OnMiddleDClick"></event>\r
-            <event name="OnMiddleDown"></event>\r
-            <event name="OnMiddleUp"></event>\r
-            <event name="OnMotion"></event>\r
-            <event name="OnMouseEvents"></event>\r
-            <event name="OnMouseWheel"></event>\r
-            <event name="OnPaint"></event>\r
-            <event name="OnRightDClick"></event>\r
-            <event name="OnRightDown"></event>\r
-            <event name="OnRightUp"></event>\r
-            <event name="OnSetFocus"></event>\r
-            <event name="OnSize"></event>\r
-            <event name="OnUpdateUI"></event>\r
-            <object class="wxBoxSizer" expanded="1">\r
-                <property name="minimum_size"></property>\r
-                <property name="name">bSizer79</property>\r
-                <property name="orient">wxVERTICAL</property>\r
-                <property name="permission">none</property>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">10</property>\r
-                    <property name="flag">wxEXPAND|wxALL</property>\r
-                    <property name="proportion">1</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer81</property>\r
-                        <property name="orient">wxVERTICAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxTOP|wxRIGHT|wxLEFT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxStaticText" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="label"></property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_staticTextMessage1</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <property name="wrap">-1</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxTextCtrl" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_TEXTCTRL</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="maxlength">0</property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_textCtrl1</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style">wxTE_PROCESS_ENTER</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="value"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown">OnKeyDown</event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnText"></event>\r
-                                <event name="OnTextEnter"></event>\r
-                                <event name="OnTextMaxLen"></event>\r
-                                <event name="OnTextURL"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxTOP|wxRIGHT|wxLEFT</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxStaticText" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">1</property>\r
-                                <property name="id">wxID_ANY</property>\r
-                                <property name="label"></property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_staticTextMessage2</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <property name="wrap">-1</property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxTextCtrl" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">1</property>\r
-                                <property name="id">wxID_TEXTCTRL</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="maxlength">0</property>\r
-                                <property name="minimum_size"></property>\r
-                                <property name="name">m_textCtrl2</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style">wxTE_PROCESS_ENTER</property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="value"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown">OnKeyDown</event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnText"></event>\r
-                                <event name="OnTextEnter"></event>\r
-                                <event name="OnTextMaxLen"></event>\r
-                                <event name="OnTextURL"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-                <object class="sizeritem" expanded="1">\r
-                    <property name="border">5</property>\r
-                    <property name="flag">wxEXPAND</property>\r
-                    <property name="proportion">0</property>\r
-                    <object class="wxBoxSizer" expanded="1">\r
-                        <property name="minimum_size"></property>\r
-                        <property name="name">bSizer80</property>\r
-                        <property name="orient">wxHORIZONTAL</property>\r
-                        <property name="permission">none</property>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxEXPAND</property>\r
-                            <property name="proportion">1</property>\r
-                            <object class="spacer" expanded="1">\r
-                                <property name="height">0</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="width">0</property>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_OK</property>\r
-                                <property name="label">OK</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonOK</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size">-1,-1</property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonOK</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                        <object class="sizeritem" expanded="1">\r
-                            <property name="border">5</property>\r
-                            <property name="flag">wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>\r
-                            <property name="proportion">0</property>\r
-                            <object class="wxButton" expanded="1">\r
-                                <property name="bg"></property>\r
-                                <property name="context_help"></property>\r
-                                <property name="default">0</property>\r
-                                <property name="enabled">1</property>\r
-                                <property name="fg"></property>\r
-                                <property name="font"></property>\r
-                                <property name="hidden">0</property>\r
-                                <property name="id">wxID_CANCEL</property>\r
-                                <property name="label">Cancel</property>\r
-                                <property name="maximum_size"></property>\r
-                                <property name="minimum_size">-1,-1</property>\r
-                                <property name="name">m_buttonCancel</property>\r
-                                <property name="permission">protected</property>\r
-                                <property name="pos"></property>\r
-                                <property name="size"></property>\r
-                                <property name="style"></property>\r
-                                <property name="subclass"></property>\r
-                                <property name="tooltip"></property>\r
-                                <property name="validator_data_type"></property>\r
-                                <property name="validator_style">wxFILTER_NONE</property>\r
-                                <property name="validator_type">wxDefaultValidator</property>\r
-                                <property name="validator_variable"></property>\r
-                                <property name="window_extra_style"></property>\r
-                                <property name="window_name"></property>\r
-                                <property name="window_style"></property>\r
-                                <event name="OnButtonClick">OnButtonCancel</event>\r
-                                <event name="OnChar"></event>\r
-                                <event name="OnEnterWindow"></event>\r
-                                <event name="OnEraseBackground"></event>\r
-                                <event name="OnKeyDown"></event>\r
-                                <event name="OnKeyUp"></event>\r
-                                <event name="OnKillFocus"></event>\r
-                                <event name="OnLeaveWindow"></event>\r
-                                <event name="OnLeftDClick"></event>\r
-                                <event name="OnLeftDown"></event>\r
-                                <event name="OnLeftUp"></event>\r
-                                <event name="OnMiddleDClick"></event>\r
-                                <event name="OnMiddleDown"></event>\r
-                                <event name="OnMiddleUp"></event>\r
-                                <event name="OnMotion"></event>\r
-                                <event name="OnMouseEvents"></event>\r
-                                <event name="OnMouseWheel"></event>\r
-                                <event name="OnPaint"></event>\r
-                                <event name="OnRightDClick"></event>\r
-                                <event name="OnRightDown"></event>\r
-                                <event name="OnRightUp"></event>\r
-                                <event name="OnSetFocus"></event>\r
-                                <event name="OnSize"></event>\r
-                                <event name="OnUpdateUI"></event>\r
-                            </object>\r
-                        </object>\r
-                    </object>\r
-                </object>\r
-            </object>\r
-        </object>\r
-    </object>\r
-</wxFormBuilder_Project>\r
similarity index 93%
rename from src/rpc.cpp
rename to src/bitcoinrpc.cpp
index 885ffd1..1912e76 100644 (file)
@@ -50,13 +50,13 @@ Object JSONRPCError(int code, const string& message)
 }
 
 
-void PrintConsole(const char* format, ...)
+void PrintConsole(const std::string &format, ...)
 {
     char buffer[50000];
     int limit = sizeof(buffer);
     va_list arg_ptr;
     va_start(arg_ptr, format);
-    int ret = _vsnprintf(buffer, limit, format, arg_ptr);
+    int ret = _vsnprintf(buffer, limit, format.c_str(), arg_ptr);
     va_end(arg_ptr);
     if (ret < 0 || ret >= limit)
     {
@@ -64,11 +64,7 @@ void PrintConsole(const char* format, ...)
         buffer[limit-1] = 0;
     }
     printf("%s", buffer);
-#if defined(__WXMSW__) && defined(GUI)
-    MyMessageBox(buffer, "Bitcoin", wxOK | wxICON_EXCLAMATION);
-#else
     fprintf(stdout, "%s", buffer);
-#endif
 }
 
 
@@ -530,6 +526,72 @@ Value sendtoaddress(const Array& params, bool fHelp)
     return wtx.GetHash().GetHex();
 }
 
+static const string strMessageMagic = "Bitcoin Signed Message:\n";
+
+Value signmessage(const Array& params, bool fHelp)
+{
+    if (fHelp || params.size() != 2)
+        throw runtime_error(
+            "signmessage <bitcoinaddress> <message>\n"
+            "Sign a message with the private key of an address");
+
+    if (pwalletMain->IsLocked())
+        throw JSONRPCError(-13, "Error: Please enter the wallet passphrase with walletpassphrase first.");
+
+    string strAddress = params[0].get_str();
+    string strMessage = params[1].get_str();
+
+    CBitcoinAddress addr(strAddress);
+    if (!addr.IsValid())
+        throw JSONRPCError(-3, "Invalid address");
+
+    CKey key;
+    if (!pwalletMain->GetKey(addr, key))
+        throw JSONRPCError(-4, "Private key not available");
+
+    CDataStream ss(SER_GETHASH);
+    ss << strMessageMagic;
+    ss << strMessage;
+
+    vector<unsigned char> vchSig;
+    if (!key.SignCompact(Hash(ss.begin(), ss.end()), vchSig))
+        throw JSONRPCError(-5, "Sign failed");
+
+    return EncodeBase64(&vchSig[0], vchSig.size());
+}
+
+Value verifymessage(const Array& params, bool fHelp)
+{
+    if (fHelp || params.size() != 3)
+        throw runtime_error(
+            "verifymessage <bitcoinaddress> <signature> <message>\n"
+            "Verify a signed message");
+
+    string strAddress  = params[0].get_str();
+    string strSign     = params[1].get_str();
+    string strMessage  = params[2].get_str();
+
+    CBitcoinAddress addr(strAddress);
+    if (!addr.IsValid())
+        throw JSONRPCError(-3, "Invalid address");
+
+    bool fInvalid = false;
+    vector<unsigned char> vchSig = DecodeBase64(strSign.c_str(), &fInvalid);
+
+    if (fInvalid)
+        throw JSONRPCError(-5, "Malformed base64 encoding");
+
+    CDataStream ss(SER_GETHASH);
+    ss << strMessageMagic;
+    ss << strMessage;
+
+    CKey key;
+    if (!key.SetCompactSignature(Hash(ss.begin(), ss.end()), vchSig))
+        return false;
+
+    return (key.GetAddress() == addr);
+}
+
 
 Value getreceivedbyaddress(const Array& params, bool fHelp)
 {
@@ -941,7 +1003,6 @@ Value ListReceived(const Array& params, bool fByAccounts)
             Object obj;
             obj.push_back(Pair("address",       address.ToString()));
             obj.push_back(Pair("account",       strAccount));
-            obj.push_back(Pair("label",         strAccount)); // deprecated
             obj.push_back(Pair("amount",        ValueFromAmount(nAmount)));
             obj.push_back(Pair("confirmations", (nConf == INT_MAX ? 0 : nConf)));
             ret.push_back(obj);
@@ -956,7 +1017,6 @@ Value ListReceived(const Array& params, bool fByAccounts)
             int nConf = (*it).second.nConf;
             Object obj;
             obj.push_back(Pair("account",       (*it).first));
-            obj.push_back(Pair("label",         (*it).first)); // deprecated
             obj.push_back(Pair("amount",        ValueFromAmount(nAmount)));
             obj.push_back(Pair("confirmations", (nConf == INT_MAX ? 0 : nConf)));
             ret.push_back(obj);
@@ -1486,9 +1546,9 @@ Value getwork(const Array& params, bool fHelp)
         throw runtime_error(
             "getwork [data]\n"
             "If [data] is not specified, returns formatted hash data to work on:\n"
-            "  \"midstate\" : precomputed hash state after hashing the first half of the data\n"
+            "  \"midstate\" : precomputed hash state after hashing the first half of the data (DEPRECATED)\n" // deprecated
             "  \"data\" : block data\n"
-            "  \"hash1\" : formatted hash buffer for second hash\n"
+            "  \"hash1\" : formatted hash buffer for second hash (DEPRECATED)\n" // deprecated
             "  \"target\" : little endian hash target\n"
             "If [data] is specified, tries to solve the block and returns true if it was successful.");
 
@@ -1552,9 +1612,9 @@ Value getwork(const Array& params, bool fHelp)
         uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
 
         Object result;
-        result.push_back(Pair("midstate", HexStr(BEGIN(pmidstate), END(pmidstate))));
+        result.push_back(Pair("midstate", HexStr(BEGIN(pmidstate), END(pmidstate)))); // deprecated
         result.push_back(Pair("data",     HexStr(BEGIN(pdata), END(pdata))));
-        result.push_back(Pair("hash1",    HexStr(BEGIN(phash1), END(phash1))));
+        result.push_back(Pair("hash1",    HexStr(BEGIN(phash1), END(phash1)))); // deprecated
         result.push_back(Pair("target",   HexStr(BEGIN(hashTarget), END(hashTarget))));
         return result;
     }
@@ -1585,6 +1645,86 @@ Value getwork(const Array& params, bool fHelp)
 }
 
 
+Value getmemorypool(const Array& params, bool fHelp)
+{
+    if (fHelp || params.size() > 1)
+        throw runtime_error(
+            "getmemorypool [data]\n"
+            "If [data] is not specified, returns data needed to construct a block to work on:\n"
+            "  \"version\" : block version\n"
+            "  \"previousblockhash\" : hash of current highest block\n"
+            "  \"transactions\" : contents of non-coinbase transactions that should be included in the next block\n"
+            "  \"coinbasevalue\" : maximum allowable input to coinbase transaction, including the generation award and transaction fees\n"
+            "  \"time\" : timestamp appropriate for next block\n"
+            "  \"bits\" : compressed target of next block\n"
+            "If [data] is specified, tries to solve the block and returns true if it was successful.");
+
+    if (params.size() == 0)
+    {
+        if (vNodes.empty())
+            throw JSONRPCError(-9, "Bitcoin is not connected!");
+
+        if (IsInitialBlockDownload())
+            throw JSONRPCError(-10, "Bitcoin is downloading blocks...");
+
+        static CReserveKey reservekey(pwalletMain);
+
+        // Update block
+        static unsigned int nTransactionsUpdatedLast;
+        static CBlockIndex* pindexPrev;
+        static int64 nStart;
+        static CBlock* pblock;
+        if (pindexPrev != pindexBest ||
+            (nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 5))
+        {
+            nTransactionsUpdatedLast = nTransactionsUpdated;
+            pindexPrev = pindexBest;
+            nStart = GetTime();
+
+            // Create new block
+            if(pblock)
+                delete pblock;
+            pblock = CreateNewBlock(reservekey);
+            if (!pblock)
+                throw JSONRPCError(-7, "Out of memory");
+        }
+
+        // Update nTime
+        pblock->nTime = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime());
+        pblock->nNonce = 0;
+
+        Array transactions;
+        BOOST_FOREACH(CTransaction tx, pblock->vtx) {
+            if(tx.IsCoinBase())
+                continue;
+
+            CDataStream ssTx;
+            ssTx << tx;
+
+            transactions.push_back(HexStr(ssTx.begin(), ssTx.end()));
+        }
+
+        Object result;
+        result.push_back(Pair("version", pblock->nVersion));
+        result.push_back(Pair("previousblockhash", pblock->hashPrevBlock.GetHex()));
+        result.push_back(Pair("transactions", transactions));
+        result.push_back(Pair("coinbasevalue", (int64_t)pblock->vtx[0].vout[0].nValue));
+        result.push_back(Pair("time", (int64_t)pblock->nTime));
+        result.push_back(Pair("bits", (int64_t)pblock->nBits));
+        return result;
+    }
+    else
+    {
+        // Parse parameters
+        CDataStream ssBlock(ParseHex(params[0].get_str()));
+        CBlock pblock;
+        ssBlock >> pblock;
+
+        return ProcessBlock(NULL, &pblock);
+    }
+}
+
+
 
 
 
@@ -1613,20 +1753,13 @@ pair<string, rpcfn_type> pCallTable[] =
     make_pair("getnewaddress",          &getnewaddress),
     make_pair("getaccountaddress",      &getaccountaddress),
     make_pair("setaccount",             &setaccount),
-    make_pair("setlabel",               &setaccount), // deprecated
     make_pair("getaccount",             &getaccount),
-    make_pair("getlabel",               &getaccount), // deprecated
     make_pair("getaddressesbyaccount",  &getaddressesbyaccount),
-    make_pair("getaddressesbylabel",    &getaddressesbyaccount), // deprecated
     make_pair("sendtoaddress",          &sendtoaddress),
-    make_pair("getamountreceived",      &getreceivedbyaddress), // deprecated, renamed to getreceivedbyaddress
-    make_pair("getallreceived",         &listreceivedbyaddress), // deprecated, renamed to listreceivedbyaddress
     make_pair("getreceivedbyaddress",   &getreceivedbyaddress),
     make_pair("getreceivedbyaccount",   &getreceivedbyaccount),
-    make_pair("getreceivedbylabel",     &getreceivedbyaccount), // deprecated
     make_pair("listreceivedbyaddress",  &listreceivedbyaddress),
     make_pair("listreceivedbyaccount",  &listreceivedbyaccount),
-    make_pair("listreceivedbylabel",    &listreceivedbyaccount), // deprecated
     make_pair("backupwallet",           &backupwallet),
     make_pair("keypoolrefill",          &keypoolrefill),
     make_pair("walletpassphrase",       &walletpassphrase),
@@ -1640,9 +1773,12 @@ pair<string, rpcfn_type> pCallTable[] =
     make_pair("sendmany",               &sendmany),
     make_pair("gettransaction",         &gettransaction),
     make_pair("listtransactions",       &listtransactions),
+    make_pair("signmessage",           &signmessage),
+    make_pair("verifymessage",         &verifymessage),
     make_pair("getwork",                &getwork),
     make_pair("listaccounts",           &listaccounts),
     make_pair("settxfee",               &settxfee),
+    make_pair("getmemorypool",          &getmemorypool),
 };
 map<string, rpcfn_type> mapCallTable(pCallTable, pCallTable + sizeof(pCallTable)/sizeof(pCallTable[0]));
 
@@ -1660,17 +1796,15 @@ string pAllowInSafeMode[] =
     "getinfo",
     "getnewaddress",
     "getaccountaddress",
-    "setlabel", // deprecated
     "getaccount",
-    "getlabel", // deprecated
     "getaddressesbyaccount",
-    "getaddressesbylabel", // deprecated
     "backupwallet",
     "keypoolrefill",
     "walletpassphrase",
     "walletlock",
     "validateaddress",
     "getwork",
+    "getmemorypool",
 };
 set<string> setAllowInSafeMode(pAllowInSafeMode, pAllowInSafeMode + sizeof(pAllowInSafeMode)/sizeof(pAllowInSafeMode[0]));
 
@@ -1692,6 +1826,7 @@ string HTTPPost(const string& strMsg, const map<string,string>& mapRequestHeader
       << "Host: 127.0.0.1\r\n"
       << "Content-Type: application/json\r\n"
       << "Content-Length: " << strMsg.size() << "\r\n"
+      << "Connection: close\r\n"
       << "Accept: application/json\r\n";
     BOOST_FOREACH(const PAIRTYPE(string, string)& item, mapRequestHeaders)
         s << item.first << ": " << item.second << "\r\n";
@@ -1815,43 +1950,6 @@ int ReadHTTP(std::basic_istream<char>& stream, map<string, string>& mapHeadersRe
     return nStatus;
 }
 
-string EncodeBase64(string s)
-{
-    BIO *b64, *bmem;
-    BUF_MEM *bptr;
-
-    b64 = BIO_new(BIO_f_base64());
-    BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
-    bmem = BIO_new(BIO_s_mem());
-    b64 = BIO_push(b64, bmem);
-    BIO_write(b64, s.c_str(), s.size());
-    BIO_flush(b64);
-    BIO_get_mem_ptr(b64, &bptr);
-
-    string result(bptr->data, bptr->length);
-    BIO_free_all(b64);
-
-    return result;
-}
-
-string DecodeBase64(string s)
-{
-    BIO *b64, *bmem;
-
-    char* buffer = static_cast<char*>(calloc(s.size(), sizeof(char)));
-
-    b64 = BIO_new(BIO_f_base64());
-    BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
-    bmem = BIO_new_mem_buf(const_cast<char*>(s.c_str()), s.size());
-    bmem = BIO_push(b64, bmem);
-    BIO_read(bmem, buffer, s.size());
-    BIO_free_all(bmem);
-
-    string result(buffer);
-    free(buffer);
-    return result;
-}
-
 bool HTTPAuthorized(map<string, string>& mapHeaders)
 {
     string strAuth = mapHeaders["authorization"];
@@ -2123,7 +2221,7 @@ void ThreadRPCServer2(void* parg)
             if (valMethod.type() != str_type)
                 throw JSONRPCError(-32600, "Method must be a string");
             string strMethod = valMethod.get_str();
-            if (strMethod != "getwork")
+            if (strMethod != "getwork" && strMethod != "getmemorypool")
                 printf("ThreadRPCServer method=%s\n", strMethod.c_str());
 
             // Parse params
@@ -2289,18 +2387,12 @@ int CommandLineRPC(int argc, char *argv[])
         if (strMethod == "setgenerate"            && n > 1) ConvertTo<boost::int64_t>(params[1]);
         if (strMethod == "sendtoaddress"          && n > 1) ConvertTo<double>(params[1]);
         if (strMethod == "settxfee"               && n > 0) ConvertTo<double>(params[0]);
-        if (strMethod == "getamountreceived"      && n > 1) ConvertTo<boost::int64_t>(params[1]); // deprecated
         if (strMethod == "getreceivedbyaddress"   && n > 1) ConvertTo<boost::int64_t>(params[1]);
         if (strMethod == "getreceivedbyaccount"   && n > 1) ConvertTo<boost::int64_t>(params[1]);
-        if (strMethod == "getreceivedbylabel"     && n > 1) ConvertTo<boost::int64_t>(params[1]); // deprecated
-        if (strMethod == "getallreceived"         && n > 0) ConvertTo<boost::int64_t>(params[0]); // deprecated
-        if (strMethod == "getallreceived"         && n > 1) ConvertTo<bool>(params[1]); // deprecated
         if (strMethod == "listreceivedbyaddress"  && n > 0) ConvertTo<boost::int64_t>(params[0]);
         if (strMethod == "listreceivedbyaddress"  && n > 1) ConvertTo<bool>(params[1]);
         if (strMethod == "listreceivedbyaccount"  && n > 0) ConvertTo<boost::int64_t>(params[0]);
         if (strMethod == "listreceivedbyaccount"  && n > 1) ConvertTo<bool>(params[1]);
-        if (strMethod == "listreceivedbylabel"    && n > 0) ConvertTo<boost::int64_t>(params[0]); // deprecated
-        if (strMethod == "listreceivedbylabel"    && n > 1) ConvertTo<bool>(params[1]); // deprecated
         if (strMethod == "getbalance"             && n > 1) ConvertTo<boost::int64_t>(params[1]);
         if (strMethod == "move"                   && n > 2) ConvertTo<double>(params[2]);
         if (strMethod == "move"                   && n > 3) ConvertTo<boost::int64_t>(params[3]);
@@ -2357,13 +2449,7 @@ int CommandLineRPC(int argc, char *argv[])
 
     if (strPrint != "")
     {
-#if defined(__WXMSW__) && defined(GUI)
-        // Windows GUI apps can't print to command line,
-        // so settle for a message box yuck
-        MyMessageBox(strPrint, "Bitcoin", wxOK);
-#else
         fprintf((nRet == 0 ? stdout : stderr), "%s\n", strPrint.c_str());
-#endif
     }
     return nRet;
 }
similarity index 100%
rename from src/rpc.h
rename to src/bitcoinrpc.h
index a22b17e..f236364 100644 (file)
@@ -822,7 +822,7 @@ int CWalletDB::LoadWallet(CWallet* pwallet)
                 ssKey >> strKey;
 
                 // Options
-#ifndef GUI
+#ifndef QT_GUI
                 if (strKey == "fGenerateBitcoins")  ssValue >> fGenerateBitcoins;
 #endif
                 if (strKey == "nTransactionFee")    ssValue >> nTransactionFee;
index d0c7434..17e9b3b 100644 (file)
 #define BSD 1
 #endif
 #endif
-#ifdef GUI
-#include <wx/wx.h>
-#include <wx/stdpaths.h>
-#include <wx/snglinst.h>
-#include <wx/utils.h>
-#include <wx/clipbrd.h>
-#include <wx/taskbar.h>
-#endif
 #include <openssl/buffer.h>
 #include <openssl/ecdsa.h>
 #include <openssl/evp.h>
 #include "bignum.h"
 #include "base58.h"
 #include "main.h"
-#ifdef GUI
-#include "uibase.h"
-#include "ui.h"
+#ifdef QT_GUI
+#include "qtui.h"
 #else
 #include "noui.h"
 #endif
-
-#ifdef GUI
-#include "xpm/addressbook16.xpm"
-#include "xpm/addressbook20.xpm"
-#include "xpm/bitcoin16.xpm"
-#include "xpm/bitcoin20.xpm"
-#include "xpm/bitcoin32.xpm"
-#include "xpm/bitcoin48.xpm"
-#include "xpm/bitcoin80.xpm"
-#include "xpm/check.xpm"
-#include "xpm/send16.xpm"
-#include "xpm/send16noshadow.xpm"
-#include "xpm/send20.xpm"
-#include "xpm/about.xpm"
-#endif
index dbc2c41..f09e1d0 100644 (file)
@@ -4,7 +4,7 @@
 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
 #include "headers.h"
 #include "db.h"
-#include "rpc.h"
+#include "bitcoinrpc.h"
 #include "net.h"
 #include "init.h"
 #include "strlcpy.h"
@@ -80,7 +80,7 @@ void HandleSIGTERM(int)
 //
 // Start
 //
-#ifndef GUI
+#if !defined(QT_GUI)
 int main(int argc, char* argv[])
 {
     bool fRet = false;
@@ -179,6 +179,8 @@ bool AppInit2(int argc, char* argv[])
             "  -addnode=<ip>    \t  "   + _("Add a node to connect to\n") +
             "  -connect=<ip>    \t\t  " + _("Connect only to the specified node\n") +
             "  -nolisten        \t  "   + _("Don't accept connections from outside\n") +
+            "  -banscore=<n>    \t  "   + _("Threshold for disconnecting misbehaving peers (default: 100)\n") +
+            "  -bantime=<n>     \t  "   + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)\n") +
 #ifdef USE_UPNP
 #if USE_UPNP
             "  -noupnp          \t  "   + _("Don't attempt to use UPnP to map the listening port\n") +
@@ -214,14 +216,9 @@ bool AppInit2(int argc, char* argv[])
         strUsage += string() +
             "  -?               \t\t  " + _("This help message\n");
 
-#if defined(__WXMSW__) && defined(GUI)
-        // Tabs make the columns line up in the message box
-        wxMessageBox(strUsage, "Bitcoin", wxOK);
-#else
         // Remove tabs
         strUsage.erase(std::remove(strUsage.begin(), strUsage.end(), '\t'), strUsage.end());
         fprintf(stderr, "%s", strUsage.c_str());
-#endif
         return false;
     }
 
@@ -240,10 +237,9 @@ bool AppInit2(int argc, char* argv[])
         fServer = GetBoolArg("-server");
 
     /* force fServer when running without GUI */
-#ifndef GUI
+#if !defined(QT_GUI)
     fServer = true;
 #endif
-
     fPrintToConsole = GetBoolArg("-printtoconsole");
     fPrintToDebugger = GetBoolArg("-printtodebugger");
 
@@ -252,6 +248,7 @@ bool AppInit2(int argc, char* argv[])
     fNoListen = GetBoolArg("-nolisten") || fTOR;
     fLogTimestamps = GetBoolArg("-logtimestamps");
 
+#ifndef QT_GUI
     for (int i = 1; i < argc; i++)
         if (!IsSwitchChar(argv[i][0]))
             fCommandLine = true;
@@ -261,6 +258,7 @@ bool AppInit2(int argc, char* argv[])
         int ret = CommandLineRPC(argc, argv);
         exit(ret);
     }
+#endif
 
 #ifndef __WXMSW__
     if (fDaemon)
@@ -288,11 +286,6 @@ bool AppInit2(int argc, char* argv[])
         ShrinkDebugFile();
     printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
     printf("Bitcoin version %s\n", FormatFullVersion().c_str());
-#ifdef GUI
-    printf("OS version %s\n", ((string)wxGetOsDescription()).c_str());
-    printf("System default language is %d %s\n", g_locale.GetSystemLanguage(), ((string)g_locale.GetSysName()).c_str());
-    printf("Language file %s (%s)\n", (string("locale/") + (string)g_locale.GetCanonicalName() + "/LC_MESSAGES/bitcoin.mo").c_str(), ((string)g_locale.GetLocale()).c_str());
-#endif
     printf("Default data directory %s\n", GetDefaultDataDir().c_str());
 
     if (GetBoolArg("-loadblockindextest"))
@@ -303,46 +296,6 @@ bool AppInit2(int argc, char* argv[])
         return false;
     }
 
-    //
-    // Limit to single instance per user
-    // Required to protect the database files if we're going to keep deleting log.*
-    //
-#if defined(__WXMSW__) && defined(GUI)
-    // wxSingleInstanceChecker doesn't work on Linux
-    wxString strMutexName = wxString("bitcoin_running.") + getenv("HOMEPATH");
-    for (int i = 0; i < strMutexName.size(); i++)
-        if (!isalnum(strMutexName[i]))
-            strMutexName[i] = '.';
-    wxSingleInstanceChecker* psingleinstancechecker = new wxSingleInstanceChecker(strMutexName);
-    if (psingleinstancechecker->IsAnotherRunning())
-    {
-        printf("Existing instance found\n");
-        unsigned int nStart = GetTime();
-        loop
-        {
-            // Show the previous instance and exit
-            HWND hwndPrev = FindWindowA("wxWindowClassNR", "Bitcoin");
-            if (hwndPrev)
-            {
-                if (IsIconic(hwndPrev))
-                    ShowWindow(hwndPrev, SW_RESTORE);
-                SetForegroundWindow(hwndPrev);
-                return false;
-            }
-
-            if (GetTime() > nStart + 60)
-                return false;
-
-            // Resume this instance if the other exits
-            delete psingleinstancechecker;
-            Sleep(1000);
-            psingleinstancechecker = new wxSingleInstanceChecker(strMutexName);
-            if (!psingleinstancechecker->IsAnotherRunning())
-                break;
-        }
-    }
-#endif
-
     // Make sure only a single bitcoin process is using the data directory.
     string strLockFile = GetDataDir() + "/.lock";
     FILE* file = fopen(strLockFile.c_str(), "a"); // empty lock file; created if it doesn't exist.
@@ -373,18 +326,21 @@ bool AppInit2(int argc, char* argv[])
     strErrors = "";
     int64 nStart;
 
+    InitMessage(_("Loading addresses..."));
     printf("Loading addresses...\n");
     nStart = GetTimeMillis();
     if (!LoadAddresses())
         strErrors += _("Error loading addr.dat      \n");
     printf(" addresses   %15"PRI64d"ms\n", GetTimeMillis() - nStart);
 
+    InitMessage(_("Loading block index..."));
     printf("Loading block index...\n");
     nStart = GetTimeMillis();
     if (!LoadBlockIndex())
         strErrors += _("Error loading blkindex.dat      \n");
     printf(" block index %15"PRI64d"ms\n", GetTimeMillis() - nStart);
 
+    InitMessage(_("Loading wallet..."));
     printf("Loading wallet...\n");
     nStart = GetTimeMillis();
     bool fFirstRun;
@@ -415,12 +371,14 @@ bool AppInit2(int argc, char* argv[])
     }
     if (pindexBest != pindexRescan)
     {
+        InitMessage(_("Rescanning..."));
         printf("Rescanning last %i blocks (from block %i)...\n", pindexBest->nHeight - pindexRescan->nHeight, pindexRescan->nHeight);
         nStart = GetTimeMillis();
         pwalletMain->ScanForWalletTransactions(pindexRescan, true);
         printf(" rescan      %15"PRI64d"ms\n", GetTimeMillis() - nStart);
     }
 
+    InitMessage(_("Done loading"));
     printf("Done loading\n");
 
         //// debug print
@@ -530,30 +488,20 @@ bool AppInit2(int argc, char* argv[])
     }
 
     //
-    // Create the main window and start the node
+    // Start the node
     //
-#ifdef GUI
-    if (!fDaemon)
-        CreateMainWindow();
-#endif
-
     if (!CheckDiskSpace())
         return false;
 
     RandAddSeedPerfmon();
 
     if (!CreateThread(StartNode, NULL))
-        wxMessageBox("Error: CreateThread(StartNode) failed", "Bitcoin");
+        wxMessageBox(_("Error: CreateThread(StartNode) failed"), "Bitcoin");
 
     if (fServer)
         CreateThread(ThreadRPCServer, NULL);
 
-#if defined(__WXMSW__) && defined(GUI)
-    if (fFirstRun)
-        SetStartOnSystemStartup(true);
-#endif
-
-#ifndef GUI
+#if !defined(QT_GUI)
     while (1)
         Sleep(5000);
 #endif
index d2e6689..5ffd7b9 100644 (file)
--- a/src/key.h
+++ b/src/key.h
@@ -75,6 +75,76 @@ err:
     return(ok);
 }
 
+int static inline ECDSA_SIG_recover_key_GFp(EC_KEY *eckey, ECDSA_SIG *ecsig, const unsigned char *msg, int msglen, int recid, int check)
+{
+    if (!eckey) return 0;
+
+    int ret = 0;
+    BN_CTX *ctx = NULL;
+
+    BIGNUM *x = NULL;
+    BIGNUM *e = NULL;
+    BIGNUM *order = NULL;
+    BIGNUM *sor = NULL;
+    BIGNUM *eor = NULL;
+    BIGNUM *field = NULL;
+    EC_POINT *R = NULL;
+    EC_POINT *O = NULL;
+    EC_POINT *Q = NULL;
+    BIGNUM *rr = NULL;
+    BIGNUM *zero = NULL;
+    int n = 0;
+    int i = recid / 2;
+
+    const EC_GROUP *group = EC_KEY_get0_group(eckey);
+    if ((ctx = BN_CTX_new()) == NULL) { ret = -1; goto err; }
+    BN_CTX_start(ctx);
+    order = BN_CTX_get(ctx);
+    if (!EC_GROUP_get_order(group, order, ctx)) { ret = -2; goto err; }
+    x = BN_CTX_get(ctx);
+    if (!BN_copy(x, order)) { ret=-1; goto err; }
+    if (!BN_mul_word(x, i)) { ret=-1; goto err; }
+    if (!BN_add(x, x, ecsig->r)) { ret=-1; goto err; }
+    field = BN_CTX_get(ctx);
+    if (!EC_GROUP_get_curve_GFp(group, field, NULL, NULL, ctx)) { ret=-2; goto err; }
+    if (BN_cmp(x, field) >= 0) { ret=0; goto err; }
+    if ((R = EC_POINT_new(group)) == NULL) { ret = -2; goto err; }
+    if (!EC_POINT_set_compressed_coordinates_GFp(group, R, x, recid % 2, ctx)) { ret=0; goto err; }
+    if (check)
+    {
+        if ((O = EC_POINT_new(group)) == NULL) { ret = -2; goto err; }
+        if (!EC_POINT_mul(group, O, NULL, R, order, ctx)) { ret=-2; goto err; }
+        if (!EC_POINT_is_at_infinity(group, O)) { ret = 0; goto err; }
+    }
+    if ((Q = EC_POINT_new(group)) == NULL) { ret = -2; goto err; }
+    n = EC_GROUP_get_degree(group);
+    e = BN_CTX_get(ctx);
+    if (!BN_bin2bn(msg, msglen, e)) { ret=-1; goto err; }
+    if (8*msglen > n) BN_rshift(e, e, 8-(n & 7));
+    zero = BN_CTX_get(ctx);
+    if (!BN_zero(zero)) { ret=-1; goto err; }
+    if (!BN_mod_sub(e, zero, e, order, ctx)) { ret=-1; goto err; }
+    rr = BN_CTX_get(ctx);
+    if (!BN_mod_inverse(rr, ecsig->r, order, ctx)) { ret=-1; goto err; }
+    sor = BN_CTX_get(ctx);
+    if (!BN_mod_mul(sor, ecsig->s, rr, order, ctx)) { ret=-1; goto err; }
+    eor = BN_CTX_get(ctx);
+    if (!BN_mod_mul(eor, e, rr, order, ctx)) { ret=-1; goto err; }
+    if (!EC_POINT_mul(group, Q, eor, R, sor, ctx)) { ret=-2; goto err; }
+    if (!EC_KEY_set_public_key(eckey, Q)) { ret=-2; goto err; }
+
+    ret = 1;
+
+err:
+    if (ctx) {
+        BN_CTX_end(ctx);
+        BN_CTX_free(ctx);
+    }
+    if (R != NULL) EC_POINT_free(R);
+    if (O != NULL) EC_POINT_free(O);
+    if (Q != NULL) EC_POINT_free(Q);
+    return ret;
+}
 
 class key_error : public std::runtime_error
 {
@@ -221,6 +291,66 @@ public:
         return true;
     }
 
+    // create a compact signature (65 bytes), which allows reconstructing the used public key
+    bool SignCompact(uint256 hash, std::vector<unsigned char>& vchSig)
+    {
+        bool fOk = false;
+        ECDSA_SIG *sig = ECDSA_do_sign((unsigned char*)&hash, sizeof(hash), pkey);
+        if (sig==NULL)
+            return false;
+        vchSig.clear();
+        vchSig.resize(65,0);
+        int nBitsR = BN_num_bits(sig->r);
+        int nBitsS = BN_num_bits(sig->s);
+        if (nBitsR <= 256 && nBitsS <= 256)
+        {
+            int nRecId = -1;
+            for (int i=0; i<4; i++)
+            {
+                CKey keyRec;
+                keyRec.fSet = true;
+                if (ECDSA_SIG_recover_key_GFp(keyRec.pkey, sig, (unsigned char*)&hash, sizeof(hash), i, 1) == 1)
+                    if (keyRec.GetPubKey() == this->GetPubKey())
+                    {
+                        nRecId = i;
+                        break;
+                    }
+            }
+
+            if (nRecId == -1)
+                throw key_error("CKEy::SignCompact() : unable to construct recoverable key");
+
+            vchSig[0] = nRecId+27;
+            BN_bn2bin(sig->r,&vchSig[33-(nBitsR+7)/8]);
+            BN_bn2bin(sig->s,&vchSig[65-(nBitsS+7)/8]);
+            fOk = true;
+        }
+        ECDSA_SIG_free(sig);
+        return fOk;
+    }
+
+    // reconstruct public key from a compact signature
+    bool SetCompactSignature(uint256 hash, const std::vector<unsigned char>& vchSig)
+    {
+        if (vchSig.size() != 65)
+            return false;
+        if (vchSig[0]<27 || vchSig[0]>=31)
+            return false;
+        ECDSA_SIG *sig = ECDSA_SIG_new();
+        BN_bin2bn(&vchSig[1],32,sig->r);
+        BN_bin2bn(&vchSig[33],32,sig->s);
+
+        EC_KEY_free(pkey);
+        pkey = EC_KEY_new_by_curve_name(NID_secp256k1);
+        if (ECDSA_SIG_recover_key_GFp(pkey, sig, (unsigned char*)&hash, sizeof(hash), vchSig[0] - 27, 0) == 1)
+        {
+            fSet = true;
+            ECDSA_SIG_free(sig);
+            return true;
+        }
+        return false;
+    }
+
     bool Verify(uint256 hash, const std::vector<unsigned char>& vchSig)
     {
         // -1 = error, 0 = bad sig, 1 = good
@@ -229,6 +359,16 @@ public:
         return true;
     }
 
+    bool VerifyCompact(uint256 hash, const std::vector<unsigned char>& vchSig)
+    {
+        CKey key;
+        if (!key.SetCompactSignature(hash, vchSig))
+            return false;
+        if (GetPubKey() != key.GetPubKey())
+            return false;
+        return true;
+    }
+
     CBitcoinAddress GetAddress() const
     {
         return CBitcoinAddress(GetPubKey());
index 6a3bacc..750290c 100644 (file)
@@ -40,6 +40,8 @@ uint256 hashBestChain = 0;
 CBlockIndex* pindexBest = NULL;
 int64 nTimeBestReceived = 0;
 
+CMedianFilter<int> cPeerBlockCounts(5, 0); // Amount of blocks that other nodes claim to have
+
 map<uint256, CBlock*> mapOrphanBlocks;
 multimap<uint256, CBlock*> mapOrphanBlocksByPrev;
 
@@ -64,11 +66,6 @@ int fUseUPnP = false;
 #endif
 
 
-
-
-
-
-
 //////////////////////////////////////////////////////////////////////////////
 //
 // dispatching functions
@@ -296,24 +293,24 @@ bool CTransaction::CheckTransaction() const
 {
     // Basic checks that don't depend on any context
     if (vin.empty())
-        return error("CTransaction::CheckTransaction() : vin empty");
+        return DoS(10, error("CTransaction::CheckTransaction() : vin empty"));
     if (vout.empty())
-        return error("CTransaction::CheckTransaction() : vout empty");
+        return DoS(10, error("CTransaction::CheckTransaction() : vout empty"));
     // Size limits
     if (::GetSerializeSize(*this, SER_NETWORK) > MAX_BLOCK_SIZE)
-        return error("CTransaction::CheckTransaction() : size limits failed");
+        return DoS(100, error("CTransaction::CheckTransaction() : size limits failed"));
 
     // Check for negative or overflow output values
     int64 nValueOut = 0;
     BOOST_FOREACH(const CTxOut& txout, vout)
     {
         if (txout.nValue < 0)
-            return error("CTransaction::CheckTransaction() : txout.nValue negative");
+            return DoS(100, error("CTransaction::CheckTransaction() : txout.nValue negative"));
         if (txout.nValue > MAX_MONEY)
-            return error("CTransaction::CheckTransaction() : txout.nValue too high");
+            return DoS(100, error("CTransaction::CheckTransaction() : txout.nValue too high"));
         nValueOut += txout.nValue;
         if (!MoneyRange(nValueOut))
-            return error("CTransaction::CheckTransaction() : txout total out of range");
+            return DoS(100, error("CTransaction::CheckTransaction() : txout total out of range"));
     }
 
     // Check for duplicate inputs
@@ -328,13 +325,13 @@ bool CTransaction::CheckTransaction() const
     if (IsCoinBase())
     {
         if (vin[0].scriptSig.size() < 2 || vin[0].scriptSig.size() > 100)
-            return error("CTransaction::CheckTransaction() : coinbase script size");
+            return DoS(100, error("CTransaction::CheckTransaction() : coinbase script size"));
     }
     else
     {
         BOOST_FOREACH(const CTxIn& txin, vin)
             if (txin.prevout.IsNull())
-                return error("CTransaction::CheckTransaction() : prevout is null");
+                return DoS(10, error("CTransaction::CheckTransaction() : prevout is null"));
     }
 
     return true;
@@ -350,7 +347,7 @@ bool CTransaction::AcceptToMemoryPool(CTxDB& txdb, bool fCheckInputs, bool* pfMi
 
     // Coinbase is only valid in a block, not as a loose transaction
     if (IsCoinBase())
-        return error("AcceptToMemoryPool() : coinbase as individual tx");
+        return DoS(100, error("AcceptToMemoryPool() : coinbase as individual tx"));
 
     // To help v0.1.5 clients who would see it as a negative number
     if ((int64)nLockTime > INT_MAX)
@@ -363,7 +360,7 @@ bool CTransaction::AcceptToMemoryPool(CTxDB& txdb, bool fCheckInputs, bool* pfMi
     // 34 bytes because a TxOut is:
     //   20-byte address + 8 byte bitcoin amount + 5 bytes of ops + 1 byte script length
     if (GetSigOpCount() > nSize / 34 || nSize < 100)
-        return error("AcceptToMemoryPool() : nonstandard transaction");
+        return error("AcceptToMemoryPool() : transaction with out-of-bounds SigOpCount");
 
     // Rather not work on nonstandard transactions (unless -testnet)
     if (!fTestNet && !IsStandard())
@@ -726,6 +723,12 @@ int GetTotalBlocksEstimate()
     }
 }
 
+// Return maximum amount of blocks that other nodes claim to have
+int GetNumBlocksOfPeers()
+{
+    return std::max(cPeerBlockCounts.median(), GetTotalBlocksEstimate());
+}
+
 bool IsInitialBlockDownload()
 {
     if (pindexBest == NULL || nBestHeight < (GetTotalBlocksEstimate()-nInitialBlockThreshold))
@@ -803,6 +806,9 @@ bool CTransaction::ConnectInputs(CTxDB& txdb, map<uint256, CTxIndex>& mapTestPoo
                                  CBlockIndex* pindexBlock, int64& nFees, bool fBlock, bool fMiner, int64 nMinFee)
 {
     // Take over previous transactions' spent pointers
+    // fBlock is true when this is called from AcceptBlock when a new best-block is added to the blockchain
+    // fMiner is true when called from the internal bitcoin miner
+    // ... both are false when called from CTransaction::AcceptToMemoryPool
     if (!IsCoinBase())
     {
         int64 nValueIn = 0;
@@ -848,7 +854,7 @@ bool CTransaction::ConnectInputs(CTxDB& txdb, map<uint256, CTxIndex>& mapTestPoo
             }
 
             if (prevout.n >= txPrev.vout.size() || prevout.n >= txindex.vSpent.size())
-                return error("ConnectInputs() : %s prevout.n out of range %d %d %d prev tx %s\n%s", GetHash().ToString().substr(0,10).c_str(), prevout.n, txPrev.vout.size(), txindex.vSpent.size(), prevout.hash.ToString().substr(0,10).c_str(), txPrev.ToString().c_str());
+                return DoS(100, error("ConnectInputs() : %s prevout.n out of range %d %d %d prev tx %s\n%s", GetHash().ToString().substr(0,10).c_str(), prevout.n, txPrev.vout.size(), txindex.vSpent.size(), prevout.hash.ToString().substr(0,10).c_str(), txPrev.ToString().c_str()));
 
             // If prev is coinbase, check that it's matured
             if (txPrev.IsCoinBase())
@@ -856,18 +862,24 @@ bool CTransaction::ConnectInputs(CTxDB& txdb, map<uint256, CTxIndex>& mapTestPoo
                     if (pindex->nBlockPos == txindex.pos.nBlockPos && pindex->nFile == txindex.pos.nFile)
                         return error("ConnectInputs() : tried to spend coinbase at depth %d", pindexBlock->nHeight - pindex->nHeight);
 
-            // Verify signature
-            if (!VerifySignature(txPrev, *this, i))
-                return error("ConnectInputs() : %s VerifySignature failed", GetHash().ToString().substr(0,10).c_str());
-
-            // Check for conflicts
+            // Skip ECDSA signature verification when connecting blocks (fBlock=true) during initial download
+            // (before the last blockchain checkpoint). This is safe because block merkle hashes are
+            // still computed and checked, and any change will be caught at the next checkpoint.
+            if (!(fBlock && IsInitialBlockDownload()))
+                // Verify signature
+                if (!VerifySignature(txPrev, *this, i))
+                    return DoS(100,error("ConnectInputs() : %s VerifySignature failed", GetHash().ToString().substr(0,10).c_str()));
+
+            // Check for conflicts (double-spend)
+            // This doesn't trigger the DoS code on purpose; if it did, it would make it easier
+            // for an attacker to attempt to split the network.
             if (!txindex.vSpent[prevout.n].IsNull())
                 return fMiner ? false : error("ConnectInputs() : %s prev tx already used at %s", GetHash().ToString().substr(0,10).c_str(), txindex.vSpent[prevout.n].ToString().c_str());
 
             // Check for negative or overflow input values
             nValueIn += txPrev.vout[prevout.n].nValue;
             if (!MoneyRange(txPrev.vout[prevout.n].nValue) || !MoneyRange(nValueIn))
-                return error("ConnectInputs() : txin values out of range");
+                return DoS(100, error("ConnectInputs() : txin values out of range"));
 
             // Mark outpoints as spent
             txindex.vSpent[prevout.n] = posThisTx;
@@ -880,17 +892,17 @@ bool CTransaction::ConnectInputs(CTxDB& txdb, map<uint256, CTxIndex>& mapTestPoo
         }
 
         if (nValueIn < GetValueOut())
-            return error("ConnectInputs() : %s value in < value out", GetHash().ToString().substr(0,10).c_str());
+            return DoS(100, error("ConnectInputs() : %s value in < value out", GetHash().ToString().substr(0,10).c_str()));
 
         // Tally transaction fees
         int64 nTxFee = nValueIn - GetValueOut();
         if (nTxFee < 0)
-            return error("ConnectInputs() : %s nTxFee < 0", GetHash().ToString().substr(0,10).c_str());
+            return DoS(100, error("ConnectInputs() : %s nTxFee < 0", GetHash().ToString().substr(0,10).c_str()));
         if (nTxFee < nMinFee)
             return false;
         nFees += nTxFee;
         if (!MoneyRange(nFees))
-            return error("ConnectInputs() : nFees out of range");
+            return DoS(100, error("ConnectInputs() : nFees out of range"));
     }
 
     if (fBlock)
@@ -1233,11 +1245,11 @@ bool CBlock::CheckBlock() const
 
     // Size limits
     if (vtx.empty() || vtx.size() > MAX_BLOCK_SIZE || ::GetSerializeSize(*this, SER_NETWORK) > MAX_BLOCK_SIZE)
-        return error("CheckBlock() : size limits failed");
+        return DoS(100, error("CheckBlock() : size limits failed"));
 
     // Check proof of work matches claimed amount
     if (!CheckProofOfWork(GetHash(), nBits))
-        return error("CheckBlock() : proof of work failed");
+        return DoS(50, error("CheckBlock() : proof of work failed"));
 
     // Check timestamp
     if (GetBlockTime() > GetAdjustedTime() + 2 * 60 * 60)
@@ -1245,23 +1257,23 @@ bool CBlock::CheckBlock() const
 
     // First transaction must be coinbase, the rest must not be
     if (vtx.empty() || !vtx[0].IsCoinBase())
-        return error("CheckBlock() : first tx is not coinbase");
+        return DoS(100, error("CheckBlock() : first tx is not coinbase"));
     for (int i = 1; i < vtx.size(); i++)
         if (vtx[i].IsCoinBase())
-            return error("CheckBlock() : more than one coinbase");
+            return DoS(100, error("CheckBlock() : more than one coinbase"));
 
     // Check transactions
     BOOST_FOREACH(const CTransaction& tx, vtx)
         if (!tx.CheckTransaction())
-            return error("CheckBlock() : CheckTransaction failed");
+            return DoS(tx.nDoS, error("CheckBlock() : CheckTransaction failed"));
 
     // Check that it's not full of nonstandard transactions
     if (GetSigOpCount() > MAX_BLOCK_SIGOPS)
-        return error("CheckBlock() : too many nonstandard transactions");
+        return DoS(100, error("CheckBlock() : out-of-bounds SigOpCount"));
 
     // Check merkleroot
     if (hashMerkleRoot != BuildMerkleTree())
-        return error("CheckBlock() : hashMerkleRoot mismatch");
+        return DoS(100, error("CheckBlock() : hashMerkleRoot mismatch"));
 
     return true;
 }
@@ -1276,13 +1288,13 @@ bool CBlock::AcceptBlock()
     // Get prev block index
     map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashPrevBlock);
     if (mi == mapBlockIndex.end())
-        return error("AcceptBlock() : prev block not found");
+        return DoS(10, error("AcceptBlock() : prev block not found"));
     CBlockIndex* pindexPrev = (*mi).second;
     int nHeight = pindexPrev->nHeight+1;
 
     // Check proof of work
     if (nBits != GetNextWorkRequired(pindexPrev))
-        return error("AcceptBlock() : incorrect proof of work");
+        return DoS(100, error("AcceptBlock() : incorrect proof of work"));
 
     // Check timestamp against prev
     if (GetBlockTime() <= pindexPrev->GetMedianTimePast())
@@ -1291,7 +1303,7 @@ bool CBlock::AcceptBlock()
     // Check that all transactions are finalized
     BOOST_FOREACH(const CTransaction& tx, vtx)
         if (!tx.IsFinal(nHeight, GetBlockTime()))
-            return error("AcceptBlock() : contains a non-final transaction");
+            return DoS(10, error("AcceptBlock() : contains a non-final transaction"));
 
     // Check that the block chain matches the known block chain up to a checkpoint
     if (!fTestNet)
@@ -1304,7 +1316,7 @@ bool CBlock::AcceptBlock()
             (nHeight == 118000 && hash != uint256("0x000000000000774a7f8a7a12dc906ddb9e17e75d684f15e00f8767f9e8f36553")) ||
             (nHeight == 134444 && hash != uint256("0x00000000000005b12ffd4cd315cd34ffd4a594f430ac814c91184a0d42d2b0fe")) ||
             (nHeight == 140700 && hash != uint256("0x000000000000033b512028abb90e1626d8b346fd0ed598ac0a3c371138dce2bd")))
-            return error("AcceptBlock() : rejected by checkpoint lockin at %d", nHeight);
+            return DoS(100, error("AcceptBlock() : rejected by checkpoint lockin at %d", nHeight));
 
     // Write block to history file
     if (!CheckDiskSpace(::GetSerializeSize(*this, SER_DISK)))
@@ -1326,7 +1338,7 @@ bool CBlock::AcceptBlock()
     return true;
 }
 
-bool static ProcessBlock(CNode* pfrom, CBlock* pblock)
+bool ProcessBlock(CNode* pfrom, CBlock* pblock)
 {
     // Check for duplicate
     uint256 hash = pblock->GetHash();
@@ -1762,7 +1774,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
     {
         // Each connection can only send one version message
         if (pfrom->nVersion != 0)
+        {
+            pfrom->Misbehaving(1);
             return false;
+        }
 
         int64 nTime;
         CAddress addrMe;
@@ -1840,12 +1855,15 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
         pfrom->fSuccessfullyConnected = true;
 
         printf("version message: version %d, blocks=%d\n", pfrom->nVersion, pfrom->nStartingHeight);
+
+        cPeerBlockCounts.input(pfrom->nStartingHeight);
     }
 
 
     else if (pfrom->nVersion == 0)
     {
         // Must have a version message before anything else
+        pfrom->Misbehaving(1);
         return false;
     }
 
@@ -1867,7 +1885,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
         if (pfrom->nVersion < 31402 && mapAddresses.size() > 1000)
             return true;
         if (vAddr.size() > 1000)
+        {
+            pfrom->Misbehaving(20);
             return error("message addr size() = %d", vAddr.size());
+        }
 
         // Store the new addresses
         CAddrDB addrDB;
@@ -1925,7 +1946,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
         vector<CInv> vInv;
         vRecv >> vInv;
         if (vInv.size() > 50000)
+        {
+            pfrom->Misbehaving(20);
             return error("message inv size() = %d", vInv.size());
+        }
 
         CTxDB txdb("r");
         BOOST_FOREACH(const CInv& inv, vInv)
@@ -1954,7 +1978,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
         vector<CInv> vInv;
         vRecv >> vInv;
         if (vInv.size() > 50000)
+        {
+            pfrom->Misbehaving(20);
             return error("message getdata size() = %d", vInv.size());
+        }
 
         BOOST_FOREACH(const CInv& inv, vInv)
         {
@@ -2126,6 +2153,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
             printf("storing orphan tx %s\n", inv.hash.ToString().substr(0,10).c_str());
             AddOrphanTx(vMsg);
         }
+        if (tx.nDoS) pfrom->Misbehaving(tx.nDoS);
     }
 
 
@@ -2142,6 +2170,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
 
         if (ProcessBlock(pfrom, &block))
             mapAlreadyAskedFor.erase(inv);
+        if (block.nDoS) pfrom->Misbehaving(block.nDoS);
     }
 
 
index c400145..329035d 100644 (file)
@@ -85,6 +85,7 @@ class CTxIndex;
 
 void RegisterWallet(CWallet* pwalletIn);
 void UnregisterWallet(CWallet* pwalletIn);
+bool ProcessBlock(CNode* pfrom, CBlock* pblock);
 bool CheckDiskSpace(uint64 nAdditionalBytes=0);
 FILE* OpenBlockFile(unsigned int nFile, unsigned int nBlockPos, const char* pszMode="rb");
 FILE* AppendBlockFile(unsigned int& nFileRet);
@@ -99,6 +100,7 @@ void FormatHashBuffers(CBlock* pblock, char* pmidstate, char* pdata, char* phash
 bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey);
 bool CheckProofOfWork(uint256 hash, unsigned int nBits);
 int GetTotalBlocksEstimate();
+int GetNumBlocksOfPeers();
 bool IsInitialBlockDownload();
 std::string GetWarnings(std::string strFor);
 
@@ -399,6 +401,9 @@ public:
     std::vector<CTxOut> vout;
     unsigned int nLockTime;
 
+    // Denial-of-service detection:
+    mutable int nDoS;
+    bool DoS(int nDoSIn, bool fIn) const { nDoS += nDoSIn; return fIn; }
 
     CTransaction()
     {
@@ -420,6 +425,7 @@ public:
         vin.clear();
         vout.clear();
         nLockTime = 0;
+        nDoS = 0;  // Denial-of-service prevention
     }
 
     bool IsNull() const
@@ -786,6 +792,9 @@ public:
     // memory only
     mutable std::vector<uint256> vMerkleTree;
 
+    // Denial-of-service detection:
+    mutable int nDoS;
+    bool DoS(int nDoSIn, bool fIn) const { nDoS += nDoSIn; return fIn; }
 
     CBlock()
     {
@@ -819,6 +828,7 @@ public:
         nNonce = 0;
         vtx.clear();
         vMerkleTree.clear();
+        nDoS = 0;
     }
 
     bool IsNull() const
index 24cc127..8b3df66 100644 (file)
@@ -10,18 +10,12 @@ INCLUDEPATHS= \
  -I"$(DEPSDIR)/boost_1_47_0" \
  -I"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
  -I"$(DEPSDIR)/openssl-1.0.0d/include" \
- -I"$(DEPSDIR)/wxWidgets-2.9.2/lib/gcc_lib/mswud" \
- -I"$(DEPSDIR)/wxWidgets-2.9.2/include" \
- -I"$(DEPSDIR)/wxWidgets-2.9.2/lib/wx/include/i586-mingw32msvc-msw-unicode-static-2.9/" \
  -I"$(DEPSDIR)"
 
 LIBPATHS= \
  -L"$(DEPSDIR)/boost_1_47_0/stage/lib" \
  -L"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
- -L"$(DEPSDIR)/openssl-1.0.0d" \
- -L"$(DEPSDIR)/wxWidgets-2.9.2/lib"
-
-WXLIBS= -l wx_mswu-2.9-i586-mingw32msvc
+ -L"$(DEPSDIR)/openssl-1.0.0d"
 
 LIBS= \
  -l boost_system-mt-s \
@@ -32,8 +26,8 @@ LIBS= \
  -l ssl \
  -l crypto
 
-DEFS=-D_MT -DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
-DEBUGFLAGS=-g -D__WXDEBUG__
+DEFS=-D_MT -DWIN32 -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
+DEBUGFLAGS=-g
 CFLAGS=-O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
 HEADERS = \
     base58.h \
@@ -49,12 +43,10 @@ HEADERS = \
     net.h \
     noui.h \
     protocol.h \
-    rpc.h \
+    bitcoinrpc.h \
     script.h \
     serialize.h \
     strlcpy.h \
-    ui.h \
-    uibase.h \
     uint256.h \
     util.h \
     wallet.h
@@ -76,7 +68,7 @@ OBJS= \
     obj/main.o \
     obj/net.o \
     obj/protocol.o \
-    obj/rpc.o \
+    obj/bitcoinrpc.o \
     obj/script.o \
     obj/util.o \
     obj/wallet.o \
@@ -84,22 +76,11 @@ OBJS= \
     cryptopp/obj/cpu.o
 
 
-all: bitcoin.exe
-
-
-obj/%.o: %.cpp $(HEADERS)
-       i586-mingw32msvc-g++ -c $(CFLAGS) -DGUI -o $@ $<
+all: bitcoind.exe
 
 cryptopp/obj/%.o: cryptopp/%.cpp
        i586-mingw32msvc-g++ -c $(CFLAGS) -O3 -DCRYPTOPP_DISABLE_ASM -o $@ $<
 
-obj/ui_res.o: ../share/ui.rc  ../share/pixmaps/bitcoin.ico ../share/pixmaps/check.ico ../share/pixmaps/send16.bmp ../share/pixmaps/send16mask.bmp ../share/pixmaps/send16masknoshadow.bmp ../share/pixmaps/send20.bmp ../share/pixmaps/send20mask.bmp ../share/pixmaps/addressbook16.bmp ../share/pixmaps/addressbook16mask.bmp ../share/pixmaps/addressbook20.bmp ../share/pixmaps/addressbook20mask.bmp
-       i586-mingw32msvc-windres $(DEFS) $(INCLUDEPATHS) -o $@ -i $<
-
-bitcoin.exe: $(OBJS) obj/ui.o obj/uibase.o obj/ui_res.o
-       i586-mingw32msvc-g++ $(CFLAGS) -mwindows -Wl,--subsystem,windows -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS)
-
-
 obj/nogui/%.o: %.cpp $(HEADERS)
        i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
 
@@ -121,6 +102,5 @@ clean:
        -rm -f cryptopp/obj/*.o
        -rm -f test/*.o
        -rm -f headers.h.gch
-       -rm -f bitcoin.exe
        -rm -f bitcoind.exe
        -rm -f test_bitcoin.exe
index 1ca1a7b..d1c6ba8 100644 (file)
@@ -7,18 +7,12 @@ USE_UPNP:=0
 INCLUDEPATHS= \
  -I"C:\boost-1.47.0-mgw" \
  -I"C:\db-4.8.30.NC-mgw\build_unix" \
- -I"C:\openssl-1.0.0d-mgw\include" \
- -I"C:\wxWidgets-2.9.2-mgw\lib\gcc_lib\mswud" \
- -I"C:\wxWidgets-2.9.2-mgw\include"
+ -I"C:\openssl-1.0.0d-mgw\include"
 
 LIBPATHS= \
  -L"C:\boost-1.47.0-mgw\stage\lib" \
  -L"C:\db-4.8.30.NC-mgw\build_unix" \
- -L"C:\openssl-1.0.0d-mgw" \
- -L"C:\wxWidgets-2.9.2-mgw\lib\gcc_lib"
-
-WXLIBS= \
- -l wxmsw29ud_html -l wxmsw29ud_core -l wxmsw29ud_adv -l wxbase29ud -l wxtiffd -l wxjpegd -l wxpngd -l wxzlibd
+ -L"C:\openssl-1.0.0d-mgw"
 
 LIBS= \
  -l boost_system-mgw45-mt-s-1_47 \
@@ -29,8 +23,8 @@ LIBS= \
  -l ssl \
  -l crypto
 
-DEFS=-DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
-DEBUGFLAGS=-g -D__WXDEBUG__
+DEFS=-DWIN32 -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
+DEBUGFLAGS=-g
 CFLAGS=-mthreads -O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
 HEADERS = \
     base58.h \
@@ -46,12 +40,10 @@ HEADERS = \
     net.h \
     noui.h \
     protocol.h \
-    rpc.h \
+    bitcoinrpc.h \
     script.h \
     serialize.h \
     strlcpy.h \
-    ui.h \
-    uibase.h \
     uint256.h \
     util.h \
     wallet.h
@@ -74,7 +66,7 @@ OBJS= \
     obj/main.o \
     obj/net.o \
     obj/protocol.o \
-    obj/rpc.o \
+    obj/bitcoinrpc.o \
     obj/script.o \
     obj/util.o \
     obj/wallet.o \
@@ -82,21 +74,10 @@ OBJS= \
     cryptopp/obj/cpu.o
 
 
-all: bitcoin.exe
-
-
-obj/%.o: %.cpp $(HEADERS)
-       g++ -c $(CFLAGS) -DGUI -o $@ $<
+all: bitcoind.exe
 
 cryptopp/obj/%.o: cryptopp/%.cpp
-       g++ -c $(CFLAGS) -O3 -DCRYPTOPP_X86_ASM_AVAILABLE -o $@ $<
-
-obj/ui_res.o: ../share/ui.rc  ../share/pixmaps/bitcoin.ico ../share/pixmaps/check.ico ../share/pixmaps/send16.bmp ../share/pixmaps/send16mask.bmp ../share/pixmaps/send16masknoshadow.bmp ../share/pixmaps/send20.bmp ../share/pixmaps/send20mask.bmp ../share/pixmaps/addressbook16.bmp ../share/pixmaps/addressbook16mask.bmp ../share/pixmaps/addressbook20.bmp ../share/pixmaps/addressbook20mask.bmp
-       windres $(DEFS) $(INCLUDEPATHS) -o $@ -i $<
-
-bitcoin.exe: $(OBJS) obj/ui.o obj/uibase.o obj/ui_res.o
-       g++ $(CFLAGS) -mwindows -Wl,--subsystem,windows -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS)
-
+       g++ -c $(CFLAGS) -O3 -DCRYPTOPP_DISABLE_ASM -o $@ $<
 
 obj/nogui/%.o: %.cpp $(HEADERS)
        g++ -c $(CFLAGS) -o $@ $<
@@ -111,7 +92,7 @@ test_bitcoin.exe: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:o
        g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
 
 clean:
-       -del /Q bitcoin bitcoind test_bitcoin
+       -del /Q bitcoind test_bitcoin
        -del /Q obj\*
        -del /Q obj\nogui\*
        -del /Q obj\test\*
index 97264c7..1d1d6b7 100644 (file)
@@ -14,8 +14,6 @@ INCLUDEPATHS= \
 LIBPATHS= \
  -L"$(DEPSDIR)/lib"
 
-WXLIBS=$(shell $(DEPSDIR)/bin/wx-config --libs --static)
-
 USE_UPNP:=0
 
 LIBS= -dead_strip \
@@ -27,9 +25,9 @@ LIBS= -dead_strip \
  $(DEPSDIR)/lib/libssl.a \
  $(DEPSDIR)/lib/libcrypto.a 
 
-DEFS=$(shell $(DEPSDIR)/bin/wx-config --cxxflags) -D__WXMAC_OSX__ -DNOPCH -DMSG_NOSIGNAL=0 -DUSE_SSL
+DEFS=-D__WXMAC_OSX__ -DNOPCH -DMSG_NOSIGNAL=0 -DUSE_SSL
 
-DEBUGFLAGS=-g -DwxDEBUG_LEVEL=0
+DEBUGFLAGS=-g
 # ppc doesn't work because we don't support big-endian
 CFLAGS=-mmacosx-version-min=10.5 -arch i386 -arch x86_64 -O3 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
 HEADERS = \
@@ -46,12 +44,10 @@ HEADERS = \
     net.h \
     noui.h \
     protocol.h \
-    rpc.h \
+    bitcoinrpc.h \
     script.h \
     serialize.h \
     strlcpy.h \
-    ui.h \
-    uibase.h \
     uint256.h \
     util.h \
     wallet.h
@@ -65,7 +61,7 @@ OBJS= \
     obj/main.o \
     obj/net.o \
     obj/protocol.o \
-    obj/rpc.o \
+    obj/bitcoinrpc.o \
     obj/script.o \
     obj/util.o \
     obj/wallet.o \
@@ -78,19 +74,11 @@ ifdef USE_UPNP
 endif
        
 
-all: bitcoin
-
-
-obj/%.o: %.cpp $(HEADERS)
-       $(CXX) -c $(CFLAGS) -DGUI -o $@ $<
+all: bitcoind
 
 cryptopp/obj/%.o: cryptopp/%.cpp
        $(CXX) -c $(CFLAGS) -O3 -DCRYPTOPP_DISABLE_ASM -o $@ $<
 
-bitcoin: $(OBJS) obj/ui.o obj/uibase.o
-       $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS)
-
-
 obj/nogui/%.o: %.cpp $(HEADERS)
        $(CXX) -c $(CFLAGS) -o $@ $<
 
@@ -104,7 +92,7 @@ test_bitcoin: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%
        $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) -lboost_unit_test_framework
 
 clean:
-       -rm -f bitcoin bitcoind test_bitcoin
+       -rm -f bitcoind test_bitcoin
        -rm -f obj/*.o
        -rm -f obj/nogui/*.o
        -rm -f obj/test/*.o
index 298d856..689c54d 100644 (file)
@@ -4,10 +4,6 @@
 
 CXX=g++
 
-WXINCLUDEPATHS=$(shell wx-config --cxxflags)
-
-WXLIBS=$(shell wx-config --libs)
-
 USE_UPNP:=0
 
 DEFS=-DNOPCH -DUSE_SSL
@@ -36,8 +32,36 @@ LIBS+= \
    -l pthread
 
 
-DEBUGFLAGS=-g -D__WXDEBUG__
-CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS)
+# Hardening
+# Make some classes of vulnerabilities unexploitable in case one is discovered.
+#
+    # Stack Canaries
+    # Put numbers at the beginning of each stack frame and check that they are the same.
+    # If a stack buffer if overflowed, it writes over the canary number and then on return
+    # when that number is checked, it won't be the same and the program will exit with
+    # a "Stack smashing detected" error instead of being exploited.
+    HARDENING=-fstack-protector-all -Wstack-protector
+
+    # Make some important things such as the global offset table read only as soon as
+    # the dynamic linker is finished building it. This will prevent overwriting of addresses
+    # which would later be jumped to.
+    HARDENING+=-Wl,-z,relro -Wl,-z,now
+
+    # Build position independent code to take advantage of Address Space Layout Randomization
+    # offered by some kernels.
+    # see doc/build-unix.txt for more information.
+    ifdef PIE
+        HARDENING+=-fPIE -pie
+    endif
+
+    # -D_FORTIFY_SOURCE=2 does some checking for potentially exploitable code patterns in
+    # the source such overflowing a statically defined buffer.
+    HARDENING+=-D_FORTIFY_SOURCE=2
+#
+
+
+DEBUGFLAGS=-g
+CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(HARDENING)
 HEADERS = \
     base58.h \
     bignum.h \
@@ -52,12 +76,10 @@ HEADERS = \
     net.h \
     noui.h \
     protocol.h \
-    rpc.h \
+    bitcoinrpc.h \
     script.h \
     serialize.h \
     strlcpy.h \
-    ui.h \
-    uibase.h \
     uint256.h \
     util.h \
     wallet.h
@@ -71,7 +93,7 @@ OBJS= \
     obj/main.o \
     obj/net.o \
     obj/protocol.o \
-    obj/rpc.o \
+    obj/bitcoinrpc.o \
     obj/script.o \
     obj/util.o \
     obj/wallet.o \
@@ -79,18 +101,11 @@ OBJS= \
     cryptopp/obj/cpu.o
 
 
-all: bitcoin
-
+all: bitcoind
 
-obj/%.o: %.cpp $(HEADERS)
-       $(CXX) -c $(CXXFLAGS) $(WXINCLUDEPATHS) -DGUI -o $@ $<
 
 cryptopp/obj/%.o: cryptopp/%.cpp
-       $(CXX) -c $(CXXFLAGS) -O3 -o $@ $<
-
-bitcoin: $(OBJS) obj/ui.o obj/uibase.o
-       $(CXX) $(CXXFLAGS) -o $@ $^ $(WXLIBS) $(LIBS)
-
+       $(CXX) -c $(CFLAGS) -O3 -o $@ $<
 
 obj/nogui/%.o: %.cpp $(HEADERS)
        $(CXX) -c $(CXXFLAGS) -o $@ $<
@@ -105,7 +120,7 @@ test_bitcoin: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%
        $(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ -Wl,-Bstatic -lboost_unit_test_framework $(LIBS)
 
 clean:
-       -rm -f bitcoin bitcoind test_bitcoin
+       -rm -f bitcoind test_bitcoin
        -rm -f obj/*.o
        -rm -f obj/nogui/*.o
        -rm -f obj/test/*.o
index a5437bc..accc762 100644 (file)
@@ -7,25 +7,20 @@ INCLUDEPATHS= \
   /I"/boost" \
   /I"/db/build_windows" \
   /I"/openssl/include" \
-  /I"/wxwidgets/lib/vc_lib/mswu" \
-  /I"/wxwidgets/include" /
   /I"/miniupnpc"
 
 LIBPATHS= \
   /LIBPATH:"/boost/stage/lib" \
   /LIBPATH:"/db/build_windows/Release" \
   /LIBPATH:"/openssl/lib" \
-  /LIBPATH:"/wxwidgets/lib/vc_lib" \
   /LIBPATH:"/miniupnpc/msvc/Release" \
   /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib \
   /NODEFAULTLIB:libcd.lib /NODEFAULTLIB:libcmtd.lib \
   /NODEFAULTLIB:msvcrtd.lib
 
-WXLIBS=wxmsw29u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib
-
 USE_UPNP=0
 
-DEFS=/DWIN32 /D__WXMSW__ /D_WINDOWS /DNOPCH /DNOMINMAX
+DEFS=/DWIN32 /D_WINDOWS /DNOPCH /DNOMINMAX
 
 LIBS= \
   libboost_system-vc100-mt.lib \
@@ -59,7 +54,7 @@ HEADERS = \
     net.h \
     noui.h \
     protocol.h \
-    rpc.h \
+    bitcoinrpc.h \
     script.h \
     serialize.h \
     strlcpy.h \
@@ -92,7 +87,7 @@ CRYPTOPP_OBJS= \
 RC=../share
 
 
-all: bitcoin.exe
+all: bitcoind.exe
 
 
 .cpp{obj}.obj:
@@ -130,13 +125,6 @@ cryptopp\obj\sha.obj: cryptopp\sha.cpp
 cryptopp\obj\cpu.obj: cryptopp\cpu.cpp
     cl $(CFLAGS) /O2 /DCRYPTOPP_DISABLE_ASM /Fo$@ %s
 
-obj\ui.res: $(RC)/ui.rc $(RC)/pixmaps/bitcoin.ico $(RC)/pixmaps/check.ico $(RC)/pixmaps/send16.bmp $(RC)/pixmaps/send16mask.bmp $(RC)/pixmaps/send16masknoshadow.bmp $(RC)/pixmaps/send20.bmp $(RC)/pixmaps/send20mask.bmp $(RC)/pixmaps/addressbook16.bmp $(RC)/pixmaps/addressbook16mask.bmp $(RC)/pixmaps/addressbook20.bmp $(RC)/pixmaps/addressbook20mask.bmp
-    rc $(INCLUDEPATHS) $(DEFS) /Fo$@ %s
-
-bitcoin.exe: $(OBJS) $(CRYPTOPP_OBJS) obj\ui.obj obj\uibase.obj obj\ui.res
-    link /nologo /SUBSYSTEM:WINDOWS /OUT:$@ $(LIBPATHS) $** $(WXLIBS) $(LIBS)
-
-       
 .cpp{obj\nogui}.obj:
     cl $(CFLAGS) /Fo$@ %s
 
@@ -163,10 +151,10 @@ obj\nogui\init.obj: $(HEADERS)
 bitcoind.exe: $(OBJS:obj\=obj\nogui\) $(CRYPTOPP_OBJS) obj\ui.res
     link /nologo /OUT:$@ $(LIBPATHS) $** $(LIBS)
 
-
 clean:
     -del /Q obj\*
     -del /Q obj\nogui\*
     -del /Q cryptopp\obj\*
     -del /Q *.ilk
     -del /Q *.pdb
+    -del /Q bitcoind.exe
index f5e8b71..0e86123 100644 (file)
@@ -726,6 +726,52 @@ void CNode::Cleanup()
 }
 
 
+std::map<unsigned int, int64> CNode::setBanned;
+CCriticalSection CNode::cs_setBanned;
+
+void CNode::ClearBanned()
+{
+    setBanned.clear();
+}
+
+bool CNode::IsBanned(unsigned int ip)
+{
+    bool fResult = false;
+    CRITICAL_BLOCK(cs_setBanned)
+    {
+        std::map<unsigned int, int64>::iterator i = setBanned.find(ip);
+        if (i != setBanned.end())
+        {
+            int64 t = (*i).second;
+            if (GetTime() < t)
+                fResult = true;
+        }
+    }
+    return fResult;
+}
+
+bool CNode::Misbehaving(int howmuch)
+{
+    if (addr.IsLocal())
+    {
+        printf("Warning: local node %s misbehaving\n", addr.ToString().c_str());
+        return false;
+    }
+
+    nMisbehavior += howmuch;
+    if (nMisbehavior >= GetArg("-banscore", 100))
+    {
+        int64 banTime = GetTime()+GetArg("-bantime", 60*60*24);  // Default 24-hour ban
+        CRITICAL_BLOCK(cs_setBanned)
+            if (setBanned[addr.ip] < banTime)
+                setBanned[addr.ip] = banTime;
+        CloseSocketDisconnect();
+        printf("Disconnected %s for misbehavior (score=%d)\n", addr.ToString().c_str(), nMisbehavior);
+        return true;
+    }
+    return false;
+}
+
 
 
 
@@ -896,6 +942,11 @@ void ThreadSocketHandler2(void* parg)
             {
                 closesocket(hSocket);
             }
+            else if (CNode::IsBanned(addr.ip))
+            {
+                printf("connetion from %s dropped (banned)\n", addr.ToString().c_str());
+                closesocket(hSocket);
+            }
             else
             {
                 printf("accepted connection %s\n", addr.ToString().c_str());
@@ -1387,6 +1438,8 @@ void ThreadOpenConnections2(void* parg)
             BOOST_FOREACH(CNode* pnode, vNodes)
                 setConnected.insert(pnode->addr.ip & 0x0000ffff);
 
+        int64 nANow = GetAdjustedTime();
+
         CRITICAL_BLOCK(cs_mapAddresses)
         {
             BOOST_FOREACH(const PAIRTYPE(vector<unsigned char>, CAddress)& item, mapAddresses)
@@ -1394,8 +1447,8 @@ void ThreadOpenConnections2(void* parg)
                 const CAddress& addr = item.second;
                 if (!addr.IsIPv4() || !addr.IsValid() || setConnected.count(addr.ip & 0x0000ffff))
                     continue;
-                int64 nSinceLastSeen = GetAdjustedTime() - addr.nTime;
-                int64 nSinceLastTry = GetAdjustedTime() - addr.nLastTry;
+                int64 nSinceLastSeen = nANow - addr.nTime;
+                int64 nSinceLastTry = nANow - addr.nLastTry;
 
                 // Randomize the order in a deterministic way, putting the standard port first
                 int64 nRandomizer = (uint64)(nStart * 4951 + addr.nLastTry * 9567851 + addr.ip * 7789) % (2 * 60 * 60);
@@ -1454,7 +1507,8 @@ bool OpenNetworkConnection(const CAddress& addrConnect)
     //
     if (fShutdown)
         return false;
-    if (addrConnect.ip == addrLocalHost.ip || !addrConnect.IsIPv4() || FindNode(addrConnect.ip))
+    if (addrConnect.ip == addrLocalHost.ip || !addrConnect.IsIPv4() ||
+        FindNode(addrConnect.ip) || CNode::IsBanned(addrConnect.ip))
         return false;
 
     vnThreadsRunning[1]--;
index 0026e40..5b3568f 100644 (file)
--- a/src/net.h
+++ b/src/net.h
@@ -124,6 +124,13 @@ public:
     bool fDisconnect;
 protected:
     int nRefCount;
+
+    // Denial-of-service detection/prevention
+    // Key is ip address, value is banned-until-time
+    static std::map<unsigned int, int64> setBanned;
+    static CCriticalSection cs_setBanned;
+    int nMisbehavior;
+
 public:
     int64 nReleaseTime;
     std::map<uint256, CRequestTracker> mapRequests;
@@ -148,7 +155,6 @@ public:
     // publish and subscription
     std::vector<char> vfSubscribe;
 
-
     CNode(SOCKET hSocketIn, CAddress addrIn, bool fInboundIn=false)
     {
         nServices = 0;
@@ -185,6 +191,7 @@ public:
         nStartingHeight = -1;
         fGetAddr = false;
         vfSubscribe.assign(256, false);
+        nMisbehavior = 0;
 
         // Be shy and don't send version until we hear
         if (!fInbound)
@@ -568,6 +575,25 @@ public:
     void CancelSubscribe(unsigned int nChannel);
     void CloseSocketDisconnect();
     void Cleanup();
+
+
+    // Denial-of-service detection/prevention
+    // The idea is to detect peers that are behaving
+    // badly and disconnect/ban them, but do it in a
+    // one-coding-mistake-won't-shatter-the-entire-network
+    // way.
+    // IMPORTANT:  There should be nothing I can give a
+    // node that it will forward on that will make that
+    // node's peers drop it. If there is, an attacker
+    // can isolate a node and/or try to split the network.
+    // Dropping a node for sending stuff that is invalid
+    // now but might be valid in a later version is also
+    // dangerous, because it can cause a network split
+    // between nodes running old code and nodes running
+    // new code.
+    static void ClearBanned(); // needed for unit testing
+    static bool IsBanned(unsigned int ip);
+    bool Misbehaving(int howmuch); // 1 == a little, 100 == a lot
 };
 
 
index cbe6fa4..754c222 100644 (file)
@@ -67,4 +67,8 @@ inline void MainFrameRepaint()
 {
 }
 
+inline void InitMessage(const std::string &message)
+{
+}
+
 #endif
diff --git a/src/qt/aboutdialog.cpp b/src/qt/aboutdialog.cpp
new file mode 100644 (file)
index 0000000..13d263b
--- /dev/null
@@ -0,0 +1,26 @@
+#include "aboutdialog.h"
+#include "ui_aboutdialog.h"
+#include "clientmodel.h"
+
+AboutDialog::AboutDialog(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::AboutDialog)
+{
+    ui->setupUi(this);
+
+}
+
+void AboutDialog::setModel(ClientModel *model)
+{
+    ui->versionLabel->setText(model->formatFullVersion());
+}
+
+AboutDialog::~AboutDialog()
+{
+    delete ui;
+}
+
+void AboutDialog::on_buttonBox_accepted()
+{
+    close();
+}
diff --git a/src/qt/aboutdialog.h b/src/qt/aboutdialog.h
new file mode 100644 (file)
index 0000000..d2caa3e
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef ABOUTDIALOG_H
+#define ABOUTDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+    class AboutDialog;
+}
+class ClientModel;
+
+class AboutDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit AboutDialog(QWidget *parent = 0);
+    ~AboutDialog();
+
+    void setModel(ClientModel *model);
+private:
+    Ui::AboutDialog *ui;
+
+private slots:
+    void on_buttonBox_accepted();
+};
+
+#endif // ABOUTDIALOG_H
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp
new file mode 100644 (file)
index 0000000..ee64cc2
--- /dev/null
@@ -0,0 +1,215 @@
+#include "addressbookpage.h"
+#include "ui_addressbookpage.h"
+
+#include "addresstablemodel.h"
+#include "editaddressdialog.h"
+#include "csvmodelwriter.h"
+
+#include <QSortFilterProxyModel>
+#include <QClipboard>
+#include <QFileDialog>
+#include <QMessageBox>
+
+AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::AddressBookPage),
+    model(0),
+    mode(mode),
+    tab(tab)
+{
+    ui->setupUi(this);
+    switch(mode)
+    {
+    case ForSending:
+        connect(ui->tableView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(accept()));
+        ui->tableView->setEditTriggers(QAbstractItemView::NoEditTriggers);
+        ui->tableView->setFocus();
+        break;
+    case ForEditing:
+        ui->buttonBox->hide();
+        break;
+    }
+    switch(tab)
+    {
+    case SendingTab:
+        ui->labelExplanation->hide();
+        break;
+    case ReceivingTab:
+        break;
+    }
+    ui->tableView->setTabKeyNavigation(false);
+
+    connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
+}
+
+AddressBookPage::~AddressBookPage()
+{
+    delete ui;
+}
+
+void AddressBookPage::setModel(AddressTableModel *model)
+{
+    this->model = model;
+    // Refresh list from core
+    model->updateList();
+
+    proxyModel = new QSortFilterProxyModel(this);
+    proxyModel->setSourceModel(model);
+    proxyModel->setDynamicSortFilter(true);
+    switch(tab)
+    {
+    case ReceivingTab:
+        // Receive filter
+        proxyModel->setFilterRole(AddressTableModel::TypeRole);
+        proxyModel->setFilterFixedString(AddressTableModel::Receive);
+        break;
+    case SendingTab:
+        // Send filter
+        proxyModel->setFilterRole(AddressTableModel::TypeRole);
+        proxyModel->setFilterFixedString(AddressTableModel::Send);
+        break;
+    }
+    ui->tableView->setModel(proxyModel);
+    ui->tableView->sortByColumn(0, Qt::AscendingOrder);
+
+    // Set column widths
+    ui->tableView->horizontalHeader()->resizeSection(
+            AddressTableModel::Address, 320);
+    ui->tableView->horizontalHeader()->setResizeMode(
+            AddressTableModel::Label, QHeaderView::Stretch);
+
+    connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
+            this, SLOT(selectionChanged()));
+
+    if(mode == ForSending)
+    {
+        // Auto-select first row when in sending mode
+        ui->tableView->selectRow(0);
+    }
+    selectionChanged();
+}
+
+QTableView *AddressBookPage::getCurrentTable()
+{
+    return ui->tableView;
+}
+
+void AddressBookPage::on_copyToClipboard_clicked()
+{
+    // Copy currently selected address to clipboard
+    //   (or nothing, if nothing selected)
+    QTableView *table = getCurrentTable();
+    QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address);
+
+    foreach (QModelIndex index, indexes)
+    {
+        QVariant address = index.data();
+        QApplication::clipboard()->setText(address.toString());
+    }
+}
+
+void AddressBookPage::on_newAddressButton_clicked()
+{
+    EditAddressDialog dlg(
+            tab == SendingTab ?
+            EditAddressDialog::NewSendingAddress :
+            EditAddressDialog::NewReceivingAddress);
+    dlg.setModel(model);
+    if(dlg.exec())
+    {
+        // Select row for newly created address
+        QString address = dlg.getAddress();
+        QModelIndexList lst = proxyModel->match(proxyModel->index(0,
+                          AddressTableModel::Address, QModelIndex()),
+                          Qt::EditRole, address, 1, Qt::MatchExactly);
+        if(!lst.isEmpty())
+        {
+            ui->tableView->setFocus();
+            ui->tableView->selectRow(lst.at(0).row());
+        }
+    }
+}
+
+void AddressBookPage::on_deleteButton_clicked()
+{
+    QTableView *table = getCurrentTable();
+    QModelIndexList indexes = table->selectionModel()->selectedRows();
+    if(!indexes.isEmpty())
+    {
+        table->model()->removeRow(indexes.at(0).row());
+    }
+}
+
+void AddressBookPage::selectionChanged()
+{
+    // Set button states based on selected tab and selection
+    QTableView *table = getCurrentTable();
+
+    if(table->selectionModel()->hasSelection())
+    {
+        switch(tab)
+        {
+        case SendingTab:
+            ui->deleteButton->setEnabled(true);
+            break;
+        case ReceivingTab:
+            ui->deleteButton->setEnabled(false);
+            break;
+        }
+        ui->copyToClipboard->setEnabled(true);
+    }
+    else
+    {
+        ui->deleteButton->setEnabled(false);
+        ui->copyToClipboard->setEnabled(false);
+    }
+}
+
+void AddressBookPage::done(int retval)
+{
+    // When this is a tab/widget and not a model dialog, ignore "done"
+    if(mode == ForEditing)
+        return;
+
+    // Figure out which address was selected, and return it
+    QTableView *table = getCurrentTable();
+    QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address);
+
+    foreach (QModelIndex index, indexes)
+    {
+        QVariant address = table->model()->data(index);
+        returnValue = address.toString();
+    }
+
+    if(returnValue.isEmpty())
+    {
+        retval = Rejected;
+    }
+
+    QDialog::done(retval);
+}
+
+void AddressBookPage::exportClicked()
+{
+    // CSV is currently the only supported format
+    QString filename = QFileDialog::getSaveFileName(
+            this,
+            tr("Export Address Book Data"),
+            QDir::currentPath(),
+            tr("Comma separated file (*.csv)"));
+
+    if (filename.isNull()) return;
+
+    CSVModelWriter writer(filename);
+
+    // name, column, role
+    writer.setModel(proxyModel);
+    writer.addColumn("Label", AddressTableModel::Label, Qt::EditRole);
+    writer.addColumn("Address", AddressTableModel::Address, Qt::EditRole);
+
+    if(!writer.write())
+    {
+        QMessageBox::critical(this, tr("Error exporting"), tr("Could not write to file %1.").arg(filename),
+                              QMessageBox::Abort, QMessageBox::Abort);
+    }
+}
diff --git a/src/qt/addressbookpage.h b/src/qt/addressbookpage.h
new file mode 100644 (file)
index 0000000..53c7728
--- /dev/null
@@ -0,0 +1,59 @@
+#ifndef ADDRESSBOOKPAGE_H
+#define ADDRESSBOOKPAGE_H
+
+#include <QDialog>
+
+namespace Ui {
+    class AddressBookPage;
+}
+class AddressTableModel;
+
+QT_BEGIN_NAMESPACE
+class QTableView;
+class QItemSelection;
+class QSortFilterProxyModel;
+QT_END_NAMESPACE
+
+class AddressBookPage : public QDialog
+{
+    Q_OBJECT
+
+public:
+    enum Tabs {
+        SendingTab = 0,
+        ReceivingTab = 1
+    };
+
+    enum Mode {
+        ForSending, // Pick address for sending
+        ForEditing  // Open address book for editing
+    };
+
+    explicit AddressBookPage(Mode mode, Tabs tab, QWidget *parent = 0);
+    ~AddressBookPage();
+
+    void setModel(AddressTableModel *model);
+    const QString &getReturnValue() const { return returnValue; }
+
+public slots:
+    void done(int retval);
+    void exportClicked();
+
+private:
+    Ui::AddressBookPage *ui;
+    AddressTableModel *model;
+    Mode mode;
+    Tabs tab;
+    QString returnValue;
+    QSortFilterProxyModel *proxyModel;
+
+    QTableView *getCurrentTable();
+
+private slots:
+    void on_deleteButton_clicked();
+    void on_newAddressButton_clicked();
+    void on_copyToClipboard_clicked();
+    void selectionChanged();
+};
+
+#endif // ADDRESSBOOKDIALOG_H
diff --git a/src/qt/addresstablemodel.cpp b/src/qt/addresstablemodel.cpp
new file mode 100644 (file)
index 0000000..8fd6d52
--- /dev/null
@@ -0,0 +1,347 @@
+#include "addresstablemodel.h"
+#include "guiutil.h"
+#include "walletmodel.h"
+
+#include "headers.h"
+
+#include <QFont>
+#include <QColor>
+
+const QString AddressTableModel::Send = "S";
+const QString AddressTableModel::Receive = "R";
+
+struct AddressTableEntry
+{
+    enum Type {
+        Sending,
+        Receiving
+    };
+
+    Type type;
+    QString label;
+    QString address;
+
+    AddressTableEntry() {}
+    AddressTableEntry(Type type, const QString &label, const QString &address):
+        type(type), label(label), address(address) {}
+};
+
+// Private implementation
+struct AddressTablePriv
+{
+    CWallet *wallet;
+    QList<AddressTableEntry> cachedAddressTable;
+
+    AddressTablePriv(CWallet *wallet):
+            wallet(wallet) {}
+
+    void refreshAddressTable()
+    {
+        cachedAddressTable.clear();
+
+        CRITICAL_BLOCK(wallet->cs_wallet)
+        {
+            BOOST_FOREACH(const PAIRTYPE(CBitcoinAddress, std::string)& item, wallet->mapAddressBook)
+            {
+                const CBitcoinAddress& address = item.first;
+                const std::string& strName = item.second;
+                bool fMine = wallet->HaveKey(address);
+                cachedAddressTable.append(AddressTableEntry(fMine ? AddressTableEntry::Receiving : AddressTableEntry::Sending,
+                                  QString::fromStdString(strName),
+                                  QString::fromStdString(address.ToString())));
+            }
+        }
+    }
+
+    int size()
+    {
+        return cachedAddressTable.size();
+    }
+
+    AddressTableEntry *index(int idx)
+    {
+        if(idx >= 0 && idx < cachedAddressTable.size())
+        {
+            return &cachedAddressTable[idx];
+        }
+        else
+        {
+            return 0;
+        }
+    }
+};
+
+AddressTableModel::AddressTableModel(CWallet *wallet, WalletModel *parent) :
+    QAbstractTableModel(parent),walletModel(parent),wallet(wallet),priv(0)
+{
+    columns << tr("Label") << tr("Address");
+    priv = new AddressTablePriv(wallet);
+    priv->refreshAddressTable();
+}
+
+AddressTableModel::~AddressTableModel()
+{
+    delete priv;
+}
+
+int AddressTableModel::rowCount(const QModelIndex &parent) const
+{
+    Q_UNUSED(parent);
+    return priv->size();
+}
+
+int AddressTableModel::columnCount(const QModelIndex &parent) const
+{
+    Q_UNUSED(parent);
+    return columns.length();
+}
+
+QVariant AddressTableModel::data(const QModelIndex &index, int role) const
+{
+    if(!index.isValid())
+        return QVariant();
+
+    AddressTableEntry *rec = static_cast<AddressTableEntry*>(index.internalPointer());
+
+    if(role == Qt::DisplayRole || role == Qt::EditRole)
+    {
+        switch(index.column())
+        {
+        case Label:
+            if(rec->label.isEmpty() && role == Qt::DisplayRole)
+            {
+                return tr("(no label)");
+            }
+            else
+            {
+                return rec->label;
+            }
+        case Address:
+            return rec->address;
+        }
+    }
+    else if (role == Qt::FontRole)
+    {
+        QFont font;
+        if(index.column() == Address)
+        {
+            font = GUIUtil::bitcoinAddressFont();
+        }
+        return font;
+    }
+    else if (role == TypeRole)
+    {
+        switch(rec->type)
+        {
+        case AddressTableEntry::Sending:
+            return Send;
+        case AddressTableEntry::Receiving:
+            return Receive;
+        default: break;
+        }
+    }
+    return QVariant();
+}
+
+bool AddressTableModel::setData(const QModelIndex & index, const QVariant & value, int role)
+{
+    if(!index.isValid())
+        return false;
+    AddressTableEntry *rec = static_cast<AddressTableEntry*>(index.internalPointer());
+
+    editStatus = OK;
+
+    if(role == Qt::EditRole)
+    {
+        switch(index.column())
+        {
+        case Label:
+            wallet->SetAddressBookName(rec->address.toStdString(), value.toString().toStdString());
+            rec->label = value.toString();
+            break;
+        case Address:
+            // Refuse to set invalid address, set error status and return false
+            if(!walletModel->validateAddress(value.toString()))
+            {
+                editStatus = INVALID_ADDRESS;
+                return false;
+            }
+            // Double-check that we're not overwriting a receiving address
+            if(rec->type == AddressTableEntry::Sending)
+            {
+                CRITICAL_BLOCK(wallet->cs_wallet)
+                {
+                    // Remove old entry
+                    wallet->DelAddressBookName(rec->address.toStdString());
+                    // Add new entry with new address
+                    wallet->SetAddressBookName(value.toString().toStdString(), rec->label.toStdString());
+                }
+
+                rec->address = value.toString();
+            }
+            break;
+        }
+        emit dataChanged(index, index);
+
+        return true;
+    }
+    return false;
+}
+
+QVariant AddressTableModel::headerData(int section, Qt::Orientation orientation, int role) const
+{
+    if(orientation == Qt::Horizontal)
+    {
+        if(role == Qt::DisplayRole)
+        {
+            return columns[section];
+        }
+    }
+    return QVariant();
+}
+
+Qt::ItemFlags AddressTableModel::flags(const QModelIndex & index) const
+{
+    if(!index.isValid())
+        return 0;
+    AddressTableEntry *rec = static_cast<AddressTableEntry*>(index.internalPointer());
+
+    Qt::ItemFlags retval = Qt::ItemIsSelectable | Qt::ItemIsEnabled;
+    // Can edit address and label for sending addresses,
+    // and only label for receiving addresses.
+    if(rec->type == AddressTableEntry::Sending ||
+      (rec->type == AddressTableEntry::Receiving && index.column()==Label))
+    {
+        retval |= Qt::ItemIsEditable;
+    }
+    return retval;
+}
+
+QModelIndex AddressTableModel::index(int row, int column, const QModelIndex & parent) const
+{
+    Q_UNUSED(parent);
+    AddressTableEntry *data = priv->index(row);
+    if(data)
+    {
+        return createIndex(row, column, priv->index(row));
+    }
+    else
+    {
+        return QModelIndex();
+    }
+}
+
+void AddressTableModel::updateList()
+{
+    // Update address book model from Bitcoin core
+    beginResetModel();
+    priv->refreshAddressTable();
+    endResetModel();
+}
+
+QString AddressTableModel::addRow(const QString &type, const QString &label, const QString &address)
+{
+    std::string strLabel = label.toStdString();
+    std::string strAddress = address.toStdString();
+
+    editStatus = OK;
+
+    if(type == Send)
+    {
+        if(!walletModel->validateAddress(address))
+        {
+            editStatus = INVALID_ADDRESS;
+            return QString();
+        }
+        // Check for duplicate addresses
+        CRITICAL_BLOCK(wallet->cs_wallet)
+        {
+            if(wallet->mapAddressBook.count(strAddress))
+            {
+                editStatus = DUPLICATE_ADDRESS;
+                return QString();
+            }
+        }
+    }
+    else if(type == Receive)
+    {
+        // Generate a new address to associate with given label
+        WalletModel::UnlockContext ctx(walletModel->requestUnlock());
+        if(!ctx.isValid())
+        {
+            // Unlock wallet failed or was cancelled
+            editStatus = WALLET_UNLOCK_FAILURE;
+            return QString();
+        }
+        std::vector<unsigned char> newKey;
+        if(!wallet->GetKeyFromPool(newKey, true))
+        {
+            editStatus = KEY_GENERATION_FAILURE;
+            return QString();
+        }
+        strAddress = CBitcoinAddress(newKey).ToString();
+    }
+    else
+    {
+        return QString();
+    }
+    // Add entry and update list
+    CRITICAL_BLOCK(wallet->cs_wallet)
+        wallet->SetAddressBookName(strAddress, strLabel);
+    updateList();
+    return QString::fromStdString(strAddress);
+}
+
+bool AddressTableModel::removeRows(int row, int count, const QModelIndex & parent)
+{
+    Q_UNUSED(parent);
+    AddressTableEntry *rec = priv->index(row);
+    if(count != 1 || !rec || rec->type == AddressTableEntry::Receiving)
+    {
+        // Can only remove one row at a time, and cannot remove rows not in model.
+        // Also refuse to remove receiving addresses.
+        return false;
+    }
+    CRITICAL_BLOCK(wallet->cs_wallet)
+    {
+        wallet->DelAddressBookName(rec->address.toStdString());
+    }
+    updateList();
+    return true;
+}
+
+void AddressTableModel::update()
+{
+
+}
+
+/* Look up label for address in address book, if not found return empty string.
+ */
+QString AddressTableModel::labelForAddress(const QString &address) const
+{
+    CRITICAL_BLOCK(wallet->cs_wallet)
+    {
+        CBitcoinAddress address_parsed(address.toStdString());
+        std::map<CBitcoinAddress, std::string>::iterator mi = wallet->mapAddressBook.find(address_parsed);
+        if (mi != wallet->mapAddressBook.end())
+        {
+            return QString::fromStdString(mi->second);
+        }
+    }
+    return QString();
+}
+
+int AddressTableModel::lookupAddress(const QString &address) const
+{
+    QModelIndexList lst = match(index(0, Address, QModelIndex()),
+                                Qt::EditRole, address, 1, Qt::MatchExactly);
+    if(lst.isEmpty())
+    {
+        return -1;
+    }
+    else
+    {
+        return lst.at(0).row();
+    }
+}
+
diff --git a/src/qt/addresstablemodel.h b/src/qt/addresstablemodel.h
new file mode 100644 (file)
index 0000000..f4a8dad
--- /dev/null
@@ -0,0 +1,83 @@
+#ifndef ADDRESSTABLEMODEL_H
+#define ADDRESSTABLEMODEL_H
+
+#include <QAbstractTableModel>
+#include <QStringList>
+
+class AddressTablePriv;
+class CWallet;
+class WalletModel;
+
+class AddressTableModel : public QAbstractTableModel
+{
+    Q_OBJECT
+public:
+    explicit AddressTableModel(CWallet *wallet, WalletModel *parent = 0);
+    ~AddressTableModel();
+
+    enum ColumnIndex {
+        Label = 0,   /* User specified label */
+        Address = 1  /* Bitcoin address */
+    };
+
+    enum RoleIndex {
+        TypeRole = Qt::UserRole
+    };
+
+    // Return status of last edit/insert operation
+    enum EditStatus {
+        OK,
+        INVALID_ADDRESS,
+        DUPLICATE_ADDRESS,
+        WALLET_UNLOCK_FAILURE,
+        KEY_GENERATION_FAILURE
+    };
+
+    static const QString Send; /* Send addres */
+    static const QString Receive; /* Receive address */
+
+    /* Overridden methods from QAbstractTableModel */
+    int rowCount(const QModelIndex &parent) const;
+    int columnCount(const QModelIndex &parent) const;
+    QVariant data(const QModelIndex &index, int role) const;
+    bool setData(const QModelIndex & index, const QVariant & value, int role);
+    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
+    QModelIndex index(int row, int column, const QModelIndex & parent) const;
+    bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex());
+    Qt::ItemFlags flags(const QModelIndex & index) const;
+
+    /* Add an address to the model.
+       Returns the added address on success, and an empty string otherwise.
+     */
+    QString addRow(const QString &type, const QString &label, const QString &address);
+
+    /* Update address list from core. Invalidates any indices.
+     */
+    void updateList();
+
+    /* Look up label for address in address book, if not found return empty string.
+     */
+    QString labelForAddress(const QString &address) const;
+
+    /* Look up row index of an address in the model.
+       Return -1 if not found.
+     */
+    int lookupAddress(const QString &address) const;
+
+    EditStatus getEditStatus() const { return editStatus; }
+
+private:
+    WalletModel *walletModel;
+    CWallet *wallet;
+    AddressTablePriv *priv;
+    QStringList columns;
+    EditStatus editStatus;
+
+signals:
+    void defaultAddressChanged(const QString &address);
+
+public slots:
+    void update();
+};
+
+#endif // ADDRESSTABLEMODEL_H
diff --git a/src/qt/askpassphrasedialog.cpp b/src/qt/askpassphrasedialog.cpp
new file mode 100644 (file)
index 0000000..a297513
--- /dev/null
@@ -0,0 +1,186 @@
+#include "askpassphrasedialog.h"
+#include "ui_askpassphrasedialog.h"
+
+#include "guiconstants.h"
+#include "walletmodel.h"
+
+#include <QMessageBox>
+#include <QPushButton>
+
+AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::AskPassphraseDialog),
+    mode(mode),
+    model(0)
+{
+    ui->setupUi(this);
+    ui->passEdit1->setMaxLength(MAX_PASSPHRASE_SIZE);
+    ui->passEdit2->setMaxLength(MAX_PASSPHRASE_SIZE);
+    ui->passEdit3->setMaxLength(MAX_PASSPHRASE_SIZE);
+
+    switch(mode)
+    {
+        case Encrypt: // Ask passphrase x2
+            ui->passLabel1->hide();
+            ui->passEdit1->hide();
+            ui->warningLabel->setText(tr("Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>."));
+            setWindowTitle(tr("Encrypt wallet"));
+            break;
+        case Unlock: // Ask passphrase
+            ui->warningLabel->setText(tr("This operation needs your wallet passphrase to unlock the wallet."));
+            ui->passLabel2->hide();
+            ui->passEdit2->hide();
+            ui->passLabel3->hide();
+            ui->passEdit3->hide();
+            setWindowTitle(tr("Unlock wallet"));
+            break;
+        case Decrypt:   // Ask passphrase
+            ui->warningLabel->setText(tr("This operation needs your wallet passphrase to decrypt the wallet."));
+            ui->passLabel2->hide();
+            ui->passEdit2->hide();
+            ui->passLabel3->hide();
+            ui->passEdit3->hide();
+            setWindowTitle(tr("Decrypt wallet"));
+            break;
+        case ChangePass: // Ask old passphrase + new passphrase x2
+            setWindowTitle(tr("Change passphrase"));
+            ui->warningLabel->setText(tr("Enter the old and new passphrase to the wallet."));
+            break;
+    }
+    resize(minimumSize()); // Get rid of extra space in dialog
+
+    textChanged();
+    connect(ui->passEdit1, SIGNAL(textChanged(QString)), this, SLOT(textChanged()));
+    connect(ui->passEdit2, SIGNAL(textChanged(QString)), this, SLOT(textChanged()));
+    connect(ui->passEdit3, SIGNAL(textChanged(QString)), this, SLOT(textChanged()));
+}
+
+AskPassphraseDialog::~AskPassphraseDialog()
+{
+    // Attempt to overwrite text so that they do not linger around in memory
+    ui->passEdit1->setText(QString(" ").repeated(ui->passEdit1->text().size()));
+    ui->passEdit2->setText(QString(" ").repeated(ui->passEdit2->text().size()));
+    ui->passEdit3->setText(QString(" ").repeated(ui->passEdit3->text().size()));
+    delete ui;
+}
+
+void AskPassphraseDialog::setModel(WalletModel *model)
+{
+    this->model = model;
+}
+
+void AskPassphraseDialog::accept()
+{
+    std::string oldpass, newpass1, newpass2;
+    // TODO: mlock memory / munlock on return so they will not be swapped out, really need "mlockedstring" wrapper class to do this safely
+    oldpass.reserve(MAX_PASSPHRASE_SIZE);
+    newpass1.reserve(MAX_PASSPHRASE_SIZE);
+    newpass2.reserve(MAX_PASSPHRASE_SIZE);
+    oldpass.assign(ui->passEdit1->text().toStdString());
+    newpass1.assign(ui->passEdit2->text().toStdString());
+    newpass2.assign(ui->passEdit3->text().toStdString());
+
+    switch(mode)
+    {
+    case Encrypt: {
+        if(newpass1.empty() || newpass2.empty())
+        {
+            // Cannot encrypt with empty passphrase
+            break;
+        }
+        QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm wallet encryption"),
+                 tr("WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>!\nAre you sure you wish to encrypt your wallet?"),
+                 QMessageBox::Yes|QMessageBox::Cancel,
+                 QMessageBox::Cancel);
+        if(retval == QMessageBox::Yes)
+        {
+            if(newpass1 == newpass2)
+            {
+                if(model->setWalletEncrypted(true, newpass1))
+                {
+                    QMessageBox::warning(this, tr("Wallet encrypted"),
+                                         tr("Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer."));
+                }
+                else
+                {
+                    QMessageBox::critical(this, tr("Wallet encryption failed"),
+                                         tr("Wallet encryption failed due to an internal error. Your wallet was not encrypted."));
+                }
+                QDialog::accept(); // Success
+            }
+            else
+            {
+                QMessageBox::critical(this, tr("Wallet encryption failed"),
+                                     tr("The supplied passphrases do not match."));
+            }
+        }
+        else
+        {
+            QDialog::reject(); // Cancelled
+        }
+        } break;
+    case Unlock:
+        if(!model->setWalletLocked(false, oldpass))
+        {
+            QMessageBox::critical(this, tr("Wallet unlock failed"),
+                                  tr("The passphrase entered for the wallet decryption was incorrect."));
+        }
+        else
+        {
+            QDialog::accept(); // Success
+        }
+        break;
+    case Decrypt:
+        if(!model->setWalletEncrypted(false, oldpass))
+        {
+            QMessageBox::critical(this, tr("Wallet decryption failed"),
+                                  tr("The passphrase entered for the wallet decryption was incorrect."));
+        }
+        else
+        {
+            QDialog::accept(); // Success
+        }
+        break;
+    case ChangePass:
+        if(newpass1 == newpass2)
+        {
+            if(model->changePassphrase(oldpass, newpass1))
+            {
+                QMessageBox::information(this, tr("Wallet encrypted"),
+                                     tr("Wallet passphrase was succesfully changed."));
+                QDialog::accept(); // Success
+            }
+            else
+            {
+                QMessageBox::critical(this, tr("Wallet encryption failed"),
+                                     tr("The passphrase entered for the wallet decryption was incorrect."));
+            }
+        }
+        else
+        {
+            QMessageBox::critical(this, tr("Wallet encryption failed"),
+                                 tr("The supplied passphrases do not match."));
+        }
+        break;
+    }
+}
+
+void AskPassphraseDialog::textChanged()
+{
+    // Validate input, set Ok button to enabled when accepable
+    bool acceptable = false;
+    switch(mode)
+    {
+    case Encrypt: // New passphrase x2
+        acceptable = !ui->passEdit2->text().isEmpty() && !ui->passEdit3->text().isEmpty();
+        break;
+    case Unlock: // Old passphrase x1
+    case Decrypt:
+        acceptable = !ui->passEdit1->text().isEmpty();
+        break;
+    case ChangePass: // Old passphrase x1, new passphrase x2
+        acceptable = !ui->passEdit1->text().isEmpty() && !ui->passEdit2->text().isEmpty() && !ui->passEdit3->text().isEmpty();
+        break;
+    }
+    ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(acceptable);
+}
diff --git a/src/qt/askpassphrasedialog.h b/src/qt/askpassphrasedialog.h
new file mode 100644 (file)
index 0000000..761612c
--- /dev/null
@@ -0,0 +1,40 @@
+#ifndef ASKPASSPHRASEDIALOG_H
+#define ASKPASSPHRASEDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+    class AskPassphraseDialog;
+}
+
+class WalletModel;
+
+class AskPassphraseDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    enum Mode {
+        Encrypt,    // Ask passphrase x2
+        Unlock,     // Ask passphrase
+        ChangePass, // Ask old passphrase + new passphrase x2
+        Decrypt   // Ask passphrase
+    };
+
+    explicit AskPassphraseDialog(Mode mode, QWidget *parent = 0);
+    ~AskPassphraseDialog();
+
+    void accept();
+
+    void setModel(WalletModel *model);
+
+private:
+    Ui::AskPassphraseDialog *ui;
+    Mode mode;
+    WalletModel *model;
+
+private slots:
+    void textChanged();
+};
+
+#endif // ASKPASSPHRASEDIALOG_H
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
new file mode 100644 (file)
index 0000000..60a9074
--- /dev/null
@@ -0,0 +1,170 @@
+/*
+ * W.J. van der Laan 2011
+ */
+#include "bitcoingui.h"
+#include "clientmodel.h"
+#include "walletmodel.h"
+#include "optionsmodel.h"
+
+#include "headers.h"
+#include "init.h"
+
+#include <QApplication>
+#include <QMessageBox>
+#include <QThread>
+#include <QTextCodec>
+#include <QLocale>
+#include <QTranslator>
+#include <QSplashScreen>
+
+// Need a global reference for the notifications to find the GUI
+BitcoinGUI *guiref;
+QSplashScreen *splashref;
+
+int MyMessageBox(const std::string& message, const std::string& caption, int style, wxWindow* parent, int x, int y)
+{
+    // Message from main thread
+    if(guiref)
+    {
+        guiref->error(QString::fromStdString(caption),
+                      QString::fromStdString(message));
+    }
+    else
+    {
+        QMessageBox::critical(0, QString::fromStdString(caption),
+            QString::fromStdString(message),
+            QMessageBox::Ok, QMessageBox::Ok);
+    }
+    return 4;
+}
+
+int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style, wxWindow* parent, int x, int y)
+{
+    // Message from network thread
+    if(guiref)
+    {
+        QMetaObject::invokeMethod(guiref, "error", Qt::QueuedConnection,
+                                   Q_ARG(QString, QString::fromStdString(caption)),
+                                   Q_ARG(QString, QString::fromStdString(message)));
+    }
+    else
+    {
+        printf("%s: %s\n", caption.c_str(), message.c_str());
+        fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str());
+    }
+    return 4;
+}
+
+bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent)
+{
+    if(!guiref)
+        return false;
+    if(nFeeRequired < MIN_TX_FEE || nFeeRequired <= nTransactionFee || fDaemon)
+        return true;
+    bool payFee = false;
+
+    // Call slot on GUI thread.
+    // If called from another thread, use a blocking QueuedConnection.
+    Qt::ConnectionType connectionType = Qt::DirectConnection;
+    if(QThread::currentThread() != QCoreApplication::instance()->thread())
+    {
+        connectionType = Qt::BlockingQueuedConnection;
+    }
+
+    QMetaObject::invokeMethod(guiref, "askFee", connectionType,
+                               Q_ARG(qint64, nFeeRequired),
+                               Q_ARG(bool*, &payFee));
+
+    return payFee;
+}
+
+void CalledSetStatusBar(const std::string& strText, int nField)
+{
+    // Only used for built-in mining, which is disabled, simple ignore
+}
+
+void UIThreadCall(boost::function0<void> fn)
+{
+    // Only used for built-in mining, which is disabled, simple ignore
+}
+
+void MainFrameRepaint()
+{
+}
+
+void InitMessage(const std::string &message)
+{
+    if(splashref)
+    {
+        splashref->showMessage(QString::fromStdString(message), Qt::AlignBottom|Qt::AlignHCenter, QColor(255,255,200));
+        QApplication::instance()->processEvents();
+    }
+}
+
+/*
+   Translate string to current locale using Qt.
+ */
+std::string _(const char* psz)
+{
+    return QCoreApplication::translate("bitcoin-core", psz).toStdString();
+}
+
+int main(int argc, char *argv[])
+{
+    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
+    QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
+
+    Q_INIT_RESOURCE(bitcoin);
+    QApplication app(argc, argv);
+
+    // Load language file for system locale
+    QString locale = QLocale::system().name();
+    QTranslator translator;
+    translator.load(":/translations/"+locale);
+    app.installTranslator(&translator);
+
+    QSplashScreen splash(QPixmap(":/images/splash"), 0);
+    splash.show();
+    splash.setAutoFillBackground(true);
+    splashref = &splash;
+
+    app.processEvents();
+
+    app.setQuitOnLastWindowClosed(false);
+
+    try
+    {
+        if(AppInit2(argc, argv))
+        {
+            {
+                // Put this in a block, so that BitcoinGUI is cleaned up properly before
+                // calling Shutdown().
+                BitcoinGUI window;
+                splash.finish(&window);
+                OptionsModel optionsModel(pwalletMain);
+                ClientModel clientModel(&optionsModel);
+                WalletModel walletModel(pwalletMain, &optionsModel);
+
+                guiref = &window;
+                window.setClientModel(&clientModel);
+                window.setWalletModel(&walletModel);
+
+                window.show();
+
+                app.exec();
+
+                guiref = 0;
+            }
+            Shutdown(NULL);
+        }
+        else
+        {
+            return 1;
+        }
+    } catch (std::exception& e) {
+        PrintException(&e, "Runaway exception");
+    } catch (...) {
+        PrintException(NULL, "Runaway exception");
+    }
+    return 0;
+}
diff --git a/src/qt/bitcoin.qrc b/src/qt/bitcoin.qrc
new file mode 100644 (file)
index 0000000..2985bb6
--- /dev/null
@@ -0,0 +1,53 @@
+<RCC>
+    <qresource prefix="/icons" lang="edit">
+        <file alias="bitcoin">res/icons/bitcoin.png</file>
+        <file alias="address-book">res/icons/address-book.png</file>
+        <file alias="quit">res/icons/quit.png</file>
+        <file alias="send">res/icons/send.png</file>
+        <file alias="toolbar">res/icons/toolbar.png</file>
+        <file alias="connect_0">res/icons/connect0_16.png</file>
+        <file alias="connect_1">res/icons/connect1_16.png</file>
+        <file alias="connect_2">res/icons/connect2_16.png</file>
+        <file alias="connect_3">res/icons/connect3_16.png</file>
+        <file alias="connect_4">res/icons/connect4_16.png</file>
+        <file alias="transaction_0">res/icons/transaction0.png</file>
+        <file alias="transaction_confirmed">res/icons/transaction2.png</file>
+        <file alias="transaction_1">res/icons/clock1.png</file>
+        <file alias="transaction_2">res/icons/clock2.png</file>
+        <file alias="transaction_3">res/icons/clock3.png</file>
+        <file alias="transaction_4">res/icons/clock4.png</file>
+        <file alias="transaction_5">res/icons/clock5.png</file>
+        <file alias="options">res/icons/configure.png</file>
+        <file alias="receiving_addresses">res/icons/receive.png</file>
+        <file alias="editpaste">res/icons/editpaste.png</file>
+        <file alias="editcopy">res/icons/editcopy.png</file>
+        <file alias="add">res/icons/add.png</file>
+        <file alias="bitcoin_testnet">res/icons/bitcoin_testnet.png</file>
+        <file alias="toolbar_testnet">res/icons/toolbar_testnet.png</file>
+        <file alias="edit">res/icons/edit.png</file>
+        <file alias="history">res/icons/history.png</file>
+        <file alias="overview">res/icons/overview.png</file>
+        <file alias="export">res/icons/export.png</file>
+        <file alias="synced">res/icons/synced.png</file>
+        <file alias="remove">res/icons/remove.png</file>
+        <file alias="tx_mined">res/icons/tx_mined.png</file>
+        <file alias="tx_input">res/icons/tx_input.png</file>
+        <file alias="tx_output">res/icons/tx_output.png</file>
+        <file alias="tx_inout">res/icons/tx_inout.png</file>
+        <file alias="lock_closed">res/icons/lock_closed.png</file>
+        <file alias="lock_open">res/icons/lock_open.png</file>
+        <file alias="key">res/icons/key.png</file>
+    </qresource>
+    <qresource prefix="/images">
+        <file alias="about">res/images/about.png</file>
+        <file alias="splash">res/images/splash2.jpg</file>
+    </qresource>
+    <qresource prefix="/movies">
+        <file alias="update_spinner">res/movies/update_spinner.mng</file>
+    </qresource>
+    <qresource prefix="/translations">
+        <file alias="de_DE">locale/bitcoin_de.qm</file>
+        <file alias="nl_NL">locale/bitcoin_nl.qm</file>
+        <file alias="ru_RU">locale/bitcoin_ru.qm</file>
+    </qresource>
+</RCC>
diff --git a/src/qt/bitcoinaddressvalidator.cpp b/src/qt/bitcoinaddressvalidator.cpp
new file mode 100644 (file)
index 0000000..3738778
--- /dev/null
@@ -0,0 +1,67 @@
+#include "bitcoinaddressvalidator.h"
+
+/* Base58 characters are:
+     "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
+
+  This is:
+  - All numbers except for '0'
+  - All uppercase letters except for 'I' and 'O'
+  - All lowercase letters except for 'l'
+
+  User friendly Base58 input can map
+  - 'l' and 'I' to '1'
+  - '0' and 'O' to 'o'
+*/
+
+BitcoinAddressValidator::BitcoinAddressValidator(QObject *parent) :
+    QValidator(parent)
+{
+}
+
+QValidator::State BitcoinAddressValidator::validate(QString &input, int &pos) const
+{
+    // Correction
+    for(int idx=0; idx<input.size(); ++idx)
+    {
+        switch(input.at(idx).unicode())
+        {
+        case 'l':
+        case 'I':
+            input[idx] = QChar('1');
+            break;
+        case '0':
+        case 'O':
+            input[idx] = QChar('o');
+            break;
+        default:
+            break;
+        }
+    }
+
+    // Validation
+    QValidator::State state = QValidator::Acceptable;
+    for(int idx=0; idx<input.size(); ++idx)
+    {
+        int ch = input.at(idx).unicode();
+
+        if(((ch >= '0' && ch<='9') ||
+           (ch >= 'a' && ch<='z') ||
+           (ch >= 'A' && ch<='Z')) &&
+           ch != 'l' && ch != 'I' && ch != '0' && ch != 'O')
+        {
+            // Alphanumeric and not a 'forbidden' character
+        }
+        else
+        {
+            state = QValidator::Invalid;
+        }
+    }
+
+    // Empty address is "intermediate" input
+    if(input.isEmpty())
+    {
+        state = QValidator::Intermediate;
+    }
+
+    return state;
+}
diff --git a/src/qt/bitcoinaddressvalidator.h b/src/qt/bitcoinaddressvalidator.h
new file mode 100644 (file)
index 0000000..73f6ea1
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef BITCOINADDRESSVALIDATOR_H
+#define BITCOINADDRESSVALIDATOR_H
+
+#include <QRegExpValidator>
+
+/* Base48 entry widget validator.
+   Corrects near-miss characters and refuses characters that are no part of base48.
+ */
+class BitcoinAddressValidator : public QValidator
+{
+    Q_OBJECT
+public:
+    explicit BitcoinAddressValidator(QObject *parent = 0);
+
+    State validate(QString &input, int &pos) const;
+
+    static const int MaxAddressLength = 34;
+signals:
+
+public slots:
+
+};
+
+#endif // BITCOINADDRESSVALIDATOR_H
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp
new file mode 100644 (file)
index 0000000..f1edc62
--- /dev/null
@@ -0,0 +1,178 @@
+#include "bitcoinamountfield.h"
+#include "qvalidatedlineedit.h"
+#include "qvaluecombobox.h"
+#include "bitcoinunits.h"
+
+#include <QLabel>
+#include <QLineEdit>
+#include <QRegExpValidator>
+#include <QHBoxLayout>
+#include <QKeyEvent>
+#include <QComboBox>
+
+BitcoinAmountField::BitcoinAmountField(QWidget *parent):
+        QWidget(parent), amount(0), decimals(0), currentUnit(-1)
+{
+    amount = new QValidatedLineEdit(this);
+    amount->setValidator(new QRegExpValidator(QRegExp("[0-9]*"), this));
+    amount->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
+    amount->installEventFilter(this);
+    amount->setMaximumWidth(75);
+    decimals = new QValidatedLineEdit(this);
+    decimals->setValidator(new QRegExpValidator(QRegExp("[0-9]+"), this));
+    decimals->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
+    decimals->setMaximumWidth(75);
+
+    QHBoxLayout *layout = new QHBoxLayout(this);
+    layout->setSpacing(0);
+    layout->addWidget(amount);
+    layout->addWidget(new QLabel(QString("<b>.</b>")));
+    layout->addWidget(decimals);
+    unit = new QValueComboBox(this);
+    unit->setModel(new BitcoinUnits(this));
+    layout->addWidget(unit);
+    layout->addStretch(1);
+    layout->setContentsMargins(0,0,0,0);
+
+    setLayout(layout);
+
+    setFocusPolicy(Qt::TabFocus);
+    setFocusProxy(amount);
+
+    // If one if the widgets changes, the combined content changes as well
+    connect(amount, SIGNAL(textChanged(QString)), this, SIGNAL(textChanged()));
+    connect(decimals, SIGNAL(textChanged(QString)), this, SIGNAL(textChanged()));
+    connect(unit, SIGNAL(currentIndexChanged(int)), this, SLOT(unitChanged(int)));
+
+    // Set default based on configuration
+    unitChanged(unit->currentIndex());
+}
+
+void BitcoinAmountField::setText(const QString &text)
+{
+    const QStringList parts = text.split(QString("."));
+    if(parts.size() == 2)
+    {
+        amount->setText(parts[0]);
+        decimals->setText(parts[1]);
+    }
+    else
+    {
+        amount->setText(QString());
+        decimals->setText(QString());
+    }
+}
+
+void BitcoinAmountField::clear()
+{
+    amount->clear();
+    decimals->clear();
+    unit->setCurrentIndex(0);
+}
+
+bool BitcoinAmountField::validate()
+{
+    bool valid = true;
+    if(decimals->text().isEmpty())
+    {
+        decimals->setValid(false);
+        valid = false;
+    }
+    if(!BitcoinUnits::parse(currentUnit, text(), 0))
+    {
+        setValid(false);
+        valid = false;
+    }
+
+    return valid;
+}
+
+void BitcoinAmountField::setValid(bool valid)
+{
+    amount->setValid(valid);
+    decimals->setValid(valid);
+}
+
+QString BitcoinAmountField::text() const
+{
+    if(decimals->text().isEmpty() && amount->text().isEmpty())
+    {
+        return QString();
+    }
+    return amount->text() + QString(".") + decimals->text();
+}
+
+// Intercept '.' and ',' keys, if pressed focus a specified widget
+bool BitcoinAmountField::eventFilter(QObject *object, QEvent *event)
+{
+    Q_UNUSED(object);
+    if(event->type() == QEvent::KeyPress)
+    {
+        QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
+        if(keyEvent->key() == Qt::Key_Period || keyEvent->key() == Qt::Key_Comma)
+        {
+            decimals->setFocus();
+            decimals->selectAll();
+        }
+    }
+    return false;
+}
+
+QWidget *BitcoinAmountField::setupTabChain(QWidget *prev)
+{
+    QWidget::setTabOrder(prev, amount);
+    QWidget::setTabOrder(amount, decimals);
+    return decimals;
+}
+
+qint64 BitcoinAmountField::value(bool *valid_out) const
+{
+    qint64 val_out = 0;
+    bool valid = BitcoinUnits::parse(currentUnit, text(), &val_out);
+    if(valid_out)
+    {
+        *valid_out = valid;
+    }
+    return val_out;
+}
+
+void BitcoinAmountField::setValue(qint64 value)
+{
+    setText(BitcoinUnits::format(currentUnit, value));
+}
+
+void BitcoinAmountField::unitChanged(int idx)
+{
+    // Use description tooltip for current unit for the combobox
+    unit->setToolTip(unit->itemData(idx, Qt::ToolTipRole).toString());
+
+    // Determine new unit ID
+    int newUnit = unit->itemData(idx, BitcoinUnits::UnitRole).toInt();
+
+    // Parse current value and convert to new unit
+    bool valid = false;
+    qint64 currentValue = value(&valid);
+
+    currentUnit = newUnit;
+
+    // Set max length after retrieving the value, to prevent truncation
+    amount->setMaxLength(BitcoinUnits::amountDigits(currentUnit));
+    decimals->setMaxLength(BitcoinUnits::decimals(currentUnit));
+
+    if(valid)
+    {
+        // If value was valid, re-place it in the widget with the new unit
+        setValue(currentValue);
+    }
+    else
+    {
+        // If current value is invalid, just clear field
+        setText("");
+    }
+    setValid(true);
+}
+
+void BitcoinAmountField::setDisplayUnit(int newUnit)
+{
+    unit->setValue(newUnit);
+}
diff --git a/src/qt/bitcoinamountfield.h b/src/qt/bitcoinamountfield.h
new file mode 100644 (file)
index 0000000..cc92159
--- /dev/null
@@ -0,0 +1,59 @@
+#ifndef BITCOINFIELD_H
+#define BITCOINFIELD_H
+
+#include <QWidget>
+
+QT_BEGIN_NAMESPACE
+class QValidatedLineEdit;
+class QValueComboBox;
+QT_END_NAMESPACE
+
+// Coin amount entry widget with separate parts for whole
+// coins and decimals.
+class BitcoinAmountField: public QWidget
+{
+    Q_OBJECT
+    Q_PROPERTY(qint64 value READ value WRITE setValue NOTIFY textChanged USER true);
+public:
+    explicit BitcoinAmountField(QWidget *parent = 0);
+
+    qint64 value(bool *valid=0) const;
+    void setValue(qint64 value);
+
+    // Mark current valid as invalid in UI
+    void setValid(bool valid);
+    bool validate();
+
+    // Change current unit
+    void setDisplayUnit(int unit);
+
+    // Make field empty and ready for new input
+    void clear();
+
+    // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
+    // Hence we have to set it up manually
+    QWidget *setupTabChain(QWidget *prev);
+
+signals:
+    void textChanged();
+
+protected:
+    // Intercept '.' and ',' keys, if pressed focus a specified widget
+    bool eventFilter(QObject *object, QEvent *event);
+
+private:
+    QValidatedLineEdit *amount;
+    QValidatedLineEdit *decimals;
+    QValueComboBox *unit;
+    int currentUnit;
+
+    void setText(const QString &text);
+    QString text() const;
+
+private slots:
+    void unitChanged(int idx);
+
+};
+
+
+#endif // BITCOINFIELD_H
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
new file mode 100644 (file)
index 0000000..be10b97
--- /dev/null
@@ -0,0 +1,608 @@
+/*
+ * Qt4 bitcoin GUI.
+ *
+ * W.J. van der Laan 2011
+ */
+#include "bitcoingui.h"
+#include "transactiontablemodel.h"
+#include "addressbookpage.h"
+#include "sendcoinsdialog.h"
+#include "optionsdialog.h"
+#include "aboutdialog.h"
+#include "clientmodel.h"
+#include "walletmodel.h"
+#include "editaddressdialog.h"
+#include "optionsmodel.h"
+#include "transactiondescdialog.h"
+#include "addresstablemodel.h"
+#include "transactionview.h"
+#include "overviewpage.h"
+#include "bitcoinunits.h"
+#include "guiconstants.h"
+#include "askpassphrasedialog.h"
+#include "notificator.h"
+
+#include <QApplication>
+#include <QMainWindow>
+#include <QMenuBar>
+#include <QMenu>
+#include <QIcon>
+#include <QTabWidget>
+#include <QVBoxLayout>
+#include <QToolBar>
+#include <QStatusBar>
+#include <QLabel>
+#include <QLineEdit>
+#include <QPushButton>
+#include <QLocale>
+#include <QMessageBox>
+#include <QProgressBar>
+#include <QStackedWidget>
+#include <QDateTime>
+#include <QMovie>
+
+#include <QDragEnterEvent>
+#include <QUrl>
+
+#include <iostream>
+
+BitcoinGUI::BitcoinGUI(QWidget *parent):
+    QMainWindow(parent),
+    clientModel(0),
+    walletModel(0),
+    encryptWalletAction(0),
+    changePassphraseAction(0),
+    trayIcon(0),
+    notificator(0)
+{
+    resize(850, 550);
+    setWindowTitle(tr("Bitcoin Wallet"));
+    setWindowIcon(QIcon(":icons/bitcoin"));
+    // Accept D&D of URIs
+    setAcceptDrops(true);
+
+    createActions();
+
+    // Menus
+    QMenu *file = menuBar()->addMenu(tr("&File"));
+    file->addAction(sendCoinsAction);
+    file->addAction(receiveCoinsAction);
+    file->addSeparator();
+    file->addAction(quitAction);
+    
+    QMenu *settings = menuBar()->addMenu(tr("&Settings"));
+    settings->addAction(encryptWalletAction);
+    settings->addAction(changePassphraseAction);
+    settings->addSeparator();
+    settings->addAction(optionsAction);
+
+    QMenu *help = menuBar()->addMenu(tr("&Help"));
+    help->addAction(aboutAction);
+    
+    // Toolbars
+    QToolBar *toolbar = addToolBar(tr("Tabs toolbar"));
+    toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
+    toolbar->addAction(overviewAction);
+    toolbar->addAction(sendCoinsAction);
+    toolbar->addAction(receiveCoinsAction);
+    toolbar->addAction(historyAction);
+    toolbar->addAction(addressBookAction);
+
+    QToolBar *toolbar2 = addToolBar(tr("Actions toolbar"));
+    toolbar2->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
+    toolbar2->addAction(exportAction);
+
+    // Create tabs
+    overviewPage = new OverviewPage();
+
+    transactionsPage = new QWidget(this);
+    QVBoxLayout *vbox = new QVBoxLayout();
+    transactionView = new TransactionView(this);
+    vbox->addWidget(transactionView);
+    transactionsPage->setLayout(vbox);
+
+    addressBookPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::SendingTab);
+
+    receiveCoinsPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::ReceivingTab);
+
+    sendCoinsPage = new SendCoinsDialog(this);
+
+    centralWidget = new QStackedWidget(this);
+    centralWidget->addWidget(overviewPage);
+    centralWidget->addWidget(transactionsPage);
+    centralWidget->addWidget(addressBookPage);
+    centralWidget->addWidget(receiveCoinsPage);
+    centralWidget->addWidget(sendCoinsPage);
+    setCentralWidget(centralWidget);
+
+    // Create status bar
+    statusBar();
+
+    // Status bar notification icons
+    QFrame *frameBlocks = new QFrame();
+    //frameBlocks->setFrameStyle(QFrame::Panel | QFrame::Sunken);
+    frameBlocks->setContentsMargins(0,0,0,0);
+    frameBlocks->setMinimumWidth(56);
+    frameBlocks->setMaximumWidth(56);
+    QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks);
+    frameBlocksLayout->setContentsMargins(3,0,3,0);
+    frameBlocksLayout->setSpacing(3);
+    labelEncryptionIcon = new QLabel();
+    labelConnectionsIcon = new QLabel();
+    labelBlocksIcon = new QLabel();
+    frameBlocksLayout->addStretch();
+    frameBlocksLayout->addWidget(labelEncryptionIcon);
+    frameBlocksLayout->addStretch();
+    frameBlocksLayout->addWidget(labelConnectionsIcon);
+    frameBlocksLayout->addStretch();
+    frameBlocksLayout->addWidget(labelBlocksIcon);
+    frameBlocksLayout->addStretch();
+
+    // Progress bar for blocks download
+    progressBarLabel = new QLabel(tr("Synchronizing with network..."));
+    progressBarLabel->setVisible(false);
+    progressBar = new QProgressBar();
+    progressBar->setToolTip(tr("Block chain synchronization in progress"));
+    progressBar->setVisible(false);
+
+    statusBar()->addWidget(progressBarLabel);
+    statusBar()->addWidget(progressBar);
+    statusBar()->addPermanentWidget(frameBlocks);
+
+    createTrayIcon();
+
+    syncIconMovie = new QMovie(":/movies/update_spinner", "mng", this);
+
+    // Clicking on a transaction on the overview page simply sends you to transaction history page
+    connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), this, SLOT(gotoHistoryPage()));
+
+    // Doubleclicking on a transaction on the transaction history page shows details
+    connect(transactionView, SIGNAL(doubleClicked(QModelIndex)), transactionView, SLOT(showDetails()));
+
+    gotoOverviewPage();
+}
+
+void BitcoinGUI::createActions()
+{
+    QActionGroup *tabGroup = new QActionGroup(this);
+
+    overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Overview"), this);
+    overviewAction->setToolTip(tr("Show general overview of wallet"));
+    overviewAction->setCheckable(true);
+    tabGroup->addAction(overviewAction);
+
+    historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);
+    historyAction->setToolTip(tr("Browse transaction history"));
+    historyAction->setCheckable(true);
+    tabGroup->addAction(historyAction);
+
+    addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Address Book"), this);
+    addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));
+    addressBookAction->setCheckable(true);
+    tabGroup->addAction(addressBookAction);
+
+    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive coins"), this);
+    receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));
+    receiveCoinsAction->setCheckable(true);
+    tabGroup->addAction(receiveCoinsAction);
+
+    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send coins"), this);
+    sendCoinsAction->setToolTip(tr("Send coins to a bitcoin address"));
+    sendCoinsAction->setCheckable(true);
+    tabGroup->addAction(sendCoinsAction);
+
+    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));
+    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));
+    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));
+    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));
+    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));
+
+    quitAction = new QAction(QIcon(":/icons/quit"), tr("&Exit"), this);
+    quitAction->setToolTip(tr("Quit application"));
+    aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About"), this);
+    aboutAction->setToolTip(tr("Show information about Bitcoin"));
+    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);
+    optionsAction->setToolTip(tr("Modify configuration options for bitcoin"));
+    openBitcoinAction = new QAction(QIcon(":/icons/bitcoin"), tr("Open &Bitcoin"), this);
+    openBitcoinAction->setToolTip(tr("Show the Bitcoin window"));
+    exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);
+    exportAction->setToolTip(tr("Export the current view to a file"));
+    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet"), this);
+    encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));
+    encryptWalletAction->setCheckable(true);
+    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase"), this);
+    changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));
+
+    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
+    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));
+    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));
+    connect(openBitcoinAction, SIGNAL(triggered()), this, SLOT(showNormal()));
+    connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));
+    connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));
+}
+
+void BitcoinGUI::setClientModel(ClientModel *clientModel)
+{
+    this->clientModel = clientModel;
+
+    if(clientModel->isTestNet())
+    {
+        QString title_testnet = windowTitle() + QString(" ") + tr("[testnet]");
+        setWindowTitle(title_testnet);
+        setWindowIcon(QIcon(":icons/bitcoin_testnet"));
+        if(trayIcon)
+        {
+            trayIcon->setToolTip(title_testnet);
+            trayIcon->setIcon(QIcon(":/icons/toolbar_testnet"));
+        }
+    }
+
+    // Keep up to date with client
+    setNumConnections(clientModel->getNumConnections());
+    connect(clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
+
+    setNumBlocks(clientModel->getNumBlocks());
+    connect(clientModel, SIGNAL(numBlocksChanged(int)), this, SLOT(setNumBlocks(int)));
+
+    // Report errors from network/worker thread
+    connect(clientModel, SIGNAL(error(QString,QString)), this, SLOT(error(QString,QString)));
+}
+
+void BitcoinGUI::setWalletModel(WalletModel *walletModel)
+{
+    this->walletModel = walletModel;
+
+    // Report errors from wallet thread
+    connect(walletModel, SIGNAL(error(QString,QString)), this, SLOT(error(QString,QString)));
+
+    // Put transaction list in tabs
+    transactionView->setModel(walletModel);
+
+    overviewPage->setModel(walletModel);
+    addressBookPage->setModel(walletModel->getAddressTableModel());
+    receiveCoinsPage->setModel(walletModel->getAddressTableModel());
+    sendCoinsPage->setModel(walletModel);
+
+    setEncryptionStatus(walletModel->getEncryptionStatus());
+    connect(walletModel, SIGNAL(encryptionStatusChanged(int)), this, SLOT(setEncryptionStatus(int)));
+
+    // Balloon popup for new transaction
+    connect(walletModel->getTransactionTableModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
+            this, SLOT(incomingTransaction(QModelIndex,int,int)));
+
+    // Ask for passphrase if needed
+    connect(walletModel, SIGNAL(requireUnlock()), this, SLOT(unlockWallet()));
+}
+
+void BitcoinGUI::createTrayIcon()
+{
+    QMenu *trayIconMenu = new QMenu(this);
+    trayIconMenu->addAction(openBitcoinAction);
+    trayIconMenu->addAction(optionsAction);
+    trayIconMenu->addSeparator();
+    trayIconMenu->addAction(quitAction);
+
+    trayIcon = new QSystemTrayIcon(this);
+    trayIcon->setContextMenu(trayIconMenu);
+    trayIcon->setToolTip("Bitcoin client");
+    trayIcon->setIcon(QIcon(":/icons/toolbar"));
+    connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
+            this, SLOT(trayIconActivated(QSystemTrayIcon::ActivationReason)));
+    trayIcon->show();
+
+    notificator = new Notificator(tr("bitcoin-qt"), trayIcon);
+}
+
+void BitcoinGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason)
+{
+    if(reason == QSystemTrayIcon::Trigger)
+    {
+        // Click on system tray icon triggers "open bitcoin"
+        openBitcoinAction->trigger();
+    }
+
+}
+
+void BitcoinGUI::optionsClicked()
+{
+    OptionsDialog dlg;
+    dlg.setModel(clientModel->getOptionsModel());
+    dlg.exec();
+}
+
+void BitcoinGUI::aboutClicked()
+{
+    AboutDialog dlg;
+    dlg.setModel(clientModel);
+    dlg.exec();
+}
+
+void BitcoinGUI::setNumConnections(int count)
+{
+    QString icon;
+    switch(count)
+    {
+    case 0: icon = ":/icons/connect_0"; break;
+    case 1: case 2: case 3: icon = ":/icons/connect_1"; break;
+    case 4: case 5: case 6: icon = ":/icons/connect_2"; break;
+    case 7: case 8: case 9: icon = ":/icons/connect_3"; break;
+    default: icon = ":/icons/connect_4"; break;
+    }
+    labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
+    labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Bitcoin network", "", count));
+}
+
+void BitcoinGUI::setNumBlocks(int count)
+{
+    int initTotal = clientModel->getNumBlocksAtStartup();
+    int total = clientModel->getNumBlocksOfPeers();
+    QString tooltip;
+
+    if(count < total)
+    {
+        progressBarLabel->setVisible(true);
+        progressBar->setVisible(true);
+        progressBar->setMaximum(total - initTotal);
+        progressBar->setValue(count - initTotal);
+        tooltip = tr("Downloaded %1 of %2 blocks of transaction history.").arg(count).arg(total);
+    }
+    else
+    {
+        progressBarLabel->setVisible(false);
+        progressBar->setVisible(false);
+        tooltip = tr("Downloaded %1 blocks of transaction history.").arg(count);
+    }
+
+    QDateTime now = QDateTime::currentDateTime();
+    QDateTime lastBlockDate = clientModel->getLastBlockDate();
+    int secs = lastBlockDate.secsTo(now);
+    QString text;
+
+    // Represent time from last generated block in human readable text
+    if(secs < 60)
+    {
+        text = tr("%n second(s) ago","",secs);
+    }
+    else if(secs < 60*60)
+    {
+        text = tr("%n minute(s) ago","",secs/60);
+    }
+    else if(secs < 24*60*60)
+    {
+        text = tr("%n hour(s) ago","",secs/(60*60));
+    }
+    else
+    {
+        text = tr("%n day(s) ago","",secs/(60*60*24));
+    }
+
+    // Set icon state: spinning if catching up, tick otherwise
+    if(secs < 30*60)
+    {
+        tooltip = tr("Up to date") + QString("\n") + tooltip;
+        labelBlocksIcon->setPixmap(QIcon(":/icons/synced").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
+    }
+    else
+    {
+        tooltip = tr("Catching up...") + QString("\n") + tooltip;
+        labelBlocksIcon->setMovie(syncIconMovie);
+        syncIconMovie->start();
+    }
+
+    tooltip += QString("\n");
+    tooltip += tr("Last received block was generated %1.").arg(text);
+
+    labelBlocksIcon->setToolTip(tooltip);
+    progressBarLabel->setToolTip(tooltip);
+    progressBar->setToolTip(tooltip);
+}
+
+void BitcoinGUI::error(const QString &title, const QString &message)
+{
+    // Report errors from network/worker thread
+    notificator->notify(Notificator::Critical, title, message);
+}
+
+void BitcoinGUI::changeEvent(QEvent *e)
+{
+    if (e->type() == QEvent::WindowStateChange)
+    {
+        if(clientModel->getOptionsModel()->getMinimizeToTray())
+        {
+            if (isMinimized())
+            {
+                hide();
+                e->ignore();
+            }
+            else
+            {
+                show();
+                e->accept();
+            }
+        }
+    }
+    QMainWindow::changeEvent(e);
+}
+
+void BitcoinGUI::closeEvent(QCloseEvent *event)
+{
+    if(!clientModel->getOptionsModel()->getMinimizeToTray() &&
+       !clientModel->getOptionsModel()->getMinimizeOnClose())
+    {
+        qApp->quit();
+    }
+    QMainWindow::closeEvent(event);
+}
+
+void BitcoinGUI::askFee(qint64 nFeeRequired, bool *payFee)
+{
+    QString strMessage =
+        tr("This transaction is over the size limit.  You can still send it for a fee of %1, "
+          "which goes to the nodes that process your transaction and helps to support the network.  "
+          "Do you want to pay the fee?").arg(
+                BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nFeeRequired));
+    QMessageBox::StandardButton retval = QMessageBox::question(
+          this, tr("Sending..."), strMessage,
+          QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Yes);
+    *payFee = (retval == QMessageBox::Yes);
+}
+
+void BitcoinGUI::incomingTransaction(const QModelIndex & parent, int start, int end)
+{
+    TransactionTableModel *ttm = walletModel->getTransactionTableModel();
+    qint64 amount = ttm->index(start, TransactionTableModel::Amount, parent)
+                    .data(Qt::EditRole).toULongLong();
+    if(!clientModel->inInitialBlockDownload())
+    {
+        // On new transaction, make an info balloon
+        // Unless the initial block download is in progress, to prevent balloon-spam
+        QString date = ttm->index(start, TransactionTableModel::Date, parent)
+                        .data().toString();
+        QString type = ttm->index(start, TransactionTableModel::Type, parent)
+                        .data().toString();
+        QString address = ttm->index(start, TransactionTableModel::ToAddress, parent)
+                        .data().toString();
+        QIcon icon = qvariant_cast<QIcon>(ttm->index(start,
+                            TransactionTableModel::ToAddress, parent)
+                        .data(Qt::DecorationRole));
+
+        notificator->notify(Notificator::Information,
+                            (amount)<0 ? tr("Sent transaction") :
+                                         tr("Incoming transaction"),
+                              tr("Date: %1\n"
+                                 "Amount: %2\n"
+                                 "Type: %3\n"
+                                 "Address: %4\n")
+                              .arg(date)
+                              .arg(BitcoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), amount, true))
+                              .arg(type)
+                              .arg(address), icon);
+    }
+}
+
+void BitcoinGUI::gotoOverviewPage()
+{
+    overviewAction->setChecked(true);
+    centralWidget->setCurrentWidget(overviewPage);
+
+    exportAction->setEnabled(false);
+    disconnect(exportAction, SIGNAL(triggered()), 0, 0);
+}
+
+void BitcoinGUI::gotoHistoryPage()
+{
+    historyAction->setChecked(true);
+    centralWidget->setCurrentWidget(transactionsPage);
+
+    exportAction->setEnabled(true);
+    disconnect(exportAction, SIGNAL(triggered()), 0, 0);
+    connect(exportAction, SIGNAL(triggered()), transactionView, SLOT(exportClicked()));
+}
+
+void BitcoinGUI::gotoAddressBookPage()
+{
+    addressBookAction->setChecked(true);
+    centralWidget->setCurrentWidget(addressBookPage);
+
+    exportAction->setEnabled(true);
+    disconnect(exportAction, SIGNAL(triggered()), 0, 0);
+    connect(exportAction, SIGNAL(triggered()), addressBookPage, SLOT(exportClicked()));
+}
+
+void BitcoinGUI::gotoReceiveCoinsPage()
+{
+    receiveCoinsAction->setChecked(true);
+    centralWidget->setCurrentWidget(receiveCoinsPage);
+
+    exportAction->setEnabled(true);
+    disconnect(exportAction, SIGNAL(triggered()), 0, 0);
+    connect(exportAction, SIGNAL(triggered()), receiveCoinsPage, SLOT(exportClicked()));
+}
+
+void BitcoinGUI::gotoSendCoinsPage()
+{
+    sendCoinsAction->setChecked(true);
+    centralWidget->setCurrentWidget(sendCoinsPage);
+
+    exportAction->setEnabled(false);
+    disconnect(exportAction, SIGNAL(triggered()), 0, 0);
+}
+
+void BitcoinGUI::dragEnterEvent(QDragEnterEvent *event)
+{
+    // Accept only URLs
+    if(event->mimeData()->hasUrls())
+        event->acceptProposedAction();
+}
+
+void BitcoinGUI::dropEvent(QDropEvent *event)
+{
+    if(event->mimeData()->hasUrls())
+    {
+        gotoSendCoinsPage();
+        QList<QUrl> urls = event->mimeData()->urls();
+        foreach(const QUrl &url, urls)
+        {
+            sendCoinsPage->handleURL(&url);
+        }
+    }
+
+    event->acceptProposedAction();
+}
+
+void BitcoinGUI::setEncryptionStatus(int status)
+{
+    switch(status)
+    {
+    case WalletModel::Unencrypted:
+        labelEncryptionIcon->hide();
+        encryptWalletAction->setChecked(false);
+        changePassphraseAction->setEnabled(false);
+        encryptWalletAction->setEnabled(true);
+        break;
+    case WalletModel::Unlocked:
+        labelEncryptionIcon->show();
+        labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_open").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
+        labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>"));
+        encryptWalletAction->setChecked(true);
+        changePassphraseAction->setEnabled(true);
+        encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported
+        break;
+    case WalletModel::Locked:
+        labelEncryptionIcon->show();
+        labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_closed").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
+        labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>locked</b>"));
+        encryptWalletAction->setChecked(true);
+        changePassphraseAction->setEnabled(true);
+        encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported
+        break;
+    }
+}
+
+void BitcoinGUI::encryptWallet(bool status)
+{
+    AskPassphraseDialog dlg(status ? AskPassphraseDialog::Encrypt:
+                                     AskPassphraseDialog::Decrypt, this);
+    dlg.setModel(walletModel);
+    dlg.exec();
+
+    setEncryptionStatus(walletModel->getEncryptionStatus());
+}
+
+void BitcoinGUI::changePassphrase()
+{
+    AskPassphraseDialog dlg(AskPassphraseDialog::ChangePass, this);
+    dlg.setModel(walletModel);
+    dlg.exec();
+}
+
+void BitcoinGUI::unlockWallet()
+{
+    // Unlock wallet when requested by wallet model
+    if(walletModel->getEncryptionStatus() == WalletModel::Locked)
+    {
+        AskPassphraseDialog dlg(AskPassphraseDialog::Unlock, this);
+        dlg.setModel(walletModel);
+        dlg.exec();
+    }
+}
diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h
new file mode 100644 (file)
index 0000000..5966135
--- /dev/null
@@ -0,0 +1,120 @@
+#ifndef BITCOINGUI_H
+#define BITCOINGUI_H
+
+#include <QMainWindow>
+#include <QSystemTrayIcon>
+
+class TransactionTableModel;
+class ClientModel;
+class WalletModel;
+class TransactionView;
+class OverviewPage;
+class AddressBookPage;
+class SendCoinsDialog;
+class Notificator;
+
+QT_BEGIN_NAMESPACE
+class QLabel;
+class QLineEdit;
+class QTableView;
+class QAbstractItemModel;
+class QModelIndex;
+class QProgressBar;
+class QStackedWidget;
+class QUrl;
+QT_END_NAMESPACE
+
+class BitcoinGUI : public QMainWindow
+{
+    Q_OBJECT
+public:
+    explicit BitcoinGUI(QWidget *parent = 0);
+    void setClientModel(ClientModel *clientModel);
+    void setWalletModel(WalletModel *walletModel);
+    
+    /* Transaction table tab indices */
+    enum {
+        AllTransactions = 0,
+        SentReceived = 1,
+        Sent = 2,
+        Received = 3
+    } TabIndex;
+
+protected:
+    void changeEvent(QEvent *e);
+    void closeEvent(QCloseEvent *event);
+    void dragEnterEvent(QDragEnterEvent *event);
+    void dropEvent(QDropEvent *event);
+
+private:
+    ClientModel *clientModel;
+    WalletModel *walletModel;
+
+    QStackedWidget *centralWidget;
+
+    OverviewPage *overviewPage;
+    QWidget *transactionsPage;
+    AddressBookPage *addressBookPage;
+    AddressBookPage *receiveCoinsPage;
+    SendCoinsDialog *sendCoinsPage;
+
+    QLabel *labelEncryptionIcon;
+    QLabel *labelConnectionsIcon;
+    QLabel *labelBlocksIcon;
+    QLabel *progressBarLabel;
+    QProgressBar *progressBar;
+
+    QAction *overviewAction;
+    QAction *historyAction;
+    QAction *quitAction;
+    QAction *sendCoinsAction;
+    QAction *addressBookAction;
+    QAction *aboutAction;
+    QAction *receiveCoinsAction;
+    QAction *optionsAction;
+    QAction *openBitcoinAction;
+    QAction *exportAction;
+    QAction *encryptWalletAction;
+    QAction *changePassphraseAction;
+
+    QSystemTrayIcon *trayIcon;
+    Notificator *notificator;
+    TransactionView *transactionView;
+
+    QMovie *syncIconMovie;
+
+    void createActions();
+    QWidget *createTabs();
+    void createTrayIcon();
+
+public slots:
+    void setNumConnections(int count);
+    void setNumBlocks(int count);
+    void setEncryptionStatus(int status);
+
+    void error(const QString &title, const QString &message);
+    /* It is currently not possible to pass a return value to another thread through
+       BlockingQueuedConnection, so use an indirected pointer.
+       http://bugreports.qt.nokia.com/browse/QTBUG-10440
+    */
+    void askFee(qint64 nFeeRequired, bool *payFee);
+
+private slots:
+    // UI pages
+    void gotoOverviewPage();
+    void gotoHistoryPage();
+    void gotoAddressBookPage();
+    void gotoReceiveCoinsPage();
+    void gotoSendCoinsPage();
+
+    // Misc actions
+    void optionsClicked();
+    void aboutClicked();
+    void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
+    void incomingTransaction(const QModelIndex & parent, int start, int end);
+    void encryptWallet(bool status);
+    void changePassphrase();
+    void unlockWallet();
+};
+
+#endif
diff --git a/src/qt/bitcoinstrings.cpp b/src/qt/bitcoinstrings.cpp
new file mode 100644 (file)
index 0000000..45aadd4
--- /dev/null
@@ -0,0 +1,217 @@
+#include <QtGlobal>
+// Automatically generated by extract_strings.py
+static const char *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "Bitcoin version"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Usage:"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Send command to -server or bitcoind\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "List commands\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Get help for a command\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Options:\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Specify configuration file (default: bitcoin.conf)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Specify pid file (default: bitcoind.pid)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Generate coins\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Don't generate coins\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Start minimized\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Specify data directory\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Specify connection timeout (in milliseconds)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Connect through socks4 proxy\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Allow DNS lookups for addnode and connect\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Add a node to connect to\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Connect only to the specified node\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Don't accept connections from outside\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Don't attempt to use UPnP to map the listening port\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Attempt to use UPnP to map the listening port\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Fee per KB to add to transactions you send\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Accept command line and JSON-RPC commands\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Run in the background as a daemon and accept commands\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Use the test network\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Username for JSON-RPC connections\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Password for JSON-RPC connections\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Listen for JSON-RPC connections on <port> (default: 8332)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Allow JSON-RPC connections from specified IP address\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Send commands to node running on <ip> (default: 127.0.0.1)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Set key pool size to <n> (default: 100)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Rescan the block chain for missing wallet transactions\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"\n"
+"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Use OpenSSL (https) for JSON-RPC connections\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Server certificate file (default: server.cert)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Server private key (default: server.pem)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:"
+"@STRENGTH)\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "This help message\n"),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Cannot obtain a lock on data directory %s.  Bitcoin is probably already "
+"running."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Loading addresses..."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Error loading addr.dat      \n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Loading block index..."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Error loading blkindex.dat      \n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Loading wallet..."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet corrupted      \n"),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Error loading wallet.dat: Wallet requires newer version of Bitcoin      \n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat      \n"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Rescanning..."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Done loading"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -proxy address"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -paytxfee=<amount>"),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Warning: -paytxfee is set very high.  This is the transaction fee you will "
+"pay if you send a transaction."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Error: CreateThread(StartNode) failed"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Warning: Disk space is low  "),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Unable to bind to port %d on this computer.  Bitcoin is probably already "
+"running."),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"This transaction is over the size limit.  You can still send it for a fee of "
+"%s, which goes to the nodes that process your transaction and helps to "
+"support the network.  Do you want to pay the fee?"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Enter the current passphrase to the wallet."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Passphrase"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Please supply the current wallet decryption passphrase."),
+QT_TRANSLATE_NOOP("bitcoin-core", "The passphrase entered for the wallet decryption was incorrect."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Status"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Date"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Description"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Debit"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Credit"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Open for %d blocks"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Open until %s"),
+QT_TRANSLATE_NOOP("bitcoin-core", "%d/offline?"),
+QT_TRANSLATE_NOOP("bitcoin-core", "%d/unconfirmed"),
+QT_TRANSLATE_NOOP("bitcoin-core", "%d confirmations"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Generated"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Generated (%s matures in %d more blocks)"),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Generated - Warning: This block was not received by any other nodes and will "
+"probably not be accepted!"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Generated (not accepted)"),
+QT_TRANSLATE_NOOP("bitcoin-core", "From: "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Received with: "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Payment to yourself"),
+QT_TRANSLATE_NOOP("bitcoin-core", "To: "),
+QT_TRANSLATE_NOOP("bitcoin-core", "    Generating"),
+QT_TRANSLATE_NOOP("bitcoin-core", "(not connected)"),
+QT_TRANSLATE_NOOP("bitcoin-core", "     %d connections     %d blocks     %d transactions"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Wallet already encrypted."),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Enter the new passphrase to the wallet.\n"
+"Please use a passphrase of 10 or more random characters, or eight or more "
+"words."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Error: The supplied passphrase was too short."),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"WARNING: If you encrypt your wallet and lose your passphrase, you will LOSE "
+"ALL OF YOUR BITCOINS!\n"
+"Are you sure you wish to encrypt your wallet?"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Please re-enter your new wallet passphrase."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Error: the supplied passphrases didn't match."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Wallet encryption failed."),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Wallet Encrypted.\n"
+"Remember that encrypting your wallet cannot fully protect your bitcoins from "
+"being stolen by malware infecting your computer."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Wallet is unencrypted, please encrypt it first."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Enter the new passphrase for the wallet."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Re-enter the new passphrase for the wallet."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Wallet Passphrase Changed."),
+QT_TRANSLATE_NOOP("bitcoin-core", "New Receiving Address"),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"You should use a new address for each payment you receive.\n"
+"\n"
+"Label"),
+QT_TRANSLATE_NOOP("bitcoin-core", "<b>Status:</b> "),
+QT_TRANSLATE_NOOP("bitcoin-core", ", has not been successfully broadcast yet"),
+QT_TRANSLATE_NOOP("bitcoin-core", ", broadcast through %d node"),
+QT_TRANSLATE_NOOP("bitcoin-core", ", broadcast through %d nodes"),
+QT_TRANSLATE_NOOP("bitcoin-core", "<b>Date:</b> "),
+QT_TRANSLATE_NOOP("bitcoin-core", "<b>Source:</b> Generated<br>"),
+QT_TRANSLATE_NOOP("bitcoin-core", "<b>From:</b> "),
+QT_TRANSLATE_NOOP("bitcoin-core", "unknown"),
+QT_TRANSLATE_NOOP("bitcoin-core", "<b>To:</b> "),
+QT_TRANSLATE_NOOP("bitcoin-core", " (yours, label: "),
+QT_TRANSLATE_NOOP("bitcoin-core", " (yours)"),
+QT_TRANSLATE_NOOP("bitcoin-core", "<b>Credit:</b> "),
+QT_TRANSLATE_NOOP("bitcoin-core", "(%s matures in %d more blocks)"),
+QT_TRANSLATE_NOOP("bitcoin-core", "(not accepted)"),
+QT_TRANSLATE_NOOP("bitcoin-core", "<b>Debit:</b> "),
+QT_TRANSLATE_NOOP("bitcoin-core", "<b>Transaction fee:</b> "),
+QT_TRANSLATE_NOOP("bitcoin-core", "<b>Net amount:</b> "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Message:"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Comment:"),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Generated coins must wait 120 blocks before they can be spent.  When you "
+"generated this block, it was broadcast to the network to be added to the "
+"block chain.  If it fails to get into the chain, it will change to \"not "
+"accepted\" and not be spendable.  This may occasionally happen if another "
+"node generates a block within a few seconds of yours."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Cannot write autostart/bitcoin.desktop file"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Main"),
+QT_TRANSLATE_NOOP("bitcoin-core", "&Start Bitcoin on window system startup"),
+QT_TRANSLATE_NOOP("bitcoin-core", "&Minimize on close"),
+QT_TRANSLATE_NOOP("bitcoin-core", "version %s"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Error in amount  "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Send Coins"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Amount exceeds your balance  "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Total exceeds your balance when the "),
+QT_TRANSLATE_NOOP("bitcoin-core", " transaction fee is included  "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Payment sent  "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Sending..."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Invalid address  "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Sending %s to %s"),
+QT_TRANSLATE_NOOP("bitcoin-core", "CANCELLED"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Cancelled"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Transfer cancelled  "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Error: "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Insufficient funds"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Connecting..."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Unable to connect"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Requesting public key..."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Received public key..."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Recipient is not accepting transactions sent by IP address"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Transfer was not accepted"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Invalid response received"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Creating transaction..."),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"This transaction requires a transaction fee of at least %s because of its "
+"amount, complexity, or use of recently received funds"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Transaction creation failed"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Transaction aborted"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Lost connection, transaction cancelled"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Sending payment..."),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"The transaction was rejected.  This might happen if some of the coins in "
+"your wallet were already spent, such as if you used a copy of wallet.dat and "
+"coins were spent in the copy but not marked as spent here."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Waiting for confirmation..."),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"The payment was sent, but the recipient was unable to verify it.\n"
+"The transaction is recorded and will credit to the recipient,\n"
+"but the comment information will be blank."),
+QT_TRANSLATE_NOOP("bitcoin-core", "Payment was sent, but an invalid response was received"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Payment completed"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Name"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Address"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Label"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Bitcoin Address"),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"This is one of your own addresses for receiving payments and cannot be "
+"entered in the address book.  "),
+QT_TRANSLATE_NOOP("bitcoin-core", "Edit Address"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Edit Address Label"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Add Address"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Bitcoin"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Bitcoin - Generating"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Bitcoin - (not connected)"),
+QT_TRANSLATE_NOOP("bitcoin-core", "&Open Bitcoin"),
+QT_TRANSLATE_NOOP("bitcoin-core", "&Send Bitcoins"),
+QT_TRANSLATE_NOOP("bitcoin-core", "O&ptions..."),
+QT_TRANSLATE_NOOP("bitcoin-core", "E&xit"),
+QT_TRANSLATE_NOOP("bitcoin-core", "Program has crashed and will terminate.  "),
+QT_TRANSLATE_NOOP("bitcoin-core", ""
+"Warning: Please check that your computer's date and time are correct.  If "
+"your clock is wrong Bitcoin will not work properly."),
+QT_TRANSLATE_NOOP("bitcoin-core", "beta"),
+};
\ No newline at end of file
diff --git a/src/qt/bitcoinunits.cpp b/src/qt/bitcoinunits.cpp
new file mode 100644 (file)
index 0000000..9a9a489
--- /dev/null
@@ -0,0 +1,181 @@
+#include "bitcoinunits.h"
+
+#include <QStringList>
+
+BitcoinUnits::BitcoinUnits(QObject *parent):
+        QAbstractListModel(parent),
+        unitlist(availableUnits())
+{
+}
+
+QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
+{
+    QList<BitcoinUnits::Unit> unitlist;
+    unitlist.append(BTC);
+    unitlist.append(mBTC);
+    unitlist.append(uBTC);
+    return unitlist;
+}
+
+bool BitcoinUnits::valid(int unit)
+{
+    switch(unit)
+    {
+    case BTC:
+    case mBTC:
+    case uBTC:
+        return true;
+    default:
+        return false;
+    }
+}
+
+QString BitcoinUnits::name(int unit)
+{
+    switch(unit)
+    {
+    case BTC: return QString("BTC");
+    case mBTC: return QString("mBTC");
+    case uBTC: return QString::fromUtf8("μBTC");
+    default: return QString("???");
+    }
+}
+
+QString BitcoinUnits::description(int unit)
+{
+    switch(unit)
+    {
+    case BTC: return QString("Bitcoins");
+    case mBTC: return QString("Milli-Bitcoins (1 / 1,000)");
+    case uBTC: return QString("Micro-Bitcoins (1 / 1,000,000)");
+    default: return QString("???");
+    }
+}
+
+qint64 BitcoinUnits::factor(int unit)
+{
+    switch(unit)
+    {
+    case BTC:  return 100000000;
+    case mBTC: return 100000;
+    case uBTC: return 100;
+    default:   return 100000000;
+    }
+}
+
+int BitcoinUnits::amountDigits(int unit)
+{
+    switch(unit)
+    {
+    case BTC: return 8; // 21,000,000 (# digits, without commas)
+    case mBTC: return 11; // 21,000,000,000
+    case uBTC: return 14; // 21,000,000,000,000
+    default: return 0;
+    }
+}
+
+int BitcoinUnits::decimals(int unit)
+{
+    switch(unit)
+    {
+    case BTC: return 8;
+    case mBTC: return 5;
+    case uBTC: return 2;
+    default: return 0;
+    }
+}
+
+QString BitcoinUnits::format(int unit, qint64 n, bool fPlus)
+{
+    // Note: not using straight sprintf here because we do NOT want
+    // localized number formatting.
+    if(!valid(unit))
+        return QString(); // Refuse to format invalid unit
+    qint64 coin = factor(unit);
+    int num_decimals = decimals(unit);
+    qint64 n_abs = (n > 0 ? n : -n);
+    qint64 quotient = n_abs / coin;
+    qint64 remainder = n_abs % coin;
+    QString quotient_str = QString::number(quotient);
+    QString remainder_str = QString::number(remainder).rightJustified(num_decimals, '0');
+
+    // Right-trim excess 0's after the decimal point
+    int nTrim = 0;
+    for (int i = remainder_str.size()-1; i>=2 && (remainder_str.at(i) == '0'); --i)
+        ++nTrim;
+    remainder_str.chop(nTrim);
+
+    if (n < 0)
+        quotient_str.insert(0, '-');
+    else if (fPlus && n > 0)
+        quotient_str.insert(0, '+');
+    return quotient_str + QString(".") + remainder_str;
+}
+
+QString BitcoinUnits::formatWithUnit(int unit, qint64 amount, bool plussign)
+{
+    return format(unit, amount, plussign) + QString(" ") + name(unit);
+}
+
+bool BitcoinUnits::parse(int unit, const QString &value, qint64 *val_out)
+{
+    if(!valid(unit) || value.isEmpty())
+        return false; // Refuse to parse invalid unit or empty string
+    int num_decimals = decimals(unit);
+    QStringList parts = value.split(".");
+
+    if(parts.size() > 2)
+    {
+        return false; // More than one dot
+    }
+    QString whole = parts[0];
+    QString decimals;
+
+    if(parts.size() > 1)
+    {
+        decimals = parts[1];
+    }
+    if(decimals.size() > num_decimals)
+    {
+        return false; // Exceeds max precision
+    }
+    bool ok = false;
+    QString str = whole + decimals.leftJustified(num_decimals, '0');
+
+    if(str.size() > 18)
+    {
+        return false; // Longer numbers will exceed 63 bits
+    }
+    qint64 retvalue = str.toLongLong(&ok);
+    if(val_out)
+    {
+        *val_out = retvalue;
+    }
+    return ok;
+}
+
+int BitcoinUnits::rowCount(const QModelIndex &parent) const
+{
+    Q_UNUSED(parent);
+    return unitlist.size();
+}
+
+QVariant BitcoinUnits::data(const QModelIndex &index, int role) const
+{
+    int row = index.row();
+    if(row >= 0 && row < unitlist.size())
+    {
+        Unit unit = unitlist.at(row);
+        switch(role)
+        {
+        case Qt::EditRole:
+        case Qt::DisplayRole:
+            return QVariant(name(unit));
+        case Qt::ToolTipRole:
+            return QVariant(description(unit));
+        case UnitRole:
+            return QVariant(static_cast<int>(unit));
+        }
+    }
+    return QVariant();
+}
diff --git a/src/qt/bitcoinunits.h b/src/qt/bitcoinunits.h
new file mode 100644 (file)
index 0000000..a7bebbc
--- /dev/null
@@ -0,0 +1,57 @@
+#ifndef BITCOINUNITS_H
+#define BITCOINUNITS_H
+
+#include <QString>
+#include <QAbstractListModel>
+
+// Bitcoin unit definitions, encapsulates parsing and formatting
+// and serves as list model for dropdown selection boxes.
+class BitcoinUnits: public QAbstractListModel
+{
+public:
+    explicit BitcoinUnits(QObject *parent);
+
+    enum Unit
+    {
+        // Source: https://en.bitcoin.it/wiki/Units
+        // Please add only sensible ones
+        BTC,
+        mBTC,
+        uBTC
+    };
+
+    /// Static API
+    // Get list of units, for dropdown box
+    static QList<Unit> availableUnits();
+    // Is unit ID valid?
+    static bool valid(int unit);
+    // Short name
+    static QString name(int unit);
+    // Longer description
+    static QString description(int unit);
+    // Number of satoshis / unit
+    static qint64 factor(int unit);
+    // Number of amount digits (to represent max number of coins)
+    static int amountDigits(int unit);
+    // Number of decimals left
+    static int decimals(int unit);
+    // Format as string
+    static QString format(int unit, qint64 amount, bool plussign=false);
+    // Format as string (with unit)
+    static QString formatWithUnit(int unit, qint64 amount, bool plussign=false);
+    // Parse string to coin amount
+    static bool parse(int unit, const QString &value, qint64 *val_out);
+
+    /// AbstractListModel implementation
+    enum {
+        // Unit identifier
+        UnitRole = Qt::UserRole
+    } RoleIndex;
+    int rowCount(const QModelIndex &parent) const;
+    QVariant data(const QModelIndex &index, int role) const;
+private:
+    QList<BitcoinUnits::Unit> unitlist;
+};
+typedef BitcoinUnits::Unit BitcoinUnit;
+
+#endif // BITCOINUNITS_H
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
new file mode 100644 (file)
index 0000000..2ed3ce5
--- /dev/null
@@ -0,0 +1,83 @@
+#include "clientmodel.h"
+#include "guiconstants.h"
+#include "optionsmodel.h"
+#include "addresstablemodel.h"
+#include "transactiontablemodel.h"
+
+#include "headers.h"
+
+#include <QTimer>
+#include <QDateTime>
+
+ClientModel::ClientModel(OptionsModel *optionsModel, QObject *parent) :
+    QObject(parent), optionsModel(optionsModel),
+    cachedNumConnections(0), cachedNumBlocks(0)
+{
+    // Until signal notifications is built into the bitcoin core,
+    //  simply update everything after polling using a timer.
+    QTimer *timer = new QTimer(this);
+    connect(timer, SIGNAL(timeout()), this, SLOT(update()));
+    timer->start(MODEL_UPDATE_DELAY);
+
+    numBlocksAtStartup = -1;
+}
+
+int ClientModel::getNumConnections() const
+{
+    return vNodes.size();
+}
+
+int ClientModel::getNumBlocks() const
+{
+    return nBestHeight;
+}
+
+int ClientModel::getNumBlocksAtStartup()
+{
+    if (numBlocksAtStartup == -1) numBlocksAtStartup = getNumBlocks();
+    return numBlocksAtStartup;
+}
+
+QDateTime ClientModel::getLastBlockDate() const
+{
+    return QDateTime::fromTime_t(pindexBest->GetBlockTime());
+}
+
+void ClientModel::update()
+{
+    int newNumConnections = getNumConnections();
+    int newNumBlocks = getNumBlocks();
+
+    if(cachedNumConnections != newNumConnections)
+        emit numConnectionsChanged(newNumConnections);
+    if(cachedNumBlocks != newNumBlocks)
+        emit numBlocksChanged(newNumBlocks);
+
+    cachedNumConnections = newNumConnections;
+    cachedNumBlocks = newNumBlocks;
+}
+
+bool ClientModel::isTestNet() const
+{
+    return fTestNet;
+}
+
+bool ClientModel::inInitialBlockDownload() const
+{
+    return IsInitialBlockDownload();
+}
+
+int ClientModel::getNumBlocksOfPeers() const
+{
+    return GetNumBlocksOfPeers();
+}
+
+OptionsModel *ClientModel::getOptionsModel()
+{
+    return optionsModel;
+}
+
+QString ClientModel::formatFullVersion() const
+{
+    return QString::fromStdString(FormatFullVersion());
+}
diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h
new file mode 100644 (file)
index 0000000..c68fb0f
--- /dev/null
@@ -0,0 +1,60 @@
+#ifndef CLIENTMODEL_H
+#define CLIENTMODEL_H
+
+#include <QObject>
+
+class OptionsModel;
+class AddressTableModel;
+class TransactionTableModel;
+class CWallet;
+
+QT_BEGIN_NAMESPACE
+class QDateTime;
+QT_END_NAMESPACE
+
+// Model for Bitcoin network client
+class ClientModel : public QObject
+{
+    Q_OBJECT
+public:
+    explicit ClientModel(OptionsModel *optionsModel, QObject *parent = 0);
+
+    OptionsModel *getOptionsModel();
+
+    int getNumConnections() const;
+    int getNumBlocks() const;
+    int getNumBlocksAtStartup();
+
+    QDateTime getLastBlockDate() const;
+
+    // Return true if client connected to testnet
+    bool isTestNet() const;
+    // Return true if core is doing initial block download
+    bool inInitialBlockDownload() const;
+    // Return conservative estimate of total number of blocks, or 0 if unknown
+    int getNumBlocksOfPeers() const;
+
+    QString formatFullVersion() const;
+
+private:
+    OptionsModel *optionsModel;
+
+    int cachedNumConnections;
+    int cachedNumBlocks;
+
+    int numBlocksAtStartup;
+
+signals:
+    void numConnectionsChanged(int count);
+    void numBlocksChanged(int count);
+
+    // Asynchronous error notification
+    void error(const QString &title, const QString &message);
+
+public slots:
+
+private slots:
+    void update();
+};
+
+#endif // CLIENTMODEL_H
diff --git a/src/qt/csvmodelwriter.cpp b/src/qt/csvmodelwriter.cpp
new file mode 100644 (file)
index 0000000..62c0b94
--- /dev/null
@@ -0,0 +1,83 @@
+#include "csvmodelwriter.h"
+
+#include <QAbstractItemModel>
+#include <QFile>
+#include <QTextStream>
+
+CSVModelWriter::CSVModelWriter(const QString &filename, QObject *parent) :
+    QObject(parent),
+    filename(filename)
+{
+}
+
+void CSVModelWriter::setModel(const QAbstractItemModel *model)
+{
+    this->model = model;
+}
+
+void CSVModelWriter::addColumn(const QString &title, int column, int role)
+{
+    Column col;
+    col.title = title;
+    col.column = column;
+    col.role = role;
+
+    columns.append(col);
+}
+
+static void writeValue(QTextStream &f, const QString &value)
+{
+    // TODO: quoting if " or \n in string
+    f << "\"" << value << "\"";
+}
+
+static void writeSep(QTextStream &f)
+{
+    f << ",";
+}
+
+static void writeNewline(QTextStream &f)
+{
+    f << "\n";
+}
+
+bool CSVModelWriter::write()
+{
+    QFile file(filename);
+    if(!file.open(QIODevice::WriteOnly | QIODevice::Text))
+        return false;
+    QTextStream out(&file);
+
+    int numRows = model->rowCount();
+
+    // Header row
+    for(int i=0; i<columns.size(); ++i)
+    {
+        if(i!=0)
+        {
+            writeSep(out);
+        }
+        writeValue(out, columns[i].title);
+    }
+    writeNewline(out);
+
+    // Data rows
+    for(int j=0; j<numRows; ++j)
+    {
+        for(int i=0; i<columns.size(); ++i)
+        {
+            if(i!=0)
+            {
+                writeSep(out);
+            }
+            QVariant data = model->index(j, columns[i].column).data(columns[i].role);
+            writeValue(out, data.toString());
+        }
+        writeNewline(out);
+    }
+
+    file.close();
+
+    return file.error() == QFile::NoError;
+}
+
diff --git a/src/qt/csvmodelwriter.h b/src/qt/csvmodelwriter.h
new file mode 100644 (file)
index 0000000..7367f3a
--- /dev/null
@@ -0,0 +1,43 @@
+#ifndef CSVMODELWRITER_H
+#define CSVMODELWRITER_H
+
+#include <QObject>
+#include <QList>
+
+QT_BEGIN_NAMESPACE
+class QAbstractItemModel;
+QT_END_NAMESPACE
+
+// Export TableModel to CSV file
+class CSVModelWriter : public QObject
+{
+    Q_OBJECT
+public:
+    explicit CSVModelWriter(const QString &filename, QObject *parent = 0);
+
+    void setModel(const QAbstractItemModel *model);
+    void addColumn(const QString &title, int column, int role=Qt::EditRole);
+
+    // Perform write operation
+    // Returns true on success, false otherwise
+    bool write();
+
+private:
+    QString filename;
+    const QAbstractItemModel *model;
+
+    struct Column
+    {
+        QString title;
+        int column;
+        int role;
+    };
+    QList<Column> columns;
+
+signals:
+
+public slots:
+
+};
+
+#endif // CSVMODELWRITER_H
diff --git a/src/qt/editaddressdialog.cpp b/src/qt/editaddressdialog.cpp
new file mode 100644 (file)
index 0000000..b8e6fe4
--- /dev/null
@@ -0,0 +1,115 @@
+#include "editaddressdialog.h"
+#include "ui_editaddressdialog.h"
+#include "addresstablemodel.h"
+#include "guiutil.h"
+
+#include <QDataWidgetMapper>
+#include <QMessageBox>
+
+EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::EditAddressDialog), mapper(0), mode(mode), model(0)
+{
+    ui->setupUi(this);
+
+    GUIUtil::setupAddressWidget(ui->addressEdit, this);
+
+    switch(mode)
+    {
+    case NewReceivingAddress:
+        setWindowTitle(tr("New receiving address"));
+        ui->addressEdit->setEnabled(false);
+        break;
+    case NewSendingAddress:
+        setWindowTitle(tr("New sending address"));
+        break;
+    case EditReceivingAddress:
+        setWindowTitle(tr("Edit receiving address"));
+        ui->addressEdit->setDisabled(true);
+        break;
+    case EditSendingAddress:
+        setWindowTitle(tr("Edit sending address"));
+        break;
+    }
+
+    mapper = new QDataWidgetMapper(this);
+    mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit);
+}
+
+EditAddressDialog::~EditAddressDialog()
+{
+    delete ui;
+}
+
+void EditAddressDialog::setModel(AddressTableModel *model)
+{
+    this->model = model;
+    mapper->setModel(model);
+    mapper->addMapping(ui->labelEdit, AddressTableModel::Label);
+    mapper->addMapping(ui->addressEdit, AddressTableModel::Address);
+}
+
+void EditAddressDialog::loadRow(int row)
+{
+    mapper->setCurrentIndex(row);
+}
+
+bool EditAddressDialog::saveCurrentRow()
+{
+    switch(mode)
+    {
+    case NewReceivingAddress:
+    case NewSendingAddress:
+        address = model->addRow(
+                mode == NewSendingAddress ? AddressTableModel::Send : AddressTableModel::Receive,
+                ui->labelEdit->text(),
+                ui->addressEdit->text());
+        break;
+    case EditReceivingAddress:
+    case EditSendingAddress:
+        if(mapper->submit())
+        {
+            address = ui->addressEdit->text();
+        }
+        break;
+    }
+    return !address.isEmpty();
+}
+
+void EditAddressDialog::accept()
+{
+    if(!saveCurrentRow())
+    {
+        switch(model->getEditStatus())
+        {
+        case AddressTableModel::DUPLICATE_ADDRESS:
+            QMessageBox::warning(this, windowTitle(),
+                tr("The entered address \"%1\" is already in the address book.").arg(ui->addressEdit->text()),
+                QMessageBox::Ok, QMessageBox::Ok);
+            break;
+        case AddressTableModel::INVALID_ADDRESS:
+            QMessageBox::warning(this, windowTitle(),
+                tr("The entered address \"%1\" is not a valid bitcoin address.").arg(ui->addressEdit->text()),
+                QMessageBox::Ok, QMessageBox::Ok);
+            return;
+        case AddressTableModel::WALLET_UNLOCK_FAILURE:
+            QMessageBox::critical(this, windowTitle(),
+                tr("Could not unlock wallet."),
+                QMessageBox::Ok, QMessageBox::Ok);
+            return;
+        case AddressTableModel::KEY_GENERATION_FAILURE:
+            QMessageBox::critical(this, windowTitle(),
+                tr("New key generation failed."),
+                QMessageBox::Ok, QMessageBox::Ok);
+            return;
+        }
+
+        return;
+    }
+    QDialog::accept();
+}
+
+QString EditAddressDialog::getAddress() const
+{
+    return address;
+}
diff --git a/src/qt/editaddressdialog.h b/src/qt/editaddressdialog.h
new file mode 100644 (file)
index 0000000..81086a4
--- /dev/null
@@ -0,0 +1,47 @@
+#ifndef EDITADDRESSDIALOG_H
+#define EDITADDRESSDIALOG_H
+
+#include <QDialog>
+
+QT_BEGIN_NAMESPACE
+class QDataWidgetMapper;
+QT_END_NAMESPACE
+
+namespace Ui {
+    class EditAddressDialog;
+}
+class AddressTableModel;
+
+class EditAddressDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    enum Mode {
+        NewReceivingAddress,
+        NewSendingAddress,
+        EditReceivingAddress,
+        EditSendingAddress
+    };
+
+    explicit EditAddressDialog(Mode mode, QWidget *parent = 0);
+    ~EditAddressDialog();    
+
+    void setModel(AddressTableModel *model);
+    void loadRow(int row);
+
+    void accept();
+
+    QString getAddress() const;
+private:
+    bool saveCurrentRow();
+
+    Ui::EditAddressDialog *ui;
+    QDataWidgetMapper *mapper;
+    Mode mode;
+    AddressTableModel *model;
+
+    QString address;
+};
+
+#endif // EDITADDRESSDIALOG_H
diff --git a/src/qt/forms/aboutdialog.ui b/src/qt/forms/aboutdialog.ui
new file mode 100644 (file)
index 0000000..cf79973
--- /dev/null
@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>AboutDialog</class>
+ <widget class="QDialog" name="AboutDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>593</width>
+    <height>319</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>About Bitcoin</string>
+  </property>
+  <layout class="QHBoxLayout" name="horizontalLayout_2">
+   <item>
+    <widget class="QLabel" name="label_4">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Preferred" vsizetype="Ignored">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="pixmap">
+      <pixmap resource="../bitcoin.qrc">:/images/about</pixmap>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <layout class="QVBoxLayout" name="verticalLayout_2">
+     <item>
+      <spacer name="verticalSpacer_2">
+       <property name="orientation">
+        <enum>Qt::Vertical</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>20</width>
+         <height>40</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <layout class="QHBoxLayout" name="horizontalLayout">
+       <item>
+        <widget class="QLabel" name="label">
+         <property name="text">
+          <string>&lt;b&gt;Bitcoin&lt;/b&gt; version</string>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <widget class="QLabel" name="versionLabel">
+         <property name="text">
+          <string notr="true">0.3.666-beta</string>
+         </property>
+         <property name="textFormat">
+          <enum>Qt::RichText</enum>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <spacer name="horizontalSpacer">
+         <property name="orientation">
+          <enum>Qt::Horizontal</enum>
+         </property>
+         <property name="sizeHint" stdset="0">
+          <size>
+           <width>40</width>
+           <height>20</height>
+          </size>
+         </property>
+        </spacer>
+       </item>
+      </layout>
+     </item>
+     <item>
+      <widget class="QLabel" name="label_2">
+       <property name="text">
+        <string>Copyright © 2009-2011 Bitcoin Developers
+
+This is experimental software.
+
+Distributed under the MIT/X11 software license, see the accompanying file license.txt or http://www.opensource.org/licenses/mit-license.php.
+
+This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</string>
+       </property>
+       <property name="wordWrap">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <spacer name="verticalSpacer">
+       <property name="orientation">
+        <enum>Qt::Vertical</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>20</width>
+         <height>40</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QDialogButtonBox" name="buttonBox">
+       <property name="orientation">
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="standardButtons">
+        <set>QDialogButtonBox::Ok</set>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+  </layout>
+ </widget>
+ <resources>
+  <include location="../bitcoin.qrc"/>
+ </resources>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>AboutDialog</receiver>
+   <slot>accept()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>360</x>
+     <y>308</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>157</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>rejected()</signal>
+   <receiver>AboutDialog</receiver>
+   <slot>reject()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>428</x>
+     <y>308</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>286</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>
diff --git a/src/qt/forms/addressbookpage.ui b/src/qt/forms/addressbookpage.ui
new file mode 100644 (file)
index 0000000..fb098c8
--- /dev/null
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>AddressBookPage</class>
+ <widget class="QWidget" name="AddressBookPage">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>627</width>
+    <height>347</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Address Book</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <widget class="QLabel" name="labelExplanation">
+     <property name="text">
+      <string>These are your Bitcoin addresses for receiving payments.  You may want to give a different one to each sender so you can keep track of who is paying you.</string>
+     </property>
+     <property name="textFormat">
+      <enum>Qt::AutoText</enum>
+     </property>
+     <property name="wordWrap">
+      <bool>true</bool>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QTableView" name="tableView">
+     <property name="toolTip">
+      <string>Double-click to edit address or label</string>
+     </property>
+     <property name="alternatingRowColors">
+      <bool>true</bool>
+     </property>
+     <property name="selectionMode">
+      <enum>QAbstractItemView::SingleSelection</enum>
+     </property>
+     <property name="selectionBehavior">
+      <enum>QAbstractItemView::SelectRows</enum>
+     </property>
+     <property name="sortingEnabled">
+      <bool>true</bool>
+     </property>
+     <attribute name="verticalHeaderVisible">
+      <bool>false</bool>
+     </attribute>
+    </widget>
+   </item>
+   <item>
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <item>
+      <widget class="QPushButton" name="newAddressButton">
+       <property name="toolTip">
+        <string>Create a new address</string>
+       </property>
+       <property name="text">
+        <string>&amp;New Address...</string>
+       </property>
+       <property name="icon">
+        <iconset resource="../bitcoin.qrc">
+         <normaloff>:/icons/add</normaloff>:/icons/add</iconset>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="copyToClipboard">
+       <property name="toolTip">
+        <string>Copy the currently selected address to the system clipboard</string>
+       </property>
+       <property name="text">
+        <string>&amp;Copy to Clipboard</string>
+       </property>
+       <property name="icon">
+        <iconset resource="../bitcoin.qrc">
+         <normaloff>:/icons/editcopy</normaloff>:/icons/editcopy</iconset>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="deleteButton">
+       <property name="toolTip">
+        <string>Delete the currently selected address from the list. Only sending addresses can be deleted.</string>
+       </property>
+       <property name="text">
+        <string>&amp;Delete</string>
+       </property>
+       <property name="icon">
+        <iconset resource="../bitcoin.qrc">
+         <normaloff>:/icons/remove</normaloff>:/icons/remove</iconset>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <spacer name="horizontalSpacer">
+       <property name="orientation">
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QDialogButtonBox" name="buttonBox">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="standardButtons">
+        <set>QDialogButtonBox::Ok</set>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+  </layout>
+ </widget>
+ <resources>
+  <include location="../bitcoin.qrc"/>
+ </resources>
+ <connections/>
+</ui>
diff --git a/src/qt/forms/askpassphrasedialog.ui b/src/qt/forms/askpassphrasedialog.ui
new file mode 100644 (file)
index 0000000..70d9180
--- /dev/null
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>AskPassphraseDialog</class>
+ <widget class="QDialog" name="AskPassphraseDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>589</width>
+    <height>228</height>
+   </rect>
+  </property>
+  <property name="sizePolicy">
+   <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
+    <horstretch>0</horstretch>
+    <verstretch>0</verstretch>
+   </sizepolicy>
+  </property>
+  <property name="minimumSize">
+   <size>
+    <width>550</width>
+    <height>0</height>
+   </size>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <widget class="QLabel" name="warningLabel">
+     <property name="text">
+      <string>TextLabel</string>
+     </property>
+     <property name="textFormat">
+      <enum>Qt::RichText</enum>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <layout class="QFormLayout" name="formLayout">
+     <property name="fieldGrowthPolicy">
+      <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
+     </property>
+     <item row="1" column="0">
+      <widget class="QLabel" name="passLabel1">
+       <property name="text">
+        <string>Enter passphrase</string>
+       </property>
+      </widget>
+     </item>
+     <item row="1" column="1">
+      <widget class="QLineEdit" name="passEdit1">
+       <property name="echoMode">
+        <enum>QLineEdit::Password</enum>
+       </property>
+      </widget>
+     </item>
+     <item row="2" column="0">
+      <widget class="QLabel" name="passLabel2">
+       <property name="text">
+        <string>New passphrase</string>
+       </property>
+      </widget>
+     </item>
+     <item row="2" column="1">
+      <widget class="QLineEdit" name="passEdit2">
+       <property name="echoMode">
+        <enum>QLineEdit::Password</enum>
+       </property>
+      </widget>
+     </item>
+     <item row="3" column="0">
+      <widget class="QLabel" name="passLabel3">
+       <property name="text">
+        <string>Repeat new passphrase</string>
+       </property>
+      </widget>
+     </item>
+     <item row="3" column="1">
+      <widget class="QLineEdit" name="passEdit3">
+       <property name="echoMode">
+        <enum>QLineEdit::Password</enum>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+   <item>
+    <spacer name="verticalSpacer">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>20</width>
+       <height>40</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item>
+    <widget class="QDialogButtonBox" name="buttonBox">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="standardButtons">
+      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>AskPassphraseDialog</receiver>
+   <slot>accept()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>248</x>
+     <y>254</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>157</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>rejected()</signal>
+   <receiver>AskPassphraseDialog</receiver>
+   <slot>reject()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>316</x>
+     <y>260</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>286</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>
diff --git a/src/qt/forms/editaddressdialog.ui b/src/qt/forms/editaddressdialog.ui
new file mode 100644 (file)
index 0000000..b4a4c1b
--- /dev/null
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>EditAddressDialog</class>
+ <widget class="QDialog" name="EditAddressDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>457</width>
+    <height>126</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Edit Address</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <layout class="QFormLayout" name="formLayout">
+     <property name="fieldGrowthPolicy">
+      <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
+     </property>
+     <item row="0" column="0">
+      <widget class="QLabel" name="label">
+       <property name="text">
+        <string>&amp;Label</string>
+       </property>
+       <property name="buddy">
+        <cstring>labelEdit</cstring>
+       </property>
+      </widget>
+     </item>
+     <item row="0" column="1">
+      <widget class="QLineEdit" name="labelEdit">
+       <property name="toolTip">
+        <string>The label associated with this address book entry</string>
+       </property>
+      </widget>
+     </item>
+     <item row="1" column="0">
+      <widget class="QLabel" name="label_2">
+       <property name="text">
+        <string>&amp;Address</string>
+       </property>
+       <property name="buddy">
+        <cstring>addressEdit</cstring>
+       </property>
+      </widget>
+     </item>
+     <item row="1" column="1">
+      <widget class="QLineEdit" name="addressEdit">
+       <property name="toolTip">
+        <string>The address associated with this address book entry. This can only be modified for sending addresses.</string>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+   <item>
+    <widget class="QDialogButtonBox" name="buttonBox">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="standardButtons">
+      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>EditAddressDialog</receiver>
+   <slot>accept()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>248</x>
+     <y>254</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>157</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>rejected()</signal>
+   <receiver>EditAddressDialog</receiver>
+   <slot>reject()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>316</x>
+     <y>260</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>286</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>
diff --git a/src/qt/forms/overviewpage.ui b/src/qt/forms/overviewpage.ui
new file mode 100644 (file)
index 0000000..cc67fae
--- /dev/null
@@ -0,0 +1,161 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>OverviewPage</class>
+ <widget class="QWidget" name="OverviewPage">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>552</width>
+    <height>342</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,1">
+   <item>
+    <layout class="QVBoxLayout" name="verticalLayout_2">
+     <item>
+      <widget class="QFrame" name="frame">
+       <property name="frameShape">
+        <enum>QFrame::StyledPanel</enum>
+       </property>
+       <property name="frameShadow">
+        <enum>QFrame::Raised</enum>
+       </property>
+       <layout class="QFormLayout" name="formLayout_2">
+        <property name="fieldGrowthPolicy">
+         <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
+        </property>
+        <property name="horizontalSpacing">
+         <number>12</number>
+        </property>
+        <property name="verticalSpacing">
+         <number>12</number>
+        </property>
+        <item row="2" column="0">
+         <widget class="QLabel" name="label">
+          <property name="text">
+           <string>Balance:</string>
+          </property>
+         </widget>
+        </item>
+        <item row="2" column="1">
+         <widget class="QLabel" name="labelBalance">
+          <property name="text">
+           <string>123.456 BTC</string>
+          </property>
+         </widget>
+        </item>
+        <item row="4" column="0">
+         <widget class="QLabel" name="label_2">
+          <property name="text">
+           <string>Number of transactions:</string>
+          </property>
+         </widget>
+        </item>
+        <item row="4" column="1">
+         <widget class="QLabel" name="labelNumTransactions">
+          <property name="text">
+           <string>0</string>
+          </property>
+         </widget>
+        </item>
+        <item row="3" column="0">
+         <widget class="QLabel" name="label_3">
+          <property name="text">
+           <string>Unconfirmed:</string>
+          </property>
+         </widget>
+        </item>
+        <item row="3" column="1">
+         <widget class="QLabel" name="labelUnconfirmed">
+          <property name="text">
+           <string>0 BTC</string>
+          </property>
+         </widget>
+        </item>
+        <item row="1" column="0">
+         <widget class="QLabel" name="label_5">
+          <property name="text">
+           <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Wallet&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+          </property>
+         </widget>
+        </item>
+       </layout>
+      </widget>
+     </item>
+     <item>
+      <spacer name="verticalSpacer">
+       <property name="orientation">
+        <enum>Qt::Vertical</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>20</width>
+         <height>40</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+    </layout>
+   </item>
+   <item>
+    <layout class="QVBoxLayout" name="verticalLayout_3">
+     <item>
+      <widget class="QFrame" name="frame_2">
+       <property name="frameShape">
+        <enum>QFrame::StyledPanel</enum>
+       </property>
+       <property name="frameShadow">
+        <enum>QFrame::Raised</enum>
+       </property>
+       <layout class="QVBoxLayout" name="verticalLayout">
+        <item>
+         <widget class="QLabel" name="label_4">
+          <property name="text">
+           <string>&lt;b&gt;Recent transactions&lt;/b&gt;</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QListView" name="listTransactions">
+          <property name="frameShape">
+           <enum>QFrame::NoFrame</enum>
+          </property>
+          <property name="verticalScrollBarPolicy">
+           <enum>Qt::ScrollBarAlwaysOff</enum>
+          </property>
+          <property name="horizontalScrollBarPolicy">
+           <enum>Qt::ScrollBarAlwaysOff</enum>
+          </property>
+         </widget>
+        </item>
+       </layout>
+      </widget>
+     </item>
+     <item>
+      <spacer name="verticalSpacer_2">
+       <property name="orientation">
+        <enum>Qt::Vertical</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>20</width>
+         <height>40</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+    </layout>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/src/qt/forms/sendcoinsdialog.ui b/src/qt/forms/sendcoinsdialog.ui
new file mode 100644 (file)
index 0000000..f9dd02f
--- /dev/null
@@ -0,0 +1,166 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>SendCoinsDialog</class>
+ <widget class="QDialog" name="SendCoinsDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>686</width>
+    <height>217</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Send Coins</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <widget class="QScrollArea" name="scrollArea">
+     <property name="widgetResizable">
+      <bool>true</bool>
+     </property>
+     <widget class="QWidget" name="scrollAreaWidgetContents">
+      <property name="geometry">
+       <rect>
+        <x>0</x>
+        <y>0</y>
+        <width>666</width>
+        <height>165</height>
+       </rect>
+      </property>
+      <layout class="QVBoxLayout" name="verticalLayout_2">
+       <property name="margin">
+        <number>0</number>
+       </property>
+       <item>
+        <layout class="QVBoxLayout" name="entries">
+         <property name="spacing">
+          <number>6</number>
+         </property>
+        </layout>
+       </item>
+       <item>
+        <spacer name="verticalSpacer">
+         <property name="orientation">
+          <enum>Qt::Vertical</enum>
+         </property>
+         <property name="sizeHint" stdset="0">
+          <size>
+           <width>20</width>
+           <height>40</height>
+          </size>
+         </property>
+        </spacer>
+       </item>
+      </layout>
+     </widget>
+    </widget>
+   </item>
+   <item>
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <property name="spacing">
+      <number>6</number>
+     </property>
+     <item>
+      <widget class="QPushButton" name="addButton">
+       <property name="toolTip">
+        <string>Send to multiple recipients at once</string>
+       </property>
+       <property name="text">
+        <string>&amp;Add recipient...</string>
+       </property>
+       <property name="icon">
+        <iconset resource="../bitcoin.qrc">
+         <normaloff>:/icons/add</normaloff>:/icons/add</iconset>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="clearButton">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text">
+        <string>Clear all</string>
+       </property>
+       <property name="icon">
+        <iconset resource="../bitcoin.qrc">
+         <normaloff>:/icons/remove</normaloff>:/icons/remove</iconset>
+       </property>
+       <property name="autoRepeatDelay">
+        <number>300</number>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <layout class="QHBoxLayout" name="horizontalLayout_2">
+       <property name="spacing">
+        <number>3</number>
+       </property>
+       <item>
+        <widget class="QLabel" name="label">
+         <property name="text">
+          <string>Balance:</string>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <widget class="QLabel" name="labelBalance">
+         <property name="text">
+          <string>123.456 BTC</string>
+         </property>
+         <property name="textInteractionFlags">
+          <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
+         </property>
+        </widget>
+       </item>
+      </layout>
+     </item>
+     <item>
+      <spacer name="horizontalSpacer">
+       <property name="orientation">
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QPushButton" name="sendButton">
+       <property name="minimumSize">
+        <size>
+         <width>150</width>
+         <height>0</height>
+        </size>
+       </property>
+       <property name="toolTip">
+        <string>Confirm the send action</string>
+       </property>
+       <property name="text">
+        <string>&amp;Send</string>
+       </property>
+       <property name="icon">
+        <iconset resource="../bitcoin.qrc">
+         <normaloff>:/icons/send</normaloff>:/icons/send</iconset>
+       </property>
+       <property name="default">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+  </layout>
+ </widget>
+ <resources>
+  <include location="../bitcoin.qrc"/>
+ </resources>
+ <connections/>
+</ui>
diff --git a/src/qt/forms/sendcoinsentry.ui b/src/qt/forms/sendcoinsentry.ui
new file mode 100644 (file)
index 0000000..13593c2
--- /dev/null
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>SendCoinsEntry</class>
+ <widget class="QFrame" name="SendCoinsEntry">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>729</width>
+    <height>136</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <property name="frameShape">
+   <enum>QFrame::StyledPanel</enum>
+  </property>
+  <property name="frameShadow">
+   <enum>QFrame::Sunken</enum>
+  </property>
+  <layout class="QGridLayout" name="gridLayout">
+   <property name="spacing">
+    <number>12</number>
+   </property>
+   <item row="5" column="0">
+    <widget class="QLabel" name="label">
+     <property name="text">
+      <string>A&amp;mount:</string>
+     </property>
+     <property name="alignment">
+      <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+     </property>
+     <property name="buddy">
+      <cstring>payAmount</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="3" column="0">
+    <widget class="QLabel" name="label_2">
+     <property name="text">
+      <string>Pay &amp;To:</string>
+     </property>
+     <property name="alignment">
+      <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+     </property>
+     <property name="buddy">
+      <cstring>payTo</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="5" column="1">
+    <widget class="BitcoinAmountField" name="payAmount"/>
+   </item>
+   <item row="4" column="1">
+    <layout class="QHBoxLayout" name="horizontalLayout_2">
+     <property name="spacing">
+      <number>0</number>
+     </property>
+     <item>
+      <widget class="QValidatedLineEdit" name="addAsLabel">
+       <property name="enabled">
+        <bool>true</bool>
+       </property>
+       <property name="toolTip">
+        <string>Enter a label for this address to add it to your address book</string>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+   <item row="4" column="0">
+    <widget class="QLabel" name="label_4">
+     <property name="text">
+      <string>&amp;Label:</string>
+     </property>
+     <property name="alignment">
+      <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+     </property>
+     <property name="buddy">
+      <cstring>addAsLabel</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="3" column="1">
+    <layout class="QHBoxLayout" name="horizontalLayout_3">
+     <property name="spacing">
+      <number>0</number>
+     </property>
+     <item>
+      <widget class="QValidatedLineEdit" name="payTo">
+       <property name="toolTip">
+        <string>The address to send the payment to  (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</string>
+       </property>
+       <property name="maxLength">
+        <number>34</number>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="addressBookButton">
+       <property name="toolTip">
+        <string>Choose adress from address book</string>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="icon">
+        <iconset resource="../bitcoin.qrc">
+         <normaloff>:/icons/address-book</normaloff>:/icons/address-book</iconset>
+       </property>
+       <property name="shortcut">
+        <string>Alt+A</string>
+       </property>
+       <property name="autoDefault">
+        <bool>false</bool>
+       </property>
+       <property name="flat">
+        <bool>false</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="pasteButton">
+       <property name="toolTip">
+        <string>Paste address from clipboard</string>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="icon">
+        <iconset resource="../bitcoin.qrc">
+         <normaloff>:/icons/editpaste</normaloff>:/icons/editpaste</iconset>
+       </property>
+       <property name="shortcut">
+        <string>Alt+P</string>
+       </property>
+       <property name="autoDefault">
+        <bool>false</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="deleteButton">
+       <property name="toolTip">
+        <string>Remove this recipient</string>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="icon">
+        <iconset resource="../bitcoin.qrc">
+         <normaloff>:/icons/remove</normaloff>:/icons/remove</iconset>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+  </layout>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>BitcoinAmountField</class>
+   <extends>QLineEdit</extends>
+   <header>bitcoinamountfield.h</header>
+   <container>1</container>
+  </customwidget>
+  <customwidget>
+   <class>QValidatedLineEdit</class>
+   <extends>QLineEdit</extends>
+   <header>qvalidatedlineedit.h</header>
+  </customwidget>
+ </customwidgets>
+ <resources>
+  <include location="../bitcoin.qrc"/>
+ </resources>
+ <connections/>
+</ui>
diff --git a/src/qt/forms/transactiondescdialog.ui b/src/qt/forms/transactiondescdialog.ui
new file mode 100644 (file)
index 0000000..2f70a38
--- /dev/null
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>TransactionDescDialog</class>
+ <widget class="QDialog" name="TransactionDescDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Transaction details</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <widget class="QTextEdit" name="detailText">
+     <property name="toolTip">
+      <string>This pane shows a detailed description of the transaction</string>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QDialogButtonBox" name="buttonBox">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="standardButtons">
+      <set>QDialogButtonBox::Close</set>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>TransactionDescDialog</receiver>
+   <slot>accept()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>248</x>
+     <y>254</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>157</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>rejected()</signal>
+   <receiver>TransactionDescDialog</receiver>
+   <slot>reject()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>316</x>
+     <y>260</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>286</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>
diff --git a/src/qt/guiconstants.h b/src/qt/guiconstants.h
new file mode 100644 (file)
index 0000000..0cb5075
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef GUICONSTANTS_H
+#define GUICONSTANTS_H
+
+/* Milliseconds between model updates */
+static const int MODEL_UPDATE_DELAY = 500;
+
+/* Maximum  passphrase length */
+static const int MAX_PASSPHRASE_SIZE = 1024;
+
+/* Size of icons in status bar */
+static const int STATUSBAR_ICONSIZE = 16;
+
+/* Invalid field background style */
+#define STYLE_INVALID "background:#FF8080"
+
+/* Transaction list -- unconfirmed transaction */
+#define COLOR_UNCONFIRMED QColor(128, 128, 128)
+/* Transaction list -- negative amount */
+#define COLOR_NEGATIVE QColor(255, 0, 0)
+/* Transaction list -- bare address (without label) */
+#define COLOR_BAREADDRESS QColor(140, 140, 140)
+
+#endif // GUICONSTANTS_H
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
new file mode 100644 (file)
index 0000000..158b84a
--- /dev/null
@@ -0,0 +1,74 @@
+#include "guiutil.h"
+#include "bitcoinaddressvalidator.h"
+#include "walletmodel.h"
+#include "bitcoinunits.h"
+
+#include "headers.h"
+
+#include <QString>
+#include <QDateTime>
+#include <QDoubleValidator>
+#include <QFont>
+#include <QLineEdit>
+#include <QUrl>
+
+QString GUIUtil::dateTimeStr(qint64 nTime)
+{
+    return dateTimeStr(QDateTime::fromTime_t((qint32)nTime));
+}
+
+QString GUIUtil::dateTimeStr(const QDateTime &date)
+{
+    return date.date().toString(Qt::SystemLocaleShortDate) + QString(" ") + date.toString("hh:mm");
+}
+
+QFont GUIUtil::bitcoinAddressFont()
+{
+    QFont font("Monospace");
+    font.setStyleHint(QFont::TypeWriter);
+    return font;
+}
+
+void GUIUtil::setupAddressWidget(QLineEdit *widget, QWidget *parent)
+{
+    widget->setMaxLength(BitcoinAddressValidator::MaxAddressLength);
+    widget->setValidator(new BitcoinAddressValidator(parent));
+    widget->setFont(bitcoinAddressFont());
+}
+
+void GUIUtil::setupAmountWidget(QLineEdit *widget, QWidget *parent)
+{
+    QDoubleValidator *amountValidator = new QDoubleValidator(parent);
+    amountValidator->setDecimals(8);
+    amountValidator->setBottom(0.0);
+    widget->setValidator(amountValidator);
+    widget->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
+}
+
+bool GUIUtil::parseBitcoinURL(const QUrl *url, SendCoinsRecipient *out)
+{
+    if(url->scheme() != QString("bitcoin"))
+        return false;
+
+    SendCoinsRecipient rv;
+    rv.address = url->path();
+    rv.label = url->queryItemValue("label");
+
+    QString amount = url->queryItemValue("amount");
+    if(amount.isEmpty())
+    {
+        rv.amount = 0;
+    }
+    else // Amount is non-empty
+    {
+        if(!BitcoinUnits::parse(BitcoinUnits::BTC, amount, &rv.amount))
+        {
+            return false;
+        }
+    }
+    if(out)
+    {
+        *out = rv;
+    }
+    return true;
+}
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
new file mode 100644 (file)
index 0000000..bc4ddb8
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef GUIUTIL_H
+#define GUIUTIL_H
+
+#include <QString>
+
+QT_BEGIN_NAMESPACE
+class QFont;
+class QLineEdit;
+class QWidget;
+class QDateTime;
+class QUrl;
+QT_END_NAMESPACE
+class SendCoinsRecipient;
+
+class GUIUtil
+{
+public:
+    // Create human-readable string from date
+    static QString dateTimeStr(qint64 nTime);
+    static QString dateTimeStr(const QDateTime &datetime);
+
+    // Render bitcoin addresses in monospace font
+    static QFont bitcoinAddressFont();
+
+    // Set up widgets for address and amounts
+    static void setupAddressWidget(QLineEdit *widget, QWidget *parent);
+    static void setupAmountWidget(QLineEdit *widget, QWidget *parent);
+
+    // Parse "bitcoin:" URL into recipient object, return true on succesful parsing
+    // See Bitcoin URL definition discussion here: https://bitcointalk.org/index.php?topic=33490.0
+    static bool parseBitcoinURL(const QUrl *url, SendCoinsRecipient *out);
+};
+
+#endif // GUIUTIL_H
diff --git a/src/qt/locale/bitcoin_de.ts b/src/qt/locale/bitcoin_de.ts
new file mode 100644 (file)
index 0000000..1978f06
--- /dev/null
@@ -0,0 +1,1155 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="de_DE">
+<defaultcodec>UTF-8</defaultcodec>
+<context>
+    <name>AboutDialog</name>
+    <message>
+        <location filename="../forms/aboutdialog.ui" line="14"/>
+        <source>About Bitcoin</source>
+        <translation>Über Bitcoin</translation>
+    </message>
+    <message>
+        <location filename="../forms/aboutdialog.ui" line="53"/>
+        <source>&lt;b&gt;Bitcoin&lt;/b&gt; version</source>
+        <translation>&lt;b&gt;Bitcoin&lt;/b&gt; Version</translation>
+    </message>
+    <message>
+        <location filename="../forms/aboutdialog.ui" line="85"/>
+        <source>Copyright © 2009-2011 Bitcoin Developers
+
+This is experimental software.
+
+Distributed under the MIT/X11 software license, see the accompanying file license.txt or http://www.opensource.org/licenses/mit-license.php.
+
+This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
+        <translation>Copyright © 2009-2011 Bitcoin Developers
+
+Dies ist experimentelle Software.
+
+Veröffentlicht unter der MIT/X11 Software-Lizenz. Sie können diese in der beiligenden Datei license.txt oder unter http://www.opensource.org/licenses/mit-license.php nachlesen.
+
+Dieses Produkt enthält Software, welche vom OpenSSL Projekt zur Verwendung im OpenSSL Toolkit (http://www.openssl.org/) entwickelt wurde, kryptographische Software von Eric Young (eay@cryptsoft.com) und UPnP Software von Thomas-Bernard.</translation>
+    </message>
+</context>
+<context>
+    <name>AddressBookPage</name>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="14"/>
+        <source>Address Book</source>
+        <translation>Adressbuch</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="20"/>
+        <source>These are your Bitcoin addresses for receiving payments.  You may want to give a different one to each sender so you can keep track of who is paying you.</source>
+        <translation>Dies sind ihre Bitcoin-Adressen zum empfangen von Zahlungen. Um Ihre Zahlungen zurückverfolgen zu können ist es möglich jedem Sender eine andere Empfangsaddresse mitzuteilen.</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="33"/>
+        <source>Double-click to edit address or label</source>
+        <translation>Doppelklick zum Ändern der Adresse oder Beschreibung</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="57"/>
+        <source>Create a new address</source>
+        <translation>Neue Adresse erstellen</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="60"/>
+        <source>&amp;New Address...</source>
+        <translation>&amp;Neue Adresse...</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="71"/>
+        <source>Copy the currently selected address to the system clipboard</source>
+        <translation>Ausgewählte Adresse in die Zwischenablage kopieren</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="74"/>
+        <source>&amp;Copy to Clipboard</source>
+        <translation>&amp;In die Zwischenablage kopieren</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="85"/>
+        <source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source>
+        <translation>Die ausgewählte Adresse aus der Liste entfernen. Sie können nur ausgehende Adressen entfernen.</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="88"/>
+        <source>&amp;Delete</source>
+        <translation>&amp;Löschen</translation>
+    </message>
+</context>
+<context>
+    <name>AddressTableModel</name>
+    <message>
+        <location filename="../addresstablemodel.cpp" line="78"/>
+        <source>Label</source>
+        <translation>Bezeichnung</translation>
+    </message>
+    <message>
+        <location filename="../addresstablemodel.cpp" line="78"/>
+        <source>Address</source>
+        <translation>Adresse</translation>
+    </message>
+    <message>
+        <location filename="../addresstablemodel.cpp" line="114"/>
+        <source>(no label)</source>
+        <translation>(keine Bezeichnung)</translation>
+    </message>
+</context>
+<context>
+    <name>BitcoinGUI</name>
+    <message>
+        <location filename="../bitcoingui.cpp" line="50"/>
+        <source>Bitcoin Wallet</source>
+        <translation>Bitcoin Wallet</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="112"/>
+        <source>Number of connections to other clients</source>
+        <translation>Anzahl der Verbindungen zu anderen Clients</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="117"/>
+        <source>Number of blocks in the block chain</source>
+        <translation>Anzahl der Blöcke in der Block-Chain</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="120"/>
+        <source>Synchronizing with network...</source>
+        <translation>Mit Netzwerk synchronisieren...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="123"/>
+        <source>Block chain synchronization in progress</source>
+        <translation>Synchronisierung der Block-Chain...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="140"/>
+        <source>&amp;Overview</source>
+        <translation>Übersicht</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="144"/>
+        <source>&amp;Transactions</source>
+        <translation>Transaktionen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="148"/>
+        <source>&amp;Address Book</source>
+        <translation>Adressbuch</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="149"/>
+        <source>Edit the list of stored addresses and labels</source>
+        <translation>Adressen bearbeiten</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="153"/>
+        <source>&amp;Receive coins</source>
+        <translation>Bitcoins empfangen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="154"/>
+        <source>Show the list of addresses for receiving payments</source>
+        <translation>Empfangsadressen anzeigen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="158"/>
+        <source>&amp;Send coins</source>
+        <translation>Bitcoins senden</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="159"/>
+        <source>Send coins to a bitcoin address</source>
+        <translation>Bitcoins an eine Bitcoin-Adresse senden</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="169"/>
+        <source>&amp;Exit</source>
+        <translation>Beenden</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="170"/>
+        <source>Quit application</source>
+        <translation>Anwendung beenden</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="171"/>
+        <source>&amp;About</source>
+        <translation>Über</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="172"/>
+        <source>Show information about Bitcoin</source>
+        <translation>Informationen über Bitcoin</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="173"/>
+        <source>&amp;Options...</source>
+        <translation>Einstellungen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="174"/>
+        <source>Modify configuration options for bitcoin</source>
+        <translation>Einstellungen ändern</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="175"/>
+        <source>Open &amp;Bitcoin</source>
+        <translation>Bitcoin öffnen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="176"/>
+        <source>Show the Bitcoin window</source>
+        <translation>Bitcoin-Fenster anzeigen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="177"/>
+        <source>&amp;Export...</source>
+        <translation>Exportieren...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="178"/>
+        <source>Export data in current view to a file</source>
+        <translation>Angezeigte Daten als Datei exportieren</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="193"/>
+        <source>Bitcoin Wallet [testnet]</source>
+        <translation>Bitcoin Wallet [testnet]</translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../bitcoingui.cpp" line="298"/>
+        <source>%n connection(s)</source>
+        <translation>
+            <numerusform>%n Verbindung(en)</numerusform>
+            <numerusform></numerusform>
+        </translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../bitcoingui.cpp" line="317"/>
+        <source>%n block(s)</source>
+        <translation>
+            <numerusform>%n Blöcke</numerusform>
+            <numerusform></numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="375"/>
+        <source>This transaction is over the size limit.  You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network.  Do you want to pay the fee?</source>
+        <translation>Die Größe dieser Transaktion übersteigt das Limit.
+ Sie können die Coins jedoch senden, wenn sie einen zusätzlichen Betrag von 1% zahlen, 
+welcher an die Teilnehmer des Bitcoin-Netzwerkes ausgeschüttet wird und dieses unterstützt.
+Möchten Sie die zusätzliche Gebühr zahlen?</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="379"/>
+        <source>Sending...</source>
+        <translation>Senden...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="407"/>
+        <source>Incoming transaction</source>
+        <translation>Eingehende Transaktion</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="408"/>
+        <source>Date: </source>
+        <translation>Datum:</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="409"/>
+        <source>Amount: </source>
+        <translation>Betrag:</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="410"/>
+        <source>Type: </source>
+        <translation>Beschreibung:</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="411"/>
+        <source>Address: </source>
+        <translation>Adresse:</translation>
+    </message>
+</context>
+<context>
+    <name>EditAddressDialog</name>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="14"/>
+        <source>Edit Address</source>
+        <translation>Adresse bearbeiten</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="25"/>
+        <source>&amp;Label</source>
+        <translation>Beschreibung</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="35"/>
+        <source>The label associated with this address book entry</source>
+        <translation>Name/Beschreibung des Adressbucheintrags</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="42"/>
+        <source>&amp;Address</source>
+        <translation>Adresse</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="52"/>
+        <source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
+        <translation>Die Adresse des Adressbucheintrag. Diese kann nur für Zahlungsadressen bearbeitet werden.</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="20"/>
+        <source>New receiving address</source>
+        <translation>Neue Empfangsadresse</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="24"/>
+        <source>New sending address</source>
+        <translation>Neue Zahlungsadresse</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="27"/>
+        <source>Edit receiving address</source>
+        <translation>Empfangsadresse bearbeiten</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="31"/>
+        <source>Edit sending address</source>
+        <translation>Zahlungsadresse bearbeiten</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="89"/>
+        <source>The entered address &quot;%1&quot; is not a valid bitcoin address.</source>
+        <translation>Die eingegebene Adresse (&quot;%1&quot;) ist keine gültige Bitcoin-Adresse.</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="97"/>
+        <source>The entered address &quot;%1&quot; is already in the address book.</source>
+        <translation>Die eingegebene Adresse (&quot;%1&quot;) befindet sich bereits in Ihrem Adressbuch.</translation>
+    </message>
+</context>
+<context>
+    <name>MainOptionsPage</name>
+    <message>
+        <location filename="../optionsdialog.cpp" line="142"/>
+        <source>&amp;Start Bitcoin on window system startup</source>
+        <translation>Bitcoin beim Start des Systems ausführen</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="143"/>
+        <source>Automatically start Bitcoin after the computer is turned on</source>
+        <translation>Bitcoin automatisch beim Systemstart ausführen</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="146"/>
+        <source>&amp;Minimize to the tray instead of the taskbar</source>
+        <translation>In den Infobereich statt der Taskleiste minimieren</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="147"/>
+        <source>Show only a tray icon after minimizing the window</source>
+        <translation>Minimiert nur im Infobereich anzeigen.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="150"/>
+        <source>Map port using &amp;UPnP</source>
+        <translation>Portweiterleitung via UPnP</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="151"/>
+        <source>Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
+        <translation>Öffnet den Bitcoin Client-Port automatisch auf dem Router. Dies funktioniert nur, wenn Ihr Router UPnP unterstützt und dies aktiviert ist.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="154"/>
+        <source>M&amp;inimize on close</source>
+        <translation>Beim Schließen minimieren</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="155"/>
+        <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
+        <translation>Minimiert die Anwendung, wenn das Fenster geschlossen wird. Wenn dies aktiviert ist, müssen Sie das Programm über &quot;Beenden&quot; im Menü schließen.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="158"/>
+        <source>&amp;Connect through SOCKS4 proxy:</source>
+        <translation>Über SOCKS4-Proxy verbinden:</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="159"/>
+        <source>Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)</source>
+        <translation>Über SOCKS4-Proxy zum Bitcoin-Netzwerk verbinden (bspw. für eine Verbindung über Tor)</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="164"/>
+        <source>Proxy &amp;IP: </source>
+        <translation>Proxy-IP:</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="170"/>
+        <source>IP address of the proxy (e.g. 127.0.0.1)</source>
+        <translation>IP-Adresse des Proxys (z.B. 127.0.0.1)</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="173"/>
+        <source>&amp;Port: </source>
+        <translation>Port:</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="179"/>
+        <source>Port of the proxy (e.g. 1234)</source>
+        <translation>Port des Proxy-Servers (z.B. 1234)</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="185"/>
+        <source>Optional transaction fee per KB that helps make sure your transactions are processed quickly.  Most transactions are 1KB.  Fee 0.01 recommended.</source>
+        <translation>Zusätzliche Transaktionsgebühr per KB, welche sicherstellt dass Ihre Transaktionen schnell bearbeitet werden. Die meisten Transaktionen sind 1KB groß. Eine Gebühr von 0.01 wird empfohlen.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="191"/>
+        <source>Pay transaction &amp;fee</source>
+        <translation>Transaktionsgebühr bezahlen</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="194"/>
+        <source>Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended.</source>
+        <translation>Zusätzliche Transaktionsgebühr per KB, welche sicherstellt dass Ihre Transaktionen schnell bearbeitet werden. Die meisten Transaktionen sind 1KB groß. Eine Gebühr von 0.01 wird empfohlen.</translation>
+    </message>
+</context>
+<context>
+    <name>OptionsDialog</name>
+    <message>
+        <location filename="../optionsdialog.cpp" line="54"/>
+        <source>Main</source>
+        <translation>Haupt</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="74"/>
+        <source>Options</source>
+        <translation>Einstellungen</translation>
+    </message>
+</context>
+<context>
+    <name>OverviewPage</name>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="14"/>
+        <source>Form</source>
+        <translation></translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="38"/>
+        <source>Balance:</source>
+        <translation>Kontostand:</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="45"/>
+        <source>123.456 BTC</source>
+        <translation></translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="52"/>
+        <source>Number of transactions:</source>
+        <translation>Anzahl der Transaktionen:</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="59"/>
+        <source>0</source>
+        <translation></translation>
+    </message>
+    <message>
+        <location filename="../overviewpage.cpp" line="14"/>
+        <source>Your current balance</source>
+        <translation>Kontostand</translation>
+    </message>
+</context>
+<context>
+    <name>SendCoinsDialog</name>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="14"/>
+        <location filename="../sendcoinsdialog.cpp" line="56"/>
+        <location filename="../sendcoinsdialog.cpp" line="78"/>
+        <location filename="../sendcoinsdialog.cpp" line="84"/>
+        <location filename="../sendcoinsdialog.cpp" line="90"/>
+        <location filename="../sendcoinsdialog.cpp" line="96"/>
+        <source>Send Coins</source>
+        <translation>Bitcoins überweisen</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="27"/>
+        <source>The address to send the payment to  (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
+        <translation>Empfangsadresse für die Überweisung (z.B. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="37"/>
+        <source>Look up adress in address book</source>
+        <translation>Adressbuch</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="47"/>
+        <source>Alt+A</source>
+        <translation>Alt+A</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="60"/>
+        <source>Paste address from system clipboard</source>
+        <translation>Adresse aus der Zwischenanlage einfügen</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="70"/>
+        <source>Alt+P</source>
+        <translation>Alt+P</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="82"/>
+        <source>A&amp;mount:</source>
+        <translation>Betrag:</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="95"/>
+        <source>Pay &amp;To:</source>
+        <translation>Empfänger:</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="113"/>
+        <source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
+        <translation>Bitcoin-Adresse eingeben (z.B. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="131"/>
+        <location filename="../sendcoinsdialog.cpp" line="23"/>
+        <source>Enter a label for this address to add it to your address book</source>
+        <translation>Beschreibung der Adresse im Adressbuch</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="140"/>
+        <source>&amp;Label:</source>
+        <translation>Beschreibung:</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="183"/>
+        <source>Confirm the send action</source>
+        <translation>Überweisung bestätigen</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="186"/>
+        <source>&amp;Send</source>
+        <translation>Überweisen</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="206"/>
+        <source>Abort the send action</source>
+        <translation>Überweisung abbrechen</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="57"/>
+        <source>Must fill in an amount to pay.</source>
+        <translation>Bitte geben Sie einen Betrag ein.</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="65"/>
+        <source>Confirm send coins</source>
+        <translation>Überweisung bestätigen</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="66"/>
+        <source>Are you sure you want to send %1 BTC to %2 (%3)?</source>
+        <translation>Möchten Sie %1 BTC an %2 (%3) überweisen?</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="79"/>
+        <source>The recepient address is not valid, please recheck.</source>
+        <translation>Die Empfangsadresse ist ungültig.</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="85"/>
+        <source>The amount to pay must be larger than 0.</source>
+        <translation>Der Betrag muss mehr als 0 betragen.</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="91"/>
+        <source>Amount exceeds your balance</source>
+        <translation>Der Betrag übersteigt ihren Kontostand</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="97"/>
+        <source>Total exceeds your balance when the %1 transaction fee is included</source>
+        <translation>Betrag übersteigt ihren Kontostand aufgrund der Transaktionsgebühren in Höhe von %1</translation>
+    </message>
+</context>
+<context>
+    <name>TransactionDescDialog</name>
+    <message>
+        <location filename="../forms/transactiondescdialog.ui" line="14"/>
+        <source>Transaction details</source>
+        <translation>Transaktionsübersicht</translation>
+    </message>
+    <message>
+        <location filename="../forms/transactiondescdialog.ui" line="20"/>
+        <source>This pane shows a detailed description of the transaction</source>
+        <translation>Dieses Fenster zeigt ihnen eine detaillierte Übersicht der Transaktion an</translation>
+    </message>
+</context>
+<context>
+    <name>TransactionTableModel</name>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Status</source>
+        <translation>Status</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Date</source>
+        <translation>Datum</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Type</source>
+        <translation>Beschreibung</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Address</source>
+        <translation>Adresse</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Amount</source>
+        <translation>Betrag</translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../transactiontablemodel.cpp" line="272"/>
+        <source>Open for %n block(s)</source>
+        <translation>
+            <numerusform>Offen für %n Blöcke</numerusform>
+            <numerusform></numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="275"/>
+        <source>Open until %1</source>
+        <translation>Offen bis %1</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="278"/>
+        <source>Offline (%1 confirmations)</source>
+        <translation>Nicht verbunden (%1 Bestätigungen)</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="281"/>
+        <source>Unconfirmed (%1/%2 confirmations)</source>
+        <translation>Unbestätigt (%1/%2 Bestätigungen)</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="284"/>
+        <source>Confirmed (%1 confirmations)</source>
+        <translation>Bestätigt (%1 Bestätigungen)</translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../transactiontablemodel.cpp" line="293"/>
+        <source>Mined balance will be available in %n more blocks</source>
+        <translation>
+            <numerusform>Der Betrag wird in %n Blöcken verfügbar sein</numerusform>
+            <numerusform></numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="299"/>
+        <source>This block was not received by any other nodes and will probably not be accepted!</source>
+        <translation>Dieser Block wurde vom Netzwerk nicht angenommen und wird wahrscheinlich nicht bestätigt werden!</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="302"/>
+        <source>Generated but not accepted</source>
+        <translation>Generiert, jedoch nicht angenommen</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="348"/>
+        <source>Received with</source>
+        <translation>Empfangen durch</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="351"/>
+        <source>Received from IP</source>
+        <translation>Empfangen durch IP</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="354"/>
+        <source>Sent to</source>
+        <translation>An</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="357"/>
+        <source>Sent to IP</source>
+        <translation>An IP</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="360"/>
+        <source>Payment to yourself</source>
+        <translation>Überweisung an Sie selbst</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="363"/>
+        <source>Mined</source>
+        <translation>Erarbeitet</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="578"/>
+        <source>Transaction status. Hover over this field to show number of confirmations.</source>
+        <translation>Transaktionsstatus. Fahren Sie mit der Maus über dieses Feld um die Anzahl der Bestätigungen zu sehen.</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="580"/>
+        <source>Date and time that the transaction was received.</source>
+        <translation>Datum und Uhrzeit als die Transaktion empfangen wurde.</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="582"/>
+        <source>Type of transaction.</source>
+        <translation>Art der Transaktion.</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="584"/>
+        <source>Destination address of transaction.</source>
+        <translation>Empfangsadresse der Transaktion</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="586"/>
+        <source>Amount removed from or added to balance.</source>
+        <translation>Betrag vom Kontostand entfernt oder hinzugefügt.</translation>
+    </message>
+</context>
+<context>
+    <name>TransactionView</name>
+    <message>
+        <location filename="../transactionview.cpp" line="39"/>
+        <location filename="../transactionview.cpp" line="52"/>
+        <source>All</source>
+        <translation>Alle</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="40"/>
+        <source>Today</source>
+        <translation>Heute</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="41"/>
+        <source>This week</source>
+        <translation>Diese Woche</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="42"/>
+        <source>This month</source>
+        <translation>Diesen Monat</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="43"/>
+        <source>Last month</source>
+        <translation>Letzten Monat</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="44"/>
+        <source>This year</source>
+        <translation>Dieses Jahr</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="45"/>
+        <source>Range...</source>
+        <translation>Bereich...</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="53"/>
+        <source>Received with</source>
+        <translation>Empfangen durch</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="55"/>
+        <source>Sent to</source>
+        <translation>An</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="57"/>
+        <source>To yourself</source>
+        <translation>Zu Ihnen selbst</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="58"/>
+        <source>Mined</source>
+        <translation>Erarbeitet</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="59"/>
+        <source>Other</source>
+        <translation>Andere</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="208"/>
+        <source>Export Transaction Data</source>
+        <translation>Transaktionen exportieren</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="210"/>
+        <source>Comma separated file (*.csv)</source>
+        <translation></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="230"/>
+        <source>Error exporting</source>
+        <translation>Fehler beim exportieren</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="230"/>
+        <source>Could not write to file %1.</source>
+        <translation>Konnte Datei %1 nicht zum beschreiben öffnen</translation>
+    </message>
+</context>
+<context>
+    <name>WalletModel</name>
+    <message>
+        <location filename="../walletmodel.cpp" line="95"/>
+        <source>Sending...</source>
+        <translation>Senden...</translation>
+    </message>
+</context>
+<context>
+    <name>bitcoin-core</name>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="3"/>
+        <source>Bitcoin version</source>
+        <translation>Bitcoin Version</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="4"/>
+        <source>Usage:</source>
+        <translation>Verwendung:</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="5"/>
+        <source>Send command to -server or bitcoind
+</source>
+        <translation>RPC-Befehl an bitcoind schicken</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="6"/>
+        <source>List commands
+</source>
+        <translation>RPC-Befehle auflisten</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="7"/>
+        <source>Get help for a command
+</source>
+        <translation>Hilfe</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="8"/>
+        <source>Options:
+</source>
+        <translation>Einstellungen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="9"/>
+        <source>Specify configuration file (default: bitcoin.conf)
+</source>
+        <translation>Bitte wählen Sie eine Konfigurationsdatei (Standard: bitcoin.conf)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="10"/>
+        <source>Specify pid file (default: bitcoind.pid)
+</source>
+        <translation>Bitte wählen Sie den Namen der PID Datei (Standard bitcoind.pid)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="11"/>
+        <source>Generate coins
+</source>
+        <translation>Erarbeite Bitcoins</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="12"/>
+        <source>Don&apos;t generate coins
+</source>
+        <translation>Keine BitCoins erstellen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="13"/>
+        <source>Start minimized
+</source>
+        <translation>minimiert starten</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="14"/>
+        <source>Specify data directory
+</source>
+        <translation>Bitte wählen Sie das Datenverzeichnis</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="15"/>
+        <source>Specify connection timeout (in milliseconds)
+</source>
+        <translation>Netzwerkverbindungsabbruch nach (in Millisekunden)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="16"/>
+        <source>Connect through socks4 proxy
+</source>
+        <translation>Durch SOCKS4-Proxy verbinden</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="17"/>
+        <source>Allow DNS lookups for addnode and connect
+</source>
+        <translation>Erlaube DNS Namensauflösung für addnode und connect</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="18"/>
+        <source>Add a node to connect to
+</source>
+        <translation>Bitcoin Server registrieren</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="19"/>
+        <source>Connect only to the specified node
+</source>
+        <translation>Nur zu den angegebenen Servern verbinden</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="20"/>
+        <source>Don&apos;t accept connections from outside
+</source>
+        <translation>Keine externen Transatkionen akzeptieren</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="21"/>
+        <source>Don&apos;t attempt to use UPnP to map the listening port
+</source>
+        <translation>UPnP nicht verwenden</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="22"/>
+        <source>Attempt to use UPnP to map the listening port
+</source>
+        <translation>Versuche eine Verbindung mittels UPnP herzustellen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="23"/>
+        <source>Fee per KB to add to transactions you send
+</source>
+        <translation>Gebühr pro KB (je von Ihnen verschickte Transatkion)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="24"/>
+        <source>Accept command line and JSON-RPC commands
+</source>
+        <translation>Erlaube Kommandozeilen und RPC Befehle</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="25"/>
+        <source>Run in the background as a daemon and accept commands
+</source>
+        <translation>Als Hintergrunddienst starten</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="26"/>
+        <source>Use the test network
+</source>
+        <translation>Im Testnetz starten</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="27"/>
+        <source>Username for JSON-RPC connections
+</source>
+        <translation>Benutzername für RPC Befehle</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="28"/>
+        <source>Password for JSON-RPC connections
+</source>
+        <translation>Passwort für RPC Befehle</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="29"/>
+        <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332)
+</source>
+        <translation>Port für RPC Befehle</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="30"/>
+        <source>Allow JSON-RPC connections from specified IP address
+</source>
+        <translation>RPC Befehle nur von dieser IP-Adresse erlauben</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="31"/>
+        <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)
+</source>
+        <translation>Befehl an einen anderen BitCoin Server senden</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="32"/>
+        <source>Set key pool size to &lt;n&gt; (default: 100)
+</source>
+        <translation>Menge der vorgenerierten Adressen</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="33"/>
+        <source>Rescan the block chain for missing wallet transactions
+</source>
+        <translation>Block-Chain nach verlorenen Transaktionen durchsuchen (rescan)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="34"/>
+        <source>
+SSL options: (see the Bitcoin Wiki for SSL setup instructions)
+</source>
+        <translation>SSL Einstellungen (Bitte sehen Sie für eine detallierte Beschreibung im BitCoin-Wiki nach</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="37"/>
+        <source>Use OpenSSL (https) for JSON-RPC connections
+</source>
+        <translation>RPC Befehle über HTTPS</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="38"/>
+        <source>Server certificate file (default: server.cert)
+</source>
+        <translation>SSL Server Zertifikat</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="39"/>
+        <source>Server private key (default: server.pem)
+</source>
+        <translation>Privater SSL Schlüssel (Standard: server.pem)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="40"/>
+        <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)
+</source>
+        <translation>Erlaubte Kryptographiealgorithmen (Standard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="43"/>
+        <source>This help message
+</source>
+        <translation>Dieser Hilfetext</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="44"/>
+        <source>Cannot obtain a lock on data directory %s.  Bitcoin is probably already running.</source>
+        <translation>Konnte das Datenverzeichnis %s nicht sperren. Evtl. wurde das Programm mehrfach gestartet.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="47"/>
+        <source>Error loading addr.dat      
+</source>
+        <translation>Fehler beim laden der addr.dat</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="48"/>
+        <source>Error loading blkindex.dat      
+</source>
+        <translation>Fehler beim laden der blkindex.dat</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="49"/>
+        <source>Error loading wallet.dat      
+</source>
+        <translation>Fehler beim laden von wallet.dat</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="50"/>
+        <source>Invalid -proxy address</source>
+        <translation>Fehlerhafte Proxy Adresse</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="51"/>
+        <source>Invalid amount for -paytxfee=&lt;amount&gt;</source>
+        <translation>Ungültige Angabe für -paytxfee=&lt;Betrag&gt;</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="52"/>
+        <source>Warning: -paytxfee is set very high.  This is the transaction fee you will pay if you send a transaction.</source>
+        <translation>Warnung: -paytxfee ist auf einen sehr hohen Wert gesetzt. Dies ist die Gebühr die beim senden einer Transaktion fällig wird.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="55"/>
+        <source>Warning: Disk space is low  </source>
+        <translation>Warnung: Festplattenplatz wird knapp.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="56"/>
+        <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds  </source>
+        <translation>Fehler: Diese Transaktion erfordert eine Gebühr von mindestens %s. Die Gebühr wird fällig aufgrund der Größe, der Komplexität oder der Verwendung erst kürzlich erhaltener BitCoins</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="59"/>
+        <source>Error: Transaction creation failed  </source>
+        <translation>Fehler: Die Transaktion konnte nicht erstellt werden.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="60"/>
+        <source>Sending...</source>
+        <translation>Senden...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="61"/>
+        <source>Error: The transaction was rejected.  This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
+        <translation>Fehler: Die Transaktion wurde zurückgewiesen. Dies kann passieren wenn einige Ihrer BitCoins bereits ausgegeben wurde (zB aus einer Sicherungskopie Ihrer wallet.dat)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="65"/>
+        <source>Invalid amount</source>
+        <translation>Fehlerhafter Betrag</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="66"/>
+        <source>Insufficient funds</source>
+        <translation>Unzureichender Kontostand</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="67"/>
+        <source>Invalid bitcoin address</source>
+        <translation>Fehlerhafte Bitcoin Adresse</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="68"/>
+        <source>Unable to bind to port %d on this computer.  Bitcoin is probably already running.</source>
+        <translation>Fehler beim registrieren des Ports %d auf diesem Computer. Evtl. läuft BitCoin bereits</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="71"/>
+        <source>To use the %s option</source>
+        <translation>Um die Option %s zuu verwenden</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="72"/>
+        <source>Warning: %s, you must set rpcpassword=&lt;password&gt;
+in the configuration file: %s
+If the file does not exist, create it with owner-readable-only file permissions.
+</source>
+        <translation>Warnung: Sie müssen rpcpassword=password in der Konfigurationsdatei angeben.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="77"/>
+        <source>You must set rpcpassword=&lt;password&gt; in the configuration file:
+%s
+If the file does not exist, create it with owner-readable-only file permissions.</source>
+        <translation>Sie müssen rpcpassword=password in der Konfigurationsdatei angeben.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="82"/>
+        <source>Warning: Please check that your computer&apos;s date and time are correct.  If your clock is wrong Bitcoin will not work properly.</source>
+        <translation>Bitte prüfen Sie Ihre Datums- und Uhrzeiteinstellungen, ansonsten kann es sein das BitCoin nicht ordnungsgemäss funktioniert.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="85"/>
+        <source>-beta</source>
+        <translation>-beta</translation>
+    </message>
+</context>
+</TS>
diff --git a/src/qt/locale/bitcoin_nl.ts b/src/qt/locale/bitcoin_nl.ts
new file mode 100644 (file)
index 0000000..afe0dc8
--- /dev/null
@@ -0,0 +1,1441 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="nl_NL">
+<defaultcodec>UTF-8</defaultcodec>
+<context>
+    <name>AboutDialog</name>
+    <message>
+        <location filename="../forms/aboutdialog.ui" line="14"/>
+        <source>About Bitcoin</source>
+        <translation>Over Bitcoin
+</translation>
+    </message>
+    <message>
+        <location filename="../forms/aboutdialog.ui" line="53"/>
+        <source>&lt;b&gt;Bitcoin&lt;/b&gt; version</source>
+        <translation>&lt;b&gt;Bitcoin&lt;/b&gt; versie</translation>
+    </message>
+    <message>
+        <location filename="../forms/aboutdialog.ui" line="85"/>
+        <source>Copyright © 2009-2011 Bitcoin Developers
+
+This is experimental software.
+
+Distributed under the MIT/X11 software license, see the accompanying file license.txt or http://www.opensource.org/licenses/mit-license.php.
+
+This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
+        <translation>Copyright © 2009-2011 Bitcoin-ontwikkelaars
+
+Dit is experimentele software.
+
+Gedistributeerd onder de MIT/X11 software licentie, zie het bijgevoegde bestand 
+license.txt of kijk op http://www.opensource.org/licenses/mit-license.php.
+
+Dit product bevat software ontwikkeld door het OpenSSL project for gebruik 
+in de OpenSSL Toolkit (http://www.openssl.org/), en cryptografische 
+software geschreven door Eric Young (eay@cryptsoft.com)) en UPnP software geschreven
+door Thomas Bernard.
+</translation>
+    </message>
+</context>
+<context>
+    <name>AddressBookDialog</name>
+    <message>
+        <source>Address Book</source>
+        <translation type="obsolete">Adresboek</translation>
+    </message>
+    <message>
+        <source>Sending</source>
+        <translation type="obsolete">Versturen</translation>
+    </message>
+    <message>
+        <source>Receiving</source>
+        <translation type="obsolete">Ontvangen</translation>
+    </message>
+    <message>
+        <source>These are your Bitcoin addresses for receiving payments.  You may want to give a different one to each sender so you can keep track of who is paying you.  The highlighted address is displayed in the main window.</source>
+        <translation type="obsolete">Dit zijn je bitcoin-adressen voor het ontvangen van betalingen.  Het is een goed idee iedere afzender een ander adres te geven zodat je bij kunt houden wie je een betaling stuurt. Het geselecteerde adres is zichtbaar in het hoofdscherm.</translation>
+    </message>
+    <message>
+        <source>Create a new address</source>
+        <translation type="obsolete">Voeg een nieuw adres toe</translation>
+    </message>
+    <message>
+        <source>&amp;New Address...</source>
+        <translation type="obsolete">&amp;Nieuw adres...</translation>
+    </message>
+    <message>
+        <source>Copy the currently selected address to the system clipboard</source>
+        <translation type="obsolete">Kopieer het geselecteerde adres naar het plakbord</translation>
+    </message>
+    <message>
+        <source>&amp;Copy to Clipboard</source>
+        <translation type="obsolete">&amp;Kopieer naar plakbord</translation>
+    </message>
+    <message>
+        <source>Edit the currently selected address</source>
+        <translation type="obsolete">Bewerk het geselecteerde adres</translation>
+    </message>
+    <message>
+        <source>&amp;Edit...</source>
+        <translation type="obsolete">&amp;Bewerken...</translation>
+    </message>
+    <message>
+        <source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source>
+        <translation type="obsolete">Verwijder het geselecteerde adres. Alleen verstuur-adressen kunnen worden verwijderd.</translation>
+    </message>
+    <message>
+        <source>&amp;Delete</source>
+        <translation type="obsolete">&amp;Verwijderen</translation>
+    </message>
+</context>
+<context>
+    <name>AddressBookPage</name>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="14"/>
+        <source>Address Book</source>
+        <translation type="unfinished">Adresboek</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="20"/>
+        <source>These are your Bitcoin addresses for receiving payments.  You may want to give a different one to each sender so you can keep track of who is paying you.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="33"/>
+        <source>Double-click to edit address or label</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="57"/>
+        <source>Create a new address</source>
+        <translation type="unfinished">Voeg een nieuw adres toe</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="60"/>
+        <source>&amp;New Address...</source>
+        <translation type="unfinished">&amp;Nieuw adres...</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="71"/>
+        <source>Copy the currently selected address to the system clipboard</source>
+        <translation type="unfinished">Kopieer het geselecteerde adres naar het plakbord</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="74"/>
+        <source>&amp;Copy to Clipboard</source>
+        <translation type="unfinished">&amp;Kopieer naar plakbord</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="85"/>
+        <source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source>
+        <translation type="unfinished">Verwijder het geselecteerde adres. Alleen verstuur-adressen kunnen worden verwijderd.</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="88"/>
+        <source>&amp;Delete</source>
+        <translation type="unfinished">&amp;Verwijderen</translation>
+    </message>
+</context>
+<context>
+    <name>AddressTableModel</name>
+    <message>
+        <location filename="../addresstablemodel.cpp" line="78"/>
+        <source>Label</source>
+        <translation>Label</translation>
+    </message>
+    <message>
+        <location filename="../addresstablemodel.cpp" line="78"/>
+        <source>Address</source>
+        <translation>Adres</translation>
+    </message>
+    <message>
+        <location filename="../addresstablemodel.cpp" line="114"/>
+        <source>(no label)</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>Default receiving address</source>
+        <translation type="obsolete">Standaard ontvangst-adres</translation>
+    </message>
+</context>
+<context>
+    <name>BitcoinGUI</name>
+    <message>
+        <source>Bitcoin</source>
+        <translation type="obsolete">Bitcoin</translation>
+    </message>
+    <message>
+        <source>Your Bitcoin address:</source>
+        <translation type="obsolete">Uw bitcoin-adres:</translation>
+    </message>
+    <message>
+        <source>Your current default receiving address</source>
+        <translation type="obsolete">Uw huidig standaard ontvangst-adres</translation>
+    </message>
+    <message>
+        <source>&amp;New...</source>
+        <translation type="obsolete">&amp;Nieuw...</translation>
+    </message>
+    <message>
+        <source>Create new receiving address</source>
+        <translation type="obsolete">Maak nieuw ontvangst-adres</translation>
+    </message>
+    <message>
+        <source>&amp;Copy to clipboard</source>
+        <translation type="obsolete">&amp;Kopieer naar plakbord</translation>
+    </message>
+    <message>
+        <source>Copy current receiving address to the system clipboard</source>
+        <translation type="obsolete">Kopieer huidig ontvangst-adres naar plakbord</translation>
+    </message>
+    <message>
+        <source>Balance:</source>
+        <translation type="obsolete">Saldo:</translation>
+    </message>
+    <message>
+        <source>Your current balance</source>
+        <translation type="obsolete">Uw huidige saldo</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="112"/>
+        <source>Number of connections to other clients</source>
+        <translation>Aantal verbindingen met andere clients</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="117"/>
+        <source>Number of blocks in the block chain</source>
+        <translation>Aantal blokken in de block-chain</translation>
+    </message>
+    <message>
+        <source>Number of transactions in your wallet</source>
+        <translation type="obsolete">Aantal transacties in je portefeuille</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="120"/>
+        <source>Synchronizing with network...</source>
+        <translation>Synchroniseren met netwerk...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="123"/>
+        <source>Block chain synchronization in progress</source>
+        <translation>Bezig met blokken-database-synchronisatie</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="169"/>
+        <source>&amp;Exit</source>
+        <translation>A&amp;fsluiten</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="170"/>
+        <source>Quit application</source>
+        <translation>De applicatie afsluiten</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="158"/>
+        <source>&amp;Send coins</source>
+        <translation>&amp;Verstuur coins</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="159"/>
+        <source>Send coins to a bitcoin address</source>
+        <translation>Coins versturen naar een bitcoin-adres</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="148"/>
+        <source>&amp;Address Book</source>
+        <translation>&amp;Adresboek</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="50"/>
+        <source>Bitcoin Wallet</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="140"/>
+        <source>&amp;Overview</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="144"/>
+        <source>&amp;Transactions</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="149"/>
+        <source>Edit the list of stored addresses and labels</source>
+        <translation>Bewerk de lijst van adressen en labels</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="153"/>
+        <source>&amp;Receive coins</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="154"/>
+        <source>Show the list of addresses for receiving payments</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="171"/>
+        <source>&amp;About</source>
+        <translation>&amp;Over Bitcoin</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="172"/>
+        <source>Show information about Bitcoin</source>
+        <translation>Laat informatie zien over Bitcoin</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="177"/>
+        <source>&amp;Export...</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="178"/>
+        <source>Export data in current view to a file</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="193"/>
+        <source>[testnet]</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="408"/>
+        <source>Date: </source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="409"/>
+        <source>Amount: </source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="410"/>
+        <source>Type: </source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="411"/>
+        <source>Address: </source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>Your &amp;Receiving Addresses...</source>
+        <translation type="obsolete">&amp;Uw ontvangstadressen...</translation>
+    </message>
+    <message>
+        <source>Show the list of receiving addresses and edit their labels</source>
+        <translation type="obsolete">Laat de lijst zien van ontvangst-adressen en bewerk de labels</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="173"/>
+        <source>&amp;Options...</source>
+        <translation>&amp;Opties...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="174"/>
+        <source>Modify configuration options for bitcoin</source>
+        <translation>Verander instellingen van Bitcoin</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="175"/>
+        <source>Open &amp;Bitcoin</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="176"/>
+        <source>Show the Bitcoin window</source>
+        <translation>Laat het Bitcoin-venster zien</translation>
+    </message>
+    <message>
+        <source>All transactions</source>
+        <translation type="obsolete">Alle transacties</translation>
+    </message>
+    <message>
+        <source>Sent/Received</source>
+        <translation type="obsolete">Verzonden/Ontvangen</translation>
+    </message>
+    <message>
+        <source>Sent</source>
+        <translation type="obsolete">Verzonden</translation>
+    </message>
+    <message>
+        <source>Received</source>
+        <translation type="obsolete">Ontvangen</translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../bitcoingui.cpp" line="298"/>
+        <source>%n connection(s)</source>
+        <translation>
+            <numerusform>%n verbinding</numerusform>
+            <numerusform>%n verbindingen</numerusform>
+        </translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../bitcoingui.cpp" line="317"/>
+        <source>%n block(s)</source>
+        <translation>
+            <numerusform>%n blok</numerusform>
+            <numerusform>%n blokken</numerusform>
+        </translation>
+    </message>
+    <message numerus="yes">
+        <source>%n transaction(s)</source>
+        <translation type="obsolete">
+            <numerusform>%n transactie</numerusform>
+            <numerusform>%n transacties</numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="375"/>
+        <source>This transaction is over the size limit.  You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network.  Do you want to pay the fee?</source>
+        <translation>Deze transactie overschrijdt de limiet.  Om de transactie alsnog te verwerken kun je een fooi betalen van %1. Deze zal betaald worden aan de node die uw transactie verwerkt. Wil je doorgaan en deze fooi betalen?</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="379"/>
+        <source>Sending...</source>
+        <translation>Versturen...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="407"/>
+        <source>Incoming transaction</source>
+        <translation>Binnenkomende transactie</translation>
+    </message>
+</context>
+<context>
+    <name>ClientModel</name>
+    <message>
+        <source>Sending...</source>
+        <translation type="obsolete">Versturen...</translation>
+    </message>
+</context>
+<context>
+    <name>EditAddressDialog</name>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="14"/>
+        <source>Edit Address</source>
+        <translation>Bewerk Adres</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="25"/>
+        <source>&amp;Label</source>
+        <translation>&amp;Label</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="42"/>
+        <source>&amp;Address</source>
+        <translation>&amp;Adres</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="35"/>
+        <source>The label associated with this address book entry</source>
+        <translation>Het label dat is geassocieerd met dit adres</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="52"/>
+        <source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
+        <translation>Het adres dat is geassocieerd met de label. Dit kan alleen worden veranderd voor verzend-adressen.</translation>
+    </message>
+    <message>
+        <source>Set as default receiving address</source>
+        <translation type="obsolete">Stel in as standaard ontvangst-adres</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="20"/>
+        <source>New receiving address</source>
+        <translation>Nieuw ontvangst-adres</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="24"/>
+        <source>New sending address</source>
+        <translation>Nieuw verzend-adres</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="27"/>
+        <source>Edit receiving address</source>
+        <translation>Bewerk ontvangst-adres</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="31"/>
+        <source>Edit sending address</source>
+        <translation>Bewerk ontvangst-adres</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="89"/>
+        <source>The entered address &quot;%1&quot; is not a valid bitcoin address.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="97"/>
+        <source>The entered address &quot;%1&quot; is already in the address book.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>The address %1 is already in the address book.</source>
+        <translation type="obsolete">Het adres %1 staat al in het adresboek.</translation>
+    </message>
+</context>
+<context>
+    <name>MainOptionsPage</name>
+    <message>
+        <location filename="../optionsdialog.cpp" line="142"/>
+        <source>&amp;Start Bitcoin on window system startup</source>
+        <translation>&amp;Start Bitcoin wanneer het systeem opstart</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="143"/>
+        <source>Automatically start Bitcoin after the computer is turned on</source>
+        <translation>Start Bitcoin automatisch wanneer het systeem start</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="146"/>
+        <source>&amp;Minimize to the tray instead of the taskbar</source>
+        <translation>&amp;Minimaliseer tot systeemvak in plaats van de taakbalk</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="147"/>
+        <source>Show only a tray icon after minimizing the window</source>
+        <translation>Laat alleen een systeemvak-icoon zien wanneer het venster geminimaliseerd is</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="150"/>
+        <source>Map port using &amp;UPnP</source>
+        <translation>Portmapping via &amp;UPnP</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="151"/>
+        <source>Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
+        <translation>Open de Bitcoin-poort automatisch op de router. Dit werkt alleen als de router UPnP ondersteunt.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="154"/>
+        <source>M&amp;inimize on close</source>
+        <translation>&amp;Minimaliseer bij sluiten van het venster</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="155"/>
+        <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
+        <translation>Minimiliseer het venster in de plaats van de applicatie af te sluiten als het venster gesloten wordt. Wanneer deze optie aan staan, kan de applicatie alleen worden afgesloten door Afsluiten te kiezen in het menu.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="158"/>
+        <source>&amp;Connect through SOCKS4 proxy:</source>
+        <translation>&amp;Verbind via socks4 proxy: </translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="159"/>
+        <source>Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)</source>
+        <translation>Verbind met het Bitcoin-netwerk door een SOCKS4 proxy (bijvoorbeeld Tor)</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="164"/>
+        <source>Proxy &amp;IP: </source>
+        <translation>Proxy &amp;IP:</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="170"/>
+        <source>IP address of the proxy (e.g. 127.0.0.1)</source>
+        <translation>IP adres van de proxy (bijv. 127.0.0.1)</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="173"/>
+        <source>&amp;Port: </source>
+        <translation>&amp;Poort:</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="179"/>
+        <source>Port of the proxy (e.g. 1234)</source>
+        <translation>Poort waarop de proxy luistert (bijv. 1234)</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="185"/>
+        <source>Optional transaction fee per KB that helps make sure your transactions are processed quickly.  Most transactions are 1KB.  Fee 0.01 recommended.</source>
+        <translation>Optionele transactiefooi per KB die helpt ervoor zorgen dat uw transacties snel verwerkt worden. De meeste transacties zijn 1KB. Fooi 0.01 is aangeraden.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="191"/>
+        <source>Pay transaction &amp;fee</source>
+        <translation>Transactie&amp;fooi</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="194"/>
+        <source>Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended.</source>
+        <translation>Optionele transactiefooi per KB die helpt ervoor zorgen dat uw transacties snel verwerkt worden. De meeste transacties zijn 1KB. Fooi 0.01 is aangeraden.</translation>
+    </message>
+</context>
+<context>
+    <name>OptionsDialog</name>
+    <message>
+        <location filename="../optionsdialog.cpp" line="54"/>
+        <source>Main</source>
+        <translation>Algemeen</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="74"/>
+        <source>Options</source>
+        <translation>Opties</translation>
+    </message>
+</context>
+<context>
+    <name>OverviewPage</name>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="14"/>
+        <source>Form</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="38"/>
+        <source>Balance:</source>
+        <translation type="unfinished">Saldo:</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="45"/>
+        <source>123.456 BTC</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="52"/>
+        <source>Number of transactions:</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="59"/>
+        <source>0</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../overviewpage.cpp" line="14"/>
+        <source>Your current balance</source>
+        <translation type="unfinished">Uw huidige saldo</translation>
+    </message>
+</context>
+<context>
+    <name>SendCoinsDialog</name>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="14"/>
+        <location filename="../sendcoinsdialog.cpp" line="56"/>
+        <location filename="../sendcoinsdialog.cpp" line="78"/>
+        <location filename="../sendcoinsdialog.cpp" line="84"/>
+        <location filename="../sendcoinsdialog.cpp" line="90"/>
+        <location filename="../sendcoinsdialog.cpp" line="96"/>
+        <source>Send Coins</source>
+        <translation>Verstuur coins</translation>
+    </message>
+    <message>
+        <source>&amp;Amount:</source>
+        <translation type="obsolete">&amp;Hoeveelheid:</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="95"/>
+        <source>Pay &amp;To:</source>
+        <translation>Betaal &amp;aan:</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="27"/>
+        <source>The address to send the payment to  (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
+        <translation>Voer een bitcoin-adres (bijvoorbeeld: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="47"/>
+        <source>Alt+A</source>
+        <translation>Alt+A</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="60"/>
+        <source>Paste address from system clipboard</source>
+        <translation>Plak adres uit systeemplakbord</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="131"/>
+        <location filename="../sendcoinsdialog.cpp" line="23"/>
+        <source>Enter a label for this address to add it to your address book</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="140"/>
+        <source>&amp;Label:</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>&amp;Paste</source>
+        <translation type="obsolete">&amp;Plakken</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="37"/>
+        <source>Look up adress in address book</source>
+        <translation>Opzoeken in adresboek</translation>
+    </message>
+    <message>
+        <source>Address &amp;Book...</source>
+        <translation type="obsolete">Adres&amp;boek....</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="70"/>
+        <source>Alt+P</source>
+        <translation>Alt+P</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="82"/>
+        <source>A&amp;mount:</source>
+        <translation>&amp;Hoeveelheid:</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="113"/>
+        <source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
+        <translation>Voer een bitcoin-adres in (bijvoorbeeld: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
+    </message>
+    <message>
+        <source>Add specified destination address to address book</source>
+        <translation type="obsolete">Voeg het ingevoerde doel-adres toe aan het adresboek</translation>
+    </message>
+    <message>
+        <source>A&amp;dd to address book as</source>
+        <translation type="obsolete">&amp;Voeg toe aan adresboek als</translation>
+    </message>
+    <message>
+        <source>Label to add address as</source>
+        <translation type="obsolete">Label om toe te kennen aan adres in adresboek</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="183"/>
+        <source>Confirm the send action</source>
+        <translation>Bevestig de zend-transactie</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="186"/>
+        <source>&amp;Send</source>
+        <translation>&amp;Versturen</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="206"/>
+        <source>Abort the send action</source>
+        <translation>De transactie annuleren</translation>
+    </message>
+    <message>
+        <source>The amount to pay must be a valid number.</source>
+        <translation type="obsolete">Het ingevoerde bedrag is geen geldig getal.</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="57"/>
+        <source>Must fill in an amount to pay.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="65"/>
+        <source>Confirm send coins</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="66"/>
+        <source>Are you sure you want to send %1 BTC to %2 (%3)?</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="79"/>
+        <source>The recepient address is not valid, please recheck.</source>
+        <translation>Het verzendadres is niet geld.</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="85"/>
+        <source>The amount to pay must be larger than 0.</source>
+        <translation>Het ingevoerde gedrag moet groter zijn dan 0.</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="91"/>
+        <source>Amount exceeds your balance</source>
+        <translation>Hoeveelheid overschrijdt uw huidige balans</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="97"/>
+        <source>Total exceeds your balance when the %1 transaction fee is included</source>
+        <translation>Totaal overschrijdt uw huidige balans wanneer de %1 transactiefooi is meegerekend</translation>
+    </message>
+</context>
+<context>
+    <name>TransactionDescDialog</name>
+    <message>
+        <location filename="../forms/transactiondescdialog.ui" line="14"/>
+        <source>Transaction details</source>
+        <translation>Transactiedetails</translation>
+    </message>
+    <message>
+        <location filename="../forms/transactiondescdialog.ui" line="20"/>
+        <source>This pane shows a detailed description of the transaction</source>
+        <translation>Dit venster laat een uitgebreide beschrijving van de transactie zien</translation>
+    </message>
+</context>
+<context>
+    <name>TransactionTableModel</name>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Status</source>
+        <translation>Status</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Date</source>
+        <translation>Datum</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Type</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Address</source>
+        <translation type="unfinished">Adres</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="211"/>
+        <source>Amount</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="278"/>
+        <source>Offline (%1 confirmations)</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="281"/>
+        <source>Unconfirmed (%1/%2 confirmations)</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="284"/>
+        <source>Confirmed (%1 confirmations)</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../transactiontablemodel.cpp" line="293"/>
+        <source>Mined balance will be available in %n more blocks</source>
+        <translation type="unfinished">
+            <numerusform></numerusform>
+            <numerusform></numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="299"/>
+        <source>This block was not received by any other nodes and will probably not be accepted!</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="302"/>
+        <source>Generated but not accepted</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="348"/>
+        <source>Received with</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="351"/>
+        <source>Received from IP</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="354"/>
+        <source>Sent to</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="357"/>
+        <source>Sent to IP</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="363"/>
+        <source>Mined</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="582"/>
+        <source>Type of transaction.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="584"/>
+        <source>Destination address of transaction.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="586"/>
+        <source>Amount removed from or added to balance.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>Description</source>
+        <translation type="obsolete">Beschrijving</translation>
+    </message>
+    <message>
+        <source>Debit</source>
+        <translation type="obsolete">Debet</translation>
+    </message>
+    <message>
+        <source>Credit</source>
+        <translation type="obsolete">Credit</translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../transactiontablemodel.cpp" line="272"/>
+        <source>Open for %n block(s)</source>
+        <translation>
+            <numerusform>Open gedurende %n blok</numerusform>
+            <numerusform>Open gedurende %n blokken</numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="275"/>
+        <source>Open until %1</source>
+        <translation>Open tot %1</translation>
+    </message>
+    <message>
+        <source>Offline (%1)</source>
+        <translation type="obsolete">Offline (%1)</translation>
+    </message>
+    <message>
+        <source>Unconfirmed (%1/%2)</source>
+        <translation type="obsolete">Niet bevestigd (%1/%2)</translation>
+    </message>
+    <message>
+        <source>Confirmed (%1)</source>
+        <translation type="obsolete">Bevestigd (%1)</translation>
+    </message>
+    <message>
+        <source>Received with: </source>
+        <translation type="obsolete">Ontvangen met:</translation>
+    </message>
+    <message>
+        <source>Received from IP: </source>
+        <translation type="obsolete">Ontvangen van IP:</translation>
+    </message>
+    <message>
+        <source>Sent to: </source>
+        <translation type="obsolete">Verzonden aan:</translation>
+    </message>
+    <message>
+        <source>Sent to IP: </source>
+        <translation type="obsolete">Verzonden aan IP:</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="360"/>
+        <source>Payment to yourself</source>
+        <translation>Betaling aan uzelf</translation>
+    </message>
+    <message numerus="yes">
+        <source>Generated (matures in %n more blocks)</source>
+        <translation type="obsolete">
+            <numerusform>Gegenereerd (wordt volwassen na %n blok)</numerusform>
+            <numerusform>Gegenereerd (wordt volwassen na %n blokken)</numerusform>
+        </translation>
+    </message>
+    <message>
+        <source>Generated</source>
+        <translation type="obsolete">Gegenereerd</translation>
+    </message>
+    <message>
+        <source>Generated - Warning: This block was not received by any other nodes and will probably not be accepted!</source>
+        <translation type="obsolete">Gegenereerd - Waarschuwing: Dit blok is niet ontvangen door andere nodes en zal waarschijnlijk niet geaccepteerd worden!</translation>
+    </message>
+    <message>
+        <source>Generated (not accepted)</source>
+        <translation type="obsolete">Gegenereerd (niet geaccepteerd)</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="578"/>
+        <source>Transaction status. Hover over this field to show number of confirmations.</source>
+        <translation>Transactiestatus. Hou de muiscursor boven dit veld om het aantal bevestigingen te laten zien.</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="580"/>
+        <source>Date and time that the transaction was received.</source>
+        <translation>Datum en tijd waarop deze transactie is ontvangen.</translation>
+    </message>
+    <message>
+        <source>Short description of the transaction.</source>
+        <translation type="obsolete">Korte beschrijving van de transactie.</translation>
+    </message>
+    <message>
+        <source>Amount removed from balance.</source>
+        <translation type="obsolete">Bedrag afgeschreven van saldo.</translation>
+    </message>
+    <message>
+        <source>Amount added to balance.</source>
+        <translation type="obsolete">Bedrag bijgeschreven bij saldo.</translation>
+    </message>
+</context>
+<context>
+    <name>TransactionView</name>
+    <message>
+        <location filename="../transactionview.cpp" line="39"/>
+        <location filename="../transactionview.cpp" line="52"/>
+        <source>All</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="40"/>
+        <source>Today</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="41"/>
+        <source>This week</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="42"/>
+        <source>This month</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="43"/>
+        <source>Last month</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="44"/>
+        <source>This year</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="45"/>
+        <source>Range...</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="53"/>
+        <source>Received with</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="55"/>
+        <source>Sent to</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="57"/>
+        <source>To yourself</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="58"/>
+        <source>Mined</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="59"/>
+        <source>Other</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="209"/>
+        <source>Export Transaction Data</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="211"/>
+        <source>Comma separated file (*.csv)</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="231"/>
+        <source>Error exporting</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="231"/>
+        <source>Could not write to file %1.</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>WalletModel</name>
+    <message>
+        <location filename="../walletmodel.cpp" line="95"/>
+        <source>Sending...</source>
+        <translation type="unfinished">Versturen...</translation>
+    </message>
+</context>
+<context>
+    <name>bitcoin-core</name>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="3"/>
+        <source>Bitcoin version</source>
+        <translation>Bitcoin</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="4"/>
+        <source>Usage:</source>
+        <translation>Gebruik:</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="5"/>
+        <source>Send command to -server or bitcoind
+</source>
+        <translation>Zend commando naar -server of bitcoind
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="6"/>
+        <source>List commands
+</source>
+        <translation>List van commando&apos;s
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="7"/>
+        <source>Get help for a command
+</source>
+        <translation>Toon hulp voor een commando
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="8"/>
+        <source>Options:
+</source>
+        <translation>Opties:
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="9"/>
+        <source>Specify configuration file (default: bitcoin.conf)
+</source>
+        <translation>Specifieer configuratiebestand (standaard: bitcoin.conf)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="10"/>
+        <source>Specify pid file (default: bitcoind.pid)
+</source>
+        <translation>Specifieer pid-bestand (standaard: bitcoind.pid)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="11"/>
+        <source>Generate coins
+</source>
+        <translation>Genereer coins
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="12"/>
+        <source>Don&apos;t generate coins
+</source>
+        <translation>Genereer geen coins
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="13"/>
+        <source>Start minimized
+</source>
+        <translation>Geminimaliseerd starten
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="14"/>
+        <source>Specify data directory
+</source>
+        <translation>Stel datamap in
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="15"/>
+        <source>Specify connection timeout (in milliseconds)
+</source>
+        <translation>Gelieve de time-out tijd te specifieren (in milliseconden)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="16"/>
+        <source>Connect through socks4 proxy
+</source>
+        <translation>Verbind via socks4 proxy
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="17"/>
+        <source>Allow DNS lookups for addnode and connect
+</source>
+        <translation>Sta DNS-opzoeking toe voor addnode en connect
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="18"/>
+        <source>Add a node to connect to
+</source>
+        <translation>Voeg een node toe om mee te verbinden
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="19"/>
+        <source>Connect only to the specified node
+</source>
+        <translation>Verbind alleen met deze node
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="20"/>
+        <source>Don&apos;t accept connections from outside
+</source>
+        <translation>Sta geen verbindingen van buitenaf toe
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="21"/>
+        <source>Don&apos;t attempt to use UPnP to map the listening port
+</source>
+        <translation>Probeer geen UPnP te gebruiken om de poort waarop geluisterd wordt te mappen
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="22"/>
+        <source>Attempt to use UPnP to map the listening port
+</source>
+        <translation>Probeer UPnP te gebruiken om de poort waarop geluisterd wordt te mappen
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="23"/>
+        <source>Fee per KB to add to transactions you send
+</source>
+        <translation>Fooi per KB om aan transacties die gezonden worden toe te voegen
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="24"/>
+        <source>Accept command line and JSON-RPC commands
+</source>
+        <translation>Aanvaard commandolijn en JSON-RPC commando&apos;s
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="25"/>
+        <source>Run in the background as a daemon and accept commands
+</source>
+        <translation>Draai in de achtergrond als daemon en aanvaard commando&apos;s
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="26"/>
+        <source>Use the test network
+</source>
+        <translation>Gebruik het test-netwerk
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="27"/>
+        <source>Username for JSON-RPC connections
+</source>
+        <translation>Gebruikersnaam voor JSON-RPC verbindingen
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="28"/>
+        <source>Password for JSON-RPC connections
+</source>
+        <translation>Wachtwoord voor JSON-RPC verbindingen
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="29"/>
+        <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332)
+</source>
+        <translation>Luister voor JSON-RPC verbindingen op &lt;poort&gt; (standaard: 8332)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="30"/>
+        <source>Allow JSON-RPC connections from specified IP address
+</source>
+        <translation>Enkel JSON-RPC verbindingen van opgegeven IP adres toestaan
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="31"/>
+        <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)
+</source>
+        <translation>Zend commando&apos;s naar proces dat op &lt;ip&gt; draait (standaard: 127.0.0.1)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="32"/>
+        <source>Set key pool size to &lt;n&gt; (default: 100)
+</source>
+        <translation>Stel sleutelpoelgrootte in op &lt;n&gt; (standaard: 100)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="33"/>
+        <source>Rescan the block chain for missing wallet transactions
+</source>
+        <translation>Doorzoek de blokken database op ontbrekende portefeuille-transacties
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="34"/>
+        <source>
+SSL options: (see the Bitcoin Wiki for SSL setup instructions)
+</source>
+        <translation>
+SSL opties: (zie de Bitcoin wiki voor SSL instructies)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="37"/>
+        <source>Use OpenSSL (https) for JSON-RPC connections
+</source>
+        <translation>Gebruik OpenSSL (https) voor JSON-RPC verbindingen
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="38"/>
+        <source>Server certificate file (default: server.cert)
+</source>
+        <translation>Certificaat-bestand voor server (standaard: server.cert)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="39"/>
+        <source>Server private key (default: server.pem)
+</source>
+        <translation>Geheime sleutel voor server (standaard: server.pem)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="40"/>
+        <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)
+</source>
+        <translation>Aanvaardbare ciphers (standaard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="43"/>
+        <source>This help message
+</source>
+        <translation>Dit helpbericht
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="44"/>
+        <source>Cannot obtain a lock on data directory %s.  Bitcoin is probably already running.</source>
+        <translation>Kan geen lock op de gegevensdirectory %s verkrijgen. Bitcoin draait vermoedelijk reeds.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="47"/>
+        <source>Error loading addr.dat      
+</source>
+        <translation>Fout bij laden van bestand addr.dat      
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="48"/>
+        <source>Error loading blkindex.dat      
+</source>
+        <translation>Fout bij laden van bestand addr.dat      
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="49"/>
+        <source>Error loading wallet.dat      
+</source>
+        <translation>Fout bij laden van bestand wallet.dat      
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="50"/>
+        <source>Invalid -proxy address</source>
+        <translation>Foutief -proxy adres</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="51"/>
+        <source>Invalid amount for -paytxfee=&lt;amount&gt;</source>
+        <translation>Ongeldig bedrag voor -paytxfee=&lt;bedrag&gt;</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="52"/>
+        <source>Warning: -paytxfee is set very high.  This is the transaction fee you will pay if you send a transaction.</source>
+        <translation>Waarschuwing: -paytxfee is zeer hoog ingesteld.  Dit is de fooi die betaald wordt bij het zenden van een transactie.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="55"/>
+        <source>Warning: Disk space is low  </source>
+        <translation>Waarschuwing: Weinig schijfruimte over  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="56"/>
+        <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds  </source>
+        <translation>Fout: Deze transactie vergt een fooi van ten minste %s omwille van zijn bedrag, complexiteit, of gebruik van recent ontvangen coins  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="59"/>
+        <source>Error: Transaction creation failed  </source>
+        <translation>Fout: Aanmaken van transactie mislukt  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="60"/>
+        <source>Sending...</source>
+        <translation>Versturen...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="61"/>
+        <source>Error: The transaction was rejected.  This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
+        <translation>Fout: De transactie is afgekeurd.  Dit kan gebeuren als bepaalde coins in je Portefeuille al zijn uitgegeven. Dit kan veroorzaakt worden doordat je een kopie van wallet.dat gebruikt hebt en enkel daar je uitgave geregistreerd is.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="65"/>
+        <source>Invalid amount</source>
+        <translation>Foutieve hoeveelheid</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="66"/>
+        <source>Insufficient funds</source>
+        <translation>Onvoldoende saldo</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="67"/>
+        <source>Invalid bitcoin address</source>
+        <translation>Foutief bitcoin-adres</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="68"/>
+        <source>Unable to bind to port %d on this computer.  Bitcoin is probably already running.</source>
+        <translation>Kan niet binden met poort %d op deze computer. Bitcoin draait vermoedelijk reeds.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="71"/>
+        <source>To use the %s option</source>
+        <translation>Om de %s optie te gebruiken</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="72"/>
+        <source>Warning: %s, you must set rpcpassword=&lt;password&gt;
+in the configuration file: %s
+If the file does not exist, create it with owner-readable-only file permissions.
+</source>
+        <translation>Waarschuwing: %s, rpcpassword=&lt;password&gt; moet ingesteld zijn
+in het configuratie bestand: %s
+Als het bestand nog niet bestaat, maak het dan aan met enkel-leesbaar-door-eigenaar rechten.
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="77"/>
+        <source>You must set rpcpassword=&lt;password&gt; in the configuration file:
+%s
+If the file does not exist, create it with owner-readable-only file permissions.</source>
+        <translation>rpcpassword=&lt;password&gt; moet ingesteld in het configuratie bestand:
+%s
+Als het bestand nog niet bestaat, maak het dan aan met enkel-leesbaar-door-eigenaar rechten.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="82"/>
+        <source>Warning: Please check that your computer&apos;s date and time are correct.  If your clock is wrong Bitcoin will not work properly.</source>
+        <translation>Waarschuwing: Controleer of uw computers datum en tijd correct ingesteld zijn. Als uw klok fout staat zal Bitcoin niet correct werken.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="85"/>
+        <source>-beta</source>
+        <translation>-beta</translation>
+    </message>
+</context>
+</TS>
diff --git a/src/qt/locale/bitcoin_ru.ts b/src/qt/locale/bitcoin_ru.ts
new file mode 100644 (file)
index 0000000..6085602
--- /dev/null
@@ -0,0 +1,2173 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="ru_RU">
+<context>
+    <name>AboutDialog</name>
+    <message>
+        <location filename="../forms/aboutdialog.ui" line="14"/>
+        <source>About Bitcoin</source>
+        <translation>О Bitcoin&apos;е</translation>
+    </message>
+    <message>
+        <location filename="../forms/aboutdialog.ui" line="53"/>
+        <source>&lt;b&gt;Bitcoin&lt;/b&gt; version</source>
+        <translation>Версия Bitcoin&apos;а</translation>
+    </message>
+    <message utf8="true">
+        <location filename="../forms/aboutdialog.ui" line="85"/>
+        <source>Copyright © 2009-2011 Bitcoin Developers
+
+This is experimental software.
+
+Distributed under the MIT/X11 software license, see the accompanying file license.txt or http://www.opensource.org/licenses/mit-license.php.
+
+This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
+        <translation>Copyright © 2009-2011 Разработчики сети Bitcoin
+
+ВНИМАНИЕ: этот софт является экспериментальным!
+
+Распространяется под лицензией MIT/X11, за дополнительной информацией обращайтесь к прилагающемуся файлу license.txt или документу по данной ссылке: http://www.opensource.org/licenses/mit-license.php.
+
+Данный продукт включает в себя разработки проекта OpenSSL (http://www.openssl.org/), криптографические функции и алгоритмы, написанные Эриком Янгом (eay@cryptsoft.com) и функции для работы с UPnP за авторством Томаса Бернарда.</translation>
+    </message>
+</context>
+<context>
+    <name>AddressBookPage</name>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="14"/>
+        <source>Address Book</source>
+        <translation>Адресная книга</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="20"/>
+        <source>These are your Bitcoin addresses for receiving payments.  You may want to give a different one to each sender so you can keep track of who is paying you.</source>
+        <translation>Здесь перечислены Ваши адреса для получения платежей.  Вы можете использовать их для того, чтобы давать разным людям разные адреса и таким образом иметь возможность отслеживать кто и сколько Вам платил, а так же поддерживать бо́льшую анонимность..</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="33"/>
+        <source>Double-click to edit address or label</source>
+        <translation>Для того, чтобы изменить адрес или метку давжды кликните по изменяемому объекту</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="57"/>
+        <source>Create a new address</source>
+        <translation>Создать новый адрес</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="60"/>
+        <source>&amp;New Address...</source>
+        <translation>&amp;Создать адрес...</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="71"/>
+        <source>Copy the currently selected address to the system clipboard</source>
+        <translation>Копировать текущий выделенный адрес в буфер обмена</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="74"/>
+        <source>&amp;Copy to Clipboard</source>
+        <translation>&amp;Kопировать</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="85"/>
+        <source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source>
+        <translation>Удалить выделенный адрес из списка (могут быть удалены только записи из адресной книги).</translation>
+    </message>
+    <message>
+        <location filename="../forms/addressbookpage.ui" line="88"/>
+        <source>&amp;Delete</source>
+        <translation>&amp;Удалить</translation>
+    </message>
+    <message>
+        <location filename="../addressbookpage.cpp" line="197"/>
+        <source>Export Address Book Data</source>
+        <translation>Экспортировать адресную книгу</translation>
+    </message>
+    <message>
+        <location filename="../addressbookpage.cpp" line="199"/>
+        <source>Comma separated file (*.csv)</source>
+        <translation>Текст, разделённый запятыми (*.csv)</translation>
+    </message>
+    <message>
+        <location filename="../addressbookpage.cpp" line="212"/>
+        <source>Error exporting</source>
+        <translation>Ошибка экспорта</translation>
+    </message>
+    <message>
+        <location filename="../addressbookpage.cpp" line="212"/>
+        <source>Could not write to file %1.</source>
+        <translation>Невозможно записать в файл %1.</translation>
+    </message>
+</context>
+<context>
+    <name>AddressTableModel</name>
+    <message>
+        <location filename="../addresstablemodel.cpp" line="78"/>
+        <source>Label</source>
+        <translation>Метка</translation>
+    </message>
+    <message>
+        <location filename="../addresstablemodel.cpp" line="78"/>
+        <source>Address</source>
+        <translation>Адрес</translation>
+    </message>
+    <message>
+        <location filename="../addresstablemodel.cpp" line="114"/>
+        <source>(no label)</source>
+        <translation>[нет метки]</translation>
+    </message>
+</context>
+<context>
+    <name>BitcoinGUI</name>
+    <message>
+        <location filename="../bitcoingui.cpp" line="53"/>
+        <source>Bitcoin Wallet</source>
+        <translation>Bitcoin-бумажник</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="61"/>
+        <source>&amp;File</source>
+        <translation>&amp;Файл</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="67"/>
+        <source>&amp;Settings</source>
+        <translation>&amp;Настройки</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="70"/>
+        <source>&amp;Help</source>
+        <translation>&amp;Помощь</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="74"/>
+        <source>Tabs toolbar</source>
+        <translation>Панель вкладок</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="82"/>
+        <source>Actions toolbar</source>
+        <translation>Панель действий</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="130"/>
+        <source>Synchronizing with network...</source>
+        <translation>Синхронизация с сетью...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="133"/>
+        <source>Block chain synchronization in progress</source>
+        <translation>Идёт синхронизация цепочки блоков</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="157"/>
+        <source>&amp;Overview</source>
+        <translation>О&amp;бзор</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="158"/>
+        <source>Show general overview of wallet</source>
+        <translation>Показать общий обзор действий с бумажником</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="162"/>
+        <source>&amp;Transactions</source>
+        <translation>&amp;Транзакции</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="163"/>
+        <source>Browse transaction history</source>
+        <translation>Показать историю транзакций</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="167"/>
+        <source>&amp;Address Book</source>
+        <translation>&amp;Адресная книга</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="168"/>
+        <source>Edit the list of stored addresses and labels</source>
+        <translation>Изменить список сохранённых адресов и меток к ним</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="172"/>
+        <source>&amp;Receive coins</source>
+        <translation>&amp;Получение</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="173"/>
+        <source>Show the list of addresses for receiving payments</source>
+        <translation>Показать список адресов для получения платежей</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="177"/>
+        <source>&amp;Send coins</source>
+        <translation>Отп&amp;равка</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="178"/>
+        <source>Send coins to a bitcoin address</source>
+        <translation>Отправить монеты на указанный адрес</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="188"/>
+        <source>&amp;Exit</source>
+        <translation>Вы&amp;ход</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="189"/>
+        <source>Quit application</source>
+        <translation>Закрыть приложение</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="190"/>
+        <source>&amp;About</source>
+        <translation>&amp;Информация</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="191"/>
+        <source>Show information about Bitcoin</source>
+        <translation>Показать информацию о Bitcoin&apos;е</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="192"/>
+        <source>&amp;Options...</source>
+        <translation>Оп&amp;ции...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="193"/>
+        <source>Modify configuration options for bitcoin</source>
+        <translation>Изменить настройки</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="194"/>
+        <source>Open &amp;Bitcoin</source>
+        <translation>&amp;Показать бумажник</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="195"/>
+        <source>Show the Bitcoin window</source>
+        <translation>Показать окно бумажника</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="196"/>
+        <source>&amp;Export...</source>
+        <translation>&amp;Экспорт...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="197"/>
+        <source>Export the current view to a file</source>
+        <translation>Экспортировать в файл</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="211"/>
+        <source>[testnet]</source>
+        <translation>[тестовая сеть]</translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../bitcoingui.cpp" line="304"/>
+        <source>%n active connection(s) to Bitcoin network</source>
+        <translation>
+            <numerusform>%n активное соединение с сетью</numerusform>
+            <numerusform>%n активных соединений с сетью</numerusform>
+            <numerusform>%n активных соединений с сетью</numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="318"/>
+        <source>Downloaded %1 of %2 blocks of transaction history.</source>
+        <translation>Загружено %1 из %2 блоков истории транзакций.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="324"/>
+        <source>Downloaded %1 blocks of transaction history.</source>
+        <translation>Загружено %1 блоков истории транзакций.</translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../bitcoingui.cpp" line="335"/>
+        <source>%n second(s) ago</source>
+        <translation>
+            <numerusform>%n секунду назад</numerusform>
+            <numerusform>%n секунды назад</numerusform>
+            <numerusform>%n секунд назад</numerusform>
+        </translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../bitcoingui.cpp" line="339"/>
+        <source>%n minute(s) ago</source>
+        <translation>
+            <numerusform>%n минуту назад</numerusform>
+            <numerusform>%n минуты назад</numerusform>
+            <numerusform>%n минут назад</numerusform>
+        </translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../bitcoingui.cpp" line="343"/>
+        <source>%n hour(s) ago</source>
+        <translation>
+            <numerusform>%n час назад</numerusform>
+            <numerusform>%n часа назад</numerusform>
+            <numerusform>%n часов назад</numerusform>
+        </translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../bitcoingui.cpp" line="347"/>
+        <source>%n day(s) ago</source>
+        <translation>
+            <numerusform>%n день назад</numerusform>
+            <numerusform>%n дня назад</numerusform>
+            <numerusform>%n дней назад</numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="353"/>
+        <source>Up to date</source>
+        <translation>Синхронизированно</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="358"/>
+        <source>Catching up...</source>
+        <translation>Синхронизируется...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="364"/>
+        <source>Last received block was generated %1.</source>
+        <translation>Последний полученный блок был сгенерирован %1.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="421"/>
+        <source>This transaction is over the size limit.  You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network.  Do you want to pay the fee?</source>
+        <translation>Данная транзакция превышает предельно допустимый размер.  Но Вы можете всё равно совершить ей, добавив комиссию в %1, которая отправится тем узлам, которые обработают Вашу транзакцию и поможет поддержать сеть.  Вы хотите добавить комиссию?</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="426"/>
+        <source>Sending...</source>
+        <translation>Отправка...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="449"/>
+        <source>Sent transaction</source>
+        <translation>Исходящая транзакция</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="450"/>
+        <source>Incoming transaction</source>
+        <translation>Входящая транзакция</translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="451"/>
+        <source>Date: </source>
+        <translation>Дата: </translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="452"/>
+        <source>Amount: </source>
+        <translation>Количество: </translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="453"/>
+        <source>Type: </source>
+        <translation>Тип: </translation>
+    </message>
+    <message>
+        <location filename="../bitcoingui.cpp" line="454"/>
+        <source>Address: </source>
+        <translation>Адрес: </translation>
+    </message>
+</context>
+<context>
+    <name>DisplayOptionsPage</name>
+    <message>
+        <location filename="../optionsdialog.cpp" line="254"/>
+        <source>&amp;Unit to show amounts in: </source>
+        <translation>&amp;Измерять монеты в: </translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="258"/>
+        <source>Choose the default subdivision unit to show in the interface, and when sending coins</source>
+        <translation>Единица измерения количества монет при отображении и при отправке</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="265"/>
+        <source>Display addresses in transaction list</source>
+        <translation>Показывать адреса в списке транзакций</translation>
+    </message>
+</context>
+<context>
+    <name>EditAddressDialog</name>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="14"/>
+        <source>Edit Address</source>
+        <translation>Изменить адрес</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="25"/>
+        <source>&amp;Label</source>
+        <translation>&amp;Метка</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="35"/>
+        <source>The label associated with this address book entry</source>
+        <translation>Метка, связанная с данной записью</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="42"/>
+        <source>&amp;Address</source>
+        <translation>&amp;Адрес</translation>
+    </message>
+    <message>
+        <location filename="../forms/editaddressdialog.ui" line="52"/>
+        <source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
+        <translation>Адрес, связанный с данной записью.</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="20"/>
+        <source>New receiving address</source>
+        <translation>Новый адрес для получения</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="24"/>
+        <source>New sending address</source>
+        <translation>Новый адрес для отправки</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="27"/>
+        <source>Edit receiving address</source>
+        <translation>Изменение адреса для получения</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="31"/>
+        <source>Edit sending address</source>
+        <translation>Изменение адреса для отправки</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="87"/>
+        <source>The entered address &quot;%1&quot; is already in the address book.</source>
+        <translation>Введённый адрес «%1» уже находится в адресной книге.</translation>
+    </message>
+    <message>
+        <location filename="../editaddressdialog.cpp" line="92"/>
+        <source>The entered address &quot;%1&quot; is not a valid bitcoin address.</source>
+        <translation>Введённый адрес «%1» не является правильным Bitcoin-адресом.</translation>
+    </message>
+</context>
+<context>
+    <name>MainOptionsPage</name>
+    <message>
+        <location filename="../optionsdialog.cpp" line="162"/>
+        <source>&amp;Start Bitcoin on window system startup</source>
+        <translation>&amp;Запускать бумажник при входе в систему</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="163"/>
+        <source>Automatically start Bitcoin after the computer is turned on</source>
+        <translation>Автоматически запускать бумажник, когда включается компьютер</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="166"/>
+        <source>&amp;Minimize to the tray instead of the taskbar</source>
+        <translation>&amp;Cворачивать в системный лоток вместо панели задач</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="167"/>
+        <source>Show only a tray icon after minimizing the window</source>
+        <translation>Показывать только иконку в системном лотке при сворачивании окна</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="170"/>
+        <source>Map port using &amp;UPnP</source>
+        <translation>Пробросить порт через &amp;UPnP</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="171"/>
+        <source>Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
+        <translation>Автоматически открыть порт для Bitcoin-клиента на роутере. Работает ТОЛЬКО если Ваш роутер поддерживает UPnP и данная функция включена.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="174"/>
+        <source>M&amp;inimize on close</source>
+        <translation>С&amp;ворачивать вместо закрытия</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="175"/>
+        <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
+        <translation>Сворачивать вместо закрытия. Если данная опция будет выбрана — приложение закроется только после выбора соответствующего пункта в меню.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="178"/>
+        <source>&amp;Connect through SOCKS4 proxy:</source>
+        <translation>&amp;Подключаться через SOCKS4 прокси:</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="179"/>
+        <source>Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)</source>
+        <translation>Подключаться к сети Bitcoin через SOCKS4 прокси (например, при использовании Tor)</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="184"/>
+        <source>Proxy &amp;IP: </source>
+        <translation>&amp;IP Прокси: </translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="190"/>
+        <source>IP address of the proxy (e.g. 127.0.0.1)</source>
+        <translation>IP-адрес прокси (например 127.0.0.1)</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="193"/>
+        <source>&amp;Port: </source>
+        <translation>По&amp;рт: </translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="199"/>
+        <source>Port of the proxy (e.g. 1234)</source>
+        <translation>Порт прокси-сервера (например 1234)</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="205"/>
+        <source>Optional transaction fee per KB that helps make sure your transactions are processed quickly.  Most transactions are 1KB.  Fee 0.01 recommended.</source>
+        <translation>Опциональная комиссия за кадый KB транзакции, которое позволяет быть уверенным, что Ваша транзакция будет обработана быстро.  Большинство транщакций занимают 1 KB.  Рекомендованная комиссия: 0.01 BTC.</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="211"/>
+        <source>Pay transaction &amp;fee</source>
+        <translation>Добавлять ко&amp;миссию</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="214"/>
+        <source>Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended.</source>
+        <translation>Опциональная комиссия за кадый KB транзакции, которая позволяет быть уверенным, что Ваша транзакция будет обработана быстро.  Большинство транзакций занимают 1 KB.  Рекомендованная комиссия: 0.01 BTC.</translation>
+    </message>
+</context>
+<context>
+    <name>OptionsDialog</name>
+    <message>
+        <location filename="../optionsdialog.cpp" line="71"/>
+        <source>Main</source>
+        <translation>Основное</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="76"/>
+        <source>Display</source>
+        <translation>Отображение</translation>
+    </message>
+    <message>
+        <location filename="../optionsdialog.cpp" line="96"/>
+        <source>Options</source>
+        <translation>Опции</translation>
+    </message>
+</context>
+<context>
+    <name>OverviewPage</name>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="14"/>
+        <source>Form</source>
+        <translation>Форма</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="40"/>
+        <source>Balance:</source>
+        <translation>Баланс:</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="47"/>
+        <source>123.456 BTC</source>
+        <translation>123.456 BTC</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="54"/>
+        <source>Number of transactions:</source>
+        <translation>Количество транзакций:</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="61"/>
+        <source>0</source>
+        <translation>0</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="68"/>
+        <source>Unconfirmed:</source>
+        <translation>Не подтверждено:</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="75"/>
+        <source>0 BTC</source>
+        <translation>0 BTC</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="82"/>
+        <source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Ubuntu&apos;; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Wallet&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+        <translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Ubuntu&apos;; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Бумажник&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+    </message>
+    <message>
+        <location filename="../forms/overviewpage.ui" line="122"/>
+        <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source>
+        <translation>&lt;b&gt;Последние транзакции&lt;/b&gt;</translation>
+    </message>
+    <message>
+        <location filename="../overviewpage.cpp" line="102"/>
+        <source>Your current balance</source>
+        <translation>Ваш текущий баланс</translation>
+    </message>
+    <message>
+        <location filename="../overviewpage.cpp" line="107"/>
+        <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
+        <translation>Общая сумма всех транзакций, которые до сих пор не подтверждены, и до сих пор не учитываются в текущем балансе</translation>
+    </message>
+    <message>
+        <location filename="../overviewpage.cpp" line="110"/>
+        <source>Total number of transactions in wallet</source>
+        <translation>Общая количество транзакций в Вашем бумажнике</translation>
+    </message>
+</context>
+<context>
+    <name>SendCoinsDialog</name>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="14"/>
+        <location filename="../sendcoinsdialog.cpp" line="91"/>
+        <location filename="../sendcoinsdialog.cpp" line="96"/>
+        <location filename="../sendcoinsdialog.cpp" line="101"/>
+        <location filename="../sendcoinsdialog.cpp" line="106"/>
+        <location filename="../sendcoinsdialog.cpp" line="112"/>
+        <location filename="../sendcoinsdialog.cpp" line="117"/>
+        <location filename="../sendcoinsdialog.cpp" line="123"/>
+        <source>Send Coins</source>
+        <translation>Отправка</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="67"/>
+        <source>Send to multiple recipients at once</source>
+        <translation>Отправить нескольким получателям одновременно</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="70"/>
+        <source>&amp;Add recipient...</source>
+        <translation>&amp;Добавить получателя...</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="100"/>
+        <source>Confirm the send action</source>
+        <translation>Подтвердить отправку</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsdialog.ui" line="103"/>
+        <source>&amp;Send</source>
+        <translation>&amp;Отправить</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="74"/>
+        <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source>
+        <translation>&lt;b&gt;%1&lt;/b&gt; адресату %2 (%3)</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="77"/>
+        <source>Confirm send coins</source>
+        <translation>Подтвердите отправку монет</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="78"/>
+        <source>Are you sure you want to send %1?</source>
+        <translation>Вы уверены, что хотите отправить %1?</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="78"/>
+        <source> and </source>
+        <translation> и </translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="92"/>
+        <source>The recepient address is not valid, please recheck.</source>
+        <translation>Адрес получателя неверный, пожалуйста, перепроверьте.</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="97"/>
+        <source>The amount to pay must be larger than 0.</source>
+        <translation>Количество монет для отправки должно быть больше 0.</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="102"/>
+        <source>Amount exceeds your balance</source>
+        <translation>Количество отправляемых монет превышает Ваш баланс</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="107"/>
+        <source>Total exceeds your balance when the %1 transaction fee is included</source>
+        <translation>Сумма превысит Ваш баланс, если комиссия в %1 будет добавлена к транзакции</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="113"/>
+        <source>Duplicate address found, can only send to each address once in one send operation</source>
+        <translation>Обнаружен дублирующийся адрес. Отправка на один и тот же адрес возможна только один раз за одну операцию отправки</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="118"/>
+        <source>Error: Transaction creation failed  </source>
+        <translation>Ошибка: Создание транзакции не удалось  </translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsdialog.cpp" line="124"/>
+        <source>Error: The transaction was rejected.  This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
+        <translation>Ошибка: В транзакции отказано.  Такое может произойти, если некоторые монеты уже были потрачены, например, если Вы используете одну копию бумажника (wallet.dat), а монеты были потрачены из другой копии, но не были отмечены как потраченные в этой.  Или в случае кражи (компрометации) Вашего бумажника.</translation>
+    </message>
+</context>
+<context>
+    <name>SendCoinsEntry</name>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="14"/>
+        <source>Form</source>
+        <translation>Форма</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="29"/>
+        <source>A&amp;mount:</source>
+        <translation>Ко&amp;личество:</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="42"/>
+        <source>Pay &amp;To:</source>
+        <translation>Полу&amp;чатель:</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="66"/>
+        <location filename="../sendcoinsentry.cpp" line="22"/>
+        <source>Enter a label for this address to add it to your address book</source>
+        <translation>Введите метку для данного адреса (для добавления в адресную книгу)</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="75"/>
+        <source>&amp;Label:</source>
+        <translation>&amp;Метка:</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="93"/>
+        <source>The address to send the payment to  (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
+        <translation>Адрес получателя платежа (например 1LA5FtQhnnWnkK6zjFfutR7Stiit4wKd63)</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="103"/>
+        <source>Choose adress from address book</source>
+        <translation>Выбрать адрес из адресной книги</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="113"/>
+        <source>Alt+A</source>
+        <translation></translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="126"/>
+        <source>Paste address from clipboard</source>
+        <translation>Вставить адрес из буфера обмена</translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="136"/>
+        <source>Alt+P</source>
+        <translation></translation>
+    </message>
+    <message>
+        <location filename="../forms/sendcoinsentry.ui" line="146"/>
+        <source>Remove this recipient</source>
+        <translation>Удалить этого получателя</translation>
+    </message>
+    <message>
+        <location filename="../sendcoinsentry.cpp" line="21"/>
+        <source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
+        <translation>Введите Bitcoin-адрес (например 1LA5FtQhnnWnkK6zjFfutR7Stiit4wKd63)</translation>
+    </message>
+</context>
+<context>
+    <name>TransactionDesc</name>
+    <message>
+        <location filename="../transactiondesc.cpp" line="34"/>
+        <source>Open for %1 blocks</source>
+        <translation type="unfinished">Открыто до получения %1 блоков</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="36"/>
+        <source>Open until %1</source>
+        <translation type="unfinished">Открыто до %1</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="42"/>
+        <source>%1/offline?</source>
+        <translation>%1/оффлайн?</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="44"/>
+        <source>%1/unconfirmed</source>
+        <translation>%1/не подтверждено</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="46"/>
+        <source>%1 confirmations</source>
+        <translation>%1 подтверждений</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="63"/>
+        <source>&lt;b&gt;Status:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Статус:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="68"/>
+        <source>, has not been successfully broadcast yet</source>
+        <translation>, ещё не было успешно разослано</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="70"/>
+        <source>, broadcast through %1 node</source>
+        <translation>, разослано через %1 узел</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="72"/>
+        <source>, broadcast through %1 nodes</source>
+        <translation>, разослано через %1 узлов</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="76"/>
+        <source>&lt;b&gt;Date:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Дата:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="83"/>
+        <source>&lt;b&gt;Source:&lt;/b&gt; Generated&lt;br&gt;</source>
+        <translation>&lt;b&gt;Источник:&lt;/b&gt; [сгенерированно]&lt;br&gt;</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="89"/>
+        <location filename="../transactiondesc.cpp" line="106"/>
+        <source>&lt;b&gt;From:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Отправитель:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="106"/>
+        <source>unknown</source>
+        <translation>неизвестно</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="107"/>
+        <location filename="../transactiondesc.cpp" line="130"/>
+        <location filename="../transactiondesc.cpp" line="189"/>
+        <source>&lt;b&gt;To:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Получатель:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="110"/>
+        <source> (yours, label: </source>
+        <translation> (Ваш, метка:</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="112"/>
+        <source> (yours)</source>
+        <translation> (ваш)</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="147"/>
+        <location filename="../transactiondesc.cpp" line="161"/>
+        <location filename="../transactiondesc.cpp" line="206"/>
+        <location filename="../transactiondesc.cpp" line="223"/>
+        <source>&lt;b&gt;Credit:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Кредит:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="149"/>
+        <source>(%1 matures in %2 more blocks)</source>
+        <translation type="unfinished">(%1 «созреет» через %2 блоков)</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="153"/>
+        <source>(not accepted)</source>
+        <translation>(не принято)</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="197"/>
+        <location filename="../transactiondesc.cpp" line="205"/>
+        <location filename="../transactiondesc.cpp" line="220"/>
+        <source>&lt;b&gt;Debit:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Дебет:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="211"/>
+        <source>&lt;b&gt;Transaction fee:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Комиссия:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="227"/>
+        <source>&lt;b&gt;Net amount:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Общая сумма:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="233"/>
+        <source>Message:</source>
+        <translation>Сообщение:</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="235"/>
+        <source>Comment:</source>
+        <translation>Комментарий:</translation>
+    </message>
+    <message>
+        <location filename="../transactiondesc.cpp" line="238"/>
+        <source>Generated coins must wait 120 blocks before they can be spent.  When you generated this block, it was broadcast to the network to be added to the block chain.  If it fails to get into the chain, it will change to &quot;not accepted&quot; and not be spendable.  This may occasionally happen if another node generates a block within a few seconds of yours.</source>
+        <translation></translation>
+    </message>
+</context>
+<context>
+    <name>TransactionDescDialog</name>
+    <message>
+        <location filename="../forms/transactiondescdialog.ui" line="14"/>
+        <source>Transaction details</source>
+        <translation>Детали транзакции</translation>
+    </message>
+    <message>
+        <location filename="../forms/transactiondescdialog.ui" line="20"/>
+        <source>This pane shows a detailed description of the transaction</source>
+        <translation>Данный диалог показывает детализированную статистику по выбранной транзакции</translation>
+    </message>
+</context>
+<context>
+    <name>TransactionTableModel</name>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="213"/>
+        <source>Date</source>
+        <translation>Дата</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="213"/>
+        <source>Type</source>
+        <translation>Тип</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="213"/>
+        <source>Address</source>
+        <translation>Адрес</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="213"/>
+        <source>Amount</source>
+        <translation>Количество</translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../transactiontablemodel.cpp" line="274"/>
+        <source>Open for %n block(s)</source>
+        <translation type="unfinished">
+            <numerusform>Открыто до получения %n блока</numerusform>
+            <numerusform>Открыто до получения %n блоков</numerusform>
+            <numerusform>Открыто до получения %n блоков</numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="277"/>
+        <source>Open until %1</source>
+        <translation type="unfinished">Открыто до %1</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="280"/>
+        <source>Offline (%1 confirmations)</source>
+        <translation>Оффлайн (%1 подтверждений)</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="283"/>
+        <source>Unconfirmed (%1 of %2 confirmations)</source>
+        <translation>Не подтверждено (%1 из %2 подтверждений)</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="286"/>
+        <source>Confirmed (%1 confirmations)</source>
+        <translation>Подтверждено (%1 подтверждений)</translation>
+    </message>
+    <message numerus="yes">
+        <location filename="../transactiontablemodel.cpp" line="295"/>
+        <source>Mined balance will be available in %n more blocks</source>
+        <translation>
+            <numerusform>Добытыми монетами можно будет воспользоваться через %n блок</numerusform>
+            <numerusform>Добытыми монетами можно будет воспользоваться через %n блока</numerusform>
+            <numerusform>Добытыми монетами можно будет воспользоваться через %n блоков</numerusform>
+        </translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="301"/>
+        <source>This block was not received by any other nodes and will probably not be accepted!</source>
+        <translation>Этот блок не был получен другими узлами и, возможно, не будет принят!</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="304"/>
+        <source>Generated but not accepted</source>
+        <translation>Сгенерированно, но не подтверждено</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="347"/>
+        <source>Received with</source>
+        <translation>Получено</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="349"/>
+        <source>Received from IP</source>
+        <translation>Получено с IP-адреса </translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="351"/>
+        <source>Sent to</source>
+        <translation>Отправлено</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="353"/>
+        <source>Sent to IP</source>
+        <translation>Отправлено на IP-адрес </translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="355"/>
+        <source>Payment to yourself</source>
+        <translation>Отправлено себе</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="357"/>
+        <source>Mined</source>
+        <translation>Добыто</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="395"/>
+        <source>(n/a)</source>
+        <translation>[не доступно]</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="594"/>
+        <source>Transaction status. Hover over this field to show number of confirmations.</source>
+        <translation>Статус транзакции. Подведите курсор к нужному полю для того, чтобы увидеть количество подтверждений.</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="596"/>
+        <source>Date and time that the transaction was received.</source>
+        <translation>Дата и время, когда транзакция была получена.</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="598"/>
+        <source>Type of transaction.</source>
+        <translation>Тип транзакции.</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="600"/>
+        <source>Destination address of transaction.</source>
+        <translation>Адрес назначения транзакции.</translation>
+    </message>
+    <message>
+        <location filename="../transactiontablemodel.cpp" line="602"/>
+        <source>Amount removed from or added to balance.</source>
+        <translation>Сумма, добавленная, или снятая с баланса.</translation>
+    </message>
+</context>
+<context>
+    <name>TransactionView</name>
+    <message>
+        <location filename="../transactionview.cpp" line="48"/>
+        <location filename="../transactionview.cpp" line="61"/>
+        <source>All</source>
+        <translation>Все</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="49"/>
+        <source>Today</source>
+        <translation>Сегодня</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="50"/>
+        <source>This week</source>
+        <translation>На этой неделе</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="51"/>
+        <source>This month</source>
+        <translation>В этом месяце</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="52"/>
+        <source>Last month</source>
+        <translation>За последний месяц</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="53"/>
+        <source>This year</source>
+        <translation>В этом году</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="54"/>
+        <source>Range...</source>
+        <translation>Промежуток...</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="62"/>
+        <source>Received with</source>
+        <translation>Получено на</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="64"/>
+        <source>Sent to</source>
+        <translation>Отправлено на</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="66"/>
+        <source>To yourself</source>
+        <translation>Отправленные себе</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="67"/>
+        <source>Mined</source>
+        <translation>Добытые</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="68"/>
+        <source>Other</source>
+        <translation>Другое</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="74"/>
+        <source>Enter address or label to search</source>
+        <translation>Введите адрес или метку для поиска</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="80"/>
+        <source>Min amount</source>
+        <translation>Мин. сумма</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="108"/>
+        <source>Copy address</source>
+        <translation>Копировать адрес</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="109"/>
+        <source>Copy label</source>
+        <translation>Копировать метку</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="110"/>
+        <source>Edit label</source>
+        <translation>Изменить метку</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="111"/>
+        <source>Show details...</source>
+        <translation>Показать детали...</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="244"/>
+        <source>Export Transaction Data</source>
+        <translation>Экспортировать данные транзакций</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="246"/>
+        <source>Comma separated file (*.csv)</source>
+        <translation>Текс, разделённый запятыми (*.csv)</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="254"/>
+        <source>Confirmed</source>
+        <translation>Подтверждено</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="255"/>
+        <source>Date</source>
+        <translation>Дата</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="256"/>
+        <source>Type</source>
+        <translation>Тип</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="257"/>
+        <source>Label</source>
+        <translation>Метка</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="258"/>
+        <source>Address</source>
+        <translation>Адрес</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="259"/>
+        <source>Amount</source>
+        <translation>Количество</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="260"/>
+        <source>ID</source>
+        <translation></translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="264"/>
+        <source>Error exporting</source>
+        <translation>Ошибка экспорта</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="264"/>
+        <source>Could not write to file %1.</source>
+        <translation>Невозможно записать в файл %1.</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="352"/>
+        <source>Range:</source>
+        <translation>Промежуток от:</translation>
+    </message>
+    <message>
+        <location filename="../transactionview.cpp" line="360"/>
+        <source>to</source>
+        <translation>до</translation>
+    </message>
+</context>
+<context>
+    <name>WalletModel</name>
+    <message>
+        <location filename="../walletmodel.cpp" line="139"/>
+        <source>Sending...</source>
+        <translation>Отправка....</translation>
+    </message>
+</context>
+<context>
+    <name>bitcoin-core</name>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="3"/>
+        <source>Bitcoin version</source>
+        <translation>Версия</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="4"/>
+        <source>Usage:</source>
+        <translation>Использование:</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="5"/>
+        <source>Send command to -server or bitcoind
+</source>
+        <translation>Отправить команду на сервер ( -server ) или демону
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="6"/>
+        <source>List commands
+</source>
+        <translation>Список команд
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="7"/>
+        <source>Get help for a command
+</source>
+        <translation>Получить помощь по команде</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="8"/>
+        <source>Options:
+</source>
+        <translation>Опции:
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="9"/>
+        <source>Specify configuration file (default: bitcoin.conf)
+</source>
+        <translation>Указать конфигурационный файл вместо используемого по умолчанию (bitcoin.conf)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="10"/>
+        <source>Specify pid file (default: bitcoind.pid)
+</source>
+        <translation>Указать pid-файл вместо используемого по умолчанию (bitcoin.pid)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="11"/>
+        <source>Generate coins
+</source>
+        <translation>Включить добычу монет
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="12"/>
+        <source>Don&apos;t generate coins
+</source>
+        <translation>Выключить добычу монет
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="13"/>
+        <source>Start minimized
+</source>
+        <translation>Запускать минимизированным
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="14"/>
+        <source>Specify data directory
+</source>
+        <translation>Указать рабочую директорию
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="15"/>
+        <source>Specify connection timeout (in milliseconds)
+</source>
+        <translation>Указать таймаут соединения (в миллисекундах)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="16"/>
+        <source>Connect through socks4 proxy
+</source>
+        <translation>Соединяться через socks4-прокси
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="17"/>
+        <source>Allow DNS lookups for addnode and connect
+</source>
+        <translation>Разрешить поиск в DNS для комманд &quot;addnode&quot; и &quot;connect&quot;
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="18"/>
+        <source>Add a node to connect to
+</source>
+        <translation>Добавить узел для соединения
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="19"/>
+        <source>Connect only to the specified node
+</source>
+        <translation>Соединяться только с указанным узлом
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="20"/>
+        <source>Don&apos;t accept connections from outside
+</source>
+        <translation>Не принимать внешние соединения
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="21"/>
+        <source>Don&apos;t attempt to use UPnP to map the listening port
+</source>
+        <translation>Не пытаться использовать UPnP
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="22"/>
+        <source>Attempt to use UPnP to map the listening port
+</source>
+        <translation>Попытаться использовать UPnP для проброса прослушиваемого порта на роутере
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="23"/>
+        <source>Fee per KB to add to transactions you send
+</source>
+        <translation>Комиссия (за каждый KB транзакции)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="24"/>
+        <source>Accept command line and JSON-RPC commands
+</source>
+        <translation>Принимать команды из командной строки и через JSON-RPC
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="25"/>
+        <source>Run in the background as a daemon and accept commands
+</source>
+        <translation>Запустить в бекграунде (как демон) и принимать команды
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="26"/>
+        <source>Use the test network
+</source>
+        <translation>Использовать тестовую сеть
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="27"/>
+        <source>Username for JSON-RPC connections
+</source>
+        <translation>Имя пользователя для JSON-RPC соединений
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="28"/>
+        <source>Password for JSON-RPC connections
+</source>
+        <translation>Пароль для JSON-RPC соединений
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="29"/>
+        <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332)
+</source>
+        <translation>Слушать &lt;порт&gt; для JSON-RPC соединений (по умолчанию: 8332)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="30"/>
+        <source>Allow JSON-RPC connections from specified IP address
+</source>
+        <translation>Разрешить JSON-RPC соединения с указанного адреса
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="31"/>
+        <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)
+</source>
+        <translation>Отправлять команды на узел,запущенный на &lt;IP&gt; (по умолчанию: 127.0.0.1)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="32"/>
+        <source>Set key pool size to &lt;n&gt; (default: 100)
+</source>
+        <translation>Установить размер key pool&apos;а в &lt;n&gt; (по умолчанию: 100)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="33"/>
+        <source>Rescan the block chain for missing wallet transactions
+</source>
+        <translation>Просканировать цепочку блоков в поисках пропущенных транзакций для бумажника
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="34"/>
+        <source>
+SSL options: (see the Bitcoin Wiki for SSL setup instructions)
+</source>
+        <translation>Опции SSL: (см. Bitcoin Wiki для инструкций)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="37"/>
+        <source>Use OpenSSL (https) for JSON-RPC connections
+</source>
+        <translation>Использовать OpenSSL (https) для JSON-RPC соединений
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="38"/>
+        <source>Server certificate file (default: server.cert)
+</source>
+        <translation>Сертификат (публичный ключ) сервера (по умолчанию: server.cert)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="39"/>
+        <source>Server private key (default: server.pem)
+</source>
+        <translation>Закрытый ключ сервера (по умолчанию: server.pem)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="40"/>
+        <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)
+</source>
+        <translation>Допустимые Cipher&apos;ы для сервера (по умолчанию: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="43"/>
+        <source>This help message
+</source>
+        <translation>Данная справка
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="44"/>
+        <source>Cannot obtain a lock on data directory %s.  Bitcoin is probably already running.</source>
+        <translation>Невозможно установить блокировку на рабочую директорию %s.  Возможно, бумажник уже запущен.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="47"/>
+        <source>Loading addresses...</source>
+        <translation>Загрузка адресов...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="48"/>
+        <source>Error loading addr.dat      
+</source>
+        <translation>Ошибка при загрузке addr.dat      
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="49"/>
+        <source>Loading block index...</source>
+        <translation>Загрузка индекса блоков...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="50"/>
+        <source>Error loading blkindex.dat      
+</source>
+        <translation>Ошибка при загрузке blkindex.dat      
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="51"/>
+        <source>Loading wallet...</source>
+        <translation>Загрузка бумажника...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="52"/>
+        <source>Error loading wallet.dat: Wallet corrupted      
+</source>
+        <translation>Ошибка загрузки wallet.dat: Бумажник повреждён</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="53"/>
+        <source>Error loading wallet.dat: Wallet requires newer version of Bitcoin      
+</source>
+        <translation>Ошибка загрузки wallet.dat: Для данного бумажника требуется более новая версия Bitcoin      
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="55"/>
+        <source>Error loading wallet.dat      
+</source>
+        <translation>Ошибка при загрузке wallet.dat      
+</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="56"/>
+        <source>Rescanning...</source>
+        <translation>Сканирование...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="57"/>
+        <source>Done loading</source>
+        <translation>Загрузка завершена</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="58"/>
+        <source>Invalid -proxy address</source>
+        <translation>Ошибка в адресе прокси</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="59"/>
+        <source>Invalid amount for -paytxfee=&lt;amount&gt;</source>
+        <translation>Ошибка в сумме комиссии</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="60"/>
+        <source>Warning: -paytxfee is set very high.  This is the transaction fee you will pay if you send a transaction.</source>
+        <translation>ВНИМАНИЕ: Установлена слишком большая комиссия (-paytxfee=).  Данный параметр отвечает за комиссию, которую Вы будете добавлять к сумме при осуществлении транзакций.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="63"/>
+        <source>Error: CreateThread(StartNode) failed</source>
+        <translation>Ошибка: Созданиние потока (запуск узла) не удался</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="64"/>
+        <source>Warning: Disk space is low  </source>
+        <translation>ВНИМАНИЕ: На диске заканчивается свободное пространство  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="68"/>
+        <source>This transaction is over the size limit.  You can still send it for a fee of %s, which goes to the nodes that process your transaction and helps to support the network.  Do you want to pay the fee?</source>
+        <translation>Данная транзакция превышает предельно допустимый размер.  Но Вы можете всё равно совершить ей, добавив комиссию в %s, которая отправится тем узлам, которые обработают Вашу транзакцию и поможет поддержать сеть.  Вы хотите добавить комиссию?</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="72"/>
+        <source>Enter the current passphrase to the wallet.</source>
+        <translation>Введите текущий пароль от бумажника.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="73"/>
+        <source>Passphrase</source>
+        <translation>Пароль</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="74"/>
+        <source>Please supply the current wallet decryption passphrase.</source>
+        <translation>Пожалуйста, укажите текущий пароль для расшифровки бумажника.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="75"/>
+        <source>The passphrase entered for the wallet decryption was incorrect.</source>
+        <translation>Указанный пароль не подходит.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="76"/>
+        <source>Status</source>
+        <translation>Статус</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="77"/>
+        <source>Date</source>
+        <translation>Дата</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="78"/>
+        <source>Description</source>
+        <translation>Описание</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="79"/>
+        <source>Debit</source>
+        <translation>Дебет</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="80"/>
+        <source>Credit</source>
+        <translation>Кредит</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="81"/>
+        <source>Open for %d blocks</source>
+        <translation>Открыто до получения %d блоков</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="82"/>
+        <source>Open until %s</source>
+        <translation>Открыто до %s</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="83"/>
+        <source>%d/offline?</source>
+        <translation>%d/оффлайн?</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="84"/>
+        <source>%d/unconfirmed</source>
+        <translation>%d/не подтверждено</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="85"/>
+        <source>%d confirmations</source>
+        <translation>%d подтверждений</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="86"/>
+        <source>Generated</source>
+        <translation>Сгенерированно</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="87"/>
+        <source>Generated (%s matures in %d more blocks)</source>
+        <translation>Сгенерированно (%s «созреет» через %d блоков)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="88"/>
+        <source>Generated - Warning: This block was not received by any other nodes and will probably not be accepted!</source>
+        <translation>Сгенерированно - ВНИМАНИЕ: Данный блок не был получен ни одним другим узлом и, возможно, не будет подтверждён!</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="91"/>
+        <source>Generated (not accepted)</source>
+        <translation>Сгенерированно (не подтверждено)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="92"/>
+        <source>From: </source>
+        <translation>Отправитель: </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="93"/>
+        <source>Received with: </source>
+        <translation>Получатель: </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="94"/>
+        <source>Payment to yourself</source>
+        <translation>Отправлено себе</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="95"/>
+        <source>To: </source>
+        <translation>Получатель: </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="96"/>
+        <source>    Generating</source>
+        <translation>    Генерация</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="97"/>
+        <source>(not connected)</source>
+        <translation>(не подключено)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="98"/>
+        <source>     %d connections     %d blocks     %d transactions</source>
+        <translation>     %d подключений     %d блоков     %d транзакций</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="99"/>
+        <source>Wallet already encrypted.</source>
+        <translation>Бумажник уже зашифрован.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="100"/>
+        <source>Enter the new passphrase to the wallet.
+Please use a passphrase of 10 or more random characters, or eight or more words.</source>
+        <translation>Введите новый пароль для бумажника.
+Пожалуйста, используейте пароль из 10 и более случайных символов или из 8 и более слов.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="104"/>
+        <source>Error: The supplied passphrase was too short.</source>
+        <translation>ОШИБКА: Указанный пароль слишком короткий.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="105"/>
+        <source>WARNING: If you encrypt your wallet and lose your passphrase, you will LOSE ALL OF YOUR BITCOINS!
+Are you sure you wish to encrypt your wallet?</source>
+        <translation>ВНИМАНИЕ: Если Вы зашифруете Ваш бумажник и потеряете Ваш пароль — Вы ПОТЕРЯЕТЕ ВСЕ ВАШИ БИТКОИНЫ!!!
+Вы уверены, что хотите зашифровать бумажник?</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="109"/>
+        <source>Please re-enter your new wallet passphrase.</source>
+        <translation>Пожалуйста, повторите ввод нового пароля.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="110"/>
+        <source>Error: the supplied passphrases didn&apos;t match.</source>
+        <translation>ОШИБКА: указанные пароли не совпадают.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="111"/>
+        <source>Wallet encryption failed.</source>
+        <translation>Шифрование бумажника не удалось.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="112"/>
+        <source>Wallet Encrypted.
+Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.</source>
+        <translation>Бумажник зашифрован.
+Запомните, что шифрование Вашего бумажника не может ПОЛНОСТЬЮ гарантировать защиту Ваших биткоинов от того, чтобы быть украденными с помощью шпионского ПО на Вашем компьютере. Пожалуйста, следите за безопасностью Вашего компьютера самостоятельно.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="116"/>
+        <source>Wallet is unencrypted, please encrypt it first.</source>
+        <translation>Бумажник не зашифрован. Сначала зашифруйте его.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="117"/>
+        <source>Enter the new passphrase for the wallet.</source>
+        <translation>Введите новый пароль для бумажника.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="118"/>
+        <source>Re-enter the new passphrase for the wallet.</source>
+        <translation>Пожалуйста, повторите ввод нового пароля.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="119"/>
+        <source>Wallet Passphrase Changed.</source>
+        <translation>Пароль от бумажника изменён.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="120"/>
+        <source>New Receiving Address</source>
+        <translation>Новый адрес для получения</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="121"/>
+        <source>You should use a new address for each payment you receive.
+
+Label</source>
+        <translation>Вы должны использовать новый адрес для каждого платежа, который Вы получаете.
+
+Метка</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="125"/>
+        <source>&lt;b&gt;Status:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Статус:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="126"/>
+        <source>, has not been successfully broadcast yet</source>
+        <translation>, ещё не было успешно разослано</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="127"/>
+        <source>, broadcast through %d node</source>
+        <translation>, разослано через %d узел</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="128"/>
+        <source>, broadcast through %d nodes</source>
+        <translation>, разослано через %d узлов</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="129"/>
+        <source>&lt;b&gt;Date:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Дата:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="130"/>
+        <source>&lt;b&gt;Source:&lt;/b&gt; Generated&lt;br&gt;</source>
+        <translation>&lt;b&gt;Источник:&lt;/b&gt; [сгенерированно]&lt;br&gt;</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="131"/>
+        <source>&lt;b&gt;From:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Отправитель:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="132"/>
+        <source>unknown</source>
+        <translation>неизвестно</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="133"/>
+        <source>&lt;b&gt;To:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Получатель:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="134"/>
+        <source> (yours, label: </source>
+        <translation> (Ваш, метка: </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="135"/>
+        <source> (yours)</source>
+        <translation> (ваш)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="136"/>
+        <source>&lt;b&gt;Credit:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Кредит:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="137"/>
+        <source>(%s matures in %d more blocks)</source>
+        <translation>(%s «созреет» через %d блоков)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="138"/>
+        <source>(not accepted)</source>
+        <translation>(не принято)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="139"/>
+        <source>&lt;b&gt;Debit:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Дебет:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="140"/>
+        <source>&lt;b&gt;Transaction fee:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Комиссия:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="141"/>
+        <source>&lt;b&gt;Net amount:&lt;/b&gt; </source>
+        <translation>&lt;b&gt;Общая сумма:&lt;/b&gt; </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="142"/>
+        <source>Message:</source>
+        <translation>Сообщение:</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="143"/>
+        <source>Comment:</source>
+        <translation>Комментарий:</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="144"/>
+        <source>Generated coins must wait 120 blocks before they can be spent.  When you generated this block, it was broadcast to the network to be added to the block chain.  If it fails to get into the chain, it will change to &quot;not accepted&quot; and not be spendable.  This may occasionally happen if another node generates a block within a few seconds of yours.</source>
+        <translation>Сгенерированные монеты должны подождать 120 блоков прежде, чем они смогут быть отправлены.  Когда Вы сгенерировали этот блок он был отправлен в сеть, чтобы он был добавлен к цепочке блоков.  Если данная процедура не удастся, статус изменится на «не подтверждено» и монеты будут непередаваемыми.  Такое может случайно происходить в случае, если другой узел сгенерирует блок на несколько секунд раньше.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="150"/>
+        <source>Cannot write autostart/bitcoin.desktop file</source>
+        <translation>Не возможно записать файл autostart/bitcoin.desktop</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="151"/>
+        <source>Main</source>
+        <translation>Основное</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="152"/>
+        <source>&amp;Start Bitcoin on window system startup</source>
+        <translation>&amp;Запускать бумажник при входе в систему</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="153"/>
+        <source>&amp;Minimize on close</source>
+        <translation>С&amp;ворачивать вместо закрытия</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="154"/>
+        <source>version %s</source>
+        <translation>версия %s</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="155"/>
+        <source>Error in amount  </source>
+        <translation>Ошибка в количестве  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="156"/>
+        <source>Send Coins</source>
+        <translation>Отправка</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="157"/>
+        <source>Amount exceeds your balance  </source>
+        <translation>Сумма превышает Ваш баланс  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="158"/>
+        <source>Total exceeds your balance when the </source>
+        <translation>Общая сумма превысит Ваш баланс, если к транзакции будет добавлено ещё</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="159"/>
+        <source> transaction fee is included  </source>
+        <translation>в качестве комиссии  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="160"/>
+        <source>Payment sent  </source>
+        <translation>Платёж отправлен</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="162"/>
+        <source>Invalid address  </source>
+        <translation>Ошибочный адрес  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="163"/>
+        <source>Sending %s to %s</source>
+        <translation>Отправка %s адресату %s</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="164"/>
+        <source>CANCELLED</source>
+        <translation>ОТМЕНЕНО</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="165"/>
+        <source>Cancelled</source>
+        <translation>Отменено</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="166"/>
+        <source>Transfer cancelled  </source>
+        <translation>Транзакция отменена  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="167"/>
+        <source>Error: </source>
+        <translation>ОШИБКА: </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="169"/>
+        <source>Connecting...</source>
+        <translation>Подключение...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="170"/>
+        <source>Unable to connect</source>
+        <translation>Невозможно подключиться</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="171"/>
+        <source>Requesting public key...</source>
+        <translation>Запрашивается открытый ключ...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="172"/>
+        <source>Received public key...</source>
+        <translation>Получается публичный ключ...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="173"/>
+        <source>Recipient is not accepting transactions sent by IP address</source>
+        <translation>Получатель не принимает транзакции, отправленные на IP адрес</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="174"/>
+        <source>Transfer was not accepted</source>
+        <translation>Передача была отвергнута</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="175"/>
+        <source>Invalid response received</source>
+        <translation>Получен неверный ответ</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="176"/>
+        <source>Creating transaction...</source>
+        <translation>Создание транзакции...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="177"/>
+        <source>This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds</source>
+        <translation>Данная транзакция требует добавления комиссии (по крайней мере в %s) из-за её размера, сложности, или из-за использования недавно полученных монет</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="180"/>
+        <source>Transaction creation failed</source>
+        <translation>Создание транзакции провалилось</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="181"/>
+        <source>Transaction aborted</source>
+        <translation>Транзакция отменена</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="182"/>
+        <source>Lost connection, transaction cancelled</source>
+        <translation>Потеряно соединение, транзакция отменена</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="183"/>
+        <source>Sending payment...</source>
+        <translation>Отправка платежа...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="184"/>
+        <source>The transaction was rejected.  This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
+        <translation>В транзакции отказано.  Такое может произойти, если некоторые монеты уже были потрачены, например, если Вы используете одну копию бумажника (wallet.dat), а монеты были потрачены из другой копии, но не были отмечены как потраченные в этой.  Или в случае кражи (компрометации) Вашего бумажника.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="188"/>
+        <source>Waiting for confirmation...</source>
+        <translation>Ожидание подтверждения...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="189"/>
+        <source>The payment was sent, but the recipient was unable to verify it.
+The transaction is recorded and will credit to the recipient,
+but the comment information will be blank.</source>
+        <translation>Платёж был отправлен, но получатель не смог подтвердить его.
+Транзакция записана и будет зачислена получателю,
+но комментарий к платежу будет пустым.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="193"/>
+        <source>Payment was sent, but an invalid response was received</source>
+        <translation>Платёж был отправлен, но был получен неверный ответ</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="194"/>
+        <source>Payment completed</source>
+        <translation>Платёж завершён</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="195"/>
+        <source>Name</source>
+        <translation>Имя</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="196"/>
+        <source>Address</source>
+        <translation>Адрес</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="197"/>
+        <source>Label</source>
+        <translation>Метка</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="198"/>
+        <source>Bitcoin Address</source>
+        <translation>Bitcoin-адрес</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="199"/>
+        <source>This is one of your own addresses for receiving payments and cannot be entered in the address book.  </source>
+        <translation>Это один из Ваших личных адресов для получения платежей. Он не может быть добавлен в адресную книгу.  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="202"/>
+        <source>Edit Address</source>
+        <translation>Изменить адрес</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="203"/>
+        <source>Edit Address Label</source>
+        <translation>Изменить метку</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="204"/>
+        <source>Add Address</source>
+        <translation>Добавить адрес</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="205"/>
+        <source>Bitcoin</source>
+        <translation></translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="206"/>
+        <source>Bitcoin - Generating</source>
+        <translation>Bitcoin - Генерация</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="207"/>
+        <source>Bitcoin - (not connected)</source>
+        <translation>Bitcoin - (нет связи)</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="208"/>
+        <source>&amp;Open Bitcoin</source>
+        <translation>&amp;Показать бумажник</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="209"/>
+        <source>&amp;Send Bitcoins</source>
+        <translation>Отп&amp;равка</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="210"/>
+        <source>O&amp;ptions...</source>
+        <translation>Оп&amp;ции...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="211"/>
+        <source>E&amp;xit</source>
+        <translation>Вы&amp;ход</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="212"/>
+        <source>Program has crashed and will terminate.  </source>
+        <translation>Программа экстренно завершилась и будет уничтожена.  </translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="216"/>
+        <source>beta</source>
+        <translation>бета</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="161"/>
+        <source>Sending...</source>
+        <translation>Отправка...</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="168"/>
+        <source>Insufficient funds</source>
+        <translation>Недостаточно монет</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="65"/>
+        <source>Unable to bind to port %d on this computer.  Bitcoin is probably already running.</source>
+        <translation>Невозможно забиндить порт %d на данном компьютере.  Возможно, бумажник ужк запущен.</translation>
+    </message>
+    <message>
+        <location filename="../bitcoinstrings.cpp" line="213"/>
+        <source>Warning: Please check that your computer&apos;s date and time are correct.  If your clock is wrong Bitcoin will not work properly.</source>
+        <translation>ВНИМАНИЕ: Проверьте дату и время, установленные на Вашем компьютере. Если Ваши часы идут не правильно Bitcoin может наботать не корректно.</translation>
+    </message>
+</context>
+</TS>
diff --git a/src/qt/monitoreddatamapper.cpp b/src/qt/monitoreddatamapper.cpp
new file mode 100644 (file)
index 0000000..88948d0
--- /dev/null
@@ -0,0 +1,36 @@
+#include "monitoreddatamapper.h"
+
+#include <QWidget>
+#include <QMetaObject>
+#include <QMetaProperty>
+
+MonitoredDataMapper::MonitoredDataMapper(QObject *parent) :
+    QDataWidgetMapper(parent)
+{
+}
+
+
+void MonitoredDataMapper::addMapping(QWidget *widget, int section)
+{
+    QDataWidgetMapper::addMapping(widget, section);
+    addChangeMonitor(widget);
+}
+
+void MonitoredDataMapper::addMapping(QWidget *widget, int section, const QByteArray &propertyName)
+{
+    QDataWidgetMapper::addMapping(widget, section, propertyName);
+    addChangeMonitor(widget);
+}
+
+void MonitoredDataMapper::addChangeMonitor(QWidget *widget)
+{
+    // Watch user property of widget for changes, and connect
+    //  the signal to our viewModified signal.
+    QMetaProperty prop = widget->metaObject()->userProperty();
+    int signal = prop.notifySignalIndex();
+    int method = this->metaObject()->indexOfMethod("viewModified()");
+    if(signal != -1 && method != -1)
+    {
+        QMetaObject::connect(widget, signal, this, method);
+    }
+}
diff --git a/src/qt/monitoreddatamapper.h b/src/qt/monitoreddatamapper.h
new file mode 100644 (file)
index 0000000..4dd2d1a
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef MONITOREDDATAMAPPER_H
+#define MONITOREDDATAMAPPER_H
+
+#include <QDataWidgetMapper>
+
+QT_BEGIN_NAMESPACE
+class QWidget;
+QT_END_NAMESPACE
+
+/* Data <-> Widget mapper that watches for changes,
+   to be able to notify when 'dirty' (for example, to
+   enable a commit/apply button).
+ */
+class MonitoredDataMapper : public QDataWidgetMapper
+{
+    Q_OBJECT
+public:
+    explicit MonitoredDataMapper(QObject *parent=0);
+
+    void addMapping(QWidget *widget, int section);
+    void addMapping(QWidget *widget, int section, const QByteArray &propertyName);
+private:
+    void addChangeMonitor(QWidget *widget);
+
+signals:
+    void viewModified();
+
+};
+
+
+
+#endif // MONITOREDDATAMAPPER_H
diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp
new file mode 100644 (file)
index 0000000..cf0c0a3
--- /dev/null
@@ -0,0 +1,224 @@
+#include "notificator.h"
+
+#include <QMetaType>
+#include <QVariant>
+#include <QIcon>
+#include <QApplication>
+#include <QStyle>
+#include <QByteArray>
+#include <QSystemTrayIcon>
+#include <QMessageBox>
+
+#ifdef USE_DBUS
+#include <QtDBus/QtDBus>
+#include <stdint.h>
+#endif
+
+// https://wiki.ubuntu.com/NotificationDevelopmentGuidelines recommends at least 128
+const int FREEDESKTOP_NOTIFICATION_ICON_SIZE = 128;
+
+Notificator::Notificator(const QString &programName, QSystemTrayIcon *trayicon, QWidget *parent):
+    QObject(parent),
+    parent(parent),
+    programName(programName),
+    mode(None),
+    trayIcon(trayicon)
+#ifdef USE_DBUS
+    ,interface(0)
+#endif
+{
+    if(trayicon && trayicon->supportsMessages())
+    {
+        mode = QSystemTray;
+    }
+#ifdef USE_DBUS
+    interface = new QDBusInterface("org.freedesktop.Notifications",
+          "/org/freedesktop/Notifications", "org.freedesktop.Notifications");
+    if(interface->isValid())
+    {
+        mode = Freedesktop;
+    }
+#endif
+}
+
+Notificator::~Notificator()
+{
+#ifdef USE_DBUS
+    delete interface;
+#endif
+}
+
+#ifdef USE_DBUS
+
+// Loosely based on http://www.qtcentre.org/archive/index.php/t-25879.html
+class FreedesktopImage
+{
+public:
+    FreedesktopImage() {}
+    FreedesktopImage(const QImage &img);
+
+    static int metaType();
+
+    // Image to variant that can be marshaled over DBus
+    static QVariant toVariant(const QImage &img);
+
+private:
+    int width, height, stride;
+    bool hasAlpha;
+    int channels;
+    int bitsPerSample;
+    QByteArray image;
+
+    friend QDBusArgument &operator<<(QDBusArgument &a, const FreedesktopImage &i);
+    friend const QDBusArgument &operator>>(const QDBusArgument &a, FreedesktopImage &i);
+};
+
+Q_DECLARE_METATYPE(FreedesktopImage);
+
+// Image configuration settings
+const int CHANNELS = 4;
+const int BYTES_PER_PIXEL = 4;
+const int BITS_PER_SAMPLE = 8;
+
+FreedesktopImage::FreedesktopImage(const QImage &img):
+    width(img.width()),
+    height(img.height()),
+    stride(img.width() * BYTES_PER_PIXEL),
+    hasAlpha(true),
+    channels(CHANNELS),
+    bitsPerSample(BITS_PER_SAMPLE)
+{
+    // Convert 00xAARRGGBB to RGBA bytewise (endian-independent) format
+    QImage tmp = img.convertToFormat(QImage::Format_ARGB32);
+    const uint32_t *data = reinterpret_cast<const uint32_t*>(tmp.constBits());
+
+    unsigned int num_pixels = width * height;
+    image.resize(num_pixels * BYTES_PER_PIXEL);
+
+    for(unsigned int ptr = 0; ptr < num_pixels; ++ptr)
+    {
+        image[ptr*BYTES_PER_PIXEL+0] = data[ptr] >> 16; // R
+        image[ptr*BYTES_PER_PIXEL+1] = data[ptr] >> 8;  // G
+        image[ptr*BYTES_PER_PIXEL+2] = data[ptr];       // B
+        image[ptr*BYTES_PER_PIXEL+3] = data[ptr] >> 24; // A
+    }
+}
+
+QDBusArgument &operator<<(QDBusArgument &a, const FreedesktopImage &i)
+{
+    a.beginStructure();
+    a << i.width << i.height << i.stride << i.hasAlpha << i.bitsPerSample << i.channels << i.image;
+    a.endStructure();
+    return a;
+}
+
+const QDBusArgument &operator>>(const QDBusArgument &a, FreedesktopImage &i)
+{
+    a.beginStructure();
+    a >> i.width >> i.height >> i.stride >> i.hasAlpha >> i.bitsPerSample >> i.channels >> i.image;
+    a.endStructure();
+    return a;
+}
+
+int FreedesktopImage::metaType()
+{
+    return qDBusRegisterMetaType<FreedesktopImage>();
+}
+
+QVariant FreedesktopImage::toVariant(const QImage &img)
+{
+    FreedesktopImage fimg(img);
+    return QVariant(FreedesktopImage::metaType(), &fimg);
+}
+
+void Notificator::notifyDBus(Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout)
+{
+    Q_UNUSED(cls);
+    // Arguments for DBus call:
+    QList<QVariant> args;
+
+    // Program Name:
+    args.append(programName);
+
+    // Unique ID of this notification type:
+    args.append(0U);
+
+    // Application Icon, empty string
+    args.append(QString());
+
+    // Summary
+    args.append(title);
+
+    // Body
+    args.append(text);
+
+    // Actions (none, actions are deprecated)
+    QStringList actions;
+    args.append(actions);
+
+    // Hints
+    QVariantMap hints;
+
+    // If no icon specified, set icon based on class
+    QIcon tmpicon;
+    if(icon.isNull())
+    {
+        QStyle::StandardPixmap sicon = QStyle::SP_MessageBoxQuestion;
+        switch(cls)
+        {
+        case Information: sicon = QStyle::SP_MessageBoxInformation; break;
+        case Warning: sicon = QStyle::SP_MessageBoxWarning; break;
+        case Critical: sicon = QStyle::SP_MessageBoxCritical; break;
+        default: break;
+        }
+        tmpicon = QApplication::style()->standardIcon(sicon);
+    }
+    else
+    {
+        tmpicon = icon;
+    }
+    hints["icon_data"] = FreedesktopImage::toVariant(tmpicon.pixmap(FREEDESKTOP_NOTIFICATION_ICON_SIZE).toImage());
+    args.append(hints);
+
+    // Timeout (in msec)
+    args.append(millisTimeout);
+
+    // "Fire and forget"
+    interface->callWithArgumentList(QDBus::NoBlock, "Notify", args);
+}
+#endif
+
+void Notificator::notifySystray(Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout)
+{
+    Q_UNUSED(icon);
+    QSystemTrayIcon::MessageIcon sicon = QSystemTrayIcon::NoIcon;
+    switch(cls) // Set icon based on class
+    {
+    case Information: sicon = QSystemTrayIcon::Information; break;
+    case Warning: sicon = QSystemTrayIcon::Warning; break;
+    case Critical: sicon = QSystemTrayIcon::Critical; break;
+    }
+    trayIcon->showMessage(title, text, sicon, millisTimeout);
+}
+
+void Notificator::notify(Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout)
+{
+    switch(mode)
+    {
+#ifdef USE_DBUS
+    case Freedesktop:
+        notifyDBus(cls, title, text, icon, millisTimeout);
+        break;
+#endif
+    case QSystemTray:
+        notifySystray(cls, title, text, icon, millisTimeout);
+        break;
+    default:
+        if(cls == Critical)
+        {
+            // Fall back to old fashioned popup dialog if critical and no other notification available
+            QMessageBox::critical(parent, title, text, QMessageBox::Ok, QMessageBox::Ok);
+        }
+        break;
+    }
+}
diff --git a/src/qt/notificator.h b/src/qt/notificator.h
new file mode 100644 (file)
index 0000000..4217f7e
--- /dev/null
@@ -0,0 +1,63 @@
+#ifndef NOTIFICATOR_H
+#define NOTIFICATOR_H
+
+#include <QObject>
+#include <QIcon>
+
+QT_BEGIN_NAMESPACE
+class QSystemTrayIcon;
+#ifdef USE_DBUS
+class QDBusInterface;
+#endif
+QT_END_NAMESPACE
+
+// Cross-platform desktop notification client
+class Notificator: public QObject
+{
+    Q_OBJECT
+public:
+    // Create a new notificator
+    // Ownership of trayIcon is not transferred to this object
+    Notificator(const QString &programName=QString(), QSystemTrayIcon *trayIcon=0, QWidget *parent=0);
+    ~Notificator();
+
+    // Message class
+    enum Class
+    {
+        Information,
+        Warning,
+        Critical,
+    };
+
+public slots:
+
+    /* Show notification message.
+     *
+     *  cls: general message class
+     *  title: title shown with message
+     *  text: message content
+     *  icon: optional icon to show with message
+     *  millisTimeout: notification timeout in milliseconds (default 10 seconds)
+     */
+    void notify(Class cls, const QString &title, const QString &text,
+                const QIcon &icon = QIcon(), int millisTimeout = 10000);
+
+private:
+    QWidget *parent;
+    enum Mode {
+        None,
+        Freedesktop, // Use DBus org.freedesktop.Notifications
+        QSystemTray, // Use QSystemTray::showMessage
+    };
+    QString programName;
+    Mode mode;
+    QSystemTrayIcon *trayIcon;
+#ifdef USE_DBUS
+    QDBusInterface *interface;
+
+    void notifyDBus(Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout);
+#endif
+    void notifySystray(Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout);
+};
+
+#endif // NOTIFICATOR_H
diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp
new file mode 100644 (file)
index 0000000..7267e3d
--- /dev/null
@@ -0,0 +1,281 @@
+#include "optionsdialog.h"
+#include "optionsmodel.h"
+#include "bitcoinamountfield.h"
+#include "monitoreddatamapper.h"
+#include "guiutil.h"
+#include "bitcoinunits.h"
+#include "qvaluecombobox.h"
+
+#include <QHBoxLayout>
+#include <QVBoxLayout>
+#include <QPushButton>
+#include <QListWidget>
+#include <QStackedWidget>
+
+#include <QCheckBox>
+#include <QLabel>
+#include <QLineEdit>
+#include <QIntValidator>
+#include <QDoubleValidator>
+#include <QRegExpValidator>
+#include <QDialogButtonBox>
+
+/* First page of options */
+class MainOptionsPage : public QWidget
+{
+    Q_OBJECT
+public:
+    explicit MainOptionsPage(QWidget *parent=0);
+
+    void setMapper(MonitoredDataMapper *mapper);
+private:
+    QCheckBox *bitcoin_at_startup;
+    QCheckBox *minimize_to_tray;
+    QCheckBox *map_port_upnp;
+    QCheckBox *minimize_on_close;
+    QCheckBox *connect_socks4;
+    QLineEdit *proxy_ip;
+    QLineEdit *proxy_port;
+    BitcoinAmountField *fee_edit;
+
+signals:
+
+public slots:
+
+};
+
+class DisplayOptionsPage : public QWidget
+{
+    Q_OBJECT
+public:
+    explicit DisplayOptionsPage(QWidget *parent=0);
+
+    void setMapper(MonitoredDataMapper *mapper);
+private:
+    QValueComboBox *unit;
+    QCheckBox *display_addresses;
+signals:
+
+public slots:
+
+};
+
+#include "optionsdialog.moc"
+
+OptionsDialog::OptionsDialog(QWidget *parent):
+    QDialog(parent), contents_widget(0), pages_widget(0),
+    model(0), main_page(0), display_page(0)
+{
+    contents_widget = new QListWidget();
+    contents_widget->setMaximumWidth(128);
+
+    pages_widget = new QStackedWidget();
+    pages_widget->setMinimumWidth(300);
+
+    QListWidgetItem *item_main = new QListWidgetItem(tr("Main"));
+    contents_widget->addItem(item_main);
+    main_page = new MainOptionsPage(this);
+    pages_widget->addWidget(main_page);
+
+    QListWidgetItem *item_display = new QListWidgetItem(tr("Display"));
+    contents_widget->addItem(item_display);
+    display_page = new DisplayOptionsPage(this);
+    pages_widget->addWidget(display_page);
+
+    contents_widget->setCurrentRow(0);
+
+    QHBoxLayout *main_layout = new QHBoxLayout();
+    main_layout->addWidget(contents_widget);
+    main_layout->addWidget(pages_widget, 1);
+
+    QVBoxLayout *layout = new QVBoxLayout();
+    layout->addLayout(main_layout);
+
+    QDialogButtonBox *buttonbox = new QDialogButtonBox();
+    buttonbox->setStandardButtons(QDialogButtonBox::Apply|QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
+    apply_button = buttonbox->button(QDialogButtonBox::Apply);
+    layout->addWidget(buttonbox);
+
+    setLayout(layout);
+    setWindowTitle(tr("Options"));
+
+    /* Widget-to-option mapper */
+    mapper = new MonitoredDataMapper(this);
+    mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit);
+    mapper->setOrientation(Qt::Vertical);
+    /* enable apply button when data modified */
+    connect(mapper, SIGNAL(viewModified()), this, SLOT(enableApply()));
+    /* disable apply button when new data loaded */
+    connect(mapper, SIGNAL(currentIndexChanged(int)), this, SLOT(disableApply()));
+
+    /* Event bindings */
+    connect(contents_widget, SIGNAL(currentRowChanged(int)), this, SLOT(changePage(int)));
+    connect(buttonbox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(okClicked()));
+    connect(buttonbox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(cancelClicked()));
+    connect(buttonbox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(applyClicked()));
+}
+
+void OptionsDialog::setModel(OptionsModel *model)
+{
+    this->model = model;
+
+    mapper->setModel(model);
+    main_page->setMapper(mapper);
+    display_page->setMapper(mapper);
+
+    mapper->toFirst();
+}
+
+void OptionsDialog::changePage(int index)
+{
+    pages_widget->setCurrentIndex(index);
+}
+
+void OptionsDialog::okClicked()
+{
+    mapper->submit();
+    accept();
+}
+
+void OptionsDialog::cancelClicked()
+{
+    reject();
+}
+
+void OptionsDialog::applyClicked()
+{
+    mapper->submit();
+    apply_button->setEnabled(false);
+}
+
+void OptionsDialog::enableApply()
+{
+    apply_button->setEnabled(true);
+}
+
+void OptionsDialog::disableApply()
+{
+    apply_button->setEnabled(false);
+}
+
+MainOptionsPage::MainOptionsPage(QWidget *parent):
+        QWidget(parent)
+{
+    QVBoxLayout *layout = new QVBoxLayout();
+
+    bitcoin_at_startup = new QCheckBox(tr("&Start Bitcoin on window system startup"));
+    bitcoin_at_startup->setToolTip(tr("Automatically start Bitcoin after the computer is turned on"));
+    layout->addWidget(bitcoin_at_startup);
+
+    minimize_to_tray = new QCheckBox(tr("&Minimize to the tray instead of the taskbar"));
+    minimize_to_tray->setToolTip(tr("Show only a tray icon after minimizing the window"));
+    layout->addWidget(minimize_to_tray);
+
+    map_port_upnp = new QCheckBox(tr("Map port using &UPnP"));
+    map_port_upnp->setToolTip(tr("Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled."));
+    layout->addWidget(map_port_upnp);
+
+    minimize_on_close = new QCheckBox(tr("M&inimize on close"));
+    minimize_on_close->setToolTip(tr("Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu."));
+    layout->addWidget(minimize_on_close);
+
+    connect_socks4 = new QCheckBox(tr("&Connect through SOCKS4 proxy:"));
+    connect_socks4->setToolTip(tr("Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)"));
+    layout->addWidget(connect_socks4);
+
+    QHBoxLayout *proxy_hbox = new QHBoxLayout();
+    proxy_hbox->addSpacing(18);
+    QLabel *proxy_ip_label = new QLabel(tr("Proxy &IP: "));
+    proxy_hbox->addWidget(proxy_ip_label);
+    proxy_ip = new QLineEdit();
+    proxy_ip->setMaximumWidth(140);
+    proxy_ip->setEnabled(false);
+    proxy_ip->setValidator(new QRegExpValidator(QRegExp("[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}"), this));
+    proxy_ip->setToolTip(tr("IP address of the proxy (e.g. 127.0.0.1)"));
+    proxy_ip_label->setBuddy(proxy_ip);
+    proxy_hbox->addWidget(proxy_ip);
+    QLabel *proxy_port_label = new QLabel(tr("&Port: "));
+    proxy_hbox->addWidget(proxy_port_label);
+    proxy_port = new QLineEdit();
+    proxy_port->setMaximumWidth(55);
+    proxy_port->setValidator(new QIntValidator(0, 65535, this));
+    proxy_port->setEnabled(false);
+    proxy_port->setToolTip(tr("Port of the proxy (e.g. 1234)"));
+    proxy_port_label->setBuddy(proxy_port);
+    proxy_hbox->addWidget(proxy_port);
+    proxy_hbox->addStretch(1);
+
+    layout->addLayout(proxy_hbox);
+    QLabel *fee_help = new QLabel(tr("Optional transaction fee per KB that helps make sure your transactions are processed quickly.  Most transactions are 1KB.  Fee 0.01 recommended."));
+    fee_help->setWordWrap(true);
+    layout->addWidget(fee_help);
+
+    QHBoxLayout *fee_hbox = new QHBoxLayout();
+    fee_hbox->addSpacing(18);
+    QLabel *fee_label = new QLabel(tr("Pay transaction &fee"));
+    fee_hbox->addWidget(fee_label);
+    fee_edit = new BitcoinAmountField();
+    fee_edit->setToolTip(tr("Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended."));
+
+    fee_label->setBuddy(fee_edit);
+    fee_hbox->addWidget(fee_edit);
+    fee_hbox->addStretch(1);
+
+    layout->addLayout(fee_hbox);
+
+    layout->addStretch(1); // Extra space at bottom
+
+    setLayout(layout);
+
+    connect(connect_socks4, SIGNAL(toggled(bool)), proxy_ip, SLOT(setEnabled(bool)));
+    connect(connect_socks4, SIGNAL(toggled(bool)), proxy_port, SLOT(setEnabled(bool)));
+
+#ifndef USE_UPNP
+    map_port_upnp->setDisabled(true);
+#endif
+}
+
+void MainOptionsPage::setMapper(MonitoredDataMapper *mapper)
+{
+    // Map model to widgets
+    mapper->addMapping(bitcoin_at_startup, OptionsModel::StartAtStartup);
+    mapper->addMapping(minimize_to_tray, OptionsModel::MinimizeToTray);
+    mapper->addMapping(map_port_upnp, OptionsModel::MapPortUPnP);
+    mapper->addMapping(minimize_on_close, OptionsModel::MinimizeOnClose);
+    mapper->addMapping(connect_socks4, OptionsModel::ConnectSOCKS4);
+    mapper->addMapping(proxy_ip, OptionsModel::ProxyIP);
+    mapper->addMapping(proxy_port, OptionsModel::ProxyPort);
+    mapper->addMapping(fee_edit, OptionsModel::Fee);
+}
+
+DisplayOptionsPage::DisplayOptionsPage(QWidget *parent):
+        QWidget(parent)
+{
+    QVBoxLayout *layout = new QVBoxLayout();
+
+    QHBoxLayout *unit_hbox = new QHBoxLayout();
+    unit_hbox->addSpacing(18);
+    QLabel *unit_label = new QLabel(tr("&Unit to show amounts in: "));
+    unit_hbox->addWidget(unit_label);
+    unit = new QValueComboBox(this);
+    unit->setModel(new BitcoinUnits(this));
+    unit->setToolTip(tr("Choose the default subdivision unit to show in the interface, and when sending coins"));
+
+    unit_label->setBuddy(unit);
+    unit_hbox->addWidget(unit);
+
+    layout->addLayout(unit_hbox);
+
+    display_addresses = new QCheckBox(tr("Display addresses in transaction list"), this);
+    layout->addWidget(display_addresses);
+
+    layout->addStretch();
+
+    setLayout(layout);
+}
+
+void DisplayOptionsPage::setMapper(MonitoredDataMapper *mapper)
+{
+    mapper->addMapping(unit, OptionsModel::DisplayUnit);
+    mapper->addMapping(display_addresses, OptionsModel::DisplayAddresses);
+}
diff --git a/src/qt/optionsdialog.h b/src/qt/optionsdialog.h
new file mode 100644 (file)
index 0000000..d5238a3
--- /dev/null
@@ -0,0 +1,50 @@
+#ifndef OPTIONSDIALOG_H
+#define OPTIONSDIALOG_H
+
+#include <QDialog>
+
+QT_BEGIN_NAMESPACE
+class QStackedWidget;
+class QListWidget;
+class QListWidgetItem;
+class QPushButton;
+QT_END_NAMESPACE
+class OptionsModel;
+class MainOptionsPage;
+class DisplayOptionsPage;
+class MonitoredDataMapper;
+
+class OptionsDialog : public QDialog
+{
+    Q_OBJECT
+public:
+    explicit OptionsDialog(QWidget *parent=0);
+
+    void setModel(OptionsModel *model);
+
+signals:
+
+public slots:
+    void changePage(int index);
+
+private slots:
+    void okClicked();
+    void cancelClicked();
+    void applyClicked();
+    void enableApply();
+    void disableApply();
+private:
+    QListWidget *contents_widget;
+    QStackedWidget *pages_widget;
+    OptionsModel *model;
+    MonitoredDataMapper *mapper;
+    QPushButton *apply_button;
+
+    // Pages
+    MainOptionsPage *main_page;
+    DisplayOptionsPage *display_page;
+
+    void setupMainPage();
+};
+
+#endif // OPTIONSDIALOG_H
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp
new file mode 100644 (file)
index 0000000..efc216d
--- /dev/null
@@ -0,0 +1,162 @@
+#include "optionsmodel.h"
+#include "bitcoinunits.h"
+
+#include "headers.h"
+
+OptionsModel::OptionsModel(CWallet *wallet, QObject *parent) :
+    QAbstractListModel(parent),
+    wallet(wallet),
+    nDisplayUnit(BitcoinUnits::BTC),
+    bDisplayAddresses(false)
+{
+    // Read our specific settings from the wallet db
+    CWalletDB walletdb(wallet->strWalletFile);
+    walletdb.ReadSetting("nDisplayUnit", nDisplayUnit);
+    walletdb.ReadSetting("bDisplayAddresses", bDisplayAddresses);
+}
+
+int OptionsModel::rowCount(const QModelIndex & parent) const
+{
+    return OptionIDRowCount;
+}
+
+QVariant OptionsModel::data(const QModelIndex & index, int role) const
+{
+    if(role == Qt::EditRole)
+    {
+        switch(index.row())
+        {
+        case StartAtStartup:
+            return QVariant();
+        case MinimizeToTray:
+            return QVariant(fMinimizeToTray);
+        case MapPortUPnP:
+            return QVariant(fUseUPnP);
+        case MinimizeOnClose:
+            return QVariant(fMinimizeOnClose);
+        case ConnectSOCKS4:
+            return QVariant(fUseProxy);
+        case ProxyIP:
+            return QVariant(QString::fromStdString(addrProxy.ToStringIP()));
+        case ProxyPort:
+            return QVariant(QString::fromStdString(addrProxy.ToStringPort()));
+        case Fee:
+            return QVariant(nTransactionFee);
+        case DisplayUnit:
+            return QVariant(nDisplayUnit);
+        case DisplayAddresses:
+            return QVariant(bDisplayAddresses);
+        default:
+            return QVariant();
+        }
+    }
+    return QVariant();
+}
+
+bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, int role)
+{
+    bool successful = true; /* set to false on parse error */
+    if(role == Qt::EditRole)
+    {
+        CWalletDB walletdb(wallet->strWalletFile);
+        switch(index.row())
+        {
+        case StartAtStartup:
+            successful = false; /*TODO*/
+            break;
+        case MinimizeToTray:
+            fMinimizeToTray = value.toBool();
+            walletdb.WriteSetting("fMinimizeToTray", fMinimizeToTray);
+            break;
+        case MapPortUPnP:
+            fUseUPnP = value.toBool();
+            walletdb.WriteSetting("fUseUPnP", fUseUPnP);
+#ifdef USE_UPNP
+            MapPort(fUseUPnP);
+#endif
+            break;
+        case MinimizeOnClose:
+            fMinimizeOnClose = value.toBool();
+            walletdb.WriteSetting("fMinimizeOnClose", fMinimizeOnClose);
+            break;
+        case ConnectSOCKS4:
+            fUseProxy = value.toBool();
+            walletdb.WriteSetting("fUseProxy", fUseProxy);
+            break;
+        case ProxyIP:
+            {
+                // Use CAddress to parse and check IP
+                CAddress addr(value.toString().toStdString() + ":1");
+                if (addr.ip != INADDR_NONE)
+                {
+                    addrProxy.ip = addr.ip;
+                    walletdb.WriteSetting("addrProxy", addrProxy);
+                }
+                else
+                {
+                    successful = false;
+                }
+            }
+            break;
+        case ProxyPort:
+            {
+                int nPort = atoi(value.toString().toAscii().data());
+                if (nPort > 0 && nPort < USHRT_MAX)
+                {
+                    addrProxy.port = htons(nPort);
+                    walletdb.WriteSetting("addrProxy", addrProxy);
+                }
+                else
+                {
+                    successful = false;
+                }
+            }
+            break;
+        case Fee: {
+            nTransactionFee = value.toLongLong();
+            walletdb.WriteSetting("nTransactionFee", nTransactionFee);
+            }
+            break;
+        case DisplayUnit: {
+            int unit = value.toInt();
+            nDisplayUnit = unit;
+            walletdb.WriteSetting("nDisplayUnit", nDisplayUnit);
+            emit displayUnitChanged(unit);
+            }
+        case DisplayAddresses: {
+            bDisplayAddresses = value.toBool();
+            walletdb.WriteSetting("bDisplayAddresses", bDisplayAddresses);
+            }
+        default:
+            break;
+        }
+    }
+    emit dataChanged(index, index);
+
+    return successful;
+}
+
+qint64 OptionsModel::getTransactionFee()
+{
+    return nTransactionFee;
+}
+
+bool OptionsModel::getMinimizeToTray()
+{
+    return fMinimizeToTray;
+}
+
+bool OptionsModel::getMinimizeOnClose()
+{
+    return fMinimizeOnClose;
+}
+
+int OptionsModel::getDisplayUnit()
+{
+    return nDisplayUnit;
+}
+
+bool OptionsModel::getDisplayAddresses()
+{
+    return bDisplayAddresses;
+}
diff --git a/src/qt/optionsmodel.h b/src/qt/optionsmodel.h
new file mode 100644 (file)
index 0000000..7f489c5
--- /dev/null
@@ -0,0 +1,56 @@
+#ifndef OPTIONSMODEL_H
+#define OPTIONSMODEL_H
+
+#include <QAbstractListModel>
+
+class CWallet;
+
+/* Interface from QT to configuration data structure for bitcoin client.
+   To QT, the options are presented as a list with the different options
+   laid out vertically.
+   This can be changed to a tree once the settings become sufficiently
+   complex.
+ */
+class OptionsModel : public QAbstractListModel
+{
+    Q_OBJECT
+public:
+    explicit OptionsModel(CWallet *wallet, QObject *parent = 0);
+
+    enum OptionID {
+        StartAtStartup, // bool
+        MinimizeToTray, // bool
+        MapPortUPnP, // bool
+        MinimizeOnClose, // bool
+        ConnectSOCKS4, // bool
+        ProxyIP, // QString
+        ProxyPort, // QString
+        Fee, // qint64
+        DisplayUnit, // BitcoinUnits::Unit
+        DisplayAddresses, // bool
+        OptionIDRowCount
+    };
+
+    int rowCount(const QModelIndex & parent = QModelIndex()) const;
+    QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
+    bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
+
+    /* Explicit getters */
+    qint64 getTransactionFee();
+    bool getMinimizeToTray();
+    bool getMinimizeOnClose();
+    int getDisplayUnit();
+    bool getDisplayAddresses();
+private:
+    // Wallet stores persistent options
+    CWallet *wallet;
+    int nDisplayUnit;
+    bool bDisplayAddresses;
+signals:
+    void displayUnitChanged(int unit);
+
+public slots:
+
+};
+
+#endif // OPTIONSMODEL_H
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
new file mode 100644 (file)
index 0000000..f84a79f
--- /dev/null
@@ -0,0 +1,174 @@
+#include "overviewpage.h"
+#include "ui_overviewpage.h"
+
+#include "walletmodel.h"
+#include "bitcoinunits.h"
+#include "optionsmodel.h"
+#include "transactiontablemodel.h"
+#include "transactionfilterproxy.h"
+#include "guiutil.h"
+#include "guiconstants.h"
+
+#include <QAbstractItemDelegate>
+#include <QPainter>
+
+#define DECORATION_SIZE 64
+#define NUM_ITEMS 3
+
+class TxViewDelegate : public QAbstractItemDelegate
+{
+    Q_OBJECT
+public:
+    TxViewDelegate(): QAbstractItemDelegate(), unit(BitcoinUnits::BTC)
+    {
+
+    }
+
+    inline void paint(QPainter *painter, const QStyleOptionViewItem &option,
+                      const QModelIndex &index ) const
+    {
+        painter->save();
+
+        QIcon icon = qvariant_cast<QIcon>(index.data(Qt::DecorationRole));
+        QRect mainRect = option.rect;
+        QRect decorationRect(mainRect.topLeft(), QSize(DECORATION_SIZE, DECORATION_SIZE));
+        int xspace = DECORATION_SIZE + 8;
+        int ypad = 6;
+        int halfheight = (mainRect.height() - 2*ypad)/2;
+        QRect amountRect(mainRect.left() + xspace, mainRect.top()+ypad, mainRect.width() - xspace, halfheight);
+        QRect addressRect(mainRect.left() + xspace, mainRect.top()+ypad+halfheight, mainRect.width() - xspace, halfheight);
+        icon.paint(painter, decorationRect);
+
+        QDateTime date = index.data(TransactionTableModel::DateRole).toDateTime();
+        QString address = index.data(Qt::DisplayRole).toString();
+        qint64 amount = index.data(TransactionTableModel::AmountRole).toLongLong();
+        bool confirmed = index.data(TransactionTableModel::ConfirmedRole).toBool();
+        QVariant value = index.data(Qt::ForegroundRole);
+        QColor foreground = option.palette.color(QPalette::Text);
+        if(qVariantCanConvert<QColor>(value))
+        {
+            foreground = qvariant_cast<QColor>(value);
+        }
+
+        painter->setPen(foreground);
+        painter->drawText(addressRect, Qt::AlignLeft|Qt::AlignVCenter, address);
+
+        if(amount < 0)
+        {
+            foreground = COLOR_NEGATIVE;
+        }
+        else if(!confirmed)
+        {
+            foreground = COLOR_UNCONFIRMED;
+        }
+        else
+        {
+            foreground = option.palette.color(QPalette::Text);
+        }
+        painter->setPen(foreground);
+        QString amountText = BitcoinUnits::formatWithUnit(unit, amount, true);
+        if(!confirmed)
+        {
+            amountText = QString("[") + amountText + QString("]");
+        }
+        painter->drawText(amountRect, Qt::AlignRight|Qt::AlignVCenter, amountText);
+
+        painter->setPen(option.palette.color(QPalette::Text));
+        painter->drawText(amountRect, Qt::AlignLeft|Qt::AlignVCenter, GUIUtil::dateTimeStr(date));
+
+        painter->restore();
+    }
+
+    inline QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
+    {
+        return QSize(DECORATION_SIZE, DECORATION_SIZE);
+    }
+
+    int unit;
+
+};
+#include "overviewpage.moc"
+
+OverviewPage::OverviewPage(QWidget *parent) :
+    QWidget(parent),
+    ui(new Ui::OverviewPage),
+    currentBalance(-1),
+    currentUnconfirmedBalance(-1),
+    txdelegate(new TxViewDelegate())
+{
+    ui->setupUi(this);
+
+    // Balance: <balance>
+    ui->labelBalance->setFont(QFont("Monospace", -1, QFont::Bold));
+    ui->labelBalance->setToolTip(tr("Your current balance"));
+    ui->labelBalance->setTextInteractionFlags(Qt::TextSelectableByMouse|Qt::TextSelectableByKeyboard);
+
+    // Unconfirmed balance: <balance>
+    ui->labelUnconfirmed->setFont(QFont("Monospace", -1, QFont::Bold));
+    ui->labelUnconfirmed->setToolTip(tr("Total of transactions that have yet to be confirmed, and do not yet count toward the current balance"));
+    ui->labelUnconfirmed->setTextInteractionFlags(Qt::TextSelectableByMouse|Qt::TextSelectableByKeyboard);
+
+    ui->labelNumTransactions->setToolTip(tr("Total number of transactions in wallet"));
+
+    // Recent transactions
+    ui->listTransactions->setStyleSheet("background:transparent");
+    ui->listTransactions->setItemDelegate(txdelegate);
+    ui->listTransactions->setIconSize(QSize(DECORATION_SIZE, DECORATION_SIZE));
+    ui->listTransactions->setSelectionMode(QAbstractItemView::NoSelection);
+    ui->listTransactions->setMinimumHeight(NUM_ITEMS * (DECORATION_SIZE + 2));
+
+    connect(ui->listTransactions, SIGNAL(clicked(QModelIndex)), this, SIGNAL(transactionClicked(QModelIndex)));
+}
+
+OverviewPage::~OverviewPage()
+{
+    delete ui;
+}
+
+void OverviewPage::setBalance(qint64 balance, qint64 unconfirmedBalance)
+{
+    int unit = model->getOptionsModel()->getDisplayUnit();
+    currentBalance = balance;
+    currentUnconfirmedBalance = unconfirmedBalance;
+    ui->labelBalance->setText(BitcoinUnits::formatWithUnit(unit, balance));
+    ui->labelUnconfirmed->setText(BitcoinUnits::formatWithUnit(unit, unconfirmedBalance));
+}
+
+void OverviewPage::setNumTransactions(int count)
+{
+    ui->labelNumTransactions->setText(QLocale::system().toString(count));
+}
+
+void OverviewPage::setModel(WalletModel *model)
+{
+    this->model = model;
+
+    // Set up transaction list
+    TransactionFilterProxy *filter = new TransactionFilterProxy();
+    filter->setSourceModel(model->getTransactionTableModel());
+    filter->setLimit(NUM_ITEMS);
+    filter->setDynamicSortFilter(true);
+    filter->setSortRole(Qt::EditRole);
+    filter->sort(TransactionTableModel::Status, Qt::DescendingOrder);
+
+    ui->listTransactions->setModel(filter);
+    ui->listTransactions->setModelColumn(TransactionTableModel::ToAddress);
+
+    // Keep up to date with wallet
+    setBalance(model->getBalance(), model->getUnconfirmedBalance());
+    connect(model, SIGNAL(balanceChanged(qint64, qint64)), this, SLOT(setBalance(qint64, qint64)));
+
+    setNumTransactions(model->getNumTransactions());
+    connect(model, SIGNAL(numTransactionsChanged(int)), this, SLOT(setNumTransactions(int)));
+
+    connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(displayUnitChanged()));
+}
+
+void OverviewPage::displayUnitChanged()
+{
+    if(currentBalance != -1)
+        setBalance(currentBalance, currentUnconfirmedBalance);
+
+    txdelegate->unit = model->getOptionsModel()->getDisplayUnit();
+    ui->listTransactions->update();
+}
diff --git a/src/qt/overviewpage.h b/src/qt/overviewpage.h
new file mode 100644 (file)
index 0000000..4b4cc92
--- /dev/null
@@ -0,0 +1,45 @@
+#ifndef OVERVIEWPAGE_H
+#define OVERVIEWPAGE_H
+
+#include <QWidget>
+
+QT_BEGIN_NAMESPACE
+class QModelIndex;
+QT_END_NAMESPACE
+
+namespace Ui {
+    class OverviewPage;
+}
+class WalletModel;
+class TxViewDelegate;
+
+class OverviewPage : public QWidget
+{
+    Q_OBJECT
+
+public:
+    explicit OverviewPage(QWidget *parent = 0);
+    ~OverviewPage();
+
+    void setModel(WalletModel *model);
+
+public slots:
+    void setBalance(qint64 balance, qint64 unconfirmedBalance);
+    void setNumTransactions(int count);
+
+signals:
+    void transactionClicked(const QModelIndex &index);
+
+private:
+    Ui::OverviewPage *ui;
+    WalletModel *model;
+    qint64 currentBalance;
+    qint64 currentUnconfirmedBalance;
+
+    TxViewDelegate *txdelegate;
+
+private slots:
+    void displayUnitChanged();
+};
+
+#endif // OVERVIEWPAGE_H
diff --git a/src/qt/qvalidatedlineedit.cpp b/src/qt/qvalidatedlineedit.cpp
new file mode 100644 (file)
index 0000000..8ca230c
--- /dev/null
@@ -0,0 +1,45 @@
+#include "qvalidatedlineedit.h"
+
+#include "guiconstants.h"
+
+QValidatedLineEdit::QValidatedLineEdit(QWidget *parent) :
+    QLineEdit(parent), valid(true)
+{
+    connect(this, SIGNAL(textChanged(QString)), this, SLOT(markValid()));
+}
+
+void QValidatedLineEdit::setValid(bool valid)
+{
+    if(valid == this->valid)
+    {
+        return;
+    }
+
+    if(valid)
+    {
+        setStyleSheet("");
+    }
+    else
+    {
+        setStyleSheet(STYLE_INVALID);
+    }
+    this->valid = valid;
+}
+
+void QValidatedLineEdit::focusInEvent(QFocusEvent *evt)
+{
+    // Clear invalid flag on focus
+    setValid(true);
+    QLineEdit::focusInEvent(evt);
+}
+
+void QValidatedLineEdit::markValid()
+{
+    setValid(true);
+}
+
+void QValidatedLineEdit::clear()
+{
+    setValid(true);
+    QLineEdit::clear();
+}
diff --git a/src/qt/qvalidatedlineedit.h b/src/qt/qvalidatedlineedit.h
new file mode 100644 (file)
index 0000000..f7b9486
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef QVALIDATEDLINEEDIT_H
+#define QVALIDATEDLINEEDIT_H
+
+#include <QLineEdit>
+
+// Line edit that can be marked as "invalid". When marked as invalid,
+// it will get a red background until it is focused.
+class QValidatedLineEdit : public QLineEdit
+{
+    Q_OBJECT
+public:
+    explicit QValidatedLineEdit(QWidget *parent = 0);
+    void clear();
+
+protected:
+    void focusInEvent(QFocusEvent *evt);
+
+private:
+    bool valid;
+
+public slots:
+    void setValid(bool valid);
+
+private slots:
+    void markValid();
+};
+
+#endif // QVALIDATEDLINEEDIT_H
diff --git a/src/qt/qvaluecombobox.cpp b/src/qt/qvaluecombobox.cpp
new file mode 100644 (file)
index 0000000..c0ad8c1
--- /dev/null
@@ -0,0 +1,27 @@
+#include "qvaluecombobox.h"
+
+QValueComboBox::QValueComboBox(QWidget *parent) :
+        QComboBox(parent), role(Qt::UserRole)
+{
+    connect(this, SIGNAL(currentIndexChanged(int)), this, SLOT(handleSelectionChanged(int)));
+}
+
+int QValueComboBox::value() const
+{
+    return itemData(currentIndex(), role).toInt();
+}
+
+void QValueComboBox::setValue(int value)
+{
+    setCurrentIndex(findData(value, role));
+}
+
+void QValueComboBox::setRole(int role)
+{
+    this->role = role;
+}
+
+void QValueComboBox::handleSelectionChanged(int idx)
+{
+    emit valueChanged();
+}
diff --git a/src/qt/qvaluecombobox.h b/src/qt/qvaluecombobox.h
new file mode 100644 (file)
index 0000000..2a3533d
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef QVALUECOMBOBOX_H
+#define QVALUECOMBOBOX_H
+
+#include <QComboBox>
+
+// QComboBox that can be used with QDataWidgetMapper to select
+// ordinal values from a model.
+class QValueComboBox : public QComboBox
+{
+    Q_OBJECT
+    Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged USER true);
+public:
+    explicit QValueComboBox(QWidget *parent = 0);
+
+    int value() const;
+    void setValue(int value);
+
+    // Model role to use as value
+    void setRole(int role);
+
+signals:
+    void valueChanged();
+
+public slots:
+
+private:
+    int role;
+
+private slots:
+    void handleSelectionChanged(int idx);
+};
+
+#endif // QVALUECOMBOBOX_H
diff --git a/src/qt/res/bitcoin-qt.rc b/src/qt/res/bitcoin-qt.rc
new file mode 100644 (file)
index 0000000..1a1ab53
--- /dev/null
@@ -0,0 +1 @@
+IDI_ICON1 ICON DISCARDABLE "icons/bitcoin.ico"
diff --git a/src/qt/res/icons/add.png b/src/qt/res/icons/add.png
new file mode 100644 (file)
index 0000000..f98e2a8
Binary files /dev/null and b/src/qt/res/icons/add.png differ
diff --git a/src/qt/res/icons/address-book.png b/src/qt/res/icons/address-book.png
new file mode 100644 (file)
index 0000000..1086fbe
Binary files /dev/null and b/src/qt/res/icons/address-book.png differ
diff --git a/src/qt/res/icons/bitcoin.icns b/src/qt/res/icons/bitcoin.icns
new file mode 100644 (file)
index 0000000..3c75708
Binary files /dev/null and b/src/qt/res/icons/bitcoin.icns differ
diff --git a/src/qt/res/icons/bitcoin.ico b/src/qt/res/icons/bitcoin.ico
new file mode 100644 (file)
index 0000000..01afd3c
Binary files /dev/null and b/src/qt/res/icons/bitcoin.ico differ
diff --git a/src/qt/res/icons/bitcoin.png b/src/qt/res/icons/bitcoin.png
new file mode 100644 (file)
index 0000000..bf43144
Binary files /dev/null and b/src/qt/res/icons/bitcoin.png differ
diff --git a/src/qt/res/icons/bitcoin_testnet.png b/src/qt/res/icons/bitcoin_testnet.png
new file mode 100644 (file)
index 0000000..ee2dc40
Binary files /dev/null and b/src/qt/res/icons/bitcoin_testnet.png differ
diff --git a/src/qt/res/icons/clock1.png b/src/qt/res/icons/clock1.png
new file mode 100644 (file)
index 0000000..448e47f
Binary files /dev/null and b/src/qt/res/icons/clock1.png differ
diff --git a/src/qt/res/icons/clock2.png b/src/qt/res/icons/clock2.png
new file mode 100644 (file)
index 0000000..c1a6e99
Binary files /dev/null and b/src/qt/res/icons/clock2.png differ
diff --git a/src/qt/res/icons/clock3.png b/src/qt/res/icons/clock3.png
new file mode 100644 (file)
index 0000000..e429a40
Binary files /dev/null and b/src/qt/res/icons/clock3.png differ
diff --git a/src/qt/res/icons/clock4.png b/src/qt/res/icons/clock4.png
new file mode 100644 (file)
index 0000000..ba036f4
Binary files /dev/null and b/src/qt/res/icons/clock4.png differ
diff --git a/src/qt/res/icons/clock5.png b/src/qt/res/icons/clock5.png
new file mode 100644 (file)
index 0000000..411d7a7
Binary files /dev/null and b/src/qt/res/icons/clock5.png differ
diff --git a/src/qt/res/icons/configure.png b/src/qt/res/icons/configure.png
new file mode 100644 (file)
index 0000000..95bd319
Binary files /dev/null and b/src/qt/res/icons/configure.png differ
diff --git a/src/qt/res/icons/connect0_16.png b/src/qt/res/icons/connect0_16.png
new file mode 100644 (file)
index 0000000..66f3ae4
Binary files /dev/null and b/src/qt/res/icons/connect0_16.png differ
diff --git a/src/qt/res/icons/connect1_16.png b/src/qt/res/icons/connect1_16.png
new file mode 100644 (file)
index 0000000..76000be
Binary files /dev/null and b/src/qt/res/icons/connect1_16.png differ
diff --git a/src/qt/res/icons/connect2_16.png b/src/qt/res/icons/connect2_16.png
new file mode 100644 (file)
index 0000000..6d9a372
Binary files /dev/null and b/src/qt/res/icons/connect2_16.png differ
diff --git a/src/qt/res/icons/connect3_16.png b/src/qt/res/icons/connect3_16.png
new file mode 100644 (file)
index 0000000..a211700
Binary files /dev/null and b/src/qt/res/icons/connect3_16.png differ
diff --git a/src/qt/res/icons/connect4_16.png b/src/qt/res/icons/connect4_16.png
new file mode 100644 (file)
index 0000000..e2fe97d
Binary files /dev/null and b/src/qt/res/icons/connect4_16.png differ
diff --git a/src/qt/res/icons/edit.png b/src/qt/res/icons/edit.png
new file mode 100644 (file)
index 0000000..1d69145
Binary files /dev/null and b/src/qt/res/icons/edit.png differ
diff --git a/src/qt/res/icons/editcopy.png b/src/qt/res/icons/editcopy.png
new file mode 100644 (file)
index 0000000..f882aa2
Binary files /dev/null and b/src/qt/res/icons/editcopy.png differ
diff --git a/src/qt/res/icons/editpaste.png b/src/qt/res/icons/editpaste.png
new file mode 100644 (file)
index 0000000..a192060
Binary files /dev/null and b/src/qt/res/icons/editpaste.png differ
diff --git a/src/qt/res/icons/export.png b/src/qt/res/icons/export.png
new file mode 100644 (file)
index 0000000..69d59a3
Binary files /dev/null and b/src/qt/res/icons/export.png differ
diff --git a/src/qt/res/icons/history.png b/src/qt/res/icons/history.png
new file mode 100644 (file)
index 0000000..60f1351
Binary files /dev/null and b/src/qt/res/icons/history.png differ
diff --git a/src/qt/res/icons/key.png b/src/qt/res/icons/key.png
new file mode 100644 (file)
index 0000000..757cad4
Binary files /dev/null and b/src/qt/res/icons/key.png differ
diff --git a/src/qt/res/icons/lock_closed.png b/src/qt/res/icons/lock_closed.png
new file mode 100644 (file)
index 0000000..ce8da0b
Binary files /dev/null and b/src/qt/res/icons/lock_closed.png differ
diff --git a/src/qt/res/icons/lock_open.png b/src/qt/res/icons/lock_open.png
new file mode 100644 (file)
index 0000000..6a3a8ed
Binary files /dev/null and b/src/qt/res/icons/lock_open.png differ
diff --git a/src/qt/res/icons/notsynced.png b/src/qt/res/icons/notsynced.png
new file mode 100644 (file)
index 0000000..c9e7118
Binary files /dev/null and b/src/qt/res/icons/notsynced.png differ
diff --git a/src/qt/res/icons/overview.png b/src/qt/res/icons/overview.png
new file mode 100644 (file)
index 0000000..6b94b43
Binary files /dev/null and b/src/qt/res/icons/overview.png differ
diff --git a/src/qt/res/icons/quit.png b/src/qt/res/icons/quit.png
new file mode 100644 (file)
index 0000000..0dde6f3
Binary files /dev/null and b/src/qt/res/icons/quit.png differ
diff --git a/src/qt/res/icons/receive.png b/src/qt/res/icons/receive.png
new file mode 100644 (file)
index 0000000..e8f418a
Binary files /dev/null and b/src/qt/res/icons/receive.png differ
diff --git a/src/qt/res/icons/remove.png b/src/qt/res/icons/remove.png
new file mode 100644 (file)
index 0000000..a44b6d1
Binary files /dev/null and b/src/qt/res/icons/remove.png differ
diff --git a/src/qt/res/icons/send.png b/src/qt/res/icons/send.png
new file mode 100644 (file)
index 0000000..55ce550
Binary files /dev/null and b/src/qt/res/icons/send.png differ
diff --git a/src/qt/res/icons/synced.png b/src/qt/res/icons/synced.png
new file mode 100644 (file)
index 0000000..8e428b6
Binary files /dev/null and b/src/qt/res/icons/synced.png differ
diff --git a/src/qt/res/icons/toolbar.png b/src/qt/res/icons/toolbar.png
new file mode 100644 (file)
index 0000000..84c18e2
Binary files /dev/null and b/src/qt/res/icons/toolbar.png differ
diff --git a/src/qt/res/icons/toolbar_testnet.png b/src/qt/res/icons/toolbar_testnet.png
new file mode 100644 (file)
index 0000000..90ed6d9
Binary files /dev/null and b/src/qt/res/icons/toolbar_testnet.png differ
diff --git a/src/qt/res/icons/transaction0.png b/src/qt/res/icons/transaction0.png
new file mode 100644 (file)
index 0000000..4578666
Binary files /dev/null and b/src/qt/res/icons/transaction0.png differ
diff --git a/src/qt/res/icons/transaction2.png b/src/qt/res/icons/transaction2.png
new file mode 100644 (file)
index 0000000..01bb558
Binary files /dev/null and b/src/qt/res/icons/transaction2.png differ
diff --git a/src/qt/res/icons/tx_inout.png b/src/qt/res/icons/tx_inout.png
new file mode 100644 (file)
index 0000000..5f092f9
Binary files /dev/null and b/src/qt/res/icons/tx_inout.png differ
diff --git a/src/qt/res/icons/tx_input.png b/src/qt/res/icons/tx_input.png
new file mode 100644 (file)
index 0000000..0f5fea3
Binary files /dev/null and b/src/qt/res/icons/tx_input.png differ
diff --git a/src/qt/res/icons/tx_mined.png b/src/qt/res/icons/tx_mined.png
new file mode 100644 (file)
index 0000000..613f30f
Binary files /dev/null and b/src/qt/res/icons/tx_mined.png differ
diff --git a/src/qt/res/icons/tx_output.png b/src/qt/res/icons/tx_output.png
new file mode 100644 (file)
index 0000000..9ae39fb
Binary files /dev/null and b/src/qt/res/icons/tx_output.png differ
diff --git a/src/qt/res/images/about.png b/src/qt/res/images/about.png
new file mode 100644 (file)
index 0000000..c9ab951
Binary files /dev/null and b/src/qt/res/images/about.png differ
diff --git a/src/qt/res/images/splash2.jpg b/src/qt/res/images/splash2.jpg
new file mode 100644 (file)
index 0000000..3846e6f
Binary files /dev/null and b/src/qt/res/images/splash2.jpg differ
diff --git a/src/qt/res/movies/update_spinner.mng b/src/qt/res/movies/update_spinner.mng
new file mode 100644 (file)
index 0000000..7df3baa
Binary files /dev/null and b/src/qt/res/movies/update_spinner.mng differ
diff --git a/src/qt/res/src/bitcoin.svg b/src/qt/res/src/bitcoin.svg
new file mode 100644 (file)
index 0000000..96f1017
--- /dev/null
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.0 r9654"
+   width="256"
+   height="256"
+   sodipodi:docname="bitcoin.svg"
+   inkscape:export-filename="/store/orion/projects/bitcoin/BC_Logo_icon32.png"
+   inkscape:export-xdpi="11.25"
+   inkscape:export-ydpi="11.25"
+   style="display:inline">
+  <metadata
+     id="metadata8">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs6">
+    <linearGradient
+       id="linearGradient3800">
+      <stop
+         style="stop-color:#fbba6c;stop-opacity:1;"
+         offset="0"
+         id="stop3802" />
+      <stop
+         style="stop-color:#f89825;stop-opacity:1;"
+         offset="1"
+         id="stop3804" />
+    </linearGradient>
+    <filter
+       inkscape:collect="always"
+       id="filter3788">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="7.7328864"
+         id="feGaussianBlur3790" />
+    </filter>
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3800"
+       id="radialGradient3806"
+       cx="137.01819"
+       cy="136.81316"
+       fx="137.01819"
+       fy="136.81316"
+       r="120.22619"
+       gradientTransform="matrix(1,0,0,0.99768745,0,0.29784356)"
+       gradientUnits="userSpaceOnUse" />
+  </defs>
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1204"
+     inkscape:window-height="972"
+     id="namedview4"
+     showgrid="false"
+     inkscape:zoom="1"
+     inkscape:cx="-54.927212"
+     inkscape:cy="128"
+     inkscape:window-x="238"
+     inkscape:window-y="143"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="layer1" />
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="Shadow"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:nodetypes="sssssssssssscssssscsssscscssssssssssscscsssssssscscssssscssscssssssscsssssssss"
+       inkscape:connector-curvature="0"
+       id="path2986"
+       d="M 111.77934,251.6677 C 67.147549,243.82973 30.788461,211.94464 17.111244,168.64858 7.1011053,136.9609 11.409199,100.0445 28.433065,71.630835 45.23974,43.579693 71.151762,24.409692 103.78036,15.888094 c 12.1652,-3.177178 33.00458,-3.99623 46.6577,-1.833789 45.59908,7.22219 82.56109,39.080427 96.48709,83.164011 10.01013,31.687684 5.70204,68.604084 -11.32183,97.017744 -16.8025,28.04418 -42.64131,47.16473 -75.34729,55.75648 -7.52834,1.97768 -11.60054,2.41566 -24.95273,2.68377 -10.90952,0.21906 -18.34974,-0.0999 -23.52396,-1.00861 z m 20.17619,-31.35425 c 0.63075,-2.39846 2.14458,-8.28561 3.36407,-13.08254 1.56481,-6.15521 2.69488,-8.60563 3.84031,-8.32722 0.89267,0.21696 7.39067,0.68131 14.43998,1.03189 16.31195,0.81124 23.9944,-1.14509 31.43693,-8.00537 7.63877,-7.04117 11.30337,-15.63267 11.82635,-27.72636 0.37592,-8.69327 0.10152,-10.44523 -2.27687,-14.53617 -1.48738,-2.55836 -5.17935,-6.48313 -8.20438,-8.7217 l -5.50006,-4.07013 4.37131,-1.87838 c 9.83682,-4.22697 14.47489,-11.84516 15.1401,-24.86816 0.41587,-8.14174 0.12573,-9.95645 -2.32406,-14.536178 -3.41249,-6.379435 -11.7129,-12.875301 -21.81801,-17.074696 -4.15735,-1.727672 -7.66196,-3.187464 -7.78803,-3.243983 -0.12607,-0.05651 1.28534,-6.088871 3.13645,-13.405229 1.85112,-7.316357 3.26253,-13.372021 3.13645,-13.457031 -0.12607,-0.08501 -2.84573,-0.778731 -6.04368,-1.541604 -3.19796,-0.762872 -6.6666,-1.640092 -7.70811,-1.949379 -1.54868,-0.459905 -2.47321,1.773902 -5.07541,12.262964 -2.215,8.928331 -3.69157,12.825303 -4.85951,12.825303 -2.30435,0 -12.01076,-2.489633 -12.01076,-3.080685 0,-0.263336 1.37739,-5.975631 3.06085,-12.693987 1.68345,-6.718356 2.78086,-12.49516 2.43868,-12.837341 -1.06646,-1.066455 -13.66473,-4.07084 -14.61292,-3.484827 -0.49474,0.305758 -2.13899,5.806491 -3.65393,12.223852 -1.51493,6.417361 -3.0693,12.177423 -3.45416,12.800138 -0.42537,0.68826 -6.84309,-0.416984 -16.36715,-2.818708 -8.617084,-2.173005 -15.989649,-3.583696 -16.383486,-3.13487 -0.393848,0.448826 -1.334199,3.432558 -2.089673,6.630515 -0.755474,3.197957 -1.623352,6.656241 -1.928612,7.685075 -0.438573,1.478093 0.970946,2.194444 6.717302,3.413902 7.407149,1.571906 12.549199,5.114005 12.549199,8.644526 0,3.559986 -18.770806,76.736553 -20.092504,78.329103 -1.007682,1.21419 -2.807318,1.40957 -7.196833,0.78135 -11.551776,-1.65329 -10.897277,-1.95681 -14.648875,6.7937 -1.878049,4.38054 -3.41465,8.32832 -3.41465,8.77286 0,0.44453 6.14881,2.29784 13.664008,4.11848 7.515199,1.82065 14.792647,3.72851 16.172114,4.23971 l 2.508106,0.92945 -3.31877,13.11716 c -1.825323,7.21442 -3.215633,13.21726 -3.089563,13.33965 0.549874,0.53382 15.058297,4.01313 15.382497,3.68892 0.19792,-0.19791 1.74688,-5.83164 3.44215,-12.51942 1.69526,-6.68778 3.30839,-12.52544 3.58472,-12.97256 0.443,-0.71676 11.73522,1.68597 12.76544,2.7162 0.21981,0.21981 -1.08467,6.26629 -2.89884,13.43664 l -3.29849,13.03696 4.8136,1.23571 c 2.6475,0.67965 5.33693,1.42786 5.97652,1.66271 3.63321,1.33406 5.19855,0.40079 6.2902,-3.75024 z m 0.68716,-43.88623 c -0.63959,-0.21166 -5.21848,-1.29512 -10.17531,-2.40768 -4.95684,-1.11255 -9.01243,-2.23295 -9.01243,-2.48975 0,-0.65492 8.11353,-33.1852 8.69895,-34.87745 0.34957,-1.01046 3.32218,-0.62569 10.96233,1.41895 12.84914,3.43866 18.00073,5.54314 23.11146,9.44128 8.35514,6.37277 10.49752,14.36232 5.75489,21.46161 -3.94917,5.91153 -9.15813,8.03413 -19.45529,7.92788 -4.79693,-0.0496 -9.245,-0.26317 -9.8846,-0.47484 z m 2.50991,-54.7082 c -3.73627,-0.93479 -7.21128,-1.958 -7.72221,-2.27376 -0.72057,-0.44534 6.3168,-31.740173 7.3756,-32.798964 0.64276,-0.642776 19.09068,4.708848 22.8588,6.631196 2.34875,1.19824 5.92162,4.059214 7.93975,6.357724 2.94919,3.358944 3.66929,5.201504 3.66929,9.388734 0,4.31035 -0.68714,5.95944 -3.98073,9.55341 -3.93586,4.2948 -4.08991,4.34657 -13.664,4.59252 -5.49512,0.14117 -12.62142,-0.48635 -16.4765,-1.45086 z"
+       style="opacity:0.8176923;fill:#000000;fill-opacity:1;filter:url(#filter3788)" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer1"
+     inkscape:label="Front"
+     style="display:inline">
+    <path
+       style="fill:url(#radialGradient3806);fill-opacity:1;display:inline"
+       d="M 107.77934,247.6677 C 63.147549,239.82973 26.788461,207.94464 13.111244,164.64858 3.1011053,132.9609 7.4091993,96.044496 24.433065,67.630835 41.23974,39.579693 67.151762,20.409692 99.780356,11.888094 111.94556,8.7109163 132.78494,7.8918643 146.43806,10.054305 c 45.59908,7.22219 82.56109,39.080427 96.48709,83.164011 10.01013,31.687684 5.70204,68.604084 -11.32183,97.017744 -16.8025,28.04418 -42.64131,47.16473 -75.34729,55.75648 -7.52834,1.97768 -11.60054,2.41566 -24.95273,2.68377 -10.90952,0.21906 -18.34974,-0.0999 -23.52396,-1.00861 z m 20.17619,-31.35425 c 0.63075,-2.39846 2.14458,-8.28561 3.36407,-13.08254 1.56481,-6.15521 2.69488,-8.60563 3.84031,-8.32722 0.89267,0.21696 7.39067,0.68131 14.43998,1.03189 16.31195,0.81124 23.9944,-1.14509 31.43693,-8.00537 7.63877,-7.04117 11.30337,-15.63267 11.82635,-27.72636 0.37592,-8.69327 0.10152,-10.44523 -2.27687,-14.53617 -1.48738,-2.55836 -5.17935,-6.48313 -8.20438,-8.7217 l -5.50006,-4.07013 4.37131,-1.87838 c 9.83682,-4.22697 14.47489,-11.84516 15.1401,-24.86816 0.41587,-8.141744 0.12573,-9.956454 -2.32406,-14.536178 -3.41249,-6.379435 -11.7129,-12.875301 -21.81801,-17.074696 -4.15735,-1.727672 -7.66196,-3.187464 -7.78803,-3.243983 -0.12607,-0.05651 1.28534,-6.088871 3.13645,-13.405229 1.85112,-7.316357 3.26253,-13.372021 3.13645,-13.457031 -0.12607,-0.08501 -2.84573,-0.778731 -6.04368,-1.541604 -3.19796,-0.762872 -6.6666,-1.640092 -7.70811,-1.949379 -1.54868,-0.459905 -2.47321,1.773902 -5.07541,12.262964 -2.215,8.928331 -3.69157,12.825303 -4.85951,12.825303 -2.30435,0 -12.01076,-2.489633 -12.01076,-3.080685 0,-0.263336 1.37739,-5.975631 3.06085,-12.693987 1.68345,-6.718356 2.78086,-12.49516 2.43868,-12.837341 -1.06646,-1.066455 -13.66473,-4.07084 -14.61292,-3.484827 -0.49474,0.305758 -2.13899,5.806491 -3.65393,12.223852 -1.51493,6.417361 -3.0693,12.177423 -3.45416,12.800138 -0.42537,0.68826 -6.84309,-0.416984 -16.36715,-2.818708 -8.617084,-2.173005 -15.989649,-3.583696 -16.383486,-3.13487 -0.393848,0.448826 -1.334199,3.432558 -2.089673,6.630515 -0.755474,3.197957 -1.623352,6.656241 -1.928612,7.685075 -0.438573,1.478093 0.970946,2.194444 6.717302,3.413902 7.407145,1.571906 12.549199,5.114005 12.549199,8.644526 0,3.559986 -18.770806,76.736553 -20.092504,78.329103 -1.007682,1.21419 -2.807318,1.40957 -7.196833,0.78135 -11.551776,-1.65329 -10.897277,-1.95681 -14.648875,6.7937 -1.878049,4.38054 -3.41465,8.32832 -3.41465,8.77286 0,0.44453 6.14881,2.29784 13.664008,4.11848 7.515199,1.82065 14.792647,3.72851 16.172114,4.23971 l 2.508106,0.92945 -3.31877,13.11716 c -1.825323,7.21442 -3.215633,13.21726 -3.089563,13.33965 0.549874,0.53382 15.058293,4.01313 15.382493,3.68892 0.19792,-0.19791 1.74688,-5.83164 3.442154,-12.51942 1.69526,-6.68778 3.30839,-12.52544 3.58472,-12.97256 0.443,-0.71676 11.73522,1.68597 12.76544,2.7162 0.21981,0.21981 -1.08467,6.26629 -2.89884,13.43664 l -3.29849,13.03696 4.8136,1.23571 c 2.6475,0.67965 5.33693,1.42786 5.97652,1.66271 3.63321,1.33406 5.19855,0.40079 6.2902,-3.75024 z m 0.68716,-43.88623 c -0.63959,-0.21166 -5.21848,-1.29512 -10.17531,-2.40768 -4.95684,-1.11255 -9.01243,-2.23295 -9.01243,-2.48975 0,-0.65492 8.11353,-33.1852 8.69895,-34.87745 0.34957,-1.01046 3.32218,-0.62569 10.96233,1.41895 12.84914,3.43866 18.00073,5.54314 23.11146,9.44128 8.35514,6.37277 10.49752,14.36232 5.75489,21.46161 -3.94917,5.91153 -9.15813,8.03413 -19.45529,7.92788 -4.79693,-0.0496 -9.245,-0.26317 -9.8846,-0.47484 z m 2.50991,-54.7082 c -3.73627,-0.93479 -7.21128,-1.958 -7.72221,-2.27376 -0.72057,-0.44534 6.3168,-31.740173 7.3756,-32.798964 0.64276,-0.642776 19.09068,4.708848 22.8588,6.631196 2.34875,1.19824 5.92162,4.059214 7.93975,6.357724 2.94919,3.35894 3.66929,5.201504 3.66929,9.388734 0,4.31035 -0.68714,5.95944 -3.98073,9.55341 -3.93586,4.2948 -4.08991,4.34657 -13.664,4.59252 -5.49512,0.14117 -12.62142,-0.48635 -16.4765,-1.45086 z"
+       id="path2987"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="sssssssssssscssssscsssscscssssssssssscscsssssssscscssssscssscssssssscsssssssss"
+       inkscape:export-xdpi="11.98"
+       inkscape:export-ydpi="11.98" />
+  </g>
+</svg>
diff --git a/src/qt/res/src/clock1.svg b/src/qt/res/src/clock1.svg
new file mode 100644 (file)
index 0000000..793dc7f
--- /dev/null
@@ -0,0 +1,261 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="16px"
+   height="16px"
+   id="svg2987"
+   version="1.1"
+   inkscape:version="0.48.0 r9654"
+   sodipodi:docname="clock0.svg">
+  <defs
+     id="defs2989">
+    <linearGradient
+       id="linearGradient4465">
+      <stop
+         id="stop4467"
+         offset="0"
+         style="stop-color:#c1c1c1;stop-opacity:1;" />
+      <stop
+         id="stop4469"
+         offset="1"
+         style="stop-color:#8c8c8c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4424">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop4426" />
+      <stop
+         style="stop-color:#b3b3b3;stop-opacity:1;"
+         offset="1"
+         id="stop4428" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4357">
+      <stop
+         id="stop4359"
+         offset="0"
+         style="stop-color:#ffffff;stop-opacity:1;" />
+      <stop
+         style="stop-color:#ff84a6;stop-opacity:0.49803922;"
+         offset="0.36363637"
+         id="stop4473" />
+      <stop
+         id="stop4361"
+         offset="1"
+         style="stop-color:#ff0a4d;stop-opacity:0;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4347">
+      <stop
+         id="stop4349"
+         offset="0"
+         style="stop-color:#909090;stop-opacity:1;" />
+      <stop
+         id="stop4351"
+         offset="1"
+         style="stop-color:#3c3c3c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3767">
+      <stop
+         style="stop-color:#ff8282;stop-opacity:1;"
+         offset="0"
+         id="stop3769" />
+      <stop
+         style="stop-color:#ff1919;stop-opacity:1;"
+         offset="1"
+         id="stop3771" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4347"
+       id="linearGradient3779"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574"
+       gradientUnits="userSpaceOnUse" />
+    <filter
+       inkscape:collect="always"
+       id="filter4339">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.3240906"
+         id="feGaussianBlur4341" />
+    </filter>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3767"
+       id="linearGradient4345"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4424"
+       id="linearGradient4430"
+       x1="10.740074"
+       y1="16.148634"
+       x2="6.3055735"
+       y2="-1.2798394"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4357"
+       id="radialGradient4440"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.5712985,0.01074232,-0.01353758,1.9801676,-4.5655476,-0.68355868)"
+       cx="8.1975746"
+       cy="-0.080271922"
+       fx="8.1975746"
+       fy="-0.080271922"
+       r="7.7781744" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4465"
+       id="linearGradient4471"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="1"
+     inkscape:cx="0.31530906"
+     inkscape:cy="12.478576"
+     inkscape:current-layer="layer4"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1920"
+     inkscape:window-height="1127"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="1"
+     showguides="true"
+     inkscape:guide-bbox="true" />
+  <metadata
+     id="metadata2992">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer4"
+     inkscape:label="Shadow"
+     style="display:inline">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient3779);fill-opacity:1;stroke:none;display:inline;filter:url(#filter4339)"
+       id="path2997"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       transform="translate(0,-0.08838835)" />
+  </g>
+  <g
+     id="layer1"
+     inkscape:label="Clock"
+     inkscape:groupmode="layer"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       sodipodi:ry="7.7781744"
+       sodipodi:rx="7.7781744"
+       sodipodi:cy="8.1334372"
+       sodipodi:cx="8.0433397"
+       id="path4343"
+       style="fill:url(#linearGradient4345);fill-opacity:1;stroke:none"
+       sodipodi:type="arc" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer5"
+     inkscape:label="Block"
+     sodipodi:insensitive="true"
+     style="display:inline">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient4471);fill-opacity:1;stroke:none;display:inline"
+       id="path4462"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="M 14.4287,3.6919089 A 7.7781744,7.7781744 0 1 1 8.0707322,0.35531099 L 8.0433397,8.1334372 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       sodipodi:start="5.675432"
+       sodipodi:end="10.999096" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="Ticks"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       id="use4309"
+       transform="matrix(0.77323696,-0.44642857,0.44642857,0.77323696,-1.9715899,5.5529328)"
+       style="fill:url(#linearGradient4430);fill-opacity:1;stroke:none"
+       d="M 8.875,2.03125 C 8.875,2.5317581 8.4832492,2.9375 8,2.9375 7.5167508,2.9375 7.125,2.5317581 7.125,2.03125 7.125,1.5307419 7.5167508,1.125 8,1.125 c 0.4832492,0 0.875,0.4057419 0.875,0.90625 z M 5.8484195,2.6358993 C 6.0986735,3.069352 5.9622783,3.6166102 5.5437722,3.8582348 5.1252661,4.0998594 4.583129,3.944352 4.332875,3.5108993 4.082621,3.0774465 4.2190162,2.5301884 4.6375222,2.2885638 5.0560283,2.0469392 5.5981654,2.2024466 5.8484195,2.6358993 z M 3.5296488,4.6728304 C 3.9631015,4.9230844 4.1186089,5.4652215 3.8769843,5.8837276 3.6353597,6.3022337 3.0881015,6.4386289 2.6546488,6.1883748 2.221196,5.9381208 2.0656886,5.3959837 2.3073132,4.9774776 2.5489379,4.5589715 3.096196,4.4225763 3.5296488,4.6728304 z m -0.989649,2.9234201 c 0.5005081,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.4057419,0.875 -0.90625,0.875 -0.5005081,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.4057419,-0.875 0.90625,-0.875 z M 3.144649,10.622831 c 0.4334527,-0.250254 0.9807109,-0.113859 1.2223355,0.304647 0.2416246,0.418506 0.086117,0.960643 -0.3473355,1.210897 C 3.5861963,12.388629 3.0389381,12.252234 2.7973135,11.833728 2.5556889,11.415222 2.7111963,10.873085 3.144649,10.622831 z m 2.036931,2.31877 c 0.2502541,-0.433452 0.7923912,-0.58896 1.2108973,-0.347335 0.4185061,0.241624 0.5549012,0.788883 0.3046472,1.222335 -0.2502541,0.433453 -0.7923912,0.58896 -1.2108972,0.347336 C 5.0677212,13.922312 4.931326,13.375054 5.18158,12.941601 z m 2.9234201,0.989649 c 0,-0.500508 0.3917508,-0.90625 0.875,-0.90625 0.4832492,0 0.875,0.405742 0.875,0.90625 0,0.500509 -0.3917508,0.90625 -0.875,0.90625 -0.4832492,0 -0.875,-0.405741 -0.875,-0.90625 z M 11.13158,13.326601 c -0.250254,-0.433453 -0.113859,-0.980711 0.304647,-1.222335 0.418507,-0.241625 0.960644,-0.08612 1.210898,0.347335 0.250254,0.433453 0.113859,0.980711 -0.304648,1.222336 -0.418506,0.241624 -0.960643,0.08612 -1.210897,-0.347336 z m 2.318771,-2.036931 c -0.433453,-0.250254 -0.58896,-0.792391 -0.347335,-1.210897 0.241624,-0.4185064 0.788882,-0.5549016 1.222335,-0.3046476 0.433453,0.2502536 0.58896,0.7923916 0.347336,1.2108976 -0.241625,0.418506 -0.788883,0.554901 -1.222336,0.304647 z M 14.44,8.36625 c -0.500508,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.405742,-0.875 0.90625,-0.875 0.500508,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.405742,0.875 -0.90625,0.875 z M 13.835351,5.3396697 C 13.401898,5.5899238 12.85464,5.4535286 12.613016,5.0350225 12.371391,4.6165164 12.526898,4.0743793 12.960351,3.8241252 c 0.433453,-0.250254 0.980711,-0.1138588 1.222336,0.3046473 0.241624,0.4185061 0.08612,0.9606432 -0.347336,1.2108972 z M 11.79842,3.0208989 C 11.548166,3.4543516 11.006029,3.609859 10.587523,3.3682344 10.169017,3.1266098 10.032621,2.5793516 10.282875,2.1458989 10.533129,1.7124461 11.075267,1.5569388 11.493773,1.7985634 11.912279,2.040188 12.048674,2.5874462 11.79842,3.0208989 z"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 7.875,2.8017767 0,5.25"
+       id="path4436"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 7.7781746,7.4629419 10.783378,7.6397186"
+       id="path4438"
+       inkscape:connector-curvature="0" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="Shine"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#radialGradient4440);fill-opacity:1;stroke:none"
+       id="path4353"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.3686199"
+       sodipodi:ry="7.4368792"
+       d="m 15.41196,8.1334372 a 7.3686199,7.4368792 0 1 1 -14.73724019,0 7.3686199,7.4368792 0 1 1 14.73724019,0 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)" />
+  </g>
+</svg>
diff --git a/src/qt/res/src/clock2.svg b/src/qt/res/src/clock2.svg
new file mode 100644 (file)
index 0000000..6a78adf
--- /dev/null
@@ -0,0 +1,262 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="16px"
+   height="16px"
+   id="svg2987"
+   version="1.1"
+   inkscape:version="0.48.0 r9654"
+   sodipodi:docname="clock0.svg">
+  <defs
+     id="defs2989">
+    <linearGradient
+       id="linearGradient4465">
+      <stop
+         id="stop4467"
+         offset="0"
+         style="stop-color:#c1c1c1;stop-opacity:1;" />
+      <stop
+         id="stop4469"
+         offset="1"
+         style="stop-color:#8c8c8c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4424">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop4426" />
+      <stop
+         style="stop-color:#b3b3b3;stop-opacity:1;"
+         offset="1"
+         id="stop4428" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4357">
+      <stop
+         id="stop4359"
+         offset="0"
+         style="stop-color:#ffffff;stop-opacity:1;" />
+      <stop
+         style="stop-color:#ff848d;stop-opacity:0.49803922;"
+         offset="0.36363637"
+         id="stop4473" />
+      <stop
+         id="stop4361"
+         offset="1"
+         style="stop-color:#ff0a1b;stop-opacity:0;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4347">
+      <stop
+         id="stop4349"
+         offset="0"
+         style="stop-color:#909090;stop-opacity:1;" />
+      <stop
+         id="stop4351"
+         offset="1"
+         style="stop-color:#3c3c3c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3767">
+      <stop
+         style="stop-color:#ffae82;stop-opacity:1;"
+         offset="0"
+         id="stop3769" />
+      <stop
+         style="stop-color:#ff6a19;stop-opacity:1;"
+         offset="1"
+         id="stop3771" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4347"
+       id="linearGradient3779"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574"
+       gradientUnits="userSpaceOnUse" />
+    <filter
+       inkscape:collect="always"
+       id="filter4339">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.3240906"
+         id="feGaussianBlur4341" />
+    </filter>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3767"
+       id="linearGradient4345"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4424"
+       id="linearGradient4430"
+       x1="10.740074"
+       y1="16.148634"
+       x2="6.3055735"
+       y2="-1.2798394"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4357"
+       id="radialGradient4440"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.5712985,0.01074232,-0.01353758,1.9801676,-4.5655476,-0.68355868)"
+       cx="8.1975746"
+       cy="-0.080271922"
+       fx="8.1975746"
+       fy="-0.080271922"
+       r="7.7781744" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4465"
+       id="linearGradient4471"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="1"
+     inkscape:cx="10.569917"
+     inkscape:cy="10.828475"
+     inkscape:current-layer="layer5"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1920"
+     inkscape:window-height="1127"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="1"
+     showguides="true"
+     inkscape:guide-bbox="true" />
+  <metadata
+     id="metadata2992">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer4"
+     inkscape:label="Shadow"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient3779);fill-opacity:1;stroke:none;display:inline;filter:url(#filter4339)"
+       id="path2997"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       transform="translate(0,-0.08838835)" />
+  </g>
+  <g
+     id="layer1"
+     inkscape:label="Clock"
+     inkscape:groupmode="layer"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       sodipodi:ry="7.7781744"
+       sodipodi:rx="7.7781744"
+       sodipodi:cy="8.1334372"
+       sodipodi:cx="8.0433397"
+       id="path4343"
+       style="fill:url(#linearGradient4345);fill-opacity:1;stroke:none"
+       sodipodi:type="arc" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer5"
+     inkscape:label="Block"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient4471);fill-opacity:1;stroke:none;display:inline"
+       id="path4462"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="M 15.197954,11.184912 A 7.7781744,7.7781744 0 1 1 8.0707322,0.35531099 L 8.0433397,8.1334372 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       sodipodi:start="0.4031442"
+       sodipodi:end="4.7159107" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="Ticks"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       id="use4309"
+       transform="matrix(0.77323696,-0.44642857,0.44642857,0.77323696,-1.9715899,5.5529328)"
+       style="fill:url(#linearGradient4430);fill-opacity:1;stroke:none"
+       d="M 8.875,2.03125 C 8.875,2.5317581 8.4832492,2.9375 8,2.9375 7.5167508,2.9375 7.125,2.5317581 7.125,2.03125 7.125,1.5307419 7.5167508,1.125 8,1.125 c 0.4832492,0 0.875,0.4057419 0.875,0.90625 z M 5.8484195,2.6358993 C 6.0986735,3.069352 5.9622783,3.6166102 5.5437722,3.8582348 5.1252661,4.0998594 4.583129,3.944352 4.332875,3.5108993 4.082621,3.0774465 4.2190162,2.5301884 4.6375222,2.2885638 5.0560283,2.0469392 5.5981654,2.2024466 5.8484195,2.6358993 z M 3.5296488,4.6728304 C 3.9631015,4.9230844 4.1186089,5.4652215 3.8769843,5.8837276 3.6353597,6.3022337 3.0881015,6.4386289 2.6546488,6.1883748 2.221196,5.9381208 2.0656886,5.3959837 2.3073132,4.9774776 2.5489379,4.5589715 3.096196,4.4225763 3.5296488,4.6728304 z m -0.989649,2.9234201 c 0.5005081,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.4057419,0.875 -0.90625,0.875 -0.5005081,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.4057419,-0.875 0.90625,-0.875 z M 3.144649,10.622831 c 0.4334527,-0.250254 0.9807109,-0.113859 1.2223355,0.304647 0.2416246,0.418506 0.086117,0.960643 -0.3473355,1.210897 C 3.5861963,12.388629 3.0389381,12.252234 2.7973135,11.833728 2.5556889,11.415222 2.7111963,10.873085 3.144649,10.622831 z m 2.036931,2.31877 c 0.2502541,-0.433452 0.7923912,-0.58896 1.2108973,-0.347335 0.4185061,0.241624 0.5549012,0.788883 0.3046472,1.222335 -0.2502541,0.433453 -0.7923912,0.58896 -1.2108972,0.347336 C 5.0677212,13.922312 4.931326,13.375054 5.18158,12.941601 z m 2.9234201,0.989649 c 0,-0.500508 0.3917508,-0.90625 0.875,-0.90625 0.4832492,0 0.875,0.405742 0.875,0.90625 0,0.500509 -0.3917508,0.90625 -0.875,0.90625 -0.4832492,0 -0.875,-0.405741 -0.875,-0.90625 z M 11.13158,13.326601 c -0.250254,-0.433453 -0.113859,-0.980711 0.304647,-1.222335 0.418507,-0.241625 0.960644,-0.08612 1.210898,0.347335 0.250254,0.433453 0.113859,0.980711 -0.304648,1.222336 -0.418506,0.241624 -0.960643,0.08612 -1.210897,-0.347336 z m 2.318771,-2.036931 c -0.433453,-0.250254 -0.58896,-0.792391 -0.347335,-1.210897 0.241624,-0.4185064 0.788882,-0.5549016 1.222335,-0.3046476 0.433453,0.2502536 0.58896,0.7923916 0.347336,1.2108976 -0.241625,0.418506 -0.788883,0.554901 -1.222336,0.304647 z M 14.44,8.36625 c -0.500508,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.405742,-0.875 0.90625,-0.875 0.500508,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.405742,0.875 -0.90625,0.875 z M 13.835351,5.3396697 C 13.401898,5.5899238 12.85464,5.4535286 12.613016,5.0350225 12.371391,4.6165164 12.526898,4.0743793 12.960351,3.8241252 c 0.433453,-0.250254 0.980711,-0.1138588 1.222336,0.3046473 0.241624,0.4185061 0.08612,0.9606432 -0.347336,1.2108972 z M 11.79842,3.0208989 C 11.548166,3.4543516 11.006029,3.609859 10.587523,3.3682344 10.169017,3.1266098 10.032621,2.5793516 10.282875,2.1458989 10.533129,1.7124461 11.075267,1.5569388 11.493773,1.7985634 11.912279,2.040188 12.048674,2.5874462 11.79842,3.0208989 z"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 7.875,2.8017767 0,5.25"
+       id="path4436"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 7.7781746,7.4629419 10.783378,7.6397186"
+       id="path4438"
+       inkscape:connector-curvature="0" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="Shine"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#radialGradient4440);fill-opacity:1;stroke:none"
+       id="path4353"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.3686199"
+       sodipodi:ry="7.4368792"
+       d="m 15.41196,8.1334372 a 7.3686199,7.4368792 0 1 1 -14.73724019,0 7.3686199,7.4368792 0 1 1 14.73724019,0 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)" />
+  </g>
+</svg>
diff --git a/src/qt/res/src/clock3.svg b/src/qt/res/src/clock3.svg
new file mode 100644 (file)
index 0000000..09ccc25
--- /dev/null
@@ -0,0 +1,261 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="16px"
+   height="16px"
+   id="svg2987"
+   version="1.1"
+   inkscape:version="0.48.0 r9654"
+   sodipodi:docname="clock1.svg">
+  <defs
+     id="defs2989">
+    <linearGradient
+       id="linearGradient4465">
+      <stop
+         id="stop4467"
+         offset="0"
+         style="stop-color:#c1c1c1;stop-opacity:1;" />
+      <stop
+         id="stop4469"
+         offset="1"
+         style="stop-color:#8c8c8c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4424">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop4426" />
+      <stop
+         style="stop-color:#b3b3b3;stop-opacity:1;"
+         offset="1"
+         id="stop4428" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4357">
+      <stop
+         id="stop4359"
+         offset="0"
+         style="stop-color:#ffffff;stop-opacity:1;" />
+      <stop
+         style="stop-color:#ffa184;stop-opacity:0.49803922;"
+         offset="0.36363637"
+         id="stop4473" />
+      <stop
+         id="stop4361"
+         offset="1"
+         style="stop-color:#ff440a;stop-opacity:0;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4347">
+      <stop
+         id="stop4349"
+         offset="0"
+         style="stop-color:#909090;stop-opacity:1;" />
+      <stop
+         id="stop4351"
+         offset="1"
+         style="stop-color:#3c3c3c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3767">
+      <stop
+         style="stop-color:#ffda82;stop-opacity:1;"
+         offset="0"
+         id="stop3769" />
+      <stop
+         style="stop-color:#ffbb19;stop-opacity:1;"
+         offset="1"
+         id="stop3771" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4347"
+       id="linearGradient3779"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574"
+       gradientUnits="userSpaceOnUse" />
+    <filter
+       inkscape:collect="always"
+       id="filter4339">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.3240906"
+         id="feGaussianBlur4341" />
+    </filter>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3767"
+       id="linearGradient4345"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4424"
+       id="linearGradient4430"
+       x1="10.740074"
+       y1="16.148634"
+       x2="6.3055735"
+       y2="-1.2798394"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4357"
+       id="radialGradient4440"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.5712985,0.01074232,-0.01353758,1.9801676,-4.5655476,-0.68355868)"
+       cx="8.1975746"
+       cy="-0.080271922"
+       fx="8.1975746"
+       fy="-0.080271922"
+       r="7.7781744" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4465"
+       id="linearGradient4471"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="23.894737"
+     inkscape:cx="16"
+     inkscape:cy="-1"
+     inkscape:current-layer="layer5"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1920"
+     inkscape:window-height="1127"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="1"
+     showguides="true"
+     inkscape:guide-bbox="true" />
+  <metadata
+     id="metadata2992">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer4"
+     inkscape:label="Shadow"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient3779);fill-opacity:1;stroke:none;display:inline;filter:url(#filter4339)"
+       id="path2997"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       transform="translate(0,-0.08838835)" />
+  </g>
+  <g
+     id="layer1"
+     inkscape:label="Clock"
+     inkscape:groupmode="layer"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       sodipodi:ry="7.7781744"
+       sodipodi:rx="7.7781744"
+       sodipodi:cy="8.1334372"
+       sodipodi:cx="8.0433397"
+       id="path4343"
+       style="fill:url(#linearGradient4345);fill-opacity:1;stroke:none"
+       sodipodi:type="arc" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer5"
+     inkscape:label="Block"
+     style="display:inline">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient4471);fill-opacity:1;stroke:none;display:inline"
+       id="path4462"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="M 8.2135533,15.909749 A 7.7781744,7.7781744 0 1 1 8.0707322,0.35531099 L 8.0433397,8.1334372 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       sodipodi:start="1.5489111"
+       sodipodi:end="4.7159107" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="Ticks"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       id="use4309"
+       transform="matrix(0.77323696,-0.44642857,0.44642857,0.77323696,-1.9715899,5.5529328)"
+       style="fill:url(#linearGradient4430);fill-opacity:1;stroke:none"
+       d="M 8.875,2.03125 C 8.875,2.5317581 8.4832492,2.9375 8,2.9375 7.5167508,2.9375 7.125,2.5317581 7.125,2.03125 7.125,1.5307419 7.5167508,1.125 8,1.125 c 0.4832492,0 0.875,0.4057419 0.875,0.90625 z M 5.8484195,2.6358993 C 6.0986735,3.069352 5.9622783,3.6166102 5.5437722,3.8582348 5.1252661,4.0998594 4.583129,3.944352 4.332875,3.5108993 4.082621,3.0774465 4.2190162,2.5301884 4.6375222,2.2885638 5.0560283,2.0469392 5.5981654,2.2024466 5.8484195,2.6358993 z M 3.5296488,4.6728304 C 3.9631015,4.9230844 4.1186089,5.4652215 3.8769843,5.8837276 3.6353597,6.3022337 3.0881015,6.4386289 2.6546488,6.1883748 2.221196,5.9381208 2.0656886,5.3959837 2.3073132,4.9774776 2.5489379,4.5589715 3.096196,4.4225763 3.5296488,4.6728304 z m -0.989649,2.9234201 c 0.5005081,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.4057419,0.875 -0.90625,0.875 -0.5005081,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.4057419,-0.875 0.90625,-0.875 z M 3.144649,10.622831 c 0.4334527,-0.250254 0.9807109,-0.113859 1.2223355,0.304647 0.2416246,0.418506 0.086117,0.960643 -0.3473355,1.210897 C 3.5861963,12.388629 3.0389381,12.252234 2.7973135,11.833728 2.5556889,11.415222 2.7111963,10.873085 3.144649,10.622831 z m 2.036931,2.31877 c 0.2502541,-0.433452 0.7923912,-0.58896 1.2108973,-0.347335 0.4185061,0.241624 0.5549012,0.788883 0.3046472,1.222335 -0.2502541,0.433453 -0.7923912,0.58896 -1.2108972,0.347336 C 5.0677212,13.922312 4.931326,13.375054 5.18158,12.941601 z m 2.9234201,0.989649 c 0,-0.500508 0.3917508,-0.90625 0.875,-0.90625 0.4832492,0 0.875,0.405742 0.875,0.90625 0,0.500509 -0.3917508,0.90625 -0.875,0.90625 -0.4832492,0 -0.875,-0.405741 -0.875,-0.90625 z M 11.13158,13.326601 c -0.250254,-0.433453 -0.113859,-0.980711 0.304647,-1.222335 0.418507,-0.241625 0.960644,-0.08612 1.210898,0.347335 0.250254,0.433453 0.113859,0.980711 -0.304648,1.222336 -0.418506,0.241624 -0.960643,0.08612 -1.210897,-0.347336 z m 2.318771,-2.036931 c -0.433453,-0.250254 -0.58896,-0.792391 -0.347335,-1.210897 0.241624,-0.4185064 0.788882,-0.5549016 1.222335,-0.3046476 0.433453,0.2502536 0.58896,0.7923916 0.347336,1.2108976 -0.241625,0.418506 -0.788883,0.554901 -1.222336,0.304647 z M 14.44,8.36625 c -0.500508,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.405742,-0.875 0.90625,-0.875 0.500508,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.405742,0.875 -0.90625,0.875 z M 13.835351,5.3396697 C 13.401898,5.5899238 12.85464,5.4535286 12.613016,5.0350225 12.371391,4.6165164 12.526898,4.0743793 12.960351,3.8241252 c 0.433453,-0.250254 0.980711,-0.1138588 1.222336,0.3046473 0.241624,0.4185061 0.08612,0.9606432 -0.347336,1.2108972 z M 11.79842,3.0208989 C 11.548166,3.4543516 11.006029,3.609859 10.587523,3.3682344 10.169017,3.1266098 10.032621,2.5793516 10.282875,2.1458989 10.533129,1.7124461 11.075267,1.5569388 11.493773,1.7985634 11.912279,2.040188 12.048674,2.5874462 11.79842,3.0208989 z"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 7.875,2.8017767 0,5.25"
+       id="path4436"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 7.7781746,7.4629419 10.783378,7.6397186"
+       id="path4438"
+       inkscape:connector-curvature="0" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="Shine"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#radialGradient4440);fill-opacity:1;stroke:none"
+       id="path4353"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.3686199"
+       sodipodi:ry="7.4368792"
+       d="m 15.41196,8.1334372 a 7.3686199,7.4368792 0 1 1 -14.73724019,0 7.3686199,7.4368792 0 1 1 14.73724019,0 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)" />
+  </g>
+</svg>
diff --git a/src/qt/res/src/clock4.svg b/src/qt/res/src/clock4.svg
new file mode 100644 (file)
index 0000000..7d9dc37
--- /dev/null
@@ -0,0 +1,261 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="16px"
+   height="16px"
+   id="svg2987"
+   version="1.1"
+   inkscape:version="0.48.0 r9654"
+   sodipodi:docname="clock2.svg">
+  <defs
+     id="defs2989">
+    <linearGradient
+       id="linearGradient4465">
+      <stop
+         id="stop4467"
+         offset="0"
+         style="stop-color:#c1c1c1;stop-opacity:1;" />
+      <stop
+         id="stop4469"
+         offset="1"
+         style="stop-color:#8c8c8c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4424">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop4426" />
+      <stop
+         style="stop-color:#b3b3b3;stop-opacity:1;"
+         offset="1"
+         id="stop4428" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4357">
+      <stop
+         id="stop4359"
+         offset="0"
+         style="stop-color:#ffffff;stop-opacity:1;" />
+      <stop
+         style="stop-color:#ffcc84;stop-opacity:0.49803922;"
+         offset="0.36363637"
+         id="stop4473" />
+      <stop
+         id="stop4361"
+         offset="1"
+         style="stop-color:#ff9a0a;stop-opacity:0;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4347">
+      <stop
+         id="stop4349"
+         offset="0"
+         style="stop-color:#909090;stop-opacity:1;" />
+      <stop
+         id="stop4351"
+         offset="1"
+         style="stop-color:#3c3c3c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3767">
+      <stop
+         style="stop-color:#f8ff82;stop-opacity:1;"
+         offset="0"
+         id="stop3769" />
+      <stop
+         style="stop-color:#f1ff19;stop-opacity:1;"
+         offset="1"
+         id="stop3771" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4347"
+       id="linearGradient3779"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574"
+       gradientUnits="userSpaceOnUse" />
+    <filter
+       inkscape:collect="always"
+       id="filter4339">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.3240906"
+         id="feGaussianBlur4341" />
+    </filter>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3767"
+       id="linearGradient4345"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4424"
+       id="linearGradient4430"
+       x1="10.740074"
+       y1="16.148634"
+       x2="6.3055735"
+       y2="-1.2798394"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4357"
+       id="radialGradient4440"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.5712985,0.01074232,-0.01353758,1.9801676,-4.5655476,-0.68355868)"
+       cx="8.1975746"
+       cy="-0.080271922"
+       fx="8.1975746"
+       fy="-0.080271922"
+       r="7.7781744" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4465"
+       id="linearGradient4471"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="16"
+     inkscape:cx="8.6111742"
+     inkscape:cy="6.6684704"
+     inkscape:current-layer="layer5"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1920"
+     inkscape:window-height="1127"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="1"
+     showguides="true"
+     inkscape:guide-bbox="true" />
+  <metadata
+     id="metadata2992">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer4"
+     inkscape:label="Shadow"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient3779);fill-opacity:1;stroke:none;display:inline;filter:url(#filter4339)"
+       id="path2997"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       transform="translate(0,-0.08838835)" />
+  </g>
+  <g
+     id="layer1"
+     inkscape:label="Clock"
+     inkscape:groupmode="layer"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       sodipodi:ry="7.7781744"
+       sodipodi:rx="7.7781744"
+       sodipodi:cy="8.1334372"
+       sodipodi:cx="8.0433397"
+       id="path4343"
+       style="fill:url(#linearGradient4345);fill-opacity:1;stroke:none"
+       sodipodi:type="arc" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer5"
+     inkscape:label="Block"
+     style="display:inline">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient4471);fill-opacity:1;stroke:none;display:inline"
+       id="path4462"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="M 1.7005474,12.635546 A 7.7781744,7.7781744 0 0 1 8.0707322,0.35531099 L 8.0433397,8.1334372 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       sodipodi:start="2.5243203"
+       sodipodi:end="4.7159107" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="Ticks"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       id="use4309"
+       transform="matrix(0.77323696,-0.44642857,0.44642857,0.77323696,-1.9715899,5.5529328)"
+       style="fill:url(#linearGradient4430);fill-opacity:1;stroke:none"
+       d="M 8.875,2.03125 C 8.875,2.5317581 8.4832492,2.9375 8,2.9375 7.5167508,2.9375 7.125,2.5317581 7.125,2.03125 7.125,1.5307419 7.5167508,1.125 8,1.125 c 0.4832492,0 0.875,0.4057419 0.875,0.90625 z M 5.8484195,2.6358993 C 6.0986735,3.069352 5.9622783,3.6166102 5.5437722,3.8582348 5.1252661,4.0998594 4.583129,3.944352 4.332875,3.5108993 4.082621,3.0774465 4.2190162,2.5301884 4.6375222,2.2885638 5.0560283,2.0469392 5.5981654,2.2024466 5.8484195,2.6358993 z M 3.5296488,4.6728304 C 3.9631015,4.9230844 4.1186089,5.4652215 3.8769843,5.8837276 3.6353597,6.3022337 3.0881015,6.4386289 2.6546488,6.1883748 2.221196,5.9381208 2.0656886,5.3959837 2.3073132,4.9774776 2.5489379,4.5589715 3.096196,4.4225763 3.5296488,4.6728304 z m -0.989649,2.9234201 c 0.5005081,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.4057419,0.875 -0.90625,0.875 -0.5005081,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.4057419,-0.875 0.90625,-0.875 z M 3.144649,10.622831 c 0.4334527,-0.250254 0.9807109,-0.113859 1.2223355,0.304647 0.2416246,0.418506 0.086117,0.960643 -0.3473355,1.210897 C 3.5861963,12.388629 3.0389381,12.252234 2.7973135,11.833728 2.5556889,11.415222 2.7111963,10.873085 3.144649,10.622831 z m 2.036931,2.31877 c 0.2502541,-0.433452 0.7923912,-0.58896 1.2108973,-0.347335 0.4185061,0.241624 0.5549012,0.788883 0.3046472,1.222335 -0.2502541,0.433453 -0.7923912,0.58896 -1.2108972,0.347336 C 5.0677212,13.922312 4.931326,13.375054 5.18158,12.941601 z m 2.9234201,0.989649 c 0,-0.500508 0.3917508,-0.90625 0.875,-0.90625 0.4832492,0 0.875,0.405742 0.875,0.90625 0,0.500509 -0.3917508,0.90625 -0.875,0.90625 -0.4832492,0 -0.875,-0.405741 -0.875,-0.90625 z M 11.13158,13.326601 c -0.250254,-0.433453 -0.113859,-0.980711 0.304647,-1.222335 0.418507,-0.241625 0.960644,-0.08612 1.210898,0.347335 0.250254,0.433453 0.113859,0.980711 -0.304648,1.222336 -0.418506,0.241624 -0.960643,0.08612 -1.210897,-0.347336 z m 2.318771,-2.036931 c -0.433453,-0.250254 -0.58896,-0.792391 -0.347335,-1.210897 0.241624,-0.4185064 0.788882,-0.5549016 1.222335,-0.3046476 0.433453,0.2502536 0.58896,0.7923916 0.347336,1.2108976 -0.241625,0.418506 -0.788883,0.554901 -1.222336,0.304647 z M 14.44,8.36625 c -0.500508,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.405742,-0.875 0.90625,-0.875 0.500508,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.405742,0.875 -0.90625,0.875 z M 13.835351,5.3396697 C 13.401898,5.5899238 12.85464,5.4535286 12.613016,5.0350225 12.371391,4.6165164 12.526898,4.0743793 12.960351,3.8241252 c 0.433453,-0.250254 0.980711,-0.1138588 1.222336,0.3046473 0.241624,0.4185061 0.08612,0.9606432 -0.347336,1.2108972 z M 11.79842,3.0208989 C 11.548166,3.4543516 11.006029,3.609859 10.587523,3.3682344 10.169017,3.1266098 10.032621,2.5793516 10.282875,2.1458989 10.533129,1.7124461 11.075267,1.5569388 11.493773,1.7985634 11.912279,2.040188 12.048674,2.5874462 11.79842,3.0208989 z"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 7.875,2.8017767 0,5.25"
+       id="path4436"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 7.7781746,7.4629419 10.783378,7.6397186"
+       id="path4438"
+       inkscape:connector-curvature="0" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="Shine"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#radialGradient4440);fill-opacity:1;stroke:none"
+       id="path4353"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.3686199"
+       sodipodi:ry="7.4368792"
+       d="m 15.41196,8.1334372 a 7.3686199,7.4368792 0 1 1 -14.73724019,0 7.3686199,7.4368792 0 1 1 14.73724019,0 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)" />
+  </g>
+</svg>
diff --git a/src/qt/res/src/clock5.svg b/src/qt/res/src/clock5.svg
new file mode 100644 (file)
index 0000000..9fd58d9
--- /dev/null
@@ -0,0 +1,262 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="16px"
+   height="16px"
+   id="svg2987"
+   version="1.1"
+   inkscape:version="0.48.0 r9654"
+   sodipodi:docname="clock3.svg">
+  <defs
+     id="defs2989">
+    <linearGradient
+       id="linearGradient4465">
+      <stop
+         id="stop4467"
+         offset="0"
+         style="stop-color:#c1c1c1;stop-opacity:1;" />
+      <stop
+         id="stop4469"
+         offset="1"
+         style="stop-color:#8c8c8c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4424">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop4426" />
+      <stop
+         style="stop-color:#b3b3b3;stop-opacity:1;"
+         offset="1"
+         id="stop4428" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4357">
+      <stop
+         id="stop4359"
+         offset="0"
+         style="stop-color:#ffffff;stop-opacity:1;" />
+      <stop
+         style="stop-color:#fff884;stop-opacity:0.49803922;"
+         offset="0.36363637"
+         id="stop4473" />
+      <stop
+         id="stop4361"
+         offset="1"
+         style="stop-color:#fff10a;stop-opacity:0;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4347">
+      <stop
+         id="stop4349"
+         offset="0"
+         style="stop-color:#909090;stop-opacity:1;" />
+      <stop
+         id="stop4351"
+         offset="1"
+         style="stop-color:#3c3c3c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3767">
+      <stop
+         style="stop-color:#ccff82;stop-opacity:1;"
+         offset="0"
+         id="stop3769" />
+      <stop
+         style="stop-color:#a0ff19;stop-opacity:1;"
+         offset="1"
+         id="stop3771" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4347"
+       id="linearGradient3779"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574"
+       gradientUnits="userSpaceOnUse" />
+    <filter
+       inkscape:collect="always"
+       id="filter4339">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.3240906"
+         id="feGaussianBlur4341" />
+    </filter>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3767"
+       id="linearGradient4345"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4424"
+       id="linearGradient4430"
+       x1="10.740074"
+       y1="16.148634"
+       x2="6.3055735"
+       y2="-1.2798394"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4357"
+       id="radialGradient4440"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.5712985,0.01074232,-0.01353758,1.9801676,-4.5655476,-0.68355868)"
+       cx="8.1975746"
+       cy="-0.080271922"
+       fx="8.1975746"
+       fy="-0.080271922"
+       r="7.7781744" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4465"
+       id="linearGradient4471"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="16"
+     inkscape:cx="8.6111742"
+     inkscape:cy="6.6684704"
+     inkscape:current-layer="layer3"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1920"
+     inkscape:window-height="1127"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="1"
+     showguides="true"
+     inkscape:guide-bbox="true" />
+  <metadata
+     id="metadata2992">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer4"
+     inkscape:label="Shadow"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient3779);fill-opacity:1;stroke:none;display:inline;filter:url(#filter4339)"
+       id="path2997"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       transform="translate(0,-0.08838835)" />
+  </g>
+  <g
+     id="layer1"
+     inkscape:label="Clock"
+     inkscape:groupmode="layer"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       sodipodi:ry="7.7781744"
+       sodipodi:rx="7.7781744"
+       sodipodi:cy="8.1334372"
+       sodipodi:cx="8.0433397"
+       id="path4343"
+       style="fill:url(#linearGradient4345);fill-opacity:1;stroke:none"
+       sodipodi:type="arc" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer5"
+     inkscape:label="Block"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient4471);fill-opacity:1;stroke:none;display:inline"
+       id="path4462"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="M 1.0968082,4.6340519 A 7.7781744,7.7781744 0 0 1 8.0707322,0.35531099 L 8.0433397,8.1334372 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       sodipodi:start="3.6082438"
+       sodipodi:end="4.7159107" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="Ticks"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       id="use4309"
+       transform="matrix(0.77323696,-0.44642857,0.44642857,0.77323696,-1.9715899,5.5529328)"
+       style="fill:url(#linearGradient4430);fill-opacity:1;stroke:none"
+       d="M 8.875,2.03125 C 8.875,2.5317581 8.4832492,2.9375 8,2.9375 7.5167508,2.9375 7.125,2.5317581 7.125,2.03125 7.125,1.5307419 7.5167508,1.125 8,1.125 c 0.4832492,0 0.875,0.4057419 0.875,0.90625 z M 5.8484195,2.6358993 C 6.0986735,3.069352 5.9622783,3.6166102 5.5437722,3.8582348 5.1252661,4.0998594 4.583129,3.944352 4.332875,3.5108993 4.082621,3.0774465 4.2190162,2.5301884 4.6375222,2.2885638 5.0560283,2.0469392 5.5981654,2.2024466 5.8484195,2.6358993 z M 3.5296488,4.6728304 C 3.9631015,4.9230844 4.1186089,5.4652215 3.8769843,5.8837276 3.6353597,6.3022337 3.0881015,6.4386289 2.6546488,6.1883748 2.221196,5.9381208 2.0656886,5.3959837 2.3073132,4.9774776 2.5489379,4.5589715 3.096196,4.4225763 3.5296488,4.6728304 z m -0.989649,2.9234201 c 0.5005081,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.4057419,0.875 -0.90625,0.875 -0.5005081,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.4057419,-0.875 0.90625,-0.875 z M 3.144649,10.622831 c 0.4334527,-0.250254 0.9807109,-0.113859 1.2223355,0.304647 0.2416246,0.418506 0.086117,0.960643 -0.3473355,1.210897 C 3.5861963,12.388629 3.0389381,12.252234 2.7973135,11.833728 2.5556889,11.415222 2.7111963,10.873085 3.144649,10.622831 z m 2.036931,2.31877 c 0.2502541,-0.433452 0.7923912,-0.58896 1.2108973,-0.347335 0.4185061,0.241624 0.5549012,0.788883 0.3046472,1.222335 -0.2502541,0.433453 -0.7923912,0.58896 -1.2108972,0.347336 C 5.0677212,13.922312 4.931326,13.375054 5.18158,12.941601 z m 2.9234201,0.989649 c 0,-0.500508 0.3917508,-0.90625 0.875,-0.90625 0.4832492,0 0.875,0.405742 0.875,0.90625 0,0.500509 -0.3917508,0.90625 -0.875,0.90625 -0.4832492,0 -0.875,-0.405741 -0.875,-0.90625 z M 11.13158,13.326601 c -0.250254,-0.433453 -0.113859,-0.980711 0.304647,-1.222335 0.418507,-0.241625 0.960644,-0.08612 1.210898,0.347335 0.250254,0.433453 0.113859,0.980711 -0.304648,1.222336 -0.418506,0.241624 -0.960643,0.08612 -1.210897,-0.347336 z m 2.318771,-2.036931 c -0.433453,-0.250254 -0.58896,-0.792391 -0.347335,-1.210897 0.241624,-0.4185064 0.788882,-0.5549016 1.222335,-0.3046476 0.433453,0.2502536 0.58896,0.7923916 0.347336,1.2108976 -0.241625,0.418506 -0.788883,0.554901 -1.222336,0.304647 z M 14.44,8.36625 c -0.500508,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.405742,-0.875 0.90625,-0.875 0.500508,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.405742,0.875 -0.90625,0.875 z M 13.835351,5.3396697 C 13.401898,5.5899238 12.85464,5.4535286 12.613016,5.0350225 12.371391,4.6165164 12.526898,4.0743793 12.960351,3.8241252 c 0.433453,-0.250254 0.980711,-0.1138588 1.222336,0.3046473 0.241624,0.4185061 0.08612,0.9606432 -0.347336,1.2108972 z M 11.79842,3.0208989 C 11.548166,3.4543516 11.006029,3.609859 10.587523,3.3682344 10.169017,3.1266098 10.032621,2.5793516 10.282875,2.1458989 10.533129,1.7124461 11.075267,1.5569388 11.493773,1.7985634 11.912279,2.040188 12.048674,2.5874462 11.79842,3.0208989 z"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 7.875,2.8017767 0,5.25"
+       id="path4436"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 7.7781746,7.4629419 10.783378,7.6397186"
+       id="path4438"
+       inkscape:connector-curvature="0" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="Shine"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#radialGradient4440);fill-opacity:1;stroke:none"
+       id="path4353"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.3686199"
+       sodipodi:ry="7.4368792"
+       d="m 15.41196,8.1334372 a 7.3686199,7.4368792 0 1 1 -14.73724019,0 7.3686199,7.4368792 0 1 1 14.73724019,0 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)" />
+  </g>
+</svg>
diff --git a/src/qt/res/src/clock_green.svg b/src/qt/res/src/clock_green.svg
new file mode 100644 (file)
index 0000000..e31f0e7
--- /dev/null
@@ -0,0 +1,262 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="16px"
+   height="16px"
+   id="svg2987"
+   version="1.1"
+   inkscape:version="0.48.0 r9654"
+   sodipodi:docname="clock_green.svg">
+  <defs
+     id="defs2989">
+    <linearGradient
+       id="linearGradient4465">
+      <stop
+         id="stop4467"
+         offset="0"
+         style="stop-color:#c1c1c1;stop-opacity:1;" />
+      <stop
+         id="stop4469"
+         offset="1"
+         style="stop-color:#8c8c8c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4424">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop4426" />
+      <stop
+         style="stop-color:#b3b3b3;stop-opacity:1;"
+         offset="1"
+         id="stop4428" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4357">
+      <stop
+         id="stop4359"
+         offset="0"
+         style="stop-color:#ffffff;stop-opacity:1;" />
+      <stop
+         style="stop-color:#baff84;stop-opacity:0.49803922;"
+         offset="0.36363637"
+         id="stop4473" />
+      <stop
+         id="stop4361"
+         offset="1"
+         style="stop-color:#76ff0a;stop-opacity:0;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4347">
+      <stop
+         id="stop4349"
+         offset="0"
+         style="stop-color:#c1c1c1;stop-opacity:1;" />
+      <stop
+         id="stop4351"
+         offset="1"
+         style="stop-color:#8c8c8c;stop-opacity:1;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3767">
+      <stop
+         style="stop-color:#82ff82;stop-opacity:1;"
+         offset="0"
+         id="stop3769" />
+      <stop
+         style="stop-color:#19ff19;stop-opacity:1;"
+         offset="1"
+         id="stop3771" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4347"
+       id="linearGradient3779"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574"
+       gradientUnits="userSpaceOnUse" />
+    <filter
+       inkscape:collect="always"
+       id="filter4339">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.3240906"
+         id="feGaussianBlur4341" />
+    </filter>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3767"
+       id="linearGradient4345"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4424"
+       id="linearGradient4430"
+       x1="10.740074"
+       y1="16.148634"
+       x2="6.3055735"
+       y2="-1.2798394"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4357"
+       id="radialGradient4440"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.5712985,0.01074232,-0.01353758,1.9801676,-4.5655476,-0.68355868)"
+       cx="8.1975746"
+       cy="-0.080271922"
+       fx="8.1975746"
+       fy="-0.080271922"
+       r="7.7781744" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4465"
+       id="linearGradient4471"
+       gradientUnits="userSpaceOnUse"
+       x1="2.224874"
+       y1="2.8301363"
+       x2="14.038582"
+       y2="13.171574" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="8"
+     inkscape:cx="9.1870806"
+     inkscape:cy="14.089546"
+     inkscape:current-layer="layer3"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1920"
+     inkscape:window-height="1127"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="1"
+     showguides="true"
+     inkscape:guide-bbox="true" />
+  <metadata
+     id="metadata2992">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer4"
+     inkscape:label="Shadow"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient3779);fill-opacity:1;stroke:none;display:inline;filter:url(#filter4339)"
+       id="path2997"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       transform="translate(0,-0.08838835)" />
+  </g>
+  <g
+     id="layer1"
+     inkscape:label="Clock"
+     inkscape:groupmode="layer"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       d="m 15.821514,8.1334372 a 7.7781744,7.7781744 0 1 1 -15.55634867,0 7.7781744,7.7781744 0 1 1 15.55634867,0 z"
+       sodipodi:ry="7.7781744"
+       sodipodi:rx="7.7781744"
+       sodipodi:cy="8.1334372"
+       sodipodi:cx="8.0433397"
+       id="path4343"
+       style="fill:url(#linearGradient4345);fill-opacity:1;stroke:none"
+       sodipodi:type="arc" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer5"
+     inkscape:label="Block"
+     sodipodi:insensitive="true"
+     style="display:inline">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#linearGradient4471);fill-opacity:1;stroke:none;display:inline"
+       id="path4462"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.7781744"
+       sodipodi:ry="7.7781744"
+       d="M 14.4287,3.6919089 A 7.7781744,7.7781744 0 1 1 8.0707322,0.35531099 L 8.0433397,8.1334372 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)"
+       sodipodi:start="5.675432"
+       sodipodi:end="10.999096" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="Ticks"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       id="use4309"
+       transform="matrix(0.77323696,-0.44642857,0.44642857,0.77323696,-1.9715899,5.5529328)"
+       style="fill:url(#linearGradient4430);fill-opacity:1;stroke:none"
+       d="M 8.875,2.03125 C 8.875,2.5317581 8.4832492,2.9375 8,2.9375 7.5167508,2.9375 7.125,2.5317581 7.125,2.03125 7.125,1.5307419 7.5167508,1.125 8,1.125 c 0.4832492,0 0.875,0.4057419 0.875,0.90625 z M 5.8484195,2.6358993 C 6.0986735,3.069352 5.9622783,3.6166102 5.5437722,3.8582348 5.1252661,4.0998594 4.583129,3.944352 4.332875,3.5108993 4.082621,3.0774465 4.2190162,2.5301884 4.6375222,2.2885638 5.0560283,2.0469392 5.5981654,2.2024466 5.8484195,2.6358993 z M 3.5296488,4.6728304 C 3.9631015,4.9230844 4.1186089,5.4652215 3.8769843,5.8837276 3.6353597,6.3022337 3.0881015,6.4386289 2.6546488,6.1883748 2.221196,5.9381208 2.0656886,5.3959837 2.3073132,4.9774776 2.5489379,4.5589715 3.096196,4.4225763 3.5296488,4.6728304 z m -0.989649,2.9234201 c 0.5005081,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.4057419,0.875 -0.90625,0.875 -0.5005081,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.4057419,-0.875 0.90625,-0.875 z M 3.144649,10.622831 c 0.4334527,-0.250254 0.9807109,-0.113859 1.2223355,0.304647 0.2416246,0.418506 0.086117,0.960643 -0.3473355,1.210897 C 3.5861963,12.388629 3.0389381,12.252234 2.7973135,11.833728 2.5556889,11.415222 2.7111963,10.873085 3.144649,10.622831 z m 2.036931,2.31877 c 0.2502541,-0.433452 0.7923912,-0.58896 1.2108973,-0.347335 0.4185061,0.241624 0.5549012,0.788883 0.3046472,1.222335 -0.2502541,0.433453 -0.7923912,0.58896 -1.2108972,0.347336 C 5.0677212,13.922312 4.931326,13.375054 5.18158,12.941601 z m 2.9234201,0.989649 c 0,-0.500508 0.3917508,-0.90625 0.875,-0.90625 0.4832492,0 0.875,0.405742 0.875,0.90625 0,0.500509 -0.3917508,0.90625 -0.875,0.90625 -0.4832492,0 -0.875,-0.405741 -0.875,-0.90625 z M 11.13158,13.326601 c -0.250254,-0.433453 -0.113859,-0.980711 0.304647,-1.222335 0.418507,-0.241625 0.960644,-0.08612 1.210898,0.347335 0.250254,0.433453 0.113859,0.980711 -0.304648,1.222336 -0.418506,0.241624 -0.960643,0.08612 -1.210897,-0.347336 z m 2.318771,-2.036931 c -0.433453,-0.250254 -0.58896,-0.792391 -0.347335,-1.210897 0.241624,-0.4185064 0.788882,-0.5549016 1.222335,-0.3046476 0.433453,0.2502536 0.58896,0.7923916 0.347336,1.2108976 -0.241625,0.418506 -0.788883,0.554901 -1.222336,0.304647 z M 14.44,8.36625 c -0.500508,0 -0.90625,-0.3917508 -0.90625,-0.875 0,-0.4832492 0.405742,-0.875 0.90625,-0.875 0.500508,0 0.90625,0.3917508 0.90625,0.875 0,0.4832492 -0.405742,0.875 -0.90625,0.875 z M 13.835351,5.3396697 C 13.401898,5.5899238 12.85464,5.4535286 12.613016,5.0350225 12.371391,4.6165164 12.526898,4.0743793 12.960351,3.8241252 c 0.433453,-0.250254 0.980711,-0.1138588 1.222336,0.3046473 0.241624,0.4185061 0.08612,0.9606432 -0.347336,1.2108972 z M 11.79842,3.0208989 C 11.548166,3.4543516 11.006029,3.609859 10.587523,3.3682344 10.169017,3.1266098 10.032621,2.5793516 10.282875,2.1458989 10.533129,1.7124461 11.075267,1.5569388 11.493773,1.7985634 11.912279,2.040188 12.048674,2.5874462 11.79842,3.0208989 z"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 7.875,2.8017767 0,5.25"
+       id="path4436"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 7.7781746,7.4629419 10.783378,7.6397186"
+       id="path4438"
+       inkscape:connector-curvature="0" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="Shine"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#radialGradient4440);fill-opacity:1;stroke:none"
+       id="path4353"
+       sodipodi:cx="8.0433397"
+       sodipodi:cy="8.1334372"
+       sodipodi:rx="7.3686199"
+       sodipodi:ry="7.4368792"
+       d="m 15.41196,8.1334372 a 7.3686199,7.4368792 0 1 1 -14.73724019,0 7.3686199,7.4368792 0 1 1 14.73724019,0 z"
+       transform="matrix(0.91562931,0,0,0.91562931,0.64737218,0.56658541)" />
+  </g>
+</svg>
diff --git a/src/qt/res/src/inout.svg b/src/qt/res/src/inout.svg
new file mode 100644 (file)
index 0000000..bfab8ef
--- /dev/null
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   id="svg3039"
+   version="1.1"
+   inkscape:version="0.48.0 r9654"
+   width="120"
+   height="120"
+   sodipodi:docname="inout3.svg"
+   inkscape:export-filename="/home/orion/projects2/bitcoin/tx_mined.png"
+   inkscape:export-xdpi="12"
+   inkscape:export-ydpi="12"
+   style="display:inline">
+  <metadata
+     id="metadata3045">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs3043" />
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1920"
+     inkscape:window-height="1127"
+     id="namedview3041"
+     showgrid="false"
+     inkscape:zoom="1"
+     inkscape:cx="87.12655"
+     inkscape:cy="67.287943"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer7" />
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="base"
+     style="display:none">
+    <path
+       style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#afafaf;fill-opacity:1;stroke:none;stroke-width:7;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"
+       d="m 45.375,17 c -13.984022,0.241082 -24.968241,3.28976 -37.4375,9.59375 -8.9920665,21.871558 -6.680947,46.393002 -1.96875,69 26.190925,13.15317 55.594909,12.97748 81.75,-0.21875 3.852144,-9.729509 1.599587,-12.800015 2.375,-23.15625 C 83.917272,72.423868 77.129905,67.688094 74.1875,75.25 72.702487,79.722025 76.119709,82.645519 69.15625,83.34375 53.023957,88.536726 37.721719,89.140031 21.875,82.28125 19.715285,68.367979 18.599566,53.65725 22.5,40 c 16.868164,-6.642068 33.121079,-6.120062 50.03125,-0.15625 1.285344,5.854815 1.574746,5.763255 2.375,11.6875 C 80.46378,51.970623 89.644961,53.334736 91.3125,46 91.85305,36.007959 89.372312,31.625095 87.1875,25.6875 73.709743,21.03478 59.804255,16.698888 45.375,17 z"
+       id="path3053"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cccccccccccccc" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="arrow_out"
+     style="display:none">
+    <path
+       style="fill:#6e6e6e;fill-opacity:1;stroke:none;display:inline"
+       d="m 63.983409,65.48134 0.267857,-9.514444 36.161424,-0.194173 -7.414458,-8.757971 3.798312,-7.572721 c 0,0 23.437946,20.796656 22.500436,21.185 -0.93751,0.388345 -23.170094,22.73838 -23.170094,22.73838 l -3.128654,-8.931927 7.548388,-8.5638 z"
+       id="path3844"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cccccscccc" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer4"
+     inkscape:label="arrow_in"
+     style="display:none">
+    <path
+       inkscape:connector-curvature="0"
+       id="path4080"
+       d="m 99.28763,65.48134 -0.26786,-9.514444 -36.161422,-0.194173 7.768009,-6.283097 -4.151865,-9.279828 c 0,0 -23.43795,20.028889 -22.500436,20.417233 0.937514,0.388345 23.170094,20.970613 23.170094,20.970613 l 3.482207,-9.639034 -7.901936,-6.088926 z"
+       style="fill:#6e6e6e;fill-opacity:1;stroke:none;display:inline"
+       sodipodi:nodetypes="cccccscccc" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer7"
+     inkscape:label="mined"
+     style="display:inline">
+    <path
+       style="fill:#a9a9a9;fill-opacity:1;stroke:none;display:inline"
+       d="M 9.4375,99.758169 78.14665,33.110294 73.680556,28.300653 67.153187,8.375 l 18.55147,6.527369 4.80964,3.779003 4.809641,-4.80964 11.680552,12.367647 -6.18382,4.80964 13.74183,14.085377 -12.71119,14.42892 -14.77247,-16.14665 -65.273693,70.770424 z"
+       id="path4103"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cccccccccccccc" />
+    <path
+       sodipodi:nodetypes="cccccccccccccc"
+       inkscape:connector-curvature="0"
+       id="path4619"
+       d="M 114.5625,99.758169 45.85335,33.110294 50.319444,28.300653 56.846813,8.375 l -18.55147,6.527369 -4.80964,3.779003 -4.809641,-4.80964 -11.680556,12.367647 6.183825,4.80964 L 9.4375,45.134396 22.148693,59.563316 36.92116,43.416666 102.19485,114.18709 z"
+       style="fill:#a9a9a9;fill-opacity:1;stroke:none;display:inline" />
+    <path
+       style="fill:#6e6e6e;fill-opacity:1;stroke:none"
+       d="M 10.960155,44.693128 38.53732,16.408856 54.093669,10.752002 48.436815,28.076118 22.273864,56.713943 z"
+       id="path5256"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cccccc" />
+    <path
+       style="fill:#6e6e6e;fill-opacity:1;stroke:none"
+       d="M 69.296465,10.398449 85.559921,17.115963 111.72287,45.046681 102.17693,56.713943 74.953319,27.722565 z"
+       id="path5258"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cccccc" />
+  </g>
+</svg>
diff --git a/src/qt/res/src/questionmark.svg b/src/qt/res/src/questionmark.svg
new file mode 100644 (file)
index 0000000..c03c159
--- /dev/null
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="16px"
+   height="16px"
+   id="svg2993"
+   version="1.1"
+   inkscape:version="0.48.0 r9654"
+   sodipodi:docname="questionmark.svg"
+   inkscape:export-filename="/store/orion/projects/bitcoin/questionmark.png"
+   inkscape:export-xdpi="90"
+   inkscape:export-ydpi="90">
+  <defs
+     id="defs2995">
+    <linearGradient
+       id="linearGradient3808">
+      <stop
+         style="stop-color:#c8c8c8;stop-opacity:1;"
+         offset="0"
+         id="stop3810" />
+      <stop
+         style="stop-color:#959595;stop-opacity:1"
+         offset="1"
+         id="stop3812" />
+    </linearGradient>
+    <filter
+       inkscape:collect="always"
+       id="filter3804"
+       x="-0.2510722"
+       width="1.5021444"
+       y="-0.13164773"
+       height="1.2632955">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.73280473"
+         id="feGaussianBlur3806" />
+    </filter>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3808"
+       id="linearGradient3844"
+       x1="8.4916801"
+       y1="1.4395804"
+       x2="8.6022711"
+       y2="14.211697"
+       gradientUnits="userSpaceOnUse" />
+    <filter
+       inkscape:collect="always"
+       id="filter3889"
+       x="-0.13954329"
+       width="1.2790866"
+       y="-0.073168421"
+       height="1.1463368">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.40728516"
+         id="feGaussianBlur3891" />
+    </filter>
+    <filter
+       inkscape:collect="always"
+       id="filter3897"
+       x="-0.17178624"
+       width="1.3435725"
+       y="-0.090074761"
+       height="1.1801495">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.50139271"
+         id="feGaussianBlur3899" />
+    </filter>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="1"
+     inkscape:cx="10.789648"
+     inkscape:cy="7.6382159"
+     inkscape:current-layer="layer2"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1920"
+     inkscape:window-height="1127"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata2998">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="Below"
+     style="display:inline">
+    <text
+       sodipodi:linespacing="125%"
+       id="text3006"
+       y="14.748394"
+       x="4.1060953"
+       style="font-size:18px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;filter:url(#filter3897)"
+       xml:space="preserve"><tspan
+         y="14.748394"
+         x="4.1060953"
+         id="tspan3008"
+         sodipodi:role="line">?</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:18px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;filter:url(#filter3889)"
+       x="4.1060953"
+       y="14.748394"
+       id="text3824"
+       sodipodi:linespacing="125%"><tspan
+         sodipodi:role="line"
+         id="tspan3826"
+         x="4.1060953"
+         y="14.748394">?</tspan></text>
+  </g>
+  <g
+     id="layer1"
+     inkscape:label="QuestionMark"
+     inkscape:groupmode="layer"
+     style="display:inline"
+     sodipodi:insensitive="true">
+    <text
+       xml:space="preserve"
+       style="font-size:18px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient3844);fill-opacity:1;stroke:none;font-family:Sans"
+       x="4.1060953"
+       y="14.748394"
+       id="text3001"
+       sodipodi:linespacing="125%"><tspan
+         sodipodi:role="line"
+         id="tspan3003"
+         x="4.1060953"
+         y="14.748394"
+         style="fill:url(#linearGradient3844);fill-opacity:1">?</tspan></text>
+  </g>
+</svg>
diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp
new file mode 100644 (file)
index 0000000..58eb5c2
--- /dev/null
@@ -0,0 +1,254 @@
+#include "sendcoinsdialog.h"
+#include "ui_sendcoinsdialog.h"
+#include "walletmodel.h"
+#include "bitcoinunits.h"
+#include "addressbookpage.h"
+#include "optionsmodel.h"
+#include "sendcoinsentry.h"
+#include "guiutil.h"
+#include "askpassphrasedialog.h"
+
+#include <QMessageBox>
+#include <QLocale>
+#include <QTextDocument>
+
+SendCoinsDialog::SendCoinsDialog(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::SendCoinsDialog),
+    model(0)
+{
+    ui->setupUi(this);
+
+    addEntry();
+
+    connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addEntry()));
+    connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear()));
+}
+
+void SendCoinsDialog::setModel(WalletModel *model)
+{
+    this->model = model;
+
+    for(int i = 0; i < ui->entries->count(); ++i)
+    {
+        SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
+        if(entry)
+        {
+            entry->setModel(model);
+        }
+    }
+
+    setBalance(model->getBalance(), model->getUnconfirmedBalance());
+    connect(model, SIGNAL(balanceChanged(qint64, qint64)), this, SLOT(setBalance(qint64, qint64)));
+}
+
+SendCoinsDialog::~SendCoinsDialog()
+{
+    delete ui;
+}
+
+void SendCoinsDialog::on_sendButton_clicked()
+{
+    QList<SendCoinsRecipient> recipients;
+    bool valid = true;
+    for(int i = 0; i < ui->entries->count(); ++i)
+    {
+        SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
+        if(entry)
+        {
+            if(entry->validate())
+            {
+                recipients.append(entry->getValue());
+            }
+            else
+            {
+                valid = false;
+            }
+        }
+    }
+
+    if(!valid || recipients.isEmpty())
+    {
+        return;
+    }
+
+    // Format confirmation message
+    QStringList formatted;
+    foreach(const SendCoinsRecipient &rcp, recipients)
+    {
+        formatted.append(tr("<b>%1</b> to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), Qt::escape(rcp.label), rcp.address));
+    }
+
+    QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm send coins"),
+                          tr("Are you sure you want to send %1?").arg(formatted.join(tr(" and "))),
+          QMessageBox::Yes|QMessageBox::Cancel,
+          QMessageBox::Cancel);
+
+    if(retval != QMessageBox::Yes)
+    {
+        return;
+    }
+
+    WalletModel::UnlockContext ctx(model->requestUnlock());
+    if(!ctx.isValid())
+    {
+        // Unlock wallet was cancelled
+        return;
+    }
+
+    WalletModel::SendCoinsReturn sendstatus = model->sendCoins(recipients);
+    switch(sendstatus.status)
+    {
+    case WalletModel::InvalidAddress:
+        QMessageBox::warning(this, tr("Send Coins"),
+            tr("The recepient address is not valid, please recheck."),
+            QMessageBox::Ok, QMessageBox::Ok);
+        break;
+    case WalletModel::InvalidAmount:
+        QMessageBox::warning(this, tr("Send Coins"),
+            tr("The amount to pay must be larger than 0."),
+            QMessageBox::Ok, QMessageBox::Ok);
+        break;
+    case WalletModel::AmountExceedsBalance:
+        QMessageBox::warning(this, tr("Send Coins"),
+            tr("Amount exceeds your balance"),
+            QMessageBox::Ok, QMessageBox::Ok);
+        break;
+    case WalletModel::AmountWithFeeExceedsBalance:
+        QMessageBox::warning(this, tr("Send Coins"),
+            tr("Total exceeds your balance when the %1 transaction fee is included").
+            arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, sendstatus.fee)),
+            QMessageBox::Ok, QMessageBox::Ok);
+        break;
+    case WalletModel::DuplicateAddress:
+        QMessageBox::warning(this, tr("Send Coins"),
+            tr("Duplicate address found, can only send to each address once in one send operation"),
+            QMessageBox::Ok, QMessageBox::Ok);
+        break;
+    case WalletModel::TransactionCreationFailed:
+        QMessageBox::warning(this, tr("Send Coins"),
+            tr("Error: Transaction creation failed  "),
+            QMessageBox::Ok, QMessageBox::Ok);
+        break;
+    case WalletModel::TransactionCommitFailed:
+        QMessageBox::warning(this, tr("Send Coins"),
+            tr("Error: The transaction was rejected.  This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."),
+            QMessageBox::Ok, QMessageBox::Ok);
+        break;
+    case WalletModel::OK:
+        accept();
+        break;
+    }
+}
+
+void SendCoinsDialog::clear()
+{
+    // Remove entries until only one left
+    while(ui->entries->count())
+    {
+        delete ui->entries->takeAt(0)->widget();
+    }
+    addEntry();
+
+    updateRemoveEnabled();
+
+    ui->sendButton->setDefault(true);
+}
+
+void SendCoinsDialog::reject()
+{
+    clear();
+}
+
+void SendCoinsDialog::accept()
+{
+    clear();
+}
+
+SendCoinsEntry *SendCoinsDialog::addEntry()
+{
+    SendCoinsEntry *entry = new SendCoinsEntry(this);
+    entry->setModel(model);
+    ui->entries->addWidget(entry);
+    connect(entry, SIGNAL(removeEntry(SendCoinsEntry*)), this, SLOT(removeEntry(SendCoinsEntry*)));
+
+    updateRemoveEnabled();
+
+    // Focus the field, so that entry can start immediately
+    entry->clear();
+    return entry;
+}
+
+void SendCoinsDialog::updateRemoveEnabled()
+{
+    // Remove buttons are enabled as soon as there is more than one send-entry
+    bool enabled = (ui->entries->count() > 1);
+    for(int i = 0; i < ui->entries->count(); ++i)
+    {
+        SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
+        if(entry)
+        {
+            entry->setRemoveEnabled(enabled);
+        }
+    }
+    setupTabChain(0);
+}
+
+void SendCoinsDialog::removeEntry(SendCoinsEntry* entry)
+{
+    delete entry;
+    updateRemoveEnabled();
+}
+
+QWidget *SendCoinsDialog::setupTabChain(QWidget *prev)
+{
+    for(int i = 0; i < ui->entries->count(); ++i)
+    {
+        SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
+        if(entry)
+        {
+            prev = entry->setupTabChain(prev);
+        }
+    }
+    QWidget::setTabOrder(prev, ui->addButton);
+    QWidget::setTabOrder(ui->addButton, ui->sendButton);
+    return ui->sendButton;
+}
+
+void SendCoinsDialog::pasteEntry(const SendCoinsRecipient &rv)
+{
+    SendCoinsEntry *entry = 0;
+    // Replace the first entry if it is still unused
+    if(ui->entries->count() == 1)
+    {
+        SendCoinsEntry *first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget());
+        if(first->isClear())
+        {
+            entry = first;
+        }
+    }
+    if(!entry)
+    {
+        entry = addEntry();
+    }
+
+    entry->setValue(rv);
+}
+
+
+void SendCoinsDialog::handleURL(const QUrl *url)
+{
+    SendCoinsRecipient rv;
+    if(!GUIUtil::parseBitcoinURL(url, &rv))
+    {
+        return;
+    }
+    pasteEntry(rv);
+}
+
+void SendCoinsDialog::setBalance(qint64 balance, qint64 unconfirmedBalance)
+{
+    Q_UNUSED(unconfirmedBalance);
+    int unit = model->getOptionsModel()->getDisplayUnit();
+    ui->labelBalance->setText(BitcoinUnits::formatWithUnit(unit, balance));
+}
diff --git a/src/qt/sendcoinsdialog.h b/src/qt/sendcoinsdialog.h
new file mode 100644 (file)
index 0000000..a14f99e
--- /dev/null
@@ -0,0 +1,52 @@
+#ifndef SENDCOINSDIALOG_H
+#define SENDCOINSDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+    class SendCoinsDialog;
+}
+class WalletModel;
+class SendCoinsEntry;
+class SendCoinsRecipient;
+
+QT_BEGIN_NAMESPACE
+class QUrl;
+QT_END_NAMESPACE
+
+class SendCoinsDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit SendCoinsDialog(QWidget *parent = 0);
+    ~SendCoinsDialog();
+
+    void setModel(WalletModel *model);
+
+    // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
+    // Hence we have to set it up manually
+    QWidget *setupTabChain(QWidget *prev);
+
+    void pasteEntry(const SendCoinsRecipient &rv);
+    void handleURL(const QUrl *url);
+
+public slots:
+    void clear();
+    void reject();
+    void accept();
+    SendCoinsEntry *addEntry();
+    void updateRemoveEnabled();
+    void setBalance(qint64 balance, qint64 unconfirmedBalance);
+
+private:
+    Ui::SendCoinsDialog *ui;
+    WalletModel *model;
+
+private slots:
+    void on_sendButton_clicked();
+
+    void removeEntry(SendCoinsEntry* entry);
+};
+
+#endif // SENDCOINSDIALOG_H
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp
new file mode 100644 (file)
index 0000000..fccef23
--- /dev/null
@@ -0,0 +1,145 @@
+#include "sendcoinsentry.h"
+#include "ui_sendcoinsentry.h"
+#include "guiutil.h"
+#include "bitcoinunits.h"
+#include "addressbookpage.h"
+#include "walletmodel.h"
+#include "optionsmodel.h"
+#include "addresstablemodel.h"
+
+#include <QApplication>
+#include <QClipboard>
+
+SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
+    QFrame(parent),
+    ui(new Ui::SendCoinsEntry),
+    model(0)
+{
+    ui->setupUi(this);
+
+#if QT_VERSION >= 0x040700
+    ui->payTo->setPlaceholderText(tr("Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)"));
+    ui->addAsLabel->setPlaceholderText(tr("Enter a label for this address to add it to your address book"));
+#endif
+    setFocusPolicy(Qt::TabFocus);
+    setFocusProxy(ui->payTo);
+
+    GUIUtil::setupAddressWidget(ui->payTo, this);
+}
+
+SendCoinsEntry::~SendCoinsEntry()
+{
+    delete ui;
+}
+
+void SendCoinsEntry::on_pasteButton_clicked()
+{
+    // Paste text from clipboard into recipient field
+    ui->payTo->setText(QApplication::clipboard()->text());
+}
+
+void SendCoinsEntry::on_addressBookButton_clicked()
+{
+    AddressBookPage dlg(AddressBookPage::ForSending, AddressBookPage::SendingTab, this);
+    dlg.setModel(model->getAddressTableModel());
+    if(dlg.exec())
+    {
+        ui->payTo->setText(dlg.getReturnValue());
+        ui->payAmount->setFocus();
+    }
+}
+
+void SendCoinsEntry::on_payTo_textChanged(const QString &address)
+{
+    ui->addAsLabel->setText(model->getAddressTableModel()->labelForAddress(address));
+}
+
+void SendCoinsEntry::setModel(WalletModel *model)
+{
+    this->model = model;
+}
+
+void SendCoinsEntry::setRemoveEnabled(bool enabled)
+{
+    ui->deleteButton->setEnabled(enabled);
+}
+
+void SendCoinsEntry::clear()
+{
+    ui->payTo->clear();
+    ui->addAsLabel->clear();
+    ui->payAmount->clear();
+    ui->payTo->setFocus();
+    if(model)
+    {
+        ui->payAmount->setDisplayUnit(model->getOptionsModel()->getDisplayUnit());
+    }
+}
+
+void SendCoinsEntry::on_deleteButton_clicked()
+{
+    emit removeEntry(this);
+}
+
+bool SendCoinsEntry::validate()
+{
+    // Check input validity
+    bool retval = true;
+
+    if(!ui->payAmount->validate())
+    {
+        retval = false;
+    }
+    else
+    {
+        if(ui->payAmount->value() <= 0)
+        {
+            // Cannot send 0 coins or less
+            ui->payAmount->setValid(false);
+            retval = false;
+        }
+    }
+
+    if(!ui->payTo->hasAcceptableInput() ||
+       (model && !model->validateAddress(ui->payTo->text())))
+    {
+        ui->payTo->setValid(false);
+        retval = false;
+    }
+
+    return retval;
+}
+
+SendCoinsRecipient SendCoinsEntry::getValue()
+{
+    SendCoinsRecipient rv;
+
+    rv.address = ui->payTo->text();
+    rv.label = ui->addAsLabel->text();
+    rv.amount = ui->payAmount->value();
+
+    return rv;
+}
+
+QWidget *SendCoinsEntry::setupTabChain(QWidget *prev)
+{
+    QWidget::setTabOrder(prev, ui->payTo);
+    QWidget::setTabOrder(ui->payTo, ui->addressBookButton);
+    QWidget::setTabOrder(ui->addressBookButton, ui->pasteButton);
+    QWidget::setTabOrder(ui->pasteButton, ui->deleteButton);
+    QWidget::setTabOrder(ui->deleteButton, ui->addAsLabel);
+    return ui->payAmount->setupTabChain(ui->addAsLabel);
+}
+
+void SendCoinsEntry::setValue(const SendCoinsRecipient &value)
+{
+    ui->payTo->setText(value.address);
+    ui->addAsLabel->setText(value.label);
+    ui->payAmount->setValue(value.amount);
+}
+
+bool SendCoinsEntry::isClear()
+{
+    return ui->payTo->text().isEmpty();
+}
+
diff --git a/src/qt/sendcoinsentry.h b/src/qt/sendcoinsentry.h
new file mode 100644 (file)
index 0000000..ccc223b
--- /dev/null
@@ -0,0 +1,51 @@
+#ifndef SENDCOINSENTRY_H
+#define SENDCOINSENTRY_H
+
+#include <QFrame>
+
+namespace Ui {
+    class SendCoinsEntry;
+}
+class WalletModel;
+class SendCoinsRecipient;
+
+class SendCoinsEntry : public QFrame
+{
+    Q_OBJECT
+
+public:
+    explicit SendCoinsEntry(QWidget *parent = 0);
+    ~SendCoinsEntry();
+
+    void setModel(WalletModel *model);
+    bool validate();
+    SendCoinsRecipient getValue();
+
+    // Return true if the entry is still empty and unedited
+    bool isClear();
+
+    void setValue(const SendCoinsRecipient &value);
+
+    // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
+    // Hence we have to set it up manually
+    QWidget *setupTabChain(QWidget *prev);
+
+public slots:
+    void setRemoveEnabled(bool enabled);
+    void clear();
+
+signals:
+    void removeEntry(SendCoinsEntry *entry);
+
+private slots:
+    void on_deleteButton_clicked();
+    void on_payTo_textChanged(const QString &address);
+    void on_addressBookButton_clicked();
+    void on_pasteButton_clicked();
+
+private:
+    Ui::SendCoinsEntry *ui;
+    WalletModel *model;
+};
+
+#endif // SENDCOINSENTRY_H
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
new file mode 100644 (file)
index 0000000..6ca3ac8
--- /dev/null
@@ -0,0 +1,292 @@
+#include <transactiondesc.h>
+
+#include "guiutil.h"
+#include "bitcoinunits.h"
+
+#include "headers.h"
+#include "qtui.h"
+
+#include <QString>
+#include <QTextDocument> // For Qt::escape
+
+using namespace std;
+
+QString TransactionDesc::HtmlEscape(const QString& str, bool fMultiLine)
+{
+    QString escaped = Qt::escape(str);
+    if(fMultiLine)
+    {
+        escaped = escaped.replace("\n", "<br>\n");
+    }
+    return escaped;
+}
+
+QString TransactionDesc::HtmlEscape(const std::string& str, bool fMultiLine)
+{
+    return HtmlEscape(QString::fromStdString(str), fMultiLine);
+}
+
+QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx)
+{
+    if (!wtx.IsFinal())
+    {
+        if (wtx.nLockTime < LOCKTIME_THRESHOLD)
+            return tr("Open for %1 blocks").arg(nBestHeight - wtx.nLockTime);
+        else
+            return tr("Open until %1").arg(GUIUtil::dateTimeStr(wtx.nLockTime));
+    }
+    else
+    {
+        int nDepth = wtx.GetDepthInMainChain();
+        if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0)
+            return tr("%1/offline?").arg(nDepth);
+        else if (nDepth < 6)
+            return tr("%1/unconfirmed").arg(nDepth);
+        else
+            return tr("%1 confirmations").arg(nDepth);
+    }
+}
+
+QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx)
+{
+    QString strHTML;
+    CRITICAL_BLOCK(wallet->cs_wallet)
+    {
+        strHTML.reserve(4000);
+        strHTML += "<html><font face='verdana, arial, helvetica, sans-serif'>";
+
+        int64 nTime = wtx.GetTxTime();
+        int64 nCredit = wtx.GetCredit();
+        int64 nDebit = wtx.GetDebit();
+        int64 nNet = nCredit - nDebit;
+
+        strHTML += tr("<b>Status:</b> ") + FormatTxStatus(wtx);
+        int nRequests = wtx.GetRequestCount();
+        if (nRequests != -1)
+        {
+            if (nRequests == 0)
+                strHTML += tr(", has not been successfully broadcast yet");
+            else if (nRequests == 1)
+                strHTML += tr(", broadcast through %1 node").arg(nRequests);
+            else
+                strHTML += tr(", broadcast through %1 nodes").arg(nRequests);
+        }
+        strHTML += "<br>";
+
+        strHTML += tr("<b>Date:</b> ") + (nTime ? GUIUtil::dateTimeStr(nTime) : QString("")) + "<br>";
+
+        //
+        // From
+        //
+        if (wtx.IsCoinBase())
+        {
+            strHTML += tr("<b>Source:</b> Generated<br>");
+        }
+        else if (!wtx.mapValue["from"].empty())
+        {
+            // Online transaction
+            if (!wtx.mapValue["from"].empty())
+                strHTML += tr("<b>From:</b> ") + HtmlEscape(wtx.mapValue["from"]) + "<br>";
+        }
+        else
+        {
+            // Offline transaction
+            if (nNet > 0)
+            {
+                // Credit
+                BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                {
+                    if (wallet->IsMine(txout))
+                    {
+                        CBitcoinAddress address;
+                        if (ExtractAddress(txout.scriptPubKey, wallet, address))
+                        {
+                            if (wallet->mapAddressBook.count(address))
+                            {
+                                strHTML += tr("<b>From:</b> ") + tr("unknown") + "<br>";
+                                strHTML += tr("<b>To:</b> ");
+                                strHTML += HtmlEscape(address.ToString());
+                                if (!wallet->mapAddressBook[address].empty())
+                                    strHTML += tr(" (yours, label: ") + HtmlEscape(wallet->mapAddressBook[address]) + ")";
+                                else
+                                    strHTML += tr(" (yours)");
+                                strHTML += "<br>";
+                            }
+                        }
+                        break;
+                    }
+                }
+            }
+        }
+
+        //
+        // To
+        //
+        string strAddress;
+        if (!wtx.mapValue["to"].empty())
+        {
+            // Online transaction
+            strAddress = wtx.mapValue["to"];
+            strHTML += tr("<b>To:</b> ");
+            if (wallet->mapAddressBook.count(strAddress) && !wallet->mapAddressBook[strAddress].empty())
+                strHTML += HtmlEscape(wallet->mapAddressBook[strAddress]) + " ";
+            strHTML += HtmlEscape(strAddress) + "<br>";
+        }
+
+        //
+        // Amount
+        //
+        if (wtx.IsCoinBase() && nCredit == 0)
+        {
+            //
+            // Coinbase
+            //
+            int64 nUnmatured = 0;
+            BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                nUnmatured += wallet->GetCredit(txout);
+            strHTML += tr("<b>Credit:</b> ");
+            if (wtx.IsInMainChain())
+                strHTML += tr("(%1 matures in %2 more blocks)")
+                        .arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nUnmatured))
+                        .arg(wtx.GetBlocksToMaturity());
+            else
+                strHTML += tr("(not accepted)");
+            strHTML += "<br>";
+        }
+        else if (nNet > 0)
+        {
+            //
+            // Credit
+            //
+            strHTML += tr("<b>Credit:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nNet) + "<br>";
+        }
+        else
+        {
+            bool fAllFromMe = true;
+            BOOST_FOREACH(const CTxIn& txin, wtx.vin)
+                fAllFromMe = fAllFromMe && wallet->IsMine(txin);
+
+            bool fAllToMe = true;
+            BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                fAllToMe = fAllToMe && wallet->IsMine(txout);
+
+            if (fAllFromMe)
+            {
+                //
+                // Debit
+                //
+                BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                {
+                    if (wallet->IsMine(txout))
+                        continue;
+
+                    if (wtx.mapValue["to"].empty())
+                    {
+                        // Offline transaction
+                        CBitcoinAddress address;
+                        if (ExtractAddress(txout.scriptPubKey, 0, address))
+                        {
+                            strHTML += tr("<b>To:</b> ");
+                            if (wallet->mapAddressBook.count(address) && !wallet->mapAddressBook[address].empty())
+                                strHTML += HtmlEscape(wallet->mapAddressBook[address]) + " ";
+                            strHTML += HtmlEscape(address.ToString());
+                            strHTML += "<br>";
+                        }
+                    }
+
+                    strHTML += tr("<b>Debit:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, -txout.nValue) + "<br>";
+                }
+
+                if (fAllToMe)
+                {
+                    // Payment to self
+                    int64 nChange = wtx.GetChange();
+                    int64 nValue = nCredit - nChange;
+                    strHTML += tr("<b>Debit:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, -nValue) + "<br>";
+                    strHTML += tr("<b>Credit:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nValue) + "<br>";
+                }
+
+                int64 nTxFee = nDebit - wtx.GetValueOut();
+                if (nTxFee > 0)
+                    strHTML += tr("<b>Transaction fee:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,-nTxFee) + "<br>";
+            }
+            else
+            {
+                //
+                // Mixed debit transaction
+                //
+                BOOST_FOREACH(const CTxIn& txin, wtx.vin)
+                    if (wallet->IsMine(txin))
+                        strHTML += tr("<b>Debit:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,-wallet->GetDebit(txin)) + "<br>";
+                BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                    if (wallet->IsMine(txout))
+                        strHTML += tr("<b>Credit:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,wallet->GetCredit(txout)) + "<br>";
+            }
+        }
+
+        strHTML += tr("<b>Net amount:</b> ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,nNet, true) + "<br>";
+
+        //
+        // Message
+        //
+        if (!wtx.mapValue["message"].empty())
+            strHTML += QString("<br><b>") + tr("Message:") + "</b><br>" + HtmlEscape(wtx.mapValue["message"], true) + "<br>";
+        if (!wtx.mapValue["comment"].empty())
+            strHTML += QString("<br><b>") + tr("Comment:") + "</b><br>" + HtmlEscape(wtx.mapValue["comment"], true) + "<br>";
+
+        if (wtx.IsCoinBase())
+            strHTML += QString("<br>") + tr("Generated coins must wait 120 blocks before they can be spent.  When you generated this block, it was broadcast to the network to be added to the block chain.  If it fails to get into the chain, it will change to \"not accepted\" and not be spendable.  This may occasionally happen if another node generates a block within a few seconds of yours.") + "<br>";
+
+        //
+        // Debug view
+        //
+        if (fDebug)
+        {
+            strHTML += "<hr><br>Debug information<br><br>";
+            BOOST_FOREACH(const CTxIn& txin, wtx.vin)
+                if(wallet->IsMine(txin))
+                    strHTML += "<b>Debit:</b> " + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,-wallet->GetDebit(txin)) + "<br>";
+            BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                if(wallet->IsMine(txout))
+                    strHTML += "<b>Credit:</b> " + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,wallet->GetCredit(txout)) + "<br>";
+
+            strHTML += "<br><b>Transaction:</b><br>";
+            strHTML += HtmlEscape(wtx.ToString(), true);
+
+            CTxDB txdb("r"); // To fetch source txouts
+
+            strHTML += "<br><b>Inputs:</b>";
+            strHTML += "<ul>";
+            CRITICAL_BLOCK(wallet->cs_wallet)
+            {
+                BOOST_FOREACH(const CTxIn& txin, wtx.vin)
+                {
+                    COutPoint prevout = txin.prevout;
+
+                    CTransaction prev;
+                    if(txdb.ReadDiskTx(prevout.hash, prev))
+                    {
+                        if (prevout.n < prev.vout.size())
+                        {
+                            strHTML += "<li>";
+                            const CTxOut &vout = prev.vout[prevout.n];
+                            CBitcoinAddress address;
+                            if (ExtractAddress(vout.scriptPubKey, 0, address))
+                            {
+                                if (wallet->mapAddressBook.count(address) && !wallet->mapAddressBook[address].empty())
+                                    strHTML += HtmlEscape(wallet->mapAddressBook[address]) + " ";
+                                strHTML += QString::fromStdString(address.ToString());
+                            }
+                            strHTML = strHTML + " Amount=" + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,vout.nValue);
+                            strHTML = strHTML + " IsMine=" + (wallet->IsMine(vout) ? "true" : "false") + "</li>";
+                        }
+                    }
+                }
+            }
+            strHTML += "</ul>";
+        }
+
+        strHTML += "</font></html>";
+    }
+    return strHTML;
+}
diff --git a/src/qt/transactiondesc.h b/src/qt/transactiondesc.h
new file mode 100644 (file)
index 0000000..484bb12
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef TRANSACTIONDESC_H
+#define TRANSACTIONDESC_H
+
+#include <QString>
+#include <QObject>
+#include <string>
+
+class CWallet;
+class CWalletTx;
+
+class TransactionDesc: public QObject
+{
+    Q_OBJECT
+public:
+    // Provide human-readable extended HTML description of a transaction
+    static QString toHTML(CWallet *wallet, CWalletTx &wtx);
+private:
+    TransactionDesc() {}
+
+    static QString HtmlEscape(const QString& str, bool fMultiLine=false);
+    static QString HtmlEscape(const std::string &str, bool fMultiLine=false);
+    static QString FormatTxStatus(const CWalletTx& wtx);
+};
+
+#endif // TRANSACTIONDESC_H
diff --git a/src/qt/transactiondescdialog.cpp b/src/qt/transactiondescdialog.cpp
new file mode 100644 (file)
index 0000000..3bd4808
--- /dev/null
@@ -0,0 +1,20 @@
+#include "transactiondescdialog.h"
+#include "ui_transactiondescdialog.h"
+
+#include "transactiontablemodel.h"
+
+#include <QModelIndex>
+
+TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::TransactionDescDialog)
+{
+    ui->setupUi(this);
+    QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
+    ui->detailText->setHtml(desc);
+}
+
+TransactionDescDialog::~TransactionDescDialog()
+{
+    delete ui;
+}
diff --git a/src/qt/transactiondescdialog.h b/src/qt/transactiondescdialog.h
new file mode 100644 (file)
index 0000000..4f8f754
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef TRANSACTIONDESCDIALOG_H
+#define TRANSACTIONDESCDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+    class TransactionDescDialog;
+}
+QT_BEGIN_NAMESPACE
+class QModelIndex;
+QT_END_NAMESPACE
+
+class TransactionDescDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit TransactionDescDialog(const QModelIndex &idx, QWidget *parent = 0);
+    ~TransactionDescDialog();
+
+private:
+    Ui::TransactionDescDialog *ui;
+};
+
+#endif // TRANSACTIONDESCDIALOG_H
diff --git a/src/qt/transactionfilterproxy.cpp b/src/qt/transactionfilterproxy.cpp
new file mode 100644 (file)
index 0000000..a4c5b37
--- /dev/null
@@ -0,0 +1,86 @@
+#include "transactionfilterproxy.h"
+#include "transactiontablemodel.h"
+
+#include <QDateTime>
+
+#include <cstdlib>
+
+// Earliest date that can be represented (far in the past)
+const QDateTime TransactionFilterProxy::MIN_DATE = QDateTime::fromTime_t(0);
+// Last date that can be represented (far in the future)
+const QDateTime TransactionFilterProxy::MAX_DATE = QDateTime::fromTime_t(0xFFFFFFFF);
+
+TransactionFilterProxy::TransactionFilterProxy(QObject *parent) :
+    QSortFilterProxyModel(parent),
+    dateFrom(MIN_DATE),
+    dateTo(MAX_DATE),
+    addrPrefix(),
+    typeFilter(ALL_TYPES),
+    minAmount(0),
+    limitRows(-1)
+{
+}
+
+bool TransactionFilterProxy::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
+{
+    QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent);
+
+    int type = index.data(TransactionTableModel::TypeRole).toInt();
+    QDateTime datetime = index.data(TransactionTableModel::DateRole).toDateTime();
+    QString address = index.data(TransactionTableModel::AddressRole).toString();
+    QString label = index.data(TransactionTableModel::LabelRole).toString();
+    qint64 amount = llabs(index.data(TransactionTableModel::AmountRole).toLongLong());
+
+    if(!(TYPE(type) & typeFilter))
+        return false;
+    if(datetime < dateFrom || datetime > dateTo)
+        return false;
+    if(!address.startsWith(addrPrefix) && !label.startsWith(addrPrefix))
+        return false;
+    if(amount < minAmount)
+        return false;
+
+    return true;
+}
+
+void TransactionFilterProxy::setDateRange(const QDateTime &from, const QDateTime &to)
+{
+    this->dateFrom = from;
+    this->dateTo = to;
+    invalidateFilter();
+}
+
+void TransactionFilterProxy::setAddressPrefix(const QString &addrPrefix)
+{
+    this->addrPrefix = addrPrefix;
+    invalidateFilter();
+}
+
+void TransactionFilterProxy::setTypeFilter(quint32 modes)
+{
+    this->typeFilter = modes;
+    invalidateFilter();
+}
+
+void TransactionFilterProxy::setMinAmount(qint64 minimum)
+{
+    this->minAmount = minimum;
+    invalidateFilter();
+}
+
+void TransactionFilterProxy::setLimit(int limit)
+{
+    this->limitRows = limit;
+}
+
+int TransactionFilterProxy::rowCount(const QModelIndex &parent) const
+{
+    if(limitRows != -1)
+    {
+        return std::min(QSortFilterProxyModel::rowCount(parent), limitRows);
+    }
+    else
+    {
+        return QSortFilterProxyModel::rowCount(parent);
+    }
+}
diff --git a/src/qt/transactionfilterproxy.h b/src/qt/transactionfilterproxy.h
new file mode 100644 (file)
index 0000000..4dd2a8e
--- /dev/null
@@ -0,0 +1,50 @@
+#ifndef TRANSACTIONFILTERPROXY_H
+#define TRANSACTIONFILTERPROXY_H
+
+#include <QSortFilterProxyModel>
+#include <QDateTime>
+
+// Filter transaction list according to pre-specified rules
+class TransactionFilterProxy : public QSortFilterProxyModel
+{
+    Q_OBJECT
+public:
+    explicit TransactionFilterProxy(QObject *parent = 0);
+
+    // Earliest date that can be represented (far in the past)
+    static const QDateTime MIN_DATE;
+    // Last date that can be represented (far in the future)
+    static const QDateTime MAX_DATE;
+    // Type filter bit field (all types)
+    static const quint32 ALL_TYPES = 0xFFFFFFFF;
+
+    static quint32 TYPE(int type) { return 1<<type; }
+
+    void setDateRange(const QDateTime &from, const QDateTime &to);
+    void setAddressPrefix(const QString &addrPrefix);
+    // Type filter takes a bitfield created with TYPE() or ALL_TYPES
+    void setTypeFilter(quint32 modes);
+    void setMinAmount(qint64 minimum);
+
+    // Set maximum number of rows returned, -1 if unlimited
+    void setLimit(int limit);
+
+    int        rowCount(const QModelIndex &parent = QModelIndex()) const;
+protected:
+    bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const;
+
+private:
+    QDateTime dateFrom;
+    QDateTime dateTo;
+    QString addrPrefix;
+    quint32 typeFilter;
+    qint64 minAmount;
+    int limitRows;
+
+signals:
+
+public slots:
+
+};
+
+#endif // TRANSACTIONFILTERPROXY_H
diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp
new file mode 100644 (file)
index 0000000..77c5a01
--- /dev/null
@@ -0,0 +1,264 @@
+#include "transactionrecord.h"
+
+#include "headers.h"
+
+/* Return positive answer if transaction should be shown in list.
+ */
+bool TransactionRecord::showTransaction(const CWalletTx &wtx)
+{
+    if (wtx.IsCoinBase())
+    {
+        // Don't show generated coin until confirmed by at least one block after it
+        // so we don't get the user's hopes up until it looks like it's probably accepted.
+        //
+        // It is not an error when generated blocks are not accepted.  By design,
+        // some percentage of blocks, like 10% or more, will end up not accepted.
+        // This is the normal mechanism by which the network copes with latency.
+        //
+        // We display regular transactions right away before any confirmation
+        // because they can always get into some block eventually.  Generated coins
+        // are special because if their block is not accepted, they are not valid.
+        //
+        if (wtx.GetDepthInMainChain() < 2)
+        {
+            return false;
+        }
+    }
+    return true;
+}
+
+/*
+ * Decompose CWallet transaction to model transaction records.
+ */
+QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx)
+{
+    QList<TransactionRecord> parts;
+    int64 nTime = wtx.nTimeDisplayed = wtx.GetTxTime();
+    int64 nCredit = wtx.GetCredit(true);
+    int64 nDebit = wtx.GetDebit();
+    int64 nNet = nCredit - nDebit;
+    uint256 hash = wtx.GetHash();
+    std::map<std::string, std::string> mapValue = wtx.mapValue;
+
+    if (showTransaction(wtx))
+    {
+        if (nNet > 0 || wtx.IsCoinBase())
+        {
+            //
+            // Credit
+            //
+            TransactionRecord sub(hash, nTime);
+
+            sub.credit = nNet;
+
+            if (wtx.IsCoinBase())
+            {
+                // Generated
+                sub.type = TransactionRecord::Generated;
+
+                if (nCredit == 0)
+                {
+                    int64 nUnmatured = 0;
+                    BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                        nUnmatured += wallet->GetCredit(txout);
+                    sub.credit = nUnmatured;
+                }
+            }
+            else if (!mapValue["from"].empty() || !mapValue["message"].empty())
+            {
+                // Received by IP connection
+                sub.type = TransactionRecord::RecvFromIP;
+                if (!mapValue["from"].empty())
+                    sub.address = mapValue["from"];
+            }
+            else
+            {
+                // Received by Bitcoin Address
+                sub.type = TransactionRecord::RecvWithAddress;
+                BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                {
+                    if(wallet->IsMine(txout))
+                    {
+                        CBitcoinAddress address;
+                        if (ExtractAddress(txout.scriptPubKey, wallet, address))
+                        {
+                            sub.address = address.ToString();
+                        }
+                        break;
+                    }
+                }
+            }
+            parts.append(sub);
+        }
+        else
+        {
+            bool fAllFromMe = true;
+            BOOST_FOREACH(const CTxIn& txin, wtx.vin)
+                fAllFromMe = fAllFromMe && wallet->IsMine(txin);
+
+            bool fAllToMe = true;
+            BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                fAllToMe = fAllToMe && wallet->IsMine(txout);
+
+            if (fAllFromMe && fAllToMe)
+            {
+                // Payment to self
+                int64 nChange = wtx.GetChange();
+
+                parts.append(TransactionRecord(hash, nTime, TransactionRecord::SendToSelf, "",
+                                -(nDebit - nChange), nCredit - nChange));
+            }
+            else if (fAllFromMe)
+            {
+                //
+                // Debit
+                //
+                int64 nTxFee = nDebit - wtx.GetValueOut();
+
+                for (int nOut = 0; nOut < wtx.vout.size(); nOut++)
+                {
+                    const CTxOut& txout = wtx.vout[nOut];
+                    TransactionRecord sub(hash, nTime);
+                    sub.idx = parts.size();
+
+                    if(wallet->IsMine(txout))
+                    {
+                        // Ignore parts sent to self, as this is usually the change
+                        // from a transaction sent back to our own address.
+                        continue;
+                    }
+                    else if(!mapValue["to"].empty())
+                    {
+                        // Sent to IP
+                        sub.type = TransactionRecord::SendToIP;
+                        sub.address = mapValue["to"];
+                    }
+                    else
+                    {
+                        // Sent to Bitcoin Address
+                        sub.type = TransactionRecord::SendToAddress;
+                        CBitcoinAddress address;
+                        if (ExtractAddress(txout.scriptPubKey, 0, address))
+                        {
+                            sub.address = address.ToString();
+                        }
+                    }
+
+                    int64 nValue = txout.nValue;
+                    /* Add fee to first output */
+                    if (nTxFee > 0)
+                    {
+                        nValue += nTxFee;
+                        nTxFee = 0;
+                    }
+                    sub.debit = -nValue;
+
+                    parts.append(sub);
+                }
+            }
+            else
+            {
+                //
+                // Mixed debit transaction, can't break down payees
+                //
+                bool fAllMine = true;
+                BOOST_FOREACH(const CTxOut& txout, wtx.vout)
+                    fAllMine = fAllMine && wallet->IsMine(txout);
+                BOOST_FOREACH(const CTxIn& txin, wtx.vin)
+                    fAllMine = fAllMine && wallet->IsMine(txin);
+
+                parts.append(TransactionRecord(hash, nTime, TransactionRecord::Other, "", nNet, 0));
+            }
+        }
+    }
+
+    return parts;
+}
+
+void TransactionRecord::updateStatus(const CWalletTx &wtx)
+{
+    // Determine transaction status
+
+    // Find the block the tx is in
+    CBlockIndex* pindex = NULL;
+    std::map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(wtx.hashBlock);
+    if (mi != mapBlockIndex.end())
+        pindex = (*mi).second;
+
+    // Sort order, unrecorded transactions sort to the top
+    status.sortKey = strprintf("%010d-%01d-%010u-%03d",
+        (pindex ? pindex->nHeight : INT_MAX),
+        (wtx.IsCoinBase() ? 1 : 0),
+        wtx.nTimeReceived,
+        idx);
+    status.confirmed = wtx.IsConfirmed();
+    status.depth = wtx.GetDepthInMainChain();
+    status.cur_num_blocks = nBestHeight;
+
+    if (!wtx.IsFinal())
+    {
+        if (wtx.nLockTime < LOCKTIME_THRESHOLD)
+        {
+            status.status = TransactionStatus::OpenUntilBlock;
+            status.open_for = nBestHeight - wtx.nLockTime;
+        }
+        else
+        {
+            status.status = TransactionStatus::OpenUntilDate;
+            status.open_for = wtx.nLockTime;
+        }
+    }
+    else
+    {
+        if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0)
+        {
+            status.status = TransactionStatus::Offline;
+        }
+        else if (status.depth < NumConfirmations)
+        {
+            status.status = TransactionStatus::Unconfirmed;
+        }
+        else
+        {
+            status.status = TransactionStatus::HaveConfirmations;
+        }
+    }
+
+    // For generated transactions, determine maturity
+    if(type == TransactionRecord::Generated)
+    {
+        int64 nCredit = wtx.GetCredit(true);
+        if (nCredit == 0)
+        {
+            status.maturity = TransactionStatus::Immature;
+
+            if (wtx.IsInMainChain())
+            {
+                status.matures_in = wtx.GetBlocksToMaturity();
+
+                // Check if the block was requested by anyone
+                if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0)
+                    status.maturity = TransactionStatus::MaturesWarning;
+            }
+            else
+            {
+                status.maturity = TransactionStatus::NotAccepted;
+            }
+        }
+        else
+        {
+            status.maturity = TransactionStatus::Mature;
+        }
+    }
+}
+
+bool TransactionRecord::statusUpdateNeeded()
+{
+    return status.cur_num_blocks != nBestHeight;
+}
+
+std::string TransactionRecord::getTxID()
+{
+    return hash.ToString() + strprintf("-%03d", idx);
+}
+
diff --git a/src/qt/transactionrecord.h b/src/qt/transactionrecord.h
new file mode 100644 (file)
index 0000000..0050c87
--- /dev/null
@@ -0,0 +1,118 @@
+#ifndef TRANSACTIONRECORD_H
+#define TRANSACTIONRECORD_H
+
+#include "uint256.h"
+
+#include <QList>
+
+class CWallet;
+class CWalletTx;
+
+class TransactionStatus
+{
+public:
+    TransactionStatus():
+            confirmed(false), sortKey(""), maturity(Mature),
+            matures_in(0), status(Offline), depth(0), open_for(0), cur_num_blocks(-1)
+    { }
+
+    enum Maturity
+    {
+        Immature,
+        Mature,
+        MaturesWarning, /* Will likely not mature because no nodes have confirmed */
+        NotAccepted
+    };
+
+    enum Status {
+        OpenUntilDate,
+        OpenUntilBlock,
+        Offline,
+        Unconfirmed,
+        HaveConfirmations
+    };
+
+    bool confirmed;
+    std::string sortKey;
+
+    /* For "Generated" transactions */
+    Maturity maturity;
+    int matures_in;
+
+    /* Reported status */
+    Status status;
+    int64 depth;
+    int64 open_for; /* Timestamp if status==OpenUntilDate, otherwise number of blocks */
+
+    /* Current number of blocks (to know whether cached status is still valid. */
+    int cur_num_blocks;
+};
+
+class TransactionRecord
+{
+public:
+    enum Type
+    {
+        Other,
+        Generated,
+        SendToAddress,
+        SendToIP,
+        RecvWithAddress,
+        RecvFromIP,
+        SendToSelf
+    };
+
+    /* Number of confirmation needed for transaction */
+    static const int NumConfirmations = 6;
+
+    TransactionRecord():
+            hash(), time(0), type(Other), address(""), debit(0), credit(0), idx(0)
+    {
+    }
+
+    TransactionRecord(uint256 hash, int64 time):
+            hash(hash), time(time), type(Other), address(""), debit(0),
+            credit(0), idx(0)
+    {
+    }
+
+    TransactionRecord(uint256 hash, int64 time,
+                Type type, const std::string &address,
+                int64 debit, int64 credit):
+            hash(hash), time(time), type(type), address(address), debit(debit), credit(credit),
+            idx(0)
+    {
+    }
+
+    /* Decompose CWallet transaction to model transaction records.
+     */
+    static bool showTransaction(const CWalletTx &wtx);
+    static QList<TransactionRecord> decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx);
+
+    /* Fixed */
+    uint256 hash;
+    int64 time;
+    Type type;
+    std::string address;
+    int64 debit;
+    int64 credit;
+
+    /* Subtransaction index, for sort key */
+    int idx;
+
+    /* Status: can change with block chain update */
+    TransactionStatus status;
+
+    /* Return the unique identifier for this transaction (part) */
+    std::string getTxID();
+
+    /* Update status from wallet tx.
+     */
+    void updateStatus(const CWalletTx &wtx);
+
+    /* Is a status update needed?
+     */
+    bool statusUpdateNeeded();
+};
+
+#endif // TRANSACTIONRECORD_H
diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp
new file mode 100644 (file)
index 0000000..0e1733f
--- /dev/null
@@ -0,0 +1,622 @@
+#include "transactiontablemodel.h"
+#include "guiutil.h"
+#include "transactionrecord.h"
+#include "guiconstants.h"
+#include "transactiondesc.h"
+#include "walletmodel.h"
+#include "optionsmodel.h"
+#include "addresstablemodel.h"
+#include "bitcoinunits.h"
+
+#include "headers.h"
+
+#include <QLocale>
+#include <QList>
+#include <QColor>
+#include <QTimer>
+#include <QIcon>
+#include <QDateTime>
+#include <QtAlgorithms>
+
+// Amount column is right-aligned it contains numbers
+static int column_alignments[] = {
+        Qt::AlignLeft|Qt::AlignVCenter,
+        Qt::AlignLeft|Qt::AlignVCenter,
+        Qt::AlignLeft|Qt::AlignVCenter,
+        Qt::AlignLeft|Qt::AlignVCenter,
+        Qt::AlignRight|Qt::AlignVCenter
+    };
+
+// Comparison operator for sort/binary search of model tx list
+struct TxLessThan
+{
+    bool operator()(const TransactionRecord &a, const TransactionRecord &b) const
+    {
+        return a.hash < b.hash;
+    }
+    bool operator()(const TransactionRecord &a, const uint256 &b) const
+    {
+        return a.hash < b;
+    }
+    bool operator()(const uint256 &a, const TransactionRecord &b) const
+    {
+        return a < b.hash;
+    }
+};
+
+// Private implementation
+struct TransactionTablePriv
+{
+    TransactionTablePriv(CWallet *wallet, TransactionTableModel *parent):
+            wallet(wallet),
+            parent(parent)
+    {
+    }
+    CWallet *wallet;
+    TransactionTableModel *parent;
+
+    /* Local cache of wallet.
+     * As it is in the same order as the CWallet, by definition
+     * this is sorted by sha256.
+     */
+    QList<TransactionRecord> cachedWallet;
+
+    /* Query entire wallet anew from core.
+     */
+    void refreshWallet()
+    {
+#ifdef WALLET_UPDATE_DEBUG
+        qDebug() << "refreshWallet";
+#endif
+        cachedWallet.clear();
+        CRITICAL_BLOCK(wallet->cs_wallet)
+        {
+            for(std::map<uint256, CWalletTx>::iterator it = wallet->mapWallet.begin(); it != wallet->mapWallet.end(); ++it)
+            {
+                cachedWallet.append(TransactionRecord::decomposeTransaction(wallet, it->second));
+            }
+        }
+    }
+
+    /* Update our model of the wallet incrementally, to synchronize our model of the wallet
+       with that of the core.
+
+       Call with list of hashes of transactions that were added, removed or changed.
+     */
+    void updateWallet(const QList<uint256> &updated)
+    {
+        // Walk through updated transactions, update model as needed.
+#ifdef WALLET_UPDATE_DEBUG
+        qDebug() << "updateWallet";
+#endif
+        // Sort update list, and iterate through it in reverse, so that model updates
+        //  can be emitted from end to beginning (so that earlier updates will not influence
+        // the indices of latter ones).
+        QList<uint256> updated_sorted = updated;
+        qSort(updated_sorted);
+
+        CRITICAL_BLOCK(wallet->cs_wallet)
+        {
+            for(int update_idx = updated_sorted.size()-1; update_idx >= 0; --update_idx)
+            {
+                const uint256 &hash = updated_sorted.at(update_idx);
+                // Find transaction in wallet
+                std::map<uint256, CWalletTx>::iterator mi = wallet->mapWallet.find(hash);
+                bool inWallet = mi != wallet->mapWallet.end();
+                // Find bounds of this transaction in model
+                QList<TransactionRecord>::iterator lower = qLowerBound(
+                    cachedWallet.begin(), cachedWallet.end(), hash, TxLessThan());
+                QList<TransactionRecord>::iterator upper = qUpperBound(
+                    cachedWallet.begin(), cachedWallet.end(), hash, TxLessThan());
+                int lowerIndex = (lower - cachedWallet.begin());
+                int upperIndex = (upper - cachedWallet.begin());
+
+                // Determine if transaction is in model already
+                bool inModel = false;
+                if(lower != upper)
+                {
+                    inModel = true;
+                }
+
+#ifdef WALLET_UPDATE_DEBUG
+                qDebug() << "  " << QString::fromStdString(hash.ToString()) << inWallet << " " << inModel
+                        << lowerIndex << "-" << upperIndex;
+#endif
+
+                if(inWallet && !inModel)
+                {
+                    // Added -- insert at the right position
+                    QList<TransactionRecord> toInsert =
+                            TransactionRecord::decomposeTransaction(wallet, mi->second);
+                    if(!toInsert.isEmpty()) /* only if something to insert */
+                    {
+                        parent->beginInsertRows(QModelIndex(), lowerIndex, lowerIndex+toInsert.size()-1);
+                        int insert_idx = lowerIndex;
+                        foreach(const TransactionRecord &rec, toInsert)
+                        {
+                            cachedWallet.insert(insert_idx, rec);
+                            insert_idx += 1;
+                        }
+                        parent->endInsertRows();
+                    }
+                }
+                else if(!inWallet && inModel)
+                {
+                    // Removed -- remove entire transaction from table
+                    parent->beginRemoveRows(QModelIndex(), lowerIndex, upperIndex-1);
+                    cachedWallet.erase(lower, upper);
+                    parent->endRemoveRows();
+                }
+                else if(inWallet && inModel)
+                {
+                    // Updated -- nothing to do, status update will take care of this
+                }
+            }
+        }
+    }
+
+    int size()
+    {
+        return cachedWallet.size();
+    }
+
+    TransactionRecord *index(int idx)
+    {
+        if(idx >= 0 && idx < cachedWallet.size())
+        {
+            TransactionRecord *rec = &cachedWallet[idx];
+
+            // If a status update is needed (blocks came in since last check),
+            //  update the status of this transaction from the wallet. Otherwise,
+            // simply re-use the cached status.
+            if(rec->statusUpdateNeeded())
+            {
+                CRITICAL_BLOCK(wallet->cs_wallet)
+                {
+                    std::map<uint256, CWalletTx>::iterator mi = wallet->mapWallet.find(rec->hash);
+
+                    if(mi != wallet->mapWallet.end())
+                    {
+                        rec->updateStatus(mi->second);
+                    }
+                }
+            }
+            return rec;
+        }
+        else
+        {
+            return 0;
+        }
+    }
+
+    QString describe(TransactionRecord *rec)
+    {
+        CRITICAL_BLOCK(wallet->cs_wallet)
+        {
+            std::map<uint256, CWalletTx>::iterator mi = wallet->mapWallet.find(rec->hash);
+            if(mi != wallet->mapWallet.end())
+            {
+                return TransactionDesc::toHTML(wallet, mi->second);
+            }
+        }
+        return QString("");
+    }
+
+};
+
+TransactionTableModel::TransactionTableModel(CWallet* wallet, WalletModel *parent):
+        QAbstractTableModel(parent),
+        wallet(wallet),
+        walletModel(parent),
+        priv(new TransactionTablePriv(wallet, this))
+{
+    columns << QString() << tr("Date") << tr("Type") << tr("Address") << tr("Amount");
+
+    priv->refreshWallet();
+
+    QTimer *timer = new QTimer(this);
+    connect(timer, SIGNAL(timeout()), this, SLOT(update()));
+    timer->start(MODEL_UPDATE_DELAY);
+}
+
+TransactionTableModel::~TransactionTableModel()
+{
+    delete priv;
+}
+
+void TransactionTableModel::update()
+{
+    QList<uint256> updated;
+
+    // Check if there are changes to wallet map
+    TRY_CRITICAL_BLOCK(wallet->cs_wallet)
+    {
+        if(!wallet->vWalletUpdated.empty())
+        {
+            BOOST_FOREACH(uint256 hash, wallet->vWalletUpdated)
+            {
+                updated.append(hash);
+            }
+            wallet->vWalletUpdated.clear();
+        }
+    }
+
+    if(!updated.empty())
+    {
+        priv->updateWallet(updated);
+
+        // Status (number of confirmations) and (possibly) description
+        //  columns changed for all rows.
+        emit dataChanged(index(0, Status), index(priv->size()-1, Status));
+        emit dataChanged(index(0, ToAddress), index(priv->size()-1, ToAddress));
+    }
+}
+
+int TransactionTableModel::rowCount(const QModelIndex &parent) const
+{
+    Q_UNUSED(parent);
+    return priv->size();
+}
+
+int TransactionTableModel::columnCount(const QModelIndex &parent) const
+{
+    Q_UNUSED(parent);
+    return columns.length();
+}
+
+QString TransactionTableModel::formatTxStatus(const TransactionRecord *wtx) const
+{
+    QString status;
+
+    switch(wtx->status.status)
+    {
+    case TransactionStatus::OpenUntilBlock:
+        status = tr("Open for %n block(s)","",wtx->status.open_for);
+        break;
+    case TransactionStatus::OpenUntilDate:
+        status = tr("Open until %1").arg(GUIUtil::dateTimeStr(wtx->status.open_for));
+        break;
+    case TransactionStatus::Offline:
+        status = tr("Offline (%1 confirmations)").arg(wtx->status.depth);
+        break;
+    case TransactionStatus::Unconfirmed:
+        status = tr("Unconfirmed (%1 of %2 confirmations)").arg(wtx->status.depth).arg(TransactionRecord::NumConfirmations);
+        break;
+    case TransactionStatus::HaveConfirmations:
+        status = tr("Confirmed (%1 confirmations)").arg(wtx->status.depth);
+        break;
+    }
+    if(wtx->type == TransactionRecord::Generated)
+    {
+        status += "\n";
+        switch(wtx->status.maturity)
+        {
+        case TransactionStatus::Immature:
+            status += tr("Mined balance will be available in %n more blocks", "",
+                           wtx->status.matures_in);
+            break;
+        case TransactionStatus::Mature:
+            break;
+        case TransactionStatus::MaturesWarning:
+            status += tr("This block was not received by any other nodes and will probably not be accepted!");
+            break;
+        case TransactionStatus::NotAccepted:
+            status += tr("Generated but not accepted");
+            break;
+        }
+    }
+
+    return status;
+}
+
+QString TransactionTableModel::formatTxDate(const TransactionRecord *wtx) const
+{
+    if(wtx->time)
+    {
+        return GUIUtil::dateTimeStr(wtx->time);
+    }
+    else
+    {
+        return QString();
+    }
+}
+
+/* Look up address in address book, if found return label (address)
+   otherwise just return (address)
+ */
+QString TransactionTableModel::lookupAddress(const std::string &address, bool tooltip) const
+{
+    QString label = walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(address));
+    QString description;
+    if(!label.isEmpty())
+    {
+        description += label + QString(" ");
+    }
+    if(label.isEmpty() || walletModel->getOptionsModel()->getDisplayAddresses() || tooltip)
+    {
+        description += QString("(") + QString::fromStdString(address) + QString(")");
+    }
+    return description;
+}
+
+QString TransactionTableModel::formatTxType(const TransactionRecord *wtx) const
+{
+    switch(wtx->type)
+    {
+    case TransactionRecord::RecvWithAddress:
+        return tr("Received with");
+    case TransactionRecord::RecvFromIP:
+        return tr("Received from IP");
+    case TransactionRecord::SendToAddress:
+        return tr("Sent to");
+    case TransactionRecord::SendToIP:
+        return tr("Sent to IP");
+    case TransactionRecord::SendToSelf:
+        return tr("Payment to yourself");
+    case TransactionRecord::Generated:
+        return tr("Mined");
+    default:
+        return QString();
+    }
+}
+
+QVariant TransactionTableModel::txAddressDecoration(const TransactionRecord *wtx) const
+{
+    switch(wtx->type)
+    {
+    case TransactionRecord::Generated:
+        return QIcon(":/icons/tx_mined");
+    case TransactionRecord::RecvWithAddress:
+    case TransactionRecord::RecvFromIP:
+        return QIcon(":/icons/tx_input");
+    case TransactionRecord::SendToAddress:
+    case TransactionRecord::SendToIP:
+        return QIcon(":/icons/tx_output");
+    default:
+        return QIcon(":/icons/tx_inout");
+    }
+    return QVariant();
+}
+
+QString TransactionTableModel::formatTxToAddress(const TransactionRecord *wtx, bool tooltip) const
+{
+    switch(wtx->type)
+    {
+    case TransactionRecord::RecvFromIP:
+        return QString::fromStdString(wtx->address);
+    case TransactionRecord::RecvWithAddress:
+    case TransactionRecord::SendToAddress:
+        return lookupAddress(wtx->address, tooltip);
+    case TransactionRecord::SendToIP:
+        return QString::fromStdString(wtx->address);
+    case TransactionRecord::SendToSelf:
+    case TransactionRecord::Generated:
+    default:
+        return tr("(n/a)");
+    }
+}
+
+QVariant TransactionTableModel::addressColor(const TransactionRecord *wtx) const
+{
+    // Show addresses without label in a less visible color
+    switch(wtx->type)
+    {
+    case TransactionRecord::RecvWithAddress:
+    case TransactionRecord::SendToAddress:
+        {
+        QString label = walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(wtx->address));
+        if(label.isEmpty())
+            return COLOR_BAREADDRESS;
+        } break;
+    case TransactionRecord::SendToSelf:
+    case TransactionRecord::Generated:
+        return COLOR_BAREADDRESS;
+    default:
+        break;
+    }
+    return QVariant();
+}
+
+QString TransactionTableModel::formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed) const
+{
+    QString str = BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), wtx->credit + wtx->debit);
+    if(showUnconfirmed)
+    {
+        if(!wtx->status.confirmed || wtx->status.maturity != TransactionStatus::Mature)
+        {
+            str = QString("[") + str + QString("]");
+        }
+    }
+    return QString(str);
+}
+
+QVariant TransactionTableModel::txStatusDecoration(const TransactionRecord *wtx) const
+{
+    if(wtx->type == TransactionRecord::Generated)
+    {
+        switch(wtx->status.maturity)
+        {
+        case TransactionStatus::Immature: {
+            int total = wtx->status.depth + wtx->status.matures_in;
+            int part = (wtx->status.depth * 4 / total) + 1;
+            return QIcon(QString(":/icons/transaction_%1").arg(part));
+            }
+        case TransactionStatus::Mature:
+            return QIcon(":/icons/transaction_confirmed");
+        case TransactionStatus::MaturesWarning:
+        case TransactionStatus::NotAccepted:
+            return QIcon(":/icons/transaction_0");
+        }
+    }
+    else
+    {
+        switch(wtx->status.status)
+        {
+        case TransactionStatus::OpenUntilBlock:
+        case TransactionStatus::OpenUntilDate:
+            return QColor(64,64,255);
+            break;
+        case TransactionStatus::Offline:
+            return QColor(192,192,192);
+        case TransactionStatus::Unconfirmed:
+            switch(wtx->status.depth)
+            {
+            case 0: return QIcon(":/icons/transaction_0");
+            case 1: return QIcon(":/icons/transaction_1");
+            case 2: return QIcon(":/icons/transaction_2");
+            case 3: return QIcon(":/icons/transaction_3");
+            case 4: return QIcon(":/icons/transaction_4");
+            default: return QIcon(":/icons/transaction_5");
+            };
+        case TransactionStatus::HaveConfirmations:
+            return QIcon(":/icons/transaction_confirmed");
+        }
+    }
+    return QColor(0,0,0);
+}
+
+QString TransactionTableModel::formatTooltip(const TransactionRecord *rec) const
+{
+    QString tooltip = formatTxStatus(rec) + QString("\n") + formatTxType(rec);
+    if(rec->type==TransactionRecord::RecvFromIP || rec->type==TransactionRecord::SendToIP ||
+       rec->type==TransactionRecord::SendToAddress || rec->type==TransactionRecord::RecvWithAddress)
+    {
+        tooltip += QString(" ") + formatTxToAddress(rec, true);
+    }
+    return tooltip;
+}
+
+QVariant TransactionTableModel::data(const QModelIndex &index, int role) const
+{
+    if(!index.isValid())
+        return QVariant();
+    TransactionRecord *rec = static_cast<TransactionRecord*>(index.internalPointer());
+
+    switch(role)
+    {
+    case Qt::DecorationRole:
+        switch(index.column())
+        {
+        case Status:
+            return txStatusDecoration(rec);
+        case ToAddress:
+            return txAddressDecoration(rec);
+        }
+        break;
+    case Qt::DisplayRole:
+        switch(index.column())
+        {
+        case Date:
+            return formatTxDate(rec);
+        case Type:
+            return formatTxType(rec);
+        case ToAddress:
+            return formatTxToAddress(rec, false);
+        case Amount:
+            return formatTxAmount(rec);
+        }
+        break;
+    case Qt::EditRole:
+        // Edit role is used for sorting, so return the unformatted values
+        switch(index.column())
+        {
+        case Status:
+            return QString::fromStdString(rec->status.sortKey);
+        case Date:
+            return rec->time;
+        case Type:
+            return formatTxType(rec);
+        case ToAddress:
+            return formatTxToAddress(rec, true);
+        case Amount:
+            return rec->credit + rec->debit;
+        }
+        break;
+    case Qt::ToolTipRole:
+        return formatTooltip(rec);
+    case Qt::TextAlignmentRole:
+        return column_alignments[index.column()];
+    case Qt::ForegroundRole:
+        // Non-confirmed transactions are grey
+        if(!rec->status.confirmed)
+        {
+            return COLOR_UNCONFIRMED;
+        }
+        if(index.column() == Amount && (rec->credit+rec->debit) < 0)
+        {
+            return COLOR_NEGATIVE;
+        }
+        if(index.column() == ToAddress)
+        {
+            return addressColor(rec);
+        }
+        break;
+    case TypeRole:
+        return rec->type;
+    case DateRole:
+        return QDateTime::fromTime_t(static_cast<uint>(rec->time));
+    case LongDescriptionRole:
+        return priv->describe(rec);
+    case AddressRole:
+        return QString::fromStdString(rec->address);
+    case LabelRole:
+        return walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(rec->address));
+    case AmountRole:
+        return rec->credit + rec->debit;
+    case TxIDRole:
+        return QString::fromStdString(rec->getTxID());
+    case ConfirmedRole:
+        // Return True if transaction counts for balance
+        return rec->status.confirmed && !(rec->type == TransactionRecord::Generated &&
+                                          rec->status.maturity != TransactionStatus::Mature);
+    case FormattedAmountRole:
+        return formatTxAmount(rec, false);
+    }
+    return QVariant();
+}
+
+QVariant TransactionTableModel::headerData(int section, Qt::Orientation orientation, int role) const
+{
+    if(orientation == Qt::Horizontal)
+    {
+        if(role == Qt::DisplayRole)
+        {
+            return columns[section];
+        }
+        else if (role == Qt::TextAlignmentRole)
+        {
+            return column_alignments[section];
+        } else if (role == Qt::ToolTipRole)
+        {
+            switch(section)
+            {
+            case Status:
+                return tr("Transaction status. Hover over this field to show number of confirmations.");
+            case Date:
+                return tr("Date and time that the transaction was received.");
+            case Type:
+                return tr("Type of transaction.");
+            case ToAddress:
+                return tr("Destination address of transaction.");
+            case Amount:
+                return tr("Amount removed from or added to balance.");
+            }
+        }
+    }
+    return QVariant();
+}
+
+QModelIndex TransactionTableModel::index(int row, int column, const QModelIndex &parent) const
+{
+    Q_UNUSED(parent);
+    TransactionRecord *data = priv->index(row);
+    if(data)
+    {
+        return createIndex(row, column, priv->index(row));
+    }
+    else
+    {
+        return QModelIndex();
+    }
+}
+
diff --git a/src/qt/transactiontablemodel.h b/src/qt/transactiontablemodel.h
new file mode 100644 (file)
index 0000000..da55495
--- /dev/null
@@ -0,0 +1,79 @@
+#ifndef TRANSACTIONTABLEMODEL_H
+#define TRANSACTIONTABLEMODEL_H
+
+#include <QAbstractTableModel>
+#include <QStringList>
+
+class CWallet;
+class TransactionTablePriv;
+class TransactionRecord;
+class WalletModel;
+
+class TransactionTableModel : public QAbstractTableModel
+{
+    Q_OBJECT
+public:
+    explicit TransactionTableModel(CWallet* wallet, WalletModel *parent = 0);
+    ~TransactionTableModel();
+
+    enum {
+        Status = 0,
+        Date = 1,
+        Type = 2,
+        ToAddress = 3,
+        Amount = 4
+    } ColumnIndex;
+
+    // Roles to get specific information from a transaction row
+    // These are independent of column
+    enum {
+        // Type of transaction
+        TypeRole = Qt::UserRole,
+        // Date and time this transaction was created
+        DateRole,
+        // Long description (HTML format)
+        LongDescriptionRole,
+        // Address of transaction
+        AddressRole,
+        // Label of address related to transaction
+        LabelRole,
+        // Net amount of transaction
+        AmountRole,
+        // Unique identifier
+        TxIDRole,
+        // Is transaction confirmed?
+        ConfirmedRole,
+        // Formatted amount, without brackets when unconfirmed
+        FormattedAmountRole
+    } RoleIndex;
+
+    int rowCount(const QModelIndex &parent) const;
+    int columnCount(const QModelIndex &parent) const;
+    QVariant data(const QModelIndex &index, int role) const;
+    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
+    QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
+private:
+    CWallet* wallet;
+    WalletModel *walletModel;
+    QStringList columns;
+    TransactionTablePriv *priv;
+
+    QString lookupAddress(const std::string &address, bool tooltip) const;
+    QVariant addressColor(const TransactionRecord *wtx) const;
+    QString formatTxStatus(const TransactionRecord *wtx) const;
+    QString formatTxDate(const TransactionRecord *wtx) const;
+    QString formatTxType(const TransactionRecord *wtx) const;
+    QString formatTxToAddress(const TransactionRecord *wtx, bool tooltip) const;
+    QString formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed=true) const;
+    QString formatTooltip(const TransactionRecord *rec) const;
+    QVariant txStatusDecoration(const TransactionRecord *wtx) const;
+    QVariant txAddressDecoration(const TransactionRecord *wtx) const;
+
+private slots:
+    void update();
+
+    friend class TransactionTablePriv;
+};
+
+#endif
+
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
new file mode 100644 (file)
index 0000000..b2777b7
--- /dev/null
@@ -0,0 +1,385 @@
+#include "transactionview.h"
+
+#include "transactionfilterproxy.h"
+#include "transactionrecord.h"
+#include "walletmodel.h"
+#include "addresstablemodel.h"
+#include "transactiontablemodel.h"
+#include "bitcoinunits.h"
+#include "csvmodelwriter.h"
+#include "transactiondescdialog.h"
+#include "editaddressdialog.h"
+#include "optionsmodel.h"
+
+#include <QScrollBar>
+#include <QComboBox>
+#include <QDoubleValidator>
+#include <QHBoxLayout>
+#include <QVBoxLayout>
+#include <QLineEdit>
+#include <QTableView>
+#include <QHeaderView>
+#include <QPushButton>
+#include <QFileDialog>
+#include <QMessageBox>
+#include <QPoint>
+#include <QMenu>
+#include <QApplication>
+#include <QClipboard>
+#include <QLabel>
+#include <QDateTimeEdit>
+
+TransactionView::TransactionView(QWidget *parent) :
+    QWidget(parent), model(0), transactionProxyModel(0),
+    transactionView(0)
+{
+    // Build filter row
+    setContentsMargins(0,0,0,0);
+
+    QHBoxLayout *hlayout = new QHBoxLayout();
+    hlayout->setContentsMargins(0,0,0,0);
+    hlayout->setSpacing(0);
+
+    hlayout->addSpacing(23);
+
+    dateWidget = new QComboBox(this);
+    dateWidget->setMaximumWidth(120);
+    dateWidget->setMinimumWidth(120);
+    dateWidget->addItem(tr("All"), All);
+    dateWidget->addItem(tr("Today"), Today);
+    dateWidget->addItem(tr("This week"), ThisWeek);
+    dateWidget->addItem(tr("This month"), ThisMonth);
+    dateWidget->addItem(tr("Last month"), LastMonth);
+    dateWidget->addItem(tr("This year"), ThisYear);
+    dateWidget->addItem(tr("Range..."), Range);
+    hlayout->addWidget(dateWidget);
+
+    typeWidget = new QComboBox(this);
+    typeWidget->setMaximumWidth(120);
+    typeWidget->setMinimumWidth(120);
+
+    typeWidget->addItem(tr("All"), TransactionFilterProxy::ALL_TYPES);
+    typeWidget->addItem(tr("Received with"), TransactionFilterProxy::TYPE(TransactionRecord::RecvWithAddress) |
+                                        TransactionFilterProxy::TYPE(TransactionRecord::RecvFromIP));
+    typeWidget->addItem(tr("Sent to"), TransactionFilterProxy::TYPE(TransactionRecord::SendToAddress) |
+                                  TransactionFilterProxy::TYPE(TransactionRecord::SendToIP));
+    typeWidget->addItem(tr("To yourself"), TransactionFilterProxy::TYPE(TransactionRecord::SendToSelf));
+    typeWidget->addItem(tr("Mined"), TransactionFilterProxy::TYPE(TransactionRecord::Generated));
+    typeWidget->addItem(tr("Other"), TransactionFilterProxy::TYPE(TransactionRecord::Other));
+
+    hlayout->addWidget(typeWidget);
+
+    addressWidget = new QLineEdit(this);
+#if QT_VERSION >= 0x040700
+    addressWidget->setPlaceholderText(tr("Enter address or label to search"));
+#endif
+    hlayout->addWidget(addressWidget);
+
+    amountWidget = new QLineEdit(this);
+#if QT_VERSION >= 0x040700
+    amountWidget->setPlaceholderText(tr("Min amount"));
+#endif
+    amountWidget->setMaximumWidth(100);
+    amountWidget->setMinimumWidth(100);
+    amountWidget->setValidator(new QDoubleValidator(0, 1e20, 8, this));
+    hlayout->addWidget(amountWidget);
+
+    QVBoxLayout *vlayout = new QVBoxLayout(this);
+    vlayout->setContentsMargins(0,0,0,0);
+    vlayout->setSpacing(0);
+    //vlayout->addLayout(hlayout2);
+
+    QTableView *view = new QTableView(this);
+    vlayout->addLayout(hlayout);
+    vlayout->addWidget(createDateRangeWidget());
+    vlayout->addWidget(view);
+    vlayout->setSpacing(0);
+    int width = view->verticalScrollBar()->sizeHint().width();
+    // Cover scroll bar width with spacing
+    hlayout->addSpacing(width);
+    // Always show scroll bar
+    view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
+    view->setTabKeyNavigation(false);
+    view->setContextMenuPolicy(Qt::CustomContextMenu);
+
+    transactionView = view;
+
+    // Actions
+    QAction *copyAddressAction = new QAction(tr("Copy address"), this);
+    QAction *copyLabelAction = new QAction(tr("Copy label"), this);
+    QAction *editLabelAction = new QAction(tr("Edit label"), this);
+    QAction *showDetailsAction = new QAction(tr("Show details..."), this);
+
+    contextMenu = new QMenu();
+    contextMenu->addAction(copyAddressAction);
+    contextMenu->addAction(copyLabelAction);
+    contextMenu->addAction(editLabelAction);
+    contextMenu->addAction(showDetailsAction);
+
+    // Connect actions
+    connect(dateWidget, SIGNAL(activated(int)), this, SLOT(chooseDate(int)));
+    connect(typeWidget, SIGNAL(activated(int)), this, SLOT(chooseType(int)));
+    connect(addressWidget, SIGNAL(textChanged(QString)), this, SLOT(changedPrefix(QString)));
+    connect(amountWidget, SIGNAL(textChanged(QString)), this, SLOT(changedAmount(QString)));
+
+    connect(view, SIGNAL(doubleClicked(QModelIndex)), this, SIGNAL(doubleClicked(QModelIndex)));
+
+    connect(view,
+            SIGNAL(customContextMenuRequested(QPoint)),
+            this,
+            SLOT(contextualMenu(QPoint)));
+
+    connect(copyAddressAction, SIGNAL(triggered()), this, SLOT(copyAddress()));
+    connect(copyLabelAction, SIGNAL(triggered()), this, SLOT(copyLabel()));
+    connect(editLabelAction, SIGNAL(triggered()), this, SLOT(editLabel()));
+    connect(showDetailsAction, SIGNAL(triggered()), this, SLOT(showDetails()));
+}
+
+void TransactionView::setModel(WalletModel *model)
+{
+    this->model = model;
+
+    transactionProxyModel = new TransactionFilterProxy(this);
+    transactionProxyModel->setSourceModel(model->getTransactionTableModel());
+    transactionProxyModel->setDynamicSortFilter(true);
+
+    transactionProxyModel->setSortRole(Qt::EditRole);
+
+    transactionView->setModel(transactionProxyModel);
+    transactionView->setAlternatingRowColors(true);
+    transactionView->setSelectionBehavior(QAbstractItemView::SelectRows);
+    transactionView->setSelectionMode(QAbstractItemView::ExtendedSelection);
+    transactionView->setSortingEnabled(true);
+    transactionView->sortByColumn(TransactionTableModel::Status, Qt::DescendingOrder);
+    transactionView->verticalHeader()->hide();
+
+    transactionView->horizontalHeader()->resizeSection(
+            TransactionTableModel::Status, 23);
+    transactionView->horizontalHeader()->resizeSection(
+            TransactionTableModel::Date, 120);
+    transactionView->horizontalHeader()->resizeSection(
+            TransactionTableModel::Type, 120);
+    transactionView->horizontalHeader()->setResizeMode(
+            TransactionTableModel::ToAddress, QHeaderView::Stretch);
+    transactionView->horizontalHeader()->resizeSection(
+            TransactionTableModel::Amount, 100);
+
+}
+
+void TransactionView::chooseDate(int idx)
+{
+    QDate current = QDate::currentDate();
+    dateRangeWidget->setVisible(false);
+    switch(dateWidget->itemData(idx).toInt())
+    {
+    case All:
+        transactionProxyModel->setDateRange(
+                TransactionFilterProxy::MIN_DATE,
+                TransactionFilterProxy::MAX_DATE);
+        break;
+    case Today:
+        transactionProxyModel->setDateRange(
+                QDateTime(current),
+                TransactionFilterProxy::MAX_DATE);
+        break;
+    case ThisWeek: {
+        // Find last monday
+        QDate startOfWeek = current.addDays(-(current.dayOfWeek()-1));
+        transactionProxyModel->setDateRange(
+                QDateTime(startOfWeek),
+                TransactionFilterProxy::MAX_DATE);
+
+        } break;
+    case ThisMonth:
+        transactionProxyModel->setDateRange(
+                QDateTime(QDate(current.year(), current.month(), 1)),
+                TransactionFilterProxy::MAX_DATE);
+        break;
+    case LastMonth:
+        transactionProxyModel->setDateRange(
+                QDateTime(QDate(current.year(), current.month()-1, 1)),
+                QDateTime(QDate(current.year(), current.month(), 1)));
+        break;
+    case ThisYear:
+        transactionProxyModel->setDateRange(
+                QDateTime(QDate(current.year(), 1, 1)),
+                TransactionFilterProxy::MAX_DATE);
+        break;
+    case Range:
+        dateRangeWidget->setVisible(true);
+        dateRangeChanged();
+        break;
+    }
+}
+
+void TransactionView::chooseType(int idx)
+{
+    transactionProxyModel->setTypeFilter(
+        typeWidget->itemData(idx).toInt());
+}
+
+void TransactionView::changedPrefix(const QString &prefix)
+{
+    transactionProxyModel->setAddressPrefix(prefix);
+}
+
+void TransactionView::changedAmount(const QString &amount)
+{
+    qint64 amount_parsed = 0;
+    if(BitcoinUnits::parse(model->getOptionsModel()->getDisplayUnit(), amount, &amount_parsed))
+    {
+        transactionProxyModel->setMinAmount(amount_parsed);
+    }
+    else
+    {
+        transactionProxyModel->setMinAmount(0);
+    }
+}
+
+void TransactionView::exportClicked()
+{
+    // CSV is currently the only supported format
+    QString filename = QFileDialog::getSaveFileName(
+            this,
+            tr("Export Transaction Data"),
+            QDir::currentPath(),
+            tr("Comma separated file (*.csv)"));
+
+    if (filename.isNull()) return;
+
+    CSVModelWriter writer(filename);
+
+    // name, column, role
+    writer.setModel(transactionProxyModel);
+    writer.addColumn(tr("Confirmed"), 0, TransactionTableModel::ConfirmedRole);
+    writer.addColumn(tr("Date"), 0, TransactionTableModel::DateRole);
+    writer.addColumn(tr("Type"), TransactionTableModel::Type, Qt::EditRole);
+    writer.addColumn(tr("Label"), 0, TransactionTableModel::LabelRole);
+    writer.addColumn(tr("Address"), 0, TransactionTableModel::AddressRole);
+    writer.addColumn(tr("Amount"), 0, TransactionTableModel::FormattedAmountRole);
+    writer.addColumn(tr("ID"), 0, TransactionTableModel::TxIDRole);
+
+    if(!writer.write())
+    {
+        QMessageBox::critical(this, tr("Error exporting"), tr("Could not write to file %1.").arg(filename),
+                              QMessageBox::Abort, QMessageBox::Abort);
+    }
+}
+
+void TransactionView::contextualMenu(const QPoint &point)
+{
+    QModelIndex index = transactionView->indexAt(point);
+    if(index.isValid())
+    {
+        contextMenu->exec(QCursor::pos());
+    }
+}
+
+void TransactionView::copyAddress()
+{
+    QModelIndexList selection = transactionView->selectionModel()->selectedRows();
+    if(!selection.isEmpty())
+    {
+        QApplication::clipboard()->setText(selection.at(0).data(TransactionTableModel::AddressRole).toString());
+    }
+}
+
+void TransactionView::copyLabel()
+{
+    QModelIndexList selection = transactionView->selectionModel()->selectedRows();
+    if(!selection.isEmpty())
+    {
+        QApplication::clipboard()->setText(selection.at(0).data(TransactionTableModel::LabelRole).toString());
+    }
+}
+
+void TransactionView::editLabel()
+{
+    QModelIndexList selection = transactionView->selectionModel()->selectedRows();
+    if(!selection.isEmpty())
+    {
+        AddressTableModel *addressBook = model->getAddressTableModel();
+        QString address = selection.at(0).data(TransactionTableModel::AddressRole).toString();
+        if(address.isEmpty())
+        {
+            // If this transaction has no associated address, exit
+            return;
+        }
+        int idx = addressBook->lookupAddress(address);
+        if(idx != -1)
+        {
+            // Edit sending / receiving address
+            QModelIndex modelIdx = addressBook->index(idx, 0, QModelIndex());
+            // Determine type of address, launch appropriate editor dialog type
+            QString type = modelIdx.data(AddressTableModel::TypeRole).toString();
+
+            EditAddressDialog dlg(type==AddressTableModel::Receive
+                                         ? EditAddressDialog::EditReceivingAddress
+                                         : EditAddressDialog::EditSendingAddress,
+                                  this);
+            dlg.setModel(addressBook);
+            dlg.loadRow(idx);
+            dlg.exec();
+        }
+        else
+        {
+            // Add sending address
+            EditAddressDialog dlg(EditAddressDialog::NewSendingAddress,
+                                  this);
+            dlg.exec();
+        }
+    }
+}
+
+void TransactionView::showDetails()
+{
+    QModelIndexList selection = transactionView->selectionModel()->selectedRows();
+    if(!selection.isEmpty())
+    {
+        TransactionDescDialog dlg(selection.at(0));
+        dlg.exec();
+    }
+}
+
+QWidget *TransactionView::createDateRangeWidget()
+{
+    dateRangeWidget = new QFrame();
+    dateRangeWidget->setFrameStyle(QFrame::Panel | QFrame::Raised);
+    dateRangeWidget->setContentsMargins(1,1,1,1);
+    QHBoxLayout *layout = new QHBoxLayout(dateRangeWidget);
+    layout->setContentsMargins(0,0,0,0);
+    layout->addSpacing(23);
+    layout->addWidget(new QLabel(tr("Range:")));
+
+    dateFrom = new QDateTimeEdit(this);
+    dateFrom->setDisplayFormat("dd/MM/yy");
+    dateFrom->setCalendarPopup(true);
+    dateFrom->setMinimumWidth(100);
+    dateFrom->setDate(QDate::currentDate().addDays(-7));
+    layout->addWidget(dateFrom);
+    layout->addWidget(new QLabel(tr("to")));
+
+    dateTo = new QDateTimeEdit(this);
+    dateTo->setDisplayFormat("dd/MM/yy");
+    dateTo->setCalendarPopup(true);
+    dateTo->setMinimumWidth(100);
+    dateTo->setDate(QDate::currentDate());
+    layout->addWidget(dateTo);
+    layout->addStretch();
+
+    // Hide by default
+    dateRangeWidget->setVisible(false);
+
+    // Notify on change
+    connect(dateFrom, SIGNAL(dateChanged(QDate)), this, SLOT(dateRangeChanged()));
+    connect(dateTo, SIGNAL(dateChanged(QDate)), this, SLOT(dateRangeChanged()));
+
+    return dateRangeWidget;
+}
+
+void TransactionView::dateRangeChanged()
+{
+    transactionProxyModel->setDateRange(
+            QDateTime(dateFrom->date()),
+            QDateTime(dateTo->date()).addDays(1));
+}
diff --git a/src/qt/transactionview.h b/src/qt/transactionview.h
new file mode 100644 (file)
index 0000000..f4f815b
--- /dev/null
@@ -0,0 +1,77 @@
+#ifndef TRANSACTIONVIEW_H
+#define TRANSACTIONVIEW_H
+
+#include <QWidget>
+
+class WalletModel;
+class TransactionFilterProxy;
+
+QT_BEGIN_NAMESPACE
+class QTableView;
+class QComboBox;
+class QLineEdit;
+class QModelIndex;
+class QMenu;
+class QFrame;
+class QDateTimeEdit;
+QT_END_NAMESPACE
+
+class TransactionView : public QWidget
+{
+    Q_OBJECT
+public:
+    explicit TransactionView(QWidget *parent = 0);
+
+    void setModel(WalletModel *model);
+
+    // Date ranges for filter
+    enum DateEnum
+    {
+        All,
+        Today,
+        ThisWeek,
+        ThisMonth,
+        LastMonth,
+        ThisYear,
+        Range
+    };
+
+private:
+    WalletModel *model;
+    TransactionFilterProxy *transactionProxyModel;
+    QTableView *transactionView;
+
+    QComboBox *dateWidget;
+    QComboBox *typeWidget;
+    QLineEdit *addressWidget;
+    QLineEdit *amountWidget;
+
+    QMenu *contextMenu;
+
+    QFrame *dateRangeWidget;
+    QDateTimeEdit *dateFrom;
+    QDateTimeEdit *dateTo;
+
+    QWidget *createDateRangeWidget();
+
+private slots:
+    void contextualMenu(const QPoint &);
+    void dateRangeChanged();
+
+signals:
+    void doubleClicked(const QModelIndex&);
+
+public slots:
+    void chooseDate(int idx);
+    void chooseType(int idx);
+    void changedPrefix(const QString &prefix);
+    void changedAmount(const QString &amount);
+    void exportClicked();
+    void showDetails();
+    void copyAddress();
+    void editLabel();
+    void copyLabel();
+
+};
+
+#endif // TRANSACTIONVIEW_H
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
new file mode 100644 (file)
index 0000000..2f98966
--- /dev/null
@@ -0,0 +1,277 @@
+#include "walletmodel.h"
+#include "guiconstants.h"
+#include "optionsmodel.h"
+#include "addresstablemodel.h"
+#include "transactiontablemodel.h"
+
+#include "headers.h"
+
+#include <QTimer>
+#include <QSet>
+
+WalletModel::WalletModel(CWallet *wallet, OptionsModel *optionsModel, QObject *parent) :
+    QObject(parent), wallet(wallet), optionsModel(optionsModel), addressTableModel(0),
+    transactionTableModel(0),
+    cachedBalance(0), cachedUnconfirmedBalance(0), cachedNumTransactions(0),
+    cachedEncryptionStatus(Unencrypted)
+{
+    // Until signal notifications is built into the bitcoin core,
+    //  simply update everything after polling using a timer.
+    QTimer *timer = new QTimer(this);
+    connect(timer, SIGNAL(timeout()), this, SLOT(update()));
+    timer->start(MODEL_UPDATE_DELAY);
+
+    addressTableModel = new AddressTableModel(wallet, this);
+    transactionTableModel = new TransactionTableModel(wallet, this);
+}
+
+qint64 WalletModel::getBalance() const
+{
+    return wallet->GetBalance();
+}
+
+qint64 WalletModel::getUnconfirmedBalance() const
+{
+    return wallet->GetUnconfirmedBalance();
+}
+
+int WalletModel::getNumTransactions() const
+{
+    int numTransactions = 0;
+    CRITICAL_BLOCK(wallet->cs_wallet)
+    {
+        numTransactions = wallet->mapWallet.size();
+    }
+    return numTransactions;
+}
+
+void WalletModel::update()
+{
+    qint64 newBalance = getBalance();
+    qint64 newUnconfirmedBalance = getUnconfirmedBalance();
+    int newNumTransactions = getNumTransactions();
+    EncryptionStatus newEncryptionStatus = getEncryptionStatus();
+
+    if(cachedBalance != newBalance || cachedUnconfirmedBalance != newUnconfirmedBalance)
+        emit balanceChanged(newBalance, newUnconfirmedBalance);
+
+    if(cachedNumTransactions != newNumTransactions)
+        emit numTransactionsChanged(newNumTransactions);
+
+    if(cachedEncryptionStatus != newEncryptionStatus)
+        emit encryptionStatusChanged(newEncryptionStatus);
+
+    cachedBalance = newBalance;
+    cachedUnconfirmedBalance = newUnconfirmedBalance;
+    cachedNumTransactions = newNumTransactions;
+
+    addressTableModel->update();
+}
+
+bool WalletModel::validateAddress(const QString &address)
+{
+    CBitcoinAddress addressParsed(address.toStdString());
+    return addressParsed.IsValid();
+}
+
+WalletModel::SendCoinsReturn WalletModel::sendCoins(const QList<SendCoinsRecipient> &recipients)
+{
+    qint64 total = 0;
+    QSet<QString> setAddress;
+    QString hex;
+
+    if(recipients.empty())
+    {
+        return OK;
+    }
+
+    // Pre-check input data for validity
+    foreach(const SendCoinsRecipient &rcp, recipients)
+    {
+        if(!validateAddress(rcp.address))
+        {
+            return InvalidAddress;
+        }
+        setAddress.insert(rcp.address);
+
+        if(rcp.amount <= 0)
+        {
+            return InvalidAmount;
+        }
+        total += rcp.amount;
+    }
+
+    if(recipients.size() > setAddress.size())
+    {
+        return DuplicateAddress;
+    }
+
+    if(total > getBalance())
+    {
+        return AmountExceedsBalance;
+    }
+
+    if((total + nTransactionFee) > getBalance())
+    {
+        return SendCoinsReturn(AmountWithFeeExceedsBalance, nTransactionFee);
+    }
+
+    CRITICAL_BLOCK(cs_main)
+    CRITICAL_BLOCK(wallet->cs_wallet)
+    {
+        // Sendmany
+        std::vector<std::pair<CScript, int64> > vecSend;
+        foreach(const SendCoinsRecipient &rcp, recipients)
+        {
+            CScript scriptPubKey;
+            scriptPubKey.SetBitcoinAddress(rcp.address.toStdString());
+            vecSend.push_back(make_pair(scriptPubKey, rcp.amount));
+        }
+
+        CWalletTx wtx;
+        CReserveKey keyChange(wallet);
+        int64 nFeeRequired = 0;
+        bool fCreated = wallet->CreateTransaction(vecSend, wtx, keyChange, nFeeRequired);
+
+        if(!fCreated)
+        {
+            if((total + nFeeRequired) > wallet->GetBalance())
+            {
+                return SendCoinsReturn(AmountWithFeeExceedsBalance, nFeeRequired);
+            }
+            return TransactionCreationFailed;
+        }
+        if(!ThreadSafeAskFee(nFeeRequired, tr("Sending...").toStdString(), NULL))
+        {
+            return Aborted;
+        }
+        if(!wallet->CommitTransaction(wtx, keyChange))
+        {
+            return TransactionCommitFailed;
+        }
+        hex = QString::fromStdString(wtx.GetHash().GetHex());
+    }
+
+    // Add addresses that we've sent to to the address book
+    foreach(const SendCoinsRecipient &rcp, recipients)
+    {
+        std::string strAddress = rcp.address.toStdString();
+        CRITICAL_BLOCK(wallet->cs_wallet)
+        {
+            if (!wallet->mapAddressBook.count(strAddress))
+                wallet->SetAddressBookName(strAddress, rcp.label.toStdString());
+        }
+    }
+
+    // Update our model of the address table
+    addressTableModel->updateList();
+
+    return SendCoinsReturn(OK, 0, hex);
+}
+
+OptionsModel *WalletModel::getOptionsModel()
+{
+    return optionsModel;
+}
+
+AddressTableModel *WalletModel::getAddressTableModel()
+{
+    return addressTableModel;
+}
+
+TransactionTableModel *WalletModel::getTransactionTableModel()
+{
+    return transactionTableModel;
+}
+
+WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const
+{
+    if(!wallet->IsCrypted())
+    {
+        return Unencrypted;
+    }
+    else if(wallet->IsLocked())
+    {
+        return Locked;
+    }
+    else
+    {
+        return Unlocked;
+    }
+}
+
+bool WalletModel::setWalletEncrypted(bool encrypted, const std::string &passphrase)
+{
+    if(encrypted)
+    {
+        // Encrypt
+        return wallet->EncryptWallet(passphrase);
+    }
+    else
+    {
+        // Decrypt -- TODO; not supported yet
+        return false;
+    }
+}
+
+bool WalletModel::setWalletLocked(bool locked, const std::string &passPhrase)
+{
+    if(locked)
+    {
+        // Lock
+        return wallet->Lock();
+    }
+    else
+    {
+        // Unlock
+        return wallet->Unlock(passPhrase);
+    }
+}
+
+bool WalletModel::changePassphrase(const std::string &oldPass, const std::string &newPass)
+{
+    bool retval;
+    CRITICAL_BLOCK(wallet->cs_wallet)
+    {
+        wallet->Lock(); // Make sure wallet is locked before attempting pass change
+        retval = wallet->ChangeWalletPassphrase(oldPass, newPass);
+    }
+    return retval;
+}
+
+// WalletModel::UnlockContext implementation
+WalletModel::UnlockContext WalletModel::requestUnlock()
+{
+    bool was_locked = getEncryptionStatus() == Locked;
+    if(was_locked)
+    {
+        // Request UI to unlock wallet
+        emit requireUnlock();
+    }
+    // If wallet is still locked, unlock was failed or cancelled, mark context as invalid
+    bool valid = getEncryptionStatus() != Locked;
+
+    return UnlockContext(this, valid, was_locked);
+}
+
+WalletModel::UnlockContext::UnlockContext(WalletModel *wallet, bool valid, bool relock):
+        wallet(wallet),
+        valid(valid),
+        relock(relock)
+{
+}
+
+WalletModel::UnlockContext::~UnlockContext()
+{
+    if(valid && relock)
+    {
+        wallet->setWalletLocked(true);
+    }
+}
+
+void WalletModel::UnlockContext::CopyFrom(const UnlockContext& rhs)
+{
+    // Transfer context; old object no longer relocks wallet
+    *this = rhs;
+    rhs.relock = false;
+}
diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h
new file mode 100644 (file)
index 0000000..b7b6973
--- /dev/null
@@ -0,0 +1,143 @@
+#ifndef WALLETMODEL_H
+#define WALLETMODEL_H
+
+#include <QObject>
+#include <string>
+
+class OptionsModel;
+class AddressTableModel;
+class TransactionTableModel;
+class CWallet;
+
+struct SendCoinsRecipient
+{
+    QString address;
+    QString label;
+    qint64 amount;
+};
+
+// Interface to Bitcoin wallet from Qt view code
+class WalletModel : public QObject
+{
+    Q_OBJECT
+public:
+    explicit WalletModel(CWallet *wallet, OptionsModel *optionsModel, QObject *parent = 0);
+
+    enum StatusCode // Returned by sendCoins
+    {
+        OK,
+        InvalidAmount,
+        InvalidAddress,
+        AmountExceedsBalance,
+        AmountWithFeeExceedsBalance,
+        DuplicateAddress,
+        TransactionCreationFailed, // Error returned when wallet is still locked
+        TransactionCommitFailed,
+        Aborted,
+        MiscError
+    };
+
+    enum EncryptionStatus
+    {
+        Unencrypted,  // !wallet->IsCrypted()
+        Locked,       // wallet->IsCrypted() && wallet->IsLocked()
+        Unlocked      // wallet->IsCrypted() && !wallet->IsLocked()
+    };
+
+    OptionsModel *getOptionsModel();
+    AddressTableModel *getAddressTableModel();
+    TransactionTableModel *getTransactionTableModel();
+
+    qint64 getBalance() const;
+    qint64 getUnconfirmedBalance() const;
+    int getNumTransactions() const;
+    EncryptionStatus getEncryptionStatus() const;
+
+    // Check address for validity
+    bool validateAddress(const QString &address);
+
+    // Return status record for SendCoins, contains error id + information
+    struct SendCoinsReturn
+    {
+        SendCoinsReturn(StatusCode status,
+                         qint64 fee=0,
+                         QString hex=QString()):
+            status(status), fee(fee), hex(hex) {}
+        StatusCode status;
+        qint64 fee; // is used in case status is "AmountWithFeeExceedsBalance"
+        QString hex; // is filled with the transaction hash if status is "OK"
+    };
+
+    // Send coins to a list of recipients
+    SendCoinsReturn sendCoins(const QList<SendCoinsRecipient> &recipients);
+
+    // Wallet encryption
+    bool setWalletEncrypted(bool encrypted, const std::string &passphrase);
+    // Passphrase only needed when unlocking
+    bool setWalletLocked(bool locked, const std::string &passPhrase=std::string());
+    bool changePassphrase(const std::string &oldPass, const std::string &newPass);
+
+    // RAI object for unlocking wallet, returned by requestUnlock()
+    class UnlockContext
+    {
+    public:
+        UnlockContext(WalletModel *wallet, bool valid, bool relock);
+        ~UnlockContext();
+
+        bool isValid() const { return valid; }
+
+        // Copy operator and constructor transfer the context
+        UnlockContext(const UnlockContext& obj) { CopyFrom(obj); }
+        UnlockContext& operator=(const UnlockContext& rhs) { CopyFrom(rhs); return *this; }
+    private:
+        WalletModel *wallet;
+        bool valid;
+        mutable bool relock; // mutable, as it can be set to false by copying
+
+        void CopyFrom(const UnlockContext& rhs);
+    };
+
+    UnlockContext requestUnlock();
+
+private:
+    CWallet *wallet;
+
+    // Wallet has an options model for wallet-specific options
+    // (transaction fee, for example)
+    OptionsModel *optionsModel;
+
+    AddressTableModel *addressTableModel;
+    TransactionTableModel *transactionTableModel;
+
+    // Cache some values to be able to detect changes
+    qint64 cachedBalance;
+    qint64 cachedUnconfirmedBalance;
+    qint64 cachedNumTransactions;
+    EncryptionStatus cachedEncryptionStatus;
+
+signals:
+    // Signal that balance in wallet changed
+    void balanceChanged(qint64 balance, qint64 unconfirmedBalance);
+
+    // Number of transactions in wallet changed
+    void numTransactionsChanged(int count);
+
+    // Encryption status of wallet changed
+    void encryptionStatusChanged(int status);
+
+    // Signal emitted when wallet needs to be unlocked
+    // It is valid behaviour for listeners to keep the wallet locked after this signal;
+    // this means that the unlocking failed or was cancelled.
+    void requireUnlock();
+
+    // Asynchronous error notification
+    void error(const QString &title, const QString &message);
+
+public slots:
+
+private slots:
+    void update();
+};
+
+
+#endif // WALLETMODEL_H
diff --git a/src/qtui.h b/src/qtui.h
new file mode 100644 (file)
index 0000000..17fc44e
--- /dev/null
@@ -0,0 +1,49 @@
+// 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.
+#ifndef BITCOIN_EXTERNUI_H
+#define BITCOIN_EXTERNUI_H
+
+#include <string>
+#include <boost/function/function0.hpp>
+#include "wallet.h"
+
+typedef void wxWindow;
+#define wxYES                   0x00000002
+#define wxOK                    0x00000004
+#define wxNO                    0x00000008
+#define wxYES_NO                (wxYES|wxNO)
+#define wxCANCEL                0x00000010
+#define wxAPPLY                 0x00000020
+#define wxCLOSE                 0x00000040
+#define wxOK_DEFAULT            0x00000000
+#define wxYES_DEFAULT           0x00000000
+#define wxNO_DEFAULT            0x00000080
+#define wxCANCEL_DEFAULT        0x80000000
+#define wxICON_EXCLAMATION      0x00000100
+#define wxICON_HAND             0x00000200
+#define wxICON_WARNING          wxICON_EXCLAMATION
+#define wxICON_ERROR            wxICON_HAND
+#define wxICON_QUESTION         0x00000400
+#define wxICON_INFORMATION      0x00000800
+#define wxICON_STOP             wxICON_HAND
+#define wxICON_ASTERISK         wxICON_INFORMATION
+#define wxICON_MASK             (0x00000100|0x00000200|0x00000400|0x00000800)
+#define wxFORWARD               0x00001000
+#define wxBACKWARD              0x00002000
+#define wxRESET                 0x00004000
+#define wxHELP                  0x00008000
+#define wxMORE                  0x00010000
+#define wxSETUP                 0x00020000
+
+extern int MyMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
+#define wxMessageBox  MyMessageBox
+extern int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
+extern bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent);
+extern void CalledSetStatusBar(const std::string& strText, int nField);
+extern void UIThreadCall(boost::function0<void> fn);
+extern void MainFrameRepaint();
+extern void InitMessage(const std::string &message);
+extern std::string _(const char* psz);
+
+#endif
index 6e7bcb5..12d3f9e 100644 (file)
@@ -1132,6 +1132,7 @@ bool static ExtractAddressInner(const CScript& scriptPubKey, const CKeyStore* ke
         if (keystore == NULL || keystore->HaveKey(addressRet))
             return true;
     }
+
     return false;
 }
 
index 698bdfe..6b35773 100644 (file)
@@ -31,6 +31,7 @@ typedef unsigned long long  uint64;
 #endif
 
 #ifdef __WXMSW__
+#include <windows.h>
 // This is used to attempt to keep keying material out of swap
 // Note that VirtualLock does not provide this as a guarantee on Windows,
 // but, in practice, memory that has been VirtualLock'd almost never gets written to
@@ -59,7 +60,7 @@ class CDataStream;
 class CAutoFile;
 static const unsigned int MAX_SIZE = 0x02000000;
 
-static const int VERSION = 40000;
+static const int VERSION = 40100;
 static const char* pszSubVer = "";
 static const bool VERSION_IS_BETA = true;
 
diff --git a/src/test/DoS_tests.cpp b/src/test/DoS_tests.cpp
new file mode 100644 (file)
index 0000000..e60bb74
--- /dev/null
@@ -0,0 +1,68 @@
+//
+// Unit tests for denial-of-service detection/prevention code
+//
+#include <boost/test/unit_test.hpp>
+#include <boost/foreach.hpp>
+
+#include "../main.h"
+#include "../net.h"
+#include "../util.h"
+
+using namespace std;
+
+BOOST_AUTO_TEST_SUITE(DoS_tests)
+
+BOOST_AUTO_TEST_CASE(DoS_banning)
+{
+    CNode::ClearBanned();
+    CAddress addr1(0xa0b0c001);
+    CNode dummyNode1(INVALID_SOCKET, addr1, true);
+    dummyNode1.Misbehaving(100); // Should get banned
+    BOOST_CHECK(CNode::IsBanned(addr1.ip));
+    BOOST_CHECK(!CNode::IsBanned(addr1.ip|0x0000ff00)); // Different ip, not banned
+
+    CAddress addr2(0xa0b0c002);
+    CNode dummyNode2(INVALID_SOCKET, addr2, true);
+    dummyNode2.Misbehaving(50);
+    BOOST_CHECK(!CNode::IsBanned(addr2.ip)); // 2 not banned yet...
+    BOOST_CHECK(CNode::IsBanned(addr1.ip));  // ... but 1 still should be
+    dummyNode2.Misbehaving(50);
+    BOOST_CHECK(CNode::IsBanned(addr2.ip));
+}    
+
+BOOST_AUTO_TEST_CASE(DoS_banscore)
+{
+    CNode::ClearBanned();
+    mapArgs["-banscore"] = "111"; // because 11 is my favorite number
+    CAddress addr1(0xa0b0c001);
+    CNode dummyNode1(INVALID_SOCKET, addr1, true);
+    dummyNode1.Misbehaving(100);
+    BOOST_CHECK(!CNode::IsBanned(addr1.ip));
+    dummyNode1.Misbehaving(10);
+    BOOST_CHECK(!CNode::IsBanned(addr1.ip));
+    dummyNode1.Misbehaving(1);
+    BOOST_CHECK(CNode::IsBanned(addr1.ip));
+    mapArgs["-banscore"] = "100";
+}
+
+BOOST_AUTO_TEST_CASE(DoS_bantime)
+{
+    CNode::ClearBanned();
+    int64 nStartTime = GetTime();
+    SetMockTime(nStartTime); // Overrides future calls to GetTime()
+
+    CAddress addr(0xa0b0c001);
+    CNode dummyNode(INVALID_SOCKET, addr, true);
+
+    dummyNode.Misbehaving(100);
+    BOOST_CHECK(CNode::IsBanned(addr.ip));
+
+    SetMockTime(nStartTime+60*60);
+    BOOST_CHECK(CNode::IsBanned(addr.ip));
+
+    SetMockTime(nStartTime+60*60*24+1);
+    BOOST_CHECK(!CNode::IsBanned(addr.ip));
+}    
+
+
+BOOST_AUTO_TEST_SUITE_END()
diff --git a/src/test/base58_tests.cpp b/src/test/base58_tests.cpp
new file mode 100644 (file)
index 0000000..c7fa74e
--- /dev/null
@@ -0,0 +1,87 @@
+#include <boost/test/unit_test.hpp>
+
+#include "../util.h"
+
+BOOST_AUTO_TEST_SUITE(base58_tests)
+
+// TODO:
+// EncodeBase58Check
+// DecodeBase58Check
+// CBase58Data
+//    bool SetString(const char* psz)
+    // bool SetString(const std::string& str)
+    // std::string ToString() const
+    // int CompareTo(const CBase58Data& b58) const
+    // bool operator==(const CBase58Data& b58) const
+    // bool operator<=(const CBase58Data& b58) const
+    // bool operator>=(const CBase58Data& b58) const
+    // bool operator< (const CBase58Data& b58) const
+    // bool operator> (const CBase58Data& b58) const
+
+// CBitcoinAddress
+    // bool SetHash160(const uint160& hash160)
+    // bool SetPubKey(const std::vector<unsigned char>& vchPubKey)
+    // bool IsValid() const
+    // CBitcoinAddress()
+    // CBitcoinAddress(uint160 hash160In)
+    // CBitcoinAddress(const std::vector<unsigned char>& vchPubKey)
+    // CBitcoinAddress(const std::string& strAddress)
+    // CBitcoinAddress(const char* pszAddress)
+    // uint160 GetHash160() const
+
+#define U(x) (reinterpret_cast<const unsigned char*>(x))
+static struct {
+    const unsigned char *data;
+    int size;
+} vstrIn[] = {
+{U(""), 0},
+{U("\x61"), 1},
+{U("\x62\x62\x62"), 3},
+{U("\x63\x63\x63"), 3},
+{U("\x73\x69\x6d\x70\x6c\x79\x20\x61\x20\x6c\x6f\x6e\x67\x20\x73\x74\x72\x69\x6e\x67"), 20},
+{U("\x00\xeb\x15\x23\x1d\xfc\xeb\x60\x92\x58\x86\xb6\x7d\x06\x52\x99\x92\x59\x15\xae\xb1\x72\xc0\x66\x47"), 25},
+{U("\x51\x6b\x6f\xcd\x0f"), 5},
+{U("\xbf\x4f\x89\x00\x1e\x67\x02\x74\xdd"), 9},
+{U("\x57\x2e\x47\x94"), 4},
+{U("\xec\xac\x89\xca\xd9\x39\x23\xc0\x23\x21"), 10},
+{U("\x10\xc8\x51\x1e"), 4},
+{U("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"), 10},
+};
+
+const char *vstrOut[] = {
+"",
+"2g",
+"a3gV",
+"aPEr",
+"2cFupjhnEsSn59qHXstmK2ffpLv2",
+"1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L",
+"ABnLTmg",
+"3SEo3LWLoPntC",
+"3EFU7m",
+"EJDM8drfXA6uyA",
+"Rt5zm",
+"1111111111"
+};
+
+BOOST_AUTO_TEST_CASE(base58_EncodeBase58)
+{
+    for (int i=0; i<sizeof(vstrIn)/sizeof(vstrIn[0]); i++)
+    {
+        BOOST_CHECK_EQUAL(EncodeBase58(vstrIn[i].data, vstrIn[i].data + vstrIn[i].size), vstrOut[i]);
+    }
+}
+
+BOOST_AUTO_TEST_CASE(base58_DecodeBase58)
+{
+    std::vector<unsigned char> result;
+    for (int i=0; i<sizeof(vstrIn)/sizeof(vstrIn[0]); i++)
+    {
+        std::vector<unsigned char> expected(vstrIn[i].data, vstrIn[i].data + vstrIn[i].size);
+        BOOST_CHECK(DecodeBase58(vstrOut[i], result));
+        BOOST_CHECK_EQUAL_COLLECTIONS(result.begin(), result.end(), expected.begin(), expected.end());
+    }
+    BOOST_CHECK(!DecodeBase58("invalid", result));
+}
+
+BOOST_AUTO_TEST_SUITE_END()
+
diff --git a/src/test/base64_tests.cpp b/src/test/base64_tests.cpp
new file mode 100644 (file)
index 0000000..f30f7f8
--- /dev/null
@@ -0,0 +1,20 @@
+#include <boost/test/unit_test.hpp>
+
+#include "../util.h"
+
+BOOST_AUTO_TEST_SUITE(base64_tests)
+
+BOOST_AUTO_TEST_CASE(base64_testvectors)
+{
+    static const string vstrIn[]  = {"","f","fo","foo","foob","fooba","foobar"};
+    static const string vstrOut[] = {"","Zg==","Zm8=","Zm9v","Zm9vYg==","Zm9vYmE=","Zm9vYmFy"};
+    for (int i=0; i<sizeof(vstrIn)/sizeof(vstrIn[0]); i++)
+    {
+        string strEnc = EncodeBase64(vstrIn[i]);
+        BOOST_CHECK(strEnc == vstrOut[i]);
+        string strDec = DecodeBase64(strEnc);
+        BOOST_CHECK(strDec == vstrIn[i]);
+    }
+}
+
+BOOST_AUTO_TEST_SUITE_END()
index 0230bb6..4f98a93 100644 (file)
@@ -8,7 +8,10 @@
 #include "uint256_tests.cpp"
 #include "script_tests.cpp"
 #include "transaction_tests.cpp"
-
+#include "DoS_tests.cpp"
+#include "base64_tests.cpp"
+#include "util_tests.cpp"
+#include "base58_tests.cpp"
 
 CWallet* pwalletMain;
 
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp
new file mode 100644 (file)
index 0000000..8afc85c
--- /dev/null
@@ -0,0 +1,214 @@
+#include <vector>
+#include <boost/test/unit_test.hpp>
+#include <boost/foreach.hpp>
+
+#include "../util.h"
+
+using namespace std;
+
+BOOST_AUTO_TEST_SUITE(util_tests)
+
+BOOST_AUTO_TEST_CASE(util_MedianFilter)
+{    
+    CMedianFilter<int> filter(5, 15);
+
+    BOOST_CHECK_EQUAL(filter.median(), 15);
+
+    filter.input(20); // [15 20]
+    BOOST_CHECK_EQUAL(filter.median(), 17);
+
+    filter.input(30); // [15 20 30]
+    BOOST_CHECK_EQUAL(filter.median(), 20);
+
+    filter.input(3); // [3 15 20 30]
+    BOOST_CHECK_EQUAL(filter.median(), 17);
+
+    filter.input(7); // [3 7 15 20 30]
+    BOOST_CHECK_EQUAL(filter.median(), 15);
+
+    filter.input(18); // [3 7 18 20 30]
+    BOOST_CHECK_EQUAL(filter.median(), 18);
+
+    filter.input(0); // [0 3 7 18 30]
+    BOOST_CHECK_EQUAL(filter.median(), 7);
+}
+
+static const unsigned char ParseHex_expected[65] = {
+    0x04, 0x67, 0x8a, 0xfd, 0xb0, 0xfe, 0x55, 0x48, 0x27, 0x19, 0x67, 0xf1, 0xa6, 0x71, 0x30, 0xb7, 
+    0x10, 0x5c, 0xd6, 0xa8, 0x28, 0xe0, 0x39, 0x09, 0xa6, 0x79, 0x62, 0xe0, 0xea, 0x1f, 0x61, 0xde, 
+    0xb6, 0x49, 0xf6, 0xbc, 0x3f, 0x4c, 0xef, 0x38, 0xc4, 0xf3, 0x55, 0x04, 0xe5, 0x1e, 0xc1, 0x12, 
+    0xde, 0x5c, 0x38, 0x4d, 0xf7, 0xba, 0x0b, 0x8d, 0x57, 0x8a, 0x4c, 0x70, 0x2b, 0x6b, 0xf1, 0x1d, 
+    0x5f
+};
+BOOST_AUTO_TEST_CASE(util_ParseHex)
+{
+    std::vector<unsigned char> result;
+    std::vector<unsigned char> expected(ParseHex_expected, ParseHex_expected + sizeof(ParseHex_expected));
+    // Basic test vector
+    result = ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f");
+    BOOST_CHECK_EQUAL_COLLECTIONS(result.begin(), result.end(), expected.begin(), expected.end());
+
+    // Spaces between bytes must be supported
+    result = ParseHex("12 34 56 78");
+    BOOST_CHECK(result.size() == 4 && result[0] == 0x12 && result[1] == 0x34 && result[2] == 0x56 && result[3] == 0x78);
+
+    // Stop parsing at invalid value
+    result = ParseHex("1234 invalid 1234");
+    BOOST_CHECK(result.size() == 2 && result[0] == 0x12 && result[1] == 0x34);
+}
+
+BOOST_AUTO_TEST_CASE(util_HexStr)
+{
+    BOOST_CHECK_EQUAL(
+        HexStr(ParseHex_expected, ParseHex_expected + sizeof(ParseHex_expected)),
+        "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f");
+
+    BOOST_CHECK_EQUAL(
+        HexStr(ParseHex_expected, ParseHex_expected + 5, true),
+        "04 67 8a fd b0");
+}
+
+BOOST_AUTO_TEST_CASE(util_DateTimeStrFormat)
+{
+    BOOST_CHECK_EQUAL(DateTimeStrFormat("%x %H:%M:%S", 0), "01/01/70 00:00:00");
+    BOOST_CHECK_EQUAL(DateTimeStrFormat("%x %H:%M:%S", 0x7FFFFFFF), "01/19/38 03:14:07");
+    // Formats used within bitcoin
+    BOOST_CHECK_EQUAL(DateTimeStrFormat("%x %H:%M:%S", 1317425777), "09/30/11 23:36:17");
+    BOOST_CHECK_EQUAL(DateTimeStrFormat("%x %H:%M", 1317425777), "09/30/11 23:36");
+}
+
+BOOST_AUTO_TEST_CASE(util_ParseParameters)
+{
+    const char *argv_test[] = {"-ignored", "-a", "-b", "-ccc=argument", "-ccc=multiple", "f", "-d=e"};
+
+    ParseParameters(0, (char**)argv_test);
+    BOOST_CHECK(mapArgs.empty() && mapMultiArgs.empty());
+
+    ParseParameters(1, (char**)argv_test);
+    BOOST_CHECK(mapArgs.empty() && mapMultiArgs.empty());
+
+    ParseParameters(5, (char**)argv_test);
+    // expectation: -ignored is ignored (program name argument), 
+    // -a, -b and -ccc end up in map, -d ignored because it is after
+    // a non-option argument (non-GNU option parsing)
+    BOOST_CHECK(mapArgs.size() == 3 && mapMultiArgs.size() == 3);
+    BOOST_CHECK(mapArgs.count("-a") && mapArgs.count("-b") && mapArgs.count("-ccc") 
+                && !mapArgs.count("f") && !mapArgs.count("-d"));
+    BOOST_CHECK(mapMultiArgs.count("-a") && mapMultiArgs.count("-b") && mapMultiArgs.count("-ccc") 
+                && !mapMultiArgs.count("f") && !mapMultiArgs.count("-d"));
+
+    BOOST_CHECK(mapArgs["-a"] == "" && mapArgs["-ccc"] == "multiple");
+    BOOST_CHECK(mapMultiArgs["-ccc"].size() == 2);
+}
+
+BOOST_AUTO_TEST_CASE(util_GetArg)
+{
+    mapArgs.clear();
+    mapArgs["strtest1"] = "string...";
+    // strtest2 undefined on purpose
+    mapArgs["inttest1"] = "12345";
+    mapArgs["inttest2"] = "81985529216486895";
+    // inttest3 undefined on purpose
+    mapArgs["booltest1"] = "";
+    // booltest2 undefined on purpose
+    mapArgs["booltest3"] = "0";
+    mapArgs["booltest4"] = "1";
+
+    BOOST_CHECK_EQUAL(GetArg("strtest1", "default"), "string...");
+    BOOST_CHECK_EQUAL(GetArg("strtest2", "default"), "default");
+    BOOST_CHECK_EQUAL(GetArg("inttest1", -1), 12345);
+    BOOST_CHECK_EQUAL(GetArg("inttest2", -1), 81985529216486895LL);
+    BOOST_CHECK_EQUAL(GetArg("inttest3", -1), -1);
+    BOOST_CHECK_EQUAL(GetBoolArg("booltest1"), true);
+    BOOST_CHECK_EQUAL(GetBoolArg("booltest2"), false);
+    BOOST_CHECK_EQUAL(GetBoolArg("booltest3"), false);
+    BOOST_CHECK_EQUAL(GetBoolArg("booltest4"), true);
+}
+
+BOOST_AUTO_TEST_CASE(util_WildcardMatch)
+{
+    BOOST_CHECK(WildcardMatch("127.0.0.1", "*"));
+    BOOST_CHECK(WildcardMatch("127.0.0.1", "127.*"));
+    BOOST_CHECK(WildcardMatch("abcdef", "a?cde?"));
+    BOOST_CHECK(!WildcardMatch("abcdef", "a?cde??"));
+    BOOST_CHECK(WildcardMatch("abcdef", "a*f"));
+    BOOST_CHECK(!WildcardMatch("abcdef", "a*x"));
+    BOOST_CHECK(WildcardMatch("", "*"));
+}
+
+BOOST_AUTO_TEST_CASE(util_FormatMoney)
+{
+    BOOST_CHECK_EQUAL(FormatMoney(0, false), "0.00");
+    BOOST_CHECK_EQUAL(FormatMoney((COIN/10000)*123456789, false), "12345.6789");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN, true), "+1.00");
+    BOOST_CHECK_EQUAL(FormatMoney(-COIN, false), "-1.00");
+    BOOST_CHECK_EQUAL(FormatMoney(-COIN, true), "-1.00");
+
+    BOOST_CHECK_EQUAL(FormatMoney(COIN*100000000, false), "100000000.00");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN*10000000, false), "10000000.00");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN*1000000, false), "1000000.00");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN*100000, false), "100000.00");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN*10000, false), "10000.00");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN*1000, false), "1000.00");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN*100, false), "100.00");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN*10, false), "10.00");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN, false), "1.00");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN/10, false), "0.10");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN/100, false), "0.01");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN/1000, false), "0.001");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN/10000, false), "0.0001");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN/100000, false), "0.00001");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN/1000000, false), "0.000001");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN/10000000, false), "0.0000001");
+    BOOST_CHECK_EQUAL(FormatMoney(COIN/100000000, false), "0.00000001");
+}
+
+BOOST_AUTO_TEST_CASE(util_ParseMoney)
+{
+    int64 ret = 0;
+    BOOST_CHECK(ParseMoney("0.0", ret));
+    BOOST_CHECK_EQUAL(ret, 0);
+
+    BOOST_CHECK(ParseMoney("12345.6789", ret));
+    BOOST_CHECK_EQUAL(ret, (COIN/10000)*123456789);
+
+    BOOST_CHECK(ParseMoney("100000000.00", ret));
+    BOOST_CHECK_EQUAL(ret, COIN*100000000);
+    BOOST_CHECK(ParseMoney("10000000.00", ret));
+    BOOST_CHECK_EQUAL(ret, COIN*10000000);
+    BOOST_CHECK(ParseMoney("1000000.00", ret));
+    BOOST_CHECK_EQUAL(ret, COIN*1000000);
+    BOOST_CHECK(ParseMoney("100000.00", ret));
+    BOOST_CHECK_EQUAL(ret, COIN*100000);
+    BOOST_CHECK(ParseMoney("10000.00", ret));
+    BOOST_CHECK_EQUAL(ret, COIN*10000);
+    BOOST_CHECK(ParseMoney("1000.00", ret));
+    BOOST_CHECK_EQUAL(ret, COIN*1000);
+    BOOST_CHECK(ParseMoney("100.00", ret));
+    BOOST_CHECK_EQUAL(ret, COIN*100);
+    BOOST_CHECK(ParseMoney("10.00", ret));
+    BOOST_CHECK_EQUAL(ret, COIN*10);
+    BOOST_CHECK(ParseMoney("1.00", ret));
+    BOOST_CHECK_EQUAL(ret, COIN);
+    BOOST_CHECK(ParseMoney("0.1", ret));
+    BOOST_CHECK_EQUAL(ret, COIN/10);
+    BOOST_CHECK(ParseMoney("0.01", ret));
+    BOOST_CHECK_EQUAL(ret, COIN/100);
+    BOOST_CHECK(ParseMoney("0.001", ret));
+    BOOST_CHECK_EQUAL(ret, COIN/1000);
+    BOOST_CHECK(ParseMoney("0.0001", ret));
+    BOOST_CHECK_EQUAL(ret, COIN/10000);
+    BOOST_CHECK(ParseMoney("0.00001", ret));
+    BOOST_CHECK_EQUAL(ret, COIN/100000);
+    BOOST_CHECK(ParseMoney("0.000001", ret));
+    BOOST_CHECK_EQUAL(ret, COIN/1000000);
+    BOOST_CHECK(ParseMoney("0.0000001", ret));
+    BOOST_CHECK_EQUAL(ret, COIN/10000000);
+    BOOST_CHECK(ParseMoney("0.00000001", ret));
+    BOOST_CHECK_EQUAL(ret, COIN/100000000);
+
+    // Attempted 63 bit overflow should fail
+    BOOST_CHECK(!ParseMoney("92233720368.54775808", ret));
+}
+
+BOOST_AUTO_TEST_SUITE_END()
diff --git a/src/ui.cpp b/src/ui.cpp
deleted file mode 100644 (file)
index 6b7ecdb..0000000
+++ /dev/null
@@ -1,3221 +0,0 @@
-// Copyright (c) 2009-2010 Satoshi Nakamoto
-// Copyright (c) 2011 The Bitcoin developers
-// Distributed under the MIT/X11 software license, see the accompanying
-// file license.txt or http://www.opensource.org/licenses/mit-license.php.
-
-#include "headers.h"
-#include "db.h"
-#include "init.h"
-#include "strlcpy.h"
-#include <boost/filesystem/fstream.hpp>
-#include <boost/filesystem/convenience.hpp>
-#ifdef _MSC_VER
-#include <crtdbg.h>
-#endif
-
-using namespace std;
-using namespace boost;
-
-
-DEFINE_EVENT_TYPE(wxEVT_UITHREADCALL)
-
-CMainFrame* pframeMain = NULL;
-CMyTaskBarIcon* ptaskbaricon = NULL;
-bool fClosedToTray = false;
-wxLocale g_locale;
-
-#ifdef __WXMSW__
-double nScaleX = 1.0;
-double nScaleY = 1.0;
-#else
-static const double nScaleX = 1.0;
-static const double nScaleY = 1.0;
-#endif
-
-
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// Util
-//
-
-void HandleCtrlA(wxKeyEvent& event)
-{
-    // Ctrl-a select all
-    event.Skip();
-    wxTextCtrl* textCtrl = (wxTextCtrl*)event.GetEventObject();
-    if (event.GetModifiers() == wxMOD_CONTROL && event.GetKeyCode() == 'A')
-        textCtrl->SetSelection(-1, -1);
-}
-
-bool Is24HourTime()
-{
-    //char pszHourFormat[256];
-    //pszHourFormat[0] = '\0';
-    //GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ITIME, pszHourFormat, 256);
-    //return (pszHourFormat[0] != '0');
-    return true;
-}
-
-string DateStr(int64 nTime)
-{
-    // Can only be used safely here in the UI
-    return (string)wxDateTime((time_t)nTime).FormatDate();
-}
-
-string DateTimeStr(int64 nTime)
-{
-    // Can only be used safely here in the UI
-    wxDateTime datetime((time_t)nTime);
-    if (Is24HourTime())
-        return (string)datetime.Format("%x %H:%M");
-    else
-        return (string)datetime.Format("%x ") + itostr((datetime.GetHour() + 11) % 12 + 1) + (string)datetime.Format(":%M %p");
-}
-
-wxString GetItemText(wxListCtrl* listCtrl, int nIndex, int nColumn)
-{
-    // Helper to simplify access to listctrl
-    wxListItem item;
-    item.m_itemId = nIndex;
-    item.m_col = nColumn;
-    item.m_mask = wxLIST_MASK_TEXT;
-    if (!listCtrl->GetItem(item))
-        return "";
-    return item.GetText();
-}
-
-int InsertLine(wxListCtrl* listCtrl, const wxString& str0, const wxString& str1)
-{
-    int nIndex = listCtrl->InsertItem(listCtrl->GetItemCount(), str0);
-    listCtrl->SetItem(nIndex, 1, str1);
-    return nIndex;
-}
-
-int InsertLine(wxListCtrl* listCtrl, const wxString& str0, const wxString& str1, const wxString& str2, const wxString& str3, const wxString& str4)
-{
-    int nIndex = listCtrl->InsertItem(listCtrl->GetItemCount(), str0);
-    listCtrl->SetItem(nIndex, 1, str1);
-    listCtrl->SetItem(nIndex, 2, str2);
-    listCtrl->SetItem(nIndex, 3, str3);
-    listCtrl->SetItem(nIndex, 4, str4);
-    return nIndex;
-}
-
-int InsertLine(wxListCtrl* listCtrl, void* pdata, const wxString& str0, const wxString& str1, const wxString& str2, const wxString& str3, const wxString& str4)
-{
-    int nIndex = listCtrl->InsertItem(listCtrl->GetItemCount(), str0);
-    listCtrl->SetItemPtrData(nIndex, (wxUIntPtr)pdata);
-    listCtrl->SetItem(nIndex, 1, str1);
-    listCtrl->SetItem(nIndex, 2, str2);
-    listCtrl->SetItem(nIndex, 3, str3);
-    listCtrl->SetItem(nIndex, 4, str4);
-    return nIndex;
-}
-
-void SetItemTextColour(wxListCtrl* listCtrl, int nIndex, const wxColour& colour)
-{
-    // Repaint on Windows is more flickery if the colour has ever been set,
-    // so don't want to set it unless it's different.  Default colour has
-    // alpha 0 transparent, so our colours don't match using operator==.
-    wxColour c1 = listCtrl->GetItemTextColour(nIndex);
-    if (!c1.IsOk())
-        c1 = wxColour(0,0,0);
-    if (colour.Red() != c1.Red() || colour.Green() != c1.Green() || colour.Blue() != c1.Blue())
-        listCtrl->SetItemTextColour(nIndex, colour);
-}
-
-void SetSelection(wxListCtrl* listCtrl, int nIndex)
-{
-    int nSize = listCtrl->GetItemCount();
-    long nState = (wxLIST_STATE_SELECTED|wxLIST_STATE_FOCUSED);
-    for (int i = 0; i < nSize; i++)
-        listCtrl->SetItemState(i, (i == nIndex ? nState : 0), nState);
-}
-
-int GetSelection(wxListCtrl* listCtrl)
-{
-    int nSize = listCtrl->GetItemCount();
-    for (int i = 0; i < nSize; i++)
-        if (listCtrl->GetItemState(i, wxLIST_STATE_FOCUSED))
-            return i;
-    return -1;
-}
-
-string HtmlEscape(const char* psz, bool fMultiLine=false)
-{
-    int len = 0;
-    for (const char* p = psz; *p; p++)
-    {
-             if (*p == '<') len += 4;
-        else if (*p == '>') len += 4;
-        else if (*p == '&') len += 5;
-        else if (*p == '"') len += 6;
-        else if (*p == ' ' && p > psz && p[-1] == ' ' && p[1] == ' ') len += 6;
-        else if (*p == '\n' && fMultiLine) len += 5;
-        else
-            len++;
-    }
-    string str;
-    str.reserve(len);
-    for (const char* p = psz; *p; p++)
-    {
-             if (*p == '<') str += "&lt;";
-        else if (*p == '>') str += "&gt;";
-        else if (*p == '&') str += "&amp;";
-        else if (*p == '"') str += "&quot;";
-        else if (*p == ' ' && p > psz && p[-1] == ' ' && p[1] == ' ') str += "&nbsp;";
-        else if (*p == '\n' && fMultiLine) str += "<br>\n";
-        else
-            str += *p;
-    }
-    return str;
-}
-
-string HtmlEscape(const string& str, bool fMultiLine=false)
-{
-    return HtmlEscape(str.c_str(), fMultiLine);
-}
-
-void CalledMessageBox(const string& message, const string& caption, int style, wxWindow* parent, int x, int y, int* pnRet, bool* pfDone)
-{
-    *pnRet = wxMessageBox(message, caption, style, parent, x, y);
-    *pfDone = true;
-}
-
-int ThreadSafeMessageBox(const string& message, const string& caption, int style, wxWindow* parent, int x, int y)
-{
-#ifdef __WXMSW__
-    return wxMessageBox(message, caption, style, parent, x, y);
-#else
-    if (wxThread::IsMain() || fDaemon)
-    {
-        return wxMessageBox(message, caption, style, parent, x, y);
-    }
-    else
-    {
-        int nRet = 0;
-        bool fDone = false;
-        UIThreadCall(bind(CalledMessageBox, message, caption, style, parent, x, y, &nRet, &fDone));
-        while (!fDone)
-            Sleep(100);
-        return nRet;
-    }
-#endif
-}
-
-bool ThreadSafeAskFee(int64 nFeeRequired, const string& strCaption, wxWindow* parent)
-{
-    if (nFeeRequired < MIN_TX_FEE || nFeeRequired <= nTransactionFee || fDaemon)
-        return true;
-    string strMessage = strprintf(
-        _("This transaction is over the size limit.  You can still send it for a fee of %s, "
-          "which goes to the nodes that process your transaction and helps to support the network.  "
-          "Do you want to pay the fee?"),
-        FormatMoney(nFeeRequired).c_str());
-    return (ThreadSafeMessageBox(strMessage, strCaption, wxYES_NO, parent) == wxYES);
-}
-
-void CalledSetStatusBar(const string& strText, int nField)
-{
-    if (nField == 0 && GetWarnings("statusbar") != "")
-        return;
-    if (pframeMain && pframeMain->m_statusBar)
-        pframeMain->m_statusBar->SetStatusText(strText, nField);
-}
-
-void SetDefaultReceivingAddress(const string& strAddress)
-{
-    // Update main window address and database
-    if (pframeMain == NULL)
-        return;
-    if (strAddress != pframeMain->m_textCtrlAddress->GetValue())
-    {
-        CBitcoinAddress address(strAddress);
-        if (!address.IsValid())
-            return;
-        vector<unsigned char> vchPubKey;
-        if (!pwalletMain->GetPubKey(address, vchPubKey))
-            return;
-        pwalletMain->SetDefaultKey(vchPubKey);
-        pframeMain->m_textCtrlAddress->SetValue(strAddress);
-    }
-}
-
-bool GetWalletPassphrase()
-{
-    if (pwalletMain->IsLocked())
-    {
-        string strWalletPass;
-        strWalletPass.reserve(100);
-        mlock(&strWalletPass[0], strWalletPass.capacity());
-
-        // obtain current wallet encrypt/decrypt key, from passphrase
-        // Note that the passphrase is not mlock()d during this entry and could potentially
-        // be obtained from disk long after bitcoin has run.
-        strWalletPass = wxGetPasswordFromUser(_("Enter the current passphrase to the wallet."),
-                                              _("Passphrase")).ToStdString();
-
-        if (!strWalletPass.size())
-        {
-            fill(strWalletPass.begin(), strWalletPass.end(), '\0');
-            munlock(&strWalletPass[0], strWalletPass.capacity());
-            wxMessageBox(_("Please supply the current wallet decryption passphrase."), "Bitcoin");
-            return false;
-        }
-
-        if (!pwalletMain->Unlock(strWalletPass))
-        {
-            fill(strWalletPass.begin(), strWalletPass.end(), '\0');
-            munlock(&strWalletPass[0], strWalletPass.capacity());
-            wxMessageBox(_("The passphrase entered for the wallet decryption was incorrect."), "Bitcoin");
-            return false;
-        }
-        fill(strWalletPass.begin(), strWalletPass.end(), '\0');
-        munlock(&strWalletPass[0], strWalletPass.capacity());
-    }
-    return true;
-}
-
-
-
-
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// CMainFrame
-//
-
-CMainFrame::CMainFrame(wxWindow* parent) : CMainFrameBase(parent)
-{
-    Connect(wxEVT_UITHREADCALL, wxCommandEventHandler(CMainFrame::OnUIThreadCall), NULL, this);
-
-    // Set initially selected page
-    wxNotebookEvent event;
-    event.SetSelection(0);
-    OnNotebookPageChanged(event);
-    m_notebook->ChangeSelection(0);
-
-    // Init
-    fRefreshListCtrl = false;
-    fRefreshListCtrlRunning = false;
-    fOnSetFocusAddress = false;
-    fRefresh = false;
-    m_choiceFilter->SetSelection(0);
-    double dResize = nScaleX;
-#ifdef __WXMSW__
-    SetIcon(wxICON(bitcoin));
-    SetSize(dResize * GetSize().GetWidth(), nScaleY * GetSize().GetHeight());
-#else
-    SetIcon(bitcoin80_xpm);
-    SetBackgroundColour(m_toolBar->GetBackgroundColour());
-    wxFont fontTmp = m_staticText41->GetFont();
-    fontTmp.SetFamily(wxFONTFAMILY_TELETYPE);
-    m_staticTextBalance->SetFont(fontTmp);
-    m_staticTextBalance->SetSize(140, 17);
-    // resize to fit ubuntu's huge default font
-    dResize = 1.22;
-    SetSize(dResize * GetSize().GetWidth(), 1.15 * GetSize().GetHeight());
-#endif
-    m_staticTextBalance->SetLabel(FormatMoney(pwalletMain->GetBalance()) + "  ");
-    m_listCtrl->SetFocus();
-    ptaskbaricon = new CMyTaskBarIcon();
-#ifdef __WXMAC_OSX__
-    // Mac automatically moves wxID_EXIT, wxID_PREFERENCES and wxID_ABOUT
-    // to their standard places, leaving these menus empty.
-    GetMenuBar()->Remove(2); // remove Help menu
-    GetMenuBar()->Remove(0); // remove File menu
-#endif
-
-    // Init column headers
-    int nDateWidth = DateTimeStr(1229413914).size() * 6 + 8;
-    if (!strstr(DateTimeStr(1229413914).c_str(), "2008"))
-        nDateWidth += 12;
-#ifdef __WXMAC_OSX__
-    nDateWidth += 5;
-    dResize -= 0.01;
-#endif
-    wxListCtrl* pplistCtrl[] = {m_listCtrlAll, m_listCtrlSentReceived, m_listCtrlSent, m_listCtrlReceived};
-    BOOST_FOREACH(wxListCtrl* p, pplistCtrl)
-    {
-        p->InsertColumn(0, "",               wxLIST_FORMAT_LEFT,  dResize * 0);
-        p->InsertColumn(1, "",               wxLIST_FORMAT_LEFT,  dResize * 0);
-        p->InsertColumn(2, _("Status"),      wxLIST_FORMAT_LEFT,  dResize * 112);
-        p->InsertColumn(3, _("Date"),        wxLIST_FORMAT_LEFT,  dResize * nDateWidth);
-        p->InsertColumn(4, _("Description"), wxLIST_FORMAT_LEFT,  dResize * 409 - nDateWidth);
-        p->InsertColumn(5, _("Debit"),       wxLIST_FORMAT_RIGHT, dResize * 79);
-        p->InsertColumn(6, _("Credit"),      wxLIST_FORMAT_RIGHT, dResize * 79);
-    }
-
-    // Init status bar
-    int pnWidths[3] = { -100, 88, 300 };
-#ifndef __WXMSW__
-    pnWidths[1] = pnWidths[1] * 1.1 * dResize;
-    pnWidths[2] = pnWidths[2] * 1.1 * dResize;
-#endif
-    m_statusBar->SetFieldsCount(3, pnWidths);
-
-    // Fill your address text box
-    vector<unsigned char> vchPubKey;
-    if (CWalletDB(pwalletMain->strWalletFile,"r").ReadDefaultKey(vchPubKey))
-        m_textCtrlAddress->SetValue(CBitcoinAddress(vchPubKey).ToString());
-
-    if (pwalletMain->IsCrypted())
-        m_menuOptions->Remove(m_menuOptionsEncryptWallet);
-    else
-        m_menuOptions->Remove(m_menuOptionsChangeWalletPassphrase);
-
-    // Fill listctrl with wallet transactions
-    RefreshListCtrl();
-}
-
-CMainFrame::~CMainFrame()
-{
-    pframeMain = NULL;
-    delete ptaskbaricon;
-    ptaskbaricon = NULL;
-}
-
-void CMainFrame::OnNotebookPageChanged(wxNotebookEvent& event)
-{
-    event.Skip();
-    nPage = event.GetSelection();
-    if (nPage == ALL)
-    {
-        m_listCtrl = m_listCtrlAll;
-        fShowGenerated = true;
-        fShowSent = true;
-        fShowReceived = true;
-    }
-    else if (nPage == SENTRECEIVED)
-    {
-        m_listCtrl = m_listCtrlSentReceived;
-        fShowGenerated = false;
-        fShowSent = true;
-        fShowReceived = true;
-    }
-    else if (nPage == SENT)
-    {
-        m_listCtrl = m_listCtrlSent;
-        fShowGenerated = false;
-        fShowSent = true;
-        fShowReceived = false;
-    }
-    else if (nPage == RECEIVED)
-    {
-        m_listCtrl = m_listCtrlReceived;
-        fShowGenerated = false;
-        fShowSent = false;
-        fShowReceived = true;
-    }
-    RefreshListCtrl();
-    m_listCtrl->SetFocus();
-}
-
-void CMainFrame::OnClose(wxCloseEvent& event)
-{
-    if (fMinimizeOnClose && event.CanVeto() && !IsIconized())
-    {
-        // Divert close to minimize
-        event.Veto();
-        fClosedToTray = true;
-        Iconize(true);
-    }
-    else
-    {
-        Destroy();
-        CreateThread(Shutdown, NULL);
-    }
-}
-
-void CMainFrame::OnIconize(wxIconizeEvent& event)
-{
-    event.Skip();
-    // Hide the task bar button when minimized.
-    // Event is sent when the frame is minimized or restored.
-    // wxWidgets 2.8.9 doesn't have IsIconized() so there's no way
-    // to get rid of the deprecated warning.  Just ignore it.
-    if (!event.Iconized())
-        fClosedToTray = false;
-#if defined(__WXGTK__) || defined(__WXMAC_OSX__)
-    if (GetBoolArg("-minimizetotray")) {
-#endif
-    // The tray icon sometimes disappears on ubuntu karmic
-    // Hiding the taskbar button doesn't work cleanly on ubuntu lucid
-    // Reports of CPU peg on 64-bit linux
-    if (fMinimizeToTray && event.Iconized())
-        fClosedToTray = true;
-    Show(!fClosedToTray);
-    ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
-#if defined(__WXGTK__) || defined(__WXMAC_OSX__)
-    }
-#endif
-}
-
-void CMainFrame::OnMouseEvents(wxMouseEvent& event)
-{
-    event.Skip();
-    RandAddSeed();
-    RAND_add(&event.m_x, sizeof(event.m_x), 0.25);
-    RAND_add(&event.m_y, sizeof(event.m_y), 0.25);
-}
-
-void CMainFrame::OnListColBeginDrag(wxListEvent& event)
-{
-    // Hidden columns not resizeable
-    if (event.GetColumn() <= 1 && !fDebug)
-        event.Veto();
-    else
-        event.Skip();
-}
-
-int CMainFrame::GetSortIndex(const string& strSort)
-{
-#ifdef __WXMSW__
-    return 0;
-#else
-    // The wx generic listctrl implementation used on GTK doesn't sort,
-    // so we have to do it ourselves.  Remember, we sort in reverse order.
-    // In the wx generic implementation, they store the list of items
-    // in a vector, so indexed lookups are fast, but inserts are slower
-    // the closer they are to the top.
-    int low = 0;
-    int high = m_listCtrl->GetItemCount();
-    while (low < high)
-    {
-        int mid = low + ((high - low) / 2);
-        if (strSort.compare(m_listCtrl->GetItemText(mid).c_str()) >= 0)
-            high = mid;
-        else
-            low = mid + 1;
-    }
-    return low;
-#endif
-}
-
-void CMainFrame::InsertLine(bool fNew, int nIndex, uint256 hashKey, string strSort, const wxColour& colour, const wxString& str2, const wxString& str3, const wxString& str4, const wxString& str5, const wxString& str6)
-{
-    strSort = " " + strSort;       // leading space to workaround wx2.9.0 ubuntu 9.10 bug
-    long nData = *(long*)&hashKey; //  where first char of hidden column is displayed
-
-    // Find item
-    if (!fNew && nIndex == -1)
-    {
-        string strHash = " " + hashKey.ToString();
-        while ((nIndex = m_listCtrl->FindItem(nIndex, nData)) != -1)
-            if (GetItemText(m_listCtrl, nIndex, 1) == strHash)
-                break;
-    }
-
-    // fNew is for blind insert, only use if you're sure it's new
-    if (fNew || nIndex == -1)
-    {
-        nIndex = m_listCtrl->InsertItem(GetSortIndex(strSort), strSort);
-    }
-    else
-    {
-        // If sort key changed, must delete and reinsert to make it relocate
-        if (GetItemText(m_listCtrl, nIndex, 0) != strSort)
-        {
-            m_listCtrl->DeleteItem(nIndex);
-            nIndex = m_listCtrl->InsertItem(GetSortIndex(strSort), strSort);
-        }
-    }
-
-    m_listCtrl->SetItem(nIndex, 1, " " + hashKey.ToString());
-    m_listCtrl->SetItem(nIndex, 2, str2);
-    m_listCtrl->SetItem(nIndex, 3, str3);
-    m_listCtrl->SetItem(nIndex, 4, str4);
-    m_listCtrl->SetItem(nIndex, 5, str5);
-    m_listCtrl->SetItem(nIndex, 6, str6);
-    m_listCtrl->SetItemData(nIndex, nData);
-    SetItemTextColour(m_listCtrl, nIndex, colour);
-}
-
-bool CMainFrame::DeleteLine(uint256 hashKey)
-{
-    long nData = *(long*)&hashKey;
-
-    // Find item
-    int nIndex = -1;
-    string strHash = " " + hashKey.ToString();
-    while ((nIndex = m_listCtrl->FindItem(nIndex, nData)) != -1)
-        if (GetItemText(m_listCtrl, nIndex, 1) == strHash)
-            break;
-
-    if (nIndex != -1)
-        m_listCtrl->DeleteItem(nIndex);
-
-    return nIndex != -1;
-}
-
-string FormatTxStatus(const CWalletTx& wtx)
-{
-    // Status
-    if (!wtx.IsFinal())
-    {
-        if (wtx.nLockTime < LOCKTIME_THRESHOLD)
-            return strprintf(_("Open for %d blocks"), nBestHeight - wtx.nLockTime);
-        else
-            return strprintf(_("Open until %s"), DateTimeStr(wtx.nLockTime).c_str());
-    }
-    else
-    {
-        int nDepth = wtx.GetDepthInMainChain();
-        if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0)
-            return strprintf(_("%d/offline?"), nDepth);
-        else if (nDepth < 6)
-            return strprintf(_("%d/unconfirmed"), nDepth);
-        else
-            return strprintf(_("%d confirmations"), nDepth);
-    }
-}
-
-string SingleLine(const string& strIn)
-{
-    string strOut;
-    bool fOneSpace = false;
-    BOOST_FOREACH(unsigned char c, strIn)
-    {
-        if (isspace(c))
-        {
-            fOneSpace = true;
-        }
-        else if (c > ' ')
-        {
-            if (fOneSpace && !strOut.empty())
-                strOut += ' ';
-            strOut += c;
-            fOneSpace = false;
-        }
-    }
-    return strOut;
-}
-
-bool CMainFrame::InsertTransaction(const CWalletTx& wtx, bool fNew, int nIndex)
-{
-    int64 nTime = wtx.nTimeDisplayed = wtx.GetTxTime();
-    int64 nCredit = wtx.GetCredit(true);
-    int64 nDebit = wtx.GetDebit();
-    int64 nNet = nCredit - nDebit;
-    uint256 hash = wtx.GetHash();
-    string strStatus = FormatTxStatus(wtx);
-    bool fConfirmed = wtx.fConfirmedDisplayed = wtx.IsConfirmed();
-    wxColour colour = (fConfirmed ? wxColour(0,0,0) : wxColour(128,128,128));
-    map<string, string> mapValue = wtx.mapValue;
-    wtx.nLinesDisplayed = 1;
-    nListViewUpdated++;
-
-    // Filter
-    if (wtx.IsCoinBase())
-    {
-        // Don't show generated coin until confirmed by at least one block after it
-        // so we don't get the user's hopes up until it looks like it's probably accepted.
-        //
-        // It is not an error when generated blocks are not accepted.  By design,
-        // some percentage of blocks, like 10% or more, will end up not accepted.
-        // This is the normal mechanism by which the network copes with latency.
-        //
-        // We display regular transactions right away before any confirmation
-        // because they can always get into some block eventually.  Generated coins
-        // are special because if their block is not accepted, they are not valid.
-        //
-        if (wtx.GetDepthInMainChain() < 2)
-        {
-            wtx.nLinesDisplayed = 0;
-            return false;
-        }
-
-        if (!fShowGenerated)
-            return false;
-    }
-
-    // Find the block the tx is in
-    CBlockIndex* pindex = NULL;
-    map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(wtx.hashBlock);
-    if (mi != mapBlockIndex.end())
-        pindex = (*mi).second;
-
-    // Sort order, unrecorded transactions sort to the top
-    string strSort = strprintf("%010d-%01d-%010u",
-        (pindex ? pindex->nHeight : INT_MAX),
-        (wtx.IsCoinBase() ? 1 : 0),
-        wtx.nTimeReceived);
-
-    // Insert line
-    if (nNet > 0 || wtx.IsCoinBase())
-    {
-        //
-        // Credit
-        //
-        string strDescription;
-        if (wtx.IsCoinBase())
-        {
-            // Generated
-            strDescription = _("Generated");
-            if (nCredit == 0)
-            {
-                int64 nUnmatured = 0;
-                BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-                    nUnmatured += pwalletMain->GetCredit(txout);
-                if (wtx.IsInMainChain())
-                {
-                    strDescription = strprintf(_("Generated (%s matures in %d more blocks)"), FormatMoney(nUnmatured).c_str(), wtx.GetBlocksToMaturity());
-
-                    // Check if the block was requested by anyone
-                    if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0)
-                        strDescription = _("Generated - Warning: This block was not received by any other nodes and will probably not be accepted!");
-                }
-                else
-                {
-                    strDescription = _("Generated (not accepted)");
-                }
-            }
-        }
-        else if (!mapValue["from"].empty() || !mapValue["message"].empty())
-        {
-            // Received by IP connection
-            if (!fShowReceived)
-                return false;
-            if (!mapValue["from"].empty())
-                strDescription += _("From: ") + mapValue["from"];
-            if (!mapValue["message"].empty())
-            {
-                if (!strDescription.empty())
-                    strDescription += " - ";
-                strDescription += mapValue["message"];
-            }
-        }
-        else
-        {
-            // Received by Bitcoin Address
-            if (!fShowReceived)
-                return false;
-            BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-            {
-                if (pwalletMain->IsMine(txout))
-                {
-                    CBitcoinAddress address;
-                    if (ExtractAddress(txout.scriptPubKey, pwalletMain, address))
-                    {
-                        CRITICAL_BLOCK(pwalletMain->cs_wallet)
-                        {
-                            //strDescription += _("Received payment to ");
-                            //strDescription += _("Received with address ");
-                            strDescription += _("Received with: ");
-                            map<CBitcoinAddress, string>::iterator mi = pwalletMain->mapAddressBook.find(address);
-                            if (mi != pwalletMain->mapAddressBook.end() && !(*mi).second.empty())
-                            {
-                                string strLabel = (*mi).second;
-                                strDescription += address.ToString().substr(0,12) + "... ";
-                                strDescription += "(" + strLabel + ")";
-                            }
-                            else
-                                strDescription += address.ToString();
-                        }
-                    }
-                    break;
-                }
-            }
-        }
-
-        string strCredit = FormatMoney(nNet, true);
-        if (!fConfirmed)
-            strCredit = "[" + strCredit + "]";
-
-        InsertLine(fNew, nIndex, hash, strSort, colour,
-                   strStatus,
-                   nTime ? DateTimeStr(nTime) : "",
-                   SingleLine(strDescription),
-                   "",
-                   strCredit);
-    }
-    else
-    {
-        bool fAllFromMe = true;
-        BOOST_FOREACH(const CTxIn& txin, wtx.vin)
-            fAllFromMe = fAllFromMe && pwalletMain->IsMine(txin);
-
-        bool fAllToMe = true;
-        BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-            fAllToMe = fAllToMe && pwalletMain->IsMine(txout);
-
-        if (fAllFromMe && fAllToMe)
-        {
-            // Payment to self
-            int64 nChange = wtx.GetChange();
-            InsertLine(fNew, nIndex, hash, strSort, colour,
-                       strStatus,
-                       nTime ? DateTimeStr(nTime) : "",
-                       _("Payment to yourself"),
-                       FormatMoney(-(nDebit - nChange), true),
-                       FormatMoney(nCredit - nChange, true));
-        }
-        else if (fAllFromMe)
-        {
-            //
-            // Debit
-            //
-            if (!fShowSent)
-                return false;
-
-            int64 nTxFee = nDebit - wtx.GetValueOut();
-            wtx.nLinesDisplayed = 0;
-            for (int nOut = 0; nOut < wtx.vout.size(); nOut++)
-            {
-                const CTxOut& txout = wtx.vout[nOut];
-                if (pwalletMain->IsMine(txout))
-                    continue;
-
-                CBitcoinAddress address;
-                string strAddress;
-                if (!mapValue["to"].empty())
-                {
-                    // Sent to IP
-                    strAddress = mapValue["to"];
-                }
-                else
-                {
-                    // Sent to Bitcoin Address
-                    if (ExtractAddress(txout.scriptPubKey, NULL, address))
-                        strAddress = address.ToString();
-                }
-
-                string strDescription = _("To: ");
-                CRITICAL_BLOCK(pwalletMain->cs_wallet)
-                    if (pwalletMain->mapAddressBook.count(address) && !pwalletMain->mapAddressBook[address].empty())
-                        strDescription += pwalletMain->mapAddressBook[address] + " ";
-                strDescription += strAddress;
-                if (!mapValue["message"].empty())
-                {
-                    if (!strDescription.empty())
-                        strDescription += " - ";
-                    strDescription += mapValue["message"];
-                }
-                else if (!mapValue["comment"].empty())
-                {
-                    if (!strDescription.empty())
-                        strDescription += " - ";
-                    strDescription += mapValue["comment"];
-                }
-
-                int64 nValue = txout.nValue;
-                if (nTxFee > 0)
-                {
-                    nValue += nTxFee;
-                    nTxFee = 0;
-                }
-
-                InsertLine(fNew, nIndex, hash, strprintf("%s-%d", strSort.c_str(), nOut), colour,
-                           strStatus,
-                           nTime ? DateTimeStr(nTime) : "",
-                           SingleLine(strDescription),
-                           FormatMoney(-nValue, true),
-                           "");
-                nIndex = -1;
-                wtx.nLinesDisplayed++;
-            }
-        }
-        else
-        {
-            //
-            // Mixed debit transaction, can't break down payees
-            //
-            bool fAllMine = true;
-            BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-                fAllMine = fAllMine && pwalletMain->IsMine(txout);
-            BOOST_FOREACH(const CTxIn& txin, wtx.vin)
-                fAllMine = fAllMine && pwalletMain->IsMine(txin);
-
-            InsertLine(fNew, nIndex, hash, strSort, colour,
-                       strStatus,
-                       nTime ? DateTimeStr(nTime) : "",
-                       "",
-                       FormatMoney(nNet, true),
-                       "");
-        }
-    }
-
-    return true;
-}
-
-void CMainFrame::RefreshListCtrl()
-{
-    fRefreshListCtrl = true;
-    ::wxWakeUpIdle();
-}
-
-void CMainFrame::OnIdle(wxIdleEvent& event)
-{
-    if (fRefreshListCtrl)
-    {
-        // Collect list of wallet transactions and sort newest first
-        bool fEntered = false;
-        vector<pair<unsigned int, uint256> > vSorted;
-        TRY_CRITICAL_BLOCK(pwalletMain->cs_wallet)
-        {
-            printf("RefreshListCtrl starting\n");
-            fEntered = true;
-            fRefreshListCtrl = false;
-            pwalletMain->vWalletUpdated.clear();
-
-            // Do the newest transactions first
-            vSorted.reserve(pwalletMain->mapWallet.size());
-            for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
-            {
-                const CWalletTx& wtx = (*it).second;
-                unsigned int nTime = UINT_MAX - wtx.GetTxTime();
-                vSorted.push_back(make_pair(nTime, (*it).first));
-            }
-            m_listCtrl->DeleteAllItems();
-        }
-        if (!fEntered)
-            return;
-
-        sort(vSorted.begin(), vSorted.end());
-
-        // Fill list control
-        for (int i = 0; i < vSorted.size();)
-        {
-            if (fShutdown)
-                return;
-            bool fEntered = false;
-            TRY_CRITICAL_BLOCK(pwalletMain->cs_wallet)
-            {
-                fEntered = true;
-                uint256& hash = vSorted[i++].second;
-                map<uint256, CWalletTx>::iterator mi = pwalletMain->mapWallet.find(hash);
-                if (mi != pwalletMain->mapWallet.end())
-                    InsertTransaction((*mi).second, true);
-            }
-            if (!fEntered || i == 100 || i % 500 == 0)
-                wxYield();
-        }
-
-        printf("RefreshListCtrl done\n");
-
-        // Update transaction total display
-        MainFrameRepaint();
-    }
-    else
-    {
-        // Check for time updates
-        static int64 nLastTime;
-        if (GetTime() > nLastTime + 30)
-        {
-            TRY_CRITICAL_BLOCK(pwalletMain->cs_wallet)
-            {
-                nLastTime = GetTime();
-                for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
-                {
-                    CWalletTx& wtx = (*it).second;
-                    if (wtx.nTimeDisplayed && wtx.nTimeDisplayed != wtx.GetTxTime())
-                        InsertTransaction(wtx, false);
-                }
-            }
-        }
-    }
-}
-
-void CMainFrame::RefreshStatusColumn()
-{
-    static int nLastTop;
-    static CBlockIndex* pindexLastBest;
-    static unsigned int nLastRefreshed;
-
-    int nTop = max((int)m_listCtrl->GetTopItem(), 0);
-    if (nTop == nLastTop && pindexLastBest == pindexBest)
-        return;
-
-    TRY_CRITICAL_BLOCK(pwalletMain->cs_wallet)
-    {
-        int nStart = nTop;
-        int nEnd = min(nStart + 100, m_listCtrl->GetItemCount());
-
-        if (pindexLastBest == pindexBest && nLastRefreshed == nListViewUpdated)
-        {
-            // If no updates, only need to do the part that moved onto the screen
-            if (nStart >= nLastTop && nStart < nLastTop + 100)
-                nStart = nLastTop + 100;
-            if (nEnd >= nLastTop && nEnd < nLastTop + 100)
-                nEnd = nLastTop;
-        }
-        nLastTop = nTop;
-        pindexLastBest = pindexBest;
-        nLastRefreshed = nListViewUpdated;
-
-        for (int nIndex = nStart; nIndex < min(nEnd, m_listCtrl->GetItemCount()); nIndex++)
-        {
-            uint256 hash((string)GetItemText(m_listCtrl, nIndex, 1));
-            map<uint256, CWalletTx>::iterator mi = pwalletMain->mapWallet.find(hash);
-            if (mi == pwalletMain->mapWallet.end())
-            {
-                printf("CMainFrame::RefreshStatusColumn() : tx not found in mapWallet\n");
-                continue;
-            }
-            CWalletTx& wtx = (*mi).second;
-            if (wtx.IsCoinBase() ||
-                wtx.GetTxTime() != wtx.nTimeDisplayed ||
-                wtx.IsConfirmed() != wtx.fConfirmedDisplayed)
-            {
-                if (!InsertTransaction(wtx, false, nIndex))
-                    m_listCtrl->DeleteItem(nIndex--);
-            }
-            else
-            {
-                m_listCtrl->SetItem(nIndex, 2, FormatTxStatus(wtx));
-            }
-        }
-    }
-}
-
-void CMainFrame::OnPaint(wxPaintEvent& event)
-{
-    event.Skip();
-    if (fRefresh)
-    {
-        fRefresh = false;
-        Refresh();
-    }
-}
-
-
-unsigned int nNeedRepaint = 0;
-unsigned int nLastRepaint = 0;
-int64 nLastRepaintTime = 0;
-int64 nRepaintInterval = 500;
-
-void ThreadDelayedRepaint(void* parg)
-{
-    while (!fShutdown)
-    {
-        if (nLastRepaint != nNeedRepaint && GetTimeMillis() - nLastRepaintTime >= nRepaintInterval)
-        {
-            nLastRepaint = nNeedRepaint;
-            if (pframeMain)
-            {
-                printf("DelayedRepaint\n");
-                wxPaintEvent event;
-                pframeMain->fRefresh = true;
-                pframeMain->GetEventHandler()->AddPendingEvent(event);
-            }
-        }
-        Sleep(nRepaintInterval);
-    }
-}
-
-void MainFrameRepaint()
-{
-    // This is called by network code that shouldn't access pframeMain
-    // directly because it could still be running after the UI is closed.
-    if (pframeMain)
-    {
-        // Don't repaint too often
-        static int64 nLastRepaintRequest;
-        if (GetTimeMillis() - nLastRepaintRequest < 100)
-        {
-            nNeedRepaint++;
-            return;
-        }
-        nLastRepaintRequest = GetTimeMillis();
-
-        printf("MainFrameRepaint\n");
-        wxPaintEvent event;
-        pframeMain->fRefresh = true;
-        pframeMain->GetEventHandler()->AddPendingEvent(event);
-    }
-}
-
-void CMainFrame::OnPaintListCtrl(wxPaintEvent& event)
-{
-    // Skip lets the listctrl do the paint, we're just hooking the message
-    event.Skip();
-
-    if (ptaskbaricon)
-        ptaskbaricon->UpdateTooltip();
-
-    //
-    // Slower stuff
-    //
-    static int nTransactionCount;
-    bool fPaintedBalance = false;
-    if (GetTimeMillis() - nLastRepaintTime >= nRepaintInterval)
-    {
-        nLastRepaint = nNeedRepaint;
-        nLastRepaintTime = GetTimeMillis();
-
-        // Update listctrl contents
-        if (!pwalletMain->vWalletUpdated.empty())
-        {
-            TRY_CRITICAL_BLOCK(pwalletMain->cs_wallet)
-            {
-                string strTop;
-                if (m_listCtrl->GetItemCount())
-                    strTop = (string)m_listCtrl->GetItemText(0);
-                BOOST_FOREACH(uint256 hash, pwalletMain->vWalletUpdated)
-                {
-                    map<uint256, CWalletTx>::iterator mi = pwalletMain->mapWallet.find(hash);
-                    if (mi != pwalletMain->mapWallet.end())
-                        InsertTransaction((*mi).second, false);
-                }
-                pwalletMain->vWalletUpdated.clear();
-                if (m_listCtrl->GetItemCount() && strTop != (string)m_listCtrl->GetItemText(0))
-                    m_listCtrl->ScrollList(0, INT_MIN/2);
-            }
-        }
-
-        // Balance total
-        TRY_CRITICAL_BLOCK(pwalletMain->cs_wallet)
-        {
-            fPaintedBalance = true;
-            m_staticTextBalance->SetLabel(FormatMoney(pwalletMain->GetBalance()) + "  ");
-
-            // Count hidden and multi-line transactions
-            nTransactionCount = 0;
-            for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
-            {
-                CWalletTx& wtx = (*it).second;
-                nTransactionCount += wtx.nLinesDisplayed;
-            }
-        }
-    }
-    if (!pwalletMain->vWalletUpdated.empty() || !fPaintedBalance)
-        nNeedRepaint++;
-
-    // Update status column of visible items only
-    RefreshStatusColumn();
-
-    // Update status bar
-    static string strPrevWarning;
-    string strWarning = GetWarnings("statusbar");
-    if (strWarning != "")
-        m_statusBar->SetStatusText(string("    ") + _(strWarning), 0);
-    else if (strPrevWarning != "")
-        m_statusBar->SetStatusText("", 0);
-    strPrevWarning = strWarning;
-
-    string strGen = "";
-    if (fGenerateBitcoins)
-        strGen = _("    Generating");
-    if (fGenerateBitcoins && vNodes.empty())
-        strGen = _("(not connected)");
-    m_statusBar->SetStatusText(strGen, 1);
-
-    string strStatus = strprintf(_("     %d connections     %d blocks     %d transactions"), vNodes.size(), nBestHeight, nTransactionCount);
-    m_statusBar->SetStatusText(strStatus, 2);
-
-    // Update receiving address
-    string strDefaultAddress = CBitcoinAddress(pwalletMain->vchDefaultKey).ToString();
-    if (m_textCtrlAddress->GetValue() != strDefaultAddress)
-        m_textCtrlAddress->SetValue(strDefaultAddress);
-}
-
-
-void UIThreadCall(boost::function0<void> fn)
-{
-    // Call this with a function object created with bind.
-    // bind needs all parameters to match the function's expected types
-    // and all default parameters specified.  Some examples:
-    //  UIThreadCall(bind(wxBell));
-    //  UIThreadCall(bind(wxMessageBox, wxT("Message"), wxT("Title"), wxOK, (wxWindow*)NULL, -1, -1));
-    //  UIThreadCall(bind(&CMainFrame::OnMenuHelpAbout, pframeMain, event));
-    if (pframeMain)
-    {
-        wxCommandEvent event(wxEVT_UITHREADCALL);
-        event.SetClientData((void*)new boost::function0<void>(fn));
-        pframeMain->GetEventHandler()->AddPendingEvent(event);
-    }
-}
-
-void CMainFrame::OnUIThreadCall(wxCommandEvent& event)
-{
-    boost::function0<void>* pfn = (boost::function0<void>*)event.GetClientData();
-    (*pfn)();
-    delete pfn;
-}
-
-void CMainFrame::OnMenuFileExit(wxCommandEvent& event)
-{
-    // File->Exit
-    Close(true);
-}
-
-void CMainFrame::OnUpdateUIOptionsGenerate(wxUpdateUIEvent& event)
-{
-    event.Check(fGenerateBitcoins);
-}
-
-void CMainFrame::OnMenuOptionsChangeYourAddress(wxCommandEvent& event)
-{
-    // Options->Your Receiving Addresses
-    CAddressBookDialog dialog(this, "", CAddressBookDialog::RECEIVING, false);
-    if (!dialog.ShowModal())
-        return;
-}
-
-void CMainFrame::OnMenuOptionsEncryptWallet(wxCommandEvent& event)
-{
-    // Options->Encrypt Wallet
-    if (pwalletMain->IsCrypted())
-    {
-        wxMessageBox(_("Wallet already encrypted."), "Bitcoin", wxOK | wxICON_ERROR);
-        return;
-    }
-
-    string strWalletPass;
-    strWalletPass.reserve(100);
-    mlock(&strWalletPass[0], strWalletPass.capacity());
-
-    // obtain current wallet encrypt/decrypt key, from passphrase
-    // Note that the passphrase is not mlock()d during this entry and could potentially
-    // be obtained from disk long after bitcoin has run.
-    strWalletPass = wxGetPasswordFromUser(_("Enter the new passphrase to the wallet.\nPlease use a passphrase of 10 or more random characters, or eight or more words."),
-                                          _("Passphrase")).ToStdString();
-
-    if (!strWalletPass.size())
-    {
-        fill(strWalletPass.begin(), strWalletPass.end(), '\0');
-        munlock(&strWalletPass[0], strWalletPass.capacity());
-        wxMessageBox(_("Error: The supplied passphrase was too short."), "Bitcoin", wxOK | wxICON_ERROR);
-        return;
-    }
-
-    if(wxMessageBox(_("WARNING: If you encrypt your wallet and lose your passphrase, you will LOSE ALL OF YOUR BITCOINS!\nAre you sure you wish to encrypt your wallet?"), "Bitcoin", wxYES_NO) != wxYES)
-        return;
-
-    string strWalletPassTest;
-    strWalletPassTest.reserve(100);
-    mlock(&strWalletPassTest[0], strWalletPassTest.capacity());
-    strWalletPassTest = wxGetPasswordFromUser(_("Please re-enter your new wallet passphrase."),
-                                              _("Passphrase")).ToStdString();
-
-    if (strWalletPassTest != strWalletPass)
-    {
-        fill(strWalletPass.begin(), strWalletPass.end(), '\0');
-        fill(strWalletPassTest.begin(), strWalletPassTest.end(), '\0');
-        munlock(&strWalletPass[0], strWalletPass.capacity());
-        munlock(&strWalletPassTest[0], strWalletPassTest.capacity());
-        wxMessageBox(_("Error: the supplied passphrases didn't match."), "Bitcoin", wxOK | wxICON_ERROR);
-        return;
-    }
-
-    if (!pwalletMain->EncryptWallet(strWalletPass))
-    {
-        fill(strWalletPass.begin(), strWalletPass.end(), '\0');
-        fill(strWalletPassTest.begin(), strWalletPassTest.end(), '\0');
-        munlock(&strWalletPass[0], strWalletPass.capacity());
-        munlock(&strWalletPassTest[0], strWalletPassTest.capacity());
-        wxMessageBox(_("Wallet encryption failed."), "Bitcoin", wxOK | wxICON_ERROR);
-        return;
-    }
-    fill(strWalletPass.begin(), strWalletPass.end(), '\0');
-    fill(strWalletPassTest.begin(), strWalletPassTest.end(), '\0');
-    munlock(&strWalletPass[0], strWalletPass.capacity());
-    munlock(&strWalletPassTest[0], strWalletPassTest.capacity());
-    wxMessageBox(_("Wallet Encrypted.\nRemember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer."), "Bitcoin");
-
-    m_menuOptions->Remove(m_menuOptionsEncryptWallet);
-    m_menuOptions->Insert(m_menuOptions->GetMenuItemCount() - 1, m_menuOptionsChangeWalletPassphrase);
-}
-
-void CMainFrame::OnMenuOptionsChangeWalletPassphrase(wxCommandEvent& event)
-{
-    // Options->Change Wallet Encryption Passphrase
-    if (!pwalletMain->IsCrypted())
-    {
-        wxMessageBox(_("Wallet is unencrypted, please encrypt it first."), "Bitcoin", wxOK | wxICON_ERROR);
-        return;
-    }
-
-    string strOldWalletPass;
-    strOldWalletPass.reserve(100);
-    mlock(&strOldWalletPass[0], strOldWalletPass.capacity());
-
-    // obtain current wallet encrypt/decrypt key, from passphrase
-    // Note that the passphrase is not mlock()d during this entry and could potentially
-    // be obtained from disk long after bitcoin has run.
-    strOldWalletPass = wxGetPasswordFromUser(_("Enter the current passphrase to the wallet."),
-                                             _("Passphrase")).ToStdString();
-
-    bool fWasLocked = pwalletMain->IsLocked();
-    pwalletMain->Lock();
-
-    if (!strOldWalletPass.size() || !pwalletMain->Unlock(strOldWalletPass))
-    {
-        fill(strOldWalletPass.begin(), strOldWalletPass.end(), '\0');
-        munlock(&strOldWalletPass[0], strOldWalletPass.capacity());
-        wxMessageBox(_("The passphrase entered for the wallet decryption was incorrect."), "Bitcoin", wxOK | wxICON_ERROR);
-        return;
-    }
-
-    if (fWasLocked)
-        pwalletMain->Lock();
-
-    string strNewWalletPass;
-    strNewWalletPass.reserve(100);
-    mlock(&strNewWalletPass[0], strNewWalletPass.capacity());
-
-    // obtain new wallet encrypt/decrypt key, from passphrase
-    // Note that the passphrase is not mlock()d during this entry and could potentially
-    // be obtained from disk long after bitcoin has run.
-    strNewWalletPass = wxGetPasswordFromUser(_("Enter the new passphrase for the wallet."),
-                                             _("Passphrase")).ToStdString();
-
-    if (!strNewWalletPass.size())
-    {
-        fill(strOldWalletPass.begin(), strOldWalletPass.end(), '\0');
-        fill(strNewWalletPass.begin(), strNewWalletPass.end(), '\0');
-        munlock(&strOldWalletPass[0], strOldWalletPass.capacity());
-        munlock(&strNewWalletPass[0], strNewWalletPass.capacity());
-        wxMessageBox(_("Error: The supplied passphrase was too short."), "Bitcoin", wxOK | wxICON_ERROR);
-        return;
-    }
-
-    string strNewWalletPassTest;
-    strNewWalletPassTest.reserve(100);
-    mlock(&strNewWalletPassTest[0], strNewWalletPassTest.capacity());
-
-    // obtain new wallet encrypt/decrypt key, from passphrase
-    // Note that the passphrase is not mlock()d during this entry and could potentially
-    // be obtained from disk long after bitcoin has run.
-    strNewWalletPassTest = wxGetPasswordFromUser(_("Re-enter the new passphrase for the wallet."),
-                                                 _("Passphrase")).ToStdString();
-
-    if (strNewWalletPassTest != strNewWalletPass)
-    {
-        fill(strOldWalletPass.begin(), strOldWalletPass.end(), '\0');
-        fill(strNewWalletPass.begin(), strNewWalletPass.end(), '\0');
-        fill(strNewWalletPassTest.begin(), strNewWalletPassTest.end(), '\0');
-        munlock(&strOldWalletPass[0], strOldWalletPass.capacity());
-        munlock(&strNewWalletPass[0], strNewWalletPass.capacity());
-        munlock(&strNewWalletPassTest[0], strNewWalletPassTest.capacity());
-        wxMessageBox(_("Error: the supplied passphrases didn't match."), "Bitcoin", wxOK | wxICON_ERROR);
-        return;
-    }
-
-    if (!pwalletMain->ChangeWalletPassphrase(strOldWalletPass, strNewWalletPass))
-    {
-        fill(strOldWalletPass.begin(), strOldWalletPass.end(), '\0');
-        fill(strNewWalletPass.begin(), strNewWalletPass.end(), '\0');
-        fill(strNewWalletPassTest.begin(), strNewWalletPassTest.end(), '\0');
-        munlock(&strOldWalletPass[0], strOldWalletPass.capacity());
-        munlock(&strNewWalletPass[0], strNewWalletPass.capacity());
-        munlock(&strNewWalletPassTest[0], strNewWalletPassTest.capacity());
-        wxMessageBox(_("The passphrase entered for the wallet decryption was incorrect."), "Bitcoin", wxOK | wxICON_ERROR);
-        return;
-    }
-    fill(strOldWalletPass.begin(), strOldWalletPass.end(), '\0');
-    fill(strNewWalletPass.begin(), strNewWalletPass.end(), '\0');
-    fill(strNewWalletPassTest.begin(), strNewWalletPassTest.end(), '\0');
-    munlock(&strOldWalletPass[0], strOldWalletPass.capacity());
-    munlock(&strNewWalletPass[0], strNewWalletPass.capacity());
-    munlock(&strNewWalletPassTest[0], strNewWalletPassTest.capacity());
-    wxMessageBox(_("Wallet Passphrase Changed."), "Bitcoin");
-}
-
-void CMainFrame::OnMenuOptionsOptions(wxCommandEvent& event)
-{
-    // Options->Options
-    COptionsDialog dialog(this);
-    dialog.ShowModal();
-}
-
-void CMainFrame::OnMenuHelpAbout(wxCommandEvent& event)
-{
-    // Help->About
-    CAboutDialog dialog(this);
-    dialog.ShowModal();
-}
-
-void CMainFrame::OnButtonSend(wxCommandEvent& event)
-{
-    // Toolbar: Send
-    CSendDialog dialog(this);
-    dialog.ShowModal();
-}
-
-void CMainFrame::OnButtonAddressBook(wxCommandEvent& event)
-{
-    // Toolbar: Address Book
-    CAddressBookDialog dialogAddr(this, "", CAddressBookDialog::SENDING, false);
-    if (dialogAddr.ShowModal() == 2)
-    {
-        // Send
-        CSendDialog dialogSend(this, dialogAddr.GetSelectedAddress());
-        dialogSend.ShowModal();
-    }
-}
-
-void CMainFrame::OnSetFocusAddress(wxFocusEvent& event)
-{
-    // Automatically select-all when entering window
-    event.Skip();
-    m_textCtrlAddress->SetSelection(-1, -1);
-    fOnSetFocusAddress = true;
-}
-
-void CMainFrame::OnMouseEventsAddress(wxMouseEvent& event)
-{
-    event.Skip();
-    if (fOnSetFocusAddress)
-        m_textCtrlAddress->SetSelection(-1, -1);
-    fOnSetFocusAddress = false;
-}
-
-void CMainFrame::OnButtonNew(wxCommandEvent& event)
-{
-    // Ask name
-    CGetTextFromUserDialog dialog(this,
-        _("New Receiving Address"),
-        _("You should use a new address for each payment you receive.\n\nLabel"),
-        "");
-    if (!dialog.ShowModal())
-        return;
-    string strName = dialog.GetValue();
-
-    string strAddress;
-
-    bool fWasLocked = pwalletMain->IsLocked();
-    if (!GetWalletPassphrase())
-        return;
-
-    // Generate new key
-    std::vector<unsigned char> newKey;
-    pwalletMain->GetKeyFromPool(newKey, true);
-    strAddress = CBitcoinAddress(newKey).ToString();
-
-    if (fWasLocked)
-        pwalletMain->Lock();
-
-    // Save
-    CRITICAL_BLOCK(pwalletMain->cs_wallet)
-        pwalletMain->SetAddressBookName(strAddress, strName);
-    SetDefaultReceivingAddress(strAddress);
-}
-
-void CMainFrame::OnButtonCopy(wxCommandEvent& event)
-{
-    // Copy address box to clipboard
-    if (wxTheClipboard->Open())
-    {
-        wxTheClipboard->SetData(new wxTextDataObject(m_textCtrlAddress->GetValue()));
-        wxTheClipboard->Close();
-    }
-}
-
-void CMainFrame::OnListItemActivated(wxListEvent& event)
-{
-    uint256 hash((string)GetItemText(m_listCtrl, event.GetIndex(), 1));
-    CWalletTx wtx;
-    CRITICAL_BLOCK(pwalletMain->cs_wallet)
-    {
-        map<uint256, CWalletTx>::iterator mi = pwalletMain->mapWallet.find(hash);
-        if (mi == pwalletMain->mapWallet.end())
-        {
-            printf("CMainFrame::OnListItemActivated() : tx not found in mapWallet\n");
-            return;
-        }
-        wtx = (*mi).second;
-    }
-    CTxDetailsDialog dialog(this, wtx);
-    dialog.ShowModal();
-    //CTxDetailsDialog* pdialog = new CTxDetailsDialog(this, wtx);
-    //pdialog->Show();
-}
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// CTxDetailsDialog
-//
-
-CTxDetailsDialog::CTxDetailsDialog(wxWindow* parent, CWalletTx wtx) : CTxDetailsDialogBase(parent)
-{
-#ifdef __WXMSW__
-    SetSize(nScaleX * GetSize().GetWidth(), nScaleY * GetSize().GetHeight());
-#endif
-    CRITICAL_BLOCK(pwalletMain->cs_wallet)
-    {
-        string strHTML;
-        strHTML.reserve(4000);
-        strHTML += "<html><font face='verdana, arial, helvetica, sans-serif'>";
-
-        int64 nTime = wtx.GetTxTime();
-        int64 nCredit = wtx.GetCredit();
-        int64 nDebit = wtx.GetDebit();
-        int64 nNet = nCredit - nDebit;
-
-
-
-        strHTML += _("<b>Status:</b> ") + FormatTxStatus(wtx);
-        int nRequests = wtx.GetRequestCount();
-        if (nRequests != -1)
-        {
-            if (nRequests == 0)
-                strHTML += _(", has not been successfully broadcast yet");
-            else if (nRequests == 1)
-                strHTML += strprintf(_(", broadcast through %d node"), nRequests);
-            else
-                strHTML += strprintf(_(", broadcast through %d nodes"), nRequests);
-        }
-        strHTML += "<br>";
-
-        strHTML += _("<b>Date:</b> ") + (nTime ? DateTimeStr(nTime) : "") + "<br>";
-
-
-        //
-        // From
-        //
-        if (wtx.IsCoinBase())
-        {
-            strHTML += _("<b>Source:</b> Generated<br>");
-        }
-        else if (!wtx.mapValue["from"].empty())
-        {
-            // Online transaction
-            if (!wtx.mapValue["from"].empty())
-                strHTML += _("<b>From:</b> ") + HtmlEscape(wtx.mapValue["from"]) + "<br>";
-        }
-        else
-        {
-            // Offline transaction
-            if (nNet > 0)
-            {
-                // Credit
-                BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-                {
-                    if (pwalletMain->IsMine(txout))
-                    {
-                        CBitcoinAddress address;
-                        if (ExtractAddress(txout.scriptPubKey, pwalletMain, address))
-                        {
-                            if (pwalletMain->mapAddressBook.count(address))
-                            {
-                                strHTML += string() + _("<b>From:</b> ") + _("unknown") + "<br>";
-                                strHTML += _("<b>To:</b> ");
-                                strHTML += HtmlEscape(address.ToString());
-                                if (!pwalletMain->mapAddressBook[address].empty())
-                                    strHTML += _(" (yours, label: ") + pwalletMain->mapAddressBook[address] + ")";
-                                else
-                                    strHTML += _(" (yours)");
-                                strHTML += "<br>";
-                            }
-                        }
-                        break;
-                    }
-                }
-            }
-        }
-
-
-        //
-        // To
-        //
-        string strAddress;
-        if (!wtx.mapValue["to"].empty())
-        {
-            // Online transaction
-            strAddress = wtx.mapValue["to"];
-            strHTML += _("<b>To:</b> ");
-            if (pwalletMain->mapAddressBook.count(strAddress) && !pwalletMain->mapAddressBook[strAddress].empty())
-                strHTML += pwalletMain->mapAddressBook[strAddress] + " ";
-            strHTML += HtmlEscape(strAddress) + "<br>";
-        }
-
-
-        //
-        // Amount
-        //
-        if (wtx.IsCoinBase() && nCredit == 0)
-        {
-            //
-            // Coinbase
-            //
-            int64 nUnmatured = 0;
-            BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-                nUnmatured += pwalletMain->GetCredit(txout);
-            strHTML += _("<b>Credit:</b> ");
-            if (wtx.IsInMainChain())
-                strHTML += strprintf(_("(%s matures in %d more blocks)"), FormatMoney(nUnmatured).c_str(), wtx.GetBlocksToMaturity());
-            else
-                strHTML += _("(not accepted)");
-            strHTML += "<br>";
-        }
-        else if (nNet > 0)
-        {
-            //
-            // Credit
-            //
-            strHTML += _("<b>Credit:</b> ") + FormatMoney(nNet) + "<br>";
-        }
-        else
-        {
-            bool fAllFromMe = true;
-            BOOST_FOREACH(const CTxIn& txin, wtx.vin)
-                fAllFromMe = fAllFromMe && pwalletMain->IsMine(txin);
-
-            bool fAllToMe = true;
-            BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-                fAllToMe = fAllToMe && pwalletMain->IsMine(txout);
-
-            if (fAllFromMe)
-            {
-                //
-                // Debit
-                //
-                BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-                {
-                    if (pwalletMain->IsMine(txout))
-                        continue;
-
-                    if (wtx.mapValue["to"].empty())
-                    {
-                        // Offline transaction
-                        CBitcoinAddress address;
-                        if (ExtractAddress(txout.scriptPubKey, pwalletMain, address))
-                        {
-                            string strAddress = address.ToString();
-                            strHTML += _("<b>To:</b> ");
-                            if (pwalletMain->mapAddressBook.count(address) && !pwalletMain->mapAddressBook[address].empty())
-                                strHTML += pwalletMain->mapAddressBook[address] + " ";
-                            strHTML += strAddress;
-                            strHTML += "<br>";
-                        }
-                    }
-
-                    strHTML += _("<b>Debit:</b> ") + FormatMoney(-txout.nValue) + "<br>";
-                }
-
-                if (fAllToMe)
-                {
-                    // Payment to self
-                    int64 nChange = wtx.GetChange();
-                    int64 nValue = nCredit - nChange;
-                    strHTML += _("<b>Debit:</b> ") + FormatMoney(-nValue) + "<br>";
-                    strHTML += _("<b>Credit:</b> ") + FormatMoney(nValue) + "<br>";
-                }
-
-                int64 nTxFee = nDebit - wtx.GetValueOut();
-                if (nTxFee > 0)
-                    strHTML += _("<b>Transaction fee:</b> ") + FormatMoney(-nTxFee) + "<br>";
-            }
-            else
-            {
-                //
-                // Mixed debit transaction
-                //
-                BOOST_FOREACH(const CTxIn& txin, wtx.vin)
-                    if (pwalletMain->IsMine(txin))
-                        strHTML += _("<b>Debit:</b> ") + FormatMoney(-pwalletMain->GetDebit(txin)) + "<br>";
-                BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-                    if (pwalletMain->IsMine(txout))
-                        strHTML += _("<b>Credit:</b> ") + FormatMoney(pwalletMain->GetCredit(txout)) + "<br>";
-            }
-        }
-
-        strHTML += _("<b>Net amount:</b> ") + FormatMoney(nNet, true) + "<br>";
-
-
-        //
-        // Message
-        //
-        if (!wtx.mapValue["message"].empty())
-            strHTML += string() + "<br><b>" + _("Message:") + "</b><br>" + HtmlEscape(wtx.mapValue["message"], true) + "<br>";
-        if (!wtx.mapValue["comment"].empty())
-            strHTML += string() + "<br><b>" + _("Comment:") + "</b><br>" + HtmlEscape(wtx.mapValue["comment"], true) + "<br>";
-
-        if (wtx.IsCoinBase())
-            strHTML += string() + "<br>" + _("Generated coins must wait 120 blocks before they can be spent.  When you generated this block, it was broadcast to the network to be added to the block chain.  If it fails to get into the chain, it will change to \"not accepted\" and not be spendable.  This may occasionally happen if another node generates a block within a few seconds of yours.") + "<br>";
-
-
-        //
-        // Debug view
-        //
-        if (fDebug)
-        {
-            strHTML += "<hr><br>debug print<br><br>";
-            BOOST_FOREACH(const CTxIn& txin, wtx.vin)
-                if (pwalletMain->IsMine(txin))
-                    strHTML += "<b>Debit:</b> " + FormatMoney(-pwalletMain->GetDebit(txin)) + "<br>";
-            BOOST_FOREACH(const CTxOut& txout, wtx.vout)
-                if (pwalletMain->IsMine(txout))
-                    strHTML += "<b>Credit:</b> " + FormatMoney(pwalletMain->GetCredit(txout)) + "<br>";
-
-            strHTML += "<br><b>Transaction:</b><br>";
-            strHTML += HtmlEscape(wtx.ToString(), true);
-
-            strHTML += "<br><b>Inputs:</b><br>";
-            CRITICAL_BLOCK(pwalletMain->cs_wallet)
-            {
-                BOOST_FOREACH(const CTxIn& txin, wtx.vin)
-                {
-                    COutPoint prevout = txin.prevout;
-                    map<uint256, CWalletTx>::iterator mi = pwalletMain->mapWallet.find(prevout.hash);
-                    if (mi != pwalletMain->mapWallet.end())
-                    {
-                        const CWalletTx& prev = (*mi).second;
-                        if (prevout.n < prev.vout.size())
-                        {
-                            strHTML += HtmlEscape(prev.ToString(), true);
-                            strHTML += " &nbsp;&nbsp; " + FormatTxStatus(prev) + ", ";
-                            strHTML = strHTML + "IsMine=" + (pwalletMain->IsMine(prev.vout[prevout.n]) ? "true" : "false") + "<br>";
-                        }
-                    }
-                }
-            }
-        }
-
-
-
-        strHTML += "</font></html>";
-        string(strHTML.begin(), strHTML.end()).swap(strHTML);
-        m_htmlWin->SetPage(strHTML);
-        m_buttonOK->SetFocus();
-    }
-}
-
-void CTxDetailsDialog::OnButtonOK(wxCommandEvent& event)
-{
-    EndModal(false);
-}
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// Startup folder
-//
-
-#ifdef __WXMSW__
-string StartupShortcutPath()
-{
-    return MyGetSpecialFolderPath(CSIDL_STARTUP, true) + "\\Bitcoin.lnk";
-}
-
-bool GetStartOnSystemStartup()
-{
-    return filesystem::exists(StartupShortcutPath().c_str());
-}
-
-void SetStartOnSystemStartup(bool fAutoStart)
-{
-    // If the shortcut exists already, remove it for updating
-    remove(StartupShortcutPath().c_str());
-
-    if (fAutoStart)
-    {
-        CoInitialize(NULL);
-
-        // Get a pointer to the IShellLink interface.
-        IShellLink* psl = NULL;
-        HRESULT hres = CoCreateInstance(CLSID_ShellLink, NULL,
-                                CLSCTX_INPROC_SERVER, IID_IShellLink,
-                                reinterpret_cast<void**>(&psl));
-
-        if (SUCCEEDED(hres))
-        {
-            // Get the current executable path
-            TCHAR pszExePath[MAX_PATH];
-            GetModuleFileName(NULL, pszExePath, sizeof(pszExePath));
-
-            // Set the path to the shortcut target
-            psl->SetPath(pszExePath);
-            PathRemoveFileSpec(pszExePath);
-            psl->SetWorkingDirectory(pszExePath);
-            psl->SetShowCmd(SW_SHOWMINNOACTIVE);
-
-            // Query IShellLink for the IPersistFile interface for
-            // saving the shortcut in persistent storage.
-            IPersistFile* ppf = NULL;
-            hres = psl->QueryInterface(IID_IPersistFile,
-                                       reinterpret_cast<void**>(&ppf));
-            if (SUCCEEDED(hres))
-            {
-                WCHAR pwsz[MAX_PATH];
-                // Ensure that the string is ANSI.
-                MultiByteToWideChar(CP_ACP, 0, StartupShortcutPath().c_str(), -1, pwsz, MAX_PATH);
-                // Save the link by calling IPersistFile::Save.
-                hres = ppf->Save(pwsz, TRUE);
-                ppf->Release();
-            }
-            psl->Release();
-        }
-        CoUninitialize();
-    }
-}
-
-#elif defined(__WXGTK__)
-
-// Follow the Desktop Application Autostart Spec:
-//  http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html
-
-boost::filesystem::path GetAutostartDir()
-{
-    namespace fs = boost::filesystem;
-
-    char* pszConfigHome = getenv("XDG_CONFIG_HOME");
-    if (pszConfigHome) return fs::path(pszConfigHome) / fs::path("autostart");
-    char* pszHome = getenv("HOME");
-    if (pszHome) return fs::path(pszHome) / fs::path(".config/autostart");
-    return fs::path();
-}
-
-boost::filesystem::path GetAutostartFilePath()
-{
-    return GetAutostartDir() / boost::filesystem::path("bitcoin.desktop");
-}
-
-bool GetStartOnSystemStartup()
-{
-    boost::filesystem::ifstream optionFile(GetAutostartFilePath());
-    if (!optionFile.good())
-        return false;
-    // Scan through file for "Hidden=true":
-    string line;
-    while (!optionFile.eof())
-    {
-        getline(optionFile, line);
-        if (line.find("Hidden") != string::npos &&
-            line.find("true") != string::npos)
-            return false;
-    }
-    optionFile.close();
-
-    return true;
-}
-
-void SetStartOnSystemStartup(bool fAutoStart)
-{
-    if (!fAutoStart)
-    {
-#if defined(BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION >= 3
-        unlink(GetAutostartFilePath().string().c_str());
-#else
-        unlink(GetAutostartFilePath().native_file_string().c_str());
-#endif
-    }
-    else
-    {
-        char pszExePath[MAX_PATH+1];
-        memset(pszExePath, 0, sizeof(pszExePath));
-        if (readlink("/proc/self/exe", pszExePath, sizeof(pszExePath)-1) == -1)
-            return;
-
-        boost::filesystem::create_directories(GetAutostartDir());
-
-        boost::filesystem::ofstream optionFile(GetAutostartFilePath(), ios_base::out|ios_base::trunc);
-        if (!optionFile.good())
-        {
-            wxMessageBox(_("Cannot write autostart/bitcoin.desktop file"), "Bitcoin");
-            return;
-        }
-        // Write a bitcoin.desktop file to the autostart directory:
-        optionFile << "[Desktop Entry]\n";
-        optionFile << "Type=Application\n";
-        optionFile << "Name=Bitcoin\n";
-        optionFile << "Exec=" << pszExePath << "\n";
-        optionFile << "Terminal=false\n";
-        optionFile << "Hidden=false\n";
-        optionFile.close();
-    }
-}
-#else
-
-// TODO: OSX startup stuff; see:
-// http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/CustomLogin.html
-
-bool GetStartOnSystemStartup() { return false; }
-void SetStartOnSystemStartup(bool fAutoStart) { }
-
-#endif
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// COptionsDialog
-//
-
-COptionsDialog::COptionsDialog(wxWindow* parent) : COptionsDialogBase(parent)
-{
-    // Set up list box of page choices
-    m_listBox->Append(_("Main"));
-    //m_listBox->Append(_("Test 2"));
-    m_listBox->SetSelection(0);
-    SelectPage(0);
-#ifndef __WXMSW__
-    SetSize(1.0 * GetSize().GetWidth(), 1.2 * GetSize().GetHeight());
-#else
-    SetSize(nScaleX * GetSize().GetWidth(), nScaleY * GetSize().GetHeight());
-#endif
-#if defined(__WXGTK__) || defined(__WXMAC_OSX__)
-    m_checkBoxStartOnSystemStartup->SetLabel(_("&Start Bitcoin on window system startup"));
-    if (!GetBoolArg("-minimizetotray"))
-    {
-        // Minimize to tray is just too buggy on Linux
-        fMinimizeToTray = false;
-        m_checkBoxMinimizeToTray->SetValue(false);
-        m_checkBoxMinimizeToTray->Enable(false);
-        m_checkBoxMinimizeOnClose->SetLabel(_("&Minimize on close"));
-    }
-#endif
-#ifdef __WXMAC_OSX__
-    m_checkBoxStartOnSystemStartup->Enable(false); // not implemented yet
-#endif
-
-    // Init values
-    m_textCtrlTransactionFee->SetValue(FormatMoney(nTransactionFee));
-    m_checkBoxStartOnSystemStartup->SetValue(fTmpStartOnSystemStartup = GetStartOnSystemStartup());
-    m_checkBoxMinimizeToTray->SetValue(fMinimizeToTray);
-    m_checkBoxMinimizeOnClose->SetValue(fMinimizeOnClose);
-    if (fHaveUPnP)
-        m_checkBoxUseUPnP->SetValue(fUseUPnP);
-    else
-        m_checkBoxUseUPnP->Enable(false);
-    m_checkBoxUseProxy->SetValue(fUseProxy);
-    m_textCtrlProxyIP->Enable(fUseProxy);
-    m_textCtrlProxyPort->Enable(fUseProxy);
-    m_staticTextProxyIP->Enable(fUseProxy);
-    m_staticTextProxyPort->Enable(fUseProxy);
-    m_textCtrlProxyIP->SetValue(addrProxy.ToStringIP());
-    m_textCtrlProxyPort->SetValue(addrProxy.ToStringPort());
-
-    m_buttonOK->SetFocus();
-}
-
-void COptionsDialog::SelectPage(int nPage)
-{
-    m_panelMain->Show(nPage == 0);
-    m_panelTest2->Show(nPage == 1);
-
-    m_scrolledWindow->Layout();
-    m_scrolledWindow->SetScrollbars(0, 0, 0, 0, 0, 0);
-}
-
-void COptionsDialog::OnListBox(wxCommandEvent& event)
-{
-    SelectPage(event.GetSelection());
-}
-
-void COptionsDialog::OnKillFocusTransactionFee(wxFocusEvent& event)
-{
-    event.Skip();
-    int64 nTmp = nTransactionFee;
-    ParseMoney(m_textCtrlTransactionFee->GetValue(), nTmp);
-    m_textCtrlTransactionFee->SetValue(FormatMoney(nTmp));
-}
-
-void COptionsDialog::OnCheckBoxUseProxy(wxCommandEvent& event)
-{
-    m_textCtrlProxyIP->Enable(event.IsChecked());
-    m_textCtrlProxyPort->Enable(event.IsChecked());
-    m_staticTextProxyIP->Enable(event.IsChecked());
-    m_staticTextProxyPort->Enable(event.IsChecked());
-}
-
-CAddress COptionsDialog::GetProxyAddr()
-{
-    // Be careful about byte order, addr.ip and addr.port are big endian
-    CAddress addr(m_textCtrlProxyIP->GetValue() + ":" + m_textCtrlProxyPort->GetValue());
-    if (addr.ip == INADDR_NONE)
-        addr.ip = addrProxy.ip;
-    int nPort = atoi(m_textCtrlProxyPort->GetValue());
-    addr.port = htons(nPort);
-    if (nPort <= 0 || nPort > USHRT_MAX)
-        addr.port = addrProxy.port;
-    return addr;
-}
-
-void COptionsDialog::OnKillFocusProxy(wxFocusEvent& event)
-{
-    event.Skip();
-    m_textCtrlProxyIP->SetValue(GetProxyAddr().ToStringIP());
-    m_textCtrlProxyPort->SetValue(GetProxyAddr().ToStringPort());
-}
-
-
-void COptionsDialog::OnButtonOK(wxCommandEvent& event)
-{
-    OnButtonApply(event);
-    EndModal(false);
-}
-
-void COptionsDialog::OnButtonCancel(wxCommandEvent& event)
-{
-    EndModal(false);
-}
-
-void COptionsDialog::OnButtonApply(wxCommandEvent& event)
-{
-    CWalletDB walletdb(pwalletMain->strWalletFile);
-
-    int64 nPrevTransactionFee = nTransactionFee;
-    if (ParseMoney(m_textCtrlTransactionFee->GetValue(), nTransactionFee) && nTransactionFee != nPrevTransactionFee)
-        walletdb.WriteSetting("nTransactionFee", nTransactionFee);
-
-    if (fTmpStartOnSystemStartup != m_checkBoxStartOnSystemStartup->GetValue())
-    {
-        fTmpStartOnSystemStartup = m_checkBoxStartOnSystemStartup->GetValue();
-        SetStartOnSystemStartup(fTmpStartOnSystemStartup);
-    }
-
-    if (fMinimizeToTray != m_checkBoxMinimizeToTray->GetValue())
-    {
-        fMinimizeToTray = m_checkBoxMinimizeToTray->GetValue();
-        walletdb.WriteSetting("fMinimizeToTray", fMinimizeToTray);
-        ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
-    }
-
-    if (fMinimizeOnClose != m_checkBoxMinimizeOnClose->GetValue())
-    {
-        fMinimizeOnClose = m_checkBoxMinimizeOnClose->GetValue();
-        walletdb.WriteSetting("fMinimizeOnClose", fMinimizeOnClose);
-    }
-
-    if (fHaveUPnP && fUseUPnP != m_checkBoxUseUPnP->GetValue())
-    {
-        fUseUPnP = m_checkBoxUseUPnP->GetValue();
-        walletdb.WriteSetting("fUseUPnP", fUseUPnP);
-        MapPort(fUseUPnP);
-    }
-
-    fUseProxy = m_checkBoxUseProxy->GetValue();
-    walletdb.WriteSetting("fUseProxy", fUseProxy);
-
-    addrProxy = GetProxyAddr();
-    walletdb.WriteSetting("addrProxy", addrProxy);
-}
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// CAboutDialog
-//
-
-CAboutDialog::CAboutDialog(wxWindow* parent) : CAboutDialogBase(parent)
-{
-    m_staticTextVersion->SetLabel(strprintf(_("version %s"), FormatFullVersion().c_str()));
-
-    // Change (c) into UTF-8 or ANSI copyright symbol
-    wxString str = m_staticTextMain->GetLabel();
-#if wxUSE_UNICODE
-    str.Replace("(c)", wxString::FromUTF8("\xC2\xA9"));
-#else
-    str.Replace("(c)", "\xA9");
-#endif
-    m_staticTextMain->SetLabel(str);
-#ifndef __WXMSW__
-    // Resize on Linux to make the window fit the text.
-    // The text was wrapped manually rather than using the Wrap setting because
-    // the wrap would be too small on Linux and it can't be changed at this point.
-    wxFont fontTmp = m_staticTextMain->GetFont();
-    if (fontTmp.GetPointSize() > 8);
-        fontTmp.SetPointSize(8);
-    m_staticTextMain->SetFont(fontTmp);
-    SetSize(GetSize().GetWidth() + 44, GetSize().GetHeight() + 10);
-#else
-    SetSize(nScaleX * GetSize().GetWidth(), nScaleY * GetSize().GetHeight());
-#endif
-}
-
-void CAboutDialog::OnButtonOK(wxCommandEvent& event)
-{
-    EndModal(false);
-}
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// CSendDialog
-//
-
-CSendDialog::CSendDialog(wxWindow* parent, const wxString& strAddress) : CSendDialogBase(parent)
-{
-    // Init
-    m_textCtrlAddress->SetValue(strAddress);
-    m_choiceTransferType->SetSelection(0);
-    m_bitmapCheckMark->Show(false);
-    fEnabledPrev = true;
-    m_textCtrlAddress->SetFocus();
-    
-    //// todo: should add a display of your balance for convenience
-#ifndef __WXMSW__
-    wxFont fontTmp = m_staticTextInstructions->GetFont();
-    if (fontTmp.GetPointSize() > 9);
-        fontTmp.SetPointSize(9);
-    m_staticTextInstructions->SetFont(fontTmp);
-    SetSize(725, 180);
-#else
-    SetSize(nScaleX * GetSize().GetWidth(), nScaleY * GetSize().GetHeight());
-#endif
-    
-    // Set Icon
-    if (nScaleX == 1.0 && nScaleY == 1.0) // We don't have icons of the proper size otherwise
-    {
-        wxIcon iconSend;
-        iconSend.CopyFromBitmap(wxBitmap(send16noshadow_xpm));
-        SetIcon(iconSend);
-    }
-#ifdef __WXMSW__
-    else
-        SetIcon(wxICON(bitcoin));
-#endif
-
-    // Fixup the tab order
-    m_buttonPaste->MoveAfterInTabOrder(m_buttonCancel);
-    m_buttonAddress->MoveAfterInTabOrder(m_buttonPaste);
-    this->Layout();
-}
-
-void CSendDialog::OnKillFocusAmount(wxFocusEvent& event)
-{
-    // Reformat the amount
-    event.Skip();
-    if (m_textCtrlAmount->GetValue().Trim().empty())
-        return;
-    int64 nTmp;
-    if (ParseMoney(m_textCtrlAmount->GetValue(), nTmp))
-        m_textCtrlAmount->SetValue(FormatMoney(nTmp));
-}
-
-void CSendDialog::OnButtonAddressBook(wxCommandEvent& event)
-{
-    // Open address book
-    CAddressBookDialog dialog(this, m_textCtrlAddress->GetValue(), CAddressBookDialog::SENDING, true);
-    if (dialog.ShowModal())
-        m_textCtrlAddress->SetValue(dialog.GetSelectedAddress());
-}
-
-void CSendDialog::OnButtonPaste(wxCommandEvent& event)
-{
-    // Copy clipboard to address box
-    if (wxTheClipboard->Open())
-    {
-        if (wxTheClipboard->IsSupported(wxDF_TEXT))
-        {
-            wxTextDataObject data;
-            wxTheClipboard->GetData(data);
-            m_textCtrlAddress->SetValue(data.GetText());
-        }
-        wxTheClipboard->Close();
-    }
-}
-
-void CSendDialog::OnButtonSend(wxCommandEvent& event)
-{
-    static CCriticalSection cs_sendlock;
-    TRY_CRITICAL_BLOCK(cs_sendlock)
-    {
-        CWalletTx wtx;
-        string strAddress = (string)m_textCtrlAddress->GetValue();
-
-        // Parse amount
-        int64 nValue = 0;
-        if (!ParseMoney(m_textCtrlAmount->GetValue(), nValue) || nValue <= 0)
-        {
-            wxMessageBox(_("Error in amount  "), _("Send Coins"));
-            return;
-        }
-        if (nValue > pwalletMain->GetBalance())
-        {
-            wxMessageBox(_("Amount exceeds your balance  "), _("Send Coins"));
-            return;
-        }
-        if (nValue + nTransactionFee > pwalletMain->GetBalance())
-        {
-            wxMessageBox(string(_("Total exceeds your balance when the ")) + FormatMoney(nTransactionFee) + _(" transaction fee is included  "), _("Send Coins"));
-            return;
-        }
-
-        // Parse bitcoin address
-        CBitcoinAddress address(strAddress);
-        bool fBitcoinAddress = address.IsValid();
-
-        if (fBitcoinAddress)
-        {
-            bool fWasLocked = pwalletMain->IsLocked();
-            if (!GetWalletPassphrase())
-                return;
-
-            string strError;
-           CRITICAL_BLOCK(cs_main)
-            CRITICAL_BLOCK(pwalletMain->cs_wallet)
-           {
-                // Send to bitcoin address
-                CScript scriptPubKey;
-                scriptPubKey.SetBitcoinAddress(address);
-
-                strError = pwalletMain->SendMoney(scriptPubKey, nValue, wtx, true);
-            }
-            if (strError == "")
-            {
-                pframeMain->RefreshListCtrl();
-                wxMessageBox(_("Payment sent  "), _("Sending..."));
-            }
-            else if (strError == "ABORTED")
-            {
-                if (fWasLocked)
-                    pwalletMain->Lock();
-                return; // leave send dialog open
-            }
-            else
-            {
-                wxMessageBox(strError + "  ", _("Sending..."));
-                EndModal(false);
-                if (fWasLocked)
-                    pwalletMain->Lock();
-                return;
-            }
-
-            if (fWasLocked)
-                pwalletMain->Lock();
-        }
-        else
-        {
-            // Parse IP address
-            CAddress addr(strAddress);
-            if (!addr.IsValid())
-            {
-                wxMessageBox(_("Invalid address  "), _("Send Coins"));
-                return;
-            }
-
-            // Message
-            wtx.mapValue["to"] = strAddress;
-
-            // Send to IP address
-            CSendingDialog* pdialog = new CSendingDialog(this, addr, nValue, wtx);
-            if (!pdialog->ShowModal())
-                return;
-        }
-
-        CRITICAL_BLOCK(pwalletMain->cs_wallet)
-            if (!pwalletMain->mapAddressBook.count(address))
-                pwalletMain->SetAddressBookName(strAddress, "");
-
-        EndModal(true);
-    }
-}
-
-void CSendDialog::OnButtonCancel(wxCommandEvent& event)
-{
-    // Cancel
-    EndModal(false);
-}
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// CSendingDialog
-//
-
-CSendingDialog::CSendingDialog(wxWindow* parent, const CAddress& addrIn, int64 nPriceIn, const CWalletTx& wtxIn) : CSendingDialogBase(NULL) // we have to give null so parent can't destroy us
-{
-    addr = addrIn;
-    nPrice = nPriceIn;
-    wtx = wtxIn;
-    start = wxDateTime::UNow();
-    memset(pszStatus, 0, sizeof(pszStatus));
-    fCanCancel = true;
-    fAbort = false;
-    fSuccess = false;
-    fUIDone = false;
-    fWorkDone = false;
-#ifndef __WXMSW__
-    SetSize(1.2 * GetSize().GetWidth(), 1.08 * GetSize().GetHeight());
-#else
-    SetSize(nScaleX * GetSize().GetWidth(), nScaleY * GetSize().GetHeight());
-#endif
-
-    SetTitle(strprintf(_("Sending %s to %s"), FormatMoney(nPrice).c_str(), wtx.mapValue["to"].c_str()));
-    m_textCtrlStatus->SetValue("");
-
-    CreateThread(SendingDialogStartTransfer, this);
-}
-
-CSendingDialog::~CSendingDialog()
-{
-    printf("~CSendingDialog()\n");
-}
-
-void CSendingDialog::Close()
-{
-    // Last one out turn out the lights.
-    // fWorkDone signals that work side is done and UI thread should call destroy.
-    // fUIDone signals that UI window has closed and work thread should call destroy.
-    // This allows the window to disappear and end modality when cancelled
-    // without making the user wait for ConnectNode to return.  The dialog object
-    // hangs around in the background until the work thread exits.
-    if (IsModal())
-        EndModal(fSuccess);
-    else
-        Show(false);
-    if (fWorkDone)
-        Destroy();
-    else
-        fUIDone = true;
-}
-
-void CSendingDialog::OnClose(wxCloseEvent& event)
-{
-    if (!event.CanVeto() || fWorkDone || fAbort || !fCanCancel)
-    {
-        Close();
-    }
-    else
-    {
-        event.Veto();
-        wxCommandEvent cmdevent;
-        OnButtonCancel(cmdevent);
-    }
-}
-
-void CSendingDialog::OnButtonOK(wxCommandEvent& event)
-{
-    if (fWorkDone)
-        Close();
-}
-
-void CSendingDialog::OnButtonCancel(wxCommandEvent& event)
-{
-    if (fCanCancel)
-        fAbort = true;
-}
-
-void CSendingDialog::OnPaint(wxPaintEvent& event)
-{
-    event.Skip();
-    if (strlen(pszStatus) > 130)
-        m_textCtrlStatus->SetValue(string("\n") + pszStatus);
-    else
-        m_textCtrlStatus->SetValue(string("\n\n") + pszStatus);
-    m_staticTextSending->SetFocus();
-    if (!fCanCancel)
-        m_buttonCancel->Enable(false);
-    if (fWorkDone)
-    {
-        m_buttonOK->Enable(true);
-        m_buttonOK->SetFocus();
-        m_buttonCancel->Enable(false);
-    }
-    if (fAbort && fCanCancel && IsShown())
-    {
-        strcpy(pszStatus, _("CANCELLED"));
-        m_buttonOK->Enable(true);
-        m_buttonOK->SetFocus();
-        m_buttonCancel->Enable(false);
-        m_buttonCancel->SetLabel(_("Cancelled"));
-        Close();
-        wxMessageBox(_("Transfer cancelled  "), _("Sending..."), wxOK, this);
-    }
-}
-
-
-//
-// Everything from here on is not in the UI thread and must only communicate
-// with the rest of the dialog through variables and calling repaint.
-//
-
-void CSendingDialog::Repaint()
-{
-    Refresh();
-    wxPaintEvent event;
-    GetEventHandler()->AddPendingEvent(event);
-}
-
-bool CSendingDialog::Status()
-{
-    if (fUIDone)
-    {
-        Destroy();
-        return false;
-    }
-    if (fAbort && fCanCancel)
-    {
-        memset(pszStatus, 0, 10);
-        strcpy(pszStatus, _("CANCELLED"));
-        Repaint();
-        fWorkDone = true;
-        return false;
-    }
-    return true;
-}
-
-bool CSendingDialog::Status(const string& str)
-{
-    if (!Status())
-        return false;
-
-    // This can be read by the UI thread at any time,
-    // so copy in a way that can be read cleanly at all times.
-    memset(pszStatus, 0, min(str.size()+1, sizeof(pszStatus)));
-    strlcpy(pszStatus, str.c_str(), sizeof(pszStatus));
-
-    Repaint();
-    return true;
-}
-
-bool CSendingDialog::Error(const string& str)
-{
-    fCanCancel = false;
-    fWorkDone = true;
-    Status(string(_("Error: ")) + str);
-    return false;
-}
-
-void SendingDialogStartTransfer(void* parg)
-{
-    ((CSendingDialog*)parg)->StartTransfer();
-}
-
-void CSendingDialog::StartTransfer()
-{
-    // Make sure we have enough money
-    if (nPrice + nTransactionFee > pwalletMain->GetBalance())
-    {
-        Error(_("Insufficient funds"));
-        return;
-    }
-
-    // We may have connected already for product details
-    if (!Status(_("Connecting...")))
-        return;
-    CNode* pnode = ConnectNode(addr, 15 * 60);
-    if (!pnode)
-    {
-        Error(_("Unable to connect"));
-        return;
-    }
-
-    // Send order to seller, with response going to OnReply2 via event handler
-    if (!Status(_("Requesting public key...")))
-        return;
-    pnode->PushRequest("checkorder", wtx, SendingDialogOnReply2, this);
-}
-
-void SendingDialogOnReply2(void* parg, CDataStream& vRecv)
-{
-    ((CSendingDialog*)parg)->OnReply2(vRecv);
-}
-
-void CSendingDialog::OnReply2(CDataStream& vRecv)
-{
-    if (!Status(_("Received public key...")))
-        return;
-
-    CScript scriptPubKey;
-    int nRet;
-    try
-    {
-        vRecv >> nRet;
-        if (nRet > 0)
-        {
-            string strMessage;
-            if (!vRecv.empty())
-                vRecv >> strMessage;
-            if (nRet == 2)
-                Error(_("Recipient is not accepting transactions sent by IP address"));
-            else
-                Error(_("Transfer was not accepted"));
-            //// todo: enlarge the window and enable a hidden white box to put seller's message
-            return;
-        }
-        vRecv >> scriptPubKey;
-    }
-    catch (...)
-    {
-        //// what do we want to do about this?
-        Error(_("Invalid response received"));
-        return;
-    }
-
-    // Pause to give the user a chance to cancel
-    while (wxDateTime::UNow() < start + wxTimeSpan(0, 0, 0, 2 * 1000))
-    {
-        Sleep(200);
-        if (!Status())
-            return;
-    }
-
-    // Pay
-    if (!Status(_("Creating transaction...")))
-        return;
-    if (nPrice + nTransactionFee > pwalletMain->GetBalance())
-    {
-        Error(_("Insufficient funds"));
-        return;
-    }
-
-    CReserveKey reservekey(pwalletMain);
-    int64 nFeeRequired;
-    bool fWasLocked = pwalletMain->IsLocked();
-    if (!GetWalletPassphrase())
-        return;
-
-    bool fTxCreated = false;
-    CRITICAL_BLOCK(cs_main)
-    CRITICAL_BLOCK(pwalletMain->cs_wallet)
-    {
-        fTxCreated = pwalletMain->CreateTransaction(scriptPubKey, nPrice, wtx, reservekey, nFeeRequired);
-    }
-    if (!fTxCreated)
-    {
-        if (nPrice + nFeeRequired > pwalletMain->GetBalance())
-            Error(strprintf(_("This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds"), FormatMoney(nFeeRequired).c_str()));
-        else
-            Error(_("Transaction creation failed"));
-        return;
-    }
-
-    if (fWasLocked)
-        pwalletMain->Lock();
-
-    // Transaction fee
-    if (!ThreadSafeAskFee(nFeeRequired, _("Sending..."), this))
-    {
-        Error(_("Transaction aborted"));
-        return;
-    }
-
-    // Make sure we're still connected
-    CNode* pnode = ConnectNode(addr, 2 * 60 * 60);
-    if (!pnode)
-    {
-        Error(_("Lost connection, transaction cancelled"));
-        return;
-    }
-
-    // Last chance to cancel
-    Sleep(50);
-    if (!Status())
-        return;
-    fCanCancel = false;
-    if (fAbort)
-    {
-        fCanCancel = true;
-        if (!Status())
-            return;
-        fCanCancel = false;
-    }
-    if (!Status(_("Sending payment...")))
-        return;
-
-    // Commit
-    bool fTxCommitted = false;
-    CRITICAL_BLOCK(cs_main)
-    CRITICAL_BLOCK(pwalletMain->cs_wallet)
-    {
-        fTxCommitted = pwalletMain->CommitTransaction(wtx, reservekey);
-    }
-    if (!fTxCommitted)
-    {
-        Error(_("The transaction was rejected.  This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."));
-        return;
-    }
-
-    // Send payment tx to seller, with response going to OnReply3 via event handler
-    CWalletTx wtxSend = wtx;
-    wtxSend.fFromMe = false;
-    pnode->PushRequest("submitorder", wtxSend, SendingDialogOnReply3, this);
-
-    Status(_("Waiting for confirmation..."));
-    MainFrameRepaint();
-}
-
-void SendingDialogOnReply3(void* parg, CDataStream& vRecv)
-{
-    ((CSendingDialog*)parg)->OnReply3(vRecv);
-}
-
-void CSendingDialog::OnReply3(CDataStream& vRecv)
-{
-    int nRet;
-    try
-    {
-        vRecv >> nRet;
-        if (nRet > 0)
-        {
-            Error(_("The payment was sent, but the recipient was unable to verify it.\n"
-                    "The transaction is recorded and will credit to the recipient,\n"
-                    "but the comment information will be blank."));
-            return;
-        }
-    }
-    catch (...)
-    {
-        //// what do we want to do about this?
-        Error(_("Payment was sent, but an invalid response was received"));
-        return;
-    }
-
-    fSuccess = true;
-    fWorkDone = true;
-    Status(_("Payment completed"));
-}
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// CAddressBookDialog
-//
-
-CAddressBookDialog::CAddressBookDialog(wxWindow* parent, const wxString& strInitSelected, int nPageIn, bool fDuringSendIn) : CAddressBookDialogBase(parent)
-{
-#ifdef __WXMSW__
-    SetSize(nScaleX * GetSize().GetWidth(), nScaleY * GetSize().GetHeight());
-#endif
-
-    // Set initially selected page
-    wxNotebookEvent event;
-    event.SetSelection(nPageIn);
-    OnNotebookPageChanged(event);
-    m_notebook->ChangeSelection(nPageIn);
-
-    fDuringSend = fDuringSendIn;
-    if (!fDuringSend)
-        m_buttonCancel->Show(false);
-
-    // Set Icon
-    if (nScaleX == 1.0 && nScaleY == 1.0) // We don't have icons of the proper size otherwise
-    {
-        wxIcon iconAddressBook;
-        iconAddressBook.CopyFromBitmap(wxBitmap(addressbook16_xpm));
-        SetIcon(iconAddressBook);
-    }
-#ifdef __WXMSW__
-    else
-        SetIcon(wxICON(bitcoin));
-#endif
-
-    // Init column headers
-    m_listCtrlSending->InsertColumn(0, _("Name"), wxLIST_FORMAT_LEFT, 200);
-    m_listCtrlSending->InsertColumn(1, _("Address"), wxLIST_FORMAT_LEFT, 350);
-    m_listCtrlSending->SetFocus();
-    m_listCtrlReceiving->InsertColumn(0, _("Label"), wxLIST_FORMAT_LEFT, 200);
-    m_listCtrlReceiving->InsertColumn(1, _("Bitcoin Address"), wxLIST_FORMAT_LEFT, 350);
-    m_listCtrlReceiving->SetFocus();
-
-    // Fill listctrl with address book data
-    CRITICAL_BLOCK(pwalletMain->cs_wallet)
-    {
-        string strDefaultReceiving = (string)pframeMain->m_textCtrlAddress->GetValue();
-        BOOST_FOREACH(const PAIRTYPE(CBitcoinAddress, string)& item, pwalletMain->mapAddressBook)
-        {
-            const CBitcoinAddress& address = item.first;
-            string strName = item.second;
-            bool fMine = pwalletMain->HaveKey(address);
-            wxListCtrl* plistCtrl = fMine ? m_listCtrlReceiving : m_listCtrlSending;
-            int nIndex = InsertLine(plistCtrl, strName, address.ToString());
-            if (address.ToString() == (fMine ? strDefaultReceiving : string(strInitSelected)))
-                plistCtrl->SetItemState(nIndex, wxLIST_STATE_SELECTED|wxLIST_STATE_FOCUSED, wxLIST_STATE_SELECTED|wxLIST_STATE_FOCUSED);
-        }
-    }
-}
-
-wxString CAddressBookDialog::GetSelectedAddress()
-{
-    int nIndex = GetSelection(m_listCtrl);
-    if (nIndex == -1)
-        return "";
-    return GetItemText(m_listCtrl, nIndex, 1);
-}
-
-wxString CAddressBookDialog::GetSelectedSendingAddress()
-{
-    int nIndex = GetSelection(m_listCtrlSending);
-    if (nIndex == -1)
-        return "";
-    return GetItemText(m_listCtrlSending, nIndex, 1);
-}
-
-wxString CAddressBookDialog::GetSelectedReceivingAddress()
-{
-    int nIndex = GetSelection(m_listCtrlReceiving);
-    if (nIndex == -1)
-        return "";
-    return GetItemText(m_listCtrlReceiving, nIndex, 1);
-}
-
-void CAddressBookDialog::OnNotebookPageChanged(wxNotebookEvent& event)
-{
-    event.Skip();
-    nPage = event.GetSelection();
-    if (nPage == SENDING)
-        m_listCtrl = m_listCtrlSending;
-    else if (nPage == RECEIVING)
-        m_listCtrl = m_listCtrlReceiving;
-    m_buttonDelete->Show(nPage == SENDING);
-    m_buttonCopy->Show(nPage == RECEIVING);
-    this->Layout();
-    m_listCtrl->SetFocus();
-}
-
-void CAddressBookDialog::OnListEndLabelEdit(wxListEvent& event)
-{
-    // Update address book with edited name
-    event.Skip();
-    if (event.IsEditCancelled())
-        return;
-    string strAddress = (string)GetItemText(m_listCtrl, event.GetIndex(), 1);
-    CRITICAL_BLOCK(pwalletMain->cs_wallet)
-        pwalletMain->SetAddressBookName(strAddress, string(event.GetText()));
-    pframeMain->RefreshListCtrl();
-}
-
-void CAddressBookDialog::OnListItemSelected(wxListEvent& event)
-{
-    event.Skip();
-    if (nPage == RECEIVING)
-        SetDefaultReceivingAddress((string)GetSelectedReceivingAddress());
-}
-
-void CAddressBookDialog::OnListItemActivated(wxListEvent& event)
-{
-    event.Skip();
-    if (fDuringSend)
-    {
-        // Doubleclick returns selection
-        EndModal(GetSelectedAddress() != "" ? 2 : 0);
-        return;
-    }
-
-    // Doubleclick edits item
-    wxCommandEvent event2;
-    OnButtonEdit(event2);
-}
-
-void CAddressBookDialog::OnButtonDelete(wxCommandEvent& event)
-{
-    if (nPage != SENDING)
-        return;
-    for (int nIndex = m_listCtrl->GetItemCount()-1; nIndex >= 0; nIndex--)
-    {
-        if (m_listCtrl->GetItemState(nIndex, wxLIST_STATE_SELECTED))
-        {
-            string strAddress = (string)GetItemText(m_listCtrl, nIndex, 1);
-            CRITICAL_BLOCK(pwalletMain->cs_wallet)
-                pwalletMain->DelAddressBookName(strAddress);
-            m_listCtrl->DeleteItem(nIndex);
-        }
-    }
-    pframeMain->RefreshListCtrl();
-}
-
-void CAddressBookDialog::OnButtonCopy(wxCommandEvent& event)
-{
-    // Copy address box to clipboard
-    if (wxTheClipboard->Open())
-    {
-        wxTheClipboard->SetData(new wxTextDataObject(GetSelectedAddress()));
-        wxTheClipboard->Close();
-    }
-}
-
-bool CAddressBookDialog::CheckIfMine(const string& strAddress, const string& strTitle)
-{
-    CBitcoinAddress address(strAddress);
-    bool fMine = address.IsValid() && pwalletMain->HaveKey(address);
-    if (fMine)
-        wxMessageBox(_("This is one of your own addresses for receiving payments and cannot be entered in the address book.  "), strTitle);
-    return fMine;
-}
-
-void CAddressBookDialog::OnButtonEdit(wxCommandEvent& event)
-{
-    int nIndex = GetSelection(m_listCtrl);
-    if (nIndex == -1)
-        return;
-    string strName = (string)m_listCtrl->GetItemText(nIndex);
-    string strAddress = (string)GetItemText(m_listCtrl, nIndex, 1);
-    string strAddressOrg = strAddress;
-
-    if (nPage == SENDING)
-    {
-        // Ask name and address
-        do
-        {
-            CGetTextFromUserDialog dialog(this, _("Edit Address"), _("Name"), strName, _("Address"), strAddress);
-            if (!dialog.ShowModal())
-                return;
-            strName = dialog.GetValue1();
-            strAddress = dialog.GetValue2();
-        }
-        while (CheckIfMine(strAddress, _("Edit Address")));
-
-    }
-    else if (nPage == RECEIVING)
-    {
-        // Ask name
-        CGetTextFromUserDialog dialog(this, _("Edit Address Label"), _("Label"), strName);
-        if (!dialog.ShowModal())
-            return;
-        strName = dialog.GetValue();
-    }
-
-    // Write back
-    CRITICAL_BLOCK(pwalletMain->cs_wallet)
-    {
-        if (strAddress != strAddressOrg)
-            pwalletMain->DelAddressBookName(strAddressOrg);
-        pwalletMain->SetAddressBookName(strAddress, strName);
-    }
-    m_listCtrl->SetItem(nIndex, 1, strAddress);
-    m_listCtrl->SetItemText(nIndex, strName);
-    pframeMain->RefreshListCtrl();
-}
-
-void CAddressBookDialog::OnButtonNew(wxCommandEvent& event)
-{
-    string strName;
-    string strAddress;
-
-    if (nPage == SENDING)
-    {
-        // Ask name and address
-        do
-        {
-            CGetTextFromUserDialog dialog(this, _("Add Address"), _("Name"), strName, _("Address"), strAddress);
-            if (!dialog.ShowModal())
-                return;
-            strName = dialog.GetValue1();
-            strAddress = dialog.GetValue2();
-        }
-        while (CheckIfMine(strAddress, _("Add Address")));
-    }
-    else if (nPage == RECEIVING)
-    {
-        // Ask name
-        CGetTextFromUserDialog dialog(this,
-            _("New Receiving Address"),
-            _("You should use a new address for each payment you receive.\n\nLabel"),
-            "");
-        if (!dialog.ShowModal())
-            return;
-        strName = dialog.GetValue();
-
-        bool fWasLocked = pwalletMain->IsLocked();
-        if (!GetWalletPassphrase())
-            return;
-
-        // Generate new key
-        std::vector<unsigned char> newKey;
-        pwalletMain->GetKeyFromPool(newKey, true);
-        strAddress = CBitcoinAddress(newKey).ToString();
-
-        if (fWasLocked)
-            pwalletMain->Lock();
-    }
-
-    // Add to list and select it
-    CRITICAL_BLOCK(pwalletMain->cs_wallet)
-        pwalletMain->SetAddressBookName(strAddress, strName);
-    int nIndex = InsertLine(m_listCtrl, strName, strAddress);
-    SetSelection(m_listCtrl, nIndex);
-    m_listCtrl->SetFocus();
-    if (nPage == SENDING)
-        pframeMain->RefreshListCtrl();
-}
-
-void CAddressBookDialog::OnButtonOK(wxCommandEvent& event)
-{
-    // OK
-    EndModal(GetSelectedAddress() != "" ? 1 : 0);
-}
-
-void CAddressBookDialog::OnButtonCancel(wxCommandEvent& event)
-{
-    // Cancel
-    EndModal(0);
-}
-
-void CAddressBookDialog::OnClose(wxCloseEvent& event)
-{
-    // Close
-    EndModal(0);
-}
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// CMyTaskBarIcon
-//
-
-enum
-{
-    ID_TASKBAR_RESTORE = 10001,
-    ID_TASKBAR_SEND,
-    ID_TASKBAR_OPTIONS,
-    ID_TASKBAR_GENERATE,
-    ID_TASKBAR_EXIT,
-};
-
-BEGIN_EVENT_TABLE(CMyTaskBarIcon, wxTaskBarIcon)
-    EVT_TASKBAR_LEFT_DCLICK(CMyTaskBarIcon::OnLeftButtonDClick)
-    EVT_MENU(ID_TASKBAR_RESTORE, CMyTaskBarIcon::OnMenuRestore)
-    EVT_MENU(ID_TASKBAR_SEND, CMyTaskBarIcon::OnMenuSend)
-    EVT_MENU(ID_TASKBAR_OPTIONS, CMyTaskBarIcon::OnMenuOptions)
-    EVT_UPDATE_UI(ID_TASKBAR_GENERATE, CMyTaskBarIcon::OnUpdateUIGenerate)
-    EVT_MENU(ID_TASKBAR_EXIT, CMyTaskBarIcon::OnMenuExit)
-END_EVENT_TABLE()
-
-void CMyTaskBarIcon::Show(bool fShow)
-{
-    static char pszPrevTip[200];
-    if (fShow)
-    {
-        string strTooltip = _("Bitcoin");
-        if (fGenerateBitcoins)
-            strTooltip = _("Bitcoin - Generating");
-        if (fGenerateBitcoins && vNodes.empty())
-            strTooltip = _("Bitcoin - (not connected)");
-
-        // Optimization, only update when changed, using char array to be reentrant
-        if (strncmp(pszPrevTip, strTooltip.c_str(), sizeof(pszPrevTip)-1) != 0)
-        {
-            strlcpy(pszPrevTip, strTooltip.c_str(), sizeof(pszPrevTip));
-#ifdef __WXMSW__
-            // somehow it'll choose the wrong size and scale it down if
-            // we use the main icon, so we hand it one with only 16x16
-            SetIcon(wxICON(favicon), strTooltip);
-#else
-            SetIcon(bitcoin80_xpm, strTooltip);
-#endif
-        }
-    }
-    else
-    {
-        strlcpy(pszPrevTip, "", sizeof(pszPrevTip));
-        RemoveIcon();
-    }
-}
-
-void CMyTaskBarIcon::Hide()
-{
-    Show(false);
-}
-
-void CMyTaskBarIcon::OnLeftButtonDClick(wxTaskBarIconEvent& event)
-{
-    Restore();
-}
-
-void CMyTaskBarIcon::OnMenuRestore(wxCommandEvent& event)
-{
-    Restore();
-}
-
-void CMyTaskBarIcon::OnMenuSend(wxCommandEvent& event)
-{
-    // Taskbar: Send
-    CSendDialog dialog(pframeMain);
-    dialog.ShowModal();
-}
-
-void CMyTaskBarIcon::OnMenuOptions(wxCommandEvent& event)
-{
-    // Since it's modal, get the main window to do it
-    wxCommandEvent event2(wxEVT_COMMAND_MENU_SELECTED, wxID_PREFERENCES);
-    pframeMain->GetEventHandler()->AddPendingEvent(event2);
-}
-
-void CMyTaskBarIcon::Restore()
-{
-    pframeMain->Show();
-    wxIconizeEvent event(0, false);
-    pframeMain->GetEventHandler()->AddPendingEvent(event);
-    pframeMain->Iconize(false);
-    pframeMain->Raise();
-}
-
-void CMyTaskBarIcon::OnUpdateUIGenerate(wxUpdateUIEvent& event)
-{
-    event.Check(fGenerateBitcoins);
-}
-
-void CMyTaskBarIcon::OnMenuExit(wxCommandEvent& event)
-{
-    pframeMain->Close(true);
-}
-
-void CMyTaskBarIcon::UpdateTooltip()
-{
-    if (IsIconInstalled())
-        Show(true);
-}
-
-wxMenu* CMyTaskBarIcon::CreatePopupMenu()
-{
-    wxMenu* pmenu = new wxMenu;
-    pmenu->Append(ID_TASKBAR_RESTORE, _("&Open Bitcoin"));
-    pmenu->Append(ID_TASKBAR_SEND, _("&Send Bitcoins"));
-    pmenu->Append(ID_TASKBAR_OPTIONS, _("O&ptions..."));
-#ifndef __WXMAC_OSX__ // Mac has built-in quit menu
-    pmenu->AppendSeparator();
-    pmenu->Append(ID_TASKBAR_EXIT, _("E&xit"));
-#endif
-    return pmenu;
-}
-
-
-
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// CMyApp
-//
-
-void CreateMainWindow()
-{
-    pframeMain = new CMainFrame(NULL);
-    if (GetBoolArg("-min"))
-        pframeMain->Iconize(true);
-#if defined(__WXGTK__) || defined(__WXMAC_OSX__)
-    if (!GetBoolArg("-minimizetotray"))
-        fMinimizeToTray = false;
-#endif
-    pframeMain->Show(true);  // have to show first to get taskbar button to hide
-    if (fMinimizeToTray && pframeMain->IsIconized())
-        fClosedToTray = true;
-    pframeMain->Show(!fClosedToTray);
-    ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
-    CreateThread(ThreadDelayedRepaint, NULL);
-}
-
-
-// Define a new application
-class CMyApp : public wxApp
-{
-public:
-    CMyApp(){};
-    ~CMyApp(){};
-    bool OnInit();
-    bool OnInit2();
-    int OnExit();
-
-    // Hook Initialize so we can start without GUI
-    virtual bool Initialize(int& argc, wxChar** argv);
-
-    // 2nd-level exception handling: we get all the exceptions occurring in any
-    // event handler here
-    virtual bool OnExceptionInMainLoop();
-
-    // 3rd, and final, level exception handling: whenever an unhandled
-    // exception is caught, this function is called
-    virtual void OnUnhandledException();
-
-    // and now for something different: this function is called in case of a
-    // crash (e.g. dereferencing null pointer, division by 0, ...)
-    virtual void OnFatalException();
-};
-
-IMPLEMENT_APP(CMyApp)
-
-bool CMyApp::Initialize(int& argc, wxChar** argv)
-{
-    for (int i = 1; i < argc; i++)
-        if (!IsSwitchChar(argv[i][0]))
-            fCommandLine = true;
-
-    if (!fCommandLine)
-    {
-        // wxApp::Initialize will remove environment-specific parameters,
-        // so it's too early to call ParseParameters yet
-        for (int i = 1; i < argc; i++)
-        {
-            wxString str = argv[i];
-            #ifdef __WXMSW__
-            if (str.size() >= 1 && str[0] == '/')
-                str[0] = '-';
-            char pszLower[MAX_PATH];
-            strlcpy(pszLower, str.c_str(), sizeof(pszLower));
-            strlwr(pszLower);
-            str = pszLower;
-            #endif
-            if (str == "-daemon")
-                fDaemon = true;
-        }
-    }
-
-#ifdef __WXGTK__
-    if (fDaemon || fCommandLine)
-    {
-        // Call the original Initialize while suppressing error messages
-        // and ignoring failure.  If unable to initialize GTK, it fails
-        // near the end so hopefully the last few things don't matter.
-        {
-            wxLogNull logNo;
-            wxApp::Initialize(argc, argv);
-        }
-
-        if (fDaemon)
-        {
-            // Daemonize
-            pid_t pid = fork();
-            if (pid < 0)
-            {
-                fprintf(stderr, "Error: fork() returned %d errno %d\n", pid, errno);
-                return false;
-            }
-            if (pid > 0)
-                pthread_exit((void*)0);
-
-            pid_t sid = setsid();
-            if (sid < 0)
-                fprintf(stderr, "Error: setsid() returned %d errno %d\n", sid, errno);
-        }
-
-        return true;
-    }
-#endif
-
-    return wxApp::Initialize(argc, argv);
-}
-
-bool CMyApp::OnInit()
-{
-#if defined(__WXMSW__) && defined(__WXDEBUG__) && defined(GUI)
-    // Disable malfunctioning wxWidgets debug assertion
-    extern int g_isPainting;
-    g_isPainting = 10000;
-#endif
-#if defined(__WXMSW__ ) || defined(__WXMAC_OSX__)
-    SetAppName("Bitcoin");
-#else
-    SetAppName("bitcoin");
-#endif
-#ifdef __WXMSW__
-#if wxUSE_UNICODE
-    // Hack to set wxConvLibc codepage to UTF-8 on Windows,
-    // may break if wxMBConv_win32 implementation in strconv.cpp changes.
-    class wxMBConv_win32 : public wxMBConv
-    {
-    public:
-        long m_CodePage;
-        size_t m_minMBCharWidth;
-    };
-    if (((wxMBConv_win32*)&wxConvLibc)->m_CodePage == CP_ACP)
-        ((wxMBConv_win32*)&wxConvLibc)->m_CodePage = CP_UTF8;
-#endif
-#endif
-
-    // Load locale/<lang>/LC_MESSAGES/bitcoin.mo language file
-    g_locale.Init(wxLANGUAGE_DEFAULT, 0);
-    g_locale.AddCatalogLookupPathPrefix("locale");
-#ifndef __WXMSW__
-    g_locale.AddCatalogLookupPathPrefix("/usr/share/locale");
-    g_locale.AddCatalogLookupPathPrefix("/usr/local/share/locale");
-#endif
-    g_locale.AddCatalog("wxstd"); // wxWidgets standard translations, if any
-    g_locale.AddCatalog("bitcoin");
-
-#ifdef __WXMSW__
-    HDC hdc = GetDC(NULL);
-    if (hdc)
-    {
-        nScaleX = GetDeviceCaps(hdc, LOGPIXELSX) / 96.0;
-        nScaleY = GetDeviceCaps(hdc, LOGPIXELSY) / 96.0;
-        ReleaseDC(NULL, hdc);
-    }
-#endif
-
-    return AppInit(argc, argv);
-}
-
-int CMyApp::OnExit()
-{
-    Shutdown(NULL);
-    return wxApp::OnExit();
-}
-
-bool CMyApp::OnExceptionInMainLoop()
-{
-    try
-    {
-        throw;
-    }
-    catch (std::exception& e)
-    {
-        PrintException(&e, "CMyApp::OnExceptionInMainLoop()");
-        wxLogWarning("Exception %s %s", typeid(e).name(), e.what());
-        Sleep(1000);
-        throw;
-    }
-    catch (...)
-    {
-        PrintException(NULL, "CMyApp::OnExceptionInMainLoop()");
-        wxLogWarning("Unknown exception");
-        Sleep(1000);
-        throw;
-    }
-    return true;
-}
-
-void CMyApp::OnUnhandledException()
-{
-    // this shows how we may let some exception propagate uncaught
-    try
-    {
-        throw;
-    }
-    catch (std::exception& e)
-    {
-        PrintException(&e, "CMyApp::OnUnhandledException()");
-        wxLogWarning("Exception %s %s", typeid(e).name(), e.what());
-        Sleep(1000);
-        throw;
-    }
-    catch (...)
-    {
-        PrintException(NULL, "CMyApp::OnUnhandledException()");
-        wxLogWarning("Unknown exception");
-        Sleep(1000);
-        throw;
-    }
-}
-
-void CMyApp::OnFatalException()
-{
-    wxMessageBox(_("Program has crashed and will terminate.  "), "Bitcoin", wxOK | wxICON_ERROR);
-}
diff --git a/src/ui.h b/src/ui.h
deleted file mode 100644 (file)
index 2a128a7..0000000
--- a/src/ui.h
+++ /dev/null
@@ -1,353 +0,0 @@
-// Copyright (c) 2009-2010 Satoshi Nakamoto
-// Copyright (c) 2011 The Bitcoin developers
-// Distributed under the MIT/X11 software license, see the accompanying
-// file license.txt or http://www.opensource.org/licenses/mit-license.php.
-#ifndef BITCOIN_UI_H
-#define BITCOIN_UI_H
-
-#include <boost/function.hpp>
-#include "wallet.h"
-
-DECLARE_EVENT_TYPE(wxEVT_UITHREADCALL, -1)
-
-
-
-extern wxLocale g_locale;
-
-
-
-void HandleCtrlA(wxKeyEvent& event);
-void UIThreadCall(boost::function0<void>);
-int ThreadSafeMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
-bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent);
-void CalledSetStatusBar(const std::string& strText, int nField);
-void MainFrameRepaint();
-void CreateMainWindow();
-void SetStartOnSystemStartup(bool fAutoStart);
-
-
-
-
-inline int MyMessageBox(const wxString& message, const wxString& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1)
-{
-#ifdef GUI
-    if (!fDaemon)
-        return wxMessageBox(message, caption, style, parent, x, y);
-#endif
-    printf("wxMessageBox %s: %s\n", std::string(caption).c_str(), std::string(message).c_str());
-    fprintf(stderr, "%s: %s\n", std::string(caption).c_str(), std::string(message).c_str());
-    return wxOK;
-}
-#define wxMessageBox  MyMessageBox
-
-
-
-
-
-
-class CMainFrame : public CMainFrameBase
-{
-protected:
-    // Event handlers
-    void OnNotebookPageChanged(wxNotebookEvent& event);
-    void OnClose(wxCloseEvent& event);
-    void OnIconize(wxIconizeEvent& event);
-    void OnMouseEvents(wxMouseEvent& event);
-    void OnKeyDown(wxKeyEvent& event) { HandleCtrlA(event); }
-    void OnIdle(wxIdleEvent& event);
-    void OnPaint(wxPaintEvent& event);
-    void OnPaintListCtrl(wxPaintEvent& event);
-    void OnMenuFileExit(wxCommandEvent& event);
-    void OnUpdateUIOptionsGenerate(wxUpdateUIEvent& event);
-    void OnMenuOptionsChangeYourAddress(wxCommandEvent& event);
-    void OnMenuOptionsEncryptWallet(wxCommandEvent& event);
-    void OnMenuOptionsChangeWalletPassphrase(wxCommandEvent& event);
-    void OnMenuOptionsOptions(wxCommandEvent& event);
-    void OnMenuHelpAbout(wxCommandEvent& event);
-    void OnButtonSend(wxCommandEvent& event);
-    void OnButtonAddressBook(wxCommandEvent& event);
-    void OnSetFocusAddress(wxFocusEvent& event);
-    void OnMouseEventsAddress(wxMouseEvent& event);
-    void OnButtonNew(wxCommandEvent& event);
-    void OnButtonCopy(wxCommandEvent& event);
-    void OnListColBeginDrag(wxListEvent& event);
-    void OnListItemActivated(wxListEvent& event);
-    void OnListItemActivatedProductsSent(wxListEvent& event);
-    void OnListItemActivatedOrdersSent(wxListEvent& event);
-    void OnListItemActivatedOrdersReceived(wxListEvent& event);
-       
-public:
-    /** Constructor */
-    CMainFrame(wxWindow* parent);
-    ~CMainFrame();
-
-    // Custom
-    enum
-    {
-        ALL = 0,
-        SENTRECEIVED = 1,
-        SENT = 2,
-        RECEIVED = 3,
-    };
-    int nPage;
-    wxListCtrl* m_listCtrl;
-    bool fShowGenerated;
-    bool fShowSent;
-    bool fShowReceived;
-    bool fRefreshListCtrl;
-    bool fRefreshListCtrlRunning;
-    bool fOnSetFocusAddress;
-    unsigned int nListViewUpdated;
-    bool fRefresh;
-
-    void OnUIThreadCall(wxCommandEvent& event);
-    int GetSortIndex(const std::string& strSort);
-    void InsertLine(bool fNew, int nIndex, uint256 hashKey, std::string strSort, const wxColour& colour, const wxString& str1, const wxString& str2, const wxString& str3, const wxString& str4, const wxString& str5);
-    bool DeleteLine(uint256 hashKey);
-    bool InsertTransaction(const CWalletTx& wtx, bool fNew, int nIndex=-1);
-    void RefreshListCtrl();
-    void RefreshStatusColumn();
-};
-
-
-
-
-class CTxDetailsDialog : public CTxDetailsDialogBase
-{
-protected:
-    // Event handlers
-    void OnButtonOK(wxCommandEvent& event);
-
-public:
-    /** Constructor */
-    CTxDetailsDialog(wxWindow* parent, CWalletTx wtx);
-
-    // State
-    CWalletTx wtx;
-};
-
-
-
-class COptionsDialog : public COptionsDialogBase
-{
-protected:
-    // Event handlers
-    void OnListBox(wxCommandEvent& event);
-    void OnKillFocusTransactionFee(wxFocusEvent& event);
-    void OnCheckBoxUseProxy(wxCommandEvent& event);
-    void OnKillFocusProxy(wxFocusEvent& event);
-
-    void OnButtonOK(wxCommandEvent& event);
-    void OnButtonCancel(wxCommandEvent& event);
-    void OnButtonApply(wxCommandEvent& event);
-
-public:
-    /** Constructor */
-    COptionsDialog(wxWindow* parent);
-
-    // Custom
-    bool fTmpStartOnSystemStartup;
-    bool fTmpMinimizeOnClose;
-    void SelectPage(int nPage);
-    CAddress GetProxyAddr();
-};
-
-
-
-class CAboutDialog : public CAboutDialogBase
-{
-protected:
-    // Event handlers
-    void OnButtonOK(wxCommandEvent& event);
-
-public:
-    /** Constructor */
-    CAboutDialog(wxWindow* parent);
-};
-
-
-
-class CSendDialog : public CSendDialogBase
-{
-protected:
-    // Event handlers
-    void OnKeyDown(wxKeyEvent& event) { HandleCtrlA(event); }
-    void OnKillFocusAmount(wxFocusEvent& event);
-    void OnButtonAddressBook(wxCommandEvent& event);
-    void OnButtonPaste(wxCommandEvent& event);
-    void OnButtonSend(wxCommandEvent& event);
-    void OnButtonCancel(wxCommandEvent& event);
-       
-public:
-    /** Constructor */
-    CSendDialog(wxWindow* parent, const wxString& strAddress="");
-
-    // Custom
-    bool fEnabledPrev;
-    std::string strFromSave;
-    std::string strMessageSave;
-};
-
-
-
-class CSendingDialog : public CSendingDialogBase
-{
-public:
-    // Event handlers
-    void OnClose(wxCloseEvent& event);
-    void OnButtonOK(wxCommandEvent& event);
-    void OnButtonCancel(wxCommandEvent& event);
-    void OnPaint(wxPaintEvent& event);
-       
-public:
-    /** Constructor */
-    CSendingDialog(wxWindow* parent, const CAddress& addrIn, int64 nPriceIn, const CWalletTx& wtxIn);
-    ~CSendingDialog();
-
-    // State
-    CAddress addr;
-    int64 nPrice;
-    CWalletTx wtx;
-    wxDateTime start;
-    char pszStatus[10000];
-    bool fCanCancel;
-    bool fAbort;
-    bool fSuccess;
-    bool fUIDone;
-    bool fWorkDone;
-
-    void Close();
-    void Repaint();
-    bool Status();
-    bool Status(const std::string& str);
-    bool Error(const std::string& str);
-    void StartTransfer();
-    void OnReply2(CDataStream& vRecv);
-    void OnReply3(CDataStream& vRecv);
-};
-
-void SendingDialogStartTransfer(void* parg);
-void SendingDialogOnReply2(void* parg, CDataStream& vRecv);
-void SendingDialogOnReply3(void* parg, CDataStream& vRecv);
-
-
-
-class CAddressBookDialog : public CAddressBookDialogBase
-{
-protected:
-    // Event handlers
-    void OnNotebookPageChanged(wxNotebookEvent& event);
-    void OnListEndLabelEdit(wxListEvent& event);
-    void OnListItemSelected(wxListEvent& event);
-    void OnListItemActivated(wxListEvent& event);
-    void OnButtonDelete(wxCommandEvent& event);
-    void OnButtonCopy(wxCommandEvent& event);
-    void OnButtonEdit(wxCommandEvent& event);
-    void OnButtonNew(wxCommandEvent& event);
-    void OnButtonOK(wxCommandEvent& event);
-    void OnButtonCancel(wxCommandEvent& event);
-    void OnClose(wxCloseEvent& event);
-
-public:
-    /** Constructor */
-    CAddressBookDialog(wxWindow* parent, const wxString& strInitSelected, int nPageIn, bool fDuringSendIn);
-
-    // Custom
-    enum
-    {
-        SENDING = 0,
-        RECEIVING = 1,
-    };
-    int nPage;
-    wxListCtrl* m_listCtrl;
-    bool fDuringSend;
-    wxString GetAddress();
-    wxString GetSelectedAddress();
-    wxString GetSelectedSendingAddress();
-    wxString GetSelectedReceivingAddress();
-    bool CheckIfMine(const std::string& strAddress, const std::string& strTitle);
-};
-
-
-
-class CGetTextFromUserDialog : public CGetTextFromUserDialogBase
-{
-protected:
-    // Event handlers
-    void OnButtonOK(wxCommandEvent& event)     { EndModal(true); }
-    void OnButtonCancel(wxCommandEvent& event) { EndModal(false); }
-    void OnClose(wxCloseEvent& event)          { EndModal(false); }
-
-    void OnKeyDown(wxKeyEvent& event)
-    {
-        if (event.GetKeyCode() == '\r' || event.GetKeyCode() == WXK_NUMPAD_ENTER)
-            EndModal(true);
-        else
-            HandleCtrlA(event);
-    }
-
-public:
-    /** Constructor */
-    CGetTextFromUserDialog(wxWindow* parent,
-                           const std::string& strCaption,
-                           const std::string& strMessage1,
-                           const std::string& strValue1="",
-                           const std::string& strMessage2="",
-                           const std::string& strValue2="") : CGetTextFromUserDialogBase(parent, wxID_ANY, strCaption)
-    {
-        int x = GetSize().GetWidth();
-        int y = GetSize().GetHeight();
-        m_staticTextMessage1->SetLabel(strMessage1);
-        m_textCtrl1->SetValue(strValue1);
-        y += wxString(strMessage1).Freq('\n') * 14;
-        if (!strMessage2.empty())
-        {
-            m_staticTextMessage2->Show(true);
-            m_staticTextMessage2->SetLabel(strMessage2);
-            m_textCtrl2->Show(true);
-            m_textCtrl2->SetValue(strValue2);
-            y += 46 + wxString(strMessage2).Freq('\n') * 14;
-        }
-#ifndef __WXMSW__
-        x = x * 114 / 100;
-        y = y * 114 / 100;
-#endif
-        SetSize(x, y);
-    }
-
-    // Custom
-    std::string GetValue()  { return (std::string)m_textCtrl1->GetValue(); }
-    std::string GetValue1() { return (std::string)m_textCtrl1->GetValue(); }
-    std::string GetValue2() { return (std::string)m_textCtrl2->GetValue(); }
-};
-
-
-
-class CMyTaskBarIcon : public wxTaskBarIcon
-{
-protected:
-    // Event handlers
-    void OnLeftButtonDClick(wxTaskBarIconEvent& event);
-    void OnMenuRestore(wxCommandEvent& event);
-    void OnMenuSend(wxCommandEvent& event);
-    void OnMenuOptions(wxCommandEvent& event);
-    void OnUpdateUIGenerate(wxUpdateUIEvent& event);
-    void OnMenuGenerate(wxCommandEvent& event);
-    void OnMenuExit(wxCommandEvent& event);
-
-public:
-    CMyTaskBarIcon() : wxTaskBarIcon()
-    {
-        Show(true);
-    }
-
-    void Show(bool fShow=true);
-    void Hide();
-    void Restore();
-    void UpdateTooltip();
-    virtual wxMenu* CreatePopupMenu();
-
-DECLARE_EVENT_TABLE()
-};
-
-#endif
diff --git a/src/uibase.cpp b/src/uibase.cpp
deleted file mode 100644 (file)
index 6d219ad..0000000
+++ /dev/null
@@ -1,1018 +0,0 @@
-///////////////////////////////////////////////////////////////////////////
-// C++ code generated with wxFormBuilder (version Dec 21 2009)
-// http://www.wxformbuilder.org/
-//
-// PLEASE DO "NOT" EDIT THIS FILE!
-///////////////////////////////////////////////////////////////////////////
-
-#include "uibase.h"
-
-#include "xpm/about.xpm"
-#include "xpm/addressbook20.xpm"
-#include "xpm/check.xpm"
-#include "xpm/send20.xpm"
-
-///////////////////////////////////////////////////////////////////////////
-
-CMainFrameBase::CMainFrameBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
-{
-       this->SetSizeHints( wxDefaultSize, wxDefaultSize );
-       this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
-       
-       m_menubar = new wxMenuBar( 0 );
-       m_menuFile = new wxMenu();
-       wxMenuItem* m_menuFileExit;
-       m_menuFileExit = new wxMenuItem( m_menuFile, wxID_EXIT, wxString( _("E&xit") ) , wxEmptyString, wxITEM_NORMAL );
-       m_menuFile->Append( m_menuFileExit );
-       
-       m_menubar->Append( m_menuFile, _("&File") );
-       
-       m_menuOptions = new wxMenu();
-       wxMenuItem* m_menuOptionsChangeYourAddress;
-       m_menuOptionsChangeYourAddress = new wxMenuItem( m_menuOptions, wxID_ANY, wxString( _("&Your Receiving Addresses...") ) , wxEmptyString, wxITEM_NORMAL );
-       m_menuOptions->Append( m_menuOptionsChangeYourAddress );
-       
-       m_menuOptionsEncryptWallet = new wxMenuItem( m_menuOptions, wxID_ANY, wxString( _("&Encrypt Wallet...") ) , wxEmptyString, wxITEM_NORMAL );
-       m_menuOptions->Append( m_menuOptionsEncryptWallet );
-       
-       m_menuOptionsChangeWalletPassphrase = new wxMenuItem( m_menuOptions, wxID_ANY, wxString( _("&Change Wallet Encryption Passphrase...") ) , wxEmptyString, wxITEM_NORMAL );
-       m_menuOptions->Append( m_menuOptionsChangeWalletPassphrase );
-       
-       wxMenuItem* m_menuOptionsOptions;
-       m_menuOptionsOptions = new wxMenuItem( m_menuOptions, wxID_PREFERENCES, wxString( _("&Options...") ) , wxEmptyString, wxITEM_NORMAL );
-       m_menuOptions->Append( m_menuOptionsOptions );
-       
-       m_menubar->Append( m_menuOptions, _("&Settings") );
-       
-       m_menuHelp = new wxMenu();
-       wxMenuItem* m_menuHelpAbout;
-       m_menuHelpAbout = new wxMenuItem( m_menuHelp, wxID_ABOUT, wxString( _("&About...") ) , wxEmptyString, wxITEM_NORMAL );
-       m_menuHelp->Append( m_menuHelpAbout );
-       
-       m_menubar->Append( m_menuHelp, _("&Help") );
-       
-       this->SetMenuBar( m_menubar );
-       
-       m_toolBar = this->CreateToolBar( wxTB_FLAT|wxTB_HORZ_TEXT, wxID_ANY );
-       m_toolBar->SetToolBitmapSize( wxSize( 20,20 ) );
-       m_toolBar->SetToolSeparation( 1 );
-       m_toolBar->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxEmptyString ) );
-       
-       m_toolBar->AddTool( wxID_BUTTONSEND, _("Send Coins"), wxBitmap( send20_xpm ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString );
-       m_toolBar->AddTool( wxID_BUTTONRECEIVE, _("Address Book"), wxBitmap( addressbook20_xpm ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString );
-       m_toolBar->Realize();
-       
-       m_statusBar = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );
-       wxBoxSizer* bSizer2;
-       bSizer2 = new wxBoxSizer( wxVERTICAL );
-       
-       
-       bSizer2->Add( 0, 2, 0, wxEXPAND, 5 );
-       
-       wxBoxSizer* bSizer85;
-       bSizer85 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_staticText32 = new wxStaticText( this, wxID_ANY, _("Your Bitcoin Address:"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticText32->Wrap( -1 );
-       bSizer85->Add( m_staticText32, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
-       
-       m_textCtrlAddress = new wxTextCtrl( this, wxID_TEXTCTRLADDRESS, wxEmptyString, wxDefaultPosition, wxSize( 340,-1 ), wxTE_READONLY );
-       bSizer85->Add( m_textCtrlAddress, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
-       
-       m_buttonNew = new wxButton( this, wxID_BUTTONNEW, _(" &New... "), wxDefaultPosition, wxSize( -1,-1 ), wxBU_EXACTFIT );
-       bSizer85->Add( m_buttonNew, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
-       
-       m_buttonCopy = new wxButton( this, wxID_BUTTONCOPY, _(" &Copy to Clipboard "), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
-       bSizer85->Add( m_buttonCopy, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
-       
-       
-       bSizer85->Add( 0, 0, 0, wxEXPAND, 5 );
-       
-       bSizer2->Add( bSizer85, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
-       
-       wxBoxSizer* bSizer3;
-       bSizer3 = new wxBoxSizer( wxHORIZONTAL );
-       
-       wxBoxSizer* bSizer66;
-       bSizer66 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_staticText41 = new wxStaticText( this, wxID_ANY, _("Balance:"), wxDefaultPosition, wxSize( -1,15 ), 0 );
-       m_staticText41->Wrap( -1 );
-       bSizer66->Add( m_staticText41, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
-       
-       m_staticTextBalance = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 120,15 ), wxALIGN_RIGHT|wxST_NO_AUTORESIZE );
-       m_staticTextBalance->Wrap( -1 );
-       m_staticTextBalance->SetFont( wxFont( 8, 70, 90, 90, false, wxEmptyString ) );
-       m_staticTextBalance->SetBackgroundColour( wxColour( 255, 255, 255 ) );
-       
-       bSizer66->Add( m_staticTextBalance, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-       
-       bSizer3->Add( bSizer66, 1, wxEXPAND|wxALL, 5 );
-       
-       
-       bSizer3->Add( 0, 0, 0, wxEXPAND, 5 );
-       
-       wxString m_choiceFilterChoices[] = { _(" All"), _(" Sent"), _(" Received"), _(" In Progress") };
-       int m_choiceFilterNChoices = sizeof( m_choiceFilterChoices ) / sizeof( wxString );
-       m_choiceFilter = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( 110,-1 ), m_choiceFilterNChoices, m_choiceFilterChoices, 0 );
-       m_choiceFilter->SetSelection( 0 );
-       m_choiceFilter->Hide();
-       
-       bSizer3->Add( m_choiceFilter, 0, wxALIGN_BOTTOM|wxTOP|wxRIGHT|wxLEFT, 5 );
-       
-       bSizer2->Add( bSizer3, 0, wxEXPAND, 5 );
-       
-       m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-       m_panel9 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-       wxBoxSizer* bSizer11;
-       bSizer11 = new wxBoxSizer( wxVERTICAL );
-       
-       m_listCtrlAll = new wxListCtrl( m_panel9, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING );
-       bSizer11->Add( m_listCtrlAll, 1, wxEXPAND, 5 );
-       
-       m_panel9->SetSizer( bSizer11 );
-       m_panel9->Layout();
-       bSizer11->Fit( m_panel9 );
-       m_notebook->AddPage( m_panel9, _("All Transactions"), true );
-       m_panel91 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-       wxBoxSizer* bSizer111;
-       bSizer111 = new wxBoxSizer( wxVERTICAL );
-       
-       m_listCtrlSentReceived = new wxListCtrl( m_panel91, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING );
-       bSizer111->Add( m_listCtrlSentReceived, 1, wxEXPAND, 5 );
-       
-       m_panel91->SetSizer( bSizer111 );
-       m_panel91->Layout();
-       bSizer111->Fit( m_panel91 );
-       m_notebook->AddPage( m_panel91, _("Sent/Received"), false );
-       m_panel92 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-       wxBoxSizer* bSizer112;
-       bSizer112 = new wxBoxSizer( wxVERTICAL );
-       
-       m_listCtrlSent = new wxListCtrl( m_panel92, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING );
-       bSizer112->Add( m_listCtrlSent, 1, wxEXPAND, 5 );
-       
-       m_panel92->SetSizer( bSizer112 );
-       m_panel92->Layout();
-       bSizer112->Fit( m_panel92 );
-       m_notebook->AddPage( m_panel92, _("Sent"), false );
-       m_panel93 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-       wxBoxSizer* bSizer113;
-       bSizer113 = new wxBoxSizer( wxVERTICAL );
-       
-       m_listCtrlReceived = new wxListCtrl( m_panel93, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING );
-       bSizer113->Add( m_listCtrlReceived, 1, wxEXPAND, 5 );
-       
-       m_panel93->SetSizer( bSizer113 );
-       m_panel93->Layout();
-       bSizer113->Fit( m_panel93 );
-       m_notebook->AddPage( m_panel93, _("Received"), false );
-       
-       bSizer2->Add( m_notebook, 1, wxEXPAND, 5 );
-       
-       this->SetSizer( bSizer2 );
-       this->Layout();
-       
-       // Connect Events
-       this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CMainFrameBase::OnClose ) );
-       this->Connect( wxEVT_ICONIZE, wxIconizeEventHandler( CMainFrameBase::OnIconize ) );
-       this->Connect( wxEVT_IDLE, wxIdleEventHandler( CMainFrameBase::OnIdle ) );
-       this->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_MIDDLE_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_MIDDLE_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_MOTION, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_MIDDLE_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_RIGHT_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_LEAVE_WINDOW, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_ENTER_WINDOW, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaint ) );
-       this->Connect( m_menuFileExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuFileExit ) );
-       this->Connect( m_menuOptionsChangeYourAddress->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsChangeYourAddress ) );
-       this->Connect( m_menuOptionsEncryptWallet->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsEncryptWallet ) );
-       this->Connect( m_menuOptionsChangeWalletPassphrase->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsChangeWalletPassphrase ) );
-       this->Connect( m_menuOptionsOptions->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsOptions ) );
-       this->Connect( m_menuHelpAbout->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuHelpAbout ) );
-       this->Connect( wxID_BUTTONSEND, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonSend ) );
-       this->Connect( wxID_BUTTONRECEIVE, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonAddressBook ) );
-       m_textCtrlAddress->Connect( wxEVT_KEY_DOWN, wxKeyEventHandler( CMainFrameBase::OnKeyDown ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_MIDDLE_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_MIDDLE_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_MOTION, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_MIDDLE_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_RIGHT_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_LEAVE_WINDOW, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_ENTER_WINDOW, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( CMainFrameBase::OnSetFocusAddress ), NULL, this );
-       m_buttonNew->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonNew ), NULL, this );
-       m_buttonCopy->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonCopy ), NULL, this );
-       m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( CMainFrameBase::OnNotebookPageChanged ), NULL, this );
-       m_listCtrlAll->Connect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );
-       m_listCtrlAll->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );
-       m_listCtrlAll->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );
-       m_listCtrlSentReceived->Connect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );
-       m_listCtrlSentReceived->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );
-       m_listCtrlSentReceived->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );
-       m_listCtrlSent->Connect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );
-       m_listCtrlSent->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );
-       m_listCtrlSent->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );
-       m_listCtrlReceived->Connect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );
-       m_listCtrlReceived->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );
-       m_listCtrlReceived->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );
-}
-
-CMainFrameBase::~CMainFrameBase()
-{
-       // Disconnect Events
-       this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CMainFrameBase::OnClose ) );
-       this->Disconnect( wxEVT_ICONIZE, wxIconizeEventHandler( CMainFrameBase::OnIconize ) );
-       this->Disconnect( wxEVT_IDLE, wxIdleEventHandler( CMainFrameBase::OnIdle ) );
-       this->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_MIDDLE_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_MIDDLE_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_MOTION, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_MIDDLE_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_RIGHT_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_LEAVE_WINDOW, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_ENTER_WINDOW, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );
-       this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaint ) );
-       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuFileExit ) );
-       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsChangeYourAddress ) );
-       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsEncryptWallet ) );
-       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsChangeWalletPassphrase ) );
-       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsOptions ) );
-       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuHelpAbout ) );
-       this->Disconnect( wxID_BUTTONSEND, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonSend ) );
-       this->Disconnect( wxID_BUTTONRECEIVE, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonAddressBook ) );
-       m_textCtrlAddress->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( CMainFrameBase::OnKeyDown ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_MIDDLE_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_MIDDLE_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_MOTION, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_MIDDLE_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_RIGHT_DCLICK, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_LEAVE_WINDOW, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_ENTER_WINDOW, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( CMainFrameBase::OnMouseEventsAddress ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( CMainFrameBase::OnSetFocusAddress ), NULL, this );
-       m_buttonNew->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonNew ), NULL, this );
-       m_buttonCopy->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonCopy ), NULL, this );
-       m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( CMainFrameBase::OnNotebookPageChanged ), NULL, this );
-       m_listCtrlAll->Disconnect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );
-       m_listCtrlAll->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );
-       m_listCtrlAll->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );
-       m_listCtrlSentReceived->Disconnect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );
-       m_listCtrlSentReceived->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );
-       m_listCtrlSentReceived->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );
-       m_listCtrlSent->Disconnect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );
-       m_listCtrlSent->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );
-       m_listCtrlSent->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );
-       m_listCtrlReceived->Disconnect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );
-       m_listCtrlReceived->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );
-       m_listCtrlReceived->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );
-}
-
-CTxDetailsDialogBase::CTxDetailsDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
-{
-       this->SetSizeHints( wxDefaultSize, wxDefaultSize );
-       
-       wxBoxSizer* bSizer64;
-       bSizer64 = new wxBoxSizer( wxVERTICAL );
-       
-       wxBoxSizer* bSizer66;
-       bSizer66 = new wxBoxSizer( wxVERTICAL );
-       
-       m_htmlWin = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
-       bSizer66->Add( m_htmlWin, 1, wxALL|wxEXPAND, 5 );
-       
-       bSizer64->Add( bSizer66, 1, wxEXPAND, 5 );
-       
-       wxBoxSizer* bSizer65;
-       bSizer65 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer65->Add( m_buttonOK, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       bSizer64->Add( bSizer65, 0, wxALIGN_RIGHT, 5 );
-       
-       this->SetSizer( bSizer64 );
-       this->Layout();
-       
-       // Connect Events
-       m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CTxDetailsDialogBase::OnButtonOK ), NULL, this );
-}
-
-CTxDetailsDialogBase::~CTxDetailsDialogBase()
-{
-       // Disconnect Events
-       m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CTxDetailsDialogBase::OnButtonOK ), NULL, this );
-}
-
-COptionsDialogBase::COptionsDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
-{
-       this->SetSizeHints( wxDefaultSize, wxDefaultSize );
-       
-       wxBoxSizer* bSizer55;
-       bSizer55 = new wxBoxSizer( wxVERTICAL );
-       
-       wxBoxSizer* bSizer66;
-       bSizer66 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_listBox = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxSize( 110,-1 ), 0, NULL, wxLB_NEEDED_SB|wxLB_SINGLE ); 
-       bSizer66->Add( m_listBox, 0, wxEXPAND|wxRIGHT, 5 );
-       
-       m_scrolledWindow = new wxScrolledWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-       m_scrolledWindow->SetScrollRate( 5, 5 );
-       wxBoxSizer* bSizer63;
-       bSizer63 = new wxBoxSizer( wxVERTICAL );
-       
-       m_panelMain = new wxPanel( m_scrolledWindow, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-       wxBoxSizer* bSizer69;
-       bSizer69 = new wxBoxSizer( wxVERTICAL );
-       
-       
-       bSizer69->Add( 0, 16, 0, wxEXPAND, 5 );
-       
-       m_checkBoxStartOnSystemStartup = new wxCheckBox( m_panelMain, wxID_ANY, _("&Start Bitcoin on system startup"), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer69->Add( m_checkBoxStartOnSystemStartup, 0, wxALL, 5 );
-       
-       m_checkBoxMinimizeToTray = new wxCheckBox( m_panelMain, wxID_ANY, _("&Minimize to the tray instead of the taskbar"), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer69->Add( m_checkBoxMinimizeToTray, 0, wxALL, 5 );
-       
-       m_checkBoxUseUPnP = new wxCheckBox( m_panelMain, wxID_ANY, _("Map port using &UPnP"), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer69->Add( m_checkBoxUseUPnP, 0, wxALL, 5 );
-       
-       m_checkBoxMinimizeOnClose = new wxCheckBox( m_panelMain, wxID_ANY, _("M&inimize to the tray on close"), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer69->Add( m_checkBoxMinimizeOnClose, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
-       
-       wxBoxSizer* bSizer102;
-       bSizer102 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_checkBoxUseProxy = new wxCheckBox( m_panelMain, wxID_ANY, _("&Connect through socks4 proxy (requires restart to apply): "), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer102->Add( m_checkBoxUseProxy, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
-       
-       bSizer69->Add( bSizer102, 1, wxEXPAND, 5 );
-       
-       wxBoxSizer* bSizer103;
-       bSizer103 = new wxBoxSizer( wxHORIZONTAL );
-       
-       
-       bSizer103->Add( 18, 0, 0, 0, 5 );
-       
-       m_staticTextProxyIP = new wxStaticText( m_panelMain, wxID_ANY, _("Proxy &IP:"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticTextProxyIP->Wrap( -1 );
-       bSizer103->Add( m_staticTextProxyIP, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
-       
-       m_textCtrlProxyIP = new wxTextCtrl( m_panelMain, wxID_PROXYIP, wxEmptyString, wxDefaultPosition, wxSize( 140,-1 ), 0 );
-       m_textCtrlProxyIP->SetMaxLength( 15 ); 
-       bSizer103->Add( m_textCtrlProxyIP, 0, wxALIGN_CENTER_VERTICAL, 5 );
-       
-       m_staticTextProxyPort = new wxStaticText( m_panelMain, wxID_ANY, _(" &Port:"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticTextProxyPort->Wrap( -1 );
-       bSizer103->Add( m_staticTextProxyPort, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
-       
-       m_textCtrlProxyPort = new wxTextCtrl( m_panelMain, wxID_PROXYPORT, wxEmptyString, wxDefaultPosition, wxSize( 55,-1 ), 0 );
-       m_textCtrlProxyPort->SetMaxLength( 5 ); 
-       bSizer103->Add( m_textCtrlProxyPort, 0, wxALIGN_CENTER_VERTICAL, 5 );
-       
-       bSizer69->Add( bSizer103, 1, wxEXPAND, 5 );
-       
-       
-       bSizer69->Add( 0, 1, 0, 0, 5 );
-       
-       m_staticText32 = new wxStaticText( m_panelMain, wxID_ANY, _("Optional transaction fee per KB that helps make sure your transactions are processed quickly.  Most transactions are 1KB.  Fee 0.01 recommended."), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticText32->Wrap( 365 );
-       bSizer69->Add( m_staticText32, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
-       
-       wxBoxSizer* bSizer56;
-       bSizer56 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_staticText31 = new wxStaticText( m_panelMain, wxID_ANY, _("Pay transaction fee:"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticText31->Wrap( -1 );
-       bSizer56->Add( m_staticText31, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
-       
-       m_textCtrlTransactionFee = new wxTextCtrl( m_panelMain, wxID_TRANSACTIONFEE, wxEmptyString, wxDefaultPosition, wxSize( 70,-1 ), 0 );
-       bSizer56->Add( m_textCtrlTransactionFee, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-       
-       bSizer69->Add( bSizer56, 0, wxEXPAND, 5 );
-       
-       m_panelMain->SetSizer( bSizer69 );
-       m_panelMain->Layout();
-       bSizer69->Fit( m_panelMain );
-       bSizer63->Add( m_panelMain, 0, wxEXPAND, 5 );
-       
-       m_panelTest2 = new wxPanel( m_scrolledWindow, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-       wxBoxSizer* bSizer64;
-       bSizer64 = new wxBoxSizer( wxVERTICAL );
-       
-       
-       bSizer64->Add( 0, 16, 0, wxEXPAND, 5 );
-       
-       m_staticText321 = new wxStaticText( m_panelTest2, wxID_ANY, _("// [don't translate] Test panel 2 for future expansion"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticText321->Wrap( -1 );
-       bSizer64->Add( m_staticText321, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-       
-       m_staticText69 = new wxStaticText( m_panelTest2, wxID_ANY, _("// [don't translate] Let's not start multiple pages until the first page is filled up"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticText69->Wrap( -1 );
-       bSizer64->Add( m_staticText69, 0, wxALL, 5 );
-       
-       m_panelTest2->SetSizer( bSizer64 );
-       m_panelTest2->Layout();
-       bSizer64->Fit( m_panelTest2 );
-       bSizer63->Add( m_panelTest2, 0, wxEXPAND, 5 );
-       
-       m_scrolledWindow->SetSizer( bSizer63 );
-       m_scrolledWindow->Layout();
-       bSizer63->Fit( m_scrolledWindow );
-       bSizer66->Add( m_scrolledWindow, 1, wxEXPAND|wxLEFT, 5 );
-       
-       bSizer55->Add( bSizer66, 1, wxEXPAND|wxALL, 9 );
-       
-       wxBoxSizer* bSizer58;
-       bSizer58 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer58->Add( m_buttonOK, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer58->Add( m_buttonCancel, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonApply = new wxButton( this, wxID_APPLY, _("&Apply"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer58->Add( m_buttonApply, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       bSizer55->Add( bSizer58, 0, wxALIGN_RIGHT, 5 );
-       
-       this->SetSizer( bSizer55 );
-       this->Layout();
-       
-       // Connect Events
-       m_listBox->Connect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( COptionsDialogBase::OnListBox ), NULL, this );
-       m_checkBoxMinimizeToTray->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnCheckBoxMinimizeToTray ), NULL, this );
-       m_checkBoxUseProxy->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnCheckBoxUseProxy ), NULL, this );
-       m_textCtrlProxyIP->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( COptionsDialogBase::OnKillFocusProxy ), NULL, this );
-       m_textCtrlProxyPort->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( COptionsDialogBase::OnKillFocusProxy ), NULL, this );
-       m_textCtrlTransactionFee->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( COptionsDialogBase::OnKillFocusTransactionFee ), NULL, this );
-       m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnButtonCancel ), NULL, this );
-       m_buttonApply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnButtonApply ), NULL, this );
-}
-
-COptionsDialogBase::~COptionsDialogBase()
-{
-       // Disconnect Events
-       m_listBox->Disconnect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( COptionsDialogBase::OnListBox ), NULL, this );
-       m_checkBoxMinimizeToTray->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnCheckBoxMinimizeToTray ), NULL, this );
-       m_checkBoxUseProxy->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnCheckBoxUseProxy ), NULL, this );
-       m_textCtrlProxyIP->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( COptionsDialogBase::OnKillFocusProxy ), NULL, this );
-       m_textCtrlProxyPort->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( COptionsDialogBase::OnKillFocusProxy ), NULL, this );
-       m_textCtrlTransactionFee->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( COptionsDialogBase::OnKillFocusTransactionFee ), NULL, this );
-       m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnButtonCancel ), NULL, this );
-       m_buttonApply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( COptionsDialogBase::OnButtonApply ), NULL, this );
-}
-
-CAboutDialogBase::CAboutDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
-{
-       this->SetSizeHints( wxDefaultSize, wxDefaultSize );
-       
-       wxBoxSizer* bSizer63;
-       bSizer63 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_bitmap = new wxStaticBitmap( this, wxID_ANY, wxBitmap( about_xpm ), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer63->Add( m_bitmap, 0, 0, 5 );
-       
-       wxBoxSizer* bSizer60;
-       bSizer60 = new wxBoxSizer( wxVERTICAL );
-       
-       wxBoxSizer* bSizer62;
-       bSizer62 = new wxBoxSizer( wxHORIZONTAL );
-       
-       wxBoxSizer* bSizer631;
-       bSizer631 = new wxBoxSizer( wxVERTICAL );
-       
-       
-       bSizer631->Add( 0, 65, 0, wxEXPAND, 5 );
-       
-       wxBoxSizer* bSizer64;
-       bSizer64 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_staticText40 = new wxStaticText( this, wxID_ANY, _("Bitcoin "), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticText40->Wrap( -1 );
-       m_staticText40->SetFont( wxFont( 10, 74, 90, 92, false, wxT("Tahoma") ) );
-       
-       bSizer64->Add( m_staticText40, 0, wxALIGN_BOTTOM|wxTOP|wxBOTTOM|wxLEFT, 5 );
-       
-       m_staticTextVersion = new wxStaticText( this, wxID_ANY, _("version"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticTextVersion->Wrap( -1 );
-       m_staticTextVersion->SetFont( wxFont( 10, 74, 90, 90, false, wxT("Tahoma") ) );
-       
-       bSizer64->Add( m_staticTextVersion, 0, wxALIGN_BOTTOM|wxTOP|wxBOTTOM|wxRIGHT, 5 );
-       
-       bSizer631->Add( bSizer64, 0, wxEXPAND, 5 );
-       
-       
-       bSizer631->Add( 0, 4, 0, wxEXPAND, 5 );
-       
-       m_staticTextMain = new wxStaticText( this, wxID_ANY, _("Copyright (c) 2009-2011 Bitcoin Developers\n\nThis is experimental software.\n\nDistributed under the MIT/X11 software license, see the accompanying file \nlicense.txt or http://www.opensource.org/licenses/mit-license.php.\n\nThis product includes software developed by the OpenSSL Project for use in the \nOpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \nEric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard."), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticTextMain->Wrap( -1 );
-       bSizer631->Add( m_staticTextMain, 0, wxALL, 5 );
-       
-       
-       bSizer631->Add( 0, 0, 0, wxEXPAND, 5 );
-       
-       bSizer62->Add( bSizer631, 1, wxEXPAND, 5 );
-       
-       bSizer60->Add( bSizer62, 1, wxEXPAND, 5 );
-       
-       wxBoxSizer* bSizer61;
-       bSizer61 = new wxBoxSizer( wxHORIZONTAL );
-       
-       
-       bSizer61->Add( 0, 0, 1, wxEXPAND, 5 );
-       
-       m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer61->Add( m_buttonOK, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 6 );
-       
-       bSizer60->Add( bSizer61, 0, wxALIGN_RIGHT|wxEXPAND|wxRIGHT, 2 );
-       
-       bSizer63->Add( bSizer60, 1, wxEXPAND|wxLEFT, 5 );
-       
-       this->SetSizer( bSizer63 );
-       this->Layout();
-       
-       // Connect Events
-       m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAboutDialogBase::OnButtonOK ), NULL, this );
-}
-
-CAboutDialogBase::~CAboutDialogBase()
-{
-       // Disconnect Events
-       m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAboutDialogBase::OnButtonOK ), NULL, this );
-}
-
-CSendDialogBase::CSendDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
-{
-       this->SetSizeHints( wxDefaultSize, wxDefaultSize );
-       
-       wxBoxSizer* bSizer21;
-       bSizer21 = new wxBoxSizer( wxVERTICAL );
-       
-       
-       bSizer21->Add( 0, 5, 0, wxEXPAND, 5 );
-       
-       wxFlexGridSizer* fgSizer1;
-       fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
-       fgSizer1->AddGrowableCol( 1 );
-       fgSizer1->SetFlexibleDirection( wxBOTH );
-       fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-       
-       
-       fgSizer1->Add( 0, 0, 0, wxEXPAND, 5 );
-       
-       m_staticTextInstructions = new wxStaticText( this, wxID_ANY, _("Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticTextInstructions->Wrap( -1 );
-       fgSizer1->Add( m_staticTextInstructions, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
-       
-       wxBoxSizer* bSizer47;
-       bSizer47 = new wxBoxSizer( wxHORIZONTAL );
-       
-       bSizer47->SetMinSize( wxSize( 70,-1 ) ); 
-       
-       bSizer47->Add( 0, 0, 1, wxEXPAND, 5 );
-       
-       m_bitmapCheckMark = new wxStaticBitmap( this, wxID_ANY, wxBitmap( check_xpm ), wxDefaultPosition, wxSize( 16,16 ), 0 );
-       bSizer47->Add( m_bitmapCheckMark, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
-       
-       m_staticText36 = new wxStaticText( this, wxID_ANY, _("Pay &To:"), wxDefaultPosition, wxSize( -1,-1 ), wxALIGN_RIGHT );
-       m_staticText36->Wrap( -1 );
-       bSizer47->Add( m_staticText36, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
-       
-       fgSizer1->Add( bSizer47, 1, wxEXPAND|wxLEFT, 5 );
-       
-       wxBoxSizer* bSizer19;
-       bSizer19 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_textCtrlAddress = new wxTextCtrl( this, wxID_TEXTCTRLPAYTO, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer19->Add( m_textCtrlAddress, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-       
-       wxBoxSizer* bSizer66;
-       bSizer66 = new wxBoxSizer( wxHORIZONTAL );
-       
-       m_buttonPaste = new wxButton( this, wxID_BUTTONPASTE, _("&Paste"), wxDefaultPosition, wxSize( -1,-1 ), wxBU_EXACTFIT );
-       bSizer66->Add( m_buttonPaste, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxEXPAND, 5 );
-       
-       m_buttonAddress = new wxButton( this, wxID_BUTTONADDRESSBOOK, _(" Address &Book..."), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer66->Add( m_buttonAddress, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxEXPAND, 5 );
-       
-       bSizer19->Add( bSizer66, 0, wxALIGN_CENTER_VERTICAL, 5 );
-       
-       fgSizer1->Add( bSizer19, 1, wxEXPAND|wxRIGHT, 5 );
-       
-       m_staticText19 = new wxStaticText( this, wxID_ANY, _("&Amount:"), wxDefaultPosition, wxSize( -1,-1 ), wxALIGN_RIGHT );
-       m_staticText19->Wrap( -1 );
-       fgSizer1->Add( m_staticText19, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_RIGHT, 5 );
-       
-       m_textCtrlAmount = new wxTextCtrl( this, wxID_TEXTCTRLAMOUNT, wxEmptyString, wxDefaultPosition, wxSize( 145,-1 ), 0 );
-       m_textCtrlAmount->SetMaxLength( 20 ); 
-       m_textCtrlAmount->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxEmptyString ) );
-       
-       fgSizer1->Add( m_textCtrlAmount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-       
-       m_staticText20 = new wxStaticText( this, wxID_ANY, _("T&ransfer:"), wxDefaultPosition, wxSize( -1,-1 ), wxALIGN_RIGHT );
-       m_staticText20->Wrap( -1 );
-       m_staticText20->Hide();
-       
-       fgSizer1->Add( m_staticText20, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxTOP|wxBOTTOM|wxLEFT, 5 );
-       
-       wxString m_choiceTransferTypeChoices[] = { _(" Standard") };
-       int m_choiceTransferTypeNChoices = sizeof( m_choiceTransferTypeChoices ) / sizeof( wxString );
-       m_choiceTransferType = new wxChoice( this, wxID_CHOICETRANSFERTYPE, wxDefaultPosition, wxDefaultSize, m_choiceTransferTypeNChoices, m_choiceTransferTypeChoices, 0 );
-       m_choiceTransferType->SetSelection( 0 );
-       m_choiceTransferType->Hide();
-       
-       fgSizer1->Add( m_choiceTransferType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-       
-       
-       fgSizer1->Add( 0, 3, 0, wxEXPAND, 5 );
-       
-       
-       fgSizer1->Add( 0, 0, 0, wxEXPAND, 5 );
-       
-       bSizer21->Add( fgSizer1, 0, wxEXPAND|wxLEFT, 5 );
-       
-       wxBoxSizer* bSizer672;
-       bSizer672 = new wxBoxSizer( wxHORIZONTAL );
-       
-       bSizer21->Add( bSizer672, 0, wxEXPAND, 5 );
-       
-       wxBoxSizer* bSizer23;
-       bSizer23 = new wxBoxSizer( wxHORIZONTAL );
-       
-       
-       bSizer23->Add( 0, 0, 1, wxEXPAND, 5 );
-       
-       m_buttonSend = new wxButton( this, wxID_BUTTONSEND, _("&Send"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       m_buttonSend->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxEmptyString ) );
-       
-       bSizer23->Add( m_buttonSend, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer23->Add( m_buttonCancel, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       bSizer21->Add( bSizer23, 0, wxEXPAND, 5 );
-       
-       this->SetSizer( bSizer21 );
-       this->Layout();
-       
-       // Connect Events
-       m_textCtrlAddress->Connect( wxEVT_KEY_DOWN, wxKeyEventHandler( CSendDialogBase::OnKeyDown ), NULL, this );
-       m_textCtrlAddress->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( CSendDialogBase::OnTextAddress ), NULL, this );
-       m_buttonPaste->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendDialogBase::OnButtonPaste ), NULL, this );
-       m_buttonAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendDialogBase::OnButtonAddressBook ), NULL, this );
-       m_textCtrlAmount->Connect( wxEVT_KEY_DOWN, wxKeyEventHandler( CSendDialogBase::OnKeyDown ), NULL, this );
-       m_textCtrlAmount->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( CSendDialogBase::OnKillFocusAmount ), NULL, this );
-       m_buttonSend->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendDialogBase::OnButtonSend ), NULL, this );
-       m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendDialogBase::OnButtonCancel ), NULL, this );
-}
-
-CSendDialogBase::~CSendDialogBase()
-{
-       // Disconnect Events
-       m_textCtrlAddress->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( CSendDialogBase::OnKeyDown ), NULL, this );
-       m_textCtrlAddress->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( CSendDialogBase::OnTextAddress ), NULL, this );
-       m_buttonPaste->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendDialogBase::OnButtonPaste ), NULL, this );
-       m_buttonAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendDialogBase::OnButtonAddressBook ), NULL, this );
-       m_textCtrlAmount->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( CSendDialogBase::OnKeyDown ), NULL, this );
-       m_textCtrlAmount->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( CSendDialogBase::OnKillFocusAmount ), NULL, this );
-       m_buttonSend->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendDialogBase::OnButtonSend ), NULL, this );
-       m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendDialogBase::OnButtonCancel ), NULL, this );
-}
-
-CSendingDialogBase::CSendingDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
-{
-       this->SetSizeHints( wxDefaultSize, wxDefaultSize );
-       
-       wxBoxSizer* bSizer68;
-       bSizer68 = new wxBoxSizer( wxVERTICAL );
-       
-       m_staticTextSending = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,14 ), 0 );
-       m_staticTextSending->Wrap( -1 );
-       bSizer68->Add( m_staticTextSending, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 8 );
-       
-       m_textCtrlStatus = new wxTextCtrl( this, wxID_ANY, _("\n\nConnecting..."), wxDefaultPosition, wxDefaultSize, wxTE_CENTRE|wxTE_MULTILINE|wxTE_NO_VSCROLL|wxTE_READONLY|wxNO_BORDER );
-       m_textCtrlStatus->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
-       
-       bSizer68->Add( m_textCtrlStatus, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
-       
-       wxBoxSizer* bSizer69;
-       bSizer69 = new wxBoxSizer( wxHORIZONTAL );
-       
-       
-       bSizer69->Add( 0, 0, 1, wxEXPAND, 5 );
-       
-       m_buttonOK = new wxButton( this, wxID_ANY, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_buttonOK->Enable( false );
-       
-       bSizer69->Add( m_buttonOK, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer69->Add( m_buttonCancel, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       bSizer68->Add( bSizer69, 0, wxEXPAND, 5 );
-       
-       this->SetSizer( bSizer68 );
-       this->Layout();
-       
-       // Connect Events
-       this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CSendingDialogBase::OnClose ) );
-       this->Connect( wxEVT_PAINT, wxPaintEventHandler( CSendingDialogBase::OnPaint ) );
-       m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendingDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendingDialogBase::OnButtonCancel ), NULL, this );
-}
-
-CSendingDialogBase::~CSendingDialogBase()
-{
-       // Disconnect Events
-       this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CSendingDialogBase::OnClose ) );
-       this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CSendingDialogBase::OnPaint ) );
-       m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendingDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CSendingDialogBase::OnButtonCancel ), NULL, this );
-}
-
-CYourAddressDialogBase::CYourAddressDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
-{
-       this->SetSizeHints( wxDefaultSize, wxDefaultSize );
-       
-       wxBoxSizer* bSizer68;
-       bSizer68 = new wxBoxSizer( wxVERTICAL );
-       
-       
-       bSizer68->Add( 0, 5, 0, wxEXPAND, 5 );
-       
-       m_staticText45 = new wxStaticText( this, wxID_ANY, _("These are your Bitcoin addresses for receiving payments.  You may want to give a different one to each sender so you can keep track of who is paying you.  The highlighted address is displayed in the main window."), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticText45->Wrap( 590 );
-       bSizer68->Add( m_staticText45, 0, wxALL, 5 );
-       
-       m_listCtrl = new wxListCtrl( this, wxID_LISTCTRL, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_ASCENDING );
-       bSizer68->Add( m_listCtrl, 1, wxALL|wxEXPAND, 5 );
-       
-       wxBoxSizer* bSizer69;
-       bSizer69 = new wxBoxSizer( wxHORIZONTAL );
-       
-       
-       bSizer69->Add( 0, 0, 1, wxEXPAND, 5 );
-       
-       m_buttonRename = new wxButton( this, wxID_BUTTONRENAME, _("&Edit..."), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer69->Add( m_buttonRename, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonNew = new wxButton( this, wxID_BUTTONNEW, _(" &New Address... "), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer69->Add( m_buttonNew, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonCopy = new wxButton( this, wxID_BUTTONCOPY, _(" &Copy to Clipboard "), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer69->Add( m_buttonCopy, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer69->Add( m_buttonOK, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       m_buttonCancel->Hide();
-       
-       bSizer69->Add( m_buttonCancel, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       bSizer68->Add( bSizer69, 0, wxEXPAND, 5 );
-       
-       this->SetSizer( bSizer68 );
-       this->Layout();
-       
-       // Connect Events
-       this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CYourAddressDialogBase::OnClose ) );
-       m_listCtrl->Connect( wxEVT_COMMAND_LIST_END_LABEL_EDIT, wxListEventHandler( CYourAddressDialogBase::OnListEndLabelEdit ), NULL, this );
-       m_listCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CYourAddressDialogBase::OnListItemActivated ), NULL, this );
-       m_listCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( CYourAddressDialogBase::OnListItemSelected ), NULL, this );
-       m_buttonRename->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonRename ), NULL, this );
-       m_buttonNew->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonNew ), NULL, this );
-       m_buttonCopy->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonCopy ), NULL, this );
-       m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonCancel ), NULL, this );
-}
-
-CYourAddressDialogBase::~CYourAddressDialogBase()
-{
-       // Disconnect Events
-       this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CYourAddressDialogBase::OnClose ) );
-       m_listCtrl->Disconnect( wxEVT_COMMAND_LIST_END_LABEL_EDIT, wxListEventHandler( CYourAddressDialogBase::OnListEndLabelEdit ), NULL, this );
-       m_listCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CYourAddressDialogBase::OnListItemActivated ), NULL, this );
-       m_listCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( CYourAddressDialogBase::OnListItemSelected ), NULL, this );
-       m_buttonRename->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonRename ), NULL, this );
-       m_buttonNew->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonNew ), NULL, this );
-       m_buttonCopy->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonCopy ), NULL, this );
-       m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CYourAddressDialogBase::OnButtonCancel ), NULL, this );
-}
-
-CAddressBookDialogBase::CAddressBookDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
-{
-       this->SetSizeHints( wxDefaultSize, wxDefaultSize );
-       
-       wxBoxSizer* bSizer58;
-       bSizer58 = new wxBoxSizer( wxVERTICAL );
-       
-       m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-       m_panelSending = new wxPanel( m_notebook, wxID_PANELSENDING, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-       wxBoxSizer* bSizer68;
-       bSizer68 = new wxBoxSizer( wxVERTICAL );
-       
-       
-       bSizer68->Add( 0, 0, 0, wxEXPAND, 5 );
-       
-       m_staticText55 = new wxStaticText( m_panelSending, wxID_ANY, _("Bitcoin Address"), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticText55->Wrap( -1 );
-       m_staticText55->Hide();
-       
-       bSizer68->Add( m_staticText55, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
-       
-       m_listCtrlSending = new wxListCtrl( m_panelSending, wxID_LISTCTRLSENDING, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_ASCENDING );
-       bSizer68->Add( m_listCtrlSending, 1, wxALL|wxEXPAND, 5 );
-       
-       m_panelSending->SetSizer( bSizer68 );
-       m_panelSending->Layout();
-       bSizer68->Fit( m_panelSending );
-       m_notebook->AddPage( m_panelSending, _("Sending"), false );
-       m_panelReceiving = new wxPanel( m_notebook, wxID_PANELRECEIVING, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-       wxBoxSizer* bSizer681;
-       bSizer681 = new wxBoxSizer( wxVERTICAL );
-       
-       
-       bSizer681->Add( 0, 0, 0, wxEXPAND, 5 );
-       
-       m_staticText45 = new wxStaticText( m_panelReceiving, wxID_ANY, _("These are your Bitcoin addresses for receiving payments.  You can give a different one to each sender to keep track of who is paying you.  The highlighted address will be displayed in the main window."), wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticText45->Wrap( 570 );
-       bSizer681->Add( m_staticText45, 0, wxTOP|wxRIGHT|wxLEFT, 6 );
-       
-       
-       bSizer681->Add( 0, 2, 0, wxEXPAND, 5 );
-       
-       m_listCtrlReceiving = new wxListCtrl( m_panelReceiving, wxID_LISTCTRLRECEIVING, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_ASCENDING );
-       bSizer681->Add( m_listCtrlReceiving, 1, wxALL|wxEXPAND, 5 );
-       
-       m_panelReceiving->SetSizer( bSizer681 );
-       m_panelReceiving->Layout();
-       bSizer681->Fit( m_panelReceiving );
-       m_notebook->AddPage( m_panelReceiving, _("Receiving"), true );
-       
-       bSizer58->Add( m_notebook, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
-       
-       wxBoxSizer* bSizer69;
-       bSizer69 = new wxBoxSizer( wxHORIZONTAL );
-       
-       
-       bSizer69->Add( 0, 0, 1, wxEXPAND, 5 );
-       
-       m_buttonDelete = new wxButton( this, wxID_BUTTONDELETE, _("&Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer69->Add( m_buttonDelete, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonCopy = new wxButton( this, wxID_BUTTONCOPY, _(" &Copy to Clipboard "), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer69->Add( m_buttonCopy, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonEdit = new wxButton( this, wxID_BUTTONEDIT, _("&Edit..."), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer69->Add( m_buttonEdit, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonNew = new wxButton( this, wxID_BUTTONNEW, _(" &New Address... "), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer69->Add( m_buttonNew, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer69->Add( m_buttonOK, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer69->Add( m_buttonCancel, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       bSizer58->Add( bSizer69, 0, wxEXPAND, 5 );
-       
-       this->SetSizer( bSizer58 );
-       this->Layout();
-       
-       // Connect Events
-       this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CAddressBookDialogBase::OnClose ) );
-       m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( CAddressBookDialogBase::OnNotebookPageChanged ), NULL, this );
-       m_listCtrlSending->Connect( wxEVT_COMMAND_LIST_END_LABEL_EDIT, wxListEventHandler( CAddressBookDialogBase::OnListEndLabelEdit ), NULL, this );
-       m_listCtrlSending->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CAddressBookDialogBase::OnListItemActivated ), NULL, this );
-       m_listCtrlSending->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( CAddressBookDialogBase::OnListItemSelected ), NULL, this );
-       m_listCtrlReceiving->Connect( wxEVT_COMMAND_LIST_END_LABEL_EDIT, wxListEventHandler( CAddressBookDialogBase::OnListEndLabelEdit ), NULL, this );
-       m_listCtrlReceiving->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CAddressBookDialogBase::OnListItemActivated ), NULL, this );
-       m_listCtrlReceiving->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( CAddressBookDialogBase::OnListItemSelected ), NULL, this );
-       m_buttonDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonDelete ), NULL, this );
-       m_buttonCopy->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonCopy ), NULL, this );
-       m_buttonEdit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonEdit ), NULL, this );
-       m_buttonNew->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonNew ), NULL, this );
-       m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonCancel ), NULL, this );
-}
-
-CAddressBookDialogBase::~CAddressBookDialogBase()
-{
-       // Disconnect Events
-       this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CAddressBookDialogBase::OnClose ) );
-       m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( CAddressBookDialogBase::OnNotebookPageChanged ), NULL, this );
-       m_listCtrlSending->Disconnect( wxEVT_COMMAND_LIST_END_LABEL_EDIT, wxListEventHandler( CAddressBookDialogBase::OnListEndLabelEdit ), NULL, this );
-       m_listCtrlSending->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CAddressBookDialogBase::OnListItemActivated ), NULL, this );
-       m_listCtrlSending->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( CAddressBookDialogBase::OnListItemSelected ), NULL, this );
-       m_listCtrlReceiving->Disconnect( wxEVT_COMMAND_LIST_END_LABEL_EDIT, wxListEventHandler( CAddressBookDialogBase::OnListEndLabelEdit ), NULL, this );
-       m_listCtrlReceiving->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CAddressBookDialogBase::OnListItemActivated ), NULL, this );
-       m_listCtrlReceiving->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( CAddressBookDialogBase::OnListItemSelected ), NULL, this );
-       m_buttonDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonDelete ), NULL, this );
-       m_buttonCopy->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonCopy ), NULL, this );
-       m_buttonEdit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonEdit ), NULL, this );
-       m_buttonNew->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonNew ), NULL, this );
-       m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CAddressBookDialogBase::OnButtonCancel ), NULL, this );
-}
-
-CGetTextFromUserDialogBase::CGetTextFromUserDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
-{
-       this->SetSizeHints( wxDefaultSize, wxDefaultSize );
-       
-       wxBoxSizer* bSizer79;
-       bSizer79 = new wxBoxSizer( wxVERTICAL );
-       
-       wxBoxSizer* bSizer81;
-       bSizer81 = new wxBoxSizer( wxVERTICAL );
-       
-       
-       bSizer81->Add( 0, 0, 1, wxEXPAND, 5 );
-       
-       m_staticTextMessage1 = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticTextMessage1->Wrap( -1 );
-       bSizer81->Add( m_staticTextMessage1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
-       
-       m_textCtrl1 = new wxTextCtrl( this, wxID_TEXTCTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
-       bSizer81->Add( m_textCtrl1, 0, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 );
-       
-       m_staticTextMessage2 = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-       m_staticTextMessage2->Wrap( -1 );
-       m_staticTextMessage2->Hide();
-       
-       bSizer81->Add( m_staticTextMessage2, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
-       
-       m_textCtrl2 = new wxTextCtrl( this, wxID_TEXTCTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
-       m_textCtrl2->Hide();
-       
-       bSizer81->Add( m_textCtrl2, 0, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 );
-       
-       
-       bSizer81->Add( 0, 0, 1, wxEXPAND, 5 );
-       
-       bSizer79->Add( bSizer81, 1, wxEXPAND|wxALL, 10 );
-       
-       wxBoxSizer* bSizer80;
-       bSizer80 = new wxBoxSizer( wxHORIZONTAL );
-       
-       
-       bSizer80->Add( 0, 0, 1, wxEXPAND, 5 );
-       
-       m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
-       bSizer80->Add( m_buttonOK, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
-       bSizer80->Add( m_buttonCancel, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
-       
-       bSizer79->Add( bSizer80, 0, wxEXPAND, 5 );
-       
-       this->SetSizer( bSizer79 );
-       this->Layout();
-       
-       // Connect Events
-       this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CGetTextFromUserDialogBase::OnClose ) );
-       m_textCtrl1->Connect( wxEVT_KEY_DOWN, wxKeyEventHandler( CGetTextFromUserDialogBase::OnKeyDown ), NULL, this );
-       m_textCtrl2->Connect( wxEVT_KEY_DOWN, wxKeyEventHandler( CGetTextFromUserDialogBase::OnKeyDown ), NULL, this );
-       m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CGetTextFromUserDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CGetTextFromUserDialogBase::OnButtonCancel ), NULL, this );
-}
-
-CGetTextFromUserDialogBase::~CGetTextFromUserDialogBase()
-{
-       // Disconnect Events
-       this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( CGetTextFromUserDialogBase::OnClose ) );
-       m_textCtrl1->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( CGetTextFromUserDialogBase::OnKeyDown ), NULL, this );
-       m_textCtrl2->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( CGetTextFromUserDialogBase::OnKeyDown ), NULL, this );
-       m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CGetTextFromUserDialogBase::OnButtonOK ), NULL, this );
-       m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CGetTextFromUserDialogBase::OnButtonCancel ), NULL, this );
-}
diff --git a/src/uibase.h b/src/uibase.h
deleted file mode 100644 (file)
index ca0730b..0000000
+++ /dev/null
@@ -1,425 +0,0 @@
-///////////////////////////////////////////////////////////////////////////
-// C++ code generated with wxFormBuilder (version Dec 21 2009)
-// http://www.wxformbuilder.org/
-//
-// PLEASE DO "NOT" EDIT THIS FILE!
-///////////////////////////////////////////////////////////////////////////
-
-#ifndef __uibase__
-#define __uibase__
-
-#include <wx/intl.h>
-
-#include <wx/string.h>
-#include <wx/bitmap.h>
-#include <wx/image.h>
-#include <wx/icon.h>
-#include <wx/menu.h>
-#include <wx/gdicmn.h>
-#include <wx/font.h>
-#include <wx/colour.h>
-#include <wx/settings.h>
-#include <wx/toolbar.h>
-#include <wx/statusbr.h>
-#include <wx/stattext.h>
-#include <wx/textctrl.h>
-#include <wx/button.h>
-#include <wx/sizer.h>
-#include <wx/choice.h>
-#include <wx/listctrl.h>
-#include <wx/panel.h>
-#include <wx/notebook.h>
-#include <wx/frame.h>
-#include <wx/html/htmlwin.h>
-#include <wx/dialog.h>
-#include <wx/listbox.h>
-#include <wx/checkbox.h>
-#include <wx/scrolwin.h>
-#include <wx/statbmp.h>
-
-///////////////////////////////////////////////////////////////////////////
-
-#define wxID_MAINFRAME 1000
-#define wxID_BUTTONSEND 1001
-#define wxID_BUTTONRECEIVE 1002
-#define wxID_TEXTCTRLADDRESS 1003
-#define wxID_BUTTONNEW 1004
-#define wxID_BUTTONCOPY 1005
-#define wxID_PROXYIP 1006
-#define wxID_PROXYPORT 1007
-#define wxID_TRANSACTIONFEE 1008
-#define wxID_TEXTCTRLPAYTO 1009
-#define wxID_BUTTONPASTE 1010
-#define wxID_BUTTONADDRESSBOOK 1011
-#define wxID_TEXTCTRLAMOUNT 1012
-#define wxID_CHOICETRANSFERTYPE 1013
-#define wxID_LISTCTRL 1014
-#define wxID_BUTTONRENAME 1015
-#define wxID_PANELSENDING 1016
-#define wxID_LISTCTRLSENDING 1017
-#define wxID_PANELRECEIVING 1018
-#define wxID_LISTCTRLRECEIVING 1019
-#define wxID_BUTTONDELETE 1020
-#define wxID_BUTTONEDIT 1021
-#define wxID_TEXTCTRL 1022
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class CMainFrameBase
-///////////////////////////////////////////////////////////////////////////////
-class CMainFrameBase : public wxFrame 
-{
-       private:
-       
-       protected:
-               wxMenuBar* m_menubar;
-               wxMenu* m_menuFile;
-               wxMenu* m_menuHelp;
-               wxToolBar* m_toolBar;
-               
-               wxStaticText* m_staticText32;
-               wxButton* m_buttonNew;
-               wxButton* m_buttonCopy;
-               
-               wxStaticText* m_staticText41;
-               wxStaticText* m_staticTextBalance;
-               
-               wxChoice* m_choiceFilter;
-               wxNotebook* m_notebook;
-               wxPanel* m_panel9;
-               wxPanel* m_panel91;
-               wxPanel* m_panel92;
-               wxPanel* m_panel93;
-               
-               // Virtual event handlers, overide them in your derived class
-               virtual void OnClose( wxCloseEvent& event ) { event.Skip(); }
-               virtual void OnIconize( wxIconizeEvent& event ) { event.Skip(); }
-               virtual void OnIdle( wxIdleEvent& event ) { event.Skip(); }
-               virtual void OnMouseEvents( wxMouseEvent& event ) { event.Skip(); }
-               virtual void OnPaint( wxPaintEvent& event ) { event.Skip(); }
-               virtual void OnMenuFileExit( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnMenuOptionsChangeYourAddress( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnMenuOptionsEncryptWallet( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnMenuOptionsChangeWalletPassphrase( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnMenuOptionsOptions( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnMenuHelpAbout( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonSend( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonAddressBook( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnKeyDown( wxKeyEvent& event ) { event.Skip(); }
-               virtual void OnMouseEventsAddress( wxMouseEvent& event ) { event.Skip(); }
-               virtual void OnSetFocusAddress( wxFocusEvent& event ) { event.Skip(); }
-               virtual void OnButtonNew( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonCopy( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnNotebookPageChanged( wxNotebookEvent& event ) { event.Skip(); }
-               virtual void OnListColBeginDrag( wxListEvent& event ) { event.Skip(); }
-               virtual void OnListItemActivated( wxListEvent& event ) { event.Skip(); }
-               virtual void OnPaintListCtrl( wxPaintEvent& event ) { event.Skip(); }
-               
-       
-       public:
-               wxMenu* m_menuOptions;
-               wxMenuItem* m_menuOptionsEncryptWallet;
-               wxMenuItem* m_menuOptionsChangeWalletPassphrase;
-               wxStatusBar* m_statusBar;
-               wxTextCtrl* m_textCtrlAddress;
-               wxListCtrl* m_listCtrlAll;
-               wxListCtrl* m_listCtrlSentReceived;
-               wxListCtrl* m_listCtrlSent;
-               wxListCtrl* m_listCtrlReceived;
-               
-               CMainFrameBase( wxWindow* parent, wxWindowID id = wxID_MAINFRAME, const wxString& title = _("Bitcoin"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 723,484 ), long style = wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER|wxTAB_TRAVERSAL );
-               ~CMainFrameBase();
-       
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class CTxDetailsDialogBase
-///////////////////////////////////////////////////////////////////////////////
-class CTxDetailsDialogBase : public wxDialog 
-{
-       private:
-       
-       protected:
-               wxHtmlWindow* m_htmlWin;
-               wxButton* m_buttonOK;
-               
-               // Virtual event handlers, overide them in your derived class
-               virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); }
-               
-       
-       public:
-               
-               CTxDetailsDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Transaction Details"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 620,450 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
-               ~CTxDetailsDialogBase();
-       
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class COptionsDialogBase
-///////////////////////////////////////////////////////////////////////////////
-class COptionsDialogBase : public wxDialog 
-{
-       private:
-       
-       protected:
-               wxListBox* m_listBox;
-               wxScrolledWindow* m_scrolledWindow;
-               wxPanel* m_panelMain;
-               
-               wxCheckBox* m_checkBoxStartOnSystemStartup;
-               wxCheckBox* m_checkBoxMinimizeToTray;
-               wxCheckBox* m_checkBoxUseUPnP;
-               wxCheckBox* m_checkBoxMinimizeOnClose;
-               wxCheckBox* m_checkBoxUseProxy;
-               
-               wxStaticText* m_staticTextProxyIP;
-               wxTextCtrl* m_textCtrlProxyIP;
-               wxStaticText* m_staticTextProxyPort;
-               wxTextCtrl* m_textCtrlProxyPort;
-               
-               wxStaticText* m_staticText32;
-               wxStaticText* m_staticText31;
-               wxTextCtrl* m_textCtrlTransactionFee;
-               wxPanel* m_panelTest2;
-               
-               wxStaticText* m_staticText321;
-               wxStaticText* m_staticText69;
-               wxButton* m_buttonOK;
-               wxButton* m_buttonCancel;
-               wxButton* m_buttonApply;
-               
-               // Virtual event handlers, overide them in your derived class
-               virtual void OnListBox( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnCheckBoxMinimizeToTray( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnCheckBoxUseProxy( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnKillFocusProxy( wxFocusEvent& event ) { event.Skip(); }
-               virtual void OnKillFocusTransactionFee( wxFocusEvent& event ) { event.Skip(); }
-               virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonApply( wxCommandEvent& event ) { event.Skip(); }
-               
-       
-       public:
-               
-               COptionsDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 540,360 ), long style = wxDEFAULT_DIALOG_STYLE );
-               ~COptionsDialogBase();
-       
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class CAboutDialogBase
-///////////////////////////////////////////////////////////////////////////////
-class CAboutDialogBase : public wxDialog 
-{
-       private:
-       
-       protected:
-               wxStaticBitmap* m_bitmap;
-               
-               wxStaticText* m_staticText40;
-               
-               wxStaticText* m_staticTextMain;
-               
-               
-               wxButton* m_buttonOK;
-               
-               // Virtual event handlers, overide them in your derived class
-               virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); }
-               
-       
-       public:
-               wxStaticText* m_staticTextVersion;
-               
-               CAboutDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("About Bitcoin"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 532,333 ), long style = wxDEFAULT_DIALOG_STYLE );
-               ~CAboutDialogBase();
-       
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class CSendDialogBase
-///////////////////////////////////////////////////////////////////////////////
-class CSendDialogBase : public wxDialog 
-{
-       private:
-       
-       protected:
-               
-               
-               wxStaticText* m_staticTextInstructions;
-               
-               wxStaticBitmap* m_bitmapCheckMark;
-               wxStaticText* m_staticText36;
-               wxTextCtrl* m_textCtrlAddress;
-               wxButton* m_buttonPaste;
-               wxButton* m_buttonAddress;
-               wxStaticText* m_staticText19;
-               wxTextCtrl* m_textCtrlAmount;
-               wxStaticText* m_staticText20;
-               wxChoice* m_choiceTransferType;
-               
-               
-               
-               wxButton* m_buttonSend;
-               wxButton* m_buttonCancel;
-               
-               // Virtual event handlers, overide them in your derived class
-               virtual void OnKeyDown( wxKeyEvent& event ) { event.Skip(); }
-               virtual void OnTextAddress( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonPaste( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonAddressBook( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnKillFocusAmount( wxFocusEvent& event ) { event.Skip(); }
-               virtual void OnButtonSend( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); }
-               
-       
-       public:
-               
-               CSendDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Send Coins"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 498,157 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
-               ~CSendDialogBase();
-       
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class CSendingDialogBase
-///////////////////////////////////////////////////////////////////////////////
-class CSendingDialogBase : public wxDialog 
-{
-       private:
-       
-       protected:
-               wxStaticText* m_staticTextSending;
-               wxTextCtrl* m_textCtrlStatus;
-               
-               wxButton* m_buttonOK;
-               wxButton* m_buttonCancel;
-               
-               // Virtual event handlers, overide them in your derived class
-               virtual void OnClose( wxCloseEvent& event ) { event.Skip(); }
-               virtual void OnPaint( wxPaintEvent& event ) { event.Skip(); }
-               virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); }
-               
-       
-       public:
-               
-               CSendingDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Sending..."), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 442,151 ), long style = wxDEFAULT_DIALOG_STYLE );
-               ~CSendingDialogBase();
-       
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class CYourAddressDialogBase
-///////////////////////////////////////////////////////////////////////////////
-class CYourAddressDialogBase : public wxDialog 
-{
-       private:
-       
-       protected:
-               
-               wxStaticText* m_staticText45;
-               wxListCtrl* m_listCtrl;
-               
-               wxButton* m_buttonRename;
-               wxButton* m_buttonNew;
-               wxButton* m_buttonCopy;
-               wxButton* m_buttonOK;
-               wxButton* m_buttonCancel;
-               
-               // Virtual event handlers, overide them in your derived class
-               virtual void OnClose( wxCloseEvent& event ) { event.Skip(); }
-               virtual void OnListEndLabelEdit( wxListEvent& event ) { event.Skip(); }
-               virtual void OnListItemActivated( wxListEvent& event ) { event.Skip(); }
-               virtual void OnListItemSelected( wxListEvent& event ) { event.Skip(); }
-               virtual void OnButtonRename( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonNew( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonCopy( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); }
-               
-       
-       public:
-               
-               CYourAddressDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Your Bitcoin Addresses"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 610,390 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
-               ~CYourAddressDialogBase();
-       
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class CAddressBookDialogBase
-///////////////////////////////////////////////////////////////////////////////
-class CAddressBookDialogBase : public wxDialog 
-{
-       private:
-       
-       protected:
-               wxNotebook* m_notebook;
-               wxPanel* m_panelSending;
-               
-               wxStaticText* m_staticText55;
-               wxListCtrl* m_listCtrlSending;
-               wxPanel* m_panelReceiving;
-               
-               wxStaticText* m_staticText45;
-               
-               wxListCtrl* m_listCtrlReceiving;
-               
-               wxButton* m_buttonDelete;
-               wxButton* m_buttonCopy;
-               wxButton* m_buttonEdit;
-               wxButton* m_buttonNew;
-               wxButton* m_buttonOK;
-               
-               // Virtual event handlers, overide them in your derived class
-               virtual void OnClose( wxCloseEvent& event ) { event.Skip(); }
-               virtual void OnNotebookPageChanged( wxNotebookEvent& event ) { event.Skip(); }
-               virtual void OnListEndLabelEdit( wxListEvent& event ) { event.Skip(); }
-               virtual void OnListItemActivated( wxListEvent& event ) { event.Skip(); }
-               virtual void OnListItemSelected( wxListEvent& event ) { event.Skip(); }
-               virtual void OnButtonDelete( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonCopy( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonEdit( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonNew( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); }
-               
-       
-       public:
-               wxButton* m_buttonCancel;
-               
-               CAddressBookDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Address Book"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 610,390 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
-               ~CAddressBookDialogBase();
-       
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class CGetTextFromUserDialogBase
-///////////////////////////////////////////////////////////////////////////////
-class CGetTextFromUserDialogBase : public wxDialog 
-{
-       private:
-       
-       protected:
-               
-               wxStaticText* m_staticTextMessage1;
-               wxTextCtrl* m_textCtrl1;
-               wxStaticText* m_staticTextMessage2;
-               wxTextCtrl* m_textCtrl2;
-               
-               
-               wxButton* m_buttonOK;
-               wxButton* m_buttonCancel;
-               
-               // Virtual event handlers, overide them in your derived class
-               virtual void OnClose( wxCloseEvent& event ) { event.Skip(); }
-               virtual void OnKeyDown( wxKeyEvent& event ) { event.Skip(); }
-               virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); }
-               virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); }
-               
-       
-       public:
-               
-               CGetTextFromUserDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 440,138 ), long style = wxDEFAULT_DIALOG_STYLE );
-               ~CGetTextFromUserDialogBase();
-       
-};
-
-#endif //__uibase__
index 76a2700..02e2d21 100644 (file)
@@ -264,8 +264,7 @@ int my_snprintf(char* buffer, size_t limit, const char* format, ...)
     return ret;
 }
 
-
-string strprintf(const char* format, ...)
+string strprintf(const std::string &format, ...)
 {
     char buffer[50000];
     char* p = buffer;
@@ -275,7 +274,7 @@ string strprintf(const char* format, ...)
     {
         va_list arg_ptr;
         va_start(arg_ptr, format);
-        ret = _vsnprintf(p, limit, format, arg_ptr);
+        ret = _vsnprintf(p, limit, format.c_str(), arg_ptr);
         va_end(arg_ptr);
         if (ret >= 0 && ret < limit)
             break;
@@ -292,14 +291,13 @@ string strprintf(const char* format, ...)
     return str;
 }
 
-
-bool error(const char* format, ...)
+bool error(const std::string &format, ...)
 {
     char buffer[50000];
     int limit = sizeof(buffer);
     va_list arg_ptr;
     va_start(arg_ptr, format);
-    int ret = _vsnprintf(buffer, limit, format, arg_ptr);
+    int ret = _vsnprintf(buffer, limit, format.c_str(), arg_ptr);
     va_end(arg_ptr);
     if (ret < 0 || ret >= limit)
     {
@@ -389,7 +387,7 @@ bool ParseMoney(const char* pszIn, int64& nRet)
     for (; *p; p++)
         if (!isspace(*p))
             return false;
-    if (strWhole.size() > 14)
+    if (strWhole.size() > 10) // guard against 63 bit overflow
         return false;
     if (nUnits < 0 || nUnits > COIN)
         return false;
@@ -445,7 +443,6 @@ vector<unsigned char> ParseHex(const string& str)
     return ParseHex(str.c_str());
 }
 
-
 void ParseParameters(int argc, char* argv[])
 {
     mapArgs.clear();
@@ -472,39 +469,144 @@ void ParseParameters(int argc, char* argv[])
     }
 }
 
+string EncodeBase64(const unsigned char* pch, size_t len)
+{
+    static const char *pbase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+
+    string strRet="";
+    strRet.reserve((len+2)/3*4);
+
+    int mode=0, left=0;
+    const unsigned char *pchEnd = pch+len;
 
-const char* wxGetTranslation(const char* pszEnglish)
+    while (pch<pchEnd)
+    {
+        int enc = *(pch++);
+        switch (mode)
+        {
+            case 0: // we have no bits
+                strRet += pbase64[enc >> 2];
+                left = (enc & 3) << 4;
+                mode = 1;
+                break;
+
+            case 1: // we have two bits
+                strRet += pbase64[left | (enc >> 4)];
+                left = (enc & 15) << 2;
+                mode = 2;
+                break;
+
+            case 2: // we have four bits
+                strRet += pbase64[left | (enc >> 6)];
+                strRet += pbase64[enc & 63];
+                mode = 0;
+                break;
+        }
+    }
+
+    if (mode)
+    {
+        strRet += pbase64[left];
+        strRet += '=';
+        if (mode == 1)
+            strRet += '=';
+    }
+
+    return strRet;
+}
+
+string EncodeBase64(const string& str)
 {
-#ifdef GUI
-    // Wrapper of wxGetTranslation returning the same const char* type as was passed in
-    static CCriticalSection cs;
-    CRITICAL_BLOCK(cs)
+    return EncodeBase64((const unsigned char*)str.c_str(), str.size());
+}
+
+vector<unsigned char> DecodeBase64(const char* p, bool* pfInvalid)
+{
+    static const int decode64_table[256] =
+    {
+        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+        -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1,
+        -1, -1, -1, -1, -1,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14,
+        15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28,
+        29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
+        49, 50, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
+    };
+
+    if (pfInvalid)
+        *pfInvalid = false;
+
+    vector<unsigned char> vchRet;
+    vchRet.reserve(strlen(p)*3/4);
+
+    int mode = 0;
+    int left = 0;
+
+    while (1)
     {
-        // Look in cache
-        static map<string, char*> mapCache;
-        map<string, char*>::iterator mi = mapCache.find(pszEnglish);
-        if (mi != mapCache.end())
-            return (*mi).second;
-
-        // wxWidgets translation
-        wxString strTranslated = wxGetTranslation(wxString(pszEnglish, wxConvUTF8));
-
-        // We don't cache unknown strings because caller might be passing in a
-        // dynamic string and we would keep allocating memory for each variation.
-        if (strcmp(pszEnglish, strTranslated.utf8_str()) == 0)
-            return pszEnglish;
-
-        // Add to cache, memory doesn't need to be freed.  We only cache because
-        // we must pass back a pointer to permanently allocated memory.
-        char* pszCached = new char[strlen(strTranslated.utf8_str())+1];
-        strcpy(pszCached, strTranslated.utf8_str());
-        mapCache[pszEnglish] = pszCached;
-        return pszCached;
+         int dec = decode64_table[*p];
+         if (dec == -1) break;
+         p++;
+         switch (mode)
+         {
+             case 0: // we have no bits and get 6
+                 left = dec;
+                 mode = 1;
+                 break;
+
+              case 1: // we have 6 bits and keep 4
+                  vchRet.push_back((left<<2) | (dec>>4));
+                  left = dec & 15;
+                  mode = 2;
+                  break;
+
+             case 2: // we have 4 bits and get 6, we keep 2
+                 vchRet.push_back((left<<4) | (dec>>2));
+                 left = dec & 3;
+                 mode = 3;
+                 break;
+
+             case 3: // we have 2 bits and get 6
+                 vchRet.push_back((left<<6) | dec);
+                 mode = 0;
+                 break;
+         }
     }
-    return NULL;
-#else
-    return pszEnglish;
-#endif
+
+    if (pfInvalid)
+        switch (mode)
+        {
+            case 0: // 4n base64 characters processed: ok
+                break;
+
+            case 1: // 4n+1 base64 character processed: impossible
+                *pfInvalid = true;
+                break;
+
+            case 2: // 4n+2 base64 characters processed: require '=='
+                if (left || p[0] != '=' || p[1] != '=' || decode64_table[p[2]] != -1)
+                    *pfInvalid = true;
+                break;
+
+            case 3: // 4n+3 base64 characters processed: require '='
+                if (left || p[0] != '=' || decode64_table[p[1]] != -1)
+                    *pfInvalid = true;
+                break;
+        }
+
+    return vchRet;
+}
+
+string DecodeBase64(const string& str)
+{
+    vector<unsigned char> vchRet = DecodeBase64(str.c_str());
+    return string((const char*)&vchRet[0], vchRet.size());
 }
 
 
@@ -575,10 +677,6 @@ void PrintException(std::exception* pex, const char* pszThread)
     printf("\n\n************************\n%s\n", pszMessage);
     fprintf(stderr, "\n\n************************\n%s\n", pszMessage);
     strMiscWarning = pszMessage;
-#ifdef GUI
-    if (wxTheApp && !fDaemon)
-        MyMessageBox(pszMessage, "Bitcoin", wxOK | wxICON_ERROR);
-#endif
     throw;
 }
 
@@ -600,10 +698,6 @@ void PrintExceptionContinue(std::exception* pex, const char* pszThread)
     printf("\n\n************************\n%s\n", pszMessage);
     fprintf(stderr, "\n\n************************\n%s\n", pszMessage);
     strMiscWarning = pszMessage;
-#ifdef GUI
-    if (wxTheApp && !fDaemon)
-        boost::thread(boost::bind(ThreadOneMessageBox, string(pszMessage)));
-#endif
 }
 
 
@@ -815,11 +909,20 @@ void ShrinkDebugFile()
 //  - Median of other nodes's clocks
 //  - The user (asking the user to fix the system clock if the first two disagree)
 //
+static int64 nMockTime = 0;  // For unit testing
+
 int64 GetTime()
 {
+    if (nMockTime) return nMockTime;
+
     return time(NULL);
 }
 
+void SetMockTime(int64 nMockTimeIn)
+{
+    nMockTime = nMockTimeIn;
+}
+
 static int64 nTimeOffset = 0;
 
 int64 GetAdjustedTime()
index 3d7ef10..f0b2f4a 100644 (file)
@@ -65,7 +65,7 @@ typedef unsigned long long  uint64;
 #endif
 
 // This is needed because the foreach macro can't get over the comma in pair<t1, t2>
-#define PAIRTYPE(t1, t2)    pair<t1, t2>
+#define PAIRTYPE(t1, t2)    std::pair<t1, t2>
 
 // Align by increasing pointer, must have extra space at end of buffer
 template <size_t nBytes, typename T>
@@ -132,8 +132,7 @@ inline int myclosesocket(SOCKET& hSocket)
     return ret;
 }
 #define closesocket(s)      myclosesocket(s)
-
-#ifndef GUI
+#if !defined(QT_GUI)
 inline const char* _(const char* psz)
 {
     return psz;
@@ -148,7 +147,6 @@ inline const char* _(const char* psz)
 
 
 
-
 extern std::map<std::string, std::string> mapArgs;
 extern std::map<std::string, std::vector<std::string> > mapMultiArgs;
 extern bool fDebug;
@@ -169,8 +167,8 @@ void RandAddSeed();
 void RandAddSeedPerfmon();
 int OutputDebugStringF(const char* pszFormat, ...);
 int my_snprintf(char* buffer, size_t limit, const char* format, ...);
-std::string strprintf(const char* format, ...);
-bool error(const char* format, ...);
+std::string strprintf(const std::string &format, ...);
+bool error(const std::string &format, ...);
 void LogException(std::exception* pex, const char* pszThread);
 void PrintException(std::exception* pex, const char* pszThread);
 void PrintExceptionContinue(std::exception* pex, const char* pszThread);
@@ -180,6 +178,10 @@ bool ParseMoney(const std::string& str, int64& nRet);
 bool ParseMoney(const char* pszIn, int64& nRet);
 std::vector<unsigned char> ParseHex(const char* psz);
 std::vector<unsigned char> ParseHex(const std::string& str);
+std::vector<unsigned char> DecodeBase64(const char* p, bool* pfInvalid = NULL);
+std::string DecodeBase64(const std::string& str);
+std::string EncodeBase64(const unsigned char* pch, size_t len);
+std::string EncodeBase64(const std::string& str);
 void ParseParameters(int argc, char* argv[]);
 const char* wxGetTranslation(const char* psz);
 bool WildcardMatch(const char* psz, const char* mask);
@@ -199,6 +201,7 @@ void ShrinkDebugFile();
 int GetRandInt(int nMax);
 uint64 GetRand(uint64 nMax);
 int64 GetTime();
+void SetMockTime(int64 nMockTimeIn);
 int64 GetAdjustedTime();
 void AddTimeData(unsigned int ip, int64 nTime);
 std::string FormatFullVersion();
@@ -567,6 +570,51 @@ inline uint160 Hash160(const std::vector<unsigned char>& vch)
 }
 
 
+// Median filter over a stream of values
+// Returns the median of the last N numbers
+template <typename T> class CMedianFilter
+{
+private:
+    std::vector<T> vValues;
+    std::vector<T> vSorted;
+    int nSize;
+public:
+    CMedianFilter(int size, T initial_value):
+        nSize(size)
+    {
+        vValues.reserve(size);
+        vValues.push_back(initial_value);
+        vSorted = vValues;
+    }
+    
+    void input(T value)
+    {
+        if(vValues.size() == nSize)
+        {
+            vValues.erase(vValues.begin());
+        }
+        vValues.push_back(value);
+
+        vSorted.resize(vValues.size());
+        std::copy(vValues.begin(), vValues.end(), vSorted.begin());
+        std::sort(vSorted.begin(), vSorted.end());
+    }
+
+    T median() const
+    {
+        int size = vSorted.size();
+        assert(size>0);
+        if(size & 1) // Odd number of elements
+        {
+            return vSorted[size/2];
+        }
+        else // Even number of elements
+        {
+            return (vSorted[size/2-1] + vSorted[size/2]) / 2;
+        }
+    }
+};
+
 
 
 
index 8bbb80c..d78e470 100644 (file)
@@ -260,7 +260,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
         if (fInsertedNew || fUpdated)
             if (!wtx.WriteToDisk())
                 return false;
-
+#ifndef QT_GUI
         // If default receiving address gets used, replace it with a new one
         CScript scriptDefaultKey;
         scriptDefaultKey.SetBitcoinAddress(vchDefaultKey);
@@ -276,7 +276,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
                 }
             }
         }
-
+#endif
         // Notify UI
         vWalletUpdated.push_back(hash);
 
@@ -728,6 +728,21 @@ int64 CWallet::GetBalance() const
     return nTotal;
 }
 
+int64 CWallet::GetUnconfirmedBalance() const
+{
+    int64 nTotal = 0;
+    CRITICAL_BLOCK(cs_wallet)
+    {
+        for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it)
+        {
+            const CWalletTx* pcoin = &(*it).second;
+            if (pcoin->IsFinal() && pcoin->IsConfirmed())
+                continue;
+            nTotal += pcoin->GetAvailableCredit();
+        }
+    }
+    return nTotal;
+}
 
 bool CWallet::SelectCoinsMinConf(int64 nTargetValue, int nConfMine, int nConfTheirs, set<pair<const CWalletTx*,unsigned int> >& setCoinsRet, int64& nValueRet) const
 {
index 1dd2e51..b6df1aa 100644 (file)
@@ -74,6 +74,7 @@ public:
     void ReacceptWalletTransactions();
     void ResendWalletTransactions();
     int64 GetBalance() const;
+    int64 GetUnconfirmedBalance() const;
     bool CreateTransaction(const std::vector<std::pair<CScript, int64> >& vecSend, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet);
     bool CreateTransaction(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet);
     bool CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey);
diff --git a/src/xpm/about.xpm b/src/xpm/about.xpm
deleted file mode 100644 (file)
index 3fa868c..0000000
+++ /dev/null
@@ -1,665 +0,0 @@
-// Copyright (c) 2009-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.
-/* XPM */
-static const char * about_xpm[] = {
-/* columns rows colors chars-per-pixel */
-"96 564 92 1",
-"  c #001269",
-". c #000C72",
-"X c #00057F",
-"o c #001175",
-"O c #000B6A",
-"+ c #000E84",
-"@ c #000489",
-"# c #001583",
-"$ c #001B89",
-"% c #001B99",
-"& c #000B92",
-"* c #00208B",
-"= c #002B97",
-"- c #0004A6",
-"; c #001DA7",
-": c #0014BC",
-"> c #0019BB",
-", c #0017B4",
-"< c #0023A3",
-"1 c #002CAA",
-"2 c #0030A4",
-"3 c #003BA3",
-"4 c #0033AB",
-"5 c #003FA8",
-"6 c #0027B8",
-"7 c #0035BB",
-"8 c #003CBA",
-"9 c #004ABD",
-"0 c #001DC4",
-"q c #0017CC",
-"w c #000CD0",
-"e c #0026C7",
-"r c #0035C4",
-"t c #003DC5",
-"y c #0032CB",
-"u c #003BCC",
-"i c #002BD3",
-"p c #0021DC",
-"a c #0025D5",
-"s c #0034D5",
-"d c #003ADB",
-"f c #0016F6",
-"g c #0008F9",
-"h c #0027E3",
-"j c #003CE9",
-"k c #002BF5",
-"l c #0024F9",
-"z c #0033F4",
-"x c #0035F8",
-"c c #0048CA",
-"v c #0055C5",
-"b c #0059C3",
-"n c #0053CB",
-"m c #005ACC",
-"M c #004FD4",
-"N c #004CDC",
-"B c #0047D0",
-"V c #005BD6",
-"C c #0049E5",
-"Z c #0042EA",
-"A c #0052E4",
-"S c #005CE4",
-"D c #0054EC",
-"F c #005EEB",
-"G c #004AF5",
-"H c #0051F2",
-"J c #005CFA",
-"K c #0058F9",
-"L c #0066E4",
-"P c #006BE3",
-"I c #0064EC",
-"U c #006DEF",
-"Y c #0074EB",
-"T c #0078EC",
-"R c #0073E7",
-"E c #0065F4",
-"W c #006BF5",
-"Q c #006BFB",
-"! c #0066FD",
-"~ c #0073F5",
-"^ c #007CF3",
-"/ c #0075FB",
-"( c #007DFC",
-") c #0084FF",
-"_ c #008AFF",
-"` c #0092FF",
-"' c #339CFF",
-"] c #33A3FF",
-"[ c #33AAFF",
-"{ c #66B5FF",
-"} c #66BBFF",
-"| c #66C0FF",
-/* pixels */
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"kkkkkkkkkkkk<<<<<<<<<<<<DDDDDDDDDDDDvvvvvvvvvvvv////////////))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"XXXXXXXXXXXXrrrrrrrrrrrr777777777777MMMMMMMMMMMM(((((((((((())))))))))))[[[[[[[[[[[[}}}}}}}}}}}}",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"llllllllllll;;;;;;;;;;;;NNNNNNNNNNNNSSSSSSSSSSSS~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############666666666666uuuuuuuuuuuuJJJJJJJJJJJJ^^^^^^^^^^^^____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"............yyyyyyyyyyyy333333333333AAAAAAAAAAAAWWWWWWWWWWWW____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff============yyyyyyyyyyyyJJJJJJJJJJJJRRRRRRRRRRRR))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"gggggggggggg$$$$$$$$$$$$uuuuuuuuuuuuNNNNNNNNNNNN~~~~~~~~~~~~))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::hhhhhhhhhhhhddddddddddddAAAAAAAAAAAAUUUUUUUUUUUU))))))))))))''''''''''''}}}}}}}}}}}}",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"zzzzzzzzzzzzGGGGGGGGGGGGBBBBBBBBBBBBDDDDDDDDDDDDPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"ffffffffffffssssssssssssjjjjjjjjjjjjnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"wwwwwwwwwwww<<<<<<<<<<<<888888888888VVVVVVVVVVVV~~~~~~~~~~~~((((((((((((]]]]]]]]]]]]}}}}}}}}}}}}",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"hhhhhhhhhhhh>>>>>>>>>>>>rrrrrrrrrrrrVVVVVVVVVVVVLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::;;;;;;;;;;;;HHHHHHHHHHHHccccccccccccQQQQQQQQQQQQ))))))))))))''''''''''''}}}}}}}}}}}}",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"qqqqqqqqqqqqkkkkkkkkkkkk333333333333AAAAAAAAAAAARRRRRRRRRRRR))))))))))))''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"############ppppppppppppssssssssssssIIIIIIIIIIII^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"++++++++++++rrrrrrrrrrrr777777777777MMMMMMMMMMMMIIIIIIIIIIII````````````''''''''''''{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"------------$$$$$$$$$$$$999999999999JJJJJJJJJJJJTTTTTTTTTTTT____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@666666666666ttttttttttttWWWWWWWWWWWWPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaazzzzzzzzzzzzBBBBBBBBBBBBbbbbbbbbbbbbPPPPPPPPPPPP____________''''''''''''{{{{{{{{{{{{",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"------------%%%%%%%%%%%%ttttttttttttNNNNNNNNNNNN^^^^^^^^^^^^))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"            000000000000888888888888FFFFFFFFFFFF~~~~~~~~~~~~))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"++++++++++++222222222222xxxxxxxxxxxxNNNNNNNNNNNNEEEEEEEEEEEE))))))))))))''''''''''''}}}}}}}}}}}}",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"$$$$$$$$$$$$000000000000GGGGGGGGGGGGnnnnnnnnnnnnLLLLLLLLLLLL))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"ooooooooooooffffffffffffccccccccccccbbbbbbbbbbbbRRRRRRRRRRRR____________''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"@@@@@@@@@@@@111111111111777777777777JJJJJJJJJJJJPPPPPPPPPPPP((((((((((((''''''''''''{{{{{{{{{{{{",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"            iiiiiiiiiiiiGGGGGGGGGGGGVVVVVVVVVVVV~~~~~~~~~~~~____________''''''''''''}}}}}}}}}}}}",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"------------222222222222KKKKKKKKKKKKIIIIIIIIIIIIQQQQQQQQQQQQ____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"&&&&&&&&&&&&222222222222333333333333WWWWWWWWWWWW~~~~~~~~~~~~____________''''''''''''{{{{{{{{{{{{",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"wwwwwwwwwwww============555555555555EEEEEEEEEEEEEEEEEEEEEEEE____________''''''''''''||||||||||||",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"ffffffffffff>>>>>>>>>>>>rrrrrrrrrrrrnnnnnnnnnnnn~~~~~~~~~~~~____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-"############$$$$$$$$$$$$CCCCCCCCCCCCEEEEEEEEEEEE(((((((((((())))))))))))''''''''''''}}}}}}}}}}}}",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-",,,,,,,,,,,,666666666666ddddddddddddHHHHHHHHHHHHEEEEEEEEEEEE____________]]]]]]]]]]]]{{{{{{{{{{{{",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"xxxxxxxxxxxxjjjjjjjjjjjjccccccccccccSSSSSSSSSSSSPPPPPPPPPPPP))))))))))))]]]]]]]]]]]]}}}}}}}}}}}}",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-"000000000000%%%%%%%%%%%%ttttttttttttmmmmmmmmmmmm////////////````````````''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-">>>>>>>>>>>>uuuuuuuuuuuuZZZZZZZZZZZZmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"OOOOOOOOOOOO444444444444888888888888KKKKKKKKKKKKTTTTTTTTTTTT))))))))))))''''''''''''{{{{{{{{{{{{",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"++++++++++++666666666666CCCCCCCCCCCCQQQQQQQQQQQQYYYYYYYYYYYY____________''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"oooooooooooo,,,,,,,,,,,,DDDDDDDDDDDDmmmmmmmmmmmmLLLLLLLLLLLL))))))))))))''''''''''''}}}}}}}}}}}}",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"::::::::::::eeeeeeeeeeee444444444444mmmmmmmmmmmm^^^^^^^^^^^^____________''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"............666666666666ZZZZZZZZZZZZbbbbbbbbbbbbPPPPPPPPPPPP````````````''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"aaaaaaaaaaaaiiiiiiiiiiiizzzzzzzzzzzzJJJJJJJJJJJJPPPPPPPPPPPP))))))))))))''''''''''''{{{{{{{{{{{{",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"............eeeeeeeeeeee444444444444IIIIIIIIIIIIWWWWWWWWWWWW))))))))))))''''''''''''}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"llllllllllll444444444444HHHHHHHHHHHHvvvvvvvvvvvv((((((((((((____________]]]]]]]]]]]]}}}}}}}}}}}}",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"qqqqqqqqqqqq111111111111ssssssssssssGGGGGGGGGGGGQQQQQQQQQQQQ____________[[[[[[[[[[[[{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppkkkkkkkkkkkkttttttttttttSSSSSSSSSSSS!!!!!!!!!!!!))))))))))))]]]]]]]]]]]]{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"ppppppppppppzzzzzzzzzzzzddddddddddddFFFFFFFFFFFFLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{",
-"666666666666************777777777777MMMMMMMMMMMMLLLLLLLLLLLL````````````''''''''''''{{{{{{{{{{{{"
-};
diff --git a/src/xpm/addressbook16.xpm b/src/xpm/addressbook16.xpm
deleted file mode 100644 (file)
index e00944e..0000000
+++ /dev/null
@@ -1,278 +0,0 @@
-/* XPM */\r
-static const char * addressbook16_xpm[] = {\r
-/* columns rows colors chars-per-pixel */\r
-"16 16 256 2",\r
-"   c #FFFFFF",\r
-".  c #F7FFFF",\r
-"X  c #F7F7FF",\r
-"o  c #EFF7FF",\r
-"O  c #E6EFF7",\r
-"+  c #E6E6F7",\r
-"@  c #CEE6F7",\r
-"#  c #DEDEEF",\r
-"$  c #D6DEEF",\r
-"%  c #D6DEE6",\r
-"&  c #CEDEF7",\r
-"*  c #CEDEEF",\r
-"=  c #EFF708",\r
-"-  c #C5DEF7",\r
-";  c #CED6EF",\r
-":  c None",\r
-">  c #C5D6E6",\r
-",  c #BDD6F7",\r
-"<  c #BDD6EF",\r
-"1  c #D6CECE",\r
-"2  c #BDCEE6",\r
-"3  c #BDC5E6",\r
-"4  c #B5C5DE",\r
-"5  c #BDD631",\r
-"6  c #ADBDDE",\r
-"7  c #B5B5BD",\r
-"8  c #A5B5D6",\r
-"9  c #00FFFF",\r
-"0  c #9CB5CE",\r
-"q  c #9CADD6",\r
-"w  c #94A5D6",\r
-"e  c #8CA5D6",\r
-"r  c #8CA5CE",\r
-"t  c #8CA5C5",\r
-"y  c #849CC5",\r
-"u  c #7B9CD6",\r
-"i  c #7B9CCE",\r
-"p  c #31BDCE",\r
-"a  c #6B9CD6",\r
-"s  c #00F708",\r
-"d  c #8494AD",\r
-"f  c #7B94B5",\r
-"g  c #6B94D6",\r
-"h  c #6B9C84",\r
-"j  c #7B8CAD",\r
-"k  c #738CAD",\r
-"l  c #638CC5",\r
-"z  c #10CE42",\r
-"x  c #638CBD",\r
-"c  c #7B849C",\r
-"v  c #73849C",\r
-"b  c #6B84A5",\r
-"n  c #7B7BA5",\r
-"m  c #6B849C",\r
-"M  c #7B8C42",\r
-"N  c #5A84C5",\r
-"B  c #29AD6B",\r
-"V  c #F74A4A",\r
-"C  c #6384A5",\r
-"Z  c #5284C5",\r
-"A  c #637BA5",\r
-"S  c #637B9C",\r
-"D  c #9C637B",\r
-"F  c #6B7B5A",\r
-"G  c #637394",\r
-"H  c #52739C",\r
-"J  c #5A7384",\r
-"K  c #526B94",\r
-"L  c #426B94",\r
-"P  c #52638C",\r
-"I  c #426B7B",\r
-"U  c #5A5A8C",\r
-"Y  c #524A7B",\r
-"T  c #425273",\r
-"R  c #21636B",\r
-"E  c #106394",\r
-"W  c #106B52",\r
-"Q  c #3A4273",\r
-"!  c #31426B",\r
-"~  c #523163",\r
-"^  c #29426B",\r
-"/  c #293A63",\r
-"(  c #213A63",\r
-")  c #193A63",\r
-"_  c #193163",\r
-"`  c #19315A",\r
-"'  c #212963",\r
-"]  c #10315A",\r
-"[  c #082952",\r
-"{  c #FFCC33",\r
-"}  c #33FF33",\r
-"|  c #66FF33",\r
-" . c #99FF33",\r
-".. c #CCFF33",\r
-"X. c #FFFF33",\r
-"o. c #000066",\r
-"O. c #330066",\r
-"+. c #660066",\r
-"@. c #990066",\r
-"#. c #CC0066",\r
-"$. c #FF0066",\r
-"%. c #003366",\r
-"&. c #333366",\r
-"*. c #663366",\r
-"=. c #993366",\r
-"-. c #CC3366",\r
-";. c #FF3366",\r
-":. c #006666",\r
-">. c #336666",\r
-",. c #666666",\r
-"<. c #996666",\r
-"1. c #CC6666",\r
-"2. c #009966",\r
-"3. c #339966",\r
-"4. c #669966",\r
-"5. c #999966",\r
-"6. c #CC9966",\r
-"7. c #FF9966",\r
-"8. c #00CC66",\r
-"9. c #33CC66",\r
-"0. c #99CC66",\r
-"q. c #CCCC66",\r
-"w. c #FFCC66",\r
-"e. c #00FF66",\r
-"r. c #33FF66",\r
-"t. c #99FF66",\r
-"y. c #CCFF66",\r
-"u. c #FF00CC",\r
-"i. c #CC00FF",\r
-"p. c #009999",\r
-"a. c #993399",\r
-"s. c #990099",\r
-"d. c #CC0099",\r
-"f. c #000099",\r
-"g. c #333399",\r
-"h. c #660099",\r
-"j. c #CC3399",\r
-"k. c #FF0099",\r
-"l. c #006699",\r
-"z. c #336699",\r
-"x. c #663399",\r
-"c. c #996699",\r
-"v. c #CC6699",\r
-"b. c #FF3399",\r
-"n. c #339999",\r
-"m. c #669999",\r
-"M. c #999999",\r
-"N. c #CC9999",\r
-"B. c #FF9999",\r
-"V. c #00CC99",\r
-"C. c #33CC99",\r
-"Z. c #66CC66",\r
-"A. c #99CC99",\r
-"S. c #CCCC99",\r
-"D. c #FFCC99",\r
-"F. c #00FF99",\r
-"G. c #33FF99",\r
-"H. c #66CC99",\r
-"J. c #99FF99",\r
-"K. c #CCFF99",\r
-"L. c #FFFF99",\r
-"P. c #0000CC",\r
-"I. c #330099",\r
-"U. c #6600CC",\r
-"Y. c #9900CC",\r
-"T. c #CC00CC",\r
-"R. c #003399",\r
-"E. c #3333CC",\r
-"W. c #6633CC",\r
-"Q. c #9933CC",\r
-"!. c #CC33CC",\r
-"~. c #FF33CC",\r
-"^. c #0066CC",\r
-"/. c #3366CC",\r
-"(. c #666699",\r
-"). c #9966CC",\r
-"_. c #CC66CC",\r
-"`. c #FF6699",\r
-"'. c #0099CC",\r
-"]. c #3399CC",\r
-"[. c #6699CC",\r
-"{. c #9999CC",\r
-"}. c #CC99CC",\r
-"|. c #FF99CC",\r
-" X c #00CCCC",\r
-".X c #33CCCC",\r
-"XX c #66CCCC",\r
-"oX c #99CCCC",\r
-"OX c #CCCCCC",\r
-"+X c #FFCCCC",\r
-"@X c #00FFCC",\r
-"#X c #33FFCC",\r
-"$X c #66FF99",\r
-"%X c #99FFCC",\r
-"&X c #CCFFCC",\r
-"*X c #FFFFCC",\r
-"=X c #3300CC",\r
-"-X c #6600FF",\r
-";X c #9900FF",\r
-":X c #0033CC",\r
-">X c #3333FF",\r
-",X c #6633FF",\r
-"<X c #9933FF",\r
-"1X c #CC33FF",\r
-"2X c #FF33FF",\r
-"3X c #0066FF",\r
-"4X c #3366FF",\r
-"5X c #6666CC",\r
-"6X c #9966FF",\r
-"7X c #CC66FF",\r
-"8X c #FF66CC",\r
-"9X c #0099FF",\r
-"0X c #3399FF",\r
-"qX c #6699FF",\r
-"wX c #9999FF",\r
-"eX c #CC99FF",\r
-"rX c #FF99FF",\r
-"tX c #00CCFF",\r
-"yX c #33CCFF",\r
-"uX c #66CCFF",\r
-"iX c #99CCFF",\r
-"pX c #CCCCFF",\r
-"aX c #FFCCFF",\r
-"sX c #33FFFF",\r
-"dX c #66FFCC",\r
-"fX c #99FFFF",\r
-"gX c #CCFFFF",\r
-"hX c #FF6666",\r
-"jX c #66FF66",\r
-"kX c #FFFF66",\r
-"lX c #6666FF",\r
-"zX c #FF66FF",\r
-"xX c #66FFFF",\r
-"cX c #A50021",\r
-"vX c #5F5F5F",\r
-"bX c #777777",\r
-"nX c #868686",\r
-"mX c #969696",\r
-"MX c #CBCBCB",\r
-"NX c #B2B2B2",\r
-"BX c #D7D7D7",\r
-"VX c #DDDDDD",\r
-"CX c #E3E3E3",\r
-"ZX c #EAEAEA",\r
-"AX c #F1F1F1",\r
-"SX c #F8F8F8",\r
-"DX c #FFFBF0",\r
-"FX c #A0A0A4",\r
-"GX c #808080",\r
-"HX c #FF0000",\r
-"JX c #00FF00",\r
-"KX c #FFFF00",\r
-"LX c #0000FF",\r
-"PX c #FF00FF",\r
-"IX c #00FFFF",\r
-"UX c #FFFFFF",\r
-/* pixels */\r
-": : : : : : : : : : : : : : : : ",\r
-": : H H H A d : 7 G K H H : : : ",\r
-"n n c     X 4 k j X     b n n : ",\r
-"n 2 c $ 8 6 4 x < + 4 4 C V ~ : ",\r
-"n * c X o $ y N u 6 $ + b D Y : ",\r
-"n * c     X > g ,       S z R : ",\r
-"n * c * r r y g , 6 r q S s W : ",\r
-"n * c     X 4 N u +     m B I : ",\r
-"n * c     X ; a -       S 5 F : ",\r
-"n * c * r r r g -       S = M : ",\r
-"n * c     X 4 N -       m h J : ",\r
-"n * c     X ; a -       A 9 E : ",\r
-"n * ( ] ` ^ P l y T / / ( p L : ",\r
-"n O     > 0 f ) ! t 8     % n : ",\r
-"U U U U U U U ' Q U U U U U U : ",\r
-": : : : : : : : : : : : : : : : "\r
-};\r
diff --git a/src/xpm/addressbook20.xpm b/src/xpm/addressbook20.xpm
deleted file mode 100644 (file)
index 7ebd73f..0000000
+++ /dev/null
@@ -1,282 +0,0 @@
-/* XPM */\r
-static const char * addressbook20_xpm[] = {\r
-/* columns rows colors chars-per-pixel */\r
-"20 20 256 2",\r
-"   c #FFFFFF",\r
-".  c #F7FFFF",\r
-"X  c #F7F7FF",\r
-"o  c #EFF7FF",\r
-"O  c #EFF7F7",\r
-"+  c #E6EFFF",\r
-"@  c #E6EFF7",\r
-"#  c #DEEFFF",\r
-"$  c #DEE6F7",\r
-"%  c #DEE6EF",\r
-"&  c #D6E6F7",\r
-"*  c #FFFF00",\r
-"=  c #DEDEE6",\r
-"-  c #D6DEE6",\r
-";  c #D6D6DE",\r
-":  c #CED6E6",\r
-">  c None",\r
-",  c #C5D6E6",\r
-"<  c #C5CEE6",\r
-"1  c #B5CEEF",\r
-"2  c #C5C5C5",\r
-"3  c #C5DE31",\r
-"4  c #B5C5DE",\r
-"5  c #BDC5C5",\r
-"6  c #ADC5EF",\r
-"7  c #B5C5CE",\r
-"8  c #BDBDBD",\r
-"9  c #B5BDCE",\r
-"0  c #ADBDDE",\r
-"q  c #ADBDD6",\r
-"w  c #B5CE52",\r
-"e  c #ADB5C5",\r
-"r  c #00FFFF",\r
-"t  c #A5B5C5",\r
-"y  c #9CB5CE",\r
-"u  c #94B5DE",\r
-"i  c #9CADD6",\r
-"p  c #A5ADB5",\r
-"a  c #94ADDE",\r
-"s  c #94ADD6",\r
-"d  c #9CADBD",\r
-"f  c #8CADDE",\r
-"g  c #BD9CA5",\r
-"h  c #9CA5BD",\r
-"j  c #9CA5B5",\r
-"k  c #29D6E6",\r
-"l  c #8CA5CE",\r
-"z  c #849CCE",\r
-"x  c #6BA5C5",\r
-"c  c #739CDE",\r
-"v  c #00FF00",\r
-"b  c #739CD6",\r
-"n  c #7B94CE",\r
-"m  c #8494AD",\r
-"M  c #7394CE",\r
-"N  c #7B94B5",\r
-"B  c #4AB584",\r
-"V  c #848CB5",\r
-"C  c #6B94CE",\r
-"Z  c #6394D6",\r
-"A  c #6394CE",\r
-"S  c #7B8CAD",\r
-"D  c #6B8CC5",\r
-"F  c #738CAD",\r
-"G  c #5294B5",\r
-"H  c #6B84C5",\r
-"J  c #7384A5",\r
-"K  c #73849C",\r
-"L  c #738494",\r
-"P  c #FF4A4A",\r
-"I  c #FF4A42",\r
-"U  c #737B8C",\r
-"Y  c #637BAD",\r
-"T  c #527BBD",\r
-"R  c #637394",\r
-"E  c #637352",\r
-"W  c #5A6B8C",\r
-"Q  c #526B9C",\r
-"!  c #63638C",\r
-"~  c #5A734A",\r
-"^  c #4A6B9C",\r
-"/  c #526B63",\r
-"(  c #0884A5",\r
-")  c #526384",\r
-"_  c #52637B",\r
-"`  c #4A6B5A",\r
-"'  c #52636B",\r
-"]  c #525A8C",\r
-"[  c #525A7B",\r
-"{  c #426363",\r
-"}  c #4A5A7B",\r
-"|  c #425A8C",\r
-" . c #196B94",\r
-".. c #3A5A8C",\r
-"X. c #3A5A84",\r
-"o. c #087B4A",\r
-"O. c #21636B",\r
-"+. c #634263",\r
-"@. c #3A527B",\r
-"#. c #424A84",\r
-"$. c #315284",\r
-"%. c #295284",\r
-"&. c #3A4A6B",\r
-"*. c #42427B",\r
-"=. c #424273",\r
-"-. c #294A84",\r
-";. c #3A3A73",\r
-":. c #194284",\r
-">. c #104A63",\r
-",. c #213A6B",\r
-"<. c #31316B",\r
-"1. c #21315A",\r
-"2. c #212163",\r
-"3. c #08295A",\r
-"4. c #082152",\r
-"5. c #101952",\r
-"6. c #CC9966",\r
-"7. c #FF9966",\r
-"8. c #00CC66",\r
-"9. c #33CC66",\r
-"0. c #99CC66",\r
-"q. c #CCCC66",\r
-"w. c #FFCC66",\r
-"e. c #00FF66",\r
-"r. c #33FF66",\r
-"t. c #99FF66",\r
-"y. c #CCFF66",\r
-"u. c #FF00CC",\r
-"i. c #CC00FF",\r
-"p. c #009999",\r
-"a. c #993399",\r
-"s. c #990099",\r
-"d. c #CC0099",\r
-"f. c #000099",\r
-"g. c #333399",\r
-"h. c #660099",\r
-"j. c #CC3399",\r
-"k. c #FF0099",\r
-"l. c #006699",\r
-"z. c #336699",\r
-"x. c #663399",\r
-"c. c #996699",\r
-"v. c #CC6699",\r
-"b. c #FF3399",\r
-"n. c #339999",\r
-"m. c #669999",\r
-"M. c #999999",\r
-"N. c #CC9999",\r
-"B. c #FF9999",\r
-"V. c #00CC99",\r
-"C. c #33CC99",\r
-"Z. c #66CC66",\r
-"A. c #99CC99",\r
-"S. c #CCCC99",\r
-"D. c #FFCC99",\r
-"F. c #00FF99",\r
-"G. c #33FF99",\r
-"H. c #66CC99",\r
-"J. c #99FF99",\r
-"K. c #CCFF99",\r
-"L. c #FFFF99",\r
-"P. c #0000CC",\r
-"I. c #330099",\r
-"U. c #6600CC",\r
-"Y. c #9900CC",\r
-"T. c #CC00CC",\r
-"R. c #003399",\r
-"E. c #3333CC",\r
-"W. c #6633CC",\r
-"Q. c #9933CC",\r
-"!. c #CC33CC",\r
-"~. c #FF33CC",\r
-"^. c #0066CC",\r
-"/. c #3366CC",\r
-"(. c #666699",\r
-"). c #9966CC",\r
-"_. c #CC66CC",\r
-"`. c #FF6699",\r
-"'. c #0099CC",\r
-"]. c #3399CC",\r
-"[. c #6699CC",\r
-"{. c #9999CC",\r
-"}. c #CC99CC",\r
-"|. c #FF99CC",\r
-" X c #00CCCC",\r
-".X c #33CCCC",\r
-"XX c #66CCCC",\r
-"oX c #99CCCC",\r
-"OX c #CCCCCC",\r
-"+X c #FFCCCC",\r
-"@X c #00FFCC",\r
-"#X c #33FFCC",\r
-"$X c #66FF99",\r
-"%X c #99FFCC",\r
-"&X c #CCFFCC",\r
-"*X c #FFFFCC",\r
-"=X c #3300CC",\r
-"-X c #6600FF",\r
-";X c #9900FF",\r
-":X c #0033CC",\r
-">X c #3333FF",\r
-",X c #6633FF",\r
-"<X c #9933FF",\r
-"1X c #CC33FF",\r
-"2X c #FF33FF",\r
-"3X c #0066FF",\r
-"4X c #3366FF",\r
-"5X c #6666CC",\r
-"6X c #9966FF",\r
-"7X c #CC66FF",\r
-"8X c #FF66CC",\r
-"9X c #0099FF",\r
-"0X c #3399FF",\r
-"qX c #6699FF",\r
-"wX c #9999FF",\r
-"eX c #CC99FF",\r
-"rX c #FF99FF",\r
-"tX c #00CCFF",\r
-"yX c #33CCFF",\r
-"uX c #66CCFF",\r
-"iX c #99CCFF",\r
-"pX c #CCCCFF",\r
-"aX c #FFCCFF",\r
-"sX c #33FFFF",\r
-"dX c #66FFCC",\r
-"fX c #99FFFF",\r
-"gX c #CCFFFF",\r
-"hX c #FF6666",\r
-"jX c #66FF66",\r
-"kX c #FFFF66",\r
-"lX c #6666FF",\r
-"zX c #FF66FF",\r
-"xX c #66FFFF",\r
-"cX c #A50021",\r
-"vX c #5F5F5F",\r
-"bX c #777777",\r
-"nX c #868686",\r
-"mX c #969696",\r
-"MX c #CBCBCB",\r
-"NX c #B2B2B2",\r
-"BX c #D7D7D7",\r
-"VX c #DDDDDD",\r
-"CX c #E3E3E3",\r
-"ZX c #EAEAEA",\r
-"AX c #F1F1F1",\r
-"SX c #F8F8F8",\r
-"DX c #FFFBF0",\r
-"FX c #A0A0A4",\r
-"GX c #808080",\r
-"HX c #FF0000",\r
-"JX c #00FF00",\r
-"KX c #FFFF00",\r
-"LX c #0000FF",\r
-"PX c #FF00FF",\r
-"IX c #00FFFF",\r
-"UX c #FFFFFF",\r
-/* pixels */\r
-"> > > > > > > > > > > > > > > > > > > > ",\r
-"> > > > > > > > > > > > > > > > > > > > ",\r
-"> > U $.| | ^ S 2 > p W | | @.L > > > > ",\r
-"8 5 R -       < Y j S O     - ) g e > > ",\r
-"! V K -       % a Q #       - +.P <.> > ",\r
-"! & K - 0 z n D C b f n n z q +.P <.> > ",\r
-"! & K -       % M A 1       - %.G #.> > ",\r
-"! & K -       % u b #       - o.v >.> > ",\r
-"! & K - 0 z n H M b 6 z n z q o.v >.> > ",\r
-"! & K -     X - M A a       - O.B @.> > ",\r
-"! & K -     X % u b #       - ` 3 / > > ",\r
-"! & K - 0 l i 4 u b #       - ~ * E > > ",\r
-"! & K - X o $ s T b #       - { w ' > > ",\r
-"! & K -       % f b #       -  .k -.> > ",\r
-"! & K m d t 7 , u b # ; 9 9 h ( r :.> > ",\r
-"! & h _ _ [ &.4.$.A ,.1.} _ _ F x ] > > ",\r
-"! @       , y N _ 3._ N y ,     @ ! > > ",\r
-"*.*.*.*.*.*.*.*.;.5.*.*.*.*.*.*.*.2.> > ",\r
-"> > > > > > > > > > > > > > > > > > > > ",\r
-"> > > > > > > > > > > > > > > > > > > > "\r
-};\r
diff --git a/src/xpm/bitcoin16.xpm b/src/xpm/bitcoin16.xpm
deleted file mode 100644 (file)
index f70fef0..0000000
+++ /dev/null
@@ -1,219 +0,0 @@
-/* XPM */
-static const char * bitcoin16_xpm[] = {
-/* columns rows colors chars-per-pixel */
-"16 16 197 2",
-"   c #755507",
-".  c #775606",
-"X  c #795707",
-"o  c #7D5A07",
-"O  c #765608",
-"+  c #74550A",
-"@  c #75550A",
-"#  c #75560A",
-"$  c #785708",
-"%  c #78580B",
-"&  c #7D5C0B",
-"*  c #78590E",
-"=  c #7E5F14",
-"-  c #8A6711",
-";  c #8D6B15",
-":  c #8A691A",
-">  c #93711C",
-",  c #9D7A23",
-"<  c #9F7B22",
-"1  c #9C7B2A",
-"2  c #9E7C28",
-"3  c #A37F26",
-"4  c #B4831B",
-"5  c #A68126",
-"6  c #A5852E",
-"7  c #A9872E",
-"8  c #AC862D",
-"9  c #AC872F",
-"0  c #AF8B30",
-"q  c #AC8932",
-"w  c #AF8A34",
-"e  c #B08E36",
-"r  c #B98F33",
-"t  c #B18E3A",
-"y  c #B39036",
-"u  c #B69237",
-"i  c #B3913B",
-"p  c #B6923C",
-"a  c #BD9338",
-"s  c #B9993F",
-"d  c #BA993F",
-"f  c #C2932D",
-"g  c #C09437",
-"h  c #C59832",
-"j  c #C39836",
-"k  c #C89835",
-"l  c #C59C3D",
-"z  c #CF9E3E",
-"x  c #CFA23F",
-"c  c #D0A13A",
-"v  c #D3A23A",
-"b  c #D4A338",
-"n  c #D6A33F",
-"m  c #B19345",
-"M  c #BF9940",
-"N  c #BF9D43",
-"B  c #B3954B",
-"V  c #BD9A48",
-"C  c #BC9C4B",
-"Z  c #BD9F51",
-"A  c #CAA244",
-"S  c #C2A14B",
-"D  c #C4A44B",
-"F  c #C1A24C",
-"G  c #C7A64C",
-"H  c #C5A64E",
-"J  c #C9A94F",
-"K  c #D1A343",
-"L  c #D7A644",
-"P  c #D5A547",
-"I  c #D6A547",
-"U  c #DCAD42",
-"Y  c #DDAB45",
-"T  c #C3A151",
-"R  c #C9A551",
-"E  c #CAAA50",
-"W  c #CBAD53",
-"Q  c #CDAC52",
-"!  c #CEA855",
-"~  c #CEB15A",
-"^  c #DEB154",
-"/  c #D1B35A",
-"(  c #D7B35A",
-")  c #D8B45D",
-"_  c #E3B34A",
-"`  c #E2B34E",
-"'  c #E6B54F",
-"]  c #E2B350",
-"[  c #E3B352",
-"{  c #E4B451",
-"}  c #E2B355",
-"|  c #E7B853",
-" . c #E9BC51",
-".. c #ECBC53",
-"X. c #E7BE5A",
-"o. c #E2BA5C",
-"O. c #E2BC5C",
-"+. c #E9BB59",
-"@. c #EBBE59",
-"#. c #EABD5B",
-"$. c #E8BF5C",
-"%. c #E9BE5E",
-"&. c #C8AC63",
-"*. c #D0B162",
-"=. c #D5B567",
-"-. c #DABC62",
-";. c #D2B66B",
-":. c #D0B56D",
-">. c #DCBC6E",
-",. c #D2B972",
-"<. c #D7BE78",
-"1. c #E9BE62",
-"2. c #EEC05A",
-"3. c #F0C25F",
-"4. c #DEC26B",
-"5. c #DDC27A",
-"6. c #E0C167",
-"7. c #E5C067",
-"8. c #EBC463",
-"9. c #EEC460",
-"0. c #ECC364",
-"q. c #E4C16B",
-"w. c #E7C46B",
-"e. c #E9C56C",
-"r. c #E0C172",
-"t. c #E5C575",
-"y. c #E4C870",
-"u. c #E6CA72",
-"i. c #E6CA74",
-"p. c #E8CB73",
-"a. c #E9CE76",
-"s. c #EBD07B",
-"d. c #EED179",
-"f. c #F5D478",
-"g. c #F5D57C",
-"h. c #F4D67C",
-"j. c #F4D77E",
-"k. c #DEC781",
-"l. c #E0C883",
-"z. c #E3CA89",
-"x. c #E4CB8B",
-"c. c #E3CD8A",
-"v. c #E5CE8B",
-"b. c #E3CC8E",
-"n. c #E8D18D",
-"m. c #F6D980",
-"M. c #F7DB83",
-"N. c #F3DA86",
-"B. c #F7DA84",
-"V. c #F6DB84",
-"C. c #F7DB84",
-"Z. c #F7DA86",
-"A. c #F6DC85",
-"S. c #F7DC85",
-"D. c #F8DB85",
-"F. c #FADD85",
-"G. c #FBDE86",
-"H. c #F5DE8B",
-"J. c #FADD88",
-"K. c #F9DF8B",
-"L. c #E4CF93",
-"P. c #E6CF92",
-"I. c #E6D094",
-"U. c #EAD597",
-"Y. c #EBD698",
-"T. c #EFDA99",
-"R. c #F0DC9C",
-"E. c #FCE089",
-"W. c #FCE28B",
-"Q. c #FDE28B",
-"!. c #FCE38C",
-"~. c #FCE28D",
-"^. c #FCE38D",
-"/. c #FDE38D",
-"(. c #FEE38D",
-"). c #FDE38E",
-"_. c #FEE48D",
-"`. c #FEE58F",
-"'. c #FCE490",
-"]. c #FDE490",
-"[. c #FFE590",
-"{. c #FFE690",
-"}. c #FFE691",
-"|. c #FEE791",
-" X c #FFE692",
-".X c #FFE792",
-"XX c #FEE693",
-"oX c #FFE693",
-"OX c #FFE793",
-"+X c #FEE897",
-"@X c #F6E2A2",
-"#X c #F7E3A2",
-"$X c #FAE6A8",
-"%X c #FBE7A9",
-"&X c #FCE9AB",
-"*X c #FDEAAC",
-"=X c None",
-/* pixels */
-"=X=X=X=X=X0 S G D i =X=X=X=X=X=X",
-"=X=X=X9 6.).).).).).d.e =X=X=X=X",
-"=X=Xu C.J.O.( h ( o.D.).J & =X=X",
-"=X0 S.j.f 4 b.e P.K @.j.'.d % =X",
-"=X4.).k a T Y.&.Y.R 2.2.F.S.- =X",
-"e '.e.z ! v.&X,.k.*X:. .%.`.d # ",
-"H +X^ I P =.*X9 j T.k.U ' F.-.% ",
-"W '.` { } >.*X<.n.*XC b Y g.u.X ",
-"W |.` { 3.t.&Xm C c.%Xa n m.u.. ",
-"N '.9...@.r.&Xi A 5.*XM L W.~ . ",
-"5 m.f._ *.#X&XR.#X%X:.v 0.'.7 # ",
-"=XQ `.@.l t P.B I.u v { G.a.o =X",
-"=X3 u.W.0.A z.V b.+.1.J.E., # =X",
-"=X=X3 u.oXF.e.7.q.C.+XH.6 # =X=X",
-"=X=X=X=XS s.'.'.'.C.~ ; * =X=X=X",
-"=X=X=X=X=X=X1 1 > : = =X=X=X=X=X"
-};
diff --git a/src/xpm/bitcoin20.xpm b/src/xpm/bitcoin20.xpm
deleted file mode 100644 (file)
index 3cc29ac..0000000
+++ /dev/null
@@ -1,160 +0,0 @@
-/* XPM */
-static const char * bitcoin20_xpm[] = {
-/* columns rows colors chars-per-pixel */
-"20 20 134 2",
-"   c #735305",
-".  c #785706",
-"X  c #7E5C07",
-"o  c #755509",
-"O  c #76580D",
-"+  c #7F6015",
-"@  c #85620D",
-"#  c #89650D",
-"$  c #836215",
-"%  c #886510",
-"&  c #8E6B11",
-"*  c #81641F",
-"=  c #906D19",
-"-  c #977116",
-";  c #96741E",
-":  c #9B761E",
-">  c #947424",
-",  c #9B7722",
-"<  c #9D7824",
-"1  c #A47F23",
-"2  c #A17D2A",
-"3  c #A58125",
-"4  c #AA8327",
-"5  c #A4832F",
-"6  c #AD862B",
-"7  c #B28B2E",
-"8  c #A58433",
-"9  c #A88637",
-"0  c #AD8932",
-"q  c #A78639",
-"w  c #A8893C",
-"e  c #B28C34",
-"r  c #B88E33",
-"t  c #B28E3A",
-"y  c #B79136",
-"u  c #BB9235",
-"i  c #BB9639",
-"p  c #C19836",
-"a  c #C29539",
-"s  c #C59C3C",
-"d  c #A88B41",
-"f  c #AF9045",
-"g  c #B49342",
-"h  c #BE9641",
-"j  c #BD9B44",
-"k  c #B29448",
-"l  c #B7994B",
-"z  c #B8994C",
-"x  c #C09946",
-"c  c #CB9E46",
-"v  c #C59D4C",
-"b  c #CFA246",
-"n  c #CBAB47",
-"m  c #CEA74A",
-"M  c #D4A749",
-"N  c #D6A94D",
-"B  c #C7A754",
-"V  c #CEA453",
-"C  c #C6AA56",
-"Z  c #CDA955",
-"A  c #CBAB5B",
-"S  c #D2AB54",
-"D  c #D2AE5E",
-"F  c #D9AE5A",
-"G  c #D7B356",
-"H  c #DDB35F",
-"J  c #DFB95A",
-"K  c #E1B554",
-"L  c #E4BA56",
-"P  c #E6BC5A",
-"I  c #E9BE5E",
-"U  c #C7AC64",
-"Y  c #CBAF64",
-"T  c #CDB166",
-"R  c #D4B364",
-"E  c #DBB463",
-"W  c #DFB867",
-"Q  c #D5B76B",
-"!  c #DFBA6F",
-"~  c #D5BB76",
-"^  c #D7BE79",
-"/  c #E3BC64",
-"(  c #E8BF64",
-")  c #E0BB68",
-"_  c #DECA7A",
-"`  c #EBC265",
-"'  c #EBC36B",
-"]  c #EFC96B",
-"[  c #F1C564",
-"{  c #F3CB6A",
-"}  c #F9CD6C",
-"|  c #FAD16C",
-" . c #E5C770",
-".. c #EEC774",
-"X. c #E6CE7E",
-"o. c #EFCE7A",
-"O. c #F1CB73",
-"+. c #F4CE7A",
-"@. c #F3D273",
-"#. c #FCD574",
-"$. c #FEDA76",
-"%. c #F5D47D",
-"&. c #FAD47B",
-"*. c #F2D97D",
-"=. c #FCDA7A",
-"-. c #DDC784",
-";. c #E1CA86",
-":. c #E4CE8B",
-">. c #ECD985",
-",. c #E7D18E",
-"<. c #F4DC84",
-"1. c #FCDC81",
-"2. c #F4DB8B",
-"3. c #FBDF8B",
-"4. c #EBD592",
-"5. c #EFDA99",
-"6. c #F1DD9C",
-"7. c #F6E081",
-"8. c #FDE484",
-"9. c #FFEA87",
-"0. c #F9E488",
-"q. c #FEE88D",
-"w. c #F9E394",
-"e. c #FFEB93",
-"r. c #FEE698",
-"t. c #FEEA9B",
-"y. c #FFF49A",
-"u. c #F7E4A4",
-"i. c #F9E5A5",
-"p. c #FCE9AA",
-"a. c #F7F0AA",
-"s. c #FEF1AE",
-"d. c #FEF6B3",
-"f. c None",
-/* pixels */
-"f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.",
-"f.f.f.f.f.f.f.0 y i i 0 , f.f.f.f.f.f.f.",
-"f.f.f.f.3 p P | $.| } { I p ; f.f.f.f.f.",
-"f.f.f.4 L | $.{ L K L ` =.#.` 3 $ f.f.f.",
-"f.f.6 [ $.{ M a Q 0 Q S ' %.q.*.6 o f.f.",
-"f.3 ' $.P i u r ,.< :.S +.%.0.y.*.& f.f.",
-"f.C e.%.c x T Y 6.U 5.T R @.#.0.9.n . f.",
-"f.>.t.W F A ^ p.u.~ -.p.i.C { { =.@.# f.",
-"e e.3.E H / j p.6.0 V ~ p.Y ( ` #.$.3 o ",
-"j p.2.( ( ! Z p.6.l R 6.6.t I I { #.y o ",
-"j e.1.( ! +.H i.i.-.:.i.u.R N K ` #.u   ",
-"i 9.&.( ..1.) p.6.8 j w p.p.h N ' #.7   ",
-"4 =.7.` ....Z p.6.g D T p.i.t M [ } - o ",
-"f.J =.{ ` E i.p.p.i.p.p.6.k u M } K @ o ",
-"f.7 @.@./ S z f 4.d ,.q 2 r a ( { 6   f.",
-"f.f.m @.O.( / V 4.q :.v V V O.&.G X O f.",
-"f.f.: G 1.0.+.W R D R ! 4.d.d._ #   f.f.",
-"f.f.f.2 C a.i.r.w.w.i.s.d.p.Y @   f.f.f.",
-"f.f.f.f.f.5 Z  .<.3.2.X.A > .   f.f.f.f.",
-"f.f.f.f.f.f.f.> > = # $ + f.f.f.f.f.f.f."
-};
diff --git a/src/xpm/bitcoin32.xpm b/src/xpm/bitcoin32.xpm
deleted file mode 100644 (file)
index f538a44..0000000
+++ /dev/null
@@ -1,232 +0,0 @@
-/* XPM */
-static const char * bitcoin32_xpm[] = {
-/* columns rows colors chars-per-pixel */
-"32 32 194 2",
-"   c #745305",
-".  c #785704",
-"X  c #7C5903",
-"o  c #75560B",
-"O  c #77590F",
-"+  c #7C5C0B",
-"@  c #795B12",
-"#  c #7F631D",
-"$  c #825E07",
-"%  c #825F0B",
-"&  c #85610A",
-"*  c #8C660C",
-"=  c #8E680E",
-"-  c #916B0F",
-";  c #856515",
-":  c #8B6714",
-">  c #8F6A16",
-",  c #816218",
-"<  c #88691C",
-"1  c #926D12",
-"2  c #936F1C",
-"3  c #997417",
-"4  c #94721E",
-"5  c #9B761C",
-"6  c #9F781C",
-"7  c #A17B1E",
-"8  c #826622",
-"9  c #916E20",
-"0  c #967425",
-"q  c #9D7420",
-"w  c #9C7923",
-"e  c #997728",
-"r  c #99792C",
-"t  c #A37D23",
-"y  c #A37F2C",
-"u  c #A68125",
-"i  c #AB8225",
-"p  c #A5832B",
-"a  c #AA852C",
-"s  c #B28A2C",
-"d  c #A58233",
-"f  c #AC8734",
-"g  c #AE8C33",
-"h  c #AC8C3C",
-"j  c #B28C33",
-"k  c #B98E34",
-"l  c #B28D3D",
-"z  c #B59136",
-"x  c #BC9335",
-"c  c #B3913E",
-"v  c #BC933A",
-"b  c #BF9A3D",
-"n  c #C19235",
-"m  c #C2953C",
-"M  c #C39B3C",
-"N  c #CA9C3D",
-"B  c #B59343",
-"V  c #BE9642",
-"C  c #B69A44",
-"Z  c #BD9A45",
-"A  c #B49649",
-"S  c #BB9A49",
-"D  c #BB9F52",
-"F  c #BFA256",
-"G  c #C49C43",
-"H  c #CA9D41",
-"J  c #C59D4A",
-"K  c #C99E4D",
-"L  c #C3A144",
-"P  c #CDA244",
-"I  c #CFAA47",
-"U  c #C3A14D",
-"Y  c #CDA24A",
-"T  c #CCAB49",
-"R  c #D2A644",
-"E  c #D2A54B",
-"W  c #D6AA4C",
-"Q  c #DAAE4E",
-"!  c #DAB04F",
-"~  c #C7A656",
-"^  c #CDA452",
-"/  c #CFAC52",
-"(  c #C0A65E",
-")  c #CEA75A",
-"_  c #CCAC59",
-"`  c #D2AB53",
-"'  c #DCAF52",
-"]  c #D6AD5A",
-"[  c #D9AE5B",
-"{  c #DCB556",
-"}  c #DFB855",
-"|  c #D6B25F",
-" . c #DCB35C",
-".. c #DEBE5E",
-"X. c #E2B656",
-"o. c #E1B55A",
-"O. c #E6BC5D",
-"+. c #E9BD5E",
-"@. c #C3AA63",
-"#. c #CCAD62",
-"$. c #D4AF62",
-"%. c #CDB565",
-"&. c #CEB46D",
-"*. c #D7B164",
-"=. c #DBB362",
-"-. c #D6BD64",
-";. c #DDBA64",
-":. c #D3B66C",
-">. c #DFB86B",
-",. c #CEB772",
-"<. c #D0B771",
-"1. c #D4BA73",
-"2. c #D9BE77",
-"3. c #D6BE79",
-"4. c #D8BF7A",
-"5. c #E4BB62",
-"6. c #E9BF64",
-"7. c #E4BC69",
-"8. c #E9BF69",
-"9. c #E0BB71",
-"0. c #E9C05E",
-"q. c #D2C279",
-"w. c #DBC27C",
-"e. c #E2C667",
-"r. c #EDC364",
-"t. c #E3C16E",
-"y. c #ECC46C",
-"u. c #EDCC6C",
-"i. c #F1C764",
-"p. c #F5CA66",
-"a. c #F9CD67",
-"s. c #F5CC6A",
-"d. c #F9CD6B",
-"f. c #FBD36F",
-"g. c #EDC572",
-"h. c #E5CF77",
-"j. c #ECCA74",
-"k. c #E0C67E",
-"l. c #EFCE78",
-"z. c #F6CE72",
-"x. c #FBCF71",
-"c. c #F4CE79",
-"v. c #F4D273",
-"b. c #FCD473",
-"n. c #F4DC75",
-"m. c #FEDA74",
-"M. c #F6D77C",
-"N. c #FBD47A",
-"B. c #F1DA7B",
-"V. c #FDDA7C",
-"C. c #FEE27D",
-"Z. c #DDC683",
-"A. c #DFC884",
-"S. c #E4CA84",
-"D. c #E3CC89",
-"F. c #E7D183",
-"G. c #EFD280",
-"H. c #EFDC82",
-"J. c #ECD48D",
-"K. c #EFDA8C",
-"L. c #F9D783",
-"P. c #F2DF83",
-"I. c #FCDB83",
-"U. c #F5DC8F",
-"Y. c #FADD8B",
-"T. c #EBD593",
-"R. c #EFDA99",
-"E. c #F3DD93",
-"W. c #F3DF9F",
-"Q. c #FFE385",
-"!. c #FEE986",
-"~. c #FDE48C",
-"^. c #FEEC8E",
-"/. c #ECE199",
-"(. c #F6E591",
-"). c #FEE494",
-"_. c #FEEB93",
-"`. c #FEE69A",
-"'. c #FFEB9B",
-"]. c #FFF197",
-"[. c #FFF39B",
-"{. c #FEF99B",
-"}. c #F6E2A2",
-"|. c #F9E5A5",
-" X c #F7E9A5",
-".X c #FEECA4",
-"XX c #FBE7A8",
-"oX c #FDEAAB",
-"OX c #F7F2AA",
-"+X c #FEF2AC",
-"@X c #FDF4B4",
-"#X c #FFFABA",
-"$X c #FFFEC2",
-"%X c None",
-/* pixels */
-"%X%X%X%X%X%X%X%X%X%X%X%Xp t 6 5 w t w %X%X%X%X%X%X%X%X%X%X%X%X%X",
-"%X%X%X%X%X%X%X%X%Xu u x I X.0.s.u.0.W x 7 4 %X%X%X%X%X%X%X%X%X%X",
-"%X%X%X%X%X%X%Xy i I i.a.f.m.m.b.f.s.a.s.i.W 7 > %X%X%X%X%X%X%X%X",
-"%X%X%X%X%X%Xt M 0.a.m.m.m.m.f.d.p.p.p.f.d.f.i.b 1 < %X%X%X%X%X%X",
-"%X%X%X%X%X7 ! d.f.f.m.f.+.W P R I Q 5.v.V.V.z.f.{ 5 + %X%X%X%X%X",
-"%X%X%X%Xu X.f.m.m.f.' H s ~ V y _ Z J o.g.L.L.Q.!.e.5 X %X%X%X%X",
-"%X%X%Xu X.b.C.m.+.N m n t }.3.> }.w.V 5.y.y.Y.[.^.^.-.1 + %X%X%X",
-"%X%Xt P m.N.m.X.v v v k 6 }.1.: /.4.c 7.N.N.v.!.{.{.^.L & %X%X%X",
-"%X%Xg Y.Y.V.+.m k a t t : }.1.% }.1.r | l.B.M.b.!.{.^.n.7 X %X%X",
-"%Xp -._.'.Y.' Y n D.}.}.|.oXXX|.oX XT.w.F _ j.v.v._.^.C.T & @ %X",
-"%Xa (.'.'.9.[ [ K S.}.oXoXoXoXXXoXoXoXoX XD / s.d.v.!.C.v.3 o %X",
-"%XU '.'.Y.[ [ [ [ J f <.oXoX( 2 f S J.oXoXT.j r.s.i.C.C.C.z X %X",
-"p e.'.'.F. .=.=.=.=.) 1.oXoX@.f  . .F oXoX}.a +.i.i.b.C.m.I X O ",
-"u w.'.[.j.5.8.7.7.7.] 2.oXoX@.y W c &.oXoXZ.k r.s.i.s.V.m.} = o ",
-"u H.[.{.y.8.y.g.8.g.7.2.oXoXA.@.&.D.oXoXT.e G +.O.O.5.V.m.0.- o ",
-"u !.].[.r.8.y.g.g.g.7.4.oXoXoXoXoXoXoXoXoX<.y W X.o.o.m.m.0.- o ",
-"u B._._.5.5.8.y.g.c.g.w.oXoX,.h A F <..XoXoX1.k ' ' ' V.N.r.-   ",
-"u u.Q.~.r.6.z.N.V.I.v.k.oXoX@.B | _ c 1.oXoX}.a ' ' O.I.b.O.= o ",
-"u ..Q.Q.v.i.s.c.N.L.l.Z.oXoX@.B t.=.S &.oXoXXXy Y R +.N.b.Q % o ",
-"t T C.I.I.6.u.z.z.5.S 1.oXoX@.e B h D |.oXoXS.f Y Y 6.d.d.n X O ",
-"%Xs m.V.Q.r.r.z.5.<.}.oXoXoXXXW.}.oXoXoXoXW.h G H R a.p.s.7   %X",
-"%X7 O.V.V.v.+.r.` 4.oXoXoXoXoXoXoXoXXXR.<.h v N N o.a.p.Q =   %X",
-"%Xw x v.v.v.r.+. .Z l d e }.Z.r }.3.d l V G n n R a.s.a.s X O %X",
-"%X%X6 { v.l.v.+.O.5.=.^ d }.4.9 }.1.f J G m m G d.d.x.Q =   %X%X",
-"%X%X%Xs u.v.v.v.r.6.o. .l }.4.9 W.4.l ^ ^ J ) c.N.N.y.7 X O %X%X",
-"%X%X%X5 z v.v.M.I.g.;. .J 1.#.B 1.#.) 7.$.S..X'.W.Y.j $   %X%X%X",
-"%X%X%X%X5 b N.Y.~.).Y.j.5.$.=.=.$.*.2.J.@X$X#X#XoXC $   %X%X%X%X",
-"%X%X%X%X%X3 z U.@X+X`.`.`.(.E.E.E.|.@X@X#X#X#X/.j %   %X%X%X%X%X",
-"%X%X%X%X%X%Xw a q.OX|.).`._.'.'.XX.X.X+X+X X%.w X o %X%X%X%X%X%X",
-"%X%X%X%X%X%X%X%Xw a _ j.~.~.).).`.`.`.F._ t & . # %X%X%X%X%X%X%X",
-"%X%X%X%X%X%X%X%X%X%X4 3 t z L U Z z t 1 $ . 8 %X%X%X%X%X%X%X%X%X",
-"%X%X%X%X%X%X%X%X%X%X%X%X%X< ; & + + , 8 %X%X%X%X%X%X%X%X%X%X%X%X"
-};
diff --git a/src/xpm/bitcoin48.xpm b/src/xpm/bitcoin48.xpm
deleted file mode 100644 (file)
index 85a7711..0000000
+++ /dev/null
@@ -1,277 +0,0 @@
-/* XPM */
-static const char * bitcoin48_xpm[] = {
-/* columns rows colors chars-per-pixel */
-"48 48 223 2",
-"   c #765404",
-".  c #795704",
-"X  c #7C5904",
-"o  c #7C5A0A",
-"O  c #825E05",
-"+  c #815F0E",
-"@  c #815F11",
-"#  c #866107",
-"$  c #866208",
-"%  c #8A650A",
-"&  c #8E680D",
-"*  c #916B0E",
-"=  c #866414",
-"-  c #8C6715",
-";  c #8F6A10",
-":  c #8A691B",
-">  c #956E12",
-",  c #906D1D",
-"<  c #967013",
-"1  c #997215",
-"2  c #94711F",
-"3  c #9C751A",
-"4  c #9E781C",
-"5  c #A27B1D",
-"6  c #947324",
-"7  c #997625",
-"8  c #9D7926",
-"9  c #97792B",
-"0  c #9D7B28",
-"q  c #9C7F34",
-"w  c #A47E22",
-"e  c #A87F21",
-"r  c #A37E2A",
-"t  c #A8801F",
-"y  c #A58025",
-"u  c #AB8425",
-"i  c #A5812C",
-"p  c #AB842A",
-"a  c #AB892D",
-"s  c #B0862C",
-"d  c #B48C2D",
-"f  c #B88F2F",
-"g  c #B9912E",
-"h  c #A68432",
-"j  c #AB8531",
-"k  c #AD8A33",
-"l  c #A68638",
-"z  c #AD8B3B",
-"x  c #B38C32",
-"c  c #BA8E35",
-"v  c #B28D3B",
-"b  c #B59234",
-"n  c #BD9235",
-"m  c #B5903E",
-"M  c #BC943B",
-"N  c #BA9A3B",
-"B  c #C29536",
-"V  c #C59937",
-"C  c #C2953B",
-"Z  c #C49C3C",
-"A  c #CA9E3D",
-"S  c #AC8E43",
-"D  c #AD9045",
-"F  c #AE9248",
-"G  c #B49444",
-"H  c #B99542",
-"J  c #B49842",
-"K  c #BD9C44",
-"L  c #B3954A",
-"P  c #B7994D",
-"I  c #BD9A4A",
-"U  c #B69A52",
-"Y  c #BB9E54",
-"T  c #BEA04A",
-"R  c #BFA354",
-"E  c #BEA35A",
-"W  c #C19742",
-"Q  c #C49B43",
-"!  c #CA9D41",
-"~  c #C39C4B",
-"^  c #C99E4A",
-"/  c #C7A444",
-"(  c #CDA244",
-")  c #CAA945",
-"_  c #C5A44C",
-"`  c #CCA44B",
-"'  c #C6A94C",
-"]  c #CFAC4D",
-"[  c #D2A647",
-"{  c #D2A54B",
-"}  c #D4AA4C",
-"|  c #D9AC4D",
-" . c #D4B04E",
-".. c #DCB14D",
-"X. c #C4A151",
-"o. c #CAA454",
-"O. c #C6AB56",
-"+. c #CCA955",
-"@. c #C1A45A",
-"#. c #C6AA5A",
-"$. c #CDAB5D",
-"%. c #D1A652",
-"&. c #D4AB53",
-"*. c #DDAF52",
-"=. c #D3AC5B",
-"-. c #D9AF5C",
-";. c #D5B154",
-":. c #DDB253",
-">. c #D5B25B",
-",. c #DCB45D",
-"<. c #DDBB5E",
-"1. c #E1B354",
-"2. c #E4B955",
-"3. c #E3B65B",
-"4. c #E5BA5C",
-"5. c #EABE5E",
-"6. c #C6AB63",
-"7. c #CCAD63",
-"8. c #C6AE68",
-"9. c #C9AF69",
-"0. c #D4AC60",
-"q. c #CDB067",
-"w. c #CDB36C",
-"e. c #D6B162",
-"r. c #DDB463",
-"t. c #D7B964",
-"y. c #DBB965",
-"u. c #D1B66F",
-"i. c #DDB66A",
-"p. c #D0BC6C",
-"a. c #DFBE6B",
-"s. c #CEB772",
-"d. c #D1B771",
-"f. c #D4BC74",
-"g. c #DBBD75",
-"h. c #DABF78",
-"j. c #E2B764",
-"k. c #E4BA64",
-"l. c #E9BD62",
-"z. c #E2BB6A",
-"x. c #E8BF69",
-"c. c #EBC15F",
-"v. c #F1C25E",
-"b. c #DFC266",
-"n. c #DBC26C",
-"m. c #DCC676",
-"M. c #DEC973",
-"N. c #D7C07A",
-"B. c #D9C27E",
-"V. c #E4C162",
-"C. c #EDC363",
-"Z. c #E3C36F",
-"A. c #EBC26C",
-"S. c #E5CA6B",
-"D. c #EECA6D",
-"F. c #F1C565",
-"G. c #F5CB66",
-"H. c #F9CA66",
-"J. c #F2C76A",
-"K. c #F5CC6A",
-"L. c #F9CD6C",
-"P. c #EDD26C",
-"I. c #FBD26E",
-"U. c #E5C374",
-"Y. c #EDC573",
-"T. c #E6CB74",
-"R. c #EECC73",
-"E. c #EBCA78",
-"W. c #F5CD74",
-"Q. c #F9CE72",
-"!. c #EED77F",
-"~. c #F4D274",
-"^. c #FDD473",
-"/. c #F2D870",
-"(. c #FED975",
-"). c #F5D37C",
-"_. c #FCD57A",
-"`. c #F7D87A",
-"'. c #FEDC7C",
-"]. c #FFE37D",
-"[. c #DCC682",
-"{. c #E1C984",
-"}. c #E4CD8A",
-"|. c #EFD182",
-" X c #E5D48D",
-".X c #EAD28D",
-"XX c #E8DB8D",
-"oX c #F1D581",
-"OX c #FDD581",
-"+X c #F5DB84",
-"@X c #FDDC84",
-"#X c #FEDE89",
-"$X c #EAD594",
-"%X c #E1D894",
-"&X c #ECDA94",
-"*X c #EFDA99",
-"=X c #F2DD9C",
-"-X c #F6E284",
-";X c #FEE385",
-":X c #FFE883",
-">X c #FEE38C",
-",X c #FEEA8C",
-"<X c #F6E196",
-"1X c #FEE594",
-"2X c #FEEC93",
-"3X c #F6E39C",
-"4X c #FEE599",
-"5X c #FFEB9B",
-"6X c #FFF195",
-"7X c #FEF39B",
-"8X c #FEF99C",
-"9X c #F5E2A2",
-"0X c #F9E5A5",
-"qX c #F6EAA6",
-"wX c #FFECA3",
-"eX c #FDEAAB",
-"rX c #FFF5A0",
-"tX c #FFF2AB",
-"yX c #FEF5B3",
-"uX c #FFF9B3",
-"iX c #FFFBBB",
-"pX c #FFFDC1",
-"aX c None",
-/* pixels */
-"aXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaX* < * < < < < * * & aXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaXaXaXaXaXaXaX* 1 3 5 u u d g Z Z N d u 5 3 * % aXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaXaXaXaXaX< 3 t u A ..c.K.I.I.(.(.'.(.G.2.( d 5 1 & aXaXaXaXaXaXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaXaXaX< 5 t g 1.G.H.H.I.(.'.(.I.I.I.K.K.G.I.K.2.V u 1 % aXaXaXaXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaXaX4 t g c.G.H.I.I.I.].(.(.(.I.G.H.K.G.K.I.G.K.Q.C.C 5 & % aXaXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaX4 u } v.G.G.I.(.].(.(.(.I.G.G.G.G.G.L.G.K.I.^.^.L.L.:.u < # aXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXt d c.G.I.I.I.I.].(.I.G.c.........:.4.C.W.~.`.'._.^.K.K.J.N 4 # aXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaX5 g v.H.I.I.(.(.(.H.c.[ V V V V A A A ! ( } l.).>X@X_.`._.'.'./ 4 O aXaXaXaXaXaXaX",
-"aXaXaXaXaXaXt g C.I.(.(.^.(.^.1.( ! C d p u s d d d x M &.3.3.A.).+XOX>X;X;X;X) 3 O aXaXaXaXaXaX",
-"aXaXaXaXaX5 d G.I.'.].(.^.l.( C A C s H =X=XI 7 N.*X$Xk o.j.z.J.l.W.1X7X6X,X,X,XK 1 X aXaXaXaXaX",
-"aXaXaXaX3 p C.(.(.'.'.^.*.C C C C B r G eXeXL - [.eX3Xr ~ r.W._.W.J.D.6X8X6X6X6X-Xd & X aXaXaXaX",
-"aXaXaXaXu ;.'.'.(.^.^.| C c B B B c w z eXeXF = [.eX*X8 K r.@X#X;X`.~.D.7X8X8X6X,XS.y O aXaXaXaX",
-"aXaXaXw N #X#X'.'.^.*.C c c s r e r 2 r eXeXD $ B.eX=X: z z.oX>X,X,X;X~.D.8X8X6X,X:X) < X aXaXaX",
-"aXaX3 a T.1X1X>X#XA.! C B s $.6.6.@.@.w.eXeXd.U $XeX9XF z G O.n.!.-X;X'.D./.8X6X,X:X/.u # aXaXaX",
-"aXaXy K 5X5X5X2X>X-.} ^ C r 0XeXeXeXeXeXeXeXeXeXeXeXeXeXeX9XN.L O.T.`.]./.F.-X6X:X].].) < . aXaX",
-"aXaXa M.7X5X5X5XU.&.-.&.^ j 0XeXeXeXeXeXeXeXeXeXeXeXeXeXeXeXeX9XL X.~.'.'.K.c.6X:X].].P.t O aXaX",
-"aX5 k 2X5X5X5X<X-.-.-.-.=.W q.6.9.=XeXeXeXeXs.9.d.B.*XeXeXeXeXeX&Xh <.(.(.Q.F.~.;X].].].b & . aX",
-"aXy O.5X5X5X5XE.-.-.-.-.-.%.Q z 6 6.eXeXeXeX: , w r 7 R eXeXeXeX0XG ' ~.^.^.F.l.;X].].]. .1 . aX",
-"aXp n.2X5X5X5Xj.-.-.-.r.r.r.-.=.G 9.eXeXeXeX6 j ( &.} i [.eXeXeXeXY Q J.I.I.L.5.(.;X].(.c.5 X aX",
-"3 a !.7X5X7X<X-.r.r.r.r.j.r.r.r.W w.eXeXeXeX6 v ,.Q.k.m s.eXeXeXeXL K C.L.L.L.F.D.'.'.(.I.u #   ",
-"5 a ,X5XrXwX+X3.j.j.j.z.z.z.z.r.~ w.eXeXeXeX6 l ;.<._ 0 *XeXeXeX0X0 ( G.L.Q.L.5.C.].'.^.^.g $   ",
-"4 b 2X7X7XrX!.l.x.x.x.x.U.x.z.z.~ w.eXeXeXeX: , k z Y  XeXeXeXeXY r } C.5.5.5.3.4.'.(.^.^.V % . ",
-"4 N 6X7X7XrXOXx.x.x.W.x.Y.Y.Y.Y.o.d.eXeXeXeX=X=X9XeXeXeXeXeXeX8.+ r [ 3.5.5.3.3.1.'._.(.^.A & . ",
-"5 N 2X6X5X5XW.x.x.x.x.W.Y.Y.Y.Y.o.d.eXeXeXeXeXeXeXeXeXeXeXeXeXeX[.r C | 1.3.3.3.:._._.^.I./ %   ",
-"5 N ,X2X2X6XD.l.l.x.x.x.Y.Y.Y.R.=.f.eXeXeXeX[.[.[.[.*XeXeXeXeXeXeX*Xj ! *.1.1.1.1._._.^.^./ %   ",
-"5 b ;X,X,X2XU.3.j.x.Y.W.).OX#X@Xt.f.eXeXeXeX: : 7 7 : 6 6.eXeXeXeXeXd.k { *.*.*.1.OX_.(.^.V %   ",
-"4 a ].;X;X>X`.C.L.^._._.OX@X#X#Xt.f.eXeXeXeX6 z #.o.I z 6 w.eXeXeXeX*Xr ! { %.%.,.OX_.(.^.n %   ",
-"4 u /.;X;X;X@XF.Q.Q._._._.@X#X#Xa.f.eXeXeXeX9 I a.Z.y.+.k F eXeXeXeX0Xr Q { { { 4.'.(.^.^.u O   ",
-"aXu V.;X;X;X>XF.K.Q.Q._._.OX#X@Xt.f.eXeXeXeX9 I Z.U.z.=.z 8.eXeXeXeX=X7 Q { { ( A._.^.^.F.5 O   ",
-"aXu ] '.'.;X>XK.J.Q.Q.^._._.~.Z.R w.eXeXeXeX6 S =.>.+.G S 9XeXeXeXeXh.r ! ( ( [ L.L.L.L.:.1 . aX",
-"aX5 b '.'.'.@X`.F.K.Q.Q.~.A.e.$.P }.eXeXeXeXF L E #.9.[.eXeXeXeXeXeXS k ! ( ! *.H.K.H.L.Z %   aX",
-"aX1 u J.(.'.'.;XC.F.W.Q.K.&.h.eXeXeXeXeXeXeXeXeXeXeXeXeXeXeXeXeXeX@.2 c ! ! ! F.H.L.H.F.w O   aX",
-"aXaXw ( (.(.`.`.`.C.F.K.A.~ [.eXeXeXeXeXeXeXeXeXeXeXeXeXeXeXeX*XF 7 r C B A | H.H.H.H.| 1 X aXaX",
-"aXaX3 u D.~.~.~.`.D.C.J.V.` .X=X=X3X9X9XeXeX9X=XeXeXeX$X{.9.S 2 r r B B B V 5.H.H.H.H.s + . aXaX",
-"aXaXaXt / ~.W.~.`.`.5.V.C.>.M i 6 - = q eXeXS o B.eX*Xo 7 r r r B C B r B 1.H.H.L.L.*.5 X . aXaX",
-"aXaXaX1 u 4.~.~.~.~.~.c.V.l.4.,.~ H i S eXeXF : [.eX=X, r W ^ W W C C W *.Q.Q.Q.Q.J.e %   aXaXaX",
-"aXaXaXaX5 b K.~.~.R.~.`.l.C.J.A.,.=.H P eXeXU , [.eX=X7 v ^ %.^ W ^ ^ -.^.^.W._.W.Z > .   aXaXaX",
-"aXaXaXaX1 5 / ~.~.~.~.~.`.F.F.<.r.,.~ R eXeXY 7 [.eX=Xq ~ 0.r.0.%.o.g.#XOXOXOXOX,.4 O   aXaXaXaX",
-"aXaXaXaXaX1 y } ~.`.`.`.'.#XR.,.r.,.+.X.9.7.I G 9.7.7.X.0.i.i.j.i.9XeX0X=X4X1XT.r #   aXaXaXaXaX",
-"aXaXaXaXaXaX1 u :.'.'.OX#X#X1X+XA.3.r.-.=.=.>.e.i.$.0.0.i.j.g.0XpXpXpXyXuXyXXXk %   aXaXaXaXaXaX",
-"aXaXaXaXaXaXaX1 p >.>X#X>X1X1X1X1X1X|.U.z.3.j.z.y.i.i.U..XqXpXiXpXpXpXiXiX Xh % . . aXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaX< y _ 3XtXuXtXwX=X4X4X4X5X<X>X=X3X0XeXtXyXuXiXiXiXiXiXuXp.y # . . aXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaX* y J %XpXiXwX4X4X4X5X4X5X5XwXwXwXeXtXeXtXtXyXyXyX&XJ 3 #   aXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaXaX* 3 k R  XwX4X1X1X1X1X5X4X5X5XwX5XwXwXtXtXtX&X@.y & X   aXaXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaXaXaXaX& 3 a J t.|.>X,X>X>X2X1X1X1X5X4X0X<Xm.T i > O   o aXaXaXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaXaXaXaXaXaX% > w p b _ >.b.S.T.T.U.t.O.N p 4 & O . o aXaXaXaXaXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaX$ $ ; 1 4 5 5 w w 5 3 > % O . . o aXaXaXaXaXaXaXaXaXaXaXaXaXaXaX",
-"aXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXO X X X o X X X o aXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaXaX"
-};
diff --git a/src/xpm/bitcoin80.xpm b/src/xpm/bitcoin80.xpm
deleted file mode 100644 (file)
index c3c816e..0000000
+++ /dev/null
@@ -1,292 +0,0 @@
-/* XPM */
-static const char * bitcoin80_xpm[] = {
-/* columns rows colors chars-per-pixel */
-"80 80 206 2",
-"   c #725203",
-".  c #785706",
-"X  c #7B5907",
-"o  c #7C5A09",
-"O  c #7F5F10",
-"+  c #815E0B",
-"@  c #85620C",
-"#  c #89650F",
-"$  c #856313",
-"%  c #896614",
-"&  c #8D6913",
-"*  c #886718",
-"=  c #8D6B1B",
-"-  c #926D14",
-";  c #926E1B",
-":  c #967116",
-">  c #997317",
-",  c #95711E",
-"<  c #9B7419",
-"1  c #9F781B",
-"2  c #A27B1D",
-"3  c #8F6F22",
-"4  c #926F21",
-"5  c #947323",
-"6  c #9A7623",
-"7  c #9D7925",
-"8  c #957628",
-"9  c #9A7729",
-"0  c #9D7B2B",
-"q  c #9D7F33",
-"w  c #A47D23",
-"e  c #A97F27",
-"r  c #A37E2B",
-"t  c #9F8030",
-"y  c #A78021",
-"u  c #AC8425",
-"i  c #A5802D",
-"p  c #AC842B",
-"a  c #AF8829",
-"s  c #B2872C",
-"d  c #B28B2D",
-"f  c #A68333",
-"g  c #AA8633",
-"h  c #AD8A36",
-"j  c #A4863A",
-"k  c #A88638",
-"l  c #A7893B",
-"z  c #AC8B3B",
-"x  c #B28732",
-"c  c #B48C32",
-"v  c #B98E34",
-"b  c #B28D3B",
-"n  c #B88F3C",
-"m  c #B69033",
-"M  c #BD9235",
-"N  c #B4913D",
-"B  c #BC943A",
-"V  c #BE993C",
-"C  c #C19336",
-"Z  c #C1953B",
-"A  c #C49A3C",
-"S  c #C99C3D",
-"D  c #CDA13F",
-"F  c #D0A33F",
-"G  c #A88B40",
-"H  c #B08F40",
-"J  c #AE9142",
-"K  c #AE944C",
-"L  c #B49443",
-"P  c #BB9542",
-"I  c #B49946",
-"U  c #BD9846",
-"Y  c #B3964C",
-"T  c #BB974A",
-"R  c #B6994A",
-"E  c #BF9C4A",
-"W  c #B69B53",
-"Q  c #B99D53",
-"!  c #BCA055",
-"~  c #BDA25A",
-"^  c #C49742",
-"/  c #C49C43",
-"(  c #CB9E42",
-")  c #C49D4B",
-"_  c #C99E4C",
-"`  c #C29F52",
-"'  c #C5A244",
-"]  c #CDA245",
-"[  c #C5A34C",
-"{  c #CCA34B",
-"}  c #CCA94D",
-"|  c #D2A445",
-" . c #D1A54B",
-".. c #D5AA4E",
-"X. c #DBAF4F",
-"o. c #C6A352",
-"O. c #CBA554",
-"+. c #C5AA57",
-"@. c #CEAC54",
-"#. c #C4A65A",
-"$. c #CDA458",
-"%. c #C2A85F",
-"&. c #CEAA5B",
-"*. c #D0A550",
-"=. c #D4AB53",
-"-. c #DBAE53",
-";. c #D0A75B",
-":. c #D4AC5A",
-">. c #D9AE5C",
-",. c #CEB25E",
-"<. c #D4B156",
-"1. c #DDB156",
-"2. c #D4B25C",
-"3. c #DCB35D",
-"4. c #D7B85C",
-"5. c #DCBA5E",
-"6. c #E2B355",
-"7. c #E2B65B",
-"8. c #E4BA5D",
-"9. c #EABD5E",
-"0. c #C5AA62",
-"q. c #CCAE63",
-"w. c #C6AE69",
-"e. c #D5AF62",
-"r. c #CEB167",
-"t. c #CCB36C",
-"y. c #D5B162",
-"u. c #DCB462",
-"i. c #D7B964",
-"p. c #DCBC64",
-"a. c #D2B66B",
-"s. c #DCB669",
-"d. c #D7BE69",
-"f. c #DFB86A",
-"g. c #D0B771",
-"h. c #D2BA74",
-"j. c #D5BE78",
-"k. c #E1B766",
-"l. c #E4BB63",
-"z. c #E9BE63",
-"x. c #E3BB6A",
-"c. c #E9BF6A",
-"v. c #E1BE72",
-"b. c #DDC16B",
-"n. c #DAC27E",
-"m. c #E4C164",
-"M. c #ECC264",
-"N. c #E4C36B",
-"B. c #EBC36C",
-"V. c #E7C96F",
-"C. c #EECA6E",
-"Z. c #F1C564",
-"A. c #F1C76A",
-"S. c #F5CB6C",
-"D. c #FACE6D",
-"F. c #F4D06F",
-"G. c #FCD06E",
-"H. c #E5C371",
-"J. c #EDC573",
-"K. c #E4CA73",
-"L. c #ECCC74",
-"P. c #E7CF7A",
-"I. c #EBCD7A",
-"U. c #F3CD73",
-"Y. c #F8CE71",
-"T. c #F3CD7A",
-"R. c #EDD076",
-"E. c #EDD17B",
-"W. c #F4D274",
-"Q. c #FBD274",
-"!. c #FED977",
-"~. c #F3D47B",
-"^. c #FDD47A",
-"/. c #F5DA7C",
-"(. c #FDDA7C",
-"). c #FFE07F",
-"_. c #DBC481",
-"`. c #DFC885",
-"'. c #E1CA86",
-"]. c #EACC80",
-"[. c #E4CD8A",
-"{. c #EED383",
-"}. c #E7D18F",
-"|. c #EAD38C",
-" X c #F4D680",
-".X c #FDD780",
-"XX c #F5DA83",
-"oX c #FCDC84",
-"OX c #F5DB8A",
-"+X c #FADE89",
-"@X c #EAD492",
-"#X c #EED896",
-"$X c #EFDA9A",
-"%X c #F1DD9D",
-"&X c #FDE283",
-"*X c #F6E18D",
-"=X c #FEE48D",
-"-X c #FFE692",
-";X c #FFE894",
-":X c #FBE799",
-">X c #FFEA98",
-",X c #F6E2A3",
-"<X c #FAE6A6",
-"1X c #FAE7A8",
-"2X c #FDEAAB",
-"3X c None",
-/* pixels */
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u u u u u y y u y 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u u u u u u u a u u u u u u a u u 2 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u u u u u u s m V D ' { ' D M d u u a u u u u 2 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u u u u M } m.~.oX=X=X=X=X=X-X-X=X&X/.m.=.V u u a u u w 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u u u M 4.~.=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X/.5.Z u u u u u 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u u ] V.&X=X=X&X=X=X=X=X=X=X=X=X=X&X=X=X=X=X=X=X=X=X=X=XW.} a u u u 2 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu a u u ' W.=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X+X=X=X=X&X=X=X=X~.} a u u u < 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u M N.=X&X=X=X=X=X=X=X=X-X=X=X=X=X&X=X=X=XoX=X=X=X=X&X+X=X=X=X=X=X=X=XL.M u u u < 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u u } XX=X=X=X&X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X*X=X=X=X=X=X=X=X=X=X=X=X=X=X=XoX<.a u u 2 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u s m.&X=X=X=X=X=X=X=X=X=X=X=X=X=X/.L.M.m.9.m.9.m.C.~.&X*X=X=X=X=X=X=X=X=X=X=X=X=XV.m u u 2 o 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3Xu u u c R.=X=X=X=X=X=X=X=X=X=X=XoXC.1.| S S A S D D D D ] ] ..<.N./.=X-X=X-X=X=X=X=X=X=X=XXXZ u a 2 o 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3Xu u u m XX=X=X=X=X=X=X=X=X=X=XW.3.| ^ A C M M M C S S A A A / ( { =.<.l.I.=X-X-X=X=X=X=X=X=X=X=XV a u 2 . 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3Xu u m /.=X=X=X-X=X=X=X=X=X~.1.D ] S Z v x p s u s d d v c c v V { =.7.8.7.l.T.=X-X=X-X-X-X-X-X=X=XV u a 1   3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3Xu u d /.=X=X=X=X=X=X=X=X&X8.^ A ( S M v e $.r.e.r.u w i a.a.a.&.b ^ =.l.l.l.c.z.z.XX-X-X-X-X=X-X-X;X&XV u u :   3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3Xu u s R.=X=X=X=X=X=X=X=XU.{ ^ Z C ( A M u w [.2X2X2X0 - 7 2X2X1X@Xi P *.l.x.B.U.C.z.z.W.-X-X-X-X-X-X=X-X*Xd a u # . 3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3Xu u u l.=X=X=X=X-X=X=X=Xm.Z Z Z Z n Z Z v e , '.2X2X2X5 & ; 2X2X2X}.7 b { 3.x.^.^.^.Y.A.z.R.-X;X;X;X;X-X;X-XP.a u y . 3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3Xu u } -X-X=X-X=X=X=X=Xl.M M Z C C C C C x e ; '.2X2X2X, $ = 2X2X2X}.6 h ) >.J..X.X.X.X(.W.Z.C.&X;X;X;X;X-X-X-X<.u u <   3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3Xu u c oX=X=X=X=X=X=X=Xl.Z C M M C C v v v s w = '.2X2X2X5 $ = 2X2X2X}.5 g ) u./.+X+X=X=X=X&XW.Z.F.=X;X;X;X;X-X-X*XV u y @ X 3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3Xu u u N.-X-X-X-X=X=X=XB.Z M C v v s e e e e w > % `.2X2X2X= + % 2X2X2X}.= r L 4.E.OX+X-X=X=X&X).W.M.R.;X;X;X-X-X-X;XR.u u y   3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3Xu u U -X-X-X-X-X-X=XW.^ C C C x e e r 6 5 4 ; = $ `.2X2X2X= O = 2X2X2X}.O = t Q ,.b.P./.*X=X&X&X).F.M.W.;X;X;X;X&X-X&X} u u O   3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3Xu u u R.-X-X-X-X-X-X=X=.{ ^ Z C x n 2X2X<X<X1X2X<X<X2X2X2X2X1X1X<X2X2X2X<X$X[.b.~ J I ~ b.P.&X&X&X).!.F.m.).;X;X;X;X;X&X).u y y   3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3Xu u U -X-X-X-X-X-X-Xc.=.=. ._ ^ x z 2X2X1X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X<Xn.l I ,.K./.).).).F.Z.Z.&X;X;X=X-X-X&X} u u O   3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3Xu u V.-X;X-X-X-X-XOX>.>.>.=.=._ n b 2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X:XI N +.V./.).).F.F.9.W.;X=X;X-X-X-XR.u u >   3X3X3X3X3X3X3X3X",
-"3X3X3X3X3Xu u d =X;X-X-X-X-X-Xx.>.>.>.>.>...^ P 2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X,Xl N 4.R.!.!.!.G.Z.M.&X;X=X=X-X-X-XB a u     3X3X3X3X3X3X3X",
-"3X3X3X3X3Xu u @.;X;X-X;X;X;XXX>.:.>.>.>.>.>._ P ` Y Y W _.2X2X2X2X2X2X@XW W ~ 0.t.'.<X2X2X2X2X2X2X2X2X'.0 ' m./.!.!.Q.S.9.F.=X;X-X=X-X&X4.u u @   3X3X3X3X3X3X3X",
-"3X3X3X3X3Xu u P.;X;X;X;X-X:XN.>.>.>.>.>.>.>.=._ P z r 4 8 2X2X2X2X2X2X_.. $ , 6 1 3 t ~ 1X2X2X2X2X2X2X2Xt B 5.G.!.!.G.G.M.9.&X;X=X-X-X=X/.u u >   3X3X3X3X3X3X3X",
-"3X3X3X3Xu u d =X;X;X=X;X;X=X3.>.>.>.e.>.3.3.>.:.*._ P r 9 2X2X2X2X2X1Xn.@ , c B N m h 8 ~ 2X2X2X2X2X2X2XI h <.F.!.G.G.F.M.9.W.;X=X-X-X=X=Xm u y   . 3X3X3X3X3X3X",
-"3X3X3X3Xu u ' -X-X>X-X-X-X X>.>.>.>.>.>.>.u.u.u.u.3.$.P f 2X2X2X2X2X2X_.$ i / -.<.8.} h 8 1X2X2X2X2X2X2X! i <.S.G.G.G.G.Z.9.Z.=X-X=X-X&X-X} u u X   3X3X3X3X3X3X",
-"3X3X3X3Xu u 4.-X-X-X-X-X-XJ.3.>.>.k.k.k.k.k.u.k.u.u.:.U k 2X2X2X2X2X1X_.% f } 8.Z.F.8.U 8 ,X2X2X2X2X2X2XI g } Z.D.G.D.G.D.Z.9.&X-X=X=X=X-Xm.u u @   3X3X3X3X3X3X",
-"3X3X3X3Xu u K.;X-X;X-X>X-Xk.3.k.k.k.k.k.k.k.k.k.k.u.e.U k 2X2X2X2X2X2X_.% f [ 8.F.M.<.b i 2X2X2X2X2X2X2Xt a X.Z.D.D.D.G.G.Z.9./.=X-X=X=X=XR.u u &   3X3X3X3X3X3X",
-"3X3X3X3Xu u E.;X-X;X-X-X=Xl.l.x.c.k.x.k.k.x.x.v.x.x.u.) z 2X2X2X2X2X2X_.$ 7 L <.<.} N 6 h.2X2X2X2X2X2X_.: V 1.S.D.D.G.D.S.M.6.W.-X=X-X=X=X&Xu u >   X 3X3X3X3X3X",
-"3X3X3Xu a u =X;X;X;X;X;XoX7.z.c.c.c.c.c.c.c.c.c.x.k.u.) z 2X2X2X2X2X2Xn.o = i N h i l n.2X2X2X2X2X2X<Xt t D 7.M.Z.z.z.9.9.9.6.M.-X=X=X=X;X=Xm u 1     3X3X3X3X3X",
-"3X3X3Xy u a =X;X;X;X;X;XXXl.z.c.c.c.c.T.J.J.T.v.J.J.s.` z 2X2X2X2X2X2X#XW ~ ~ t.n.$X2X2X2X2X2X2X2X,Xt % t V X.8.9.8.9.9.9.6.6.M.-X=X=X=X=X&XM u 2     3X3X3X3X3X",
-"3X3X3Xu u m -X-X-X;X;X;X~.z.z.c.c.c.c..XJ.J.J.J.J.J.x.O.b 2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2Xw.$ * y V X.7.8.8.9.7.8.7.6.8.=X=X-X-X=X-XV a y     3X3X3X3X3X",
-"3X3X3Xu a m -X-X-X;X;X;X~.7.z.c.c.c.c.c.c.J.T.J.T.J.B.O.b 2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X,X~ , c ' X.6.6.7.6.6.6.6.8.=X=X=X-X&X-XV u y     3X3X3X3X3X",
-"3X3X3Xu u m -X-X-X-X-X-X/.8.l.z.c.T.c.J.c.J.T.v.J.J.x.O.G 2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2Xn.r v { 6.6.6.6.6.6.-.7.&X-X=X=X=X-XD u y     3X3X3X3X3X",
-"3X3X3Xu u d =X-X-X-X-X-X~.7.z.z.c.c.c.c.c.J.c.T.T.^.T.y.R 2X2X2X2X2X2X@XK K W W W ~ h.#X1X2X2X2X2X2X2X2X2Xa.i Z ..X.6.6.-.-.6.7.-X-X-X-X-X-XD u 2     3X3X3X3X3X",
-"3X3X3Xw u a =X-X-X-X-X-X~.7.7.8.c.c.c.c.T..X.X+X+X+XXXi.R 2X2X2X2X2X2Xn.. * 5 8 5 3 = * q `.2X2X2X2X2X2X2X<Xk c | X.6.-.-.-.-.z.&X;X=X;X-X;XV u w     3X3X3X3X3X",
-"3X3X3Xu u u =X-X=X-X-X-X/.8.M.B.Y.T.^.^.^..X.XoXoX+XXXi.R 2X2X2X2X2X2X_.$ 0 b U U N l t 5 $ `.2X2X2X2X2X2X2X0.e Z  .....-.-.6.c.;X=X;X=X;X-Xd u 1     3X3X3X3X3X",
-"3X3X3X3Xu a E.-X-X-X-X-X=Xz.S.D.Y.^.Q.^.^.^..XoX+X+XXXi.R 2X2X2X2X2X2X_.= l +.u.i.,.O.E h 5 G 2X2X2X2X2X2X2X_.0 n |  . .*. .*.T.-X;X;X;X-X=Xa u :     3X3X3X3X3X",
-"3X3X3X3Xu u N.-X-X-X=X-X-XA.Z.S.Y.Q.Q.^.^..X.XoXoX&X.Xi.R 2X2X2X2X2X2X_.= N y.H.H.m.i.y.E f 8 2X2X2X2X2X2X2X'.6 n |  . . . . ..X;X;X;X;X-X~.u u &     3X3X3X3X3X",
-"3X3X3X3Xu u <.-X-X=X=X-X-XW.Z.S.Y.Y.Q.^.^.^.(..XoX=XXXi.R 2X2X2X2X2X2X_.= L 4.H.J.H.x.i.o.k j 2X2X2X2X2X2X2X_.6 B  . . . .{ =.-X;X-X;X-X-Xb.a u @     3X3X3X3X3X",
-"3X3X3X3Xy a V =X=X-X-X=X-XXXZ.S.Y.Y.Y.Q.!.^..X.XoXoXE.y.I 2X2X2X2X2X2X_.= J y.b.H.N.p.&.P 0 g.2X2X2X2X2X2X2Xr.r B _ {  .| ] l.-X;X;X-X-X;X..u u .   . 3X3X3X3X3X",
-"3X3X3X3Xy u a =X=X=X=X-X=X-XM.Z.S.Y.Y.Q.Q.^.^.^.U.J.u.E l 2X2X2X2X2X2X_.* k o.e.e.$.` P q W 1X2X2X2X2X2X2X2XG i B ] | ] ] ( ~.=X;X;X;X;X;XM u y     3X3X3X3X3X3X",
-"3X3X3X3X3Xu u V.-X=X-X=X-X-XF.M.A.D.Y.Q.Y.Q.Y.B.2.[ N 0 j 2X2X2X2X2X2X_.O 5 l G z H H Q _.2X2X2X2X2X2X2X2X#X, g ^ ] ] | ] ..-X-X-X-X&X;X).u u :     3X3X3X3X3X3X",
-"3X3X3X3X3Xu u } =X=X=X=X-X=X&XM.Z.S.D.W.Q.Y.B.*.a.#X@X|.,X2X2X2X2X2X2X,X[.[.}.}.%X<X2X2X2X2X2X2X2X2X2X2X<Xj 6 b / ] ] ] ] M.-X-X-X-X-X-X4.u u O     3X3X3X3X3X3X",
-"3X3X3X3X3Xy u d =X=X=X=X=X=X-XS.M.A.S.S.U.A.u.) n.2X2X2X2X2X2X2X2X2X2X2X2X1X2X2X2X2X2X2X2X2X2X2X2X2X2X2XW ; i M ( S S S ] &X-X-X-X-X=X-Xm u y .   X 3X3X3X3X3X3X",
-"3X3X3X3X3X3Xu u p.=X=X=X=X=X-X&X9.Z.C.S.S.M.:.b [.2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X%XG = r x v C D D D m.-X-X-X-X-X-XR.u u :     3X3X3X3X3X3X3X",
-"3X3X3X3X3X3Xy u B =X=X=X=X=X=X=XF.9.M.A.C.M.=.h %X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X2X1X#X~ 4 ; r p v v M C A | &X-X-X-X-X-X-X] u u X     3X3X3X3X3X3X3X",
-"3X3X3X3X3X3Xy u u N.=X=X-X=X-X=X=XM.z.M.M.M.1.V #X%X%X%X%X$X%X%X<X2X2X2X%X$X%X2X2X2X<X[.n.t.W q = , r i x v C C C M C W.-X-X-X-X-X-X/.u u 1     X 3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3Xu u V *X=X=X*X=X=X=XoX8.M.M.M.5.{ m r , ; $ $ o o `.2X2X2X3 o $ 2X2X2X[.o $ 4 9 0 r g x v m C M C C C 8.&X-X-X-X-X-X-X[ u u @     3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X2 u u 5.=X=X=X=X=X=X=XI.8.M.M.z.3.O.) P b r 0 4 % `.2X2X2X3 $ * 2X2X2X[.$ 4 r e ^ n n Z Z Z C C C M | =X=X-X-X-X-X-XR.u u <       3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3Xy u d XX=X=X=X=X-X=X=XS.8.8.M.M.z.z.7.{ _ U g 5 `.2X2X2X8 = 3 2X2X2X}.3 0 x ^ _ ^ ^ ^ Z ^ B ^ C  .&X-X-X-X-X-X-X=XB u u o     3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X1 u u ' =X=X*X=X=X*X=X=XW.8.M.M.A.S.l.u.>.o.L r [.2X2X2X9 = 8 2X2X2X}.4 r ^ _ *.*._ ) ) ^ ^ ^ O.oX=X-X-X-X-X-X-X<.u u :     . 3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3Xy u u i.=X=X=X=X=X-X*X=XW.9.M.A.B.3.5.5.;.U f [.2X2X2Xq 4 8 2X2X2X}.r q _ _ ;.;.*._ _ ` _ e.+X-X-X-X-X-X-X-XR.a u 2       3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3Xu u u K.=X=X=X-X=X=X=X=XXXz.M.8.5.8.u.:.) h }.2X2X2Xj r f 2X2X2X@Xq T _ e.e.u.e.;.$.$.b.-X-X-X=X;X=X;X-X&Xa a u +     3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3Xu u d ~.=X=X=X=X=X-X=X-X+XC.3.5.7.7.2.@.) q.r.q.q.H H L g.r.w.q.T ` e.k.v.k.k.s.s.{.-X-X;X-X;X;X;X;X*XV u u &     . 3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X2 u u c XX-X=X=X=X=X-X=X-X-X Xl.7.7.u.2.$.o.[ [ o.O.$.&.&.` ` ` q.s.k.v.k.k.x.{.%X>X>X>X;X>X;X>X>X*XV u u >       3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X2 u u m ~.=X-X-X-X=X-X-X-X-X-X Xc.7.5.u.3.e.y.u.s.f.k.s.e.e.s.s.k.k.k.v. X:X>X>X>X>X>X>X;X>X>X*XV u u <       3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X2 u u d R.-X=X-X=X-X-X-X-X-X-X-X+XI.v.u.s.l.k.k.x.x.x.s.s.s.s.j.].+X>X>X>X>X>X:X>X>X>X>X>XOXV u u 1       3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X2 u u a p.-X-X-X;X;X;X-X-X-X:X-X-X-X-XOX XL.J.J.J.L.I.].OX:X>X-X>X>X-X>X>X>X>X>X>X>X>XK.a a u <       3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X2 u u u @.=X;X;X>X;X-X-X>X-X-X-X-X;X-X-X-X-X-X>X>X-X>X-X>X>X>X>X;X>X>X>X-X>X-X-X:X<.u u u >       3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X1 u u u m n.>X;X>X>X-X-X-X-X>X-X-X-X;X;X;X-X-X-X-X-X>X-X-X>X-X>X>X-X>X>X>X>XK.B u u u &       3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xw u u u / {.>X>X-X-X-X-X-X-X-X-X-X-X;X-X-X;X:X-X-X>X-X:X>X;X;X>X;X;X{.[ u u u w +       3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X2 u u u u ) K.-X-X-X-X:X-X-X-X-X-X-X-X-X-X-X-X-X>X-X-X-X-X-X-XE.[ u u u u -       . 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X1 u u u u m 2.E.-X+X:X-X-X-X-X-X-X-X-X-X:X-X-X-X;X-XOXi.B u u u u 1 o       3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X> u u u u u v [ l.I.OX-X-X-X-X-X-X-X-X+XI.f.@.m u u u u u 1 +       o 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X& 2 u u u u u u u d B V V V V B d u u u u u u u y - .       o 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X+ - 1 u u u u u u u a u u u u u u u u 2 - o         o 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xo . X # - > 1 2 2 2 1 2 > - # o .         o 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3Xo o                     . o 3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X",
-"3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X3X"
-};
diff --git a/src/xpm/check.xpm b/src/xpm/check.xpm
deleted file mode 100644 (file)
index e62b656..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/* XPM */\r
-static const char * check_xpm[] = {\r
-/* columns rows colors chars-per-pixel */\r
-"32 32 3 1",\r
-"  c #008000",\r
-". c #00FF00",\r
-"X c None",\r
-/* pixels */\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXX   XXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXX .  XXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXX .. XXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXX .  XXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXX .. XXXXXXXXXXXXX",\r
-"XXXXXXXXXXX  XX .  XXXXXXXXXXXXX",\r
-"XXXXXXXXXXX .  .. XXXXXXXXXXXXXX",\r
-"XXXXXXXXXXX .. .  XXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXX ... XXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXX .  XXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXX  XXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",\r
-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"\r
-};\r
diff --git a/src/xpm/send16.xpm b/src/xpm/send16.xpm
deleted file mode 100644 (file)
index 7da44d9..0000000
+++ /dev/null
@@ -1,278 +0,0 @@
-/* XPM */\r
-static const char * send16_xpm[] = {\r
-/* columns rows colors chars-per-pixel */\r
-"16 16 256 2",\r
-"   c #ADF7AD",\r
-".  c #9CFF9C",\r
-"X  c None",\r
-"o  c #ADEFAD",\r
-"O  c #94FF94",\r
-"+  c #D6CECE",\r
-"@  c #8CFF8C",\r
-"#  c #CECECE",\r
-"$  c #CECEC5",\r
-"%  c #84FF84",\r
-"&  c #CEC5C5",\r
-"*  c #73FF73",\r
-"=  c #C5C5C5",\r
-"-  c #6BFF6B",\r
-";  c #73F773",\r
-":  c #C5BDBD",\r
-">  c #6BF76B",\r
-",  c #BDBDBD",\r
-"<  c #63F763",\r
-"1  c #B5B5B5",\r
-"2  c #52F752",\r
-"3  c #42FF42",\r
-"4  c #3AFF3A",\r
-"5  c #ADADAD",\r
-"6  c #ADADA5",\r
-"7  c #4AEF4A",\r
-"8  c #29FF29",\r
-"9  c #A5A5A5",\r
-"0  c #42E642",\r
-"q  c #9CA59C",\r
-"w  c #3AE63A",\r
-"e  c #10FF10",\r
-"r  c #08FF08",\r
-"t  c #949C94",\r
-"y  c #00FF00",\r
-"u  c #00F700",\r
-"i  c #8C948C",\r
-"p  c #00EF00",\r
-"a  c #08E608",\r
-"s  c #10DE10",\r
-"d  c #00E600",\r
-"f  c #00DE00",\r
-"g  c #19C519",\r
-"h  c #00CE00",\r
-"j  c #00C500",\r
-"k  c #008C00",\r
-"l  c #008400",\r
-"z  c #669900",\r
-"x  c #999900",\r
-"c  c #CC9900",\r
-"v  c #FF9900",\r
-"b  c #00CC00",\r
-"n  c #33CC00",\r
-"m  c #66CC00",\r
-"M  c #99CC00",\r
-"N  c #CCCC00",\r
-"B  c #FFCC00",\r
-"V  c #66FF00",\r
-"C  c #99FF00",\r
-"Z  c #CCFF00",\r
-"A  c #000033",\r
-"S  c #330033",\r
-"D  c #660033",\r
-"F  c #990033",\r
-"G  c #CC0033",\r
-"H  c #FF0033",\r
-"J  c #003333",\r
-"K  c #333333",\r
-"L  c #663333",\r
-"P  c #993333",\r
-"I  c #CC3333",\r
-"U  c #FF3333",\r
-"Y  c #006633",\r
-"T  c #336633",\r
-"R  c #666633",\r
-"E  c #996633",\r
-"W  c #CC6633",\r
-"Q  c #FF6633",\r
-"!  c #009933",\r
-"~  c #339933",\r
-"^  c #669933",\r
-"/  c #999933",\r
-"(  c #CC9933",\r
-")  c #FF9933",\r
-"_  c #00CC33",\r
-"`  c #33CC33",\r
-"'  c #66CC33",\r
-"]  c #99CC33",\r
-"[  c #CCCC33",\r
-"{  c #FFCC33",\r
-"}  c #33FF33",\r
-"|  c #66FF33",\r
-" . c #99FF33",\r
-".. c #CCFF33",\r
-"X. c #FFFF33",\r
-"o. c #000066",\r
-"O. c #330066",\r
-"+. c #660066",\r
-"@. c #990066",\r
-"#. c #CC0066",\r
-"$. c #FF0066",\r
-"%. c #003366",\r
-"&. c #333366",\r
-"*. c #663366",\r
-"=. c #993366",\r
-"-. c #CC3366",\r
-";. c #FF3366",\r
-":. c #006666",\r
-">. c #336666",\r
-",. c #666666",\r
-"<. c #996666",\r
-"1. c #CC6666",\r
-"2. c #009966",\r
-"3. c #339966",\r
-"4. c #669966",\r
-"5. c #999966",\r
-"6. c #CC9966",\r
-"7. c #FF9966",\r
-"8. c #00CC66",\r
-"9. c #33CC66",\r
-"0. c #99CC66",\r
-"q. c #CCCC66",\r
-"w. c #FFCC66",\r
-"e. c #00FF66",\r
-"r. c #33FF66",\r
-"t. c #99FF66",\r
-"y. c #CCFF66",\r
-"u. c #FF00CC",\r
-"i. c #CC00FF",\r
-"p. c #009999",\r
-"a. c #993399",\r
-"s. c #990099",\r
-"d. c #CC0099",\r
-"f. c #000099",\r
-"g. c #333399",\r
-"h. c #660099",\r
-"j. c #CC3399",\r
-"k. c #FF0099",\r
-"l. c #006699",\r
-"z. c #336699",\r
-"x. c #663399",\r
-"c. c #996699",\r
-"v. c #CC6699",\r
-"b. c #FF3399",\r
-"n. c #339999",\r
-"m. c #669999",\r
-"M. c #999999",\r
-"N. c #CC9999",\r
-"B. c #FF9999",\r
-"V. c #00CC99",\r
-"C. c #33CC99",\r
-"Z. c #66CC66",\r
-"A. c #99CC99",\r
-"S. c #CCCC99",\r
-"D. c #FFCC99",\r
-"F. c #00FF99",\r
-"G. c #33FF99",\r
-"H. c #66CC99",\r
-"J. c #99FF99",\r
-"K. c #CCFF99",\r
-"L. c #FFFF99",\r
-"P. c #0000CC",\r
-"I. c #330099",\r
-"U. c #6600CC",\r
-"Y. c #9900CC",\r
-"T. c #CC00CC",\r
-"R. c #003399",\r
-"E. c #3333CC",\r
-"W. c #6633CC",\r
-"Q. c #9933CC",\r
-"!. c #CC33CC",\r
-"~. c #FF33CC",\r
-"^. c #0066CC",\r
-"/. c #3366CC",\r
-"(. c #666699",\r
-"). c #9966CC",\r
-"_. c #CC66CC",\r
-"`. c #FF6699",\r
-"'. c #0099CC",\r
-"]. c #3399CC",\r
-"[. c #6699CC",\r
-"{. c #9999CC",\r
-"}. c #CC99CC",\r
-"|. c #FF99CC",\r
-" X c #00CCCC",\r
-".X c #33CCCC",\r
-"XX c #66CCCC",\r
-"oX c #99CCCC",\r
-"OX c #CCCCCC",\r
-"+X c #FFCCCC",\r
-"@X c #00FFCC",\r
-"#X c #33FFCC",\r
-"$X c #66FF99",\r
-"%X c #99FFCC",\r
-"&X c #CCFFCC",\r
-"*X c #FFFFCC",\r
-"=X c #3300CC",\r
-"-X c #6600FF",\r
-";X c #9900FF",\r
-":X c #0033CC",\r
-">X c #3333FF",\r
-",X c #6633FF",\r
-"<X c #9933FF",\r
-"1X c #CC33FF",\r
-"2X c #FF33FF",\r
-"3X c #0066FF",\r
-"4X c #3366FF",\r
-"5X c #6666CC",\r
-"6X c #9966FF",\r
-"7X c #CC66FF",\r
-"8X c #FF66CC",\r
-"9X c #0099FF",\r
-"0X c #3399FF",\r
-"qX c #6699FF",\r
-"wX c #9999FF",\r
-"eX c #CC99FF",\r
-"rX c #FF99FF",\r
-"tX c #00CCFF",\r
-"yX c #33CCFF",\r
-"uX c #66CCFF",\r
-"iX c #99CCFF",\r
-"pX c #CCCCFF",\r
-"aX c #FFCCFF",\r
-"sX c #33FFFF",\r
-"dX c #66FFCC",\r
-"fX c #99FFFF",\r
-"gX c #CCFFFF",\r
-"hX c #FF6666",\r
-"jX c #66FF66",\r
-"kX c #FFFF66",\r
-"lX c #6666FF",\r
-"zX c #FF66FF",\r
-"xX c #66FFFF",\r
-"cX c #A50021",\r
-"vX c #5F5F5F",\r
-"bX c #777777",\r
-"nX c #868686",\r
-"mX c #969696",\r
-"MX c #CBCBCB",\r
-"NX c #B2B2B2",\r
-"BX c #D7D7D7",\r
-"VX c #DDDDDD",\r
-"CX c #E3E3E3",\r
-"ZX c #EAEAEA",\r
-"AX c #F1F1F1",\r
-"SX c #F8F8F8",\r
-"DX c #FFFBF0",\r
-"FX c #A0A0A4",\r
-"GX c #808080",\r
-"HX c #FF0000",\r
-"JX c #00FF00",\r
-"KX c #FFFF00",\r
-"LX c #0000FF",\r
-"PX c #FF00FF",\r
-"IX c #00FFFF",\r
-"UX c #FFFFFF",\r
-/* pixels */\r
-"X X X X X X X k k X X X X X X X ",\r
-"X X X X X X X k j k X X X X X X ",\r
-"X X X X X X X k o j k X X X X X ",\r
-"X X X X X X X k * o j k X X X X ",\r
-"l k k k k k k k * * . j k X X X ",\r
-"l @ @ @ @ @ @ @ 4 e e % j k X X ",\r
-"l O 3 8 e r r r r r r e ; j k X ",\r
-"l @ e e r r r r r u p a f < j k ",\r
-"l @ r u p a a a a a f f w j k i ",\r
-"l O ; ; ; ; ; < a f b 0 j k t : ",\r
-"l k k k k k k k s j 7 j k q = X ",\r
-"X $ = = = = = k g 7 j k 9 & X X ",\r
-"X X X X X X X k 2 j k 6 $ X X X ",\r
-"X X X X X X X k j k 5 + X X X X ",\r
-"X X X X X X X k k 1 + X X X X X ",\r
-"X X X X X X X = , X X X X X X X "\r
-};\r
diff --git a/src/xpm/send16noshadow.xpm b/src/xpm/send16noshadow.xpm
deleted file mode 100644 (file)
index f6cef45..0000000
+++ /dev/null
@@ -1,278 +0,0 @@
-/* XPM */\r
-static const char * send16noshadow_xpm[] = {\r
-/* columns rows colors chars-per-pixel */\r
-"16 16 256 2",\r
-"   c #ADF7AD",\r
-".  c #9CFF9C",\r
-"X  c None",\r
-"o  c #ADEFAD",\r
-"O  c #94FF94",\r
-"+  c #D6CECE",\r
-"@  c #8CFF8C",\r
-"#  c #CECECE",\r
-"$  c #CECEC5",\r
-"%  c #84FF84",\r
-"&  c #CEC5C5",\r
-"*  c #73FF73",\r
-"=  c #C5C5C5",\r
-"-  c #6BFF6B",\r
-";  c #73F773",\r
-":  c #C5BDBD",\r
-">  c #6BF76B",\r
-",  c #BDBDBD",\r
-"<  c #63F763",\r
-"1  c #B5B5B5",\r
-"2  c #52F752",\r
-"3  c #42FF42",\r
-"4  c #3AFF3A",\r
-"5  c #ADADAD",\r
-"6  c #ADADA5",\r
-"7  c #4AEF4A",\r
-"8  c #29FF29",\r
-"9  c #A5A5A5",\r
-"0  c #42E642",\r
-"q  c #9CA59C",\r
-"w  c #3AE63A",\r
-"e  c #10FF10",\r
-"r  c #08FF08",\r
-"t  c #949C94",\r
-"y  c #00FF00",\r
-"u  c #00F700",\r
-"i  c #8C948C",\r
-"p  c #00EF00",\r
-"a  c #08E608",\r
-"s  c #10DE10",\r
-"d  c #00E600",\r
-"f  c #00DE00",\r
-"g  c #19C519",\r
-"h  c #00CE00",\r
-"j  c #00C500",\r
-"k  c #008C00",\r
-"l  c #008400",\r
-"z  c #669900",\r
-"x  c #999900",\r
-"c  c #CC9900",\r
-"v  c #FF9900",\r
-"b  c #00CC00",\r
-"n  c #33CC00",\r
-"m  c #66CC00",\r
-"M  c #99CC00",\r
-"N  c #CCCC00",\r
-"B  c #FFCC00",\r
-"V  c #66FF00",\r
-"C  c #99FF00",\r
-"Z  c #CCFF00",\r
-"A  c #000033",\r
-"S  c #330033",\r
-"D  c #660033",\r
-"F  c #990033",\r
-"G  c #CC0033",\r
-"H  c #FF0033",\r
-"J  c #003333",\r
-"K  c #333333",\r
-"L  c #663333",\r
-"P  c #993333",\r
-"I  c #CC3333",\r
-"U  c #FF3333",\r
-"Y  c #006633",\r
-"T  c #336633",\r
-"R  c #666633",\r
-"E  c #996633",\r
-"W  c #CC6633",\r
-"Q  c #FF6633",\r
-"!  c #009933",\r
-"~  c #339933",\r
-"^  c #669933",\r
-"/  c #999933",\r
-"(  c #CC9933",\r
-")  c #FF9933",\r
-"_  c #00CC33",\r
-"`  c #33CC33",\r
-"'  c #66CC33",\r
-"]  c #99CC33",\r
-"[  c #CCCC33",\r
-"{  c #FFCC33",\r
-"}  c #33FF33",\r
-"|  c #66FF33",\r
-" . c #99FF33",\r
-".. c #CCFF33",\r
-"X. c #FFFF33",\r
-"o. c #000066",\r
-"O. c #330066",\r
-"+. c #660066",\r
-"@. c #990066",\r
-"#. c #CC0066",\r
-"$. c #FF0066",\r
-"%. c #003366",\r
-"&. c #333366",\r
-"*. c #663366",\r
-"=. c #993366",\r
-"-. c #CC3366",\r
-";. c #FF3366",\r
-":. c #006666",\r
-">. c #336666",\r
-",. c #666666",\r
-"<. c #996666",\r
-"1. c #CC6666",\r
-"2. c #009966",\r
-"3. c #339966",\r
-"4. c #669966",\r
-"5. c #999966",\r
-"6. c #CC9966",\r
-"7. c #FF9966",\r
-"8. c #00CC66",\r
-"9. c #33CC66",\r
-"0. c #99CC66",\r
-"q. c #CCCC66",\r
-"w. c #FFCC66",\r
-"e. c #00FF66",\r
-"r. c #33FF66",\r
-"t. c #99FF66",\r
-"y. c #CCFF66",\r
-"u. c #FF00CC",\r
-"i. c #CC00FF",\r
-"p. c #009999",\r
-"a. c #993399",\r
-"s. c #990099",\r
-"d. c #CC0099",\r
-"f. c #000099",\r
-"g. c #333399",\r
-"h. c #660099",\r
-"j. c #CC3399",\r
-"k. c #FF0099",\r
-"l. c #006699",\r
-"z. c #336699",\r
-"x. c #663399",\r
-"c. c #996699",\r
-"v. c #CC6699",\r
-"b. c #FF3399",\r
-"n. c #339999",\r
-"m. c #669999",\r
-"M. c #999999",\r
-"N. c #CC9999",\r
-"B. c #FF9999",\r
-"V. c #00CC99",\r
-"C. c #33CC99",\r
-"Z. c #66CC66",\r
-"A. c #99CC99",\r
-"S. c #CCCC99",\r
-"D. c #FFCC99",\r
-"F. c #00FF99",\r
-"G. c #33FF99",\r
-"H. c #66CC99",\r
-"J. c #99FF99",\r
-"K. c #CCFF99",\r
-"L. c #FFFF99",\r
-"P. c #0000CC",\r
-"I. c #330099",\r
-"U. c #6600CC",\r
-"Y. c #9900CC",\r
-"T. c #CC00CC",\r
-"R. c #003399",\r
-"E. c #3333CC",\r
-"W. c #6633CC",\r
-"Q. c #9933CC",\r
-"!. c #CC33CC",\r
-"~. c #FF33CC",\r
-"^. c #0066CC",\r
-"/. c #3366CC",\r
-"(. c #666699",\r
-"). c #9966CC",\r
-"_. c #CC66CC",\r
-"`. c #FF6699",\r
-"'. c #0099CC",\r
-"]. c #3399CC",\r
-"[. c #6699CC",\r
-"{. c #9999CC",\r
-"}. c #CC99CC",\r
-"|. c #FF99CC",\r
-" X c #00CCCC",\r
-".X c #33CCCC",\r
-"XX c #66CCCC",\r
-"oX c #99CCCC",\r
-"OX c #CCCCCC",\r
-"+X c #FFCCCC",\r
-"@X c #00FFCC",\r
-"#X c #33FFCC",\r
-"$X c #66FF99",\r
-"%X c #99FFCC",\r
-"&X c #CCFFCC",\r
-"*X c #FFFFCC",\r
-"=X c #3300CC",\r
-"-X c #6600FF",\r
-";X c #9900FF",\r
-":X c #0033CC",\r
-">X c #3333FF",\r
-",X c #6633FF",\r
-"<X c #9933FF",\r
-"1X c #CC33FF",\r
-"2X c #FF33FF",\r
-"3X c #0066FF",\r
-"4X c #3366FF",\r
-"5X c #6666CC",\r
-"6X c #9966FF",\r
-"7X c #CC66FF",\r
-"8X c #FF66CC",\r
-"9X c #0099FF",\r
-"0X c #3399FF",\r
-"qX c #6699FF",\r
-"wX c #9999FF",\r
-"eX c #CC99FF",\r
-"rX c #FF99FF",\r
-"tX c #00CCFF",\r
-"yX c #33CCFF",\r
-"uX c #66CCFF",\r
-"iX c #99CCFF",\r
-"pX c #CCCCFF",\r
-"aX c #FFCCFF",\r
-"sX c #33FFFF",\r
-"dX c #66FFCC",\r
-"fX c #99FFFF",\r
-"gX c #CCFFFF",\r
-"hX c #FF6666",\r
-"jX c #66FF66",\r
-"kX c #FFFF66",\r
-"lX c #6666FF",\r
-"zX c #FF66FF",\r
-"xX c #66FFFF",\r
-"cX c #A50021",\r
-"vX c #5F5F5F",\r
-"bX c #777777",\r
-"nX c #868686",\r
-"mX c #969696",\r
-"MX c #CBCBCB",\r
-"NX c #B2B2B2",\r
-"BX c #D7D7D7",\r
-"VX c #DDDDDD",\r
-"CX c #E3E3E3",\r
-"ZX c #EAEAEA",\r
-"AX c #F1F1F1",\r
-"SX c #F8F8F8",\r
-"DX c #FFFBF0",\r
-"FX c #A0A0A4",\r
-"GX c #808080",\r
-"HX c #FF0000",\r
-"JX c #00FF00",\r
-"KX c #FFFF00",\r
-"LX c #0000FF",\r
-"PX c #FF00FF",\r
-"IX c #00FFFF",\r
-"UX c #FFFFFF",\r
-/* pixels */\r
-"X X X X X X X k k X X X X X X X ",\r
-"X X X X X X X k j k X X X X X X ",\r
-"X X X X X X X k o j k X X X X X ",\r
-"X X X X X X X k * o j k X X X X ",\r
-"l k k k k k k k * * . j k X X X ",\r
-"l @ @ @ @ @ @ @ 4 e e % j k X X ",\r
-"l O 3 8 e r r r r r r e ; j k X ",\r
-"l @ e e r r r r r u p a f < j k ",\r
-"l @ r u p a a a a a f f w j k X ",\r
-"l O ; ; ; ; ; < a f b 0 j k X X ",\r
-"l k k k k k k k s j 7 j k X X X ",\r
-"X X X X X X X k g 7 j k X X X X ",\r
-"X X X X X X X k 2 j k X X X X X ",\r
-"X X X X X X X k j k X X X X X X ",\r
-"X X X X X X X k k X X X X X X X ",\r
-"X X X X X X X X X X X X X X X X "\r
-};\r
diff --git a/src/xpm/send20.xpm b/src/xpm/send20.xpm
deleted file mode 100644 (file)
index 68e7b13..0000000
+++ /dev/null
@@ -1,282 +0,0 @@
-/* XPM */\r
-static const char * send20_xpm[] = {\r
-/* columns rows colors chars-per-pixel */\r
-"20 20 256 2",\r
-"   c #CEFFCE",\r
-".  c #BDFFBD",\r
-"X  c #C5F7C5",\r
-"o  c #B5FFB5",\r
-"O  c #ADFFAD",\r
-"+  c #A5FFA5",\r
-"@  c #9CFF9C",\r
-"#  c None",\r
-"$  c #94FF94",\r
-"%  c #D6CECE",\r
-"&  c #8CFF8C",\r
-"*  c #CECEC5",\r
-"=  c #84FF84",\r
-"-  c #94EF94",\r
-";  c #7BFF7B",\r
-":  c #CEC5C5",\r
-">  c #73FF73",\r
-",  c #C5C5C5",\r
-"<  c #C5C5BD",\r
-"1  c #6BFF6B",\r
-"2  c #BDC5B5",\r
-"3  c #63FF63",\r
-"4  c #6BF76B",\r
-"5  c #BDBDBD",\r
-"6  c #BDBDB5",\r
-"7  c #5AFF5A",\r
-"8  c #63F763",\r
-"9  c #B5BDB5",\r
-"0  c #B5BDAD",\r
-"q  c #52FF52",\r
-"w  c #BDB5B5",\r
-"e  c #5AF75A",\r
-"r  c #B5B5B5",\r
-"t  c #B5B5AD",\r
-"y  c #52F752",\r
-"u  c #42FF42",\r
-"i  c #52EF52",\r
-"p  c #ADADAD",\r
-"a  c #ADADA5",\r
-"s  c #4AEF4A",\r
-"d  c #31FF31",\r
-"f  c #29FF29",\r
-"g  c #A5A5A5",\r
-"h  c #21FF21",\r
-"j  c #5AD65A",\r
-"k  c #42E642",\r
-"l  c #94AD94",\r
-"z  c #4ADE4A",\r
-"x  c #3AE63A",\r
-"c  c #5ACE5A",\r
-"v  c #10FF10",\r
-"b  c #9C9C9C",\r
-"n  c #31E631",\r
-"m  c #08FF08",\r
-"M  c #949C94",\r
-"N  c #84A584",\r
-"B  c #00FF00",\r
-"V  c #3AD63A",\r
-"C  c #52C552",\r
-"Z  c #00F700",\r
-"A  c #8C948C",\r
-"S  c #849484",\r
-"D  c #00EF00",\r
-"F  c #739C73",\r
-"G  c #08E608",\r
-"H  c #4AB54A",\r
-"J  c #31C531",\r
-"K  c #00E600",\r
-"L  c #739473",\r
-"P  c #00DE00",\r
-"I  c #63945A",\r
-"U  c #6B8C6B",\r
-"Y  c #00D600",\r
-"T  c #42A542",\r
-"R  c #638C63",\r
-"E  c #00CE00",\r
-"W  c #21B521",\r
-"Q  c #5A8C5A",\r
-"!  c #00C500",\r
-"~  c #528C52",\r
-"^  c #3A9C3A",\r
-"/  c #4A8C4A",\r
-"(  c #00BD00",\r
-")  c #319431",\r
-"_  c #219C21",\r
-"`  c #318C31",\r
-"'  c #3A843A",\r
-"]  c #219421",\r
-"[  c #298C29",\r
-"{  c #318431",\r
-"}  c #218C21",\r
-"|  c #218C19",\r
-" . c #198C19",\r
-".. c #218421",\r
-"X. c #297B29",\r
-"o. c #198419",\r
-"O. c #217B21",\r
-"+. c #108410",\r
-"@. c #197B19",\r
-"#. c #CC0066",\r
-"$. c #FF0066",\r
-"%. c #003366",\r
-"&. c #333366",\r
-"*. c #663366",\r
-"=. c #993366",\r
-"-. c #CC3366",\r
-";. c #FF3366",\r
-":. c #006666",\r
-">. c #336666",\r
-",. c #666666",\r
-"<. c #996666",\r
-"1. c #CC6666",\r
-"2. c #009966",\r
-"3. c #339966",\r
-"4. c #669966",\r
-"5. c #999966",\r
-"6. c #CC9966",\r
-"7. c #FF9966",\r
-"8. c #00CC66",\r
-"9. c #33CC66",\r
-"0. c #99CC66",\r
-"q. c #CCCC66",\r
-"w. c #FFCC66",\r
-"e. c #00FF66",\r
-"r. c #33FF66",\r
-"t. c #99FF66",\r
-"y. c #CCFF66",\r
-"u. c #FF00CC",\r
-"i. c #CC00FF",\r
-"p. c #009999",\r
-"a. c #993399",\r
-"s. c #990099",\r
-"d. c #CC0099",\r
-"f. c #000099",\r
-"g. c #333399",\r
-"h. c #660099",\r
-"j. c #CC3399",\r
-"k. c #FF0099",\r
-"l. c #006699",\r
-"z. c #336699",\r
-"x. c #663399",\r
-"c. c #996699",\r
-"v. c #CC6699",\r
-"b. c #FF3399",\r
-"n. c #339999",\r
-"m. c #669999",\r
-"M. c #999999",\r
-"N. c #CC9999",\r
-"B. c #FF9999",\r
-"V. c #00CC99",\r
-"C. c #33CC99",\r
-"Z. c #66CC66",\r
-"A. c #99CC99",\r
-"S. c #CCCC99",\r
-"D. c #FFCC99",\r
-"F. c #00FF99",\r
-"G. c #33FF99",\r
-"H. c #66CC99",\r
-"J. c #99FF99",\r
-"K. c #CCFF99",\r
-"L. c #FFFF99",\r
-"P. c #0000CC",\r
-"I. c #330099",\r
-"U. c #6600CC",\r
-"Y. c #9900CC",\r
-"T. c #CC00CC",\r
-"R. c #003399",\r
-"E. c #3333CC",\r
-"W. c #6633CC",\r
-"Q. c #9933CC",\r
-"!. c #CC33CC",\r
-"~. c #FF33CC",\r
-"^. c #0066CC",\r
-"/. c #3366CC",\r
-"(. c #666699",\r
-"). c #9966CC",\r
-"_. c #CC66CC",\r
-"`. c #FF6699",\r
-"'. c #0099CC",\r
-"]. c #3399CC",\r
-"[. c #6699CC",\r
-"{. c #9999CC",\r
-"}. c #CC99CC",\r
-"|. c #FF99CC",\r
-" X c #00CCCC",\r
-".X c #33CCCC",\r
-"XX c #66CCCC",\r
-"oX c #99CCCC",\r
-"OX c #CCCCCC",\r
-"+X c #FFCCCC",\r
-"@X c #00FFCC",\r
-"#X c #33FFCC",\r
-"$X c #66FF99",\r
-"%X c #99FFCC",\r
-"&X c #CCFFCC",\r
-"*X c #FFFFCC",\r
-"=X c #3300CC",\r
-"-X c #6600FF",\r
-";X c #9900FF",\r
-":X c #0033CC",\r
-">X c #3333FF",\r
-",X c #6633FF",\r
-"<X c #9933FF",\r
-"1X c #CC33FF",\r
-"2X c #FF33FF",\r
-"3X c #0066FF",\r
-"4X c #3366FF",\r
-"5X c #6666CC",\r
-"6X c #9966FF",\r
-"7X c #CC66FF",\r
-"8X c #FF66CC",\r
-"9X c #0099FF",\r
-"0X c #3399FF",\r
-"qX c #6699FF",\r
-"wX c #9999FF",\r
-"eX c #CC99FF",\r
-"rX c #FF99FF",\r
-"tX c #00CCFF",\r
-"yX c #33CCFF",\r
-"uX c #66CCFF",\r
-"iX c #99CCFF",\r
-"pX c #CCCCFF",\r
-"aX c #FFCCFF",\r
-"sX c #33FFFF",\r
-"dX c #66FFCC",\r
-"fX c #99FFFF",\r
-"gX c #CCFFFF",\r
-"hX c #FF6666",\r
-"jX c #66FF66",\r
-"kX c #FFFF66",\r
-"lX c #6666FF",\r
-"zX c #FF66FF",\r
-"xX c #66FFFF",\r
-"cX c #A50021",\r
-"vX c #5F5F5F",\r
-"bX c #777777",\r
-"nX c #868686",\r
-"mX c #969696",\r
-"MX c #CBCBCB",\r
-"NX c #B2B2B2",\r
-"BX c #D7D7D7",\r
-"VX c #DDDDDD",\r
-"CX c #E3E3E3",\r
-"ZX c #EAEAEA",\r
-"AX c #F1F1F1",\r
-"SX c #F8F8F8",\r
-"DX c #FFFBF0",\r
-"FX c #A0A0A4",\r
-"GX c #808080",\r
-"HX c #FF0000",\r
-"JX c #00FF00",\r
-"KX c #FFFF00",\r
-"LX c #0000FF",\r
-"PX c #FF00FF",\r
-"IX c #00FFFF",\r
-"UX c #FFFFFF",\r
-/* pixels */\r
-"# # # # # # # # # # # # # # # # # # # # ",\r
-"# # # # # # # ` 0 # # # # # # # # # # # ",\r
-"# # # # # # # ..` l # # # # # # # # # # ",\r
-"# # # # # # # [ X ) N # # # # # # # # # ",\r
-"# # # # # # # [ &X. ^ F # # # # # # # # ",\r
-"# # # # # # # } o & o T I : # # # # # # ",\r
-"` ` ` ` ` ` ` ` + 7 ; + H ~ < # # # # # ",\r
-"` = = = = = = - @ d v h $ C ' 5 # # # # ",\r
-"` = = 3 u h v v v m m m v ; c { 6 # # # ",\r
-"` = f v v m m m m m m Z G G 4 j ..t # # ",\r
-"` = v m m m Z Z D D G G G P n ; _ R 5 # ",\r
-"` = m Z G G G G G G G P Y x 4 _ Q g # # ",\r
-"` = $ $ $ $ $ & e P P E k 8  .U g # # # ",\r
-"..[ ......[ [ ] e Y ! s i o.L p # # # # ",\r
-"# # 5 6 6 6 9 ..i ( i z o.S t # # # # # ",\r
-"# # # # # # # } i i V O.A r # # # # # # ",\r
-"# # # # # # # } 7 J X.M 6 # # # # # # # ",\r
-"# # # # # # # | W ' b < # # # # # # # # ",\r
-"# # # # # # # @.~ g , # # # # # # # # # ",\r
-"# # # # # # # 6 < , # # # # # # # # # # "\r
-};\r