From: Luke Dashjr Date: Sun, 22 Apr 2012 14:05:43 +0000 (-0400) Subject: Merge branch '0.4.x' into 0.5.x X-Git-Tag: v0.4.0-unstable~129^2~1^2~18^2~10^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=a93ab877877925c60b2dbf56bdde8aa46b6b7391;hp=d0fe14ffecda4af98ffe7b1523f9a903bf7518a0 Merge branch '0.4.x' into 0.5.x Conflicts: src/main.cpp --- diff --git a/.gitignore b/.gitignore index c1d06a3..66f9386 100644 --- a/.gitignore +++ b/.gitignore @@ -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 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. diff --git a/README.md b/README.md index 92635bb..0c475ea 100644 --- 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 index 0000000..60f1de8 --- /dev/null +++ b/bitcoin-qt.pro @@ -0,0 +1,291 @@ +TEMPLATE = app +TARGET = +VERSION = 0.5.4 +INCLUDEPATH += src src/json src/qt +DEFINES += QT_GUI BOOST_THREAD_USE_LIB +CONFIG += no_include_pwd + +# for boost 1.37, add -mt to the boost libraries +# use: qmake BOOST_LIB_SUFFIX=-mt +# for boost thread win32 with _win32 sufix +# use: BOOST_THREAD_LIB_SUFFIX=_win32-... +# 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 "RELEASE=1" +contains(RELEASE, 1) { + # Mac: compile for maximum compatibility (10.5, 32-bit) + macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk + + !windows:!macx { + # Linux: static link + LIBS += -Wl,-Bstatic + } +} + +# use: qmake "USE_UPNP=1" ( enabled by default; default) +# or: qmake "USE_UPNP=0" (disabled by default) +# or: qmake "USE_UPNP=-" (not supported) +# miniupnpc (http://miniupnp.free.fr/files/) must be installed for support +contains(USE_UPNP, -) { + message(Building without UPNP support) +} else { + message(Building with UPNP support) + count(USE_UPNP, 0) { + USE_UPNP=1 + } + DEFINES += USE_UPNP=$$USE_UPNP STATICLIB + INCLUDEPATH += $$MINIUPNPC_INCLUDE_PATH + LIBS += $$join(MINIUPNPC_LIB_PATH,,-L,) -lminiupnpc + win32:LIBS += -liphlpapi +} + +# 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_SSL, 1) { + message(Building with SSL support for RPC) + DEFINES += USE_SSL +} + +contains(BITCOIN_NEED_QT_PLUGINS, 1) { + DEFINES += BITCOIN_NEED_QT_PLUGINS + QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs qtaccessiblewidgets +} + +!windows { + # for extra security against potential buffer overflows + QMAKE_CXXFLAGS += -fstack-protector + QMAKE_LFLAGS += -fstack-protector + # do not enable this on windows, as it will result in a non-working executable! +} + +# disable quite some warnings because bitcoin core "sins" a lot +QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wno-strict-aliasing -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 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/checkpoints.h \ + src/util.h \ + src/uint256.h \ + src/serialize.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/util.cpp \ + src/script.cpp \ + src/main.cpp \ + src/init.cpp \ + src/net.cpp \ + src/irc.cpp \ + src/checkpoints.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 +# also add new translations to src/qt/bitcoin.qrc under translations/ +TRANSLATIONS = $$files(src/qt/locale/bitcoin_*.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(BOOST_THREAD_LIB_SUFFIX) { + BOOST_THREAD_LIB_SUFFIX = $$BOOST_LIB_SUFFIX +} + +isEmpty(BDB_LIB_PATH) { + macx:BDB_LIB_PATH = /opt/local/lib/db48 +} + +isEmpty(BDB_LIB_SUFFIX) { + macx:BDB_LIB_SUFFIX = -4.8 +} + +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 +windows:DEFINES += WIN32 +windows:RC_FILE = src/qt/res/bitcoin-qt.rc + +windows:!contains(MINGW_THREAD_BUGFIX, 0) { + # At least qmake's win32-g++-cross profile is missing the -lmingwthrd + # thread-safety flag. GCC has -mthreads to enable this, but it doesn't + # work with static linking. -lmingwthrd must come BEFORE -lmingw, so + # it is prepended to QMAKE_LIBS_QT_ENTRY. + # It can be turned off with MINGW_THREAD_BUGFIX=0, just in case it causes + # any problems on some untested qmake profile now or in the future. + DEFINES += _MT + QMAKE_LIBS_QT_ENTRY = -lmingwthrd $$QMAKE_LIBS_QT_ENTRY +} + +macx:HEADERS += src/qt/macdockiconhandler.h +macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm +macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit +macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0 +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 +# -lgdi32 has to happen after -lcrypto (see #681) +windows:LIBS += -lgdi32 +LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX + +contains(RELEASE, 1) { + !windows:!macx { + # Linux: turn dynamic linking back on for c/c++ runtime libraries + LIBS += -Wl,-Bdynamic + } +} + +system($$QMAKE_LRELEASE -silent $$_PRO_FILE_) diff --git a/contrib/Bitcoin.app/Contents/Info.plist b/contrib/Bitcoin.app/Contents/Info.plist deleted file mode 100644 index b34827e..0000000 --- a/contrib/Bitcoin.app/Contents/Info.plist +++ /dev/null @@ -1,32 +0,0 @@ - - - - - CFBundleDisplayName - Bitcoin - CFBundleDevelopmentRegion - English - CFBundleExecutable - bitcoin - CFBundleIdentifier - org.bitcoin.bitcoin - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - Bitcoin - CFBundlePackageType - APPL - CFBundleShortVersionString - 0.4.5 - CFBundleSignature - ???? - CFBundleVersion - 400 - LSMinimumSystemVersion - 10.5 - CFBundleIconFile - BitcoinAppIcon.icns - LSMultipleInstancesProhibited - - - diff --git a/contrib/Bitcoin.app/Contents/MacOS/.higit b/contrib/Bitcoin.app/Contents/MacOS/.higit deleted file mode 100644 index e69de29..0000000 diff --git a/contrib/Bitcoin.app/Contents/Resources/BitcoinAppIcon.icns b/contrib/Bitcoin.app/Contents/Resources/BitcoinAppIcon.icns deleted file mode 100644 index 033ce1a..0000000 Binary files a/contrib/Bitcoin.app/Contents/Resources/BitcoinAppIcon.icns and /dev/null differ diff --git a/contrib/bitrpc/bitrpc.py b/contrib/bitrpc/bitrpc.py new file mode 100644 index 0000000..b02b299 --- /dev/null +++ b/contrib/bitrpc/bitrpc.py @@ -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/debian/bin/bitcoin-qt b/contrib/debian/bin/bitcoin-qt new file mode 100755 index 0000000..f2eac1b --- /dev/null +++ b/contrib/debian/bin/bitcoin-qt @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +umask 077 + +basedir=~/.bitcoin +dbfile="$basedir/DB_CONFIG" +cfgfile="$basedir/bitcoin.conf" + +[ -e "$basedir" ] || mkdir "$basedir" + +# Bitcoin does not clean up DB log files by default +[ -e "$dbfile" ] || echo 'set_flags DB_LOG_AUTOREMOVE' > "$dbfile" + +exec /usr/lib/bitcoin/bitcoin-qt "$@" diff --git a/contrib/debian/bin/bitcoind b/contrib/debian/bin/bitcoind new file mode 100755 index 0000000..0904f76 --- /dev/null +++ b/contrib/debian/bin/bitcoind @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +umask 077 + +basedir=~/.bitcoin +dbfile="$basedir/DB_CONFIG" +cfgfile="$basedir/bitcoin.conf" + +[ -e "$basedir" ] || mkdir "$basedir" + +[ -e "$cfgfile" ] || perl -le 'print"rpcpassword=",map{(a..z,A..Z,0..9)[rand 62]}0..9' > "$cfgfile" + +# Bitcoin does not clean up DB log files by default +[ -e "$dbfile" ] || echo 'set_flags DB_LOG_AUTOREMOVE' > "$dbfile" + +exec /usr/lib/bitcoin/bitcoind "$@" diff --git a/contrib/debian/bitcoin-qt.desktop b/contrib/debian/bitcoin-qt.desktop new file mode 100644 index 0000000..d65cc35 --- /dev/null +++ b/contrib/debian/bitcoin-qt.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Bitcoin +Comment=Bitcoin P2P Cryptocurrency +Exec=/usr/bin/bitcoin-qt +Terminal=false +Type=Application +Icon=/usr/share/pixmaps/bitcoin80.xpm +#For when bitcoin (finally) properly handles bitcoin: URLs +#MimeType=x-scheme-handler/bitcoin; +Categories=Office; diff --git a/contrib/debian/bitcoin-qt.install b/contrib/debian/bitcoin-qt.install new file mode 100644 index 0000000..7ddc8c1 --- /dev/null +++ b/contrib/debian/bitcoin-qt.install @@ -0,0 +1,5 @@ +debian/bin/bitcoin-qt usr/bin +bitcoin-qt usr/lib/bitcoin +share/pixmaps/bitcoin32.xpm usr/share/pixmaps +share/pixmaps/bitcoin80.xpm usr/share/pixmaps +debian/bitcoin-qt.desktop usr/share/applications diff --git a/contrib/debian/bitcoin-qt.lintian-overrides b/contrib/debian/bitcoin-qt.lintian-overrides new file mode 100644 index 0000000..7fb230e --- /dev/null +++ b/contrib/debian/bitcoin-qt.lintian-overrides @@ -0,0 +1,2 @@ +# Linked code is Expat - only Debian packaging is GPL-2+ +bitcoin-qt: possible-gpl-code-linked-with-openssl diff --git a/contrib/debian/bitcoind.examples b/contrib/debian/bitcoind.examples new file mode 100644 index 0000000..4ded67d --- /dev/null +++ b/contrib/debian/bitcoind.examples @@ -0,0 +1 @@ +debian/examples/bitcoin.conf diff --git a/contrib/debian/bitcoind.install b/contrib/debian/bitcoind.install new file mode 100644 index 0000000..e978c44 --- /dev/null +++ b/contrib/debian/bitcoind.install @@ -0,0 +1,2 @@ +debian/bin/bitcoind usr/bin +src/bitcoind usr/lib/bitcoin diff --git a/contrib/debian/bitcoind.lintian-overrides b/contrib/debian/bitcoind.lintian-overrides new file mode 100644 index 0000000..3f9f140 --- /dev/null +++ b/contrib/debian/bitcoind.lintian-overrides @@ -0,0 +1,2 @@ +# Linked code is Expat - only Debian packaging is GPL-2+ +bitcoind: possible-gpl-code-linked-with-openssl diff --git a/contrib/debian/bitcoind.manpages b/contrib/debian/bitcoind.manpages new file mode 100644 index 0000000..3e4ca63 --- /dev/null +++ b/contrib/debian/bitcoind.manpages @@ -0,0 +1,2 @@ +debian/manpages/bitcoind.1 +debian/manpages/bitcoin.conf.5 diff --git a/contrib/debian/changelog b/contrib/debian/changelog new file mode 100644 index 0000000..0720acc --- /dev/null +++ b/contrib/debian/changelog @@ -0,0 +1,287 @@ +bitcoin (0.5.3-natty0) natty; urgency=low + + * New upstream release. + + -- Luke Dashjr Tue, 10 Jan 2012 15:57:00 -0500 + +bitcoin (0.5.2-natty1) natty; urgency=low + + * Remove mentions on anonymity in package descriptions and manpage. + These should never have been there, bitcoin isnt anonymous without + a ton of work that virtually no users will ever be willing and + capable of doing + + -- Matt Corallo Sat, 7 Jan 2012 13:37:00 -0500 + +bitcoin (0.5.2-natty0) natty; urgency=low + + * New upstream release. + + -- Luke Dashjr Fri, 16 Dec 2011 17:57:00 -0500 + +bitcoin (0.5.1-natty0) natty; urgency=low + + * New upstream release. + + -- Matt Corallo Fri, 16 Dec 2011 13:27:00 -0500 + +bitcoin (0.5.0-natty0) natty; urgency=low + + * New upstream release. + + -- Matt Corallo Mon, 21 Nov 2011 11:32:00 -0500 + +bitcoin (0.5.0~rc7-natty0) natty; urgency=low + + * New upstream release candidate. + + -- Matt Corallo Sun, 20 Nov 2011 17:08:00 -0500 + +bitcoin (0.5.0~rc3-natty0) natty; urgency=low + + * New upstream release candidate. + * Don't set rpcpassword for bitcoin-qt. + + -- Matt Corallo Tue, 8 Nov 2011 11:56:00 -0400 + +bitcoin (0.5.0~rc1-natty1) natty; urgency=low + + * Add test_bitcoin to build test + * Fix clean + * Remove uneccessary build-dependancies + + -- Matt Corallo Wed, 26 Oct 2011 14:37:18 -0400 + +bitcoin (0.5.0~rc1-natty0) natty; urgency=low + + * Mark for natty + * Fix broken build + * Fix copyright listing + * Remove bitcoin: URL handler until bitcoin actually has support for it (Oops) + + -- Matt Corallo Wed, 26 Oct 2011 14:37:18 -0400 + +bitcoin (0.5.0~rc1-2) experimental; urgency=low + + * Add bitcoin-qt + + -- Matt Corallo Tue, 25 Oct 2011 15:24:18 -0400 + +bitcoin (0.5.0~rc1-1) experimental; urgency=low + + * New upstream prerelease. + * Add Github as alternate upstream source in watch file. + * Stop build-depending on libcrypto++-dev, and drop patch 1000: + Upstream no longer use crypto++. + * Drop patch 1003: Upstream builds dynamic by default now. + * Update copyright file: Drop notes on longer included sources. + + -- Jonas Smedegaard Fri, 14 Oct 2011 00:16:18 +0200 + +bitcoin (0.4.0-1) unstable; urgency=low + + * New upstream release. + * Stop repackaging source tarballs: No DFSG-violating stripping left. + * Update copyright file: + + Add Github URL to Source. + * Drop dpkg-source local-options hint: Declared options are default + since dpkg-source 1.16.1. + + Add irc URL to Upstream-Contact. + + Add comment on Bitcoin Developers to catch-all Files section. + + Add Files sections for newly readded src/cryptopp/* (new custom + BSD-like license), and newly added doc/build-osx.txt and + src/makefile.osx (Expat). + * Bump debhelper compatibility level to 7. + * Suppress binary icns and gpg files. + * Enable regression tests: + + Build-depend on libboost-test-dev. + + Extend patch 1003 to also dynamically link test binary. + + Build and invoke test binary unless tests are disabled. + * Tighten build-dependency on cdbs: Recent version needed to support + debhelper 7. + * Relax build-depend unversioned on debhelper: needed version + satisfied even in oldstable. + * Stop suppress optional build-dependencies: Satisfied in stable. + Build-depend on devscripts (enabling copyright-check). + + -- Jonas Smedegaard Wed, 05 Oct 2011 01:48:53 +0200 + +bitcoin (0.3.24~dfsg-1) unstable; urgency=low + + * New upstream release. + + [ Jonas Smedegaard ] + * Improve various usage hints: + + Explicitly mention in long description that bitcoind contains + daemon and command-line interface. + + Extend README.Debian with section on lack of GUI, and add primary + headline. + + Avoid installing upstream README: contains no parts relevant for + Debian usage. + Thanks to richard for suggestions (see bug#629443). + * Favor final releases over prereleases in rules and watch file. + Thanks to Jan Dittberner. + * Track -src (not -linux) tarballs in rules and watch file. + Thanks to Jan Dittberner. + * Drop patches 1004 and 1005 (integrated upstream) and simplify + CXXFLAGS in rules file. + * Stop stripping no longer included source-less binaries from upstream + tarballs. + + [ Jan Dittberner ] + * refresh debian/patches/1000_use_system_crypto++.patch + + -- Jonas Smedegaard Tue, 19 Jul 2011 15:08:54 +0200 + +bitcoin (0.3.21~dfsg-2) unstable; urgency=low + + * Enable UPNP support: + + Drop patch 1006. + + Build-depend on libminiupnpc-dev. + Thanks to Matt Corallo. + + -- Jonas Smedegaard Sat, 28 May 2011 15:52:44 +0200 + +bitcoin (0.3.21~dfsg-1) unstable; urgency=low + + * New upstream release. + * Refresh patches. + * Drop patch 1002: no longer needed, as upstream use pkgconfig now. + * Add patch 1006 to really unset USE_UPNP as aparently intended. + * Adjust cleanup rule to preserve .gitignore files. + * Update copyright file: + + Bump format to draft 174 of DEP-5. + + Shorten comments. + * Bump policy compliance to standards-version 3.9.2. + * Shorten Vcs-Browser paragraph in control file. + * Fix mention daemon (not CLI tools) in short description. + * Stop conflicting with or replace bitcoin-cli: Only transitional, no + longer needed. + * Link against unversioned berkeleydb. Update NEWS and README.Debian + accordingly (and improve wording while at it). + Closes: Bug#621425. Thanks to Ondřej Surý. + * This release also implicitly updates linkage against libcrypto++, + which closes: bug#626953, #627024. + * Disable linkage against not yet Debian packaged MiniUPnP. + * Silence seemingly harmless noise about unused variables. + + -- Jonas Smedegaard Tue, 17 May 2011 15:31:24 +0200 + +bitcoin (0.3.20.2~dfsg-2) unstable; urgency=medium + + * Fix have wrapper script execute real binary (not loop executing + itself). + Closes: bug#617290. Thanks to Philippe Gauthier and Etienne Laurin. + * Set urgency=medium as the only (user-exposed) binary is useless + without this fix and has been for some time. + + -- Jonas Smedegaard Wed, 16 Mar 2011 09:11:06 +0100 + +bitcoin (0.3.20.2~dfsg-1) unstable; urgency=low + + * New upstream release. + * Fix provide and replace former package name bitcoin-cli. + Closes: bug#618439. Thanks to Shane Wegner. + + -- Jonas Smedegaard Tue, 15 Mar 2011 11:41:43 +0100 + +bitcoin (0.3.20.01~dfsg-1) unstable; urgency=low + + * New upstream release. + + [ Micah Anderson ] + * Add myself as uploader. + + [ Jonas Smedegaard ] + * Add wrapper for bitcoind to ease initial startup. + * Update patches: + + Drop patch 2002: Applied upstream. + + Add patch 1005 to add phtread linker option. + Closes: bug#615619. Thanks to Shane Wegner. + + Refresh patches. + * Extend copyright years in rules file header. + * Rewrite copyright file using draft svn166 of DEP5 format. + * Rename binary package to bitcoind (from bincoin-cli). + Closes: bug#614025. Thanks to Luke-Jr. + + -- Jonas Smedegaard Tue, 01 Mar 2011 15:55:04 +0100 + +bitcoin (0.3.19~dfsg-6) unstable; urgency=low + + * Fix override agressive optimizations. + * Fix tighten build-dependencies to really fit backporting to Lenny: + + Add fallback build-dependency on libdb4.6++-dev. + + Tighten unversioned Boost build-dependencies to recent versions, + To force use of versioned Boost when backporting to Lenny. + ...needs more love, though: actual build fails. + + -- Jonas Smedegaard Mon, 17 Jan 2011 19:48:35 +0100 + +bitcoin (0.3.19~dfsg-5) unstable; urgency=low + + * Fix lower Boost fallback-build-dependencies to 1.35, really + available in Lenny. + * Correct comment in rules file regarding reason for versioned Boost + fallback-build-dependency. + * Add patch 2002 adding -mt decoration to Boost flags, to ease + backporting to Lenny. + * Respect DEB_BUILD_OPTIONS, and suppress arch-specific optimizations: + + Add patch 1004 to allow overriding optimization flags. + + Set optimization flags conditionally at build time. + + Drop patch 2002 unconditionally suppressing arch-optimizations. + + -- Jonas Smedegaard Mon, 17 Jan 2011 16:04:48 +0100 + +bitcoin (0.3.19~dfsg-4) unstable; urgency=low + + [ Micah Anderson ] + * Provide example bitcoin.conf. + * Add bitcoind(1) and bitcoin.conf(5) man pages. + + [ Jonas Smedegaard ] + * Ease backporting: + + Suppress optional build-dependencies. + + Add fallback build-dependencies on the most recent Boost libs + available in Lenny (where unversioned Boost libs are missing). + * Add Micah as copyright holder for manpages, licensed as GPL-3+. + * Bump copyright format to Subversion candidate draft 162 of DEP5. + + -- Jonas Smedegaard Mon, 17 Jan 2011 14:00:48 +0100 + +bitcoin (0.3.19~dfsg-3) unstable; urgency=low + + * Document in copyright file files excluded from repackaged source. + * Update copyright file: + + Bump DEP5 format hint to Subversion draft rev. 153. + + Consistently wrap at 72 chars. + + Refer to GPL-2 file (not GPL symlink). + * Link against Berkeley DB 4.8 (not 4.7): + + Build-depend on libdb4.8++-dev (and on on libdb4.7++-dev). + + Suggest libdb4.8-util and db4.7-util. + + Add README.Debian note on (untested) upgrade routine. + + Add NEWS entry on changed db version, referring to README.Debian. + + -- Jonas Smedegaard Fri, 07 Jan 2011 22:50:57 +0100 + +bitcoin (0.3.19~dfsg-2) unstable; urgency=low + + * Adjust build options to use optimized miner only for amd64. Fixes + FTBFS on i386 (and other archs, if compiling anywhere else at all). + * Avoid static linking. + * Adjust patch 2001 to avoid only arch-specific optimizations (keep + -O3). + * Extend long description to mention disk consumption and initial use + of IRC. + All of above changes thanks to Helmuth Grohne. + * Add lintian override regarding OpenSSL and GPL: Linked code is Expat + - only Debian packaging is GPL-2+. + + -- Jonas Smedegaard Wed, 29 Dec 2010 00:27:54 +0100 + +bitcoin (0.3.19~dfsg-1) unstable; urgency=low + + [ Jonas Smedegaard ] + * Initial release. + Closes: bug#578157. + + -- Jonas Smedegaard Tue, 28 Dec 2010 15:49:22 +0100 diff --git a/contrib/debian/compat b/contrib/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/contrib/debian/compat @@ -0,0 +1 @@ +7 diff --git a/contrib/debian/control b/contrib/debian/control new file mode 100644 index 0000000..c41664c --- /dev/null +++ b/contrib/debian/control @@ -0,0 +1,57 @@ +Source: bitcoin +Section: utils +Priority: optional +Maintainer: Jonas Smedegaard +Uploaders: Micah Anderson +Build-Depends: debhelper, + devscripts, + libboost-system-dev (>> 1.35) | libboost-system1.35-dev, + libdb4.8++-dev, + libssl-dev, + pkg-config, + libminiupnpc8-dev, + libboost-filesystem-dev (>> 1.35) | libboost-filesystem1.35-dev, + libboost-program-options-dev (>> 1.35) | libboost-program-options1.35-dev, + libboost-thread-dev (>> 1.35) | libboost-thread1.35-dev, + libboost-test-dev (>> 1.35) | libboost-test1.35-dev, + qt4-qmake, + libqt4-dev +Standards-Version: 3.9.2 +Homepage: http://www.bitcoin.org/ +Vcs-Git: git://github.com/bitcoin/bitcoin.git +Vcs-Browser: http://github.com/bitcoin/bitcoin + +Package: bitcoind +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: peer-to-peer network based digital currency - daemon + Bitcoin is a free open source peer-to-peer electronic cash system that + is completely decentralized, without the need for a central server or + trusted parties. Users hold the crypto keys to their own money and + transact directly with each other, with the help of a P2P network to + check for double-spending. + . + By default connects to an IRC network to discover other peers. + . + Full transaction history is stored locally at each client. This + requires 150+ MB of space, slowly growing. + . + This package provides bitcoind, a combined daemon and CLI tool to + interact with the daemon. + +Package: bitcoin-qt +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: peer-to-peer network based digital currency - QT GUI + Bitcoin is a free open source peer-to-peer electronic cash system that + is completely decentralized, without the need for a central server or + trusted parties. Users hold the crypto keys to their own money and + transact directly with each other, with the help of a P2P network to + check for double-spending. + . + By default connects to an IRC network to discover other peers. + . + Full transaction history is stored locally at each client. This + requires 150+ MB of space, slowly growing. + . + This package provides bitcoin-qt, a GUI for Bitcoin based on QT. diff --git a/contrib/debian/copyright b/contrib/debian/copyright new file mode 100644 index 0000000..5db418d --- /dev/null +++ b/contrib/debian/copyright @@ -0,0 +1,167 @@ +Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=174 +Upstream-Name: Bitcoin +Upstream-Contact: Satoshi Nakamoto + irc://#bitcoin@freenode.net +Source: http://sourceforge.net/projects/bitcoin/files/ + https://github.com/bitcoin/bitcoin + +Files: * +Copyright: 2009-2011, Bitcoin Developers +License: Expat +Comment: The Bitcoin Developers encompasses the current developers listed on bitcoin.org, + as well as the numerous contributors to the project. + +Files: src/json/* +Copyright: 2007-2009, John W. Wilkinson +License: Expat + +Files: src/strlcpy.h +Copyright: 1998, Todd C. Miller +License: ISC + +Files: debian/* +Copyright: 2010-2011, Jonas Smedegaard + 2011, Matt Corallo +License: GPL-2+ + +Files: debian/manpages/* +Copyright: Micah Anderson +License: GPL-3+ + +Files: src/qt/res/icons/clock*.png, src/qt/res/icons/tx*.png, + src/qt/res/src/*.svg +Copyright: Wladimir van der Laan +License: Expat + +Files: src/qt/res/icons/address-book.png, src/qt/res/icons/export.png, + src/qt/res/icons/history.png, src/qt/res/icons/key.png, + src/qt/res/icons/lock_*.png, src/qt/res/icons/overview.png, + src/qt/res/icons/receive.png, src/qt/res/icons/send.png, + src/qt/res/icons/synced.png +Copyright: David Vignoni (david@icon-king.com) + ICON KING - www.icon-king.com +License: LGPL +Comment: NUVOLA ICON THEME for KDE 3.x + Original icons: kaddressbook, klipper_dock, view-list-text, + key-password, encrypted/decrypted, go-home, go-down, + go-next, dialog-ok + Site: http://www.icon-king.com/projects/nuvola/ + +Files: src/qt/res/icons/connect*.png +Copyright: schollidesign +License: GPL-3+ +Comment: Icon Pack: Human-O2 + Site: http://findicons.com/icon/93743/blocks_gnome_netstatus_0 + +Files: src/qt/res/icons/transaction*.png +Copyright: md2k7 +License: You are free to do with these icons as you wish, including selling, + copying, modifying etc. +Comment: Site: https://forum.bitcoin.org/index.php?topic=15276.0 + +Files: 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 +Copyright: http://www.everaldo.com +License: LGPL +Comment: Icon Pack: Crystal SVG + +Files: src/qt/res/icons/bitcoin.png, src/qt/res/icons/toolbar.png +Copyright: Bitboy (optimized for 16x16 by Wladimir van der Laan) +License: PUB-DOM +Comment: Site: http://forum.bitcoin.org/?topic=1756.0 + +Files: scripts/img/reload.xcf, src/qt/res/movies/update_spinner.mng +Copyright: Everaldo (Everaldo Coelho) +License: GPL-3+ +Comment: Icon Pack: Kids + Site: http://findicons.com/icon/17102/reload?id=17102 + +Files: src/qt/res/images/splash2.jpg +License: PUB-DOM +Copyright: Crobbo (forum) +Comment: Site: https://bitcointalk.org/index.php?topic=32273.0 + + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +License: ISC + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + . + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL + WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR + BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES + OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + SOFTWARE. + +License: GPL-2+ + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + . + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. +Comment: + On Debian systems the GNU General Public License (GPL) version 2 is + located in '/usr/share/common-licenses/GPL-2'. + . + You should have received a copy of the GNU General Public License along + with this program. If not, see . + +License: GPL-3+ + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU General Public License, Version 3 or any + later version published by the Free Software Foundation. +Comment: + On Debian systems the GNU General Public License (GPL) version 3 is + located in '/usr/share/common-licenses/GPL-3'. + . + You should have received a copy of the GNU General Public License along + with this program. If not, see . + +License: LGPL + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. +Comment: + On Debian systems the GNU Lesser General Public License (LGPL) is + located in '/usr/share/common-licenses/LGPL'. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +License: PUB-DOM + This work is in the public domain. diff --git a/contrib/debian/examples/bitcoin.conf b/contrib/debian/examples/bitcoin.conf new file mode 100644 index 0000000..e56c43c --- /dev/null +++ b/contrib/debian/examples/bitcoin.conf @@ -0,0 +1,88 @@ +# bitcoin.conf configuration file. Lines beginning with # are comments. + + +# Network-related settings: + +# Run on the test network instead of the real bitcoin network. +#testnet=1 + +# Connect via a socks4 proxy +#proxy=127.0.0.1:9050 + +# Use as many addnode= settings as you like to connect to specific peers +#addnode=69.164.218.197 +#addnode=10.0.0.2:8333 + +# ... or use as many connect= settings as you like to connect ONLY +# to specific peers: +#connect=69.164.218.197 +#connect=10.0.0.1:8333 + +# Do not use Internet Relay Chat (irc.lfnet.org #bitcoin channel) to +# find other peers. +#noirc=1 + +# Maximum number of inbound+outbound connections. +#maxconnections= + + +# JSON-RPC options (for controlling a running Bitcoin/bitcoind process) + +# server=1 tells Bitcoin to accept JSON-RPC commands. +#server=1 + +# You must set rpcuser and rpcpassword to secure the JSON-RPC api +#rpcuser=Ulysseys +#rpcpassword=YourSuperGreatPasswordNumber_385593 + +# By default, only RPC connections from localhost are allowed. Specify +# as many rpcallowip= settings as you like to allow connections from +# other hosts (and you may use * as a wildcard character): +#rpcallowip=10.1.1.34 +#rpcallowip=192.168.1.* + +# Listen for RPC connections on this TCP port: +rpcport=8332 + +# You can use Bitcoin or bitcoind to send commands to Bitcoin/bitcoind +# running on another host using this option: +rpcconnect=127.0.0.1 + +# Use Secure Sockets Layer (also known as TLS or HTTPS) to communicate +# with Bitcoin -server or bitcoind +#rpcssl=1 + +# OpenSSL settings used when rpcssl=1 +rpcsslciphers=TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH +rpcsslcertificatechainfile=server.cert +rpcsslprivatekeyfile=server.pem + + +# Miscellaneous options + +# Set gen=1 to attempt to generate bitcoins +gen=0 + +# Use SSE instructions to try to generate bitcoins faster. +#4way=1 + +# Pre-generate this many public/private key pairs, so wallet backups will be valid for +# both prior transactions and several dozen future transactions. +keypool=100 + +# Pay an optional transaction fee every time you send bitcoins. Transactions with fees +# are more likely than free transactions to be included in generated blocks, so may +# be validated sooner. +paytxfee=0.00 + +# Allow direct connections for the 'pay via IP address' feature. +#allowreceivebyip=1 + + +# User interface options + +# Start Bitcoin minimized +#min=1 + +# Minimize to the system tray +#minimizetotray=1 diff --git a/contrib/debian/gbp.conf b/contrib/debian/gbp.conf new file mode 100644 index 0000000..a7281f9 --- /dev/null +++ b/contrib/debian/gbp.conf @@ -0,0 +1,5 @@ +# Configuration file for git-buildpackage and friends + +[DEFAULT] +pristine-tar = True +sign-tags = True diff --git a/contrib/debian/manpages/bitcoin.conf.5 b/contrib/debian/manpages/bitcoin.conf.5 new file mode 100644 index 0000000..1243253 --- /dev/null +++ b/contrib/debian/manpages/bitcoin.conf.5 @@ -0,0 +1,94 @@ +.TH BITCOIN.CONF "5" "January 2011" "bitcoin.conf 3.19" +.SH NAME +bitcoin.conf \- bitcoin configuration file +.SH SYNOPSIS +All command-line options (except for '-datadir' and '-conf') may be specified in a configuration file, and all configuration file options may also be specified on the command line. Command-line options override values set in the configuration file. +.TP +The configuration file is a list of 'setting=value' pairs, one per line, with optional comments starting with the '#' character. +.TP +The configuration file is not automatically created; you can create it using your favorite plain-text editor. By default, bitcoind(1) will look for a file named bitcoin.conf(5) in the bitcoin data directory, but both the data directory and the configuration file path may be changed using the '-datadir' and '-conf' command-line arguments. +.SH LOCATION +bitcoin.conf should be located in $HOME/.bitcoin +.SH NETWORK-RELATED SETTINGS +.TP +.TP +\fBtestnet=\fR[\fI'1'\fR|\fI'0'\fR] +Enable or disable run on the test network instead of the real *bitcoin* network. +.TP +\fBproxy=\fR\fI'127.0.0.1:9050'\fR +Connect via a socks4 proxy. +.TP +\fBaddnode=\fR\fI'10.0.0.2:8333'\fR +Use as many *addnode=* settings as you like to connect to specific peers. +.TP +\fBconnect=\fR\fI'10.0.0.1:8333'\fR +Use as many *connect=* settings as you like to connect ONLY to specific peers. +.TP +\fBnoirc=\fR[\fI'1'\fR|\fI'0'\fR] +Use or Do not use Internet Relay Chat (irc.lfnet.org #bitcoin channel) to find other peers. +.TP +\fRmaxconnections=\fR\fI'value'\fR +Maximum number of inbound+outbound connections. +.SH JSON-RPC OPTIONS +.TP +\fBserver=\fR[\fI'1'\fR|\fI'0'\fR] +Tells *bitcoin* to accept or not accept JSON-RPC commands. +.TP +\fBrpcuser=\fR\fI'username'\fR +You must set *rpcuser* to secure the JSON-RPC api. +.TP +\fBrpcpassword=\fR\fI'password'\fR +You must set *rpcpassword* to secure the JSON-RPC api. +.TP +\fBrpctimeout=\fR\fI'30'\fR +How many seconds *bitcoin* will wait for a complete RPC HTTP request, after the HTTP connection is established. +.TP +\fBrpcallowip=\fR\fI'192.168.1.*'\fR +By default, only RPC connections from localhost are allowed. Specify as many *rpcallowip=* settings as you like to allow connections from other hosts (and you may use * as a wildcard character). +.TP +\fBrpcport=\fR\fI'8332'\fR +Listen for RPC connections on this TCP port. +.TP +\fBrpcconnect=\fR\fI'127.0.0.1'\fR +You can use *bitcoin* or *bitcoind(1)* to send commands to *bitcoin*/*bitcoind(1)* running on another host using this option. +.TP +\fBrpcssl=\fR\fI'1'\fR +Use Secure Sockets Layer (also known as TLS or HTTPS) to communicate with *bitcoin* '-server' or *bitcoind(1)*. Example of OpenSSL settings used when *rpcssl*='1': +.TP +\fBrpcsslciphers=\fR\fI'TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH'\fR +.TP +\fBrpcsslcertificatechainfile=\fR\fI'server.cert'\fR +.TP +\fBrpcsslprivatekeyfile=\fR\fI'server.pem'\fR +.TP +.SH MISCELLANEOUS OPTIONS +.TP +\fBgen=\fR[\fI'0'\fR|\fI'1'\fR] +Enable or disable attempt to generate bitcoins. +.TP +\fB4way=\fR[\fI'0'\fR|\fI'1'\fR] +Enable or disable use SSE instructions to try to generate bitcoins faster. +.TP +\fBkeypool=\fR\fI'100'\fR +Pre-generate this many public/private key pairs, so wallet backups will be valid for both prior transactions and several dozen future transactions. +.TP +\fBpaytxfee=\fR\fI'0.00'\fR +Pay an optional transaction fee every time you send bitcoins. Transactions with fees are more likely than free transactions to be included in generated blocks, so may be validated sooner. +.TP +\fBallowreceivebyip=\fR\fI'1'\fR +Allow direct connections for the 'pay via IP address' feature. +.TP +.SH USER INTERFACE OPTIONS +.TP +\fBmin=\fR[\fI'0'\fR|\fI'1'\fR] +Enable or disable start bitcoind minimized. +.TP +\fBminimizetotray=\fR[\fI'0'\fR|\fI'1'\fR] +Enable or disable minimize to the system tray. +.SH "SEE ALSO" +bitcoind(1) +.SH AUTHOR +This manual page was written by Micah Anderson for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. + diff --git a/contrib/debian/manpages/bitcoind.1 b/contrib/debian/manpages/bitcoind.1 new file mode 100644 index 0000000..bf46a66 --- /dev/null +++ b/contrib/debian/manpages/bitcoind.1 @@ -0,0 +1,209 @@ +.TH BITCOIND "1" "January 2011" "bitcoind 3.19" +.SH NAME +bitcoind \- peer-to-peer network based digital currency +.SH SYNOPSIS +bitcoin [options] [params] +.TP +bitcoin [options] help - Get help for a command +.SH DESCRIPTION +This manual page documents the bitcoind program. Bitcoin is a peer-to-peer digital currency. Peer-to-peer (P2P) means that there is no central authority to issue new money or keep track of transactions. Instead, these tasks are managed collectively by the nodes of the network. Advantages: + +Bitcoins can be sent easily through the Internet, without having to trust middlemen. Transactions are designed to be irreversible. Be safe from instability caused by fractional reserve banking and central banks. The limited inflation of the Bitcoin system’s money supply is distributed evenly (by CPU power) throughout the network, not monopolized by banks. + +.SH OPTIONS +.TP +\fB\-conf=\fR +Specify configuration file (default: bitcoin.conf) +.TP +\fB\-gen\fR +Generate coins +.TP +\fB\-gen\fR=\fI0\fR +Don't generate coins +.TP +\fB\-min\fR +Start minimized +.TP +\fB\-datadir=\fR +Specify data directory +.TP +\fB\-proxy=\fR +Connect through socks4 proxy +.TP +\fB\-addnode=\fR +Add a node to connect to +.TP +\fB\-connect=\fR +Connect only to the specified node +.TP +\fB\-paytxfee=\fR +Fee per KB to add to transactions you send +.TP +\fB\-server\fR +Accept command line and JSON\-RPC commands +.TP +\fB\-daemon\fR +Run in the background as a daemon and accept commands +.TP +\fB\-testnet\fR +Use the test network +.TP +\fB\-rpcuser=\fR +Username for JSON\-RPC connections +.TP +\fB\-rpcpassword=\fR +Password for JSON\-RPC connections +.TP +\fB\-rpcport=\fR +Listen for JSON\-RPC connections on +.TP +\fB\-rpcallowip=\fR +Allow JSON\-RPC connections from specified IP address +.TP +\fB\-rpcconnect=\fR +Send commands to node running on +.PP +SSL options: (see the Bitcoin Wiki for SSL setup instructions) +.TP +\fB\-rpcssl\fR=\fI1\fR +Use OpenSSL (https) for JSON\-RPC connections +.TP +\fB\-rpcsslcertificatchainfile=\fR +Server certificate file (default: server.cert) +.TP +\fB\-rpcsslprivatekeyfile=\fR +Server private key (default: server.pem) +.TP +\fB\-rpcsslciphers=\fR +Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) +.TP +\-? +This help message +.SH COMMANDS +.TP +\fBbackupwallet 'destination'\fR +Safely copies *wallet.dat* to 'destination', which can be a directory or a path with filename. +.TP +\fBgetaccount 'bitcoinaddress'\fR +Returns the account associated with the given address. +.TP +\fBsetaccount 'bitcoinaddress' ['account']\fR +Sets the ['account'] associated with the given address. ['account'] may be omitted to remove an address from ['account']. +.TP +\fBgetaccountaddress 'account'\fR +Returns a new bitcoin address for 'account'. +.TP +\fBgetaddressesbyaccount 'account'\fR +Returns the list of addresses associated with the given 'account'. +.TP +\fBgetbalance 'account'\fR +Returns the server's available balance, or the balance for 'account'. +.TP +\fBgetblockcount\fR +Returns the number of blocks in the longest block chain. +.TP +\fBgetblocknumber\fR +Returns the block number of the latest block in the longest block chain. +.TP +\fBgetconnectioncount\fR +Returns the number of connections to other nodes. +.TP +\fBgetdifficulty\fR +Returns the proof-of-work difficulty as a multiple of the minimum difficulty. +.TP +\fBgetgenerate\fR +Returns boolean true if server is trying to generate bitcoins, false otherwise. +.TP +\fBsetgenerate 'generate' ['genproclimit']\fR +Generation is limited to ['genproclimit'] processors, -1 is unlimited. +.TP +\fBgethashespersec\fR +Returns a recent hashes per second performance measurement while generating. +.TP +\fBgetinfo\fR +Returns an object containing server information. +.TP +\fBgetnewaddress 'account'\fR +Returns a new bitcoin address for receiving payments. If 'account' is specified (recommended), it is added to the address book so payments received with the address will be credited to 'account'. +.TP +\fBgetreceivedbyaccount 'account' ['minconf=1']\fR +Returns the total amount received by addresses associated with 'account' in transactions with at least ['minconf'] confirmations. +.TP +\fBgetreceivedbyaddress 'bitcoinaddress' ['minconf=1']\fR +Returns the total amount received by 'bitcoinaddress' in transactions with at least ['minconf'] confirmations. +.TP +\fBgettransaction 'txid'\fR +Returns information about a specific transaction, given hexadecimal transaction ID. +.TP +\fBgetwork 'data'\fR +If 'data' is specified, tries to solve the block and returns true if it was successful. If 'data' is not specified, returns formatted hash 'data' to work on: + + "midstate" : precomputed hash state after hashing the first half of the data. + "data" : block data. + "hash1" : formatted hash buffer for second hash. + "target" : little endian hash target. +.TP +\fBhelp 'command'\fR +List commands, or get help for a command. +.TP +\fBlistaccounts ['minconf=1']\fR +List accounts and their current balances. + *note: requires bitcoin 0.3.20 or later. +.TP +\fBlistreceivedbyaccount ['minconf=1'] ['includeempty=false']\fR +['minconf'] is the minimum number of confirmations before payments are included. ['includeempty'] whether to include addresses that haven't received any payments. Returns an array of objects containing: + + "account" : the account of the receiving address. + "amount" : total amount received by the address. + "confirmations" : number of confirmations of the most recent transaction included. +.TP +\fBlistreceivedbyaddress ['minconf=1'] ['includeempty=false']\fR +['minconf'] is the minimum number of confirmations before payments are included. ['includeempty'] whether to include addresses that haven't received any payments. Returns an array of objects containing: + + "address" : receiving address. + "account" : the account of the receiving address. + "amount" : total amount received by the address. + "confirmations" : number of confirmations of the most recent transaction included. +.TP +\fBlisttransactions 'account' ['count=10']\fR +Returns a list of the last ['count'] transactions for 'account' - for all accounts if 'account' is not specified or is "*". Each entry in the list may contain: + + "category" : will be generate, send, receive, or move. + "amount" : amount of transaction. + "fee" : Fee (if any) paid (only for send transactions). + "confirmations" : number of confirmations (only for generate/send/receive). + "txid" : transaction ID (only for generate/send/receive). + "otheraccount" : account funds were moved to or from (only for move). + "message" : message associated with transaction (only for send). + "to" : message-to associated with transaction (only for send). + + *note: requires bitcoin 0.3.20 or later. +.TP +\fBmove <'fromaccount'> <'toaccount'> <'amount'> ['minconf=1'] ['comment']\fR +Moves funds between accounts. +.TP +\fBsendfrom* <'account'> <'bitcoinaddress'> <'amount'> ['minconf=1'] ['comment'] ['comment-to']\fR +Sends amount from account's balance to 'bitcoinaddress'. This method will fail if there is less than amount bitcoins with ['minconf'] confirmations in the account's balance (unless account is the empty-string-named default account; it behaves like the *sendtoaddress* method). Returns transaction ID on success. +.TP +\fBsendtoaddress 'bitcoinaddress' 'amount' ['comment'] ['comment-to']\fR +Sends amount from the server's available balance to 'bitcoinaddress'. amount is a real and is rounded to the nearest 0.01. Returns transaction id on success. +.TP +\fBstop\fR +Stops the bitcoin server. +.TP +\fBvalidateaddress 'bitcoinaddress'\fR +Checks that 'bitcoinaddress' looks like a proper bitcoin address. Returns an object containing: + + "isvalid" : true or false. + "ismine" : true if the address is in the server's wallet. + "address" : bitcoinaddress. + + *note: ismine and address are only returned if the address is valid. + +.SH "SEE ALSO" +bitcoin.conf(5) +.SH AUTHOR +This manual page was written by Micah Anderson for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. + diff --git a/contrib/debian/patches/1001_use_system_json-spirit.patch b/contrib/debian/patches/1001_use_system_json-spirit.patch new file mode 100644 index 0000000..56a20af --- /dev/null +++ b/contrib/debian/patches/1001_use_system_json-spirit.patch @@ -0,0 +1,26 @@ +Description: Use system JSON Spirit library +Author: Jonas Smedegaard +Last-Update: 2011-05-17 +--- a/src/rpc.cpp ++++ b/src/rpc.cpp +@@ -12,9 +12,7 @@ + #include + typedef boost::asio::ssl::stream SSLStream; + #endif +-#include "json/json_spirit_reader_template.h" +-#include "json/json_spirit_writer_template.h" +-#include "json/json_spirit_utils.h" ++#include + #define printf OutputDebugStringF + // MinGW 3.4.5 gets "fatal error: had to relocate PCH" if the json headers are + // precompiled in headers.h. The problem might be when the pch file goes over +--- a/src/makefile.unix ++++ b/src/makefile.unix +@@ -23,6 +23,7 @@ + -l boost_thread \ + -l db_cxx \ + -l ssl \ ++ -l json_spirit \ + -l crypto + + ifdef USE_UPNP diff --git a/contrib/debian/patches/README b/contrib/debian/patches/README new file mode 100644 index 0000000..80c1584 --- /dev/null +++ b/contrib/debian/patches/README @@ -0,0 +1,3 @@ +0xxx: Grabbed from upstream development. +1xxx: Possibly relevant for upstream adoption. +2xxx: Only relevant for official Debian release. diff --git a/contrib/debian/patches/series b/contrib/debian/patches/series new file mode 100644 index 0000000..bbe3685 --- /dev/null +++ b/contrib/debian/patches/series @@ -0,0 +1 @@ +#1001_use_system_json-spirit.patch diff --git a/contrib/debian/rules b/contrib/debian/rules new file mode 100755 index 0000000..a1d6565 --- /dev/null +++ b/contrib/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- + +#DEB_MAKE_CHECK_TARGET = test_bitcoin +#build/bitcoind:: +# $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,src/test_bitcoin) + +DEB_INSTALL_EXAMPLES_bitcoind += debian/examples/* +DEB_INSTALL_MANPAGES_bitcoind += debian/manpages/* + +%: + dh $@ + +override_dh_auto_build: + cd src; $(MAKE) -f makefile.unix bitcoind + $(MAKE) + +override_dh_auto_clean: + if [ -f Makefile ]; then $(MAKE) clean; else rm -rf build/; rm -f bitcoin-qt; fi + cd src; $(MAKE) -f makefile.unix clean + +override_dh_auto_configure: + qmake bitcoin-qt.pro + +override_dh_auto_test: + cd src; $(MAKE) -f makefile.unix test_bitcoin + src/test_bitcoin + +# Ensure wrapper is set executable +binary-post-install/bitcoind: + chmod +x $(cdbs_curdestdir)usr/bin/bitcoind +binary-post-install/bitcoin-qt: + chmod +x $(cdbs_curdestdir)usr/bin/bitcoin-qt diff --git a/contrib/debian/source/format b/contrib/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/contrib/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/contrib/debian/watch b/contrib/debian/watch new file mode 100644 index 0000000..c96d2f8 --- /dev/null +++ b/contrib/debian/watch @@ -0,0 +1,7 @@ +# Run the "uscan" command to check for upstream updates and more. +version=3 +# use qa.debian.org redirector; see man uscan +opts=uversionmangle=s/(\d)(alpha|beta|rc)/$1~$2/;s/\-src//,dversionmangle=s/~dfsg\d*// \ + http://sf.net/bitcoin/bitcoin-(\d.*)-linux\.tar\.gz debian +opts=uversionmangle=s/(\d)(alpha|beta|rc)/$1~$2/,dversionmangle=s/~dfsg\d*// \ + http://githubredir.debian.net/github/bitcoin/bitcoin v(.*).tar.gz diff --git a/contrib/gitian-descriptors/README b/contrib/gitian-descriptors/README new file mode 100644 index 0000000..a2d902e --- /dev/null +++ b/contrib/gitian-descriptors/README @@ -0,0 +1,31 @@ +Gavin's notes on getting gitian builds up and running: + +You need the right hardware: you need a 64-bit-capable CPU with hardware virtualization support (Intel VT-x or AMD-V). Not all modern CPUs support hardware virtualization. + +You probably need to enable hardware virtualization in your machine's BIOS. + +You need to be running a recent version of 64-bit-Ubuntu, and you need to install several prerequisites: + sudo apt-get install apache2 git apt-cacher-ng python-vm-builder qemu-kvm + +Sanity checks: + sudo service apt-cacher-ng status # Should return apt-cacher-ng is running + ls -l /dev/kvm # Should show a /dev/kvm device + +Once you've got the right hardware and software: + + git clone git://github.com/bitcoin/bitcoin.git + git clone git://github.com/devrandom/gitian-builder.git + mkdir gitian-builder/inputs + wget 'http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.6.tar.gz' -O gitian-builder/inputs/miniupnpc-1.6.tar.gz + + cd gitian-builder + bin/make-base-vm --arch i386 + bin/make-base-vm --arch amd64 + cd .. + + # To build + cd bitcoin + git pull + cd ../gitian-builder + git pull + ./bin/gbuild --commit bitcoin=HEAD ../bitcoin/contrib/gitian.yml diff --git a/contrib/gitian-descriptors/gitian-win32.yml b/contrib/gitian-descriptors/gitian-win32.yml index 252e62e..0f46709 100644 --- a/contrib/gitian-descriptors/gitian-win32.yml +++ b/contrib/gitian-descriptors/gitian-win32.yml @@ -16,26 +16,18 @@ remotes: - "url": "https://git.gitorious.org/+bitcoin-stable-developers/bitcoin/bitcoind-stable.git" "dir": "bitcoin" files: -- "wxwidgets-win32-2.9.2-gitian.zip" +- "qt-win32-4.7.4-gitian.zip" - "boost-win32-1.47.0-gitian.zip" -- "openssl-1.0.0d.tar.gz" +- "openssl-1.0.0e.tar.gz" - "db-4.8.30.NC.tar.gz" - "miniupnpc-1.6.tar.gz" script: | # - mkdir wxWidgets-2.9.2 - cd wxWidgets-2.9.2 - mkdir lib - unzip ../wxwidgets-win32-2.9.2-gitian.zip - cd bin/$GBUILD_BITS - for lib in wx_mswu; do - i586-mingw32msvc-ar rc ../../lib/lib${lib}-2.9-i586-mingw32msvc.a $lib/*.o - i586-mingw32msvc-ranlib ../../lib/lib${lib}-2.9-i586-mingw32msvc.a - done - cp -a wx ../../lib - cd ../.. - mv include/wx-2.9/wx include - cd .. + mkdir $HOME/qt + cd $HOME/qt + unzip ../build/qt-win32-4.7.4-gitian.zip + cd $HOME/build/ + export PATH=$PATH:$HOME/qt/bin/ # mkdir boost_1_47_0 cd boost_1_47_0 @@ -50,8 +42,8 @@ script: | mv include/boost . cd .. # - tar xzf openssl-1.0.0d.tar.gz - cd openssl-1.0.0d + tar xzf openssl-1.0.0e.tar.gz + cd openssl-1.0.0e ./Configure --cross-compile-prefix=i586-mingw32msvc- mingw make cd .. @@ -74,19 +66,23 @@ script: | mkdir -p $OUTDIR/src cp -a . $OUTDIR/src rm -rf $OUTDIR/src/.git - cp -a $OUTDIR/src/locale $OUTDIR cp $OUTDIR/src/doc/README_windows.txt $OUTDIR/readme.txt cp $OUTDIR/src/COPYING $OUTDIR/license.txt + export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 + export FAKETIME=$REFERENCE_DATETIME + export TZ=UTC + $HOME/qt/src/bin/qmake -spec unsupported/win32-g++-cross USE_SSL=1 MINIUPNPC_LIB_PATH=$HOME/build/miniupnpc MINIUPNPC_INCLUDE_PATH=$HOME/build/ BDB_LIB_PATH=$HOME/build/db-4.8.30.NC/build_unix BDB_INCLUDE_PATH=$HOME/build/db-4.8.30.NC/build_unix BOOST_LIB_PATH=$HOME/build/boost_1_47_0/stage/lib BOOST_INCLUDE_PATH=$HOME/build/boost_1_47_0 BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$HOME/build/openssl-1.0.0e OPENSSL_INCLUDE_PATH=$HOME/build/openssl-1.0.0e/include INCLUDEPATH=$HOME/build DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=bitcoin QMAKE_LFLAGS=-frandom-seed=bitcoin + make $MAKEOPTS + cp release/bitcoin-qt.exe $OUTDIR/ + # cd src sed 's/$(DEBUGFLAGS)/-frandom-seed=bitcoin/' -i makefile.linux-mingw export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 export FAKETIME=$REFERENCE_DATETIME export TZ=UTC - make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoin.exe USE_UPNP=1 - make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoind.exe USE_UPNP=0 - i586-mingw32msvc-strip bitcoin.exe + make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoind.exe USE_SSL=1 USE_UPNP=0 i586-mingw32msvc-strip bitcoind.exe makensis ../share/setup.nsi - cp bitcoin.exe ../share/bitcoin-*-win32-setup.exe $OUTDIR/ + cp ../share/bitcoin-*-win32-setup.exe $OUTDIR/ mkdir $OUTDIR/daemon cp bitcoind.exe $OUTDIR/daemon diff --git a/contrib/gitian-descriptors/gitian.yml b/contrib/gitian-descriptors/gitian.yml index c292244..11ee4dc 100644 --- a/contrib/gitian-descriptors/gitian.yml +++ b/contrib/gitian-descriptors/gitian.yml @@ -7,9 +7,12 @@ architectures: - "amd64" packages: - "libdb4.8++-dev" -- "libxxf86vm-dev" -- "libgtk2.0-dev" -- "libboost-all-dev" +- "qt4-qmake" +- "libqt4-dev" +- "libboost-system-dev" +- "libboost-filesystem-dev" +- "libboost-program-options-dev" +- "libboost-thread-dev" - "libssl-dev" - "git-core" - "unzip" @@ -18,8 +21,6 @@ remotes: - "url": "https://git.gitorious.org/+bitcoin-stable-developers/bitcoin/bitcoind-stable.git" "dir": "bitcoin" files: -- "wxWidgets-2.9.2-x64-gitian.zip" -- "wxWidgets-2.9.2-x32-gitian.zip" - "miniupnpc-1.6.tar.gz" script: | INSTDIR="$HOME/install" @@ -30,30 +31,18 @@ script: | INSTALLPREFIX=$INSTDIR make $MAKEOPTS install cd .. # - mkdir -p $INSTDIR/bin $INSTDIR/lib/wx $INSTDIR/include - mkdir wxWidgets-2.9.2 - cd wxWidgets-2.9.2 - unzip ../wxWidgets-2.9.2-x32-gitian.zip - unzip -o ../wxWidgets-2.9.2-x64-gitian.zip - cp -a bin/$GBUILD_BITS/wx/config/gtk2-unicode-static-2.9 $INSTDIR/bin/wx-config - for lib in wx_gtk2u wxregexu wxtiff; do - ar rc $INSTDIR/lib/lib${lib}-2.9.a bin/$GBUILD_BITS/$lib/*.o - ranlib $INSTDIR/lib/lib${lib}-2.9.a - done - cp -a include/wx-2.9/* $INSTDIR/include - cp -a bin/$GBUILD_BITS/wx/include $INSTDIR/lib/wx - cd .. - # cd bitcoin mkdir -p $OUTDIR/src cp -a . $OUTDIR/src rm -rf $OUTDIR/src/.git - mv $OUTDIR/src/locale $OUTDIR cp $OUTDIR/src/doc/README $OUTDIR cp $OUTDIR/src/COPYING $OUTDIR cd src sed 's/$(DEBUGFLAGS)//' -i makefile.unix - PATH=$INSTDIR/bin:$PATH make -f makefile.unix CXX="g++ -I$INSTDIR/include -L$INSTDIR/lib" $MAKEOPTS bitcoin USE_UPNP=1 - PATH=$INSTDIR/bin:$PATH make -f makefile.unix CXX="g++ -I$INSTDIR/include -L$INSTDIR/lib" $MAKEOPTS bitcoind USE_UPNP=0 + make -f makefile.unix STATIC=1 OPENSSL_INCLUDE_PATH="$INSTDIR/include" OPENSSL_LIB_PATH="$INSTDIR/lib" $MAKEOPTS bitcoind USE_UPNP=0 USE_SSL=1 mkdir -p $OUTDIR/bin/$GBUILD_BITS - install -s bitcoin bitcoind $OUTDIR/bin/$GBUILD_BITS + install -s bitcoind $OUTDIR/bin/$GBUILD_BITS + cd .. + qmake INCLUDEPATH="$INSTDIR/include" LIBS="-L$INSTDIR/lib" RELEASE=1 USE_SSL=1 + make $MAKEOPTS + install bitcoin-qt $OUTDIR/bin/$GBUILD_BITS diff --git a/contrib/gitian-descriptors/qt-win32.yml b/contrib/gitian-descriptors/qt-win32.yml new file mode 100644 index 0000000..6eb76b2 --- /dev/null +++ b/contrib/gitian-descriptors/qt-win32.yml @@ -0,0 +1,54 @@ +--- +name: "qt" +suites: +- "lucid" +architectures: +- "i386" +packages: +- "mingw32" +- "zip" +- "faketime" +reference_datetime: "2011-01-30 00:00:00" +remotes: [] +files: +- "qt-everywhere-opensource-src-4.7.4.tar.gz" +script: | + INSTDIR="$HOME/qt/" + mkdir $INSTDIR + SRCDIR="$INSTDIR/src/" + mkdir $SRCDIR + # + tar xzf qt-everywhere-opensource-src-4.7.4.tar.gz + cd qt-everywhere-opensource-src-4.7.4 + sed 's/$TODAY/2011-01-30/' -i configure + sed 's/i686-pc-mingw32-/i586-mingw32msvc-/' -i mkspecs/unsupported/win32-g++-cross/qmake.conf + sed --posix 's|QMAKE_CFLAGS\t\t= -pipe|QMAKE_CFLAGS\t\t= -pipe -isystem /usr/i586-mingw32msvc/include/ -frandom-seed=qtbuild|' -i mkspecs/unsupported/win32-g++-cross/qmake.conf + sed 's/QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -mthreads/QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions/' -i mkspecs/unsupported/win32-g++-cross/qmake.conf + sed 's/QMAKE_LFLAGS_EXCEPTIONS_ON = -mthreads/QMAKE_LFLAGS_EXCEPTIONS_ON = -lmingwthrd/' -i mkspecs/unsupported/win32-g++-cross/qmake.conf + sed --posix 's/QMAKE_MOC\t\t= i586-mingw32msvc-moc/QMAKE_MOC\t\t= moc/' -i mkspecs/unsupported/win32-g++-cross/qmake.conf + sed --posix 's/QMAKE_RCC\t\t= i586-mingw32msvc-rcc/QMAKE_RCC\t\t= rcc/' -i mkspecs/unsupported/win32-g++-cross/qmake.conf + sed --posix 's/QMAKE_UIC\t\t= i586-mingw32msvc-uic/QMAKE_UIC\t\t= uic/' -i mkspecs/unsupported/win32-g++-cross/qmake.conf + # ar adds timestamps to every object file included in the static library + # providing -D as ar argument is supposed to solve it, but doesn't work as qmake strips off the arguments and adds -M to pass a script... + # which somehow cannot be combined with other flags. + # use faketime only for ar, as it confuses make/qmake into hanging sometimes + sed --posix "s|QMAKE_LIB\t\t= i586-mingw32msvc-ar -ru|QMAKE_LIB\t\t= $HOME/ar -Dr|" -i mkspecs/unsupported/win32-g++-cross/qmake.conf + echo '#!/bin/bash' > $HOME/ar + echo 'export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1' >> $HOME/ar + echo 'i586-mingw32msvc-ar "$@"' >> $HOME/ar + chmod +x $HOME/ar + #export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 + export FAKETIME=$REFERENCE_DATETIME + export TZ=UTC + ./configure -prefix $INSTDIR -confirm-license -release -opensource -static -no-qt3support -xplatform unsupported/win32-g++-cross -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-declarative -no-script -no-scripttools -no-javascript-jit -no-webkit -no-svg -no-xmlpatterns -no-sql-sqlite -no-nis -no-cups -no-iconv -no-dbus -no-gif -no-libtiff -opengl no -nomake examples -nomake demos -nomake docs + find . -name *.prl | xargs -l sed 's|/\.||' -i + find . -name *.prl | xargs -l sed 's|/$||' -i + make $MAKEOPTS install + cp -a bin $SRCDIR/ + cd $INSTDIR + find . -name *.prl | xargs -l sed 's|/$||' -i + #sed 's|QMAKE_PRL_LIBS.*|QMAKE_PRL_LIBS = -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lQtXmlPatterns -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtNetwork -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32|' -i imports/Qt/labs/particles/qmlparticlesplugin.prl + + # as zip stores file timestamps, use faketime to intercept stat calls to set dates for all files to reference date + export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 + zip -r $OUTDIR/qt-win32-4.7.4-gitian.zip * diff --git a/contrib/gitian-descriptors/wxwidgets-win32.yml b/contrib/gitian-descriptors/wxwidgets-win32.yml deleted file mode 100644 index 3d49d7b..0000000 --- a/contrib/gitian-descriptors/wxwidgets-win32.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -name: "wxwidgets" -suites: -- "lucid" -architectures: -- "i386" -packages: -- "mingw32" -- "faketime" -- "zip" -reference_datetime: "2011-01-30 00:00:00" -remotes: [] -files: -- "wxWidgets-2.9.2.tar.bz2" -script: | - INSTDIR="$HOME/install" - TMPDIR="$HOME/tmpdir" - export LIBRARY_PATH="$INSTDIR/lib" - # - tar xjf wxWidgets-2.9.2.tar.bz2 - cd wxWidgets-2.9.2 - CXXFLAGS=-frandom-seed=wx1 ./configure --host=i586-mingw32msvc --build=i686-linux --prefix=$INSTDIR --disable-shared --enable-monolithic --without-libpng --disable-svg - perl -i -p -e "s/__TIME__/\"$REFERENCE_TIME\"/;s/__DATE__/\"$REFERENCE_DATE\"/" include/wx/chartype.h - make $MAKEOPTS install - mkdir $TMPDIR - cd $TMPDIR - cp -af $INSTDIR/include . - mkdir -p $TMPDIR/bin/$GBUILD_BITS - cd $TMPDIR/bin/$GBUILD_BITS - cp -af $INSTDIR/lib/wx . - for lib in wx_mswu; do - mkdir $lib - (cd $lib ; ar xf $INSTDIR/lib/lib${lib}-2.9-i586-mingw32msvc.a) - done - chmod -R +w $TMPDIR - cd $TMPDIR - export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 - export FAKETIME=$REFERENCE_DATETIME - zip -r wxwidgets-win32-2.9.2-gitian.zip * - cp wxwidgets-win32-2.9.2-gitian.zip $OUTDIR diff --git a/contrib/gitian-descriptors/wxwidgets.yml b/contrib/gitian-descriptors/wxwidgets.yml deleted file mode 100644 index 0509615..0000000 --- a/contrib/gitian-descriptors/wxwidgets.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -name: "wxwidgets" -suites: -- "lucid" -architectures: -- "i386" -- "amd64" -packages: -- "libxxf86vm-dev" -- "libgtk2.0-dev" -- "faketime" -- "zip" -reference_datetime: "2011-01-30 00:00:00" -remotes: [] -files: -- "wxWidgets-2.9.2.tar.bz2" -script: | - INSTDIR="$HOME/install" - TMPDIR="$HOME/tmpdir" - export LIBRARY_PATH="$INSTDIR/lib" - # - tar xjf wxWidgets-2.9.2.tar.bz2 - cd wxWidgets-2.9.2 - ./configure --prefix=$INSTDIR --enable-monolithic --disable-shared - perl -i -p -e "s/__TIME__/\"$REFERENCE_TIME\"/;s/__DATE__/\"$REFERENCE_DATE\"/" include/wx/chartype.h - make $MAKEOPTS install - mkdir $TMPDIR - cd $TMPDIR - cp -af $INSTDIR/include . - mkdir -p $TMPDIR/bin/$GBUILD_BITS - cd $TMPDIR/bin/$GBUILD_BITS - cp -af $INSTDIR/lib/wx . - for lib in wxtiff wxregexu wx_gtk2u; do - mkdir $lib - (cd $lib ; ar xf $INSTDIR/lib/lib${lib}-2.9.a) - done - chmod -R +w $TMPDIR - cd $TMPDIR - export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 - export FAKETIME=$REFERENCE_DATETIME - zip -r wxWidgets-2.9.2-x$GBUILD_BITS-gitian.zip * - cp wxWidgets-2.9.2-x$GBUILD_BITS-gitian.zip $OUTDIR diff --git a/contrib/gitian-downloader/bitcoin-download-config b/contrib/gitian-downloader/linux-download-config similarity index 100% copy from contrib/gitian-downloader/bitcoin-download-config copy to contrib/gitian-downloader/linux-download-config diff --git a/contrib/gitian-downloader/bitcoin-download-config b/contrib/gitian-downloader/win32-download-config similarity index 89% rename from contrib/gitian-downloader/bitcoin-download-config rename to contrib/gitian-downloader/win32-download-config index 88e48e2..595626f 100644 --- a/contrib/gitian-downloader/bitcoin-download-config +++ b/contrib/gitian-downloader/win32-download-config @@ -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/macdeploy/LICENSE b/contrib/macdeploy/LICENSE new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/contrib/macdeploy/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/contrib/macdeploy/background.png b/contrib/macdeploy/background.png new file mode 100644 index 0000000..fce12e3 Binary files /dev/null and b/contrib/macdeploy/background.png differ diff --git a/contrib/macdeploy/background.psd b/contrib/macdeploy/background.psd new file mode 100644 index 0000000..5889676 Binary files /dev/null and b/contrib/macdeploy/background.psd differ diff --git a/contrib/macdeploy/fancy.plist b/contrib/macdeploy/fancy.plist new file mode 100644 index 0000000..e73b9b6 --- /dev/null +++ b/contrib/macdeploy/fancy.plist @@ -0,0 +1,32 @@ + + + + + window_bounds + + 300 + 300 + 800 + 620 + + background_picture + background.png + icon_size + 96 + applications_symlink + + items_position + + Applications + + 370 + 156 + + Bitcoin-Qt.app + + 128 + 156 + + + + diff --git a/contrib/macdeploy/macdeployqtplus b/contrib/macdeploy/macdeployqtplus new file mode 100755 index 0000000..a43e710 --- /dev/null +++ b/contrib/macdeploy/macdeployqtplus @@ -0,0 +1,341 @@ +#!/usr/bin/env python + +# +# Copyright (C) 2011 Patrick "p2k" Schneider +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +import subprocess, sys, re, os, shutil, os.path +from time import sleep +from argparse import ArgumentParser + +qt_conf="""[Paths] +translations=Resources +plugins=PlugIns +""" + +ap = ArgumentParser(description="""Front-end to macdeployqt with some additional functions. + +Outputs a ready-to-deploy app in a folder "dist" and optionally wraps it in a .dmg file. +Note, that the "dist" folder will be deleted before deploying on each run. + +Optionally, Qt translation files (.qm) and additional resources can be added to the bundle.""") + +ap.add_argument("app_bundle", nargs=1, metavar="app-bundle", help="application bundle to be deployed") +ap.add_argument("-verbose", type=int, nargs=1, default=[1], metavar="<0-3>", help="0 = no output, 1 = error/warning (default), 2 = normal, 3 = debug") +ap.add_argument("-no-plugins", dest="plugins", action="store_false", default=True, help="skip plugin deployment") +ap.add_argument("-no-strip", dest="strip", action="store_false", default=True, help="don't run 'strip' on the binaries") +ap.add_argument("-dmg", nargs="?", const="", metavar="basename", help="create a .dmg disk image; if basename is not specified, a camel-cased version of the app name is used") +ap.add_argument("-fancy", nargs=1, metavar="plist", default=[], help="make a fancy looking disk image using the given plist file with instructions; requires -dmg to work") +ap.add_argument("-add-qt-tr", nargs=1, metavar="languages", default=[], help="add Qt translation files to the bundle's ressources; the language list must be separated with commas, not with whitespace") +ap.add_argument("-add-resources", nargs="+", metavar="path", default=[], help="list of additional files or folders to be copied into the bundle's resources; must be the last argument") + +config = ap.parse_args() + +verbose = config.verbose[0] + +# ------------------------------------------------ + +app_bundle = config.app_bundle[0] + +if not os.path.exists(app_bundle): + if verbose >= 1: + sys.stderr.write("Error: Could not find app bundle \"%s\"\n" % (app_bundle)) + sys.exit(1) + +app_bundle_name = os.path.splitext(os.path.basename(app_bundle))[0] + +# ------------------------------------------------ + +for p in config.add_resources: + if verbose >= 3: + print "Checking for \"%s\"..." % p + if not os.path.exists(p): + if verbose >= 1: + sys.stderr.write("Error: Could not find additional resource file \"%s\"\n" % (p)) + sys.exit(1) + +# ------------------------------------------------ + +if len(config.add_qt_tr) == 0: + add_qt_tr = [] +else: + qt_tr_dir = os.path.join(os.getenv("QTDIR", ""), "translations") + add_qt_tr = ["qt_%s.qm" % lng for lng in config.add_qt_tr[0].split(",")] + for lng_file in add_qt_tr: + p = os.path.join(qt_tr_dir, lng_file) + if verbose >= 3: + print "Checking for \"%s\"..." % p + if not os.path.exists(p): + if verbose >= 1: + sys.stderr.write("Error: Could not find Qt translation file \"%s\"\n" % (lng_file)) + sys.exit(1) + +# ------------------------------------------------ + +if len(config.fancy) == 1: + if verbose >= 3: + print "Fancy: Importing plistlib..." + try: + import plistlib + except ImportError: + if verbose >= 1: + sys.stderr.write("Error: Could not import plistlib which is required for fancy disk images.\n") + sys.exit(1) + + if verbose >= 3: + print "Fancy: Importing appscript..." + try: + import appscript + except ImportError: + if verbose >= 1: + sys.stderr.write("Error: Could not import appscript which is required for fancy disk images.\n") + sys.stderr.write("Please install it e.g. with \"sudo easy_install appscript\".\n") + sys.exit(1) + + p = config.fancy[0] + if verbose >= 3: + print "Fancy: Loading \"%s\"..." % p + if not os.path.exists(p): + if verbose >= 1: + sys.stderr.write("Error: Could not find fancy disk image plist at \"%s\"\n" % (p)) + sys.exit(1) + + try: + fancy = plistlib.readPlist(p) + except: + if verbose >= 1: + sys.stderr.write("Error: Could not parse fancy disk image plist at \"%s\"\n" % (p)) + sys.exit(1) + + try: + assert not fancy.has_key("window_bounds") or (isinstance(fancy["window_bounds"], list) and len(fancy["window_bounds"]) == 4) + assert not fancy.has_key("background_picture") or isinstance(fancy["background_picture"], str) + assert not fancy.has_key("icon_size") or isinstance(fancy["icon_size"], int) + assert not fancy.has_key("applications_symlink") or isinstance(fancy["applications_symlink"], bool) + if fancy.has_key("items_position"): + assert isinstance(fancy["items_position"], dict) + for key, value in fancy["items_position"].iteritems(): + assert isinstance(value, list) and len(value) == 2 and isinstance(value[0], int) and isinstance(value[1], int) + except: + if verbose >= 1: + sys.stderr.write("Error: Bad format of fancy disk image plist at \"%s\"\n" % (p)) + sys.exit(1) + + if fancy.has_key("background_picture"): + bp = fancy["background_picture"] + if verbose >= 3: + print "Fancy: Resolving background picture \"%s\"..." % bp + if not os.path.exists(bp): + bp = os.path.join(os.path.dirname(p), bp) + if not os.path.exists(bp): + if verbose >= 1: + sys.stderr.write("Error: Could not find background picture at \"%s\" or \"%s\"\n" % (fancy["background_picture"], bp)) + sys.exit(1) + else: + fancy["background_picture"] = bp +else: + fancy = None + +# ------------------------------------------------ + +if os.path.exists("dist"): + if verbose >= 2: + print "+ Removing old dist folder +" + + shutil.rmtree("dist") + +# ------------------------------------------------ + +target = os.path.join("dist", app_bundle) +target_res = os.path.join(target, "Contents", "Resources") + +if verbose >= 2: + print "+ Copying source bundle +" +if verbose >= 3: + print app_bundle, "->", target + +os.mkdir("dist") +shutil.copytree(app_bundle, target) + +# ------------------------------------------------ + +macdeployqt_args = ["macdeployqt", target, "-verbose=%d" % verbose] +if not config.plugins: + macdeployqt_args.append("-no-plugins") +if not config.strip: + macdeployqt_args.append("-no-strip") + +if verbose >= 2: + print "+ Running macdeployqt +" + +ret = subprocess.call(macdeployqt_args) +if ret != 0: + sys.exit(ret) + +# ------------------------------------------------ + +if verbose >= 2: + print "+ Installing qt.conf +" + +f = open(os.path.join(target_res, "qt.conf"), "wb") +f.write(qt_conf) +f.close() + +# ------------------------------------------------ + +if len(add_qt_tr) > 0 and verbose >= 2: + print "+ Adding Qt translations +" + +for lng_file in add_qt_tr: + if verbose >= 3: + print os.path.join(qt_tr_dir, lng_file), "->", os.path.join(target_res, lng_file) + shutil.copy2(os.path.join(qt_tr_dir, lng_file), os.path.join(target_res, lng_file)) + +# ------------------------------------------------ + +if len(config.add_resources) > 0 and verbose >= 2: + print "+ Adding additional resources +" + +for p in config.add_resources: + t = os.path.join(target_res, os.path.basename(p)) + if verbose >= 3: + print p, "->", t + if os.path.isdir(p): + shutil.copytree(p, t) + else: + shutil.copy2(p, t) + +# ------------------------------------------------ + +if config.dmg is not None: + def runHDIUtil(verb, image_basename, **kwargs): + hdiutil_args = ["hdiutil", verb, image_basename + ".dmg"] + if kwargs.has_key("capture_stdout"): + del kwargs["capture_stdout"] + run = subprocess.check_output + else: + if verbose < 2: + hdiutil_args.append("-quiet") + elif verbose >= 3: + hdiutil_args.append("-verbose") + run = subprocess.check_call + + for key, value in kwargs.iteritems(): + hdiutil_args.append("-" + key) + if not value is True: + hdiutil_args.append(str(value)) + + return run(hdiutil_args) + + if verbose >= 2: + if fancy is None: + print "+ Creating .dmg disk image +" + else: + print "+ Preparing .dmg disk image +" + + if config.dmg != "": + dmg_name = config.dmg + else: + spl = app_bundle_name.split(" ") + dmg_name = spl[0] + "".join(p.capitalize() for p in spl[1:]) + + if fancy is None: + try: + runHDIUtil("create", dmg_name, srcfolder="dist", format="UDBZ", volname=app_bundle_name, ov=True) + except subprocess.CalledProcessError as e: + sys.exit(e.returncode) + else: + if verbose >= 3: + print "Determining size of \"dist\"..." + size = 0 + for path, dirs, files in os.walk("dist"): + for file in files: + size += os.path.getsize(os.path.join(path, file)) + size += int(size * 0.1) + + if verbose >= 3: + print "Creating temp image for modification..." + try: + runHDIUtil("create", dmg_name + ".temp", srcfolder="dist", format="UDRW", size=size, volname=app_bundle_name, ov=True) + except subprocess.CalledProcessError as e: + sys.exit(e.returncode) + + if verbose >= 3: + print "Attaching temp image..." + try: + output = runHDIUtil("attach", dmg_name + ".temp", readwrite=True, noverify=True, noautoopen=True, capture_stdout=True) + except subprocess.CalledProcessError as e: + sys.exit(e.returncode) + + m = re.search("/Volumes/(.+$)", output) + disk_root = m.group(0) + disk_name = m.group(1) + + if verbose >= 2: + print "+ Applying fancy settings +" + + if fancy.has_key("background_picture"): + bg_path = os.path.join(disk_root, os.path.basename(fancy["background_picture"])) + if verbose >= 3: + print fancy["background_picture"], "->", bg_path + shutil.copy2(fancy["background_picture"], bg_path) + else: + bg_path = None + + if fancy.get("applications_symlink", False): + os.symlink("/Applications", os.path.join(disk_root, "Applications")) + + finder = appscript.app("Finder") + disk = finder.disks[disk_name] + disk.open() + window = disk.container_window + window.current_view.set(appscript.k.icon_view) + window.toolbar_visible.set(False) + window.statusbar_visible.set(False) + if fancy.has_key("window_bounds"): + window.bounds.set(fancy["window_bounds"]) + view_options = window.icon_view_options + view_options.arrangement.set(appscript.k.not_arranged) + if fancy.has_key("icon_size"): + view_options.icon_size.set(fancy["icon_size"]) + if bg_path is not None: + view_options.background_picture.set(disk.files[os.path.basename(bg_path)]) + if fancy.has_key("items_position"): + for name, position in fancy["items_position"].iteritems(): + window.items[name].position.set(position) + disk.close() + if bg_path is not None: + subprocess.call(["SetFile", "-a", "V", bg_path]) + disk.update(registering_applications=False) + sleep(2) + disk.eject() + + if verbose >= 2: + print "+ Finalizing .dmg disk image +" + + try: + runHDIUtil("convert", dmg_name + ".temp", format="UDBZ", o=dmg_name + ".dmg", ov=True) + except subprocess.CalledProcessError as e: + sys.exit(e.returncode) + + os.unlink(dmg_name + ".temp.dmg") + +# ------------------------------------------------ + +if verbose >= 2: + print "+ Done +" + +sys.exit(0) diff --git a/contrib/macdeploy/notes.txt b/contrib/macdeploy/notes.txt new file mode 100644 index 0000000..0654ff7 --- /dev/null +++ b/contrib/macdeploy/notes.txt @@ -0,0 +1,26 @@ + +macdeployqtplus works best on OS X Lion, for Snow Leopard you'd need to install +Python 2.7 and make it your default Python installation. + +You will need the appscript package for the fancy disk image creation to work. +Install it by invoking "sudo easy_install appscript". + +Ths script should be invoked in the target directory like this: +$source_dir/contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr de,es,ru -dmg -fancy $source_dir/contrib/macdeploy/fancy.plist + +During the process, the disk image window will pop up briefly where the fancy +settings are applied. This is normal, please do not interfere. + +You can also set up Qt Creator for invoking the script. For this, go to the +"Projects" tab on the left side, switch to "Run Settings" above and add a +deploy configuration. Next add a deploy step choosing "Custom Process Step". +Fill in the following. + +Enable custom process step: [x] +Command: %{sourceDir}/contrib/macdeploy/macdeployqtplus +Working directory: %{buildDir} +Command arguments: Bitcoin-Qt.app -add-qt-tr de,ru -dmg -fancy %{sourceDir}/contrib/macdeploy/fancy.plist + +After that you can start the deployment process through the menu with +Build -> Deploy Project "bitcoin-qt" + diff --git a/contrib/miniupnpc/Portfile b/contrib/miniupnpc/Portfile new file mode 100644 index 0000000..133aee5 --- /dev/null +++ b/contrib/miniupnpc/Portfile @@ -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/qt_translations.py b/contrib/qt_translations.py new file mode 100755 index 0000000..fd8a8b7 --- /dev/null +++ b/contrib/qt_translations.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +# Helpful little script that spits out a comma-separated list of +# language codes for Qt icons that should be included +# in binary bitcoin distributions + +import glob +import os +import re +import sys + +if len(sys.argv) != 3: + sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.argv[0]) + +d1 = sys.argv[1] +d2 = sys.argv[2] + +l1 = set([ re.search(r'qt_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d1, 'qt_*.qm')) ]) +l2 = set([ re.search(r'bitcoin_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d2, 'bitcoin_*.qm')) ]) + +print ",".join(sorted(l1.intersection(l2))) + diff --git a/contrib/wallettools/walletchangepass.py b/contrib/wallettools/walletchangepass.py new file mode 100644 index 0000000..30f3f5b --- /dev/null +++ b/contrib/wallettools/walletchangepass.py @@ -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 index 0000000..f847c6f --- /dev/null +++ b/contrib/wallettools/walletunlock.py @@ -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 diff --git a/doc/Doxyfile b/doc/Doxyfile new file mode 100644 index 0000000..08d4f8c --- /dev/null +++ b/doc/Doxyfile @@ -0,0 +1,1752 @@ +# Doxyfile 1.7.4 + +# !!! Invoke doxygen from project root using: +# doxygen doc/Doxyfile + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = Bitcoin + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = 0.5.0 + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer +# a quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = "P2P Digital Currency" + +# With the PROJECT_LOGO tag one can specify an logo or icon that is +# included in the documentation. The maximum height of the logo should not +# exceed 55 pixels and the maximum width should not exceed 200 pixels. +# Doxygen will copy the logo to the output directory. + +PROJECT_LOGO = doc/bitcoin_logo_doxygen.png + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = doc/doxygen + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful if your file system +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this +# tag. The format is ext=language, where ext is a file extension, and language +# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, +# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions +# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also makes the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and +# unions are shown inside the group in which they are included (e.g. using +# @ingroup) instead of on a separate page (for HTML and Man pages) or +# section (for LaTeX and RTF). + +INLINE_GROUPED_CLASSES = NO + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penalty. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will roughly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = YES + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespaces are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = NO + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen +# will list include files with double quotes in the documentation +# rather than with sharp brackets. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen +# will sort the (brief and detailed) documentation of class members so that +# constructors and destructors are listed first. If set to NO (the default) +# the constructors will appear in the respective orders defined by +# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. +# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO +# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to +# do proper type resolution of all parameters of a function it will reject a +# match between the prototype and the implementation of a member function even +# if there is only one candidate or it is obvious which candidate to choose +# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen +# will still accept a match between prototype and implementation in such cases. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or macro consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and macros in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. The create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. +# You can optionally specify a file name after the option, if omitted +# DoxygenLayout.xml will be used as the name of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# The WARN_NO_PARAMDOC option can be enabled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = src + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh +# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py +# *.f90 *.f *.for *.vhd *.vhdl + +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.d \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.idl \ + *.odl \ + *.cs \ + *.php \ + *.php3 \ + *.inc \ + *.m \ + *.mm \ + *.dox \ + *.py \ + *.f90 \ + *.f \ + *.for \ + *.vhd \ + *.vhdl + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = * + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty or if +# non of the patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) +# and it is also possible to disable source filtering for a specific pattern +# using *.ext= (so without naming a filter). This option only has effect when +# FILTER_SOURCE_FILES is enabled. + +FILTER_SOURCE_PATTERNS = + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. Note that when using a custom header you are responsible +# for the proper inclusion of any scripts and style sheets that doxygen +# needs, which is dependent on the configuration options used. +# It is adviced to generate a default header using "doxygen -w html +# header.html footer.html stylesheet.css YourConfigFile" and then modify +# that header. Note that the header is subject to change so you typically +# have to redo this when upgrading to a newer version of doxygen or when +# changing the value of configuration settings such as GENERATE_TREEVIEW! + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that +# the files will be copied as-is; there are no commands or markers available. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. +# Doxygen will adjust the colors in the stylesheet and background images +# according to this color. Hue is specified as an angle on a colorwheel, +# see http://en.wikipedia.org/wiki/Hue for more information. +# For instance the value 0 represents red, 60 is yellow, 120 is green, +# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. +# The allowed range is 0 to 359. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of +# the colors in the HTML output. For a value of 0 the output will use +# grayscales only. A value of 255 will produce the most vivid colors. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to +# the luminance component of the colors in the HTML output. Values below +# 100 gradually make the output lighter, whereas values above 100 make +# the output darker. The value divided by 100 is the actual gamma applied, +# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, +# and 100 does not change the gamma. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting +# this to NO can help when comparing the output of multiple runs. + +HTML_TIMESTAMP = YES + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated +# that can be used as input for Qt's qhelpgenerator to generate a +# Qt Compressed Help (.qch) of the generated HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to +# add. For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see +# +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's +# filter section matches. +# +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files +# will be generated, which together with the HTML files, form an Eclipse help +# plugin. To install this plugin and make it available under the help contents +# menu in Eclipse, the contents of the directory containing the HTML and XML +# files needs to be copied into the plugins directory of eclipse. The name of +# the directory within the plugins directory should be the same as +# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before +# the help appears. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have +# this name. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values +# (range [0,1..20]) that doxygen will group on one line in the generated HTML +# documentation. Note that a value of 0 will completely suppress the enum +# values from appearing in the overview section. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open +# links to external symbols imported via tag files in a separate window. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are +# not supported properly for IE 6.0, but are supported on all modern browsers. +# Note that when changing this option you need to delete any form_*.png files +# in the HTML output before the changes have effect. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax +# (see http://www.mathjax.org) which uses client side Javascript for the +# rendering instead of using prerendered bitmaps. Use this if you do not +# have LaTeX installed or if you want to formulas look prettier in the HTML +# output. When enabled you also need to install MathJax separately and +# configure the path to it using the MATHJAX_RELPATH option. + +USE_MATHJAX = NO + +# When MathJax is enabled you need to specify the location relative to the +# HTML output directory using the MATHJAX_RELPATH option. The destination +# directory should contain the MathJax.js script. For instance, if the mathjax +# directory is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the +# mathjax.org site, so you can quickly see the result without installing +# MathJax, but it is strongly recommended to install a local copy of MathJax +# before deployment. + +MATHJAX_RELPATH = http://www.mathjax.org/mathjax + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box +# for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using +# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets +# (GENERATE_DOCSET) there is already a search function so this one should +# typically be disabled. For large projects the javascript based search engine +# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. + +SEARCHENGINE = YES + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a PHP enabled web server instead of at the web client +# using Javascript. Doxygen will generate the search PHP script and index +# file to put on the web server. The advantage of the server +# based approach is that it scales better to large projects and allows +# full text search. The disadvantages are that it is more difficult to setup +# and does not have live searching capabilities. + +SERVER_BASED_SEARCH = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. +# Note that when enabling USE_PDFLATEX this option is only used for +# generating bitmaps for formulas in the HTML output, but not in the +# Makefile that is written to the output directory. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4 + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for +# the generated latex document. The footer should contain everything after +# the last chapter. If it is left blank doxygen will generate a +# standard footer. Notice: only use this tag if you know what you are doing! + +LATEX_FOOTER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = YES + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = YES + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include +# source code with syntax highlighting in the LaTeX output. +# Note that which sources are shown also depends on other settings +# such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. This is useful +# if you want to understand what is going on. On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# pointed to by INCLUDE_PATH will be searched when a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition that +# overrules the definition found in the source code. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all references to function-like macros +# that are alone on a line, have an all uppercase name, and do not end with a +# semicolon, because these will confuse the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option also works with HAVE_DOT disabled, but it is recommended to +# install and use dot, since it yields more powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is +# allowed to run in parallel. When set to 0 (the default) doxygen will +# base this on the number of processors available in the system. You can set it +# explicitly to a value larger than 0 to get control over the balance +# between CPU load and processing speed. + +DOT_NUM_THREADS = 0 + +# By default doxygen will write a font called Helvetica to the output +# directory and reference it in all dot files that doxygen generates. +# When you want a differently looking font you can specify the font name +# using DOT_FONTNAME. You need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = Helvetica + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will generate a graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are svg, png, jpg, or gif. +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MSCFILE_DIRS tag can be used to specify one or more directories that +# contain msc files that are included in the documentation (see the +# \mscfile command). + +MSCFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doc/README b/doc/README index e572b2d..3d8c63a 100644 --- a/doc/README +++ b/doc/README @@ -1,4 +1,4 @@ -Bitcoin 0.4.5 BETA +Bitcoin 0.5.4 BETA Copyright (c) 2009-2012 Bitcoin Developers Distributed under the MIT/X11 software license, see the accompanying @@ -18,100 +18,16 @@ with each other, with the help of a P2P network to check for double-spending. Setup ----- +You need the Qt4 run-time libraries to run bitcoin-qt. On Debian or Ubuntu: + sudo apt-get install libqtgui4 + Unpack the files into a directory and run: - bin/32/bitcoin (GUI, 32-bit) + bin/32/bitcoin-qt (GUI, 32-bit) bin/32/bitcoind (headless, 32-bit) - bin/64/bitcoin (GUI, 64-bit) + bin/64/bitcoin-qt (GUI, 64-bit) bin/64/bitcoind (headless, 64-bit) -Wallet Encryption ------------------ -Bitcoin supports native wallet encryption so that people who steal your -wallet file don't automatically get access to all of your Bitcoins. -In order to enable this feature, chose "Encrypt Wallet" from the -Options menu. You will be prompted to enter a passphrase, which -will be used as the key to encrypt your wallet and will be needed -every time you wish to send Bitcoins. If you lose this passphrase, -you will lose access to spend all of the bitcoins in your wallet, -no one, not even the Bitcoin developers can recover your Bitcoins. -This means you are responsible for your own security, store your -passphrase in a secure location and do not forget it. - -Remember that the encryption built into bitcoin only encrypts the -actual keys which are required to send your bitcoins, not the full -wallet. This means that someone who steals your wallet file will -be able to see all the addresses which belong to you, as well as the -relevant transactions, you are only protected from someone spending -your coins. - -It is recommended that you backup your wallet file before you -encrypt your wallet. To do this, close the Bitcoin client and -copy the wallet.dat file from ~/.bitcoin/ on Linux, /Users/(user -name)/Application Support/Bitcoin/ on Mac OSX, and %APPDATA%/Bitcoin/ -on Windows (that is /Users/(user name)/AppData/Roaming/Bitcoin on -Windows Vista and 7 and /Documents and Settings/(user name)/Application -Data/Bitcoin on Windows XP). Once you have copied that file to a -safe location, reopen the Bitcoin client and Encrypt your wallet. -If everything goes fine, delete the backup and enjoy your encrypted -wallet. Note that once you encrypt your wallet, you will never be -able to go back to a version of the Bitcoin client older than 0.4. - -Keep in mind that you are always responsible for your own security. -All it takes is a slightly more advanced wallet-stealing trojan which -installs a keylogger to steal your wallet passphrase as you enter it -in addition to your wallet file and you have lost all your Bitcoins. -Wallet encryption cannot keep you safe if you do not practice -good security, such as running up-to-date antivirus software, only -entering your wallet passphrase in the Bitcoin client and using the -same passphrase only as your wallet passphrase. - - -Technical details of wallet encryption --------------------------------------- -Wallet encryption uses AES-256-CBC to encrypt only the private keys -that are held in a wallet. The keys are encrypted with a master key -which is entirely random. This master key is then encrypted with -AES-256-CBC with a key derived from the passphrase using SHA512 and -OpenSSL's EVP_BytesToKey and a dynamic number of rounds determined by -the speed of the machine which does the initial encryption (and is -updated based on the speed of a computer which does a subsequent -passphrase change). Although the underlying code supports multiple -encrypted copies of the same master key (and thus multiple passphrases) -the client does not yet have a method to add additional passphrases. - -At runtime, the client loads the wallet as it normally would, however -the keystore stores the keys in encrypted form. When the passphrase -is required (to top up keypool or send coins) it will either be queried -by a GUI prompt, or must first be entered with the walletpassphrase -RPC command. This will change the wallet to "unlocked" state where the -unencrypted master key is stored in memory (in the case of GUI, only for -long enough to complete the requested operation, in RPC, for as long as -is specified by the second parameter to walletpassphrase). The wallet is -then locked (or can be manually locked using the walletlock RPC command) -and the unencrypted master key is removed from memory. - -Implementation details of wallet encryption -------------------------------------------- -When the wallet is locked, calls to sendtoaddress, sendfrom, sendmany, -and keypoolrefill will return Error -13: "Error: Please enter the wallet -passphrase with walletpassphrase first." - -When the wallet is unlocked, calls to walletpassphrase will fail. - -When a wallet is encrypted, the passphrase is required to top up the -keypool, thus, if the passphrase is rarely entered, it is possible that -keypool might run out. In this case, the default key will be used as the -target for payouts for mining, and calls to getnewaddress and getaccount -address will return an error. In order to prevent such cases, the keypool -is automatically refilled when walletpassphrase is called with a correct -passphrase and when topupkeypool is called (while the wallet is unlocked). -Note that the keypool continues to be topped up on various occasions when -a new key from pool is used and the wallet is unlocked (or unencrypted). - - - See the documentation at the bitcoin wiki: https://en.bitcoin.it/wiki/Main_Page - -... for help and more information. +for help and more information. diff --git a/doc/README_windows.txt b/doc/README_windows.txt index 6a551a0..b4ad595 100644 --- a/doc/README_windows.txt +++ b/doc/README_windows.txt @@ -1,4 +1,4 @@ -Bitcoin 0.4.5 BETA +Bitcoin 0.5.4 BETA Copyright (c) 2009-2012 Bitcoin Developers Distributed under the MIT/X11 software license, see the accompanying @@ -18,7 +18,7 @@ with each other, with the help of a P2P network to check for double-spending. Setup ----- -Unpack the files into a directory and run bitcoin.exe. +Unpack the files into a directory and run bitcoin-qt.exe. If you have Microsoft Security Essentials, you need to add bitcoin.exe to its "Excluded processes" list. Microsoft Security Essentials->Settings tab, @@ -27,8 +27,9 @@ select Excluded processes, press Add, select bitcoin.exe, OK, Save changes. The software automatically finds other nodes to connect to. You can enable Universal Plug and Play using a menu entry or set your firewall to forward port 8333 (TCP) to your computer so you can receive -incoming connections. Bitcoin work without incoming connections, +incoming connections. Bitcoin works without incoming connections, but allowing incoming connections helps the Bitcoin network. -See the bitcoin wiki at: https://en.bitcoin.it/wiki/Main_Page +See the bitcoin wiki at: + https://en.bitcoin.it/wiki/Main_Page for more help and information. diff --git a/doc/assets-attribution.txt b/doc/assets-attribution.txt new file mode 100644 index 0000000..2ed25bb --- /dev/null +++ b/doc/assets-attribution.txt @@ -0,0 +1,56 @@ +Code: src/strlcpy.h +Author: Todd C. Miller +License: ISC + +Icon: src/qt/res/icons/clock*.png, src/qt/res/icons/tx*.png, + src/qt/res/src/*.svg +Designer: Wladimir van der Laan +License: MIT + +Icon: src/qt/res/icons/address-book.png, src/qt/res/icons/export.png, + src/qt/res/icons/history.png, src/qt/res/icons/key.png, + src/qt/res/icons/lock_*.png, src/qt/res/icons/overview.png, + src/qt/res/icons/receive.png, src/qt/res/icons/send.png, + src/qt/res/icons/synced.png +Icon Pack: NUVOLA ICON THEME for KDE 3.x +Designer: David Vignoni (david@icon-king.com) + ICON KING - www.icon-king.com +License: LGPL +Site: http://www.icon-king.com/projects/nuvola/ + +Icon: src/qt/res/icons/connect*.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/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: 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 + diff --git a/doc/bitcoin_logo_doxygen.png b/doc/bitcoin_logo_doxygen.png new file mode 100644 index 0000000..5b41b02 Binary files /dev/null and b/doc/bitcoin_logo_doxygen.png differ diff --git a/doc/build-msw.txt b/doc/build-msw.txt index d08e3a2..346be75 100644 --- a/doc/build-msw.txt +++ b/doc/build-msw.txt @@ -7,19 +7,16 @@ 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 =================== Compilers Supported ------------------- -MinGW GCC http://tdm-gcc.tdragon.net/ - TDM-GCC with gcc 4.5.1 was used to build this release. -MSYS 1.0.11 was also used (sh needed to compile some dependencies) - - -Candidate releases were built with MSVC 10.0 (2010), but -compiling with Visual C++ caused rendering artifacts when -bitcoin was run. +TODO: What works? +Note: releases are cross-compiled using mingw running on Linux. Dependencies @@ -27,46 +24,31 @@ 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 +OpenSSL 1.0.0e 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: un-tar sources with MSYS 'tar xfz' to avoid issue with symlinks (OpenSSL ticket 2377) change 'MAKE' env. variable from 'C:\MinGW32\bin\mingw32-make.exe' to '/c/MinGW32/bin/mingw32-make.exe' -cd /c/openssl-1.0.0d-mgw +cd /c/openssl-1.0.0e-mgw ./config make @@ -98,6 +80,5 @@ Bitcoin ------- DOS prompt: cd \bitcoin\src -mingw32-make bitcoin.exe bitcoind.exe -f makefile.mingw -strip bitcoin.exe +mingw32-make -f makefile.mingw strip bitcoind.exe diff --git a/doc/build-osx.txt b/doc/build-osx.txt index 52d876d..8002441 100644 --- a/doc/build-osx.txt +++ b/doc/build-osx.txt @@ -1,5 +1,4 @@ -Copyright (c) 2010 Laszlo Hanyecz -Portions Copyright (c) 2011 Douglas Huff +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 the @@ -8,11 +7,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 Douglas Huff +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 @@ -23,256 +25,32 @@ everything is available in /usr not just /Developer I think it comes on the DVD but you can get the current version from http://developer.apple.com -1. Pick a directory to work inside.. something like ~/bitcoin works. The -structure I use looks like this: - -(~ is your home directory) - -~/bitcoin -~/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.. - -WARNING: do not use the ~ notation with the configure scripts.. use the full -name of the directory, for example /Users/james/bitcoin/deps for a user named -'james'. In my examples I am using 'macosuser' so make sure you change that. - -2. Check out the bitcoin code from github: - -cd ~/bitcoin -git clone https://github.com/bitcoin/bitcoin.git -ln -s bitcoin/src src - -This will make ~/bitcoin/bitcoin for you with all the files from git. This puts -the actual sources in ~/bitcoin/bitcoin/src and create a symlink src in -~/bitcoin to this location. - -3. Get and build the dependencies - - -Boost ------ - -Download from http://www.boost.org/users/download/ -I'm assuming it ended up in ~/Downloads.. - -mkdir ~/bitcoin/deps -cd ~/bitcoin/deps -tar xvjf ~/Downloads/boost_1_42_0.tar.bz2 -cd boost_1_42_0 -./bootstrap.sh -./bjam architecture=combined address-model=32_64 macosx-version=10.5 macosx-version-min=10.5 link=static runtime-link=static --toolset=darwin --prefix=/Users/macosuser/bitcoin/deps install - -If you're using Snow Leopard, you will need to specify 10.6 as your Mac OS X -version instead of 10.5. - -This part takes a while.. use your judgement and fix it if something doesn't -build for some reason. - -Change the prefix to whatever your directory is (my username in this example -is macosuser). I'm also running on 10.6 so i have macosx-version=10.6 change -to 10.5 if you're using leopard. - -This is what my output looked like at the end: -...failed updating 2 targets... -...skipped 144 targets... -...updated 8074 targets... - - -OpenSSL -------- - -(System or MacPorts openssl will work fine. Optional.) - -Download from http://www.openssl.org/source/ - -We would like to build this as a 32 bit/64 bit library so we actually build it -2 times and join it together here.. If you downloaded with safari it already -uncompressed it so it will just be a tar not a tar.gz - -cd ~/bitcoin/deps -tar xvf ~/Downloads/openssl-1.0.0.tar -mv openssl-1.0.0 openssl-1.0.0-i386 -tar xvf ~/Downloads/openssl-1.0.0.tar -mv openssl-1.0.0 openssl-1.0.0-x86_64 -# build i386 (32 bit intel) binary -cd openssl-1.0.0-i386 -./Configure --prefix=/Users/macosuser/bitcoin/deps --openssldir=/Users/macosuser/bitcoin/deps/openssl darwin-i386-cc && make -make install # only do this on one of the architectures, to install the headers -cd .. -# build x86_64 (64 bit intel) binary -cd openssl-1.0.0-x86_64 -./Configure --prefix=/Users/macosuser/bitcoin/deps --openssldir=/Users/macosuser/bitcoin/deps/openssl darwin64-x86_64-cc && make -cd .. - -# combine the libs -cd ~/bitcoin/deps -lipo -arch i386 openssl-1.0.0-i386/libcrypto.a -arch x86_64 openssl-1.0.0-x86_64/libcrypto.a -o lib/libcrypto.a -create -lipo -arch i386 openssl-1.0.0-i386/libssl.a -arch x86_64 openssl-1.0.0-x86_64/libssl.a -o lib/libssl.a -create - -Verify your binaries - -file lib/libcrypto.a - -output should look like this: - -lib/libcrypto.a: Mach-O universal binary with 2 architectures -lib/libcrypto.a (for architecture i386): current ar archive random library -lib/libcrypto.a (for architecture x86_64): current ar archive random library - - -miniupnpc ---------- - -(MacPorts miniupnpc package works fine. You will need to modify makefile.) - -The process for miniupnpc (optional) is similar to that of OpenSSL. - -Download from http://miniupnp.tuxfamily.org/files/. - -cd ~/bitcoin/deps -tar xvf ~/Downloads/miniupnpc-1.6.tar -mv miniupnpc-1.6 miniupnpc-1.6-x86_64 -tar xvf ~/Downloads/miniupnpc-1.6.tar -mv miniupnpc-1.6 miniupnpc-1.6-i386 -# build x86_64 (64 bit intel) binary -cd miniupnpc-1.6-x86_64 -export CFLAGS="-arch x86_64" -export LDFLAGS="-arch x86_64" -export PREFIX="/Users/macuser/bitcoin/deps" -make && make install -# build i386 (32 bit intel) binary -cd miniupnpc-1.6-i386 -export CFLAGS="-arch i386" -export LDFLAGS="-arch i386" -export PREFIX="/Users/macuser/bitcoin/deps" -make - -# combine the libs -cd ~/bitcoin/deps -lipo -arch i386 miniupnpc-1.6-i386/libminiupnpc.a -arch x86_64 miniupnpc-1.6-x86_64/libminiupnpc.a -o lib/libminiupnpc.a -create - -Verify your binaries - -file lib/libminiupnpc.a - -output should look like this: - -lib/libminiupnpc.a: Mach-O universal binary with 2 architectures -lib/libminiupnpc.a (for architecture i386): current ar archive random library -lib/libminiupnpc.a (for architecture x86_64): current ar archive random library - - -Berkeley DB ------------ - -(System or MacPorts version work fine.) - -Download from http://freshmeat.net/projects/berkeleydb/ - -cd ~/bitcoin/deps -tar xvf ~/Downloads/db-4.8.30.tar -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 - -cd ~/bitcoin/src -make -f makefile.osx bitcoin - -Before you can run it, you need to create an application bundle for Mac OS. +1. Clone the github tree to get the source code: -A bundle is provided in contrib/Bitcoin.app. +git clone git@github.com:bitcoin/bitcoin.git bitcoin -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/ +2. Download and install MacPorts from http://www.macports.org/ -To run it you can just click the Bitcoin.app in Finder, or just do: -open ~/bitcoin/Bitcoin.app +2a. (for 10.7 Lion) + Edit /opt/local/etc/macports/macports.conf and uncomment "build_arch i386" -If you want to run it with arguments you can just run it without backgrounding -by specifying the full name in terminal: +3. Install dependencies from MacPorts -~/bitcoin/Bitcoin.app/Contents/MacOS/bitcoin -addnode=192.75.207.66 +sudo port install boost db48 openssl -You can also run it with arguments in the background with output going to the -normal places for apps (Console) like this: +Install the right version of miniupnpc: +pushd bitcoin/contrib/minipupnpc; sudo port install; popd +(this will be unnecessary soon, you will just port install miniupnpc +along with the rest of the dependencies). -open ~/bitcoin/Bitcoin.app --args -connect=192.75.207.66 +4. Now you should be able to build bitcoind: -It is advisable to relocate Bitcoin.app to /Applications or $HOME/Applications. +cd bitcoin/src +make -f makefile.osx +Run: + ./bitcoind --help # for a list of command-line options. +Run + ./bitcoind -daemon # to start the bitcoin daemon. +Run + ./bitcoind help # When the daemon is running, to get a list of RPC commands diff --git a/doc/build-unix.txt b/doc/build-unix.txt index e608c25..f4178ca 100644 --- a/doc/build-unix.txt +++ b/doc/build-unix.txt @@ -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,76 +15,75 @@ 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 ------------ + + Library Purpose Description + ------- ------- ----------- + libssl SSL Support Secure communications + libdb4.8 Berkeley DB Blockchain & wallet storage + libboost Boost C++ Library + miniupnpc UPnP Support Optional firewall-jumping support + +miniupnpc may be used 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: + USE_UPNP= No UPnP support - miniupnp not required + 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: + 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: + GCC 4.3.3 + OpenSSL 0.9.8g + Berkeley DB 4.8.30.NC + Boost 1.37 + miniupnpc 1.6 + + +Dependency Build Instructions: Ubuntu & Debian +---------------------------------------------- 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 -Boost 1.40+: sudo apt-get install libboost-all-dev -or Boost 1.37: sudo apt-get install libboost1.37-dev + Boost 1.40+: sudo apt-get install libboost-all-dev + 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. +Dependency Build Instructions: Gentoo +------------------------------------- -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: -USE_UPNP= no UPnP support, miniupnp not required; -USE_UPNP=0 (the default) UPnP support turned off by default at runtime; -USE_UPNP=1 UPnP support turned on by default at runtime. +Note: If you just want to install bitcoind on Gentoo, you can add the Bitcoin + overlay and use your package manager: + layman -a bitcoin && emerge bitcoind -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 +emerge -av1 --noreplace boost glib openssl sys-libs/db:4.8 -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 +Take the following steps to build (no UPnP support): + cd ${BITCOIN_DIR}/src + make -f makefile.unix USE_UPNP= BDB_INCLUDE_PATH='/usr/include/db4.8' + strip bitcoind 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 +The release is built with GCC and then "strip bitcoind" 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 diff --git a/doc/readme-qt.rst b/doc/readme-qt.rst new file mode 100644 index 0000000..0901773 --- /dev/null +++ b/doc/readme-qt.rst @@ -0,0 +1,178 @@ +Bitcoin-qt: Qt4 GUI 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=- | no UPnP support, miniupnpc not required; | ++------------+--------------------------------------------------------------------------+ +| USE_UPNP=0 | (the default) built with UPnP, support turned off by default at runtime; | ++------------+--------------------------------------------------------------------------+ +| USE_UPNP=1 | build with 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 /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.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 + +Ubuntu 11.10 warning +==================== + +Ubuntu 11.10 has a package called 'qt-at-spi' installed by default. At the time of writing, having that package +installed causes bitcoin-qt to crash intermittently. The issue has been reported as `launchpad bug 857790`_, but +isn't yet fixed. + +Until the bug is fixed, you can remove the qt-at-spi package to work around the problem, though this will presumably +disable screen reader functionality for Qt apps: + +:: + + sudo apt-get remove qt-at-spi + +.. _`launchpad bug 857790`: https://bugs.launchpad.net/ubuntu/+source/qt-at-spi/+bug/857790 diff --git a/doc/release-process.txt b/doc/release-process.txt index 8bf944a..9be6b78 100644 --- a/doc/release-process.txt +++ b/doc/release-process.txt @@ -1,42 +1,85 @@ * update translations (ping tcatm on IRC for now) * update (commit) version in sources + bitcoin-qt.pro src/serialize.h share/setup.nsi doc/README* -* update (commit) version in OSX app bundle - contrib/Bitcoin.app/Contents/Info.plist - - * CFBundleShortVersionString should have value like 0.3.23 - * CFBundleVersion should have value like 323 - * tag version in git - $ git tag -a v0.3.23 + git tag -a v0.5.1 * write release notes. git shortlog helps a lot: - $ git shortlog --no-merges v0.3.22.. - -* create source-only archive - - $ git archive --format=tar --prefix=bitcoin-0.3.23/ HEAD | \ - gzip -9c > ~/tmp/bitcoin-0.3.23-src.tar.gz + git shortlog --no-merges v0.5.0.. * 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 - - Build output expected: - 1. linux 32-bit and 64-bit binaries + source - 2. windows 32-bit binary + source - 3. windows installer + * From a directory containing the bitcoin source, gitian-builder and gitian.sigs + export SIGNER=(your gitian key, ie bluematt, sipa, etc) + export VERSION=0.5.1 + cd ./gitian-builder + + * Fetch and build inputs: + mkdir -p inputs; cd inputs/ + wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.tar.gz' -O miniupnpc-1.6.tar.gz + wget 'http://www.openssl.org/source/openssl-1.0.0e.tar.gz' + wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz' + wget 'http://downloads.sourceforge.net/project/boost/boost/1.47.0/boost_1_47_0.tar.bz2' + wget 'http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz' + cd .. + ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-win32.yml + cp build/out/boost-win32-1.47.0-gitian.zip inputs/ + ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/qt-win32.yml + cp build/out/qt-win32-4.7.4-gitian.zip inputs/ + + * Build bitcoind and bitcoin-qt on Linux32, Linux64, and Win32: + ./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian.yml + ./bin/gsign --signer $SIGNER --release ${VERSION} --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian.yml + pushd build/out + zip -r bitcoin-${VERSION}-linux-gitian.zip * + mv bitcoin-${VERSION}-linux-gitian.zip ../../ + popd + ./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml + ./bin/gsign --signer $SIGNER --release ${VERSION}-win32 --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml + pushd build/out + zip -r bitcoin-${VERSION}-win32-gitian.zip * + mv bitcoin-${VERSION}-win32-gitian.zip ../../ + popd -* upload builds to SF + Build output expected: + 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 + + * Linux .tar.gz: + unzip bitcoin-${VERSION}-linux-gitian.zip -d bitcoin-${VERSION}-linux + tar czvf bitcoin-${VERSION}-linux.tar.gz bitcoin-${VERSION}-linux + rm -rf bitcoin-${VERSION}-linux + + * Windows .zip and setup.exe: + unzip bitcoin-${VERSION}-win32-gitian.zip -d bitcoin-${VERSION}-win32 + mv bitcoin-${VERSION}-win32/bitcoin-*-setup.exe . + zip -r bitcoin-${VERSION}-win32.zip bitcoin-${VERSION}-win32 + rm -rf bitcoin-${VERSION}-win32 + +* perform Mac build + See this blog post for how Gavin set up his build environment and + patched macdeployqt to build the OSX release: + http://gavintech.blogspot.com/2011/11/deploying-bitcoin-qt-on-osx.html + qmake USE_SSL=1 USE_UPNP=1 bitcoin-qt.pro + make + export QTDIR=/opt/local/share/qt4 # needed to find translations/qt_*.qm files + T=$(contrib/qt_translations.py $QTDIR/translations src/qt/locale) + contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr $T -dmg -fancy contrib/macdeploy/fancy.plist + + Build output expected: + Bitcoin-Qt.dmg + +* upload builds to SourceForge * create SHA256SUMS for builds, and PGP-sign it @@ -44,8 +87,45 @@ * update forum version -* update wiki - * update wiki download links - +* Commit your signature to gitian.sigs: + pushd gitian.sigs + git add ${VERSION}/${SIGNER} + git add ${VERSION}-win32/${SIGNER} + git commit -a + git push # Assuming you can push to the gitian.sigs tree + popd + +------------------------------------------------------------------------- + +* After 3 or more people have gitian-built, repackage gitian-signed zips: + + * From a directory containing bitcoin source, gitian.sigs and gitian zips + export VERSION=0.5.1 + mkdir bitcoin-${VERSION}-linux-gitian + pushd bitcoin-${VERSION}-linux-gitian + unzip ../bitcoin-${VERSION}-linux-gitian.zip + mkdir gitian + cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/ + for signer in $(ls ../gitian.sigs/${VERSION}/); do + cp ../gitian.sigs/${VERSION}/${signer}/bitcoin-build.assert ./gitian/${signer}-build.assert + cp ../gitian.sigs/${VERSION}/${signer}/bitcoin-build.assert.sig ./gitian/${signer}-build.assert.sig + done + zip -r bitcoin-${VERSION}-linux-gitian.zip * + cp bitcoin-${VERSION}-linux-gitian.zip ../ + popd + mkdir bitcoin-${VERSION}-win32-gitian + pushd bitcoin-${VERSION}-win32-gitian + unzip ../bitcoin-${VERSION}-win32-gitian.zip + mkdir gitian + cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/ + for signer in $(ls ../gitian.sigs/${VERSION}-win32/); do + cp ../gitian.sigs/${VERSION}-win32/${signer}/bitcoin-build.assert ./gitian/${signer}-build.assert + cp ../gitian.sigs/${VERSION}-win32/${signer}/bitcoin-build.assert.sig ./gitian/${signer}-build.assert.sig + done + zip -r bitcoin-${VERSION}-win32-gitian.zip * + cp bitcoin-${VERSION}-win32-gitian.zip ../ + popd + + * Upload gitian zips to SourceForge diff --git a/doc/translation_process.md b/doc/translation_process.md new file mode 100644 index 0000000..603d557 --- /dev/null +++ b/doc/translation_process.md @@ -0,0 +1,63 @@ +Translations +============ + +The Qt GUI can be easily translated into other languages. Here's how we +handle those translations. + +Files and Folders +----------------- + +### bitcoin-qt.pro + +This file takes care of generating `.qm` files from `.ts` files. It is mostly +automated. + +### src/qt/bitcoin.qrc + +This file must be updated whenever a new translation is added. Please note that +files must end with `.qm`, not `.ts`. + + + locale/bitcoin_en.qm + ... + + +### src/qt/locale/ + +This directory contains all translations. Filenames must adhere to this format: + + bitcoin_xx_YY.ts or bitcoin_xx.ts + +#### Source file + +`src/qt/locale/bitcoin_en.ts` is treated in a special way. It is used as the +source for all other translations. Whenever a string in the code is changed +this file must be updated to reflect those changes. Usually, this can be +accomplished by running `lupdate`. + +Syncing with transifex +---------------------- + +We are using http://transifex.net as a frontend for translating the client. + +https://www.transifex.net/projects/p/bitcoin/resource/tx/ + +The "transifex client" (see: http://help.transifex.net/features/client/) +will help with fetching new translations from transifex. Use the following +config to be able to connect with the client. + +### .tx/config + + [main] + host = https://www.transifex.net + + [bitcoin.tx] + file_filter = src/qt/locale/bitcoin_.ts + source_file = src/qt/locale/bitcoin_en.ts + source_lang = en + +### Fetching new translations + +1. `tx pull -a` +2. update `src/qt/bitcoin.qrc` +3. `git add` new translations from `src/qt/locale/` diff --git a/locale/cs/LC_MESSAGES/bitcoin.mo b/locale/cs/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index 8b6e444..0000000 Binary files a/locale/cs/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/cs/LC_MESSAGES/bitcoin.po b/locale/cs/LC_MESSAGES/bitcoin.po deleted file mode 100644 index 2275d90..0000000 --- a/locale/cs/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,1079 +0,0 @@ -# This file is distributed under the same license as the Bitcoin package. -# xHire , 2011. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-08-16 15:51+0100\n" -"PO-Revision-Date: 2011-08-16 16:03+0100\n" -"Last-Translator: xHire \n" -"Language-Team: \n" -"Language: cs\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/uibase.cpp:25 -#: ../../../src/ui.cpp:2985 -msgid "E&xit" -msgstr "&Konec" - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&Soubor" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "Tvá Bitcoinová &adresa..." - -#: ../../../src/uibase.cpp:35 -msgid "&Encrypt Wallet..." -msgstr "&Zašifruj peněženku..." - -#: ../../../src/uibase.cpp:38 -msgid "&Change Wallet Encryption Passphrase..." -msgstr "Změň &heslo pro šifrování peněženky..." - -#: ../../../src/uibase.cpp:42 -msgid "&Options..." -msgstr "M&ožnosti" - -#: ../../../src/uibase.cpp:45 -msgid "&Settings" -msgstr "Nas&tavení" - -#: ../../../src/uibase.cpp:49 -msgid "&About..." -msgstr "&O programu" - -#: ../../../src/uibase.cpp:52 -msgid "&Help" -msgstr "&Nápověda" - -#: ../../../src/uibase.cpp:61 -#: ../../../src/ui.cpp:2143 -#: ../../../src/ui.cpp:2148 -#: ../../../src/ui.cpp:2153 -#: ../../../src/ui.cpp:2202 -msgid "Send Coins" -msgstr "Pošli mince" - -#: ../../../src/uibase.cpp:62 -msgid "Address Book" -msgstr "Adresář" - -#: ../../../src/uibase.cpp:75 -msgid "Your Bitcoin Address:" -msgstr "Tvá Bitcoinová adresa:" - -#: ../../../src/uibase.cpp:82 -msgid " &New... " -msgstr " &Nová..." - -#: ../../../src/uibase.cpp:85 -#: ../../../src/uibase.cpp:790 -#: ../../../src/uibase.cpp:893 -msgid " &Copy to Clipboard " -msgstr " &Kopírovat do schránky" - -#: ../../../src/uibase.cpp:99 -msgid "Balance:" -msgstr "Stav účtu:" - -#: ../../../src/uibase.cpp:115 -msgid " All" -msgstr " Vše" - -#: ../../../src/uibase.cpp:115 -msgid " Sent" -msgstr " Odeslané" - -#: ../../../src/uibase.cpp:115 -msgid " Received" -msgstr " Přijaté" - -#: ../../../src/uibase.cpp:115 -msgid " In Progress" -msgstr " Pracuje se na tom" - -#: ../../../src/uibase.cpp:136 -msgid "All Transactions" -msgstr "Všechny transakce" - -#: ../../../src/uibase.cpp:147 -msgid "Sent/Received" -msgstr "Odeslané/Přijaté" - -#: ../../../src/uibase.cpp:158 -msgid "Sent" -msgstr "Odeslané" - -#: ../../../src/uibase.cpp:169 -msgid "Received" -msgstr "Přijaté" - -#: ../../../src/uibase.cpp:312 -#: ../../../src/uibase.cpp:453 -#: ../../../src/uibase.cpp:552 -#: ../../../src/uibase.cpp:732 -#: ../../../src/uibase.cpp:793 -#: ../../../src/uibase.cpp:902 -#: ../../../src/uibase.cpp:991 -msgid "OK" -msgstr "&Budiž" - -#: ../../../src/uibase.cpp:355 -msgid "&Start Bitcoin on system startup" -msgstr "&Spustit Bitcoin při startu systému" - -#: ../../../src/uibase.cpp:358 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Minimalizovávat do ikony v panelu" - -#: ../../../src/uibase.cpp:361 -msgid "Map port using &UPnP" -msgstr "Namapovat port přes &UPnP" - -#: ../../../src/uibase.cpp:364 -msgid "M&inimize to the tray on close" -msgstr "Zavřením &minimalizovat do ikony" - -#: ../../../src/uibase.cpp:370 -msgid "&Connect through socks4 proxy (requires restart to apply): " -msgstr "&Připojit přes socks4 proxy (vyžaduje restart aplikace):" - -#: ../../../src/uibase.cpp:381 -msgid "Proxy &IP:" -msgstr "&IP adresa proxy:" - -#: ../../../src/uibase.cpp:389 -msgid " &Port:" -msgstr " &Port:" - -#: ../../../src/uibase.cpp:402 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Dobrovolný transakční poplatek za každý započatý KB napomáhá tomu, aby tvé transakce byly rychle zpracovány. Většina transakcí má do 1 KB. Doporučená výše poplatku je 0.01." - -#: ../../../src/uibase.cpp:409 -msgid "Pay transaction fee:" -msgstr "Výše transakčního poplatku:" - -#: ../../../src/uibase.cpp:430 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:434 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:456 -#: ../../../src/uibase.cpp:678 -#: ../../../src/uibase.cpp:737 -#: ../../../src/uibase.cpp:796 -#: ../../../src/uibase.cpp:905 -#: ../../../src/uibase.cpp:994 -msgid "Cancel" -msgstr "&Zrušit" - -#: ../../../src/uibase.cpp:459 -msgid "&Apply" -msgstr "&Použít" - -#: ../../../src/uibase.cpp:518 -msgid "Bitcoin " -msgstr "Bitcoin" - -#: ../../../src/uibase.cpp:524 -msgid "version" -msgstr "verze" - -#: ../../../src/uibase.cpp:535 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2011 Vývojáři Bitcoinu\n" -"\n" -"Tohle je experimentální program.\n" -"\n" -"Šířen pod licencí MIT/X11, viz přiložený soubor license.txt nebo \n" -"http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití \n" -"v OpenSSL Toolkitu (http://www.openssl.org/) a kryptografický program od \n" -"Erika Younga (eay@cryptsoft.com) a program UPnP od Thomase Bernarda." - -#: ../../../src/uibase.cpp:591 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Vlož Bitcoinovou adresu (např. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:605 -msgid "Pay &To:" -msgstr "&Komu:" - -#: ../../../src/uibase.cpp:620 -msgid "&Paste" -msgstr "&Vložit" - -#: ../../../src/uibase.cpp:623 -msgid " Address &Book..." -msgstr " &Adresář..." - -#: ../../../src/uibase.cpp:630 -msgid "&Amount:" -msgstr "&Částka" - -#: ../../../src/uibase.cpp:640 -msgid "T&ransfer:" -msgstr "&Převod:" - -#: ../../../src/uibase.cpp:646 -msgid " Standard" -msgstr " Standard" - -#: ../../../src/uibase.cpp:673 -msgid "&Send" -msgstr "&Poslat" - -#: ../../../src/uibase.cpp:721 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Připojuji..." - -#: ../../../src/uibase.cpp:771 -msgid "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." -msgstr "Tohle jsou tvé Bitcoinové adresy na příjem plateb. Asi budeš chtít dát jinou adresu každému odesílateli, abys věděl, kdo ti kolik platil. Označená adresa bude zobrazena v hlavním okně." - -#: ../../../src/uibase.cpp:784 -#: ../../../src/uibase.cpp:896 -msgid "&Edit..." -msgstr "&Upravit..." - -#: ../../../src/uibase.cpp:787 -#: ../../../src/uibase.cpp:899 -msgid " &New Address... " -msgstr " &Nová adresa..." - -#: ../../../src/uibase.cpp:847 -#: ../../../src/ui.cpp:2620 -msgid "Bitcoin Address" -msgstr "Bitcoinová adresa" - -#: ../../../src/uibase.cpp:859 -msgid "Sending" -msgstr "Cizí adresy (pro odesílání)" - -#: ../../../src/uibase.cpp:867 -msgid "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." -msgstr "Tohle jsou tvé Bitcoinové adresy na příjem plateb. Můžeš dát jinou adresu každému odesílateli, abys věděl, kdo ti kolik platil. Označená adresa bude zobrazena v hlavním okně." - -#: ../../../src/uibase.cpp:880 -msgid "Receiving" -msgstr "Tvoje adresy (pro příjem)" - -#: ../../../src/uibase.cpp:890 -msgid "&Delete" -msgstr "&Smazat" - -#: ../../../src/rpc.cpp:2088 -#: ../../../src/rpc.cpp:2090 -#, c-format -msgid "To use the %s option" -msgstr "Pro použití volby %s" - -#: ../../../src/rpc.cpp:2092 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Varování: %s, musíš nastavit rpcpassword=\n" -"v konfiguračním souboru: %s\n" -"Pokud tenhle soubor neexistuje, vytvoř ho s oprávněním pro čtení pouze pro vlastníka.\n" - -#: ../../../src/rpc.cpp:2265 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"Musíš nastavit rpcpassword= v konfiguračním souboru:\n" -"%s\n" -"Pokud tenhle soubor neexistuje, vytvoř ho s oprávněním pro čtení pouze pro vlastníka." - -#: ../../../src/util.cpp:870 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Varování: Prosím zkontroluj, že datum a čas jsou na tvém počítači správně nastaveny. Pokud jsou nastaveny špatně, Bitcoin nebude fungovat správně." - -#: ../../../src/util.cpp:904 -msgid "beta" -msgstr "beta" - -#: ../../../src/wallet.cpp:1084 -msgid "Error: Wallet locked, unable to create transaction " -msgstr "Chyba: Peněženka je zamčená, takže není možné vytvořit transakci" - -#: ../../../src/wallet.cpp:1092 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Chyba: Tato transakce vyžaduje transakční poplatek nejméně %s kvůli svému objemu, komplexnosti nebo utrácení nedávno přijaté hotovosti" - -#: ../../../src/wallet.cpp:1094 -msgid "Error: Transaction creation failed " -msgstr "Chyba: Vytvoření transakce selhalo" - -#: ../../../src/wallet.cpp:1100 -#: ../../../src/ui.cpp:2176 -#: ../../../src/ui.cpp:2185 -#: ../../../src/ui.cpp:2336 -#: ../../../src/ui.cpp:2500 -msgid "Sending..." -msgstr "Posílám..." - -#: ../../../src/wallet.cpp:1104 -msgid "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." -msgstr "Chyba: Transakce byla odmítnuta. Tohle může nastat, pokud nějaké mince z tvé peněženky už jednou byly utraceny, například pokud používáš kopii souboru wallet.dat a mince byly utraceny v druhé kopii, ale nebyly označeny jako utracené v této." - -#: ../../../src/wallet.cpp:1117 -msgid "Invalid amount" -msgstr "Neplatná částka" - -#: ../../../src/wallet.cpp:1119 -#: ../../../src/ui.cpp:2403 -#: ../../../src/ui.cpp:2474 -msgid "Insufficient funds" -msgstr "Nedostatek peněz" - -#: ../../../src/ui.cpp:217 -#, c-format -msgid "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?" -msgstr "Tahle transakce přesahuje velikostní limit. Pořád ji ale můžeš poslat, pokud za ni zaplatíš poplatek %s, který půjde uzlům, které tvou transakci zpracují, a navíc tak podpoříš síť. Chceš zaplatit poplatek?" - -#: ../../../src/ui.cpp:261 -#: ../../../src/ui.cpp:1247 -msgid "Enter the current passphrase to the wallet." -msgstr "Zadej platné heslo pro peněženku." - -#: ../../../src/ui.cpp:262 -#: ../../../src/ui.cpp:1183 -#: ../../../src/ui.cpp:1200 -#: ../../../src/ui.cpp:1248 -#: ../../../src/ui.cpp:1274 -#: ../../../src/ui.cpp:1294 -msgid "Passphrase" -msgstr "Heslo" - -#: ../../../src/ui.cpp:268 -msgid "Please supply the current wallet decryption passphrase." -msgstr "Zadej platné heslo pro dešifrování peněženky." - -#: ../../../src/ui.cpp:276 -#: ../../../src/ui.cpp:1259 -#: ../../../src/ui.cpp:1316 -msgid "The passphrase entered for the wallet decryption was incorrect." -msgstr "Nezadal jsi správné heslo pro dešifrování peněženky." - -#: ../../../src/ui.cpp:353 -msgid "Status" -msgstr "Stav" - -#: ../../../src/ui.cpp:354 -msgid "Date" -msgstr "Datum" - -#: ../../../src/ui.cpp:355 -msgid "Description" -msgstr "Popis" - -#: ../../../src/ui.cpp:356 -msgid "Debit" -msgstr "Výdaje" - -#: ../../../src/ui.cpp:357 -msgid "Credit" -msgstr "Příjmy" - -#: ../../../src/ui.cpp:568 -#, c-format -msgid "Open for %d blocks" -msgstr "Otevřeno pro %d bloků" - -#: ../../../src/ui.cpp:570 -#, c-format -msgid "Open until %s" -msgstr "Otřevřeno dokud %s" - -#: ../../../src/ui.cpp:576 -#, c-format -msgid "%d/offline?" -msgstr "%d/offline?" - -#: ../../../src/ui.cpp:578 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/nepotvrzeno" - -#: ../../../src/ui.cpp:580 -#, c-format -msgid "%d confirmations" -msgstr "%d potvrzení" - -#: ../../../src/ui.cpp:665 -msgid "Generated" -msgstr "Vygenerováno" - -#: ../../../src/ui.cpp:673 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Vygenerováno (%s dozraje po %d blocích)" - -#: ../../../src/ui.cpp:677 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Vygenerovaný - Varování: Tehnle blok nebyl obdržen žádným jiným uzlem a pravděpodobně nebude akceptován!" - -#: ../../../src/ui.cpp:681 -msgid "Generated (not accepted)" -msgstr "Vygenerováno (neakceptováno)" - -#: ../../../src/ui.cpp:691 -msgid "From: " -msgstr "Od: " - -#: ../../../src/ui.cpp:715 -msgid "Received with: " -msgstr "Přijato adresou: " - -#: ../../../src/ui.cpp:760 -msgid "Payment to yourself" -msgstr "Platba pro sebe sama" - -#: ../../../src/ui.cpp:794 -msgid "To: " -msgstr "Pro: " - -#: ../../../src/ui.cpp:1109 -msgid " Generating" -msgstr " Generuji" - -#: ../../../src/ui.cpp:1111 -msgid "(not connected)" -msgstr "(nepřipojen)" - -#: ../../../src/ui.cpp:1114 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d spojení %d bloků %d transakcí" - -#: ../../../src/ui.cpp:1171 -msgid "Wallet already encrypted." -msgstr "Peněženka je už zašifrovaná." - -#: ../../../src/ui.cpp:1182 -msgid "" -"Enter the new passphrase to the wallet.\n" -"Please use a passphrase of 10 or more random characters, or eight or more words." -msgstr "" -"Zadej nové heslo pro peněženku.\n" -"Použij alespoň 10 náhodných znaků nebo alespoň 8 slov." - -#: ../../../src/ui.cpp:1189 -#: ../../../src/ui.cpp:1282 -msgid "Error: The supplied passphrase was too short." -msgstr "Chyba: Zadané heslo je příliš krátké." - -#: ../../../src/ui.cpp:1193 -msgid "" -"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?" -msgstr "" -"VAROVÁNÍ: Pokud zašifruješ peněženku a ztratíš či zapomeneš heslo, PŘIJDEŠ O VŠECHNY BITCOINY!\n" -"Jsi si jistý, že chceš peněženku zašifrovat?" - -#: ../../../src/ui.cpp:1199 -msgid "Please re-enter your new wallet passphrase." -msgstr "Zadej ještě jednou nové heslo pro peněženku." - -#: ../../../src/ui.cpp:1208 -#: ../../../src/ui.cpp:1304 -msgid "Error: the supplied passphrases didn't match." -msgstr "Chyba: zadaná hesla nejsou shodná." - -#: ../../../src/ui.cpp:1218 -msgid "Wallet encryption failed." -msgstr "Zašifrování peněženky selhalo." - -#: ../../../src/ui.cpp:1225 -msgid "" -"Wallet Encrypted.\n" -"Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer." -msgstr "" -"Peněženka je zašifrována.\n" -"Pamatuj, že pouhé šifrování peněženky nemůže plně ochránit tvé bitcoiny před krádeží malwarem, kterým se může počítač nakazit." - -#: ../../../src/ui.cpp:1236 -msgid "Wallet is unencrypted, please encrypt it first." -msgstr "Peněženka není zašifrovaná, musíš ji prvně zašifrovat." - -#: ../../../src/ui.cpp:1273 -msgid "Enter the new passphrase for the wallet." -msgstr "Zadej nové heslo pro peněženku." - -#: ../../../src/ui.cpp:1293 -msgid "Re-enter the new passphrase for the wallet." -msgstr "Zadej ještě jednou nové heslo pro peněženku." - -#: ../../../src/ui.cpp:1325 -msgid "Wallet Passphrase Changed." -msgstr "Heslo peněženky bylo změněno." - -#: ../../../src/ui.cpp:1382 -#: ../../../src/ui.cpp:2815 -msgid "New Receiving Address" -msgstr "Nová Bitcoinová adresa" - -#: ../../../src/ui.cpp:1383 -#: ../../../src/ui.cpp:2816 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Měl bys vždy použít novou adresu pro každou platbu, kterou přijímáš.\n" -"\n" -"Označení" - -#: ../../../src/ui.cpp:1467 -msgid "Status: " -msgstr "Stav: " - -#: ../../../src/ui.cpp:1472 -msgid ", has not been successfully broadcast yet" -msgstr ", ještě nebylo rozesláno" - -#: ../../../src/ui.cpp:1474 -#, c-format -msgid ", broadcast through %d node" -msgstr ", rozesláno přes %d uzel" - -#: ../../../src/ui.cpp:1476 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", rozesláno přes %d uzlů" - -#: ../../../src/ui.cpp:1480 -msgid "Date: " -msgstr "Datum: " - -#: ../../../src/ui.cpp:1488 -msgid "Source: Generated
" -msgstr "Zdroj: Vygenerováno
" - -#: ../../../src/ui.cpp:1494 -#: ../../../src/ui.cpp:1511 -msgid "From: " -msgstr "Od: " - -#: ../../../src/ui.cpp:1511 -msgid "unknown" -msgstr "neznámo" - -#: ../../../src/ui.cpp:1512 -#: ../../../src/ui.cpp:1536 -#: ../../../src/ui.cpp:1595 -msgid "To: " -msgstr "Pro: " - -#: ../../../src/ui.cpp:1515 -msgid " (yours, label: " -msgstr " (tvoje, označení: " - -#: ../../../src/ui.cpp:1517 -msgid " (yours)" -msgstr " (tvoje)" - -#: ../../../src/ui.cpp:1554 -#: ../../../src/ui.cpp:1566 -#: ../../../src/ui.cpp:1612 -#: ../../../src/ui.cpp:1629 -msgid "Credit: " -msgstr "Příjem: " - -#: ../../../src/ui.cpp:1556 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s dozraje po %d blocích)" - -#: ../../../src/ui.cpp:1558 -msgid "(not accepted)" -msgstr "(neakceptováno)" - -#: ../../../src/ui.cpp:1603 -#: ../../../src/ui.cpp:1611 -#: ../../../src/ui.cpp:1626 -msgid "Debit: " -msgstr "Výdaj: " - -#: ../../../src/ui.cpp:1617 -msgid "Transaction fee: " -msgstr "Transakční poplatek: " - -#: ../../../src/ui.cpp:1633 -msgid "Net amount: " -msgstr "Čistá částka: " - -#: ../../../src/ui.cpp:1640 -msgid "Message:" -msgstr "Zpráva:" - -#: ../../../src/ui.cpp:1642 -msgid "Comment:" -msgstr "Komentář:" - -#: ../../../src/ui.cpp:1645 -msgid "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." -msgstr "Vygenerované mince musí čekat 120 bloků, než mohou být utraceny. Když jsi vygeneroval tenhle blok, tak byl rozposlán do sítě, aby byl přidán do řetězce bloků. Pokud se mu nepodaří dostat se do řetězce, změní se na \"neakceptovaný\" a nebude utratitelný. To se občas může přihodit, pokud jiný uzel vygeneruje blok zhruba ve stejném okamžiku jako ty." - -#: ../../../src/ui.cpp:1825 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Nemohu zapisovat do souboru autostart/bitcoin.desktop" - -#: ../../../src/ui.cpp:1861 -msgid "Main" -msgstr "Hlavní" - -#: ../../../src/ui.cpp:1871 -msgid "&Start Bitcoin on window system startup" -msgstr "&Spustit Bitcoin při startu okenního systému" - -#: ../../../src/ui.cpp:1878 -msgid "&Minimize on close" -msgstr "&Zavřením pouze skrýt" - -#: ../../../src/ui.cpp:2020 -#, c-format -msgid "version %s" -msgstr "verze %s" - -#: ../../../src/ui.cpp:2143 -msgid "Error in amount " -msgstr "Chyba v částce" - -#: ../../../src/ui.cpp:2148 -msgid "Amount exceeds your balance " -msgstr "Částka překračuje stav účtu" - -#: ../../../src/ui.cpp:2153 -msgid "Total exceeds your balance when the " -msgstr "Celková částka přesahuje stav tvého účtu, když " - -#: ../../../src/ui.cpp:2153 -msgid " transaction fee is included " -msgstr " transakční poplatek je zahrnut" - -#: ../../../src/ui.cpp:2176 -msgid "Payment sent " -msgstr "Platba odeslána" - -#: ../../../src/ui.cpp:2202 -msgid "Invalid address " -msgstr "Neplatná adresa" - -#: ../../../src/ui.cpp:2257 -#, c-format -msgid "Sending %s to %s" -msgstr "Posílám %s %s" - -#: ../../../src/ui.cpp:2330 -#: ../../../src/ui.cpp:2363 -msgid "CANCELLED" -msgstr "ZRUŠENO" - -#: ../../../src/ui.cpp:2334 -msgid "Cancelled" -msgstr "Zrušeno" - -#: ../../../src/ui.cpp:2336 -msgid "Transfer cancelled " -msgstr "Převod zrušen" - -#: ../../../src/ui.cpp:2389 -msgid "Error: " -msgstr "Chyba: " - -#: ../../../src/ui.cpp:2408 -msgid "Connecting..." -msgstr "Připojuji..." - -#: ../../../src/ui.cpp:2413 -msgid "Unable to connect" -msgstr "Nemohu se připojit" - -#: ../../../src/ui.cpp:2418 -msgid "Requesting public key..." -msgstr "Požaduji veřejný klíč..." - -#: ../../../src/ui.cpp:2430 -msgid "Received public key..." -msgstr "Přijat veřejný klíč..." - -#: ../../../src/ui.cpp:2444 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Příjemce neakceptuje transakce poslané IP adresou" - -#: ../../../src/ui.cpp:2446 -msgid "Transfer was not accepted" -msgstr "Převod nebyl akceptován" - -#: ../../../src/ui.cpp:2455 -msgid "Invalid response received" -msgstr "Přišla neplatná odpověď" - -#: ../../../src/ui.cpp:2470 -msgid "Creating transaction..." -msgstr "Vytvářím transakci..." - -#: ../../../src/ui.cpp:2489 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Tato transakce vyžaduje transakční poplatek nejméně %s kvůli svému objemu, komplexnosti nebo utrácení nedávno přijaté hotovosti" - -#: ../../../src/ui.cpp:2491 -msgid "Transaction creation failed" -msgstr "Vytvoření transakce selhalo" - -#: ../../../src/ui.cpp:2502 -msgid "Transaction aborted" -msgstr "Transakce zrušena" - -#: ../../../src/ui.cpp:2510 -msgid "Lost connection, transaction cancelled" -msgstr "Spojení se ztratilo, takže transakce byla zrušena" - -#: ../../../src/ui.cpp:2526 -msgid "Sending payment..." -msgstr "Posílám platbu..." - -#: ../../../src/ui.cpp:2532 -msgid "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." -msgstr "Transakce byla odmítnuta. Tohle může nastat, pokud nějaké mince z tvé peněženky už jednou byly utraceny, například pokud používáš kopii souboru wallet.dat a mince byly utraceny v druhé kopii, ale nebyly označeny jako utracené v této." - -#: ../../../src/ui.cpp:2541 -msgid "Waiting for confirmation..." -msgstr "Čekám na potvrzení..." - -#: ../../../src/ui.cpp:2559 -msgid "" -"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." -msgstr "" -"Platba byla poslána, ale příjemce není schopen ji ověřit.\n" -"Transakce je zaznamenána a bude připsána příjemci,\n" -"ale poznámka u platby bude prázdná." - -#: ../../../src/ui.cpp:2568 -msgid "Payment was sent, but an invalid response was received" -msgstr "Platba byla odeslána, ale přišla neplatná odpověď" - -#: ../../../src/ui.cpp:2574 -msgid "Payment completed" -msgstr "Platba je kompletní" - -#: ../../../src/ui.cpp:2616 -#: ../../../src/ui.cpp:2763 -#: ../../../src/ui.cpp:2803 -msgid "Name" -msgstr "Jméno" - -#: ../../../src/ui.cpp:2617 -#: ../../../src/ui.cpp:2763 -#: ../../../src/ui.cpp:2803 -msgid "Address" -msgstr "Adresa" - -#: ../../../src/ui.cpp:2619 -#: ../../../src/ui.cpp:2775 -msgid "Label" -msgstr "Označení" - -#: ../../../src/ui.cpp:2745 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Tohle je jedna z tvých vlastních adres pro příjem plateb a nemůže být zadána do adresáře." - -#: ../../../src/ui.cpp:2763 -#: ../../../src/ui.cpp:2769 -msgid "Edit Address" -msgstr "Upravit adresu" - -#: ../../../src/ui.cpp:2775 -msgid "Edit Address Label" -msgstr "Upravit označení adresy" - -#: ../../../src/ui.cpp:2803 -#: ../../../src/ui.cpp:2809 -msgid "Add Address" -msgstr "Přidat adresu" - -#: ../../../src/ui.cpp:2897 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2899 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Generování" - -#: ../../../src/ui.cpp:2901 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (nepřipojen)" - -#: ../../../src/ui.cpp:2980 -msgid "&Open Bitcoin" -msgstr "&Otevřít Bitcoin" - -#: ../../../src/ui.cpp:2981 -msgid "&Send Bitcoins" -msgstr "&Poslat Bitcoiny" - -#: ../../../src/ui.cpp:2982 -msgid "O&ptions..." -msgstr "&Možnosti..." - -#: ../../../src/ui.cpp:3211 -msgid "Program has crashed and will terminate. " -msgstr "Program havaroval a bude ukončen." - -#: ../../../src/init.cpp:163 -msgid "Bitcoin version" -msgstr "Bitcoin verze" - -#: ../../../src/init.cpp:164 -msgid "Usage:" -msgstr "Užití:" - -#: ../../../src/init.cpp:166 -msgid "Send command to -server or bitcoind\n" -msgstr "Poslat příkaz pro -server nebo bitcoind\n" - -#: ../../../src/init.cpp:167 -msgid "List commands\n" -msgstr "Výpis příkazů\n" - -#: ../../../src/init.cpp:168 -msgid "Get help for a command\n" -msgstr "Získat nápovědu pro příkaz\n" - -#: ../../../src/init.cpp:169 -msgid "Options:\n" -msgstr "Možnosti:\n" - -#: ../../../src/init.cpp:170 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Konfigurační soubor (výchozí: bitcoin.conf)\n" - -#: ../../../src/init.cpp:171 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "PID soubor (výchozí: bitcoind.pid)\n" - -#: ../../../src/init.cpp:172 -msgid "Generate coins\n" -msgstr "Generovat mince\n" - -#: ../../../src/init.cpp:173 -msgid "Don't generate coins\n" -msgstr "Negenerovat mince\n" - -#: ../../../src/init.cpp:174 -msgid "Start minimized\n" -msgstr "Startovat minimalizovaně\n" - -#: ../../../src/init.cpp:175 -msgid "Specify data directory\n" -msgstr "Adresář pro data\n" - -#: ../../../src/init.cpp:176 -msgid "Specify connection timeout (in milliseconds)\n" -msgstr "Zadej časový limit spojení (v milisekundách)\n" - -#: ../../../src/init.cpp:177 -msgid "Connect through socks4 proxy\n" -msgstr "Připojovat se skrz socks4 proxy\n" - -#: ../../../src/init.cpp:178 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Povolit DNS dotazy pro addnode (přidání uzlu) a connect (připojení)\n" - -#: ../../../src/init.cpp:179 -msgid "Add a node to connect to\n" -msgstr "Přidat uzel, ke kterému se připojit\n" - -#: ../../../src/init.cpp:180 -msgid "Connect only to the specified node\n" -msgstr "Připojovat se pouze k udanému uzlu\n" - -#: ../../../src/init.cpp:181 -msgid "Don't accept connections from outside\n" -msgstr "Nepřijímat připojení zvenčí\n" - -#: ../../../src/init.cpp:184 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Nesnažit se použít UPnP k namapování naslouchacího portu\n" - -#: ../../../src/init.cpp:186 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Snažit se použít UPnP k namapování naslouchacího portu\n" - -#: ../../../src/init.cpp:189 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Poplatek za KB, který se přidá ke každé odeslané transakci\n" - -#: ../../../src/init.cpp:191 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Akceptovat příkazy z příkazové řádky a přes JSON-RPC\n" - -#: ../../../src/init.cpp:194 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Běžet na pozadí jako démon a akceptovat příkazy\n" - -#: ../../../src/init.cpp:196 -msgid "Use the test network\n" -msgstr "Použít testovací síť\n" - -#: ../../../src/init.cpp:197 -msgid "Username for JSON-RPC connections\n" -msgstr "Uživatelské jméno pro JSON-RPC spojení\n" - -#: ../../../src/init.cpp:198 -msgid "Password for JSON-RPC connections\n" -msgstr "Heslo pro JSON-RPC spojení\n" - -#: ../../../src/init.cpp:199 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Čekat na JSON-RPC spojení na (výchozí: 8332)\n" - -#: ../../../src/init.cpp:200 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Povolit JSON-RPC spojení ze specifikované IP adresy\n" - -#: ../../../src/init.cpp:201 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Posílat příkazy uzlu běžícím na (výchozí: 127.0.0.1)\n" - -#: ../../../src/init.cpp:202 -msgid "Set key pool size to (default: 100)\n" -msgstr "Nastavit zásobník klíčů na velikost (výchozí: 100)\n" - -#: ../../../src/init.cpp:203 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Přeskenovat řetězec bloků na chybějící transakce peněženky\n" - -#: ../../../src/init.cpp:207 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"Možnosti SSL: (viz instrukce nastavení SSL v Bitcoin Wiki)\n" - -#: ../../../src/init.cpp:208 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Použít OpenSSL (https) pro JSON-RPC spojení\n" - -#: ../../../src/init.cpp:209 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Soubor se serverovým certifikátem (výchozí: server.cert)\n" - -#: ../../../src/init.cpp:210 -msgid "Server private key (default: server.pem)\n" -msgstr "Soubor se serverovým soukromým klíčem (výchozí: server.pem)\n" - -#: ../../../src/init.cpp:211 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Akceptovatelné šifry (výchozí: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:215 -msgid "This help message\n" -msgstr "Tato nápověda\n" - -#: ../../../src/init.cpp:353 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "Nedaří se mi získat zámek na datový adresář %s. Bitcoin pravděpodobně už jednou běží." - -#: ../../../src/init.cpp:379 -msgid "Error loading addr.dat \n" -msgstr "Chyba při načítání addr.dat \n" - -#: ../../../src/init.cpp:385 -msgid "Error loading blkindex.dat \n" -msgstr "Chyba při načítání blkindex.dat \n" - -#: ../../../src/init.cpp:396 -msgid "Error loading wallet.dat: Wallet corrupted \n" -msgstr "Chyba při načítání wallet.dat: peněženka je poškozená \n" - -#: ../../../src/init.cpp:398 -msgid "Error loading wallet.dat: Wallet requires newer version of Bitcoin \n" -msgstr "Chyba při načítání wallet.dat: peněženka vyžaduje novější verzi Bitcoinu \n" - -#: ../../../src/init.cpp:400 -msgid "Error loading wallet.dat \n" -msgstr "Chyba při načítání wallet.dat \n" - -#: ../../../src/init.cpp:489 -msgid "Invalid -proxy address" -msgstr "Neplatná -proxy adresa" - -#: ../../../src/init.cpp:514 -msgid "Invalid amount for -paytxfee=" -msgstr "Neplatná částka pro -paytxfee=<částka>" - -#: ../../../src/init.cpp:518 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Varování: -paytxfee je nastaveno velmi vysoko. Toto je transakční poplatek, který zaplatíš za každou poslanou transakci." - -#: ../../../src/net.cpp:1622 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "Nedaří se mi připojit na port %d na tomhle počítači. Bitcoin už pravděpodobně jednou běží." - -#: ../../../src/main.cpp:1437 -msgid "Warning: Disk space is low " -msgstr "Upozornění: Na disku je málo místa" - -#: ../../../src/uibase.h:151 -msgid "Transaction Details" -msgstr "Detaily transakce" - -#: ../../../src/uibase.h:203 -msgid "Options" -msgstr "Možnosti" - -#: ../../../src/uibase.h:232 -msgid "About Bitcoin" -msgstr "O Bitcoinu" - -#: ../../../src/uibase.h:341 -msgid "Your Bitcoin Addresses" -msgstr "Tvá Bitcoinová adresa" - -#~ msgid "Invalid bitcoin address" -#~ msgstr "Neplatná Bitcoinová adresa" diff --git a/locale/de/LC_MESSAGES/bitcoin.mo b/locale/de/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index bd03fd2..0000000 Binary files a/locale/de/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/de/LC_MESSAGES/bitcoin.po b/locale/de/LC_MESSAGES/bitcoin.po deleted file mode 100644 index 59381c1..0000000 --- a/locale/de/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,1081 +0,0 @@ -# Jakob Kramer , 2011. -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-08-07 01:46+0100\n" -"PO-Revision-Date: 2011-08-07 01:47+0100\n" -"Last-Translator: Michael Bemmerl \n" -"Language-Team: German \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: de\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Virtaal 0.6.1\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/init.cpp:162 -msgid "Bitcoin version" -msgstr "Bitcoin Version" - -#: ../../../src/init.cpp:163 -msgid "Usage:" -msgstr "Verwendung:" - -#: ../../../src/init.cpp:165 -msgid "Send command to -server or bitcoind\n" -msgstr "Sende Befehl zu -server oder bitcoind\n" - -#: ../../../src/init.cpp:166 -msgid "List commands\n" -msgstr "Liste Befehle auf\n" - -#: ../../../src/init.cpp:167 -msgid "Get help for a command\n" -msgstr "Hilfe für einen Befehl erhalten\n" - -#: ../../../src/init.cpp:168 -msgid "Options:\n" -msgstr "Optionen:\n" - -#: ../../../src/init.cpp:169 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Konfigurationsdatei bestimmen (Standard: bitcoin.conf)\n" - -#: ../../../src/init.cpp:170 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "pid-Datei bestimmen (Standard: bitcoind.pid)\n" - -#: ../../../src/init.cpp:171 -msgid "Generate coins\n" -msgstr "Münzen erzeugen\n" - -#: ../../../src/init.cpp:172 -msgid "Don't generate coins\n" -msgstr "Keine Münzen erzeugen\n" - -#: ../../../src/init.cpp:173 -msgid "Start minimized\n" -msgstr "Minimiert starten\n" - -#: ../../../src/init.cpp:174 -msgid "Specify data directory\n" -msgstr "Datenverzeichnis festlegen\n" - -#: ../../../src/init.cpp:175 -msgid "Specify connection timeout (in milliseconds)\n" -msgstr "Verbindungs-Timeout in Milisekunden\n" - -#: ../../../src/init.cpp:176 -msgid "Connect through socks4 proxy\n" -msgstr "Socks4-Proxy verwenden\n" - -#: ../../../src/init.cpp:177 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "DNS-Auflösung für addnode und connect erlauben\n" - -#: ../../../src/init.cpp:178 -msgid "Add a node to connect to\n" -msgstr "Einen Teilnehmer hinzufügen, zu dem verbunden werden soll\n" - -#: ../../../src/init.cpp:179 -msgid "Connect only to the specified node\n" -msgstr "Nur zu dem angegebenen Teilnehmer verbinden\n" - -#: ../../../src/init.cpp:180 -msgid "Don't accept connections from outside\n" -msgstr "Akzeptiere keine externen Verbindungen\n" - -#: ../../../src/init.cpp:183 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Versuche nicht, UPnP zur Portweiterleitung zu nutzen\n" - -#: ../../../src/init.cpp:185 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Versuche, UPnP zur Portweiterleitung zu nutzen\n" - -#: ../../../src/init.cpp:188 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Gebühr pro KB für Überweisungen, die Sie tätigen\n" - -#: ../../../src/init.cpp:190 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Akzeptiere Kommandozeile und JSON-RPC-Befehle\n" - -#: ../../../src/init.cpp:193 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Laufe im Hintergrund als Daemon und akzeptiere Befehle\n" - -#: ../../../src/init.cpp:195 -msgid "Use the test network\n" -msgstr "Nutze das Testnetzwerk\n" - -#: ../../../src/init.cpp:196 -msgid "Username for JSON-RPC connections\n" -msgstr "Benutzername für JSON-RPC-Verbindungen\n" - -#: ../../../src/init.cpp:197 -msgid "Password for JSON-RPC connections\n" -msgstr "Passwort für JSON-RPC-Verbindungen\n" - -#: ../../../src/init.cpp:198 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Horche für JSON-RPC-Verbindungen auf (Standard: 8332)\n" - -#: ../../../src/init.cpp:199 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Erlaube JSON-RPC-Verbindungen von bestimmter IP-Adresse\n" - -#: ../../../src/init.cpp:200 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Sende Befehle zum Knoten mit (Standard: 127.0.0.1)\n" - -#: ../../../src/init.cpp:201 -msgid "Set key pool size to (default: 100)\n" -msgstr "Setze Key-Pool-Größe auf (Standard: 100)\n" - -#: ../../../src/init.cpp:202 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Frage die Block-Kette nach fehlenden Brieftaschen-Überweisungen ab\n" - -#: ../../../src/init.cpp:206 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"SSL-Optionen: (siehe das Bitcoin-Wiki für SSL-Installationsanleitungen)\n" - -#: ../../../src/init.cpp:207 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Nutze OpenSSL (https) für JSON-RPC-Verbindungen\n" - -#: ../../../src/init.cpp:208 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Server-Zertifikatsdatei (Standard: server.cert)\n" - -#: ../../../src/init.cpp:209 -msgid "Server private key (default: server.pem)\n" -msgstr "Server-Geheimschlüssel (Standard: server.pem)\n" - -#: ../../../src/init.cpp:210 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Anzunehmende Verschlüsselungen (Standard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:214 -msgid "This help message\n" -msgstr "Diese Anleitung\n" - -#: ../../../src/init.cpp:352 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "Erhalte keine Datensperre für das Datenverzeichnis %s. Bitcoin läuft wahrscheinlich bereits." - -#: ../../../src/init.cpp:378 -msgid "Error loading addr.dat \n" -msgstr "Fehler beim Laden von addr.dat \n" - -#: ../../../src/init.cpp:384 -msgid "Error loading blkindex.dat \n" -msgstr "Fehler beim Laden von blkindex.dat \n" - -#: ../../../src/init.cpp:395 -msgid "Error loading wallet.dat: Wallet corrupted \n" -msgstr "Fehler beim Laden von wallet.dat: Brieftasche beschädigt \n" - -#: ../../../src/init.cpp:397 -msgid "Error loading wallet.dat: Wallet requires newer version of Bitcoin \n" -msgstr "Fehler beim Laden von wallet.dat: Die Brieftasche benötigt eine neuere Version von Bitcoin \n" - -#: ../../../src/init.cpp:399 -msgid "Error loading wallet.dat \n" -msgstr "Fehler beim Laden von wallet.dat \n" - -#: ../../../src/init.cpp:488 -msgid "Invalid -proxy address" -msgstr "Ungültige -Proxy Adresse" - -#: ../../../src/init.cpp:513 -msgid "Invalid amount for -paytxfee=" -msgstr "Ungültiger Betrag für -paytxfee=" - -#: ../../../src/init.cpp:517 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Warnung: -paytxfee ist sehr hoch gesetzt. Das ist die Überweisungsgebühr, die Sie für das Senden einer Überweisung zahlen." - -#: ../../../src/main.cpp:1427 -msgid "Warning: Disk space is low " -msgstr "Warnung: Festplatte fast voll " - -#: ../../../src/net.cpp:1616 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "Kann nicht zu Port %d auf diesem Computer verbinden. Bitcoin läuft wahrscheinlich bereits." - -#: ../../../src/rpc.cpp:2086 -#: ../../../src/rpc.cpp:2088 -#, c-format -msgid "To use the %s option" -msgstr "Um die %s-Option zu nutzen" - -#: ../../../src/rpc.cpp:2090 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Warnung: %s, müssen Sie rpcpassword=\n" -"in der Konfigurationsdatei %s einstellen.\n" -"Wenn die Datei nicht existiert, erstellen Sie sie mit ausschließlich Besitzer-Leserechten.\n" - -#: ../../../src/rpc.cpp:2263 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"Sie müssen rpcpassword= in der Konfigurationsdatei\n" -"\"%s\" einstellen.\n" -"Wenn die Datei nicht existiert, erstellen Sie sie mit ausschließlich Besitzer-Leserechten." - -#: ../../../src/ui.cpp:216 -#, c-format -msgid "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?" -msgstr "Diese Überweisung übersteigt das Betragslimit. Sie können sie trotzdem tätigen, aber es wird eine Gebühr von %s erhoben, die an den Teilnehmer ausgeschüttet wird, der Ihre Überweisung bearbeitet und dadurch hilft, das Netzwerk am laufen zu halten. Möchten Sie die Gebühr entrichten?" - -#: ../../../src/ui.cpp:260 -#: ../../../src/ui.cpp:1246 -msgid "Enter the current passphrase to the wallet." -msgstr "Geben Sie die derzeitige Passphrase der Brieftasche ein." - -# See http://dict.leo.org/forum/viewUnsolvedquery.php?idThread=465865&idForum=2&lp=ende&lang=de -#: ../../../src/ui.cpp:261 -#: ../../../src/ui.cpp:1182 -#: ../../../src/ui.cpp:1199 -#: ../../../src/ui.cpp:1247 -#: ../../../src/ui.cpp:1273 -#: ../../../src/ui.cpp:1293 -msgid "Passphrase" -msgstr "Passphrase" - -#: ../../../src/ui.cpp:267 -msgid "Please supply the current wallet decryption passphrase." -msgstr "Bitte geben Sie die derzeitige Passphrase zur Entschlüsselung der Brieftasche an." - -#: ../../../src/ui.cpp:275 -#: ../../../src/ui.cpp:1258 -#: ../../../src/ui.cpp:1315 -msgid "The passphrase entered for the wallet decryption was incorrect." -msgstr "Die eingegebene Passphrase zur Entschlüsselung der Brieftasche war inkorrekt." - -#: ../../../src/ui.cpp:352 -msgid "Status" -msgstr "Status" - -#: ../../../src/ui.cpp:353 -msgid "Date" -msgstr "Datum" - -#: ../../../src/ui.cpp:354 -msgid "Description" -msgstr "Beschreibung" - -#: ../../../src/ui.cpp:355 -msgid "Debit" -msgstr "Belastungen" - -#: ../../../src/ui.cpp:356 -msgid "Credit" -msgstr "Gutschriften" - -#: ../../../src/ui.cpp:567 -#, c-format -msgid "Open for %d blocks" -msgstr "Offen für %d Blöcke" - -#: ../../../src/ui.cpp:569 -#, c-format -msgid "Open until %s" -msgstr "Offen bis %s" - -#: ../../../src/ui.cpp:575 -#, c-format -msgid "%d/offline?" -msgstr "%d/Offline?" - -#: ../../../src/ui.cpp:577 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/nicht bestätigt" - -#: ../../../src/ui.cpp:579 -#, c-format -msgid "%d confirmations" -msgstr "%d Bestätigungen" - -#: ../../../src/ui.cpp:664 -msgid "Generated" -msgstr "Erzeugt" - -#: ../../../src/ui.cpp:672 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Erzeugt (%s reifen nach %d weiteren Blöcken)" - -#: ../../../src/ui.cpp:676 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Erzeugt - Warnung: Dieser Block wurde von keinem anderen Teilnehmer empfangen und wird wahrscheinlich nicht akzeptiert werden!" - -#: ../../../src/ui.cpp:680 -msgid "Generated (not accepted)" -msgstr "Erzeugt (nicht akzeptiert)" - -#: ../../../src/ui.cpp:690 -msgid "From: " -msgstr "Von: " - -#: ../../../src/ui.cpp:714 -msgid "Received with: " -msgstr "Empfangen durch: " - -#: ../../../src/ui.cpp:759 -msgid "Payment to yourself" -msgstr "Überweisung an Sie selbst" - -#: ../../../src/ui.cpp:793 -msgid "To: " -msgstr "An: " - -#: ../../../src/ui.cpp:1108 -msgid " Generating" -msgstr " Erzeugen" - -#: ../../../src/ui.cpp:1110 -msgid "(not connected)" -msgstr "(nicht verbunden)" - -#: ../../../src/ui.cpp:1113 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d Verbindungen %d Blöcke %d Überweisungen" - -#: ../../../src/ui.cpp:1170 -msgid "Wallet already encrypted." -msgstr "Brieftasche bereits verschlüsselt." - -#: ../../../src/ui.cpp:1181 -msgid "" -"Enter the new passphrase to the wallet.\n" -"Please use a passphrase of 10 or more random characters, or eight or more words." -msgstr "" -"Geben Sie die neue Passphrase der Brieftasche ein.\n" -"Bitte benutzen Sie eine Passphrase mit zehn oder mehr zufällig gewählten Zeichen, oder acht oder mehr Wörter." - -#: ../../../src/ui.cpp:1188 -#: ../../../src/ui.cpp:1281 -msgid "Error: The supplied passphrase was too short." -msgstr "Fehler: Die angegebene Passphrase war zu kurz. " - -#: ../../../src/ui.cpp:1192 -msgid "" -"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?" -msgstr "" -"WARNUNG: Wenn Sie Ihre Brieftasche verschlüsseln und die Passphrase verlieren, werden Sie ALLE IHRE BITCOINS VERLIEREN!\n" -"Sind Sie sicher, dass Sie Ihre Brieftasche verschlüsseln wollen?" - -#: ../../../src/ui.cpp:1198 -msgid "Please re-enter your new wallet passphrase." -msgstr "Bitte geben Sie erneut Ihre neue Passphrase der Brieftasche ein." - -#: ../../../src/ui.cpp:1207 -#: ../../../src/ui.cpp:1303 -msgid "Error: the supplied passphrases didn't match." -msgstr "Fehler: Die angegebenen Passphrasen stimmten nicht überein." - -#: ../../../src/ui.cpp:1217 -msgid "Wallet encryption failed." -msgstr "Verschlüsselung der Brieftasche fehlgeschlagen." - -#: ../../../src/ui.cpp:1224 -msgid "" -"Wallet Encrypted.\n" -"Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer." -msgstr "" -"Brieftasche verschlüsselt.\n" -"Beachten Sie, dass das Verschlüsseln der Brieftasche Ihre Bitcoins nicht völlig vor Diebstahl durch Schadprogramme auf Ihrem Computer schützt." - -#: ../../../src/ui.cpp:1235 -msgid "Wallet is unencrypted, please encrypt it first." -msgstr "Die Brieftasche ist nicht verschlüsselt, bitte verschlüsselen Sie sie erst." - -#: ../../../src/ui.cpp:1272 -msgid "Enter the new passphrase for the wallet." -msgstr "Geben Sie die neue Passphrase der Brieftasche ein." - -#: ../../../src/ui.cpp:1292 -msgid "Re-enter the new passphrase for the wallet." -msgstr "Geben Sie erneut die neue Passphrase der Brieftasche ein." - -#: ../../../src/ui.cpp:1324 -msgid "Wallet Passphrase Changed." -msgstr "Die Passphrase der Brieftasche wurde geändert." - -#: ../../../src/ui.cpp:1381 -#: ../../../src/ui.cpp:2814 -msgid "New Receiving Address" -msgstr "&Neue Empfangs-Adresse" - -#: ../../../src/ui.cpp:1382 -#: ../../../src/ui.cpp:2815 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Am besten verwenden Sie für jede Zahlung, die Sie erhalten, eine neue Adresse.\n" -"\n" -"Beschreibung" - -#: ../../../src/ui.cpp:1466 -msgid "Status: " -msgstr "Status: " - -#: ../../../src/ui.cpp:1471 -msgid ", has not been successfully broadcast yet" -msgstr ", wurde noch nicht erfolgreich übertragen" - -#: ../../../src/ui.cpp:1473 -#, c-format -msgid ", broadcast through %d node" -msgstr ", durch %d Teilnehmer übertragen" - -#: ../../../src/ui.cpp:1475 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", durch %d Teilnehmer übertragen" - -#: ../../../src/ui.cpp:1479 -msgid "Date: " -msgstr "Datum " - -#: ../../../src/ui.cpp:1487 -msgid "Source: Generated
" -msgstr "Quelle: Erzeugt
" - -#: ../../../src/ui.cpp:1493 -#: ../../../src/ui.cpp:1510 -msgid "From: " -msgstr "Von: " - -#: ../../../src/ui.cpp:1510 -msgid "unknown" -msgstr "Unbekannt" - -#: ../../../src/ui.cpp:1511 -#: ../../../src/ui.cpp:1535 -#: ../../../src/ui.cpp:1594 -msgid "To: " -msgstr "An: " - -#: ../../../src/ui.cpp:1514 -msgid " (yours, label: " -msgstr " (Eigene, Beschreibung: " - -#: ../../../src/ui.cpp:1516 -msgid " (yours)" -msgstr " (Eigene)" - -#: ../../../src/ui.cpp:1553 -#: ../../../src/ui.cpp:1565 -#: ../../../src/ui.cpp:1611 -#: ../../../src/ui.cpp:1628 -msgid "Credit: " -msgstr "Gutschrift: " - -#: ../../../src/ui.cpp:1555 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s reifen nach %d weiteren Blöcken)" - -#: ../../../src/ui.cpp:1557 -msgid "(not accepted)" -msgstr "(nicht akzeptiert)" - -#: ../../../src/ui.cpp:1602 -#: ../../../src/ui.cpp:1610 -#: ../../../src/ui.cpp:1625 -msgid "Debit: " -msgstr "Belastung: " - -#: ../../../src/ui.cpp:1616 -msgid "Transaction fee: " -msgstr "Überweisungsgebühr: " - -#: ../../../src/ui.cpp:1632 -msgid "Net amount: " -msgstr "Nettobetrag: " - -#: ../../../src/ui.cpp:1639 -msgid "Message:" -msgstr "Nachricht:" - -#: ../../../src/ui.cpp:1641 -msgid "Comment:" -msgstr "Kommentar:" - -#: ../../../src/ui.cpp:1644 -msgid "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." -msgstr "Erzeugte Münzen müssen 120 Blöcke lang reifen. Als Sie diesen Block erzeugt haben, wurde er an alle Teilnehmer übertragen, damit er zur Block-Kette hinzugefügt werden kann. Falls der Block es nicht in die Block-Kette schafft, wird die Beschreibung zu \"nicht akzeptiert\" geändert, und Sie können die Münzen nicht ausgeben. Dies kann manchmal passieren, wenn Sie und ein anderer Teilnehmer annähernd zeitgleich einen Block erzeugen." - -#: ../../../src/ui.cpp:1824 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Kann Datei autostart/bitcoin.desktop nicht schreiben" - -#: ../../../src/ui.cpp:1860 -msgid "Main" -msgstr "Haupt" - -#: ../../../src/ui.cpp:1870 -msgid "&Start Bitcoin on window system startup" -msgstr "Bitcoin beim &Systemstart ausführen" - -#: ../../../src/ui.cpp:1877 -msgid "&Minimize on close" -msgstr "Beim Schließen &minimieren" - -#: ../../../src/ui.cpp:2019 -#, c-format -msgid "version %s" -msgstr "Version %s" - -#: ../../../src/ui.cpp:2142 -msgid "Error in amount " -msgstr "Fehler in Betrag " - -#: ../../../src/ui.cpp:2142 -#: ../../../src/ui.cpp:2147 -#: ../../../src/ui.cpp:2152 -#: ../../../src/ui.cpp:2201 -#: ../../../src/uibase.cpp:61 -msgid "Send Coins" -msgstr "Überweisen" - -#: ../../../src/ui.cpp:2147 -msgid "Amount exceeds your balance " -msgstr "Der Betrag übersteigt Ihr Guthaben " - -#: ../../../src/ui.cpp:2152 -msgid "Total exceeds your balance when the " -msgstr "Der Betrag übersteigt Ihr Guthaben, wenn man die " - -#: ../../../src/ui.cpp:2152 -msgid " transaction fee is included " -msgstr " Überweisungsgebühr berücksichtigt " - -#: ../../../src/ui.cpp:2175 -msgid "Payment sent " -msgstr "Zahlung überwiesen " - -#: ../../../src/ui.cpp:2175 -#: ../../../src/ui.cpp:2184 -#: ../../../src/ui.cpp:2335 -#: ../../../src/ui.cpp:2499 -#: ../../../src/wallet.cpp:1099 -msgid "Sending..." -msgstr "Überweise ..." - -#: ../../../src/ui.cpp:2201 -msgid "Invalid address " -msgstr "Ungültige Adresse " - -#: ../../../src/ui.cpp:2256 -#, c-format -msgid "Sending %s to %s" -msgstr "Überweise %s an %s" - -#: ../../../src/ui.cpp:2329 -#: ../../../src/ui.cpp:2362 -msgid "CANCELLED" -msgstr "ANNULLIERT" - -#: ../../../src/ui.cpp:2333 -msgid "Cancelled" -msgstr "Annulliert" - -#: ../../../src/ui.cpp:2335 -msgid "Transfer cancelled " -msgstr "Überweisung annulliert " - -#: ../../../src/ui.cpp:2388 -msgid "Error: " -msgstr "Fehler: " - -#: ../../../src/ui.cpp:2402 -#: ../../../src/ui.cpp:2473 -#: ../../../src/wallet.cpp:1118 -msgid "Insufficient funds" -msgstr "Unzureichende Geldmittel" - -#: ../../../src/ui.cpp:2407 -msgid "Connecting..." -msgstr "Verbinde ..." - -#: ../../../src/ui.cpp:2412 -msgid "Unable to connect" -msgstr "Kann nicht verbinden" - -#: ../../../src/ui.cpp:2417 -msgid "Requesting public key..." -msgstr "Fordere öffentlichen Schlüssel an ..." - -#: ../../../src/ui.cpp:2429 -msgid "Received public key..." -msgstr "Öffentlicher Schlüssel empfangen ..." - -#: ../../../src/ui.cpp:2443 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Empfänger akzeptiert keine Überweisungen von IP-Adressen" - -#: ../../../src/ui.cpp:2445 -msgid "Transfer was not accepted" -msgstr "Überweisung wurde nicht akzeptiert" - -#: ../../../src/ui.cpp:2454 -msgid "Invalid response received" -msgstr "Ungültige Antwort erhalten" - -#: ../../../src/ui.cpp:2469 -msgid "Creating transaction..." -msgstr "Erstelle Überweisung ..." - -#: ../../../src/ui.cpp:2488 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Diese Überweisung benötigt eine Überweisungsgebühr von mindestens %s wegen ihres Betrags, Komplexität oder der Benutzung kürzlich erhaltener Geldmittel" - -#: ../../../src/ui.cpp:2490 -msgid "Transaction creation failed" -msgstr "Überweisung konnte nicht erzeugt werden." - -#: ../../../src/ui.cpp:2501 -msgid "Transaction aborted" -msgstr "Überweisung abgebrochen" - -#: ../../../src/ui.cpp:2509 -msgid "Lost connection, transaction cancelled" -msgstr "Verbindung verloren, Überweisungsvorgang abgebrochen" - -#: ../../../src/ui.cpp:2525 -msgid "Sending payment..." -msgstr "Überweise Zahlung ..." - -#: ../../../src/ui.cpp:2531 -msgid "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." -msgstr "Die Überweisung wurde abgelehnt. Das kann passieren, wenn einige der Münzen in Ihrer Brieftasche bereits ausgegeben wurden, z.B. weil Sie eine Kopie der Brieftasche (wallet.dat) gemacht haben. Bitcoins, die mithilfe der Kopie ausgegeben wurden, sind in dieser Brieftasche noch nicht als ausgegeben markiert worden." - -#: ../../../src/ui.cpp:2540 -msgid "Waiting for confirmation..." -msgstr "Warte auf Bestätigung ..." - -#: ../../../src/ui.cpp:2558 -msgid "" -"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." -msgstr "" -"Die Zahlung wurde überwiesen, aber der Empfänger konnte sie nicht bestätigen.\n" -"Die Überweisung wurde gespeichert und wird dem Empfänger gutgeschrieben,\n" -"aber die begleitende Nachricht wird leer sein." - -#: ../../../src/ui.cpp:2567 -msgid "Payment was sent, but an invalid response was received" -msgstr "Die Zahlung wurde überwiesen, aber die Antwort war fehlerhaft" - -#: ../../../src/ui.cpp:2573 -msgid "Payment completed" -msgstr "Zahlung ausgeführt" - -#: ../../../src/ui.cpp:2615 -#: ../../../src/ui.cpp:2762 -#: ../../../src/ui.cpp:2802 -msgid "Name" -msgstr "Name" - -#: ../../../src/ui.cpp:2616 -#: ../../../src/ui.cpp:2762 -#: ../../../src/ui.cpp:2802 -msgid "Address" -msgstr "Adresse" - -#: ../../../src/ui.cpp:2618 -#: ../../../src/ui.cpp:2774 -msgid "Label" -msgstr "Beschreibung" - -#: ../../../src/ui.cpp:2619 -#: ../../../src/uibase.cpp:847 -msgid "Bitcoin Address" -msgstr "Bitcoin-Adresse" - -#: ../../../src/ui.cpp:2744 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Dies ist eine Ihrer eigenen Adressen für den Zahlungseingang und kann deshalb nicht in das Adressbuch übernommen werden. " - -#: ../../../src/ui.cpp:2762 -#: ../../../src/ui.cpp:2768 -msgid "Edit Address" -msgstr "Adresse bearbeiten" - -#: ../../../src/ui.cpp:2774 -msgid "Edit Address Label" -msgstr "Beschreibung der Adresse bearbeiten" - -#: ../../../src/ui.cpp:2802 -#: ../../../src/ui.cpp:2808 -msgid "Add Address" -msgstr "Adresse hinzufügen" - -#: ../../../src/ui.cpp:2896 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2898 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Erzeuge" - -#: ../../../src/ui.cpp:2900 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (nicht verbunden)" - -#: ../../../src/ui.cpp:2979 -msgid "&Open Bitcoin" -msgstr "Bitcoin ö&ffnen" - -#: ../../../src/ui.cpp:2980 -msgid "&Send Bitcoins" -msgstr "Bitcoins &senden" - -#: ../../../src/ui.cpp:2981 -msgid "O&ptions..." -msgstr "O&ptionen ..." - -#: ../../../src/ui.cpp:2984 -#: ../../../src/uibase.cpp:25 -msgid "E&xit" -msgstr "B&eenden" - -#: ../../../src/ui.cpp:3210 -msgid "Program has crashed and will terminate. " -msgstr "Das Programm ist abgestürzt und wird beendet. " - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&Datei" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Ihre Empfangs-Adressen..." - -#: ../../../src/uibase.cpp:35 -msgid "&Encrypt Wallet..." -msgstr "Bri&eftasche verschlüsseln..." - -#: ../../../src/uibase.cpp:38 -msgid "&Change Wallet Encryption Passphrase..." -msgstr "Passphrase der Vers&chlüsselung der Brieftasche ändern..." - -#: ../../../src/uibase.cpp:42 -msgid "&Options..." -msgstr "&Optionen..." - -#: ../../../src/uibase.cpp:45 -msgid "&Settings" -msgstr "&Einstellungen" - -#: ../../../src/uibase.cpp:49 -msgid "&About..." -msgstr "Ü&ber..." - -#: ../../../src/uibase.cpp:52 -msgid "&Help" -msgstr "&Hilfe" - -#: ../../../src/uibase.cpp:62 -msgid "Address Book" -msgstr "Adressbuch" - -#: ../../../src/uibase.cpp:75 -msgid "Your Bitcoin Address:" -msgstr "Ihre Bitcoin-Adresse:" - -#: ../../../src/uibase.cpp:82 -msgid " &New... " -msgstr " &Neu... " - -#: ../../../src/uibase.cpp:85 -#: ../../../src/uibase.cpp:790 -#: ../../../src/uibase.cpp:893 -msgid " &Copy to Clipboard " -msgstr " In die Zwischenablage &kopieren " - -#: ../../../src/uibase.cpp:99 -msgid "Balance:" -msgstr "Kontostand:" - -#: ../../../src/uibase.cpp:115 -msgid " All" -msgstr " Alle" - -#: ../../../src/uibase.cpp:115 -msgid " Sent" -msgstr " Überwiesen" - -#: ../../../src/uibase.cpp:115 -msgid " Received" -msgstr " Erhalten" - -#: ../../../src/uibase.cpp:115 -msgid " In Progress" -msgstr " In Bearbeitung" - -#: ../../../src/uibase.cpp:136 -msgid "All Transactions" -msgstr "Alle Überweisungen" - -#: ../../../src/uibase.cpp:147 -msgid "Sent/Received" -msgstr "Überwiesen/Erhalten" - -#: ../../../src/uibase.cpp:158 -msgid "Sent" -msgstr "Überwiesen" - -#: ../../../src/uibase.cpp:169 -msgid "Received" -msgstr "Erhalten" - -#: ../../../src/uibase.cpp:312 -#: ../../../src/uibase.cpp:453 -#: ../../../src/uibase.cpp:552 -#: ../../../src/uibase.cpp:732 -#: ../../../src/uibase.cpp:793 -#: ../../../src/uibase.cpp:902 -#: ../../../src/uibase.cpp:991 -msgid "OK" -msgstr "OK" - -#: ../../../src/uibase.cpp:355 -msgid "&Start Bitcoin on system startup" -msgstr "Bitcoin beim &Systemstart ausführen" - -#: ../../../src/uibase.cpp:358 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "In den Infobereich statt in die Taskleiste &minimieren" - -#: ../../../src/uibase.cpp:361 -msgid "Map port using &UPnP" -msgstr "Portweiterleitung via &UPnP" - -#: ../../../src/uibase.cpp:364 -msgid "M&inimize to the tray on close" -msgstr "Beim Schließen in den Infobereich m&inimieren" - -#: ../../../src/uibase.cpp:370 -msgid "&Connect through socks4 proxy (requires restart to apply): " -msgstr "&Per Socks4-Proxy verbinden (erfordert einen Neustart): " - -#: ../../../src/uibase.cpp:381 -msgid "Proxy &IP:" -msgstr "Proxy-&IP:" - -#: ../../../src/uibase.cpp:389 -msgid " &Port:" -msgstr " &Port:" - -#: ../../../src/uibase.cpp:402 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Eine freiwillige Überweisungsgebühr pro KB, die dabei hilft, dass Ihre Überweisungen schnell durchgeführt werden. Die meisten Überweisungen sind 1 KB groß. Eine Gebühr von 0,01 ist empfohlen." - -#: ../../../src/uibase.cpp:409 -msgid "Pay transaction fee:" -msgstr "Überweisungsgebühr:" - -#: ../../../src/uibase.cpp:430 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:434 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:456 -#: ../../../src/uibase.cpp:678 -#: ../../../src/uibase.cpp:737 -#: ../../../src/uibase.cpp:796 -#: ../../../src/uibase.cpp:905 -#: ../../../src/uibase.cpp:994 -msgid "Cancel" -msgstr "Abbrechen" - -#: ../../../src/uibase.cpp:459 -msgid "&Apply" -msgstr "&Anwenden" - -#: ../../../src/uibase.cpp:518 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../src/uibase.cpp:524 -msgid "version" -msgstr "Version" - -#: ../../../src/uibase.cpp:535 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"Dies ist experimentelle Software.\n" -"\n" -"Lizensiert unter der MIT/X11 Software-Lizenz. Beachten Sie die beiliegende\n" -"Datei license.txt oder http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Dieses Produkt enthält Software, die vom OpenSSL-Projekt zur Nutzung im\n" -"OpenSSL Toolkit (http://www.openssl.org/) geschrieben wurde, sowie\n" -"kryptographische Software von Eric Young (eay@cryptsoft.com)\n" -"und UPnP-Software, entwickelt von Thomas Bernard." - -#: ../../../src/uibase.cpp:591 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Geben Sie eine Bitcoin-Adresse ein (z.B. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:605 -msgid "Pay &To:" -msgstr "Überweisen &An:" - -#: ../../../src/uibase.cpp:620 -msgid "&Paste" -msgstr "&Einfügen" - -#: ../../../src/uibase.cpp:623 -msgid " Address &Book..." -msgstr " Address&buch..." - -#: ../../../src/uibase.cpp:630 -msgid "&Amount:" -msgstr "&Betrag:" - -#: ../../../src/uibase.cpp:640 -msgid "T&ransfer:" -msgstr "Ü&berweisung:" - -#: ../../../src/uibase.cpp:646 -msgid " Standard" -msgstr " Standard" - -#: ../../../src/uibase.cpp:673 -msgid "&Send" -msgstr "Ü&berweisen" - -#: ../../../src/uibase.cpp:721 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Verbinde ..." - -#: ../../../src/uibase.cpp:771 -msgid "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." -msgstr "Dies sind Ihre Bitcoin-Adressen zum Empfang von Zahlungen. Sie sollten vielleicht jedem Überweisenden eine andere Adresse geben um nachvollziehen zu können von wem eine Zahlung stammt. Die markierte Adresse wird im Hauptfenster angezeigt." - -#: ../../../src/uibase.cpp:784 -#: ../../../src/uibase.cpp:896 -msgid "&Edit..." -msgstr "&Bearbeiten..." - -#: ../../../src/uibase.cpp:787 -#: ../../../src/uibase.cpp:899 -msgid " &New Address... " -msgstr " &Neue Adresse... " - -#: ../../../src/uibase.cpp:859 -msgid "Sending" -msgstr "Überweise" - -#: ../../../src/uibase.cpp:867 -msgid "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." -msgstr "Dies sind Ihre Bitcoin-Adressen zum Empfang von Zahlungen. Sie können jedem Überweisenden eine andere Adresse geben um nachvollziehen zu können von wem eine Zahlung stammt. Die markierte Adresse wird im Hauptfenster angezeigt." - -#: ../../../src/uibase.cpp:880 -msgid "Receiving" -msgstr "Empfange" - -#: ../../../src/uibase.cpp:890 -msgid "&Delete" -msgstr "&Löschen" - -#: ../../../src/util.cpp:869 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Warnung: Bitte überprüfen Sie die Richtigkeit des Datums und der Uhrzeit Ihres Computers. Falls Ihre Uhr falsch läuft, wird Bitcoin nicht richtig funktionieren." - -#: ../../../src/util.cpp:903 -msgid "beta" -msgstr "Beta" - -#: ../../../src/wallet.cpp:1083 -msgid "Error: Wallet locked, unable to create transaction " -msgstr "Fehler: Brieftasche ist verschlossen; Überweisung konnte nicht erstellt werden " - -#: ../../../src/wallet.cpp:1091 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Fehler: Diese Überweisung benötigt eine Überweisungsgebühr von mindestens %s wegen ihrer Größe, Komplexität oder der Benutzung erst kürzlich erhaltener Geldmittel " - -#: ../../../src/wallet.cpp:1093 -msgid "Error: Transaction creation failed " -msgstr "Fehler: Überweisung konnte nicht erzeugt werden. " - -#: ../../../src/wallet.cpp:1103 -msgid "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." -msgstr "Fehler: Die Überweisung wurde abgelehnt. Das kann passieren, wenn einige der Münzen in Ihrer Brieftasche bereits ausgegeben wurden, z.B. weil Sie eine Kopie der Brieftasche (wallet.dat) gemacht haben. Bitcoins, die mithilfe der Kopie ausgegeben wurden, sind in dieser Brieftasche noch nicht als ausgegeben markiert worden." - -#: ../../../src/wallet.cpp:1116 -msgid "Invalid amount" -msgstr "Ungültiger Betrag" - -#: ../../../src/uibase.h:151 -msgid "Transaction Details" -msgstr "Überweisungsdetails" - -#: ../../../src/uibase.h:203 -msgid "Options" -msgstr "Optionen" - -#: ../../../src/uibase.h:232 -msgid "About Bitcoin" -msgstr "Über Bitcoin" - -#: ../../../src/uibase.h:341 -msgid "Your Bitcoin Addresses" -msgstr "Ihre Bitcoin-Adressen" - -#~ msgid "Invalid bitcoin address" -#~ msgstr "Ungültige Bitcoin-Adresse" diff --git a/locale/eo/LC_MESSAGES/bitcoin.mo b/locale/eo/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index 5f898f2..0000000 Binary files a/locale/eo/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/eo/LC_MESSAGES/bitcoin.po b/locale/eo/LC_MESSAGES/bitcoin.po deleted file mode 100644 index e144cd8..0000000 --- a/locale/eo/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,1029 +0,0 @@ -# -# Danube , 2011. -# -msgid "" -msgstr "" -"Project-Id-Version: Bitcoin 0.3.22\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-15 18:18+0100\n" -"PO-Revision-Date: 2011-05-23 19:47+0200\n" -"Last-Translator: Danube \n" -"Language-Team: Esperanto \n" -"Language: Esperanto\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"Plural-Forms: j\n" -"X-Poedit-Language: Esperanto\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/net.cpp:1499 -#, c-format -msgid "" -"Unable to bind to port %d on this computer. Bitcoin is probably already " -"running." -msgstr "" -"Ne povis alligi al la porton %d ĉe ĉi tiu komputilo. Verŝajne la Bitmonero " -"jam estas rulanta." - -#: ../../../src/ui.cpp:202 -#, c-format -msgid "" -"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?" -msgstr "" -"Tiu ĉi transakcio transpasas la grandeclimiton. Tamen vi povas sendi ĝin " -"pagante transakcian koston de %s. Tiun koston ricevas la nodoj, kiuj " -"realigas vian transakcion kaj kiuj helpas subteni la reton. Ĉu vi volas pagi " -"la transakcian koston?" - -#: ../../../src/ui.cpp:301 -msgid "Status" -msgstr "Stato" - -#: ../../../src/ui.cpp:302 -msgid "Date" -msgstr "Dato" - -#: ../../../src/ui.cpp:303 -msgid "Description" -msgstr "Priskribo" - -#: ../../../src/ui.cpp:304 -msgid "Debit" -msgstr "Debeto" - -#: ../../../src/ui.cpp:305 -msgid "Credit" -msgstr "Kredito" - -#: ../../../src/ui.cpp:511 -#, c-format -msgid "Open for %d blocks" -msgstr "Malfermita por %d blokoj" - -#: ../../../src/ui.cpp:513 -#, c-format -msgid "Open until %s" -msgstr "Malfermita ĝis %s" - -#: ../../../src/ui.cpp:519 -#, c-format -msgid "%d/offline?" -msgstr "%d/senkonekta?" - -#: ../../../src/ui.cpp:521 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/ne konfirmita" - -#: ../../../src/ui.cpp:523 -#, c-format -msgid "%d confirmations" -msgstr "%d konfirmoj" - -#: ../../../src/ui.cpp:608 -msgid "Generated" -msgstr "Kreita" - -#: ../../../src/ui.cpp:616 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Kreita (%s maturiĝos post %d blokoj)" - -#: ../../../src/ui.cpp:620 -msgid "" -"Generated - Warning: This block was not received by any other nodes and will " -"probably not be accepted!" -msgstr "" -"Kreita - Averto: Tiu bloko ne estas ricevita de iuj ajn aliaj nodoj! " -"Verŝajne ĝi ne estos akceptita!" - -#: ../../../src/ui.cpp:624 -msgid "Generated (not accepted)" -msgstr "Kreita (ne akceptita)" - -#: ../../../src/ui.cpp:634 -msgid "From: " -msgstr "De: " - -#: ../../../src/ui.cpp:658 -msgid "Received with: " -msgstr "Ricevita per: " - -#: ../../../src/ui.cpp:704 -msgid "Payment to yourself" -msgstr "Pago al vi mem" - -#: ../../../src/ui.cpp:738 -msgid "To: " -msgstr "Al: " - -#: ../../../src/ui.cpp:1053 -msgid " Generating" -msgstr " Kreanta" - -#: ../../../src/ui.cpp:1055 -msgid "(not connected)" -msgstr "(ne konektita)" - -#: ../../../src/ui.cpp:1058 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d konektoj %d blokoj %d transakcioj" - -#: ../../../src/ui.cpp:1163 ../../../src/ui.cpp:2527 -msgid "New Receiving Address" -msgstr "Nova Ricevadreso" - -#: ../../../src/ui.cpp:1164 ../../../src/ui.cpp:2528 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Uzu novan adreson por ĉiu ajn pago kiu vi ricevos.\n" -"\n" -"Etikedo" - -#: ../../../src/ui.cpp:1233 -msgid "Status: " -msgstr "Stato: " - -#: ../../../src/ui.cpp:1238 -msgid ", has not been successfully broadcast yet" -msgstr ", ankoraŭ ne estas dissendita sukcese" - -#: ../../../src/ui.cpp:1240 -#, c-format -msgid ", broadcast through %d node" -msgstr ", estas dissendita per %d nodo" - -#: ../../../src/ui.cpp:1242 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", estas dissendita per %d nodoj" - -#: ../../../src/ui.cpp:1246 -msgid "Date: " -msgstr "Dato: " - -#: ../../../src/ui.cpp:1254 -msgid "Source: Generated
" -msgstr "Fonto: Kreita
" - -#: ../../../src/ui.cpp:1260 ../../../src/ui.cpp:1278 -msgid "From: " -msgstr "De: " - -#: ../../../src/ui.cpp:1278 -msgid "unknown" -msgstr "nekonata" - -#: ../../../src/ui.cpp:1279 ../../../src/ui.cpp:1303 ../../../src/ui.cpp:1362 -msgid "To: " -msgstr "Al: " - -#: ../../../src/ui.cpp:1282 -msgid " (yours, label: " -msgstr " (via, etikedo: " - -#: ../../../src/ui.cpp:1284 -msgid " (yours)" -msgstr " (via)" - -#: ../../../src/ui.cpp:1321 ../../../src/ui.cpp:1333 ../../../src/ui.cpp:1379 -#: ../../../src/ui.cpp:1396 -msgid "Credit: " -msgstr "Кredito: " - -#: ../../../src/ui.cpp:1323 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s maturiĝos post %d blokoj)" - -#: ../../../src/ui.cpp:1325 -msgid "(not accepted)" -msgstr "(ne akceptita)" - -#: ../../../src/ui.cpp:1370 ../../../src/ui.cpp:1378 ../../../src/ui.cpp:1393 -msgid "Debit: " -msgstr "Debeto: " - -#: ../../../src/ui.cpp:1384 -msgid "Transaction fee: " -msgstr "Transakcia kosto: " - -#: ../../../src/ui.cpp:1400 -msgid "Net amount: " -msgstr "Neta kvanto: " - -#: ../../../src/ui.cpp:1407 -msgid "Message:" -msgstr "Mesaĝo:" - -#: ../../../src/ui.cpp:1409 -msgid "Comment:" -msgstr "Komento:" - -#: ../../../src/ui.cpp:1412 -msgid "" -"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." -msgstr "" -"Kreitaj moneroj devas atendi dum 120 blokoj ĝis ili povas esti elspezita. " -"Kiam vi kreis tiun blokon, ĝi estis dissendita al la reton por esti " -"inkludita en la blokĉeno. Se ĝi malsukcesos esti inkludita en la ĉeno, ĝi " -"ŝanĝiĝos al \\\"ne akceptita\\\" kaj estos neelspezebla. Kelkfoje tio povas " -"okazi se alia nodo kreas blokon samtempe (dum kelkaj sekundoj)." - -#: ../../../src/ui.cpp:1592 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Ne povas skribi la dosieron autostart/bitcoin.desktop" - -#: ../../../src/ui.cpp:1628 -msgid "Main" -msgstr "Ĉefa" - -#: ../../../src/ui.cpp:1636 -msgid "&Start Bitcoin on window system startup" -msgstr "&Lanĉu Bitmoneron kiam vindozo ekas" - -#: ../../../src/ui.cpp:1643 -msgid "&Minimize on close" -msgstr "Nur &kaŝiĝi anstataŭ malfermiĝi" - -#: ../../../src/ui.cpp:1785 -#, c-format -msgid "version %s" -msgstr "versio %s" - -#: ../../../src/ui.cpp:1897 -msgid "Error in amount " -msgstr "Eraro en kvanto " - -#: ../../../src/ui.cpp:1897 ../../../src/ui.cpp:1902 ../../../src/ui.cpp:1907 -#: ../../../src/ui.cpp:1942 ../../../src/uibase.cpp:55 -msgid "Send Coins" -msgstr "Sendu monerojn" - -#: ../../../src/ui.cpp:1902 -msgid "Amount exceeds your balance " -msgstr "Kvanto transpasas vian bonhavon " - -#: ../../../src/ui.cpp:1907 -msgid "Total exceeds your balance when the " -msgstr "Entuta sumo transpasas vian bonhavon, se la " - -#: ../../../src/ui.cpp:1907 -msgid " transaction fee is included " -msgstr " transakcia kosto estas inkludita " - -#: ../../../src/ui.cpp:1925 -msgid "Payment sent " -msgstr "Pago sendita " - -#: ../../../src/ui.cpp:1925 ../../../src/ui.cpp:1930 ../../../src/ui.cpp:2074 -#: ../../../src/ui.cpp:2227 ../../../src/main.cpp:3999 -msgid "Sending..." -msgstr "Sendanta..." - -#: ../../../src/ui.cpp:1942 -msgid "Invalid address " -msgstr "Malvalida adreso " - -#: ../../../src/ui.cpp:1995 -#, c-format -msgid "Sending %s to %s" -msgstr "Sendanta %s al %s" - -#: ../../../src/ui.cpp:2068 ../../../src/ui.cpp:2101 -msgid "CANCELLED" -msgstr "MALVALIDIGITA" - -#: ../../../src/ui.cpp:2072 -msgid "Cancelled" -msgstr "Malvalidigita" - -#: ../../../src/ui.cpp:2074 -msgid "Transfer cancelled " -msgstr "Transfero malvalidigita " - -#: ../../../src/ui.cpp:2127 -msgid "Error: " -msgstr "Eraro: " - -#: ../../../src/ui.cpp:2141 ../../../src/ui.cpp:2212 -#: ../../../src/main.cpp:4018 -msgid "Insufficient funds" -msgstr "Malsufiĉa mono" - -#: ../../../src/ui.cpp:2146 -msgid "Connecting..." -msgstr "Konektanta..." - -#: ../../../src/ui.cpp:2151 -msgid "Unable to connect" -msgstr "Ne povas konekti" - -#: ../../../src/ui.cpp:2156 -msgid "Requesting public key..." -msgstr "Postulanta publikan ĉifroŝlosilon..." - -#: ../../../src/ui.cpp:2168 -msgid "Received public key..." -msgstr "Ricevinta publikan ĉifroŝlosilon..." - -#: ../../../src/ui.cpp:2182 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Adresato ne akceptas transakciojn senditajn per IP adreso" - -#: ../../../src/ui.cpp:2184 -msgid "Transfer was not accepted" -msgstr "Transfero ne estis akceptita" - -#: ../../../src/ui.cpp:2193 -msgid "Invalid response received" -msgstr "Malvalida respondo ricevita" - -#: ../../../src/ui.cpp:2208 -msgid "Creating transaction..." -msgstr "Kreanta la transakcion..." - -#: ../../../src/ui.cpp:2220 -#, c-format -msgid "" -"This transaction requires a transaction fee of at least %s because of its " -"amount, complexity, or use of recently received funds" -msgstr "" -"Tiu ĉi transakcio necesas transakcian koston de minimume %s, ĉar ĝia kvanto " -"aŭ ĝia komplekseco aŭ la uzo de mono lastatempe ricevita." - -#: ../../../src/ui.cpp:2222 -msgid "Transaction creation failed" -msgstr "La transakcio ne funkciis" - -#: ../../../src/ui.cpp:2229 -msgid "Transaction aborted" -msgstr "Transakcio malvalidigita" - -#: ../../../src/ui.cpp:2237 -msgid "Lost connection, transaction cancelled" -msgstr "Perdis la konekton, transakcio malvalidigita" - -#: ../../../src/ui.cpp:2253 -msgid "Sending payment..." -msgstr "Sendanta pagon..." - -#: ../../../src/ui.cpp:2259 -msgid "" -"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." -msgstr "" -"La transakcio estas malakceptita. Tio povas okazi se iom da moneroj en via " -"monujo jam estis elspezata, ekzemple se vi uzis kopion de la monujo wallet." -"dat kaj moneroj estis elspezita en la kopio, sed ne estas markata kiel " -"elspezata ĉi tie." - -#: ../../../src/ui.cpp:2268 -msgid "Waiting for confirmation..." -msgstr "Atendanta la konfirmon..." - -#: ../../../src/ui.cpp:2286 -msgid "" -"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." -msgstr "" -"La pago estis sendita, sed la ricevanto ne povis atesti ĝin.\n" -"La transakcio estas registrita kaj estos skribita en la krediton de la " -"ricevanto,\n" -"sed la komenta informo estas malplena." - -#: ../../../src/ui.cpp:2295 -msgid "Payment was sent, but an invalid response was received" -msgstr "Pago estis sendita, sed malvalida respondo estas ricivita" - -#: ../../../src/ui.cpp:2301 -msgid "Payment completed" -msgstr "Pago kompletigita" - -#: ../../../src/ui.cpp:2332 ../../../src/ui.cpp:2478 ../../../src/ui.cpp:2515 -msgid "Name" -msgstr "Nomo" - -#: ../../../src/ui.cpp:2333 ../../../src/ui.cpp:2478 ../../../src/ui.cpp:2515 -msgid "Address" -msgstr "Adreso" - -#: ../../../src/ui.cpp:2335 ../../../src/ui.cpp:2490 -msgid "Label" -msgstr "Etikedo" - -#: ../../../src/ui.cpp:2336 ../../../src/uibase.cpp:837 -msgid "Bitcoin Address" -msgstr "Bitmonera adreso" - -#: ../../../src/ui.cpp:2460 -msgid "" -"This is one of your own addresses for receiving payments and cannot be " -"entered in the address book. " -msgstr "" -"Tiu ĉi estas unu el viaj adresoj mem pro ricevi pagojn. Ĝi ne povas esti " -"enskribita en la adresaro. " - -#: ../../../src/ui.cpp:2478 ../../../src/ui.cpp:2484 -msgid "Edit Address" -msgstr "Editu adreson" - -#: ../../../src/ui.cpp:2490 -msgid "Edit Address Label" -msgstr "Editu adresan etikedon" - -#: ../../../src/ui.cpp:2515 ../../../src/ui.cpp:2521 -msgid "Add Address" -msgstr "Aldonu adreson" - -#: ../../../src/ui.cpp:2598 -msgid "Bitcoin" -msgstr "Bitmonero" - -#: ../../../src/ui.cpp:2600 -msgid "Bitcoin - Generating" -msgstr "Bitmonero - Kreanta" - -#: ../../../src/ui.cpp:2602 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (ne konektita)" - -#: ../../../src/ui.cpp:2681 -msgid "&Open Bitcoin" -msgstr "&Malfermu Bitmoneron" - -#: ../../../src/ui.cpp:2682 -msgid "&Send Bitcoins" -msgstr "&Sendu bitmonerojn" - -#: ../../../src/ui.cpp:2683 -msgid "O&ptions..." -msgstr "&Opcioj..." - -#: ../../../src/ui.cpp:2686 ../../../src/uibase.cpp:25 -msgid "E&xit" -msgstr "&Fermu" - -#: ../../../src/ui.cpp:2902 -msgid "Program has crashed and will terminate. " -msgstr "La programo kraŝis kaj haltiĝos. " - -#: ../../../src/main.cpp:1868 -msgid "Warning: Disk space is low " -msgstr "Averto: Malmulte da storloko " - -#: ../../../src/main.cpp:3992 -#, c-format -msgid "" -"Error: This transaction requires a transaction fee of at least %s because of " -"its amount, complexity, or use of recently received funds " -msgstr "" -"Eraro: Tiu ĉi transakcio necesas transakcian koston de minimume %s, ĉar ĝia " -"kvanto aŭ ĝia komplekseco aŭ la uzo de mono lastatempe ricevitaŭ " - -#: ../../../src/main.cpp:3994 -msgid "Error: Transaction creation failed " -msgstr "Eraro: La kreado de la transakcio ne funkciis " - -#: ../../../src/main.cpp:4003 -msgid "" -"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." -msgstr "" -"Eraro: La transakcio estas malakceptita. Tio povas okazi se iom da moneroj " -"en via monujo jam estas elspezita, ekzemple se vi uzis kopion de la monujo " -"wallet.dat kaj moneroj estis elspezita en la kopio, sed ne estas markata " -"kiel elspezata ĉi tie." - -#: ../../../src/main.cpp:4016 -msgid "Invalid amount" -msgstr "Malvalida kvanto" - -#: ../../../src/main.cpp:4023 -msgid "Invalid bitcoin address" -msgstr "Malvalida bitmonera adreso" - -#: ../../../src/rpc.cpp:1800 ../../../src/rpc.cpp:1802 -#, c-format -msgid "To use the %s option" -msgstr "Por uzi la %s optcion" - -#: ../../../src/rpc.cpp:1804 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file " -"permissions.\n" -msgstr "" -"Averto: %s, vi devas meti rpcpassword=\n" -"en la agorda dosiero: %s\n" -"Se la doriero ne ekzistas, kreu ĝin nurposedantlegeble.\n" - -#: ../../../src/rpc.cpp:1972 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file " -"permissions." -msgstr "" -"Vi devas meti rpcpassword= en la agorda dosiero:\n" -"%s\n" -"Se la dosiero ne ekzistas, kreu ĝin nurposedantlegeble." - -#: ../../../src/util.cpp:865 -msgid "" -"Warning: Please check that your computer's date and time are correct. If " -"your clock is wrong Bitcoin will not work properly." -msgstr "" -"Averto: Bonvole kontrolu ke la dato kaj la tempo de via komputilo estas " -"ĝusta. Se viaj horloĝo malĝustas, Bitmonero ne funkcios korekte." - -#: ../../../src/util.cpp:898 -msgid "beta" -msgstr "beta" - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&Dosiero" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Viaj ricevadresoj..." - -#: ../../../src/uibase.cpp:36 -msgid "&Options..." -msgstr "&Opcioj..." - -#: ../../../src/uibase.cpp:39 -msgid "&Settings" -msgstr "&Agordoj" - -#: ../../../src/uibase.cpp:43 -msgid "&About..." -msgstr "&Pri..." - -#: ../../../src/uibase.cpp:46 -msgid "&Help" -msgstr "&Helpo" - -#: ../../../src/uibase.cpp:56 -msgid "Address Book" -msgstr "Adresaro" - -#: ../../../src/uibase.cpp:69 -msgid "Your Bitcoin Address:" -msgstr "Via bitmonera adreso:" - -#: ../../../src/uibase.cpp:76 -msgid " &New... " -msgstr " &Nova... " - -#: ../../../src/uibase.cpp:79 ../../../src/uibase.cpp:780 -#: ../../../src/uibase.cpp:883 -msgid " &Copy to Clipboard " -msgstr " &Kopiu al la poŝon " - -#: ../../../src/uibase.cpp:93 -msgid "Balance:" -msgstr "Bonhavo:" - -#: ../../../src/uibase.cpp:109 -msgid " All" -msgstr " Ĉiom" - -#: ../../../src/uibase.cpp:109 -msgid " Sent" -msgstr " Sendita" - -#: ../../../src/uibase.cpp:109 -msgid " Received" -msgstr " Ricevita" - -#: ../../../src/uibase.cpp:109 -msgid " In Progress" -msgstr " Progresanta" - -#: ../../../src/uibase.cpp:130 -msgid "All Transactions" -msgstr "Ĉiuj transakcioj" - -#: ../../../src/uibase.cpp:141 -msgid "Sent/Received" -msgstr "Sendita/Ricevita" - -#: ../../../src/uibase.cpp:152 -msgid "Sent" -msgstr "Sendita" - -#: ../../../src/uibase.cpp:163 -msgid "Received" -msgstr "Ricevita" - -#: ../../../src/uibase.cpp:302 ../../../src/uibase.cpp:443 -#: ../../../src/uibase.cpp:542 ../../../src/uibase.cpp:722 -#: ../../../src/uibase.cpp:783 ../../../src/uibase.cpp:892 -#: ../../../src/uibase.cpp:981 -msgid "OK" -msgstr "Bone" - -#: ../../../src/uibase.cpp:345 -msgid "&Start Bitcoin on system startup" -msgstr "&Lanĉigu Bitmoneron kiam la sistemo ekas" - -#: ../../../src/uibase.cpp:348 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Kaŝu al la programan pleton anstataŭ al la programan linion" - -#: ../../../src/uibase.cpp:351 -msgid "Map port using &UPnP" -msgstr "Pordplusendo per &UPnP" - -#: ../../../src/uibase.cpp:354 -msgid "M&inimize to the tray on close" -msgstr "K&aŝu al la programan pleton anstataŭ malfermu ĝin" - -#: ../../../src/uibase.cpp:360 -msgid "&Connect through socks4 proxy: " -msgstr "&Konekti per socks4 prokuro: " - -#: ../../../src/uibase.cpp:371 -msgid "Proxy &IP:" -msgstr "Prokura &IP:" - -#: ../../../src/uibase.cpp:379 -msgid " &Port:" -msgstr " &Pordo:" - -#: ../../../src/uibase.cpp:392 -msgid "" -"Optional transaction fee per KB that helps make sure your transactions are " -"processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "" -"Volonta transakcia kosto po kilobajto, kiu helpas certigi ke viaj " -"transakcioj estas plenumita rapide. La plej transacioj estas 1 kilobajto. " -"Rekomendita transakcia kosto: 0.01" - -#: ../../../src/uibase.cpp:399 -msgid "Pay transaction fee:" -msgstr "Pagu transakcian koston:" - -#: ../../../src/uibase.cpp:420 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:424 -msgid "" -"// [don't translate] Let's not start multiple pages until the first page is " -"filled up" -msgstr "" - -#: ../../../src/uibase.cpp:446 ../../../src/uibase.cpp:668 -#: ../../../src/uibase.cpp:727 ../../../src/uibase.cpp:786 -#: ../../../src/uibase.cpp:895 ../../../src/uibase.cpp:984 -msgid "Cancel" -msgstr "Malvalidigu" - -#: ../../../src/uibase.cpp:449 -msgid "&Apply" -msgstr "&Apliku" - -#: ../../../src/uibase.cpp:508 -msgid "Bitcoin " -msgstr "Bitmonero " - -#: ../../../src/uibase.cpp:514 -msgid "version" -msgstr "versio" - -#: ../../../src/uibase.cpp:525 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in " -"the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written " -"by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Kopirajto (c) 2009-2011 Disvolviĝuloj de Bitmonero\n" -"\n" -"Tio ĉi estas eksperimenta softvaro.\n" -"\n" -"Distribita laŭ la MIT/X11 softvara licenco. Vidu la kundonitan dosieron \n" -"license.txt aŭ http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Tio ĉi produkto inkludas softvaron, kiu estas disvolviĝita de la OpenSSL " -"projekto por uzo en la \n" -"OpenSSL Toolkit (http://www.openssl.org/), kaj kriptografia softvaro verkita " -"de \n" -"Eric Young (eay@cryptsoft.com) kaj UPnP softvaro verkita de Thomas Bernard." - -#: ../../../src/uibase.cpp:581 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Entajpu bitmoneran adreson (ekz. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:595 -msgid "Pay &To:" -msgstr "Pagu &al:" - -#: ../../../src/uibase.cpp:610 -msgid "&Paste" -msgstr "&Elpoŝigi" - -#: ../../../src/uibase.cpp:613 -msgid " Address &Book..." -msgstr " &Adresaro..." - -#: ../../../src/uibase.cpp:620 -msgid "&Amount:" -msgstr "&Kvanto:" - -#: ../../../src/uibase.cpp:630 -msgid "T&ransfer:" -msgstr "T&ransfero:" - -#: ../../../src/uibase.cpp:636 -msgid " Standard" -msgstr " Normo" - -#: ../../../src/uibase.cpp:663 -msgid "&Send" -msgstr "&Sendu" - -#: ../../../src/uibase.cpp:711 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Konektanta..." - -#: ../../../src/uibase.cpp:761 -msgid "" -"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." -msgstr "" -"Tiuj ĉi estas viaj bitmonerajn adresojn por ricevi pagojn. Vi povus voli " -"doni malsaman adreson al ĉiuj sendanto, por ke vi povas vidi kiu pagis vin. " -"La markita adreso estas vidigita en la ĉefa fenestro." - -#: ../../../src/uibase.cpp:774 ../../../src/uibase.cpp:886 -msgid "&Edit..." -msgstr "&Redakti..." - -#: ../../../src/uibase.cpp:777 ../../../src/uibase.cpp:889 -msgid " &New Address... " -msgstr " &Nova adreso... " - -#: ../../../src/uibase.cpp:849 -msgid "Sending" -msgstr "Sendanta" - -#: ../../../src/uibase.cpp:857 -msgid "" -"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." -msgstr "" -"Tiuj estas viaj bitmoneraj adresoj por ricevi pagojn. Vi povas doni malsaman " -"adreson al ĉiuj sendanto, por ke vi povas vidi kiu pagis vin. La markita " -"adreso estas vidigita en la ĉefa fenestro." - -#: ../../../src/uibase.cpp:870 -msgid "Receiving" -msgstr "Ricevanta" - -#: ../../../src/uibase.cpp:880 -msgid "&Delete" -msgstr "&Viŝu" - -#: ../../../src/init.cpp:147 -msgid "Bitcoin version" -msgstr "Versio de Bitmonero" - -#: ../../../src/init.cpp:148 -msgid "Usage:" -msgstr "Uzado:" - -#: ../../../src/init.cpp:150 -msgid "Send command to -server or bitcoind\n" -msgstr "Sendu komandon al aŭ -server aŭ bitcoind\n" - -#: ../../../src/init.cpp:151 -msgid "List commands\n" -msgstr "Listigu komandojn\n" - -#: ../../../src/init.cpp:152 -msgid "Get help for a command\n" -msgstr "Ricevu helpon de komando\n" - -#: ../../../src/init.cpp:153 -msgid "Options:\n" -msgstr "Opcioj:\n" - -#: ../../../src/init.cpp:154 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Elektu agordan dosieron (defaŭlto: bitcoin.conf)\n" - -#: ../../../src/init.cpp:155 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "Elektu pid dosieron (defaŭlto: bitcoind.pid)\n" - -#: ../../../src/init.cpp:156 -msgid "Generate coins\n" -msgstr "Generate coins\n" - -#: ../../../src/init.cpp:157 -msgid "Don't generate coins\n" -msgstr "Ne kreu monerojn\n" - -#: ../../../src/init.cpp:158 -msgid "Start minimized\n" -msgstr "Lanĉiĝu kaŝe\n" - -#: ../../../src/init.cpp:159 -msgid "Specify data directory\n" -msgstr "Elektu datenara dosierujon\n" - -#: ../../../src/init.cpp:160 -msgid "Connect through socks4 proxy\n" -msgstr "Konektu per socks4 prokuro\n" - -#: ../../../src/init.cpp:161 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Permesu DNS solvon por aldoni nodon kaj konekti\n" - -#: ../../../src/init.cpp:162 -msgid "Add a node to connect to\n" -msgstr "Aldonu nodon konektotan\n" - -#: ../../../src/init.cpp:163 -msgid "Connect only to the specified node\n" -msgstr "Konektu nur al specifan nodon\n" - -#: ../../../src/init.cpp:164 -msgid "Don't accept connections from outside\n" -msgstr "Ne akceptu eksterajn konektojn\n" - -#: ../../../src/init.cpp:167 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Ne provu uzi UPnP-on por la pordplusendo\n" - -#: ../../../src/init.cpp:169 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Provu uzi UPnP-on por la pordplusendo\n" - -#: ../../../src/init.cpp:172 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Kosto po kilobajto aldonota al viaj transakcioj sendataj\n" - -#: ../../../src/init.cpp:174 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Akceptu kaj komandliniajn kaj JSON-RPC-ajn komandojn\n" - -#: ../../../src/init.cpp:177 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Lanĉigu fone kiel demono kaj akceptu komandojn\n" - -#: ../../../src/init.cpp:179 -msgid "Use the test network\n" -msgstr "Uzu la testreton\n" - -#: ../../../src/init.cpp:180 -msgid "Username for JSON-RPC connections\n" -msgstr "Salutnomo por JSON-RPC-aj konektoj\n" - -#: ../../../src/init.cpp:181 -msgid "Password for JSON-RPC connections\n" -msgstr "Pasvorto por JSON-RPC-aj konektoj\n" - -#: ../../../src/init.cpp:182 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Aŭskultu JSON-RPC-ajn konektojn ĉe (defaŭlto: 8332)\n" - -#: ../../../src/init.cpp:183 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Permesu JSON-RPC-ajn konektojn el specifa IP-adreso\n" - -#: ../../../src/init.cpp:184 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Sendu komandojn al nodo rulanta ĉe (defaŭlto: 127.0.0.1)\n" - -#: ../../../src/init.cpp:185 -msgid "Set key pool size to (default: 100)\n" -msgstr "Difinu la grandecon de la ĉifroŝlosilaro kiel (defaŭlto: 100)\n" - -#: ../../../src/init.cpp:186 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Reskandu la blokĉenon por mankantaj transakcioj en la monujo\n" - -#: ../../../src/init.cpp:190 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"SSL-aj opcioj: (Legu la Vikipedion de Bitmonero pri la agordaĵaj instruoj)\n" - -#: ../../../src/init.cpp:191 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Uzu OpenSSL (https) por JSON-RPC-aj konektoj\n" - -#: ../../../src/init.cpp:192 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Argorda doesiero de la servilo (defaŭlto: server.cert)\n" - -#: ../../../src/init.cpp:193 -msgid "Server private key (default: server.pem)\n" -msgstr "Privata ĉifroŝlosilo de la servilo (defaŭlto: server.pem)\n" - -#: ../../../src/init.cpp:194 -msgid "" -"Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:" -"@STRENGTH)\n" -msgstr "" -"\"Akcepteblaj ĉifroj (defaŭlto: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:" -"@STRENGTH)\n" - -#: ../../../src/init.cpp:198 -msgid "This help message\n" -msgstr "Ĉi tiu helpa mesaĝo\n" - -#: ../../../src/init.cpp:335 -#, c-format -msgid "" -"Cannot obtain a lock on data directory %s. Bitcoin is probably already " -"running." -msgstr "" -"Ne povas ŝlosi la datenan dosierujon %s. Verŝajne alia instanco de la " -"programo Bitmonero jam rulas." - -#: ../../../src/init.cpp:361 -msgid "Error loading addr.dat \n" -msgstr "Eraro ŝarĝante la dosieron addr.dat \n" - -#: ../../../src/init.cpp:367 -msgid "Error loading blkindex.dat \n" -msgstr "Eraro ŝarĝante la dosieron blkindex.dat \n" - -#: ../../../src/init.cpp:374 -msgid "Error loading wallet.dat \n" -msgstr "Eraro ŝarĝante la dosieron wallet.dat \n" - -#: ../../../src/init.cpp:454 -msgid "Invalid -proxy address" -msgstr "Malvalida prokuradreso (-proxy)" - -#: ../../../src/init.cpp:477 -msgid "Invalid amount for -paytxfee=" -msgstr "Malvalida kvanto de la transakcia kosto (-paytxfee=)" - -#: ../../../src/init.cpp:481 -msgid "" -"Warning: -paytxfee is set very high. This is the transaction fee you will " -"pay if you send a transaction." -msgstr "" -"Averto: La transakcia kosto (-paytxfee) estas tre alta. Tiu ĉi estas la " -"kosto, kiun vi devos pagi kiam vi sendos transakcion." - -#: ../../../src/uibase.h:147 -msgid "Transaction Details" -msgstr "Detaloj pri transakcio" - -#: ../../../src/uibase.h:199 -msgid "Options" -msgstr "Detaloj pri transakcio" - -#: ../../../src/uibase.h:228 -msgid "About Bitcoin" -msgstr "Pri Bitmonero" - -#: ../../../src/uibase.h:337 -msgid "Your Bitcoin Addresses" -msgstr "Viaj Bitmoneraj adresoj" diff --git a/locale/es/LC_MESSAGES/bitcoin.mo b/locale/es/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index e22b894..0000000 Binary files a/locale/es/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/es/LC_MESSAGES/bitcoin.po b/locale/es/LC_MESSAGES/bitcoin.po deleted file mode 100644 index 1787c48..0000000 --- a/locale/es/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,1076 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-09-06 21:58+0100\n" -"PO-Revision-Date: 2011-09-06 22:19+0100\n" -"Last-Translator: Alex B \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: \n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/init.cpp:163 -msgid "Bitcoin version" -msgstr "versión Bitcoin" - -#: ../../../src/init.cpp:164 -msgid "Usage:" -msgstr "Uso:" - -#: ../../../src/init.cpp:166 -msgid "Send command to -server or bitcoind\n" -msgstr "Envia comando a bitcoin lanzado con -server u bitcoind\n" - -#: ../../../src/init.cpp:167 -msgid "List commands\n" -msgstr "Muestra comandos\n" - -#: ../../../src/init.cpp:168 -msgid "Get help for a command\n" -msgstr "Recibir ayuda para un comando\n" - -#: ../../../src/init.cpp:169 -msgid "Options:\n" -msgstr "Opciones:\n" - -#: ../../../src/init.cpp:170 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Especifica archivo de configuración (predeterminado: bitcoin.conf)\n" - -#: ../../../src/init.cpp:171 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "Especifica archivo pid (predeterminado: bitcoin.pid)\n" - -#: ../../../src/init.cpp:172 -msgid "Generate coins\n" -msgstr "Genera monedas\n" - -#: ../../../src/init.cpp:173 -msgid "Don't generate coins\n" -msgstr "No generar monedas\n" - -#: ../../../src/init.cpp:174 -msgid "Start minimized\n" -msgstr "Arranca minimizado\n" - -#: ../../../src/init.cpp:175 -msgid "Specify data directory\n" -msgstr "Especifica directorio para los datos\n" - -#: ../../../src/init.cpp:176 -msgid "Specify connection timeout (in milliseconds)\n" -msgstr "Especifica tiempo de espera para conexion (en milisegundos)\n" - -#: ../../../src/init.cpp:177 -msgid "Connect through socks4 proxy\n" -msgstr "Conecta mediante proxy socks4\n" - -#: ../../../src/init.cpp:178 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Permite búsqueda DNS para addnode y connect\n" - -#: ../../../src/init.cpp:179 -msgid "Add a node to connect to\n" -msgstr "Agrega un nodo para conectarse\n" - -#: ../../../src/init.cpp:180 -msgid "Connect only to the specified node\n" -msgstr "Conecta solo al nodo especificado\n" - -#: ../../../src/init.cpp:181 -msgid "Don't accept connections from outside\n" -msgstr "No aceptar conexiones desde el exterior\n" - -#: ../../../src/init.cpp:184 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "No intentar usar UPnP para mapear el puerto de entrada\n" - -#: ../../../src/init.cpp:186 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Intenta usar UPnP para mapear el puerto de escucha.\n" - -#: ../../../src/init.cpp:189 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Comisión por KB para agregar a las transacciones que envias\n" - -#: ../../../src/init.cpp:191 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Aceptar comandos consola y JSON-RPC\n" - -#: ../../../src/init.cpp:194 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Correr como demonio y acepta comandos\n" - -#: ../../../src/init.cpp:196 -msgid "Use the test network\n" -msgstr "Usa la red de pruebas\n" - -#: ../../../src/init.cpp:197 -msgid "Username for JSON-RPC connections\n" -msgstr "Usuario para las conexiones JSON-RPC\n" - -#: ../../../src/init.cpp:198 -msgid "Password for JSON-RPC connections\n" -msgstr "Contraseña para las conexiones JSON-RPC\n" - -#: ../../../src/init.cpp:199 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Escucha conexiones JSON-RPC en el puerto (predeterminado: 8332)\n" - -#: ../../../src/init.cpp:200 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Permite conexiones JSON-RPC desde la dirección IP especificada\n" - -#: ../../../src/init.cpp:201 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Envia comando al nodo situado en (predeterminado: 127.0.0.1)\n" - -#: ../../../src/init.cpp:202 -msgid "Set key pool size to (default: 100)\n" -msgstr "Ajusta el numero de claves en reserva (predeterminado: 100)\n" - -#: ../../../src/init.cpp:203 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Rescanea la cadena de bloques para transacciones perdidas de la cartera\n" - -#: ../../../src/init.cpp:207 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"Opciones SSL: (ver la Bitcoin Wiki para instrucciones de configuración SSL)\n" - -#: ../../../src/init.cpp:208 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Usa OpenSSL (https) para las conexiones JSON-RPC\n" - -#: ../../../src/init.cpp:209 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Archivo de certificado del servidor (Predeterminado: server.cert)\n" - -#: ../../../src/init.cpp:210 -msgid "Server private key (default: server.pem)\n" -msgstr "Clave privada del servidor (Predeterminado: server.pem)\n" - -#: ../../../src/init.cpp:211 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Cifrados aceptados (Predeterminado: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:215 -msgid "This help message\n" -msgstr "Este mensaje de ayuda\n" - -#: ../../../src/init.cpp:353 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "No se puede obtener permiso de trabajo en la carpeta de datos %s. Probablemente Bitcoin ya se está ejecutando." - -#: ../../../src/init.cpp:379 -msgid "Error loading addr.dat \n" -msgstr "Error cargando addr.dat \n" - -#: ../../../src/init.cpp:385 -msgid "Error loading blkindex.dat \n" -msgstr "Error cargando blkindex.dat \n" - -#: ../../../src/init.cpp:396 -msgid "Error loading wallet.dat: Wallet corrupted \n" -msgstr "Error cargando wallet.dat: Cartera dañada \n" - -#: ../../../src/init.cpp:398 -msgid "Error loading wallet.dat: Wallet requires newer version of Bitcoin \n" -msgstr "Error cargando el archivo wallet.dat: Se necesita una versión mas nueva de Bitcoin \n" - -#: ../../../src/init.cpp:400 -msgid "Error loading wallet.dat \n" -msgstr "Error cargando wallet.dat \n" - -#: ../../../src/init.cpp:489 -msgid "Invalid -proxy address" -msgstr "Dirección -proxy no valida" - -#: ../../../src/init.cpp:514 -msgid "Invalid amount for -paytxfee=" -msgstr "Cantidad inválida para -paytxfee=" - -#: ../../../src/init.cpp:518 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Precaución: -paytxfee es muy alta. Esta es la comisión que pagarás si envias una transacción." - -#: ../../../src/main.cpp:1398 -msgid "Warning: Disk space is low " -msgstr "Cuidado: Poco espacio en el disco duro" - -#: ../../../src/net.cpp:1610 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "No es posible escuchar en el puerto %d en este ordenador. Probablemente Bitcoin ya se está ejecutando." - -#: ../../../src/rpc.cpp:2005 -#: ../../../src/rpc.cpp:2007 -#, c-format -msgid "To use the %s option" -msgstr "Para usar la opción %s" - -#: ../../../src/rpc.cpp:2009 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Precaución: %s, debes especificar rpcpassword=\n" -"en el archivo de configuración: %s\n" -"Si el archivo no existe, debes crearlo con permisos de lectura al autor solamente.\n" - -#: ../../../src/rpc.cpp:2185 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"Debes especificar rpcpassword= en el archivo de configuración:\n" -"%s\n" -"Si el archivo no existe, debes crearlo con permisos de lectura al autor solamente." - -#: ../../../src/ui.cpp:217 -#, c-format -msgid "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?" -msgstr "Esta transacción supera el límite. Puedes seguir enviandola incluyendo una comisión de %s que se va a repartir entre los nodos que procesan su transacción y ayudan a mantener la red. ¿Quieres seguir con la transacción?" - -#: ../../../src/ui.cpp:261 -#: ../../../src/ui.cpp:1247 -msgid "Enter the current passphrase to the wallet." -msgstr "Introduce la contraseña actual de la cartera." - -#: ../../../src/ui.cpp:262 -#: ../../../src/ui.cpp:1183 -#: ../../../src/ui.cpp:1200 -#: ../../../src/ui.cpp:1248 -#: ../../../src/ui.cpp:1272 -#: ../../../src/ui.cpp:1292 -msgid "Passphrase" -msgstr "Contraseña" - -#: ../../../src/ui.cpp:268 -msgid "Please supply the current wallet decryption passphrase." -msgstr "Por favor introduce la contraseña actual de la cartera." - -#: ../../../src/ui.cpp:276 -#: ../../../src/ui.cpp:1257 -#: ../../../src/ui.cpp:1314 -msgid "The passphrase entered for the wallet decryption was incorrect." -msgstr "La contraseña introducida para decriptar la cartera es incorrecta." - -#: ../../../src/ui.cpp:353 -msgid "Status" -msgstr "Estado" - -#: ../../../src/ui.cpp:354 -msgid "Date" -msgstr "Fecha" - -#: ../../../src/ui.cpp:355 -msgid "Description" -msgstr "Descripción" - -#: ../../../src/ui.cpp:356 -msgid "Debit" -msgstr "Débito" - -#: ../../../src/ui.cpp:357 -msgid "Credit" -msgstr "Crédito" - -#: ../../../src/ui.cpp:568 -#, c-format -msgid "Open for %d blocks" -msgstr "Abrir para %d bloques" - -#: ../../../src/ui.cpp:570 -#, c-format -msgid "Open until %s" -msgstr "Abrir hasta %s" - -#: ../../../src/ui.cpp:576 -#, c-format -msgid "%d/offline?" -msgstr "%d/desconectado?" - -#: ../../../src/ui.cpp:578 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/no confirmado" - -#: ../../../src/ui.cpp:580 -#, c-format -msgid "%d confirmations" -msgstr "%d confirmaciones" - -#: ../../../src/ui.cpp:665 -msgid "Generated" -msgstr "Generado" - -#: ../../../src/ui.cpp:673 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Generado (%s madura en %d bloques)" - -#: ../../../src/ui.cpp:677 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Generado - Cuidado: Este bloque no se recibió de otros nodos y probablemente no sea aceptado!" - -#: ../../../src/ui.cpp:681 -msgid "Generated (not accepted)" -msgstr "Generado (no aceptado)" - -#: ../../../src/ui.cpp:691 -msgid "From: " -msgstr "De: " - -#: ../../../src/ui.cpp:715 -msgid "Received with: " -msgstr "Recibido con: " - -#: ../../../src/ui.cpp:760 -msgid "Payment to yourself" -msgstr "Pago a ti mismo" - -#: ../../../src/ui.cpp:794 -msgid "To: " -msgstr "Para: " - -#: ../../../src/ui.cpp:1109 -msgid " Generating" -msgstr " Generando" - -#: ../../../src/ui.cpp:1111 -msgid "(not connected)" -msgstr "(no conectado)" - -#: ../../../src/ui.cpp:1114 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d conexiones %d bloques %d transacciones" - -#: ../../../src/ui.cpp:1171 -msgid "Wallet already encrypted." -msgstr "La cartera ya esta encriptada." - -#: ../../../src/ui.cpp:1182 -msgid "" -"Enter the new passphrase to the wallet.\n" -"Please use a passphrase of 10 or more random characters, or eight or more words." -msgstr "" -"Introduce la nueva contraseña de cartera.\n" -"Por favor utiliza un contraseña de 10 o mas caracteres aleatorios, u ocho o mas palabras." - -#: ../../../src/ui.cpp:1189 -#: ../../../src/ui.cpp:1280 -msgid "Error: The supplied passphrase was too short." -msgstr "Error: La contraseña introducida es demasiado corta." - -#: ../../../src/ui.cpp:1193 -msgid "" -"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?" -msgstr "" -"ATENCION: ¡Si encriptas tu cartera y pierdes la contraseña perderas TODOS TUS BITCOINS!\n" -"¿Seguro que quieres seguir encriptando la cartera?" - -#: ../../../src/ui.cpp:1199 -msgid "Please re-enter your new wallet passphrase." -msgstr "Por favor vuelve introducir la nueva contraseña." - -#: ../../../src/ui.cpp:1208 -#: ../../../src/ui.cpp:1302 -msgid "Error: the supplied passphrases didn't match." -msgstr "Error: las contraseñas no son identicas." - -#: ../../../src/ui.cpp:1218 -msgid "Wallet encryption failed." -msgstr "Encriptacion de cartera fallida." - -#: ../../../src/ui.cpp:1225 -msgid "" -"Wallet Encrypted.\n" -"Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer." -msgstr "" -"Cartera Encriptada.\n" -"Recuerda que encriptando tu cartera no garantiza mantener a salvo tus bitcoins en caso de tener viruses en el ordenador." - -#: ../../../src/ui.cpp:1236 -msgid "Wallet is unencrypted, please encrypt it first." -msgstr "Cartera no encriptada, intenta encriptar primero." - -#: ../../../src/ui.cpp:1271 -msgid "Enter the new passphrase for the wallet." -msgstr "Introduce la nueva contraseña para la cartera." - -#: ../../../src/ui.cpp:1291 -msgid "Re-enter the new passphrase for the wallet." -msgstr "Reintroduce la nueva contraseña para la cartera." - -#: ../../../src/ui.cpp:1323 -msgid "Wallet Passphrase Changed." -msgstr "Contraseña de cartera cambiada." - -#: ../../../src/ui.cpp:1379 -#: ../../../src/ui.cpp:2825 -msgid "New Receiving Address" -msgstr "Nueva dirección de recepción" - -#: ../../../src/ui.cpp:1380 -#: ../../../src/ui.cpp:2826 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Debes usar una nueva dirección para cada pago que usted recibe.\n" -"\n" -"Etiqueta" - -#: ../../../src/ui.cpp:1464 -msgid "Status: " -msgstr "Estado: " - -#: ../../../src/ui.cpp:1469 -msgid ", has not been successfully broadcast yet" -msgstr ", no ha sido emitido satisfactoriamente todavía" - -#: ../../../src/ui.cpp:1471 -#, c-format -msgid ", broadcast through %d node" -msgstr ", emitido mediante %d nodo" - -#: ../../../src/ui.cpp:1473 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", emitido mediante %d nodos" - -#: ../../../src/ui.cpp:1477 -msgid "Date: " -msgstr "Fecha: " - -#: ../../../src/ui.cpp:1485 -msgid "Source: Generated
" -msgstr "Fuente: Generado
" - -#: ../../../src/ui.cpp:1491 -#: ../../../src/ui.cpp:1508 -msgid "From: " -msgstr "De: " - -#: ../../../src/ui.cpp:1508 -msgid "unknown" -msgstr "desconocido" - -#: ../../../src/ui.cpp:1509 -#: ../../../src/ui.cpp:1533 -#: ../../../src/ui.cpp:1592 -msgid "To: " -msgstr "Para: " - -#: ../../../src/ui.cpp:1512 -msgid " (yours, label: " -msgstr "(tuya, etiqueta: " - -#: ../../../src/ui.cpp:1514 -msgid " (yours)" -msgstr "(tuya)" - -#: ../../../src/ui.cpp:1551 -#: ../../../src/ui.cpp:1563 -#: ../../../src/ui.cpp:1609 -#: ../../../src/ui.cpp:1626 -msgid "Credit: " -msgstr "Crédito: " - -#: ../../../src/ui.cpp:1553 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s madura en %d bloques)" - -#: ../../../src/ui.cpp:1555 -msgid "(not accepted)" -msgstr "(no aceptada)" - -#: ../../../src/ui.cpp:1600 -#: ../../../src/ui.cpp:1608 -#: ../../../src/ui.cpp:1623 -msgid "Debit: " -msgstr "Débito: " - -#: ../../../src/ui.cpp:1614 -msgid "Transaction fee: " -msgstr "Comisión transacción: " - -#: ../../../src/ui.cpp:1630 -msgid "Net amount: " -msgstr "Cantidad total: " - -#: ../../../src/ui.cpp:1637 -msgid "Message:" -msgstr "Mensaje:" - -#: ../../../src/ui.cpp:1639 -msgid "Comment:" -msgstr "Comentario:" - -#: ../../../src/ui.cpp:1642 -msgid "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." -msgstr "Las monedas generadas deben esperar 120 bloques antes de ser gastadas. Cuando has generado este bloque se emitió a la red para ser agregado en la cadena de bloques. Si falla al incluirse en la cadena, cambiará a \"no aceptado\" y no se podrá gastar. Esto puede ocurrir ocasionalmente si otro nodo genera un bloque casi al mismo tiempo que el tuyo." - -#: ../../../src/ui.cpp:1826 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "No se puede escribir el fichero autostart/bitcoin.desktop" - -#: ../../../src/ui.cpp:1862 -msgid "Main" -msgstr "Principal" - -#: ../../../src/ui.cpp:1872 -msgid "&Start Bitcoin on window system startup" -msgstr "&Arranca Bitcoin al iniciar el sistema" - -#: ../../../src/ui.cpp:1879 -msgid "&Minimize on close" -msgstr "&Minimiza al cerrar" - -#: ../../../src/ui.cpp:2021 -#, c-format -msgid "version %s" -msgstr "versión %s" - -#: ../../../src/ui.cpp:2144 -msgid "Error in amount " -msgstr "Error en la cantidad " - -#: ../../../src/ui.cpp:2144 -#: ../../../src/ui.cpp:2149 -#: ../../../src/ui.cpp:2154 -#: ../../../src/ui.cpp:2207 -#: ../../../src/uibase.cpp:61 -msgid "Send Coins" -msgstr "Envia monedas" - -#: ../../../src/ui.cpp:2149 -msgid "Amount exceeds your balance " -msgstr "La cantidad excede su balance " - -#: ../../../src/ui.cpp:2154 -msgid "Total exceeds your balance when the " -msgstr "El total excede su balance cuando el " - -#: ../../../src/ui.cpp:2154 -msgid " transaction fee is included " -msgstr " la comisión de la transacción está incluida " - -#: ../../../src/ui.cpp:2181 -msgid "Payment sent " -msgstr "Pago enviado " - -#: ../../../src/ui.cpp:2181 -#: ../../../src/ui.cpp:2191 -#: ../../../src/ui.cpp:2341 -#: ../../../src/ui.cpp:2506 -#: ../../../src/wallet.cpp:1088 -msgid "Sending..." -msgstr "Enviando..." - -#: ../../../src/ui.cpp:2207 -msgid "Invalid address " -msgstr "Dirección inválida " - -#: ../../../src/ui.cpp:2262 -#, c-format -msgid "Sending %s to %s" -msgstr "Enviando %s a %s" - -#: ../../../src/ui.cpp:2335 -#: ../../../src/ui.cpp:2368 -msgid "CANCELLED" -msgstr "CANCELADO" - -#: ../../../src/ui.cpp:2339 -msgid "Cancelled" -msgstr "Cancelado" - -#: ../../../src/ui.cpp:2341 -msgid "Transfer cancelled " -msgstr "Transferencia cancelada " - -#: ../../../src/ui.cpp:2394 -msgid "Error: " -msgstr "Error: " - -#: ../../../src/ui.cpp:2408 -#: ../../../src/ui.cpp:2477 -#: ../../../src/wallet.cpp:1106 -msgid "Insufficient funds" -msgstr "Fondos insuficientes" - -#: ../../../src/ui.cpp:2413 -msgid "Connecting..." -msgstr "Conectando..." - -#: ../../../src/ui.cpp:2418 -msgid "Unable to connect" -msgstr "No es posible conectar" - -#: ../../../src/ui.cpp:2423 -msgid "Requesting public key..." -msgstr "Pidiendo clave pública..." - -#: ../../../src/ui.cpp:2435 -msgid "Received public key..." -msgstr "Clave pública recibida..." - -#: ../../../src/ui.cpp:2449 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "El destinatario no accepta transacciones enviadas a direcciones IP" - -#: ../../../src/ui.cpp:2451 -msgid "Transfer was not accepted" -msgstr "La transferencia no fue aceptada" - -#: ../../../src/ui.cpp:2460 -msgid "Invalid response received" -msgstr "Respuesta inválida recibida" - -#: ../../../src/ui.cpp:2473 -msgid "Creating transaction..." -msgstr "Creando transacción..." - -#: ../../../src/ui.cpp:2496 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Esta transacción requiere una comisión de al menos %s por su cantidad, complejidad o uso de fondos recibidos recientemente" - -#: ../../../src/ui.cpp:2498 -msgid "Transaction creation failed" -msgstr "Fallo al crear la transacción." - -#: ../../../src/ui.cpp:2508 -msgid "Transaction aborted" -msgstr "Transacción abortada" - -#: ../../../src/ui.cpp:2516 -msgid "Lost connection, transaction cancelled" -msgstr "Conexión perdida, transacción cancelada" - -#: ../../../src/ui.cpp:2532 -msgid "Sending payment..." -msgstr "Enviando pago..." - -#: ../../../src/ui.cpp:2544 -msgid "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." -msgstr "La transacción fue rechazada. Esto puede haber ocurrido si alguna de las monedas ya estaba gastada o si ha usado una copia de wallet.dat y las monedas se gastaron en la copia pero no se han marcado como gastadas aqui." - -#: ../../../src/ui.cpp:2553 -msgid "Waiting for confirmation..." -msgstr "Esperando confirmación..." - -#: ../../../src/ui.cpp:2570 -msgid "" -"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." -msgstr "" -"El pago se ha enviado, pero el receptor no pudo verificarlo.\n" -"La transacción se grabó y el saldo fue transferido\n" -"pero la información de los comentarios quedará en blanco." - -#: ../../../src/ui.cpp:2579 -msgid "Payment was sent, but an invalid response was received" -msgstr "El pago fue enviado, pero se recibió una respuesta inválida" - -#: ../../../src/ui.cpp:2585 -msgid "Payment completed" -msgstr "Pago completado" - -#: ../../../src/ui.cpp:2627 -#: ../../../src/ui.cpp:2773 -#: ../../../src/ui.cpp:2813 -msgid "Name" -msgstr "Nombre" - -#: ../../../src/ui.cpp:2628 -#: ../../../src/ui.cpp:2773 -#: ../../../src/ui.cpp:2813 -msgid "Address" -msgstr "Dirección" - -#: ../../../src/ui.cpp:2630 -#: ../../../src/ui.cpp:2785 -msgid "Label" -msgstr "Etiqueta" - -#: ../../../src/ui.cpp:2631 -#: ../../../src/uibase.cpp:847 -msgid "Bitcoin Address" -msgstr "Dirección Bitcoin" - -#: ../../../src/ui.cpp:2755 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Esta es una de sus direcciones para recibir pagos y no puede incluirse en la libreta de direcciones. " - -#: ../../../src/ui.cpp:2773 -#: ../../../src/ui.cpp:2779 -msgid "Edit Address" -msgstr "Editar dirección" - -#: ../../../src/ui.cpp:2785 -msgid "Edit Address Label" -msgstr "Editar etiqueta dirección" - -#: ../../../src/ui.cpp:2813 -#: ../../../src/ui.cpp:2819 -msgid "Add Address" -msgstr "Agregar dirección" - -#: ../../../src/ui.cpp:2906 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2908 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Generando" - -#: ../../../src/ui.cpp:2910 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (no conectado)" - -#: ../../../src/ui.cpp:2989 -msgid "&Open Bitcoin" -msgstr "&Abrir Bitcoin" - -#: ../../../src/ui.cpp:2990 -msgid "&Send Bitcoins" -msgstr "&Enviar Bitcoin" - -#: ../../../src/ui.cpp:2991 -msgid "O&ptions..." -msgstr "O&pciones" - -#: ../../../src/ui.cpp:2994 -#: ../../../src/uibase.cpp:25 -msgid "E&xit" -msgstr "S&alir" - -#: ../../../src/ui.cpp:3220 -msgid "Program has crashed and will terminate. " -msgstr "El programa ha detectado un error y va a cerrarse. " - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&Archivo" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Tus direcciones de recepción..." - -#: ../../../src/uibase.cpp:35 -msgid "&Encrypt Wallet..." -msgstr "&Encriptar cartera..." - -#: ../../../src/uibase.cpp:38 -msgid "&Change Wallet Encryption Passphrase..." -msgstr "&Cambiar contraseña de cartera..." - -#: ../../../src/uibase.cpp:42 -msgid "&Options..." -msgstr "&Opciones..." - -#: ../../../src/uibase.cpp:45 -msgid "&Settings" -msgstr "&Configuración" - -#: ../../../src/uibase.cpp:49 -msgid "&About..." -msgstr "&Acerca de..." - -#: ../../../src/uibase.cpp:52 -msgid "&Help" -msgstr "&Ayuda" - -#: ../../../src/uibase.cpp:62 -msgid "Address Book" -msgstr "Libreta de direcciones" - -#: ../../../src/uibase.cpp:75 -msgid "Your Bitcoin Address:" -msgstr "Su dirección Bitcoin:" - -#: ../../../src/uibase.cpp:82 -msgid " &New... " -msgstr " &Nuevo... " - -#: ../../../src/uibase.cpp:85 -#: ../../../src/uibase.cpp:790 -#: ../../../src/uibase.cpp:893 -msgid " &Copy to Clipboard " -msgstr " &Copiar al portapapeles " - -#: ../../../src/uibase.cpp:99 -msgid "Balance:" -msgstr "Balance:" - -#: ../../../src/uibase.cpp:115 -msgid " All" -msgstr " Todo" - -#: ../../../src/uibase.cpp:115 -msgid " Sent" -msgstr " Enviado" - -#: ../../../src/uibase.cpp:115 -msgid " Received" -msgstr " Recibido" - -#: ../../../src/uibase.cpp:115 -msgid " In Progress" -msgstr " En progreso" - -#: ../../../src/uibase.cpp:136 -msgid "All Transactions" -msgstr "Todas las transacciones" - -#: ../../../src/uibase.cpp:147 -msgid "Sent/Received" -msgstr "Enviado/Recibido" - -#: ../../../src/uibase.cpp:158 -msgid "Sent" -msgstr "Enviado" - -#: ../../../src/uibase.cpp:169 -msgid "Received" -msgstr "Recibido" - -#: ../../../src/uibase.cpp:312 -#: ../../../src/uibase.cpp:453 -#: ../../../src/uibase.cpp:552 -#: ../../../src/uibase.cpp:732 -#: ../../../src/uibase.cpp:793 -#: ../../../src/uibase.cpp:902 -#: ../../../src/uibase.cpp:991 -msgid "OK" -msgstr "OK" - -#: ../../../src/uibase.cpp:355 -msgid "&Start Bitcoin on system startup" -msgstr "&Arranca Bitcoin al iniciar el sistema" - -#: ../../../src/uibase.cpp:358 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Minimiza a la bandeja en vez de a la barra de tareas" - -#: ../../../src/uibase.cpp:361 -msgid "Map port using &UPnP" -msgstr "Mapea el puerto usando &UPnP" - -#: ../../../src/uibase.cpp:364 -msgid "M&inimize to the tray on close" -msgstr "M&inimiza a la bandeja al cerrar" - -#: ../../../src/uibase.cpp:370 -msgid "&Connect through socks4 proxy (requires restart to apply): " -msgstr "&Conecta usando un proxy socks4 (necesita reinicio): " - -#: ../../../src/uibase.cpp:381 -msgid "Proxy &IP:" -msgstr "&IP proxy:" - -#: ../../../src/uibase.cpp:389 -msgid " &Port:" -msgstr " &Puerto:" - -#: ../../../src/uibase.cpp:402 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Comisión opcional a las transacciones por KB que ayuda a asegurar que tus transacciones son procesadas rápidamente. La mayoría de las transacciones son de 1KB. Se recomienda una comisión de 0.01." - -#: ../../../src/uibase.cpp:409 -msgid "Pay transaction fee:" -msgstr "Comisión de la transacción:" - -#: ../../../src/uibase.cpp:430 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:434 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:456 -#: ../../../src/uibase.cpp:678 -#: ../../../src/uibase.cpp:737 -#: ../../../src/uibase.cpp:796 -#: ../../../src/uibase.cpp:905 -#: ../../../src/uibase.cpp:994 -msgid "Cancel" -msgstr "Cancelar" - -#: ../../../src/uibase.cpp:459 -msgid "&Apply" -msgstr "&Aplicar" - -#: ../../../src/uibase.cpp:518 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../src/uibase.cpp:524 -msgid "version" -msgstr "versión" - -#: ../../../src/uibase.cpp:535 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2010 Bitcoin Developers\n" -"\n" -"Este es un software experimental.\n" -"\n" -"Distribuido bajo la licencia MIT/X11, vea el archivo adjunto \n" -"license.txt o http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Este producto incluye software desarrollado por OpenSSL Project para su uso en el\n" -"OpenSSL Toolkit (http://www.openssl.org/) y software criptográfico escrito por \n" -"Eric Young (eay@cryptsoft.com) y UPnP software escrito por Thomas Bernard." - -#: ../../../src/uibase.cpp:591 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Introduce una dirección Bitcoin (ejemplo: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:605 -msgid "Pay &To:" -msgstr "Pagar &A:" - -#: ../../../src/uibase.cpp:620 -msgid "&Paste" -msgstr "&Pegar" - -#: ../../../src/uibase.cpp:623 -msgid " Address &Book..." -msgstr " Libreta &Direcciones..." - -#: ../../../src/uibase.cpp:630 -msgid "&Amount:" -msgstr "&Cantidad:" - -#: ../../../src/uibase.cpp:640 -msgid "T&ransfer:" -msgstr "T&ransferir:" - -#: ../../../src/uibase.cpp:646 -msgid " Standard" -msgstr " Estándar" - -#: ../../../src/uibase.cpp:673 -msgid "&Send" -msgstr "&Envia" - -#: ../../../src/uibase.cpp:721 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Conenctando..." - -#: ../../../src/uibase.cpp:771 -msgid "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." -msgstr "Estas son tus direcciones Bitcoin para recibir pagos. Puedes darle una diferente a cada emisor para saber quien te está pagando. La dirección resaltada se muestra en la ventana principal." - -#: ../../../src/uibase.cpp:784 -#: ../../../src/uibase.cpp:896 -msgid "&Edit..." -msgstr "&Edita..." - -#: ../../../src/uibase.cpp:787 -#: ../../../src/uibase.cpp:899 -msgid " &New Address... " -msgstr " &Nueva dirección... " - -#: ../../../src/uibase.cpp:859 -msgid "Sending" -msgstr "Enviando" - -#: ../../../src/uibase.cpp:867 -msgid "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." -msgstr "Estas son tus direcciones Bitcoin para recibir pagos. Puedes darle una diferente a cada emisor para saber quien te está pagando. La dirección resaltada se muestra en la ventana principal." - -#: ../../../src/uibase.cpp:880 -msgid "Receiving" -msgstr "Recibiendo" - -#: ../../../src/uibase.cpp:890 -msgid "&Delete" -msgstr "&Borra" - -#: ../../../src/util.cpp:870 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Precaución: Por favor revisa que la fecha y hora de tu ordenador son correctas. Si tu reloj está mal Bitcoin no funcionará correctamente." - -#: ../../../src/util.cpp:904 -msgid "beta" -msgstr "beta" - -#: ../../../src/wallet.cpp:1073 -msgid "Error: Wallet locked, unable to create transaction " -msgstr "Error: Cartera bloqueada, no se puede crear la transacción" - -#: ../../../src/wallet.cpp:1081 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Error: Esta transacción requiere de una comisión de al menos %s por su cantidad, complejidad o uso de fondos recibidos recientemente " - -#: ../../../src/wallet.cpp:1083 -msgid "Error: Transaction creation failed " -msgstr "Error: La creación de la transacción falló " - -#: ../../../src/wallet.cpp:1092 -msgid "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." -msgstr "Error: La transacción fue rechazada. Esto puede haber ocurrido si alguna de las monedas ya estaba gastada o si ha usado una copia de wallet.dat y las monedas se gastaron en la copia pero no se han marcado como gastadas aqui." - -#: ../../../src/wallet.cpp:1104 -msgid "Invalid amount" -msgstr "Cantidad erronea" - -#: ../../../src/uibase.h:151 -msgid "Transaction Details" -msgstr "Detalles de la transacción" - -#: ../../../src/uibase.h:203 -msgid "Options" -msgstr "Opciones" - -#: ../../../src/uibase.h:232 -msgid "About Bitcoin" -msgstr "Acerca de Bitcoin" - -#: ../../../src/uibase.h:341 -msgid "Your Bitcoin Addresses" -msgstr "Sus direcciones Bitcoin" - -#~ msgid "Invalid bitcoin address" -#~ msgstr "Dirección Bitcoin inválida" diff --git a/locale/fr/LC_MESSAGES/bitcoin.mo b/locale/fr/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index f60e15b..0000000 Binary files a/locale/fr/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/fr/LC_MESSAGES/bitcoin.po b/locale/fr/LC_MESSAGES/bitcoin.po deleted file mode 100644 index a714e01..0000000 --- a/locale/fr/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,849 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-05-26 22:02-0000\n" -"PO-Revision-Date: 2010-07-15 02:48+0100\n" -"Last-Translator: aidos\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../init.cpp:174 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "" - -#: ../../../init.cpp:388 -#, fuzzy -msgid "Usage:" -msgstr "" - -#: ../../../init.cpp:390 -msgid "Send command to bitcoin running with -server or -daemon\n" -msgstr "" - -#: ../../../init.cpp:391 -msgid "Get help for a command\n" -msgstr "" - -#: ../../../init.cpp:392 -msgid "List commands\n" -msgstr "" - -#: ../../../init.cpp:393 -msgid "Options:\n" -msgstr "Options:\n" - -#: ../../../init.cpp:394 -msgid "Generate coins\n" -msgstr "Générer des pièces\n" - -#: ../../../init.cpp:395 -msgid "Don't generate coins\n" -msgstr "Ne pas générer de pièce\n" - -#: ../../../init.cpp:396 -msgid "Start minimized\n" -msgstr "Démarrer réduit\n" - -#: ../../../init.cpp:397 -msgid "Specify data directory\n" -msgstr "Spécifier le repertoire de donnée\n" - -#: ../../../init.cpp:398 -msgid "Connect through socks4 proxy\n" -msgstr "Connection à travers un proxy SOCKS4\n" - -#: ../../../init.cpp:399 -msgid "Add a node to connect to\n" -msgstr "Ajouter un nœud auquel se connecter\n" - -#: ../../../init.cpp:400 -msgid "Connect only to the specified node\n" -msgstr "Se connecter uniquement au nœud spécifié\n" - -#: ../../../init.cpp:401 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "" - -#: ../../../init.cpp:402 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "" - -#: ../../../init.cpp:403 -msgid "This help message\n" -msgstr "Ce message d'aide\n" - -#: ../../../init.cpp:503 -msgid "Error loading addr.dat \n" -msgstr "Erreur lors du chargement de addr.dat \n" - -#: ../../../init.cpp:509 -msgid "Error loading blkindex.dat \n" -msgstr "Erreur lors du chargement de blkindex.dat \n" - -#: ../../../init.cpp:516 -msgid "Error loading wallet.dat \n" -msgstr "Erreur lors du chargement de wallet.dat \n" - -#: ../../../init.cpp:584 -msgid "Invalid -proxy address" -msgstr "Adresse -proxy invalide" - -#: ../../../init.cpp:677 -msgid "Program has crashed and will terminate. " -msgstr "Le programme a planté et va s'arrêter. " - -#: ../../../main.cpp:1480 -#: ../../../main.cpp:1482 -msgid "Warning: Disk space is low " -msgstr "Attention: L'espace disque est presque épuisé " - -#: ../../../main.cpp:3094 -#, c-format -msgid "Error: This is an oversized transaction that requires a transaction fee of %s " -msgstr "Erreur: Ceci est une transaction de taille excessive qui nécessite %s de frais de transaction " - -#: ../../../main.cpp:3096 -msgid "Error: Transaction creation failed " -msgstr "Erreur: La création de la transaction a échouée " - -#: ../../../main.cpp:3101 -#: ../../../ui.cpp:1776 -#: ../../../ui.cpp:1778 -#: ../../../ui.cpp:1919 -#: ../../../ui.cpp:2068 -msgid "Sending..." -msgstr "Envoi..." - -#: ../../../main.cpp:3105 -msgid "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." -msgstr "Erreur: La transaction a été rejetée. Ceci peut arriver si une partie des pièces de votre porte-monnaie ont déjà été dépensées, par exemple si vous avez utilisé une copie de wallet.dat et que les pièces ont été dépensées dans la copie mais pas marquées comme telles ici." - -#: ../../../main.cpp:3117 -msgid "Invalid amount" -msgstr "Quantité invalide" - -#: ../../../main.cpp:3119 -#: ../../../ui.cpp:1986 -#: ../../../ui.cpp:2053 -msgid "Insufficient funds" -msgstr "Fonds insuffisants" - -#: ../../../main.cpp:3124 -msgid "Invalid bitcoin address" -msgstr "Adresse bitcoin incorrecte" - -#: ../../../ui.cpp:189 -#, c-format -msgid "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?" -msgstr "Cette transaction est au delà de la limite de taille. Vous pouvez tout de même l'envoyer moyennant des frais de %s, qui ira au noeud gérant votre transaction, et qui aidera à soutenir le réseau. Acceptez-vous de payer ces frais ?" - -#: ../../../ui.cpp:286 -msgid "Status" -msgstr "État" - -#: ../../../ui.cpp:287 -msgid "Date" -msgstr "Date" - -#: ../../../ui.cpp:288 -msgid "Description" -msgstr "Description" - -#: ../../../ui.cpp:289 -msgid "Debit" -msgstr "Débit" - -#: ../../../ui.cpp:290 -msgid "Credit" -msgstr "Crédit" - -#: ../../../ui.cpp:489 -#, c-format -msgid "Open for %d blocks" -msgstr "Ouvert pour %d blocks" - -#: ../../../ui.cpp:491 -#, c-format -msgid "Open until %s" -msgstr "Ouvert jusqu'au %s" - -#: ../../../ui.cpp:497 -#, c-format -msgid "%d/offline?" -msgstr "%d/hors-ligne?" - -#: ../../../ui.cpp:499 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/non confirmé" - -#: ../../../ui.cpp:501 -#, c-format -msgid "%d confirmations" -msgstr "%d confirmations" - -#: ../../../ui.cpp:584 -msgid "Generated" -msgstr "Généré" - -#: ../../../ui.cpp:592 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Généré (%s mûrira dans %d blocks)" - -#: ../../../ui.cpp:596 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Généré - Attention: Ce block n'a été reçu par aucun autre nœud et ne sera probablement pas accepté!" - -#: ../../../ui.cpp:600 -msgid "Generated (not accepted)" -msgstr "Généré (pas accepté)" - -#: ../../../ui.cpp:610 -msgid "From: " -msgstr "De: " - -#: ../../../ui.cpp:634 -msgid "Received with: " -msgstr "Reçu depuis: " - -#: ../../../ui.cpp:676 -msgid "Payment to yourself" -msgstr "Paiement à vous-même" - -#: ../../../ui.cpp:713 -msgid "To: " -msgstr "À: " - -#: ../../../ui.cpp:1009 -msgid " Generating" -msgstr " Génération en cours" - -#: ../../../ui.cpp:1011 -msgid "(not connected)" -msgstr "(non connecté)" - -#: ../../../ui.cpp:1014 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d connexions %d blocks %d transactions" - -#: ../../../ui.cpp:1128 -#: ../../../ui.cpp:2368 -msgid "New Receiving Address" -msgstr "Nouvelle adresse de reception" - -#: ../../../ui.cpp:1129 -#: ../../../ui.cpp:2369 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"C'est une bonne politique d'utiliser une nouvelle adresse pour \n" -"chaque paiement reçu.\n" -"\n" -"Intitulé" - -#: ../../../ui.cpp:1198 -msgid "Status: " -msgstr "État: " - -#: ../../../ui.cpp:1203 -msgid ", has not been successfully broadcast yet" -msgstr ", n'a pas encore été diffusé avec succès" - -#: ../../../ui.cpp:1205 -#, c-format -msgid ", broadcast through %d node" -msgstr ", diffusé à travers %d nœud" - -#: ../../../ui.cpp:1207 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", diffusé à travers %d nœuds" - -#: ../../../ui.cpp:1211 -msgid "Date: " -msgstr "Date: " - -#: ../../../ui.cpp:1219 -msgid "Source: Generated
" -msgstr "Source: Généré
" - -#: ../../../ui.cpp:1225 -#: ../../../ui.cpp:1243 -msgid "From: " -msgstr "De: " - -#: ../../../ui.cpp:1243 -msgid "unknown" -msgstr "inconnu" - -#: ../../../ui.cpp:1244 -#: ../../../ui.cpp:1268 -#: ../../../ui.cpp:1327 -msgid "To: " -msgstr "À: " - -#: ../../../ui.cpp:1247 -msgid " (yours, label: " -msgstr " (vous, intitulé: " - -#: ../../../ui.cpp:1249 -msgid " (yours)" -msgstr " (vous)" - -#: ../../../ui.cpp:1286 -#: ../../../ui.cpp:1298 -#: ../../../ui.cpp:1361 -msgid "Credit: " -msgstr "Crédit: " - -#: ../../../ui.cpp:1288 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s mûrira dans %d blocks)" - -#: ../../../ui.cpp:1290 -msgid "(not accepted)" -msgstr "(pas accepté)" - -#: ../../../ui.cpp:1335 -#: ../../../ui.cpp:1358 -msgid "Debit: " -msgstr "Débit: " - -#: ../../../ui.cpp:1349 -msgid "Transaction fee: " -msgstr "Redevance de transaction : " - -#: ../../../ui.cpp:1365 -msgid "Net amount: " -msgstr "Montant net: " - -#: ../../../ui.cpp:1372 -msgid "Message:" -msgstr "Message:" - -#: ../../../ui.cpp:1375 -msgid "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." -msgstr "Les pièces générées doivent attendrent 120 blocks avant de pouvoir être dépensées. Quand vous avez généré ce block, il a été diffusé au réseau pour être ajouté à la chaîne de block. Si il échoue à être intégré à la chaîne, il changera à \"pas accepté\" et ne sera pas dépensable. Ceci peut parfois arriver si un autre nœud génère un block à quelques secondes du vôtre." - -#: ../../../ui.cpp:1442 -msgid "Main" -msgstr "Général" - -#: ../../../ui.cpp:1447 -#, fuzzy -msgid "&Start Bitcoin on window system startup" -msgstr "&Lancer Bitcoin au démarrage du système" - -#: ../../../ui.cpp:1454 -msgid "&Minimize on close" -msgstr "&Réduire à la fermeture" - -#: ../../../ui.cpp:1610 -#, c-format -msgid "version %s%s BETA" -msgstr "version %s%s BETA" - -#: ../../../ui.cpp:1696 -msgid "Will appear as \"From: Unknown\"" -msgstr "Apparaîtra ainsi \"De: Inconnu\"" - -#: ../../../ui.cpp:1681 -msgid "n/a" -msgstr "Inconnu" - -#: ../../../ui.cpp:1681 -msgid "Unknown" -msgstr "Inconnu" - -#: ../../../ui.cpp:1697 -msgid "Can't include a message when sending to a Bitcoin address" -msgstr "Impossible d'inclure un message lors d'un envoi à une adresse Bitcoin" - -#: ../../../ui.cpp:1750 -msgid "Error in amount " -msgstr "Erreur dans le montant " - -#: ../../../ui.cpp:1750 -#: ../../../ui.cpp:1755 -#: ../../../ui.cpp:1760 -#: ../../../ui.cpp:1786 -#: ../../../uibase.cpp:59 -msgid "Send Coins" -msgstr "Envoyer des pièces" - -#: ../../../ui.cpp:1755 -msgid "Amount exceeds your balance " -msgstr "Le montant dépasse votre solde " - -#: ../../../ui.cpp:1760 -msgid "Total exceeds your balance when the " -msgstr "Le total dépasse votre solde quand les " - -#: ../../../ui.cpp:1760 -msgid " transaction fee is included " -msgstr " de frais de transaction sont ajoutés " - -#: ../../../ui.cpp:1776 -msgid "Payment sent " -msgstr "Paiement envoyé " - -#: ../../../ui.cpp:1786 -msgid "Invalid address " -msgstr "Adresse invalide " - -#: ../../../ui.cpp:1840 -#, c-format -msgid "Sending %s to %s" -msgstr "Envoi de %s à %s" - -#: ../../../ui.cpp:1913 -#: ../../../ui.cpp:1946 -msgid "CANCELLED" -msgstr "ANNULÉ" - -#: ../../../ui.cpp:1917 -msgid "Cancelled" -msgstr "Annulé" - -#: ../../../ui.cpp:1919 -msgid "Transfer cancelled " -msgstr "Transfert annulé " - -#: ../../../ui.cpp:1972 -msgid "Error: " -msgstr "Erreur: " - -#: ../../../ui.cpp:1991 -msgid "Connecting..." -msgstr "Connexion..." - -#: ../../../ui.cpp:1996 -msgid "Unable to connect" -msgstr "Impossible de se connecter" - -#: ../../../ui.cpp:2001 -msgid "Requesting public key..." -msgstr "Requête de la clef publique..." - -#: ../../../ui.cpp:2013 -msgid "Received public key..." -msgstr "Clef publique reçue..." - -#: ../../../ui.cpp:2025 -msgid "Transfer was not accepted" -msgstr "Le transfer n'a pas été accepté" - -#: ../../../ui.cpp:2034 -msgid "Invalid response received" -msgstr "Réponse invalide reçue" - -#: ../../../ui.cpp:2049 -msgid "Creating transaction..." -msgstr "Création de la transaction..." - -#: ../../../ui.cpp:2061 -#, c-format -msgid "This is an oversized transaction that requires a transaction fee of %s" -msgstr "Ceci est une transaction de taille excessive qui nécessite des frais de transaction de %s" - -#: ../../../ui.cpp:2063 -msgid "Transaction creation failed" -msgstr "La création de la transaction a échouée" - -#: ../../../ui.cpp:2070 -msgid "Transaction aborted" -msgstr "Transaction interrompue" - -#: ../../../ui.cpp:2078 -msgid "Lost connection, transaction cancelled" -msgstr "Connexion perdue, transaction annulée" - -#: ../../../ui.cpp:2094 -msgid "Sending payment..." -msgstr "Envoi du paiement..." - -#: ../../../ui.cpp:2100 -msgid "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." -msgstr "La transaction a été rejetée. Ceci peut arriver si une partie des pièces de votre porte-monnaie ont déjà été dépensées, par exemple si vous avez utilisé une copie de wallet.dat et que les pièces ont été dépensées dans la copie mais pas marquées comme telles ici." - -#: ../../../ui.cpp:2109 -msgid "Waiting for confirmation..." -msgstr "Attente de confirmation..." - -#: ../../../ui.cpp:2127 -msgid "" -"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." -msgstr "" -"Le paiement a été envoyé, mais le destinataire n'a pas pû le vérifier.\n" -"La transaction est enregistrée et sera créditée au destinataire,\n" -"mais le commentaire sera vide." - -#: ../../../ui.cpp:2136 -msgid "Payment was sent, but an invalid response was received" -msgstr "Le paiement a été envoyé, mais une réponse invalide a été reçue" - -#: ../../../ui.cpp:2142 -msgid "Payment completed" -msgstr "Paiement terminé" - -#: ../../../ui.cpp:2173 -#: ../../../ui.cpp:2319 -#: ../../../ui.cpp:2356 -msgid "Name" -msgstr "Nom" - -#: ../../../ui.cpp:2174 -#: ../../../ui.cpp:2319 -#: ../../../ui.cpp:2356 -msgid "Address" -msgstr "Adresse" - -#: ../../../ui.cpp:2176 -#: ../../../ui.cpp:2331 -msgid "Label" -msgstr "Intitulé" - -#: ../../../ui.cpp:2177 -#: ../../../uibase.cpp:902 -msgid "Bitcoin Address" -msgstr "Adresse Bitcoin" - -#: ../../../ui.cpp:2301 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Ceci est une de vos adresses de reception de paiement, et ne peut être ajoutée au carnet d'adresse. " - -#: ../../../ui.cpp:2319 -#: ../../../ui.cpp:2325 -msgid "Edit Address" -msgstr "Modifier l'adresse" - -#: ../../../ui.cpp:2331 -msgid "Edit Address Label" -msgstr "Modifier l'intitulé de l'adresse" - -#: ../../../ui.cpp:2356 -#: ../../../ui.cpp:2362 -msgid "Add Address" -msgstr "Ajouter une adresse" - -#: ../../../ui.cpp:2438 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../ui.cpp:2440 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Génération" - -#: ../../../ui.cpp:2442 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (non connecté)" - -#: ../../../ui.cpp:2519 -msgid "&Open Bitcoin" -msgstr "&Ouvrir Bitcoin" - -#: ../../../ui.cpp:2520 -msgid "O&ptions..." -msgstr "O&ptions..." - -#: ../../../ui.cpp:2524 -#: ../../../uibase.cpp:25 -msgid "E&xit" -msgstr "&Quitter" - -#: ../../../uibase.cpp:28 -msgid "&File" -msgstr "&Fichier" - -#: ../../../uibase.cpp:36 -msgid "&Your Receiving Addresses..." -msgstr "&Vos adresses de reception..." - -#: ../../../uibase.cpp:40 -msgid "&Options..." -msgstr "&Options..." - -#: ../../../uibase.cpp:43 -msgid "&Settings" -msgstr "&Préférences" - -#: ../../../uibase.cpp:47 -msgid "&About..." -msgstr "&À propos..." - -#: ../../../uibase.cpp:50 -msgid "&Help" -msgstr "&Aide" - -#: ../../../uibase.cpp:60 -msgid "Address Book" -msgstr "Carnet d'adresse" - -#: ../../../uibase.cpp:75 -msgid "Your Bitcoin Address:" -msgstr "Votre adresse Bitcoin :" - -#: ../../../uibase.cpp:82 -msgid " &New... " -msgstr " &Nouvelle... " - -#: ../../../uibase.cpp:85 -#: ../../../uibase.cpp:845 -#: ../../../uibase.cpp:948 -msgid " &Copy to Clipboard " -msgstr " &Copier dans le presse-papier " - -#: ../../../uibase.cpp:99 -msgid "Balance:" -msgstr "Solde :" - -#: ../../../uibase.cpp:115 -msgid " All" -msgstr " Tout" - -#: ../../../uibase.cpp:115 -msgid " Sent" -msgstr " Envoyés" - -#: ../../../uibase.cpp:115 -msgid " Received" -msgstr " Reçus" - -#: ../../../uibase.cpp:115 -msgid " In Progress" -msgstr " En cours" - -#: ../../../uibase.cpp:136 -msgid "All Transactions" -msgstr "Toutes les transactions" - -#: ../../../uibase.cpp:147 -msgid "Sent/Received" -msgstr "Envoyées/Reçues" - -#: ../../../uibase.cpp:158 -msgid "Sent" -msgstr "Envoyées" - -#: ../../../uibase.cpp:169 -msgid "Received" -msgstr "Reçues" - -#: ../../../uibase.cpp:312 -#: ../../../uibase.cpp:473 -#: ../../../uibase.cpp:574 -#: ../../../uibase.cpp:787 -#: ../../../uibase.cpp:848 -#: ../../../uibase.cpp:957 -#: ../../../uibase.cpp:1046 -msgid "OK" -msgstr "OK" - -#: ../../../uibase.cpp:355 -msgid "Optional transaction fee you give to the nodes that process your transactions." -msgstr "Frais de transaction optionel que vous donnez au nœud qui traite vos transactions." - -#: ../../../uibase.cpp:364 -msgid "Transaction fee:" -msgstr "Frais de transaction :" - -#: ../../../uibase.cpp:380 -msgid "&Limit coin generation to" -msgstr "&Limiter la génération de pièce à" - -#: ../../../uibase.cpp:387 -msgid "processors" -msgstr "processeurs" - -#: ../../../uibase.cpp:393 -msgid "&Start Bitcoin on system startup" -msgstr "&Lancer Bitcoin au démarrage du système" - -#: ../../../uibase.cpp:397 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "" -"&Réduire dans la zone de notification\n" -"plutôt que dans la barre des tâches" - -#: ../../../uibase.cpp:401 -msgid "M&inimize to the tray on close" -msgstr "Ré&duire dans la zone de notification" - -#: ../../../uibase.cpp:408 -msgid "&Connect through socks4 proxy: " -msgstr "Se &connecter à travers un proxy SOCKS4: " - -#: ../../../uibase.cpp:420 -msgid "Proxy &IP:" -msgstr "&IP du proxy :" - -#: ../../../uibase.cpp:428 -msgid " &Port:" -msgstr " Port :" - -#: ../../../uibase.cpp:450 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../uibase.cpp:454 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../uibase.cpp:476 -#: ../../../uibase.cpp:729 -#: ../../../uibase.cpp:792 -#: ../../../uibase.cpp:851 -#: ../../../uibase.cpp:960 -#: ../../../uibase.cpp:1049 -msgid "Cancel" -msgstr "Annuler" - -#: ../../../uibase.cpp:479 -msgid "&Apply" -msgstr "&Appliquer" - -#: ../../../uibase.cpp:540 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../uibase.cpp:546 -msgid "version" -msgstr "version" - -#: ../../../uibase.cpp:557 -msgid "" -"Copyright (c) 2009-2010 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2010 Bitcoin Developers\n" -"\n" -"Ceci est un logiciel expérimental.\n" -"\n" -"Distribué sous la licence logicielle MIT/X11, voir le fichier joint \n" -"license.txt ou http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Ce produit comprend des composants logiciels développés pour le Projet OpenSSL \n" -"OpenSSL Toolkit (http://www.openssl.org/) ainsi que des composants cryptographiques \n" -"écrits par Eric Young (eay@cryptsoft.com) et des logiciels UPnP écrits par Thomas Bernard.." - -#: ../../../uibase.cpp:613 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L) or IP address (e.g. 123.45.6.7)" -msgstr "" -"Entrez une adresse Bitcoin (par exemple : 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L)\n" -" ou une adresse IP (par exemple : 123.45.6.7)" - -#: ../../../uibase.cpp:627 -msgid "Pay &To:" -msgstr "&Payable à:" - -#: ../../../uibase.cpp:642 -msgid "&Paste" -msgstr "&Coller" - -#: ../../../uibase.cpp:645 -msgid " Address &Book..." -msgstr " Carnet d'&adresse..." - -#: ../../../uibase.cpp:652 -msgid "&Amount:" -msgstr "&Montant :" - -#: ../../../uibase.cpp:662 -msgid "T&ransfer:" -msgstr "T&ransfert :" - -#: ../../../uibase.cpp:668 -msgid " Standard" -msgstr " Standard" - -#: ../../../uibase.cpp:690 -msgid "&From:" -msgstr "&De :" - -#: ../../../uibase.cpp:707 -msgid "&Message:" -msgstr "&Message:" - -#: ../../../uibase.cpp:724 -msgid "&Send" -msgstr "&Envoyer" - -#: ../../../uibase.cpp:776 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Connexion..." - -#: ../../../uibase.cpp:826 -msgid "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." -msgstr "Voici vos adresses Bitcoin de reception de paiement. Il peut être judicieux d'en fournir une différente à chaque émetteur afin de pouvoir suivre qui vous paie. L'adresse surlignée est affichée dans la fenêtre principale." - -#: ../../../uibase.cpp:839 -#: ../../../uibase.cpp:951 -msgid "&Edit..." -msgstr "&Modifier..." - -#: ../../../uibase.cpp:842 -#: ../../../uibase.cpp:954 -msgid " &New Address... " -msgstr " &Nouvelle adresse... " - -#: ../../../uibase.cpp:914 -msgid "Sending" -msgstr "Envoi" - -#: ../../../uibase.cpp:922 -msgid "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." -msgstr "Voici vos adresses Bitcoin de reception de paiement. Vous pouvez en fournir une différente à chaque émetteur afin de pouvoir suivre qui vous paie. L'adresse surlignée sera affichée dans la fenêtre principale." - -#: ../../../uibase.cpp:935 -msgid "Receiving" -msgstr "Reception" - -#: ../../../uibase.cpp:945 -msgid "&Delete" -msgstr "&Supprimer" - -#: ../../../uibase.h:149 -msgid "Transaction Details" -msgstr "Détails de la transaction" - -#: ../../../uibase.h:202 -msgid "Options" -msgstr "Options" - -#: ../../../uibase.h:230 -msgid "About Bitcoin" -msgstr "À propos de Bitcoin" - -#: ../../../uibase.h:340 -msgid "Your Bitcoin Addresses" -msgstr "Votre adresse Bitcoin" - -#~ msgid "Usage: bitcoin [options]" -#~ msgstr "Usage: bitcoin [options]" diff --git a/locale/it/LC_MESSAGES/bitcoin.mo b/locale/it/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index 12386bc..0000000 Binary files a/locale/it/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/it/LC_MESSAGES/bitcoin.po b/locale/it/LC_MESSAGES/bitcoin.po deleted file mode 100644 index c041b1e..0000000 --- a/locale/it/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,967 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-15 18:22+0100\n" -"PO-Revision-Date: 2011-05-26 09:46+0100\n" -"Last-Translator: Joozero \n" -"Language-Team: \n" -"Language: Italian\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/net.cpp:1499 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "Impossibile utilizzare la porta %d su questo computer. Bitcoin probabilmente e' gia' in esecuzione" - -#: ../../../src/ui.cpp:202 -#, c-format -msgid "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?" -msgstr "Questo trasferimento supera le dimensioni massime. Puoi comunque inviarlo per un costo aggiuntivo di %s, che andrà ai nodi che effettueranno il processo della tua operazione e che supportano il network. Vuoi pagare il costo aggiuntivo?" - -#: ../../../src/ui.cpp:301 -msgid "Status" -msgstr "Stato" - -#: ../../../src/ui.cpp:302 -msgid "Date" -msgstr "Data" - -#: ../../../src/ui.cpp:303 -msgid "Description" -msgstr "Descrizione" - -#: ../../../src/ui.cpp:304 -msgid "Debit" -msgstr "Debito" - -#: ../../../src/ui.cpp:305 -msgid "Credit" -msgstr "Credito" - -#: ../../../src/ui.cpp:511 -#, c-format -msgid "Open for %d blocks" -msgstr "Aperto per %d blocchi" - -#: ../../../src/ui.cpp:513 -#, c-format -msgid "Open until %s" -msgstr "Aperto fino a %s" - -#: ../../../src/ui.cpp:519 -#, c-format -msgid "%d/offline?" -msgstr "%d/disconnesso?" - -#: ../../../src/ui.cpp:521 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/non confermato" - -#: ../../../src/ui.cpp:523 -#, c-format -msgid "%d confirmations" -msgstr "%d conferme" - -#: ../../../src/ui.cpp:608 -msgid "Generated" -msgstr "Generato" - -#: ../../../src/ui.cpp:616 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Generato (%s matureranno in %d altri blocchi)" - -#: ../../../src/ui.cpp:620 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Generato - Attenzione: Questo blocco non è stato ricevuto da nessun altro nodo e probabilmente non sarà accettato!" - -#: ../../../src/ui.cpp:624 -msgid "Generated (not accepted)" -msgstr "Generato (non accettato)" - -#: ../../../src/ui.cpp:634 -msgid "From: " -msgstr "Da: " - -#: ../../../src/ui.cpp:658 -msgid "Received with: " -msgstr "Ricevuto con: " - -#: ../../../src/ui.cpp:704 -msgid "Payment to yourself" -msgstr "Pagamento a te stesso" - -#: ../../../src/ui.cpp:738 -msgid "To: " -msgstr "A: " - -#: ../../../src/ui.cpp:1053 -msgid " Generating" -msgstr " Generando" - -#: ../../../src/ui.cpp:1055 -msgid "(not connected)" -msgstr "(non connesso)" - -#: ../../../src/ui.cpp:1058 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d connessioni %d blocchi %d trasferimenti" - -#: ../../../src/ui.cpp:1163 -#: ../../../src/ui.cpp:2527 -msgid "New Receiving Address" -msgstr "Nuovo indirizzo di ricezione" - -#: ../../../src/ui.cpp:1164 -#: ../../../src/ui.cpp:2528 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Si dovrebbe usare un nuovo indirizzo per ogni pagamento che ricevi.\n" -"\n" -"Label" - -#: ../../../src/ui.cpp:1233 -msgid "Status: " -msgstr "Stato: " - -#: ../../../src/ui.cpp:1238 -msgid ", has not been successfully broadcast yet" -msgstr ", non è ancora stato trasmesso correttamente" - -#: ../../../src/ui.cpp:1240 -#, c-format -msgid ", broadcast through %d node" -msgstr ", trasmissione attraverso %d nodo" - -#: ../../../src/ui.cpp:1242 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", trasmissione attraverso %d nodi" - -#: ../../../src/ui.cpp:1246 -msgid "Date: " -msgstr "Data: " - -#: ../../../src/ui.cpp:1254 -msgid "Source: Generated
" -msgstr "Sorgente: Generato
" - -#: ../../../src/ui.cpp:1260 -#: ../../../src/ui.cpp:1278 -msgid "From: " -msgstr "Da: " - -#: ../../../src/ui.cpp:1278 -msgid "unknown" -msgstr "sconosciuto" - -#: ../../../src/ui.cpp:1279 -#: ../../../src/ui.cpp:1303 -#: ../../../src/ui.cpp:1362 -msgid "To: " -msgstr "A: " - -#: ../../../src/ui.cpp:1282 -msgid " (yours, label: " -msgstr " (vostro, label: " - -#: ../../../src/ui.cpp:1284 -msgid " (yours)" -msgstr " (vostro)" - -#: ../../../src/ui.cpp:1321 -#: ../../../src/ui.cpp:1333 -#: ../../../src/ui.cpp:1379 -#: ../../../src/ui.cpp:1396 -msgid "Credit: " -msgstr "Credito: " - -#: ../../../src/ui.cpp:1323 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s matureranno in %d altri blocchi)" - -#: ../../../src/ui.cpp:1325 -msgid "(not accepted)" -msgstr "(non accettato)" - -#: ../../../src/ui.cpp:1370 -#: ../../../src/ui.cpp:1378 -#: ../../../src/ui.cpp:1393 -msgid "Debit: " -msgstr "Debito: " - -#: ../../../src/ui.cpp:1384 -msgid "Transaction fee: " -msgstr "Costo del trasferimento : " - -#: ../../../src/ui.cpp:1400 -msgid "Net amount: " -msgstr "Quantità del network: " - -#: ../../../src/ui.cpp:1407 -msgid "Message:" -msgstr "Messaggio:" - -#: ../../../src/ui.cpp:1409 -msgid "Comment:" -msgstr "Commento:" - -#: ../../../src/ui.cpp:1412 -msgid "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." -msgstr "Le monete generate devono aspettare 120 blocchi prima di poter essere spese. Quando hai generato questo blocco, è stato diffuso sul network per essere aggiunto alla catena dei blocchi. Se fallirà l'entrata nella catena, cambierà in \"non accettato\" e non spendibile. Questo può capitare se un altro nodo genera un blocco pochi secondi prima del tuo." - -#: ../../../src/ui.cpp:1592 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Impossibile creare il file autostart/bitcoin.desktop" - -#: ../../../src/ui.cpp:1628 -msgid "Main" -msgstr "Principale" - -#: ../../../src/ui.cpp:1636 -msgid "&Start Bitcoin on window system startup" -msgstr "&Avvia Bitcoin all'avvio del sistema" - -#: ../../../src/ui.cpp:1643 -msgid "&Minimize on close" -msgstr "&Minimizza se chiuso" - -#: ../../../src/ui.cpp:1785 -#, c-format -msgid "version %s" -msgstr "versione %s" - -#: ../../../src/ui.cpp:1897 -msgid "Error in amount " -msgstr "Errore nell'ammontare " - -#: ../../../src/ui.cpp:1897 -#: ../../../src/ui.cpp:1902 -#: ../../../src/ui.cpp:1907 -#: ../../../src/ui.cpp:1942 -#: ../../../src/uibase.cpp:55 -msgid "Send Coins" -msgstr "Invia monete" - -#: ../../../src/ui.cpp:1902 -msgid "Amount exceeds your balance " -msgstr "L'ammontare è andato oltre i tuoi capitali " - -#: ../../../src/ui.cpp:1907 -msgid "Total exceeds your balance when the " -msgstr "Il totale supera il tuo bilancio quando il " - -#: ../../../src/ui.cpp:1907 -msgid " transaction fee is included " -msgstr " il costo del trasferimento è incluso " - -#: ../../../src/ui.cpp:1925 -msgid "Payment sent " -msgstr "Pagamento inviato " - -#: ../../../src/ui.cpp:1925 -#: ../../../src/ui.cpp:1930 -#: ../../../src/ui.cpp:2074 -#: ../../../src/ui.cpp:2227 -#: ../../../src/main.cpp:3999 -msgid "Sending..." -msgstr "Invio in corso..." - -#: ../../../src/ui.cpp:1942 -msgid "Invalid address " -msgstr "Indirizzo non valido " - -#: ../../../src/ui.cpp:1995 -#, c-format -msgid "Sending %s to %s" -msgstr "Inviando %s a %s" - -#: ../../../src/ui.cpp:2068 -#: ../../../src/ui.cpp:2101 -msgid "CANCELLED" -msgstr "CANCELLATO" - -#: ../../../src/ui.cpp:2072 -msgid "Cancelled" -msgstr "Cancellato" - -#: ../../../src/ui.cpp:2074 -msgid "Transfer cancelled " -msgstr "Operazione cancellata " - -#: ../../../src/ui.cpp:2127 -msgid "Error: " -msgstr "Errore: " - -#: ../../../src/ui.cpp:2141 -#: ../../../src/ui.cpp:2212 -#: ../../../src/main.cpp:4018 -msgid "Insufficient funds" -msgstr "Fondi insufficenti" - -#: ../../../src/ui.cpp:2146 -msgid "Connecting..." -msgstr "Connessione in corso..." - -#: ../../../src/ui.cpp:2151 -msgid "Unable to connect" -msgstr "Impossibile connettersi" - -#: ../../../src/ui.cpp:2156 -msgid "Requesting public key..." -msgstr "Richiesta chiave pubblica..." - -#: ../../../src/ui.cpp:2168 -msgid "Received public key..." -msgstr "Ricezione chiave pubblica..." - -#: ../../../src/ui.cpp:2182 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Il destinatario non accetta transazioni effettuate tramite questo IP" - -#: ../../../src/ui.cpp:2184 -msgid "Transfer was not accepted" -msgstr "Trasferimento non accettato" - -#: ../../../src/ui.cpp:2193 -msgid "Invalid response received" -msgstr "Risposta non valida ricevuta" - -#: ../../../src/ui.cpp:2208 -msgid "Creating transaction..." -msgstr "Creo transazione..." - -#: ../../../src/ui.cpp:2220 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Questa transazione richiede un costo di transazione di almeno %s a causa della sua quantità, complessità, o per l'uso di fondi recentemente ricevuti" - -#: ../../../src/ui.cpp:2222 -msgid "Transaction creation failed" -msgstr "Creazione trasferimento fallita" - -#: ../../../src/ui.cpp:2229 -msgid "Transaction aborted" -msgstr "Trasferimento bloccato" - -#: ../../../src/ui.cpp:2237 -msgid "Lost connection, transaction cancelled" -msgstr "Connessione persa, trasferimento cancellato" - -#: ../../../src/ui.cpp:2253 -msgid "Sending payment..." -msgstr "Invio del pagamento..." - -#: ../../../src/ui.cpp:2259 -msgid "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." -msgstr "Il trasferimento è stato respinto. Questo può accadere se alcune delle monete nel tuo portafoglio erano già state spese, o anche se hai usato una copia di wallet.dat e le monete erano già state spese nella copia originale ma non segnate in quest'ultima." - -#: ../../../src/ui.cpp:2268 -msgid "Waiting for confirmation..." -msgstr "In attesa di conferma..." - -#: ../../../src/ui.cpp:2286 -msgid "" -"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." -msgstr "" -"Il pagamento è stato inviato, ma il destinatario non è stato in grado di verificarlo.\n" -"Il trasferimento è registrato e sarà accreditato al destinatario,\n" -"ma il commento informativo verrà mostrato come vuoto." - -#: ../../../src/ui.cpp:2295 -msgid "Payment was sent, but an invalid response was received" -msgstr "Il pagamento è stato inviato, ma è arrivata un risposta invalida" - -#: ../../../src/ui.cpp:2301 -msgid "Payment completed" -msgstr "Pagamento completato" - -#: ../../../src/ui.cpp:2332 -#: ../../../src/ui.cpp:2478 -#: ../../../src/ui.cpp:2515 -msgid "Name" -msgstr "Nome" - -#: ../../../src/ui.cpp:2333 -#: ../../../src/ui.cpp:2478 -#: ../../../src/ui.cpp:2515 -msgid "Address" -msgstr "Indirizzo" - -#: ../../../src/ui.cpp:2335 -#: ../../../src/ui.cpp:2490 -msgid "Label" -msgstr "Label" - -#: ../../../src/ui.cpp:2336 -#: ../../../src/uibase.cpp:837 -msgid "Bitcoin Address" -msgstr "Indirizzo Bitcoin" - -#: ../../../src/ui.cpp:2460 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Questo qui è uno dei tuoi indirizzi personali per ricevere pagamenti e non può essere inserito nella rubrica indirizzi. " - -#: ../../../src/ui.cpp:2478 -#: ../../../src/ui.cpp:2484 -msgid "Edit Address" -msgstr "Modifica indirizzo" - -#: ../../../src/ui.cpp:2490 -msgid "Edit Address Label" -msgstr "Modifica spazio indirizzo" - -#: ../../../src/ui.cpp:2515 -#: ../../../src/ui.cpp:2521 -msgid "Add Address" -msgstr "Aggiungi indirizzo" - -#: ../../../src/ui.cpp:2598 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2600 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Generando" - -#: ../../../src/ui.cpp:2602 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (non connesso)" - -#: ../../../src/ui.cpp:2681 -msgid "&Open Bitcoin" -msgstr "&Apri Bitcoin" - -#: ../../../src/ui.cpp:2682 -msgid "&Send Bitcoins" -msgstr "&Apri Bitcoin" - -#: ../../../src/ui.cpp:2683 -msgid "O&ptions..." -msgstr "&Opzioni..." - -#: ../../../src/ui.cpp:2686 -#: ../../../src/uibase.cpp:25 -msgid "E&xit" -msgstr "&Esci" - -#: ../../../src/ui.cpp:2902 -msgid "Program has crashed and will terminate. " -msgstr "Il programma è crashato e sarà terminato. " - -#: ../../../src/main.cpp:1868 -msgid "Warning: Disk space is low " -msgstr "Attenzione: c'è poco spazio sul disco " - -#: ../../../src/main.cpp:3992 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Errore: Questa transazione richiede un costo di transazione di almeno %s a causa della sua quantità, complessità, o per l'uso di fondi recentemente ricevuti" - -#: ../../../src/main.cpp:3994 -msgid "Error: Transaction creation failed " -msgstr "Errore: Creazione del trasferimento fallito " - -#: ../../../src/main.cpp:4003 -msgid "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." -msgstr "Errore: Il trasferimento è stato respinto. Questo può accadere se alcune delle monete nel tuo portafoglio erano già state spese, o anche se hai usato una copia di wallet.dat e le monete erano già state spese nella copia originale ma non segnate in quest'ultima." - -#: ../../../src/main.cpp:4016 -msgid "Invalid amount" -msgstr "Quantità non valida" - -#: ../../../src/main.cpp:4023 -msgid "Invalid bitcoin address" -msgstr "Indirizzo bitcoin non valido" - -#: ../../../src/rpc.cpp:1800 -#: ../../../src/rpc.cpp:1802 -#, c-format -msgid "To use the %s option" -msgstr "Usare l'opzione %s" - -#: ../../../src/rpc.cpp:1804 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Attenzione: %s, devi impostare rpcpassword=\n" -"nel file di configurazione: %s\n" -"Se questo file non esiste, puoi crearlo come un file di sola lettura.\n" - -#: ../../../src/rpc.cpp:1972 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"Devi settare rpcpassword= nel file di configurazione:\n" -"%s\n" -"Se questo file non esiste, puoi crearlo come un file di sola lettura" - -#: ../../../src/util.cpp:865 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Attenzione: Controlla che data/ora del tuo computer siano corrette. Se il tuo orologio è sbagliato bitcoin non funzionerà correttamente" - -#: ../../../src/util.cpp:898 -msgid "beta" -msgstr "beta" - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&File" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Il tuo indirizzo di ricezione..." - -#: ../../../src/uibase.cpp:36 -msgid "&Options..." -msgstr "&Opzioni..." - -#: ../../../src/uibase.cpp:39 -msgid "&Settings" -msgstr "I&mpostazioni" - -#: ../../../src/uibase.cpp:43 -msgid "&About..." -msgstr "&Info..." - -#: ../../../src/uibase.cpp:46 -msgid "&Help" -msgstr "&Aiuto" - -#: ../../../src/uibase.cpp:56 -msgid "Address Book" -msgstr "Rubrica indirizzi" - -#: ../../../src/uibase.cpp:69 -msgid "Your Bitcoin Address:" -msgstr "Il tuo indirizzo Bitcoin:" - -#: ../../../src/uibase.cpp:76 -msgid " &New... " -msgstr " &Nuovo... " - -#: ../../../src/uibase.cpp:79 -#: ../../../src/uibase.cpp:780 -#: ../../../src/uibase.cpp:883 -msgid " &Copy to Clipboard " -msgstr " &Copia nella Clipboard " - -#: ../../../src/uibase.cpp:93 -msgid "Balance:" -msgstr "Bilancio:" - -#: ../../../src/uibase.cpp:109 -msgid " All" -msgstr " Tutte" - -#: ../../../src/uibase.cpp:109 -msgid " Sent" -msgstr " Inviato" - -#: ../../../src/uibase.cpp:109 -msgid " Received" -msgstr " Ricevuto" - -#: ../../../src/uibase.cpp:109 -msgid " In Progress" -msgstr " In lavorazione" - -#: ../../../src/uibase.cpp:130 -msgid "All Transactions" -msgstr "Tutte le transazioni" - -#: ../../../src/uibase.cpp:141 -msgid "Sent/Received" -msgstr "Inviato/Ricevuto" - -#: ../../../src/uibase.cpp:152 -msgid "Sent" -msgstr "Inviato" - -#: ../../../src/uibase.cpp:163 -msgid "Received" -msgstr "Ricevuto" - -#: ../../../src/uibase.cpp:302 -#: ../../../src/uibase.cpp:443 -#: ../../../src/uibase.cpp:542 -#: ../../../src/uibase.cpp:722 -#: ../../../src/uibase.cpp:783 -#: ../../../src/uibase.cpp:892 -#: ../../../src/uibase.cpp:981 -msgid "OK" -msgstr "OK" - -#: ../../../src/uibase.cpp:345 -msgid "&Start Bitcoin on system startup" -msgstr "&Avvia Bitcoin all'avvio del sistema" - -#: ../../../src/uibase.cpp:348 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Minimizza nella tray invece che nella barra" - -#: ../../../src/uibase.cpp:351 -msgid "Map port using &UPnP" -msgstr "Imposta le porte del firewall utilizzando &UPnP" - -#: ../../../src/uibase.cpp:354 -msgid "&Minimize to the tray on close" -msgstr "&Minimizza nella tray alla chiusura" - -#: ../../../src/uibase.cpp:360 -msgid "&Connect through socks4 proxy: " -msgstr "&Connesso attraverso proxy socks4: " - -#: ../../../src/uibase.cpp:371 -msgid "Proxy &IP:" -msgstr "Proxy &IP:" - -#: ../../../src/uibase.cpp:379 -msgid " &Port:" -msgstr " &Porta:" - -#: ../../../src/uibase.cpp:392 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Tassa di transazione per ogni KB opzionale che consente di assicurarsi che le transazioni siano trattate con rapidità. La maggior parte delle operazioni sono 1KB. Quota 0,01 raccomandata." - -#: ../../../src/uibase.cpp:399 -msgid "Pay transaction fee:" -msgstr "Costo trasferimento:" - -#: ../../../src/uibase.cpp:420 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:424 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:446 -#: ../../../src/uibase.cpp:668 -#: ../../../src/uibase.cpp:727 -#: ../../../src/uibase.cpp:786 -#: ../../../src/uibase.cpp:895 -#: ../../../src/uibase.cpp:984 -msgid "Cancel" -msgstr "Cancella" - -#: ../../../src/uibase.cpp:449 -msgid "&Apply" -msgstr "&Accetta" - -#: ../../../src/uibase.cpp:508 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../src/uibase.cpp:514 -msgid "version" -msgstr "versione" - -#: ../../../src/uibase.cpp:525 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2010 Bitcoin Developers\n" -"\n" -"Questo è un software sperimentale.\n" -"\n" -"Distribuito sotto la licenza software MIT/X11, guarda il file license.txt\n" -"incluso oppure su http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Questo prodotto include software sviluppato dal progetto OpenSSL per\n" -"l'uso del (http://www.openssl.org/) e il software criptografico scritto\n" -"da Eric Young (eay@cryptsoft.com) e UPnP software scritto da Thomas Bernard." - -#: ../../../src/uibase.cpp:581 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Inserisci un indirizzo Bitcoin (es. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:595 -msgid "Pay &To:" -msgstr "Paga &a:" - -#: ../../../src/uibase.cpp:610 -msgid "&Paste" -msgstr "&Incolla" - -#: ../../../src/uibase.cpp:613 -msgid " Address &Book..." -msgstr " &Rubrica degli indirizzi..." - -#: ../../../src/uibase.cpp:620 -msgid "&Amount:" -msgstr "&Quantità" - -#: ../../../src/uibase.cpp:630 -msgid "&Transfer:" -msgstr "&Trasferimento:" - -#: ../../../src/uibase.cpp:636 -msgid " Standard" -msgstr " Standard" - -#: ../../../src/uibase.cpp:663 -msgid "&Send" -msgstr "&Invia" - -#: ../../../src/uibase.cpp:711 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Connessione in corso..." - -#: ../../../src/uibase.cpp:761 -msgid "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." -msgstr "Questi sono i tuoi indirizzi Bitcoin per ricevere pagamenti. Potrai darne uno diverso ad ognuno per cosi tenere traccia di chi ti sta pagando. L'indirizzo selezionato sarà quello mostrato nella finestra principale." - -#: ../../../src/uibase.cpp:774 -#: ../../../src/uibase.cpp:886 -msgid "&Edit..." -msgstr "&Cambia..." - -#: ../../../src/uibase.cpp:777 -#: ../../../src/uibase.cpp:889 -msgid " &New Address... " -msgstr " &Nuovo indirizzo... " - -#: ../../../src/uibase.cpp:849 -msgid "Sending" -msgstr "Invio in corso.." - -#: ../../../src/uibase.cpp:857 -msgid "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." -msgstr "Questi sono i tuoi indirizzi Bitcoin per ricevere pagamenti. Potrai darne uno diverso ad ognuno per cosi tenere traccia di chi ti sta pagando. L'indirizzo selezionato sarà quello mostrato nella finestra principale." - -#: ../../../src/uibase.cpp:870 -msgid "Receiving" -msgstr "Ricevendo" - -#: ../../../src/uibase.cpp:880 -msgid "&Delete" -msgstr "&Cancella" - -#: ../../../src/init.cpp:147 -msgid "Bitcoin version" -msgstr "Versione Bitcoin " - -#: ../../../src/init.cpp:148 -msgid "Usage:" -msgstr "Uso:" - -#: ../../../src/init.cpp:150 -msgid "Send command to -server or bitcoind\n" -msgstr "Invia comando a -server o a bitcoin\n" - -#: ../../../src/init.cpp:151 -msgid "List commands\n" -msgstr "Lista comandi\n" - -#: ../../../src/init.cpp:152 -msgid "Get help for a command\n" -msgstr "Chiedi aiuto per i comandi\n" - -#: ../../../src/init.cpp:153 -msgid "Options:\n" -msgstr "Opzioni:\n" - -#: ../../../src/init.cpp:154 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Specifica il file di configurazione (normalmente e': bitcoin.conf)\n" - -#: ../../../src/init.cpp:155 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "Specifica il fil pid (normalmente: bitcoin.pid)\n" - -#: ../../../src/init.cpp:156 -msgid "Generate coins\n" -msgstr "Genera monete\n" - -#: ../../../src/init.cpp:157 -msgid "Don't generate coins\n" -msgstr "Non generare monete\n" - -#: ../../../src/init.cpp:158 -msgid "Start minimized\n" -msgstr "Avvia minimizzato\n" - -#: ../../../src/init.cpp:159 -msgid "Specify data directory\n" -msgstr "Indica la cartella per i dati\n" - -#: ../../../src/init.cpp:160 -msgid "Connect through socks4 proxy\n" -msgstr "Connetti attraverso proxy socks4\n" - -#: ../../../src/init.cpp:161 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Permetti DNS lookups per aggiungere un nodo e collegarsi\n" - -#: ../../../src/init.cpp:162 -msgid "Add a node to connect to\n" -msgstr "Aggiungi un nodoper la connessione a\n" - -#: ../../../src/init.cpp:163 -msgid "Connect only to the specified node\n" -msgstr "Collegati solo al nodo specificato\n" - -#: ../../../src/init.cpp:164 -msgid "Don't accept connections from outside\n" -msgstr "Non accettare connessioni dall'esterno\n" - -#: ../../../src/init.cpp:167 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Non provare a usare UPnP per mappare le porte in ascolto\n" - -#: ../../../src/init.cpp:169 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Prova ad usare l' UPnP per mappare la porte in ascolto\n" - -#: ../../../src/init.cpp:172 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Tassa per KB da aggiungere alle operazioni di invio\n" - -#: ../../../src/init.cpp:174 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Accetta linea di comando e i comando JSON-RPC\n" - -#: ../../../src/init.cpp:177 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Avvia in background come processo e accetta i comandi\n" - -#: ../../../src/init.cpp:179 -msgid "Use the test network\n" -msgstr "Usa il network test\n" - -#: ../../../src/init.cpp:180 -msgid "Username for JSON-RPC connections\n" -msgstr "Username per le connessioni JSON-RPC\n" - -#: ../../../src/init.cpp:181 -msgid "Password for JSON-RPC connections\n" -msgstr "Password per le connessioni JSON-RPC\n" - -#: ../../../src/init.cpp:182 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "In ascolta per connessioni JSON-RPC sulla porta (default: 8332)\n" - -#: ../../../src/init.cpp:183 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Permetti connessioni JSON-RPC da un indirizzo IP specifico\n" - -#: ../../../src/init.cpp:184 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Invia comandi al nodo in esecuzione su (default: 127.0.0.1)\n" - -#: ../../../src/init.cpp:185 -msgid "Set key pool size to (default: 100)\n" -msgstr "Imposta la dimensione della key pool a (default: 100)\n" - -#: ../../../src/init.cpp:186 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Ricontrolla il blocco della catena transazioni del portafoglio mancate\n" - -#: ../../../src/init.cpp:190 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"opzioni SSL: (Consulta Bitcoin Wiki per le istruzioni di configurazione dell' SSL)\n" - -#: ../../../src/init.cpp:191 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Usa OpenSSL (https) per connessioni JSON-RPC\n" - -#: ../../../src/init.cpp:192 -msgid "Server certificate file (default: server.cert)\n" -msgstr "File del certificato del server (default: server.cert)\n" - -#: ../../../src/init.cpp:193 -msgid "Server private key (default: server.pem)\n" -msgstr "Chiave del server privata ((default: server.pem)\n" - -#: ../../../src/init.cpp:194 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Cifrari accettati (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:198 -msgid "This help message\n" -msgstr "Questo messaggio di aiuto\n" - -#: ../../../src/init.cpp:335 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "Impossibile ottenere un blocco sulla directory %s. Bitcoin e' probabilmente gia' in esecuzione" - -#: ../../../src/init.cpp:361 -msgid "Error loading addr.dat \n" -msgstr "Errore nel caricamento addr.dat \n" - -#: ../../../src/init.cpp:367 -msgid "Error loading blkindex.dat \n" -msgstr "Errore nel caricamento blkindex.dat \n" - -#: ../../../src/init.cpp:374 -msgid "Error loading wallet.dat \n" -msgstr "Errore nel caricamento wallet.dat \n" - -#: ../../../src/init.cpp:454 -msgid "Invalid -proxy address" -msgstr "Indirizzo proxy non valido" - -#: ../../../src/init.cpp:477 -msgid "Invalid amount for -paytxfee=" -msgstr "Quantita' non valida per -paytxfee=" - -#: ../../../src/init.cpp:481 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Attenzione: -paytxfee e' molto alta. Questo e' la tassa che pagherai se invii la transazione" - -#: ../../../src/uibase.h:147 -msgid "Transaction Details" -msgstr "Dettagli transazione" - -#: ../../../src/uibase.h:199 -msgid "Options" -msgstr "Opzioni" - -#: ../../../src/uibase.h:228 -msgid "About Bitcoin" -msgstr "Info Bitcoin" - -#: ../../../src/uibase.h:337 -msgid "Your Bitcoin Addresses" -msgstr "Il tuo indirizzo Bitcoin" diff --git a/locale/lt/LC_MESSAGES/bitcoin.mo b/locale/lt/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index bba16a8..0000000 Binary files a/locale/lt/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/lt/LC_MESSAGES/bitcoin.po b/locale/lt/LC_MESSAGES/bitcoin.po deleted file mode 100644 index b0decb2..0000000 --- a/locale/lt/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,971 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-17 14:07+0100\n" -"PO-Revision-Date: 2011-05-17 14:09+0100\n" -"Last-Translator: Anonymous \n" -"Language-Team: \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/net.cpp:1503 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "Neįmanoma prisijungti prie šio kompiuterio porto %d. Bitcoin programa tikriausiai jau yra paleista" - -#: ../../../src/ui.cpp:204 -#, c-format -msgid "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?" -msgstr "Šis pervedimas viršija dydžio limitą. Jūs galite siūsti šią suma sumokėję %s mokestį, kuris bus skirtas nodams už persiuntimą ir padėti tinklui. Ar sutinkate pridėti ši mokestį?" - -#: ../../../src/ui.cpp:303 -msgid "Status" -msgstr "Būklė" - -#: ../../../src/ui.cpp:304 -msgid "Date" -msgstr "Data" - -#: ../../../src/ui.cpp:305 -msgid "Description" -msgstr "Apibūdinimas" - -#: ../../../src/ui.cpp:306 -msgid "Debit" -msgstr "Debetas" - -#: ../../../src/ui.cpp:307 -msgid "Credit" -msgstr "Kreditas" - -#: ../../../src/ui.cpp:513 -#, c-format -msgid "Open for %d blocks" -msgstr "Atidaryta %d blokams" - -#: ../../../src/ui.cpp:515 -#, c-format -msgid "Open until %s" -msgstr "Atidaryta iki %s" - -#: ../../../src/ui.cpp:521 -#, c-format -msgid "%d/offline?" -msgstr "%d/neprisijunges?" - -#: ../../../src/ui.cpp:523 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/ nepatvirtinta" - -#: ../../../src/ui.cpp:525 -#, c-format -msgid "%d confirmations" -msgstr "%d patvirtinta" - -#: ../../../src/ui.cpp:610 -msgid "Generated" -msgstr "Sugeneruota" - -#: ../../../src/ui.cpp:618 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Sugeneruota (%s bus galima naudoti už %d blokų)" - -#: ../../../src/ui.cpp:622 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Sugeneruota - Perspėjimas: Šio bloko negavo kiti nodai ir jis tikriausiai nebus priimtas!" - -#: ../../../src/ui.cpp:626 -msgid "Generated (not accepted)" -msgstr "Sugeneruota (nepriimta)" - -#: ../../../src/ui.cpp:636 -msgid "From: " -msgstr "Nuo: " - -#: ../../../src/ui.cpp:660 -msgid "Received with: " -msgstr "Priimta su: " - -#: ../../../src/ui.cpp:706 -msgid "Payment to yourself" -msgstr "Pervedimas sau" - -#: ../../../src/ui.cpp:740 -msgid "To: " -msgstr "Kam: " - -#: ../../../src/ui.cpp:1055 -msgid " Generating" -msgstr " Generuojama" - -#: ../../../src/ui.cpp:1057 -msgid "(not connected)" -msgstr "(neprijungta)" - -#: ../../../src/ui.cpp:1060 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d Jungtys %d Blokai %d pervedimai" - -#: ../../../src/ui.cpp:1165 -#: ../../../src/ui.cpp:2529 -msgid "New Receiving Address" -msgstr "Naujas priėmimo adresas" - -#: ../../../src/ui.cpp:1166 -#: ../../../src/ui.cpp:2530 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Naudokite naują adresas kiekvienam pervedimui.\n" -"\n" -"Pavadinimas" - -#: ../../../src/ui.cpp:1235 -msgid "Status: " -msgstr "Būklė: " - -#: ../../../src/ui.cpp:1240 -msgid ", has not been successfully broadcast yet" -msgstr ", dar nėra paskelbta" - -#: ../../../src/ui.cpp:1242 -#, c-format -msgid ", broadcast through %d node" -msgstr ", paskelbta per %d nodą" - -#: ../../../src/ui.cpp:1244 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", paskelbta per %d nodus" - -#: ../../../src/ui.cpp:1248 -msgid "Date: " -msgstr "Data: " - -#: ../../../src/ui.cpp:1256 -msgid "Source: Generated
" -msgstr "IÅ¡: Sugeneruota
" - -#: ../../../src/ui.cpp:1262 -#: ../../../src/ui.cpp:1280 -msgid "From: " -msgstr "Nuo: " - -#: ../../../src/ui.cpp:1280 -msgid "unknown" -msgstr "nežinomas" - -#: ../../../src/ui.cpp:1281 -#: ../../../src/ui.cpp:1305 -#: ../../../src/ui.cpp:1364 -msgid "To: " -msgstr "Kam: " - -#: ../../../src/ui.cpp:1284 -msgid " (yours, label: " -msgstr " (jūsų, pavadinimas: " - -#: ../../../src/ui.cpp:1286 -msgid " (yours)" -msgstr " (jūsų)" - -#: ../../../src/ui.cpp:1323 -#: ../../../src/ui.cpp:1335 -#: ../../../src/ui.cpp:1381 -#: ../../../src/ui.cpp:1398 -msgid "Credit: " -msgstr "Kreditas: " - -#: ../../../src/ui.cpp:1325 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s bus galima naudoti už %d blokų)" - -#: ../../../src/ui.cpp:1327 -msgid "(not accepted)" -msgstr "(nepriimta)" - -#: ../../../src/ui.cpp:1372 -#: ../../../src/ui.cpp:1380 -#: ../../../src/ui.cpp:1395 -msgid "Debit: " -msgstr "Debetas: " - -#: ../../../src/ui.cpp:1386 -msgid "Transaction fee: " -msgstr "Pervedimo mokestis: " - -#: ../../../src/ui.cpp:1402 -msgid "Net amount: " -msgstr "Neto suma: " - -#: ../../../src/ui.cpp:1409 -msgid "Message:" -msgstr "Žinutė:" - -#: ../../../src/ui.cpp:1411 -msgid "Comment:" -msgstr "Komentaras:" - -#: ../../../src/ui.cpp:1414 -msgid "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." -msgstr "Turite palaukti 120 blokų, kol galėsite išleisti sugeneruotas monetas. Kai sugeneravotė šį blokai, jis buvo paskelbtas tinklui ir bus pridėtas į blokų grandinę. Jei šio bloko tinklas nepriims i grandinė, jis pasikeis į \"nepriimtas\" ir negali būti išleidžiamas. Tai gali kartais nutikti jei kitas nodas sugeneravo bloką keliom sekundėm anksčiau." - -#: ../../../src/ui.cpp:1594 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Nepavyksta įrašyti į autostart/bitcoin.desktop failą" - -#: ../../../src/ui.cpp:1630 -msgid "Main" -msgstr "Pagrindinis" - -#: ../../../src/ui.cpp:1638 -msgid "&Start Bitcoin on window system startup" -msgstr "&Paleisti Bitcoin kai pasileižia operacinė sistema" - -#: ../../../src/ui.cpp:1645 -msgid "&Minimize on close" -msgstr "&Sumažinti kai uždaroma" - -#: ../../../src/ui.cpp:1787 -#, c-format -msgid "version %s" -msgstr "versija %s" - -#: ../../../src/ui.cpp:1899 -msgid "Error in amount " -msgstr "Klaidinga suma" - -#: ../../../src/ui.cpp:1899 -#: ../../../src/ui.cpp:1904 -#: ../../../src/ui.cpp:1909 -#: ../../../src/ui.cpp:1944 -#: ../../../src/uibase.cpp:55 -msgid "Send Coins" -msgstr "Siūsti monetas" - -#: ../../../src/ui.cpp:1904 -msgid "Amount exceeds your balance " -msgstr "Suma viršija jūsų balasą" - -#: ../../../src/ui.cpp:1909 -msgid "Total exceeds your balance when the " -msgstr "Bendra suma viršija jūsu balansą kai" - -#: ../../../src/ui.cpp:1909 -msgid " transaction fee is included " -msgstr "pervedimo suma įskaičiuota" - -#: ../../../src/ui.cpp:1927 -msgid "Payment sent " -msgstr "Mokestis išsiųstas" - -#: ../../../src/ui.cpp:1927 -#: ../../../src/ui.cpp:1932 -#: ../../../src/ui.cpp:2076 -#: ../../../src/ui.cpp:2229 -#: ../../../src/main.cpp:3997 -msgid "Sending..." -msgstr "Siunčia..." - -#: ../../../src/ui.cpp:1944 -msgid "Invalid address " -msgstr "Klaidingas adresas" - -#: ../../../src/ui.cpp:1997 -#, c-format -msgid "Sending %s to %s" -msgstr "Siunčia %s į %s" - -#: ../../../src/ui.cpp:2070 -#: ../../../src/ui.cpp:2103 -msgid "CANCELLED" -msgstr "NUTRAUKTA" - -#: ../../../src/ui.cpp:2074 -msgid "Cancelled" -msgstr "Nutraukta" - -#: ../../../src/ui.cpp:2076 -msgid "Transfer cancelled " -msgstr "Siuntimas nutrauktas" - -#: ../../../src/ui.cpp:2129 -msgid "Error: " -msgstr "Klaida:" - -#: ../../../src/ui.cpp:2143 -#: ../../../src/ui.cpp:2214 -#: ../../../src/main.cpp:4016 -msgid "Insufficient funds" -msgstr "Nepakankamai monetų" - -#: ../../../src/ui.cpp:2148 -msgid "Connecting..." -msgstr "Jungiasi..." - -#: ../../../src/ui.cpp:2153 -msgid "Unable to connect" -msgstr "Negali prisijungti" - -#: ../../../src/ui.cpp:2158 -msgid "Requesting public key..." -msgstr "Prašo \"viešojo rakto\"(public key)..." - -#: ../../../src/ui.cpp:2170 -msgid "Received public key..." -msgstr "Gautas \"viešasis raktas\"(public key)..." - -#: ../../../src/ui.cpp:2184 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Gavėjas nepriima pervedimų siunčiamų iš IP adresų" - -#: ../../../src/ui.cpp:2186 -msgid "Transfer was not accepted" -msgstr "Persiuntimas nepriimtas" - -#: ../../../src/ui.cpp:2195 -msgid "Invalid response received" -msgstr "Gautas klaidingas atsakymas" - -#: ../../../src/ui.cpp:2210 -msgid "Creating transaction..." -msgstr "Kuriamas pervedimas..." - -#: ../../../src/ui.cpp:2222 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Šis pervedimas reikalauja %s mokesčio dėl jo sumos, sudėtingumo arba dėl to, kad šie pinigai buvo neseniai gauti" - -#: ../../../src/ui.cpp:2224 -msgid "Transaction creation failed" -msgstr "Pervedimo sukurti nepavyko" - -#: ../../../src/ui.cpp:2231 -msgid "Transaction aborted" -msgstr "Pervedimas nutrauktas" - -#: ../../../src/ui.cpp:2239 -msgid "Lost connection, transaction cancelled" -msgstr "Prarastas ryšys, pervedimas nutrauktas" - -#: ../../../src/ui.cpp:2255 -msgid "Sending payment..." -msgstr "Monetos siunčiamos..." - -#: ../../../src/ui.cpp:2261 -msgid "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." -msgstr "Pervedimas buvo atmestas. Tai galėjo atsitikti jei dalis jūsų monetų jau buvo išleista. Pvz.: Jei nodojote kopija wallet.dat kitame kliente ir monetos buvo išleistos ten, bet nepažymėtos kaip išleistos čia." - -#: ../../../src/ui.cpp:2270 -msgid "Waiting for confirmation..." -msgstr "Laukia patvirtinimo..." - -#: ../../../src/ui.cpp:2288 -msgid "" -"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." -msgstr "" -"Pervedimas išsiūstas, bet gavėjas negalėjo jo patvirtinti.\n" -"Pervedimas įrašytas ir suma bus kredituojama gavėjui,\n" -"bet komentaro informacija nebus rodoma." - -#: ../../../src/ui.cpp:2297 -msgid "Payment was sent, but an invalid response was received" -msgstr "Pervedimas išsiūstas, bet klaidingas atsakymas gautas" - -#: ../../../src/ui.cpp:2303 -msgid "Payment completed" -msgstr "Pervedimas pavyko" - -#: ../../../src/ui.cpp:2334 -#: ../../../src/ui.cpp:2480 -#: ../../../src/ui.cpp:2517 -msgid "Name" -msgstr "Vardas" - -#: ../../../src/ui.cpp:2335 -#: ../../../src/ui.cpp:2480 -#: ../../../src/ui.cpp:2517 -msgid "Address" -msgstr "Adresas" - -#: ../../../src/ui.cpp:2337 -#: ../../../src/ui.cpp:2492 -msgid "Label" -msgstr "Pavadinimas" - -#: ../../../src/ui.cpp:2338 -#: ../../../src/uibase.cpp:837 -msgid "Bitcoin Address" -msgstr "Bitcoin Adresas" - -#: ../../../src/ui.cpp:2462 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Tai vienas iš jūsų adresų priimti pervedimams ir negali būti įvestas i adresų knygą" - -#: ../../../src/ui.cpp:2480 -#: ../../../src/ui.cpp:2486 -msgid "Edit Address" -msgstr "Pakeisti Adresą" - -#: ../../../src/ui.cpp:2492 -msgid "Edit Address Label" -msgstr "Pakeisti adreso pavadinimą" - -#: ../../../src/ui.cpp:2517 -#: ../../../src/ui.cpp:2523 -msgid "Add Address" -msgstr "Pridėti adresą" - -#: ../../../src/ui.cpp:2600 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2602 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Generuoja" - -#: ../../../src/ui.cpp:2604 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (neprijungta)" - -#: ../../../src/ui.cpp:2683 -msgid "&Open Bitcoin" -msgstr "&Atidaryti Bitcoin" - -#: ../../../src/ui.cpp:2684 -#, fuzzy -msgid "&Send Bitcoins" -msgstr "&Atidaryti Bitcoin" - -#: ../../../src/ui.cpp:2685 -msgid "O&ptions..." -msgstr "P&arametrai..." - -#: ../../../src/ui.cpp:2688 -#: ../../../src/uibase.cpp:25 -msgid "E&xit" -msgstr "&Išeiti" - -#: ../../../src/ui.cpp:2904 -msgid "Program has crashed and will terminate. " -msgstr "Programa neveikia ir bus uždaryta" - -#: ../../../src/main.cpp:1866 -msgid "Warning: Disk space is low " -msgstr "Perspėjimas: Diske trūksta vietos" - -#: ../../../src/main.cpp:3990 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Klaida: Šis pervedimas reikalauja %s mokesčio dėl jo sumos, sudėtingumo arba dėl to, kad šie pinigai buvo neseniai gauti " - -#: ../../../src/main.cpp:3992 -msgid "Error: Transaction creation failed " -msgstr "Klaida: Pervedimo sukurti nepavyko " - -#: ../../../src/main.cpp:4001 -msgid "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." -msgstr "Klaida: Pervedimas nepavyko. Tai galėjo atsitikti jei dalis jūsų monetų jau buvo išleista. Pvz.: Jei nodojote kopija wallet.dat kitame kliente ir monetos buvo išleistos ten, bet nepažymėtos kaip išleistos čia." - -#: ../../../src/main.cpp:4014 -msgid "Invalid amount" -msgstr "Neteisinga suma" - -#: ../../../src/main.cpp:4021 -msgid "Invalid bitcoin address" -msgstr "Klaidingas bitcoin adresas" - -#: ../../../src/rpc.cpp:1802 -#: ../../../src/rpc.cpp:1804 -#, c-format -msgid "To use the %s option" -msgstr "Kad naudoti %s parametrą" - -#: ../../../src/rpc.cpp:1806 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Perspėjimas: %s, jūs privalote nustatyti rpcpassword=\n" -"Konfiguracijos faile: %s\n" -"Jei failas neegzistuoja, sukurkite jį su owner-readable-only failo teisėmis.\n" - -#: ../../../src/rpc.cpp:1974 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"Jūs privalote nustatyti rpcpassword= Konfiguracijos faile:\n" -"%s\n" -"Jei failas neegzistuoja, sukurkite jį su owner-readable-only failo teisėm." - -#: ../../../src/util.cpp:866 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Perspėjimas: Prašome patikrinti kompiuterio laiką ir datą. Jei laikas neteisingai nustatytas, Bitcoin neveiks." - -#: ../../../src/util.cpp:899 -msgid "beta" -msgstr "beta" - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&Byla" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Jūsų priimantys adresai..." - -#: ../../../src/uibase.cpp:36 -msgid "&Options..." -msgstr "&Parametrai" - -#: ../../../src/uibase.cpp:39 -msgid "&Settings" -msgstr "N&ustatymai" - -#: ../../../src/uibase.cpp:43 -msgid "&About..." -msgstr "&О Apie..." - -#: ../../../src/uibase.cpp:46 -msgid "&Help" -msgstr "&Pagalba" - -#: ../../../src/uibase.cpp:56 -msgid "Address Book" -msgstr "Adresų knyga" - -#: ../../../src/uibase.cpp:69 -msgid "Your Bitcoin Address:" -msgstr "Jūsų Bitcoin Adresas:" - -#: ../../../src/uibase.cpp:76 -msgid " &New... " -msgstr " &Naujas... " - -#: ../../../src/uibase.cpp:79 -#: ../../../src/uibase.cpp:780 -#: ../../../src/uibase.cpp:883 -msgid " &Copy to Clipboard " -msgstr "&Kopijuoti" - -#: ../../../src/uibase.cpp:93 -msgid "Balance:" -msgstr "Balansas:" - -#: ../../../src/uibase.cpp:109 -msgid " All" -msgstr "Visi" - -#: ../../../src/uibase.cpp:109 -msgid " Sent" -msgstr "Išsiūsta" - -#: ../../../src/uibase.cpp:109 -msgid " Received" -msgstr "Priimta" - -#: ../../../src/uibase.cpp:109 -msgid " In Progress" -msgstr "Progrese" - -#: ../../../src/uibase.cpp:130 -msgid "All Transactions" -msgstr "Visi pervedimai" - -#: ../../../src/uibase.cpp:141 -msgid "Sent/Received" -msgstr "Išsiųsti/Priimti" - -#: ../../../src/uibase.cpp:152 -msgid "Sent" -msgstr "Išsiūsti" - -#: ../../../src/uibase.cpp:163 -msgid "Received" -msgstr "Priimti" - -#: ../../../src/uibase.cpp:302 -#: ../../../src/uibase.cpp:443 -#: ../../../src/uibase.cpp:542 -#: ../../../src/uibase.cpp:722 -#: ../../../src/uibase.cpp:783 -#: ../../../src/uibase.cpp:892 -#: ../../../src/uibase.cpp:981 -msgid "OK" -msgstr "Gerai" - -#: ../../../src/uibase.cpp:345 -msgid "&Start Bitcoin on system startup" -msgstr "&Paleisti Bitcoin kai pasileidžia operacinė sistema" - -#: ../../../src/uibase.cpp:348 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Sumažinti į \"tray\" vietoj \"taskbar\"" - -#: ../../../src/uibase.cpp:351 -msgid "Map port using &UPnP" -msgstr "Peradresuoti porta naudojant &UPnP" - -#: ../../../src/uibase.cpp:354 -msgid "M&inimize to the tray on close" -msgstr "Su&mažinti į \"tray\" kai uždaroma" - -#: ../../../src/uibase.cpp:360 -msgid "&Connect through socks4 proxy: " -msgstr "&Prisijungti per socks4 proksį: " - -#: ../../../src/uibase.cpp:371 -msgid "Proxy &IP:" -msgstr "P&roksio IP:" - -#: ../../../src/uibase.cpp:379 -msgid " &Port:" -msgstr " &Portas" - -#: ../../../src/uibase.cpp:392 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Pasirintinis pervedimo mokestis per KB, kuris padeda jį ivykdyti greičiau. Dauguma pervedimų yra 1KB. Rekomencuojamas mokestis 0.01." - -#: ../../../src/uibase.cpp:399 -#, fuzzy -msgid "Pay transaction fee:" -msgstr "Pervedimo mokestis:" - -#: ../../../src/uibase.cpp:420 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:424 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:446 -#: ../../../src/uibase.cpp:668 -#: ../../../src/uibase.cpp:727 -#: ../../../src/uibase.cpp:786 -#: ../../../src/uibase.cpp:895 -#: ../../../src/uibase.cpp:984 -msgid "Cancel" -msgstr "Nutraukti" - -#: ../../../src/uibase.cpp:449 -msgid "&Apply" -msgstr "&Nustatyti" - -#: ../../../src/uibase.cpp:508 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../src/uibase.cpp:514 -msgid "version" -msgstr "versija" - -#: ../../../src/uibase.cpp:525 -#, fuzzy -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Autorinė teisė (c) 2009-2010 Bitcoin Developers\n" -"\n" -"Ši programa yra eksperimentinė.\n" -"\n" -"Išleista ir teisės saugomos pagal MIT/X11 programų licenziją, kuri detaliau aprašyra faile \n" -"license.txt ir http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Šis produktas turi programą iš OpenSSL projekto, kuri naudojamas \n" -"OpenSSL Toolkit (http://www.openssl.org/), kriptografinę programą parašyta \n" -"Eric Young (eay@cryptsoft.com) ir UPnP programą parašyta Thomas Bernard." - -#: ../../../src/uibase.cpp:581 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Įveskite Bitcoin adresą (pvz.: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:595 -msgid "Pay &To:" -msgstr "&Kam:" - -#: ../../../src/uibase.cpp:610 -msgid "&Paste" -msgstr "&Įrašyti" - -#: ../../../src/uibase.cpp:613 -msgid " Address &Book..." -msgstr " &Adresų knyga..." - -#: ../../../src/uibase.cpp:620 -msgid "&Amount:" -msgstr "S&uma:" - -#: ../../../src/uibase.cpp:630 -msgid "T&ransfer:" -msgstr "&Pervedimas:" - -#: ../../../src/uibase.cpp:636 -msgid " Standard" -msgstr "Standartinis" - -#: ../../../src/uibase.cpp:663 -msgid "&Send" -msgstr "&Siūsti" - -#: ../../../src/uibase.cpp:711 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Jungiasi..." - -#: ../../../src/uibase.cpp:761 -msgid "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." -msgstr "Tai yra jūsų Bitcoin adresai priimti pervedimus. Galite duoti skirtinga adresa kiekvienam siuntėjui, kad žinotumėte kas jums moka. Pažymėtas adresas bus rodomas pagrindiniame lange." - -#: ../../../src/uibase.cpp:774 -#: ../../../src/uibase.cpp:886 -msgid "&Edit..." -msgstr "&Pakeisti..." - -#: ../../../src/uibase.cpp:777 -#: ../../../src/uibase.cpp:889 -msgid " &New Address... " -msgstr " &Naujas Adresas... " - -#: ../../../src/uibase.cpp:849 -msgid "Sending" -msgstr "Siunčiama" - -#: ../../../src/uibase.cpp:857 -msgid "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." -msgstr "Tai yra jūsų Bitcoin adresai priimti pervedimus. Galite duoti skirtinga adresa kiekvienam siuntėjui, kad žinotumėte kas jums moka. Pažymėtas adresas bus rodomas pagrindiniame lange." - -#: ../../../src/uibase.cpp:870 -msgid "Receiving" -msgstr "Priėmimo" - -#: ../../../src/uibase.cpp:880 -msgid "&Delete" -msgstr "&Ištrinti" - -#: ../../../src/init.cpp:142 -msgid "Bitcoin version" -msgstr "Bitcoin version" - -#: ../../../src/init.cpp:143 -msgid "Usage:" -msgstr "Komandų vartojimas:" - -#: ../../../src/init.cpp:145 -msgid "Send command to -server or bitcoind\n" -msgstr "Siūsti komandą i -server arba bitcoind\n" - -#: ../../../src/init.cpp:146 -msgid "List commands\n" -msgstr "Parodyti visas komandas\n" - -#: ../../../src/init.cpp:147 -msgid "Get help for a command\n" -msgstr "Komandos paaiškinimas\n" - -#: ../../../src/init.cpp:148 -msgid "Options:\n" -msgstr "Parametrai\n" - -#: ../../../src/init.cpp:149 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Nurodyti konfiguracijos failą (pagal nutylėjimą: bitcoin.conf)\n" - -#: ../../../src/init.cpp:150 -#, fuzzy -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "Nurodyti konfiguracijos failą (pagal nutylėjimą: bitcoin.conf)\n" - -#: ../../../src/init.cpp:151 -msgid "Generate coins\n" -msgstr "Generuoti monetas\n" - -#: ../../../src/init.cpp:152 -msgid "Don't generate coins\n" -msgstr "Negeneruoti monetų\n" - -#: ../../../src/init.cpp:153 -msgid "Start minimized\n" -msgstr "Paleisti minimizuotą klientą\n" - -#: ../../../src/init.cpp:154 -msgid "Specify data directory\n" -msgstr "Nurodyti duomenų direktoriją\n" - -#: ../../../src/init.cpp:155 -msgid "Connect through socks4 proxy\n" -msgstr "Prisijungti per socks4 proksį\n" - -#: ../../../src/init.cpp:156 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Leisti DNS lookups addnode ir connect komandoms\n" - -#: ../../../src/init.cpp:157 -msgid "Add a node to connect to\n" -msgstr "Pridėti nodą prie kurio bus jungiamasi\n" - -#: ../../../src/init.cpp:158 -msgid "Connect only to the specified node\n" -msgstr "Prisijungti tik prie šio nodo\n" - -#: ../../../src/init.cpp:159 -msgid "Don't accept connections from outside\n" -msgstr "Neleisti prisijungti iš išorės\n" - -#: ../../../src/init.cpp:162 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Nenaudoti UPnP klausančio porto peradresavimui\n" - -#: ../../../src/init.cpp:164 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Pamėginti naudoti UPnP klausančio porto peradresavimui\n" - -#: ../../../src/init.cpp:167 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Mokestis per KB pridedamas prie siunčiamo pervedimo\n" - -#: ../../../src/init.cpp:169 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Priimti komandas iš terminalo ir JSON-RPC\n" - -#: ../../../src/init.cpp:172 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Paleisti daemon\n" - -#: ../../../src/init.cpp:174 -msgid "Use the test network\n" -msgstr "Naudoti bandomajį tinklą\n" - -#: ../../../src/init.cpp:175 -msgid "Username for JSON-RPC connections\n" -msgstr "Naudotojo vardas JSON-RPC prisijungimui\n" - -#: ../../../src/init.cpp:176 -msgid "Password for JSON-RPC connections\n" -msgstr "Slaptažodis JSON-RPC prisijungimui\n" - -#: ../../../src/init.cpp:177 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Klausyti JSON-RPC prisijungimų ant (pagal nutylėjimą: 8332)\n" - -#: ../../../src/init.cpp:178 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Leisti JSON-RPC prisijungimą iš tam tikrų IP adresų\n" - -#: ../../../src/init.cpp:179 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Siūsti komandas į nodą kuris yra (pagal nutylėjimą: 127.0.0.1)\n" - -#: ../../../src/init.cpp:180 -msgid "Set key pool size to (default: 100)\n" -msgstr "Nustatyti kiek raktų skaičių (pagal nutylėjimą: 100)\n" - -#: ../../../src/init.cpp:181 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Perskanuoti blokų grandinę dėl trūkstamų pervedimų\n" - -#: ../../../src/init.cpp:185 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"SSL parametrai: (aplankykite Bitcoin Wiki dėl SSL nustatymų)\n" - -#: ../../../src/init.cpp:186 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Naudoti OpenSSL (https) JSON-RPC prisijungimui\n" - -#: ../../../src/init.cpp:187 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Serverio sertifikato failas (pagal nutylėjimą: server.cert)\n" - -#: ../../../src/init.cpp:188 -msgid "Server private key (default: server.pem)\n" -msgstr "Serverio privatus raktas (pagal nutylėjimą: server.pem)\n" - -#: ../../../src/init.cpp:189 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Priimtinas šifras (pagal nutylėjimą: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:193 -msgid "This help message\n" -msgstr "Ši pagalbos žinutė\n" - -#: ../../../src/init.cpp:330 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "Neranda duomenų directorijos %s. Bitcoin programa tikriausiai jau paleista." - -#: ../../../src/init.cpp:356 -msgid "Error loading addr.dat \n" -msgstr "Klaida nuskaitant addr.dat \n" - -#: ../../../src/init.cpp:362 -msgid "Error loading blkindex.dat \n" -msgstr "Klaida nuskaitant blkindex.dat \n" - -#: ../../../src/init.cpp:369 -msgid "Error loading wallet.dat \n" -msgstr "Klaida nuskaitant wallet.dat \n" - -#: ../../../src/init.cpp:449 -msgid "Invalid -proxy address" -msgstr "Klaidingas -proxy adresas" - -#: ../../../src/init.cpp:472 -msgid "Invalid amount for -paytxfee=" -msgstr "Klaidinga suma -paytxfee=" - -#: ../../../src/init.cpp:476 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Perspėjimas: -paytxfee yra nustatyta labai aukšta suma. Ši suma bus nuskaičiuota kaip mokestis darant pervedimą" - -#: ../../../src/uibase.h:147 -msgid "Transaction Details" -msgstr "Pervedimų detalės" - -#: ../../../src/uibase.h:199 -msgid "Options" -msgstr "Parametrai" - -#: ../../../src/uibase.h:228 -msgid "About Bitcoin" -msgstr "Apie Bitcoin" - -#: ../../../src/uibase.h:337 -msgid "Your Bitcoin Addresses" -msgstr "Jūsų Bitcoin Adresas" diff --git a/locale/nl/LC_MESSAGES/bitcoin.mo b/locale/nl/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index 13467f2..0000000 Binary files a/locale/nl/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/nl/LC_MESSAGES/bitcoin.po b/locale/nl/LC_MESSAGES/bitcoin.po deleted file mode 100644 index 5074f21..0000000 --- a/locale/nl/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,1195 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-09-22 19:03+0100\n" -"PO-Revision-Date: 2011-09-22 19:19+0100\n" -"Last-Translator: Pieter Wuille \n" -"Language-Team: \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-Language: Dutch\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/init.cpp:163 -msgid "Bitcoin version" -msgstr "Bitcoin versie" - -#: ../../../src/init.cpp:164 -msgid "Usage:" -msgstr "Mededeling:" - -#: ../../../src/init.cpp:166 -msgid "Send command to -server or bitcoind\n" -msgstr "Zend commando naar -server of bitcoind\n" - -#: ../../../src/init.cpp:167 -msgid "List commands\n" -msgstr "List van commando's\n" - -#: ../../../src/init.cpp:168 -msgid "Get help for a command\n" -msgstr "Toon hulp voor een commando\n" - -#: ../../../src/init.cpp:169 -msgid "Options:\n" -msgstr "Opties:\n" - -#: ../../../src/init.cpp:170 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Specifieer configuratiebestand (standaard: bitcoin.conf)\n" - -#: ../../../src/init.cpp:171 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "Specifieer pid-bestand (standaard: bitcoind.pid)\n" - -#: ../../../src/init.cpp:172 -msgid "Generate coins\n" -msgstr "Genereer coins\n" - -#: ../../../src/init.cpp:173 -msgid "Don't generate coins\n" -msgstr "Genereer geen coins\n" - -#: ../../../src/init.cpp:174 -msgid "Start minimized\n" -msgstr "Geminimaliseerd starten\n" - -#: ../../../src/init.cpp:175 -msgid "Specify data directory\n" -msgstr "Stel datamap in\n" - -#: ../../../src/init.cpp:176 -msgid "Specify connection timeout (in milliseconds)\n" -msgstr "Gelieve de time-out tijd te specifieren (in milliseconden)\n" - -#: ../../../src/init.cpp:177 -msgid "Connect through socks4 proxy\n" -msgstr "Verbind via socks4 proxy\n" - -#: ../../../src/init.cpp:178 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Sta DNS-opzoeking toe voor addnode en connect\n" - -#: ../../../src/init.cpp:179 -msgid "Add a node to connect to\n" -msgstr "Voeg een node toe om mee te verbinden\n" - -#: ../../../src/init.cpp:180 -msgid "Connect only to the specified node\n" -msgstr "Verbind alleen met deze node\n" - -#: ../../../src/init.cpp:181 -msgid "Don't accept connections from outside\n" -msgstr "Sta geen verbindingen van buitenaf toe\n" - -#: ../../../src/init.cpp:184 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Probeer geen UPnP te gebruiken om de poort waarop geluisterd wordt te mappen\n" - -#: ../../../src/init.cpp:186 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Probeer UPnP te gebruiken om de poort waarop geluisterd wordt te mappen\n" - -#: ../../../src/init.cpp:189 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Fooi per KB om aan transacties die gezonden worden toe te voegen\n" - -#: ../../../src/init.cpp:191 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Aanvaard commandolijn en JSON-RPC commando's\n" - -#: ../../../src/init.cpp:194 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Draai in de achtergrond als daemon en aanvaard commando's\n" - -#: ../../../src/init.cpp:196 -msgid "Use the test network\n" -msgstr "Gebruik het test-netwerk\n" - -#: ../../../src/init.cpp:197 -msgid "Username for JSON-RPC connections\n" -msgstr "Gebruikersnaam voor JSON-RPC verbindingen\n" - -#: ../../../src/init.cpp:198 -msgid "Password for JSON-RPC connections\n" -msgstr "Wachtwoord voor JSON-RPC verbindingen\n" - -#: ../../../src/init.cpp:199 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Luister voor JSON-RPC verbindingen op (standaard: 8332)\n" - -#: ../../../src/init.cpp:200 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Enkel JSON-RPC verbindingen van opgegeven IP adres toestaan\n" - -#: ../../../src/init.cpp:201 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Zend commando's naar proces dat op draait (standaard: 127.0.0.1)\n" - -#: ../../../src/init.cpp:202 -msgid "Set key pool size to (default: 100)\n" -msgstr "Stel sleutelpoelgrootte in op (standaard: 100)\n" - -#: ../../../src/init.cpp:203 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Doorzoek de blokken database voor ontbrekende portefeuille-transacties\n" - -#: ../../../src/init.cpp:207 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"SSL opties: (zie de Bitcoin wiki voor SSL instructies)\n" - -#: ../../../src/init.cpp:208 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Gebruik OpenSSL (https) voor JSON-RPC verbindingen\n" - -#: ../../../src/init.cpp:209 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Certificaat-bestand voor server (standaard: server.cert)\n" - -#: ../../../src/init.cpp:210 -msgid "Server private key (default: server.pem)\n" -msgstr "Geheime sleutel voor server (standaard: server.pem)\n" - -#: ../../../src/init.cpp:211 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Aanvaardbare ciphers (standaard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:215 -msgid "This help message\n" -msgstr "Dit helpbericht\n" - -#: ../../../src/init.cpp:353 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "Kan geen lock op de gegevensdirectory %s verkrijgen. Bitcoin draait vermoedelijk reeds." - -#: ../../../src/init.cpp:379 -msgid "Error loading addr.dat \n" -msgstr "Fout bij laden van bestand addr.dat \n" - -#: ../../../src/init.cpp:385 -msgid "Error loading blkindex.dat \n" -msgstr "Fout bij laden van bestand blkindex.dat \n" - -#: ../../../src/init.cpp:396 -msgid "Error loading wallet.dat: Wallet corrupted \n" -msgstr "Fout bij laden van bestand wallet.dat: portefeuille beschadigd \n" - -#: ../../../src/init.cpp:398 -msgid "Error loading wallet.dat: Wallet requires newer version of Bitcoin \n" -msgstr "Fout bij laden van bestand wallet.dat: portefeuille vereist nieuwere versie van Bitcoin\n" - -#: ../../../src/init.cpp:400 -msgid "Error loading wallet.dat \n" -msgstr "Fout bij laden van bestand wallet.dat \n" - -#: ../../../src/init.cpp:489 -msgid "Invalid -proxy address" -msgstr "Foutief -proxy adres" - -#: ../../../src/init.cpp:514 -msgid "Invalid amount for -paytxfee=" -msgstr "Ongeldig bedrag voor -paytxfee=" - -#: ../../../src/init.cpp:518 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Waarschuwing: -paytxfee is zeer hoog ingesteld. Dit is de fooi die betaald wordt bij het zenden van een transactie." - -#: ../../../src/rpc.cpp:2035 -#: ../../../src/rpc.cpp:2037 -#, c-format -msgid "To use the %s option" -msgstr "Om de %s optie te gebruiken" - -#: ../../../src/rpc.cpp:2039 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Waarschuwing: %s, rpcpassword= moet ingesteld zijn\n" -"in het configuratie bestand: %s\n" -"Als het bestand nog niet bestaat, maak het dan aan met enkel-leesbaar-door-eigenaar rechten.\n" - -#: ../../../src/rpc.cpp:2215 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"rpcpassword= moet ingesteld in het configuratie bestand:\n" -"%s\n" -"Als het bestand nog niet bestaat, maak het dan aan met enkel-leesbaar-door-eigenaar rechten." - -#: ../../../src/net.cpp:1616 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "Kan niet binden met poort %d op deze computer. Bitcoin draait vermoedelijk reeds." - -#: ../../../src/util.cpp:1008 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Waarschuwing: Controleer of uw computers datum en tijd correct ingesteld zijn. Als uw klok fout staat zal Bitcoin niet correct werken." - -#: ../../../src/util.cpp:1042 -msgid "beta" -msgstr "beta" - -#: ../../../src/wallet.cpp:1073 -msgid "Error: Wallet locked, unable to create transaction " -msgstr "Fout: portefeuille is op slot, kan geen transactie aanmaken" - -#: ../../../src/wallet.cpp:1081 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Fout: Deze transactie vergt een fooi van ten minste %s omwille van zijn bedrag, complexiteit, of gebruik van recent ontvangen fonden " - -#: ../../../src/wallet.cpp:1083 -msgid "Error: Transaction creation failed " -msgstr "Fout: Aanmaken van transactie mislukt " - -#: ../../../src/wallet.cpp:1088 -msgid "Sending..." -msgstr "Versturen..." - -#: ../../../src/wallet.cpp:1092 -msgid "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." -msgstr "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." - -#: ../../../src/wallet.cpp:1104 -msgid "Invalid amount" -msgstr "Foutieve hoeveelheid" - -#: ../../../src/wallet.cpp:1106 -msgid "Insufficient funds" -msgstr "Onvoldoende saldo" - -#: ../../../src/main.cpp:1398 -#: ../../../src/bak/main.cpp:1414 -msgid "Warning: Disk space is low " -msgstr "Waarschuwing: Weinig schijfruimte over " - -#: ../../../src/ui.cpp:217 -#: ../../../src/bak/ui.cpp:216 -#, c-format -msgid "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?" -msgstr "Deze transactie overschrijdt de limiet. Om de transactie alsnog te verwerken kun je een fooi betalen van %s. Deze zal betaald worden aan de node die uw transactie verwerkt. Wil je doorgaan en deze fooi betalen?" - -#: ../../../src/ui.cpp:261 -#: ../../../src/ui.cpp:1247 -msgid "Enter the current passphrase to the wallet." -msgstr "Geef het huidige wachtwoord voor de portefeuille." - -#: ../../../src/ui.cpp:262 -#: ../../../src/ui.cpp:1183 -#: ../../../src/ui.cpp:1200 -#: ../../../src/ui.cpp:1248 -#: ../../../src/ui.cpp:1272 -#: ../../../src/ui.cpp:1292 -msgid "Passphrase" -msgstr "Wachtwoord" - -#: ../../../src/ui.cpp:268 -msgid "Please supply the current wallet decryption passphrase." -msgstr "Geef het huidige wachtwoord voor de portefeille" - -#: ../../../src/ui.cpp:276 -#: ../../../src/ui.cpp:1257 -#: ../../../src/ui.cpp:1314 -msgid "The passphrase entered for the wallet decryption was incorrect." -msgstr "Het wachtwoord voor het openen van de portefeulle is foutief." - -#: ../../../src/ui.cpp:353 -#: ../../../src/bak/ui.cpp:316 -msgid "Status" -msgstr "Status" - -#: ../../../src/ui.cpp:354 -#: ../../../src/bak/ui.cpp:317 -msgid "Date" -msgstr "Datum" - -#: ../../../src/ui.cpp:355 -#: ../../../src/bak/ui.cpp:318 -msgid "Description" -msgstr "Beschrijving" - -#: ../../../src/ui.cpp:356 -#: ../../../src/bak/ui.cpp:319 -msgid "Debit" -msgstr "Debet" - -#: ../../../src/ui.cpp:357 -#: ../../../src/bak/ui.cpp:320 -msgid "Credit" -msgstr "Credit" - -#: ../../../src/ui.cpp:568 -#: ../../../src/bak/ui.cpp:526 -#, c-format -msgid "Open for %d blocks" -msgstr "Open gedurende %d blokken" - -#: ../../../src/ui.cpp:570 -#: ../../../src/bak/ui.cpp:528 -#, c-format -msgid "Open until %s" -msgstr "Open tot %s" - -#: ../../../src/ui.cpp:576 -#: ../../../src/bak/ui.cpp:534 -#, c-format -msgid "%d/offline?" -msgstr "%d/offline?" - -#: ../../../src/ui.cpp:578 -#: ../../../src/bak/ui.cpp:536 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/niet bevestigd" - -#: ../../../src/ui.cpp:580 -#: ../../../src/bak/ui.cpp:538 -#, c-format -msgid "%d confirmations" -msgstr "%d bevestigingen" - -#: ../../../src/ui.cpp:665 -#: ../../../src/bak/ui.cpp:623 -msgid "Generated" -msgstr "Gegenereerd" - -#: ../../../src/ui.cpp:673 -#: ../../../src/bak/ui.cpp:631 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Gegenereerd (%s wordt volwassen over %d blokken)" - -#: ../../../src/ui.cpp:677 -#: ../../../src/bak/ui.cpp:635 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Gegenereerd - Waarschuwing: Dit blok is niet ontvangen door andere nodes en zal waarschijnlijk niet geaccepteerd worden!" - -#: ../../../src/ui.cpp:681 -#: ../../../src/bak/ui.cpp:639 -msgid "Generated (not accepted)" -msgstr "Gegenereerd (niet geaccepteerd)" - -#: ../../../src/ui.cpp:691 -#: ../../../src/bak/ui.cpp:649 -msgid "From: " -msgstr "Van: " - -#: ../../../src/ui.cpp:715 -#: ../../../src/bak/ui.cpp:673 -msgid "Received with: " -msgstr "Ontvangen met: " - -#: ../../../src/ui.cpp:760 -#: ../../../src/bak/ui.cpp:719 -msgid "Payment to yourself" -msgstr "Betaling aan uzelf" - -#: ../../../src/ui.cpp:794 -#: ../../../src/bak/ui.cpp:753 -msgid "To: " -msgstr "Naar: " - -#: ../../../src/ui.cpp:1109 -#: ../../../src/bak/ui.cpp:1068 -msgid " Generating" -msgstr " Genereren..." - -#: ../../../src/ui.cpp:1111 -#: ../../../src/bak/ui.cpp:1070 -msgid "(not connected)" -msgstr "(niet verbonden)" - -#: ../../../src/ui.cpp:1114 -#: ../../../src/bak/ui.cpp:1073 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d verbindingen %d blokken %d transacties" - -#: ../../../src/ui.cpp:1171 -msgid "Wallet already encrypted." -msgstr "Portefeuille reeds versleuteld." - -#: ../../../src/ui.cpp:1182 -msgid "" -"Enter the new passphrase to the wallet.\n" -"Please use a passphrase of 10 or more random characters, or eight or more words." -msgstr "" -"Geef het nieuwe wachtwoord voor de portefeuille.\n" -"Gebruik een wachtwoord van 10 of meer willekeurige characters, of 8 of meer woorden." - -#: ../../../src/ui.cpp:1189 -#: ../../../src/ui.cpp:1280 -msgid "Error: The supplied passphrase was too short." -msgstr "Fout: het wachtwoord is kort." - -#: ../../../src/ui.cpp:1193 -msgid "" -"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?" -msgstr "" -"WAARSCHUWING: Indien u uw portefeuille versleutelt en het wachtwoord verliest, zal u AL UW BITCOINS VERLIEZEN!\n" -"Bent u zeker dat u de portfeuille wenst te versleutelen?" - -#: ../../../src/ui.cpp:1199 -msgid "Please re-enter your new wallet passphrase." -msgstr "Voer uw portefeuille-wachtwoord opnieuw in." - -#: ../../../src/ui.cpp:1208 -#: ../../../src/ui.cpp:1302 -msgid "Error: the supplied passphrases didn't match." -msgstr "Fout: de ingevoerde wachtwoorden komen niet overeen." - -#: ../../../src/ui.cpp:1218 -msgid "Wallet encryption failed." -msgstr "Versleutelen van de portefeuille mislukt." - -#: ../../../src/ui.cpp:1225 -msgid "" -"Wallet Encrypted.\n" -"Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer." -msgstr "" -"Portefeuille versleuteld.\n" -"Denk eraan dat uw portefeuille versleutelen geen volledige bescherming biedt tegen malware die uw computer zou geinfecteerd hebben." - -#: ../../../src/ui.cpp:1236 -msgid "Wallet is unencrypted, please encrypt it first." -msgstr "Portefeuille is onversleuteld. Versleutel ze eerst." - -#: ../../../src/ui.cpp:1271 -msgid "Enter the new passphrase for the wallet." -msgstr "Voer nieuw wachtwoord voor de portefeuille in." - -#: ../../../src/ui.cpp:1291 -msgid "Re-enter the new passphrase for the wallet." -msgstr "Voer nieuw wachtwoord voor de portefeuille opnieuw in." - -#: ../../../src/ui.cpp:1323 -msgid "Wallet Passphrase Changed." -msgstr "Portefeuille-wachtwoord gewijzigd." - -#: ../../../src/ui.cpp:1379 -#: ../../../src/ui.cpp:2825 -#: ../../../src/bak/ui.cpp:1178 -#: ../../../src/bak/ui.cpp:2571 -msgid "New Receiving Address" -msgstr "Nieuw Ontvangstadres" - -#: ../../../src/ui.cpp:1380 -#: ../../../src/ui.cpp:2826 -#: ../../../src/bak/ui.cpp:1179 -#: ../../../src/bak/ui.cpp:2572 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Het is een goede gewoonte om voor iedere betaling die je ontvangt een nieuw adres te gebruiken.\n" -"\n" -"Label" - -#: ../../../src/ui.cpp:1464 -#: ../../../src/bak/ui.cpp:1251 -msgid "Status: " -msgstr "Status: " - -#: ../../../src/ui.cpp:1469 -#: ../../../src/bak/ui.cpp:1256 -msgid ", has not been successfully broadcast yet" -msgstr ", is nog niet succesvol verstuurd naar het netwerk" - -#: ../../../src/ui.cpp:1471 -#: ../../../src/bak/ui.cpp:1258 -#, c-format -msgid ", broadcast through %d node" -msgstr ", verstuurd via %d node" - -#: ../../../src/ui.cpp:1473 -#: ../../../src/bak/ui.cpp:1260 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", verstuurd via %d nodes" - -#: ../../../src/ui.cpp:1477 -#: ../../../src/bak/ui.cpp:1264 -msgid "Date: " -msgstr "Datum: " - -#: ../../../src/ui.cpp:1485 -#: ../../../src/bak/ui.cpp:1272 -msgid "Source: Generated
" -msgstr "Bron: Gegenereerd
" - -#: ../../../src/ui.cpp:1491 -#: ../../../src/ui.cpp:1508 -#: ../../../src/bak/ui.cpp:1278 -#: ../../../src/bak/ui.cpp:1296 -msgid "From: " -msgstr "Van: " - -#: ../../../src/ui.cpp:1508 -#: ../../../src/bak/ui.cpp:1296 -msgid "unknown" -msgstr "onbekend" - -#: ../../../src/ui.cpp:1509 -#: ../../../src/ui.cpp:1533 -#: ../../../src/ui.cpp:1592 -#: ../../../src/bak/ui.cpp:1297 -#: ../../../src/bak/ui.cpp:1321 -#: ../../../src/bak/ui.cpp:1380 -msgid "To: " -msgstr "Naar: " - -#: ../../../src/ui.cpp:1512 -#: ../../../src/bak/ui.cpp:1300 -msgid " (yours, label: " -msgstr " (van jou, label: " - -#: ../../../src/ui.cpp:1514 -#: ../../../src/bak/ui.cpp:1302 -msgid " (yours)" -msgstr " (van jou)" - -#: ../../../src/ui.cpp:1551 -#: ../../../src/ui.cpp:1563 -#: ../../../src/ui.cpp:1609 -#: ../../../src/ui.cpp:1626 -#: ../../../src/bak/ui.cpp:1339 -#: ../../../src/bak/ui.cpp:1351 -#: ../../../src/bak/ui.cpp:1397 -#: ../../../src/bak/ui.cpp:1414 -msgid "Credit: " -msgstr "Credit:" - -#: ../../../src/ui.cpp:1553 -#: ../../../src/bak/ui.cpp:1341 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s wordt volwassen over %d blokken)" - -#: ../../../src/ui.cpp:1555 -#: ../../../src/bak/ui.cpp:1343 -msgid "(not accepted)" -msgstr "(niet geaccepteerd)" - -#: ../../../src/ui.cpp:1600 -#: ../../../src/ui.cpp:1608 -#: ../../../src/ui.cpp:1623 -#: ../../../src/bak/ui.cpp:1388 -#: ../../../src/bak/ui.cpp:1396 -#: ../../../src/bak/ui.cpp:1411 -msgid "Debit: " -msgstr "Debet:" - -#: ../../../src/ui.cpp:1614 -#: ../../../src/bak/ui.cpp:1402 -msgid "Transaction fee: " -msgstr "Transactiefooi: " - -#: ../../../src/ui.cpp:1630 -#: ../../../src/bak/ui.cpp:1418 -msgid "Net amount: " -msgstr "Nettobedrag: " - -#: ../../../src/ui.cpp:1637 -#: ../../../src/bak/ui.cpp:1425 -msgid "Message:" -msgstr "Mededeling:" - -#: ../../../src/ui.cpp:1639 -#: ../../../src/bak/ui.cpp:1427 -msgid "Comment:" -msgstr "Commentaar:" - -#: ../../../src/ui.cpp:1642 -#: ../../../src/bak/ui.cpp:1430 -msgid "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." -msgstr "Gegenereerde coins mogen pas na een wachttijd van 120 blokken uitgegeven worden. Op het moment dat dit blok gegenereerd werd, is het naar het netwerk verzonden om aan de blokkenreeks toegevoegd te worden. Als het niet succesvol in de blokkenreeks opgenomen kan worden verandert de status in \"niet geaccepteerd\" en kan het niet uitegegeven worden. Dit kan soms gebeuren als een andere node op ongeveer hetzelfde moment een blok genereert." - -#: ../../../src/ui.cpp:1826 -#: ../../../src/bak/ui.cpp:1610 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Kan niet schrijven naar het bestand autostart/bitcoin.desktop" - -#: ../../../src/ui.cpp:1862 -#: ../../../src/bak/ui.cpp:1646 -msgid "Main" -msgstr "Algemeen" - -#: ../../../src/ui.cpp:1872 -#: ../../../src/bak/ui.cpp:1656 -msgid "&Start Bitcoin on window system startup" -msgstr "&Start Bitcoin wanneer het systeem opstart" - -#: ../../../src/ui.cpp:1879 -#: ../../../src/bak/ui.cpp:1663 -msgid "&Minimize on close" -msgstr "&Minimaliseer bij sluiten van het venster" - -#: ../../../src/ui.cpp:2021 -#: ../../../src/bak/ui.cpp:1805 -#, c-format -msgid "version %s" -msgstr "versie %s" - -#: ../../../src/ui.cpp:2144 -#: ../../../src/bak/ui.cpp:1928 -msgid "Error in amount " -msgstr "Fout in hoeveelheid " - -#: ../../../src/ui.cpp:2144 -#: ../../../src/ui.cpp:2149 -#: ../../../src/ui.cpp:2154 -#: ../../../src/ui.cpp:2207 -#: ../../../src/uibase.cpp:61 -#: ../../../src/bak/ui.cpp:1928 -#: ../../../src/bak/ui.cpp:1933 -#: ../../../src/bak/ui.cpp:1938 -#: ../../../src/bak/ui.cpp:1973 -msgid "Send Coins" -msgstr "Verstuur coins" - -#: ../../../src/ui.cpp:2149 -#: ../../../src/bak/ui.cpp:1933 -msgid "Amount exceeds your balance " -msgstr "Hoeveelheid overschrijdt uw huidige balans " - -#: ../../../src/ui.cpp:2154 -#: ../../../src/bak/ui.cpp:1938 -msgid "Total exceeds your balance when the " -msgstr "Totaal overschrijdt uw huidige balans wanneer de " - -#: ../../../src/ui.cpp:2154 -#: ../../../src/bak/ui.cpp:1938 -msgid " transaction fee is included " -msgstr " transactiefooi is meegerekend " - -#: ../../../src/ui.cpp:2181 -#: ../../../src/bak/ui.cpp:1956 -msgid "Payment sent " -msgstr "Betaling verzonden " - -#: ../../../src/ui.cpp:2207 -#: ../../../src/bak/ui.cpp:1973 -msgid "Invalid address " -msgstr "Foutief adres " - -#: ../../../src/ui.cpp:2262 -#: ../../../src/bak/ui.cpp:2028 -#, c-format -msgid "Sending %s to %s" -msgstr "%s versturen naar %s" - -#: ../../../src/ui.cpp:2335 -#: ../../../src/ui.cpp:2368 -#: ../../../src/bak/ui.cpp:2101 -#: ../../../src/bak/ui.cpp:2134 -msgid "CANCELLED" -msgstr "GEANNULEERD" - -#: ../../../src/ui.cpp:2339 -#: ../../../src/bak/ui.cpp:2105 -msgid "Cancelled" -msgstr "Geannuleerd" - -#: ../../../src/ui.cpp:2341 -#: ../../../src/bak/ui.cpp:2107 -msgid "Transfer cancelled " -msgstr "Transactie geannuleerd " - -#: ../../../src/ui.cpp:2394 -#: ../../../src/bak/ui.cpp:2160 -msgid "Error: " -msgstr "Fout: " - -#: ../../../src/ui.cpp:2413 -#: ../../../src/bak/ui.cpp:2179 -msgid "Connecting..." -msgstr "Verbinden..." - -#: ../../../src/ui.cpp:2418 -#: ../../../src/bak/ui.cpp:2184 -msgid "Unable to connect" -msgstr "Kan niet verbinden" - -#: ../../../src/ui.cpp:2423 -#: ../../../src/bak/ui.cpp:2189 -msgid "Requesting public key..." -msgstr "Aanvragen van publieke sleutel..." - -#: ../../../src/ui.cpp:2435 -#: ../../../src/bak/ui.cpp:2201 -msgid "Received public key..." -msgstr "Publieke sleutel ontvangen..." - -#: ../../../src/ui.cpp:2449 -#: ../../../src/bak/ui.cpp:2215 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Ontvanger aanvaardt geen transacties via IP adres" - -#: ../../../src/ui.cpp:2451 -#: ../../../src/bak/ui.cpp:2217 -msgid "Transfer was not accepted" -msgstr "Transactie niet geaccepteerd" - -#: ../../../src/ui.cpp:2460 -#: ../../../src/bak/ui.cpp:2226 -msgid "Invalid response received" -msgstr "Foutief antwoord ontvangen" - -#: ../../../src/ui.cpp:2473 -#: ../../../src/bak/ui.cpp:2241 -msgid "Creating transaction..." -msgstr "Transactie aanmaken..." - -#: ../../../src/ui.cpp:2496 -#: ../../../src/bak/ui.cpp:2253 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Deze transactie vergt een fooi van ten minste %s omwille van zijn bedrag, complexiteit, of gebruik van recent ontvangen fonden" - -#: ../../../src/ui.cpp:2498 -#: ../../../src/bak/ui.cpp:2255 -msgid "Transaction creation failed" -msgstr "Aanmaken van transactie mislukt" - -#: ../../../src/ui.cpp:2508 -#: ../../../src/bak/ui.cpp:2262 -msgid "Transaction aborted" -msgstr "Transactie geannuleerd" - -#: ../../../src/ui.cpp:2516 -#: ../../../src/bak/ui.cpp:2270 -msgid "Lost connection, transaction cancelled" -msgstr "Verbinding verloren, transactie geannuleerd" - -#: ../../../src/ui.cpp:2532 -#: ../../../src/bak/ui.cpp:2286 -msgid "Sending payment..." -msgstr "Betaling versturen..." - -#: ../../../src/ui.cpp:2544 -#: ../../../src/bak/ui.cpp:2292 -msgid "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." -msgstr "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." - -#: ../../../src/ui.cpp:2553 -#: ../../../src/bak/ui.cpp:2301 -msgid "Waiting for confirmation..." -msgstr "Wachten op bevestiging..." - -#: ../../../src/ui.cpp:2570 -#: ../../../src/bak/ui.cpp:2319 -msgid "" -"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." -msgstr "" -"De betaling is verstuurd, maar de ontvanger kon hem niet verifiëren.\n" -"De transactie is opgenomen en wordt uitbetaald aan de ontvanger,\n" -"maar het mededelings-veld blijft blanco." - -#: ../../../src/ui.cpp:2579 -#: ../../../src/bak/ui.cpp:2328 -msgid "Payment was sent, but an invalid response was received" -msgstr "Betaling is verstuurd, maar een foutief antword is ontvangen." - -#: ../../../src/ui.cpp:2585 -#: ../../../src/bak/ui.cpp:2334 -msgid "Payment completed" -msgstr "Betaling voltooid" - -#: ../../../src/ui.cpp:2627 -#: ../../../src/ui.cpp:2773 -#: ../../../src/ui.cpp:2813 -#: ../../../src/bak/ui.cpp:2376 -#: ../../../src/bak/ui.cpp:2522 -#: ../../../src/bak/ui.cpp:2559 -msgid "Name" -msgstr "Naam" - -#: ../../../src/ui.cpp:2628 -#: ../../../src/ui.cpp:2773 -#: ../../../src/ui.cpp:2813 -#: ../../../src/bak/ui.cpp:2377 -#: ../../../src/bak/ui.cpp:2522 -#: ../../../src/bak/ui.cpp:2559 -msgid "Address" -msgstr "Adres" - -#: ../../../src/ui.cpp:2630 -#: ../../../src/ui.cpp:2785 -#: ../../../src/bak/ui.cpp:2379 -#: ../../../src/bak/ui.cpp:2534 -msgid "Label" -msgstr "Label" - -#: ../../../src/ui.cpp:2631 -#: ../../../src/uibase.cpp:847 -#: ../../../src/bak/ui.cpp:2380 -msgid "Bitcoin Address" -msgstr "Bitcoin-adres" - -#: ../../../src/ui.cpp:2755 -#: ../../../src/bak/ui.cpp:2504 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Dit is een van uw eigen adressen voor het ontvangen van betalingen, en kan niet worden toegevoegd aan uw adresboek. " - -#: ../../../src/ui.cpp:2773 -#: ../../../src/ui.cpp:2779 -#: ../../../src/bak/ui.cpp:2522 -#: ../../../src/bak/ui.cpp:2528 -msgid "Edit Address" -msgstr "Bewerk adres" - -#: ../../../src/ui.cpp:2785 -#: ../../../src/bak/ui.cpp:2534 -msgid "Edit Address Label" -msgstr "Bewerk adreslabel" - -#: ../../../src/ui.cpp:2813 -#: ../../../src/ui.cpp:2819 -#: ../../../src/bak/ui.cpp:2559 -#: ../../../src/bak/ui.cpp:2565 -msgid "Add Address" -msgstr "Adres toevoegen" - -#: ../../../src/ui.cpp:2906 -#: ../../../src/bak/ui.cpp:2642 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2908 -#: ../../../src/bak/ui.cpp:2644 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Genereren..." - -#: ../../../src/ui.cpp:2910 -#: ../../../src/bak/ui.cpp:2646 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (niet verbonden)" - -#: ../../../src/ui.cpp:2989 -#: ../../../src/bak/ui.cpp:2725 -msgid "&Open Bitcoin" -msgstr "&Open Bitcoin" - -#: ../../../src/ui.cpp:2990 -#: ../../../src/bak/ui.cpp:2726 -msgid "&Send Bitcoins" -msgstr "&Verstuur Bitcoins" - -#: ../../../src/ui.cpp:2991 -#: ../../../src/bak/ui.cpp:2727 -msgid "O&ptions..." -msgstr "O&pties" - -#: ../../../src/ui.cpp:2994 -#: ../../../src/uibase.cpp:25 -#: ../../../src/bak/ui.cpp:2730 -msgid "E&xit" -msgstr "A&fsluiten" - -#: ../../../src/ui.cpp:3220 -#: ../../../src/bak/ui.cpp:2956 -msgid "Program has crashed and will terminate. " -msgstr "Het programma is gecrasht en wordt afgesloten. " - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&Bestand" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Uw ontvangstadressen..." - -#: ../../../src/uibase.cpp:35 -msgid "&Encrypt Wallet..." -msgstr "&Versleutel portefeuille..." - -#: ../../../src/uibase.cpp:38 -msgid "&Change Wallet Encryption Passphrase..." -msgstr "&Wijzig portefeuille-wachtwoord..." - -#: ../../../src/uibase.cpp:42 -msgid "&Options..." -msgstr "&Opties..." - -#: ../../../src/uibase.cpp:45 -msgid "&Settings" -msgstr "&Eigenschappen" - -#: ../../../src/uibase.cpp:49 -msgid "&About..." -msgstr "&Over..." - -#: ../../../src/uibase.cpp:52 -msgid "&Help" -msgstr "&Help" - -#: ../../../src/uibase.cpp:62 -msgid "Address Book" -msgstr "Adresboek" - -#: ../../../src/uibase.cpp:75 -msgid "Your Bitcoin Address:" -msgstr "Uw bitcoin-adres:" - -#: ../../../src/uibase.cpp:82 -msgid " &New... " -msgstr " &Nieuw... " - -#: ../../../src/uibase.cpp:85 -#: ../../../src/uibase.cpp:790 -#: ../../../src/uibase.cpp:893 -msgid " &Copy to Clipboard " -msgstr " &Kopieer naar plakbord " - -#: ../../../src/uibase.cpp:99 -msgid "Balance:" -msgstr "Balans:" - -#: ../../../src/uibase.cpp:115 -msgid " All" -msgstr " Alles" - -#: ../../../src/uibase.cpp:115 -msgid " Sent" -msgstr " Verstuurd" - -#: ../../../src/uibase.cpp:115 -msgid " Received" -msgstr " Ontvangen" - -#: ../../../src/uibase.cpp:115 -msgid " In Progress" -msgstr " Wordt verwerkt" - -#: ../../../src/uibase.cpp:136 -msgid "All Transactions" -msgstr "Alle transacties" - -#: ../../../src/uibase.cpp:147 -msgid "Sent/Received" -msgstr "Verstuurd/Ontvangen" - -#: ../../../src/uibase.cpp:158 -msgid "Sent" -msgstr "Verstuurd" - -#: ../../../src/uibase.cpp:169 -msgid "Received" -msgstr "Ontvangen" - -#: ../../../src/uibase.cpp:312 -#: ../../../src/uibase.cpp:453 -#: ../../../src/uibase.cpp:552 -#: ../../../src/uibase.cpp:732 -#: ../../../src/uibase.cpp:793 -#: ../../../src/uibase.cpp:902 -#: ../../../src/uibase.cpp:991 -msgid "OK" -msgstr "OK" - -#: ../../../src/uibase.cpp:355 -msgid "&Start Bitcoin on system startup" -msgstr "&Start Bitcoin wanneer het systeem opstart" - -#: ../../../src/uibase.cpp:358 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Minimaliseer tot systeemvak in plaats van de taakbalk" - -#: ../../../src/uibase.cpp:361 -msgid "Map port using &UPnP" -msgstr "Portmapping via &UPnP" - -#: ../../../src/uibase.cpp:364 -msgid "M&inimize to the tray on close" -msgstr "M&inimaliseer tot taakbalk bij sluiten" - -#: ../../../src/uibase.cpp:370 -msgid "&Connect through socks4 proxy (requires restart to apply): " -msgstr "&Verbind via socks4 proxy (vereist herstart):" - -#: ../../../src/uibase.cpp:381 -msgid "Proxy &IP:" -msgstr "Proxy &IP:" - -#: ../../../src/uibase.cpp:389 -msgid " &Port:" -msgstr " &Poort:" - -#: ../../../src/uibase.cpp:402 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Optionele transactiefooi per KB die helpt ervoor zorgen dat uw transacties snel verwerkt worden. De meeste transacties zijn 1KB. Fooi 0.01 is aangeraden." - -#: ../../../src/uibase.cpp:409 -msgid "Pay transaction fee:" -msgstr "Transactiefooi:" - -#: ../../../src/uibase.cpp:430 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:434 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:456 -#: ../../../src/uibase.cpp:678 -#: ../../../src/uibase.cpp:737 -#: ../../../src/uibase.cpp:796 -#: ../../../src/uibase.cpp:905 -#: ../../../src/uibase.cpp:994 -msgid "Cancel" -msgstr "Annuleren" - -#: ../../../src/uibase.cpp:459 -msgid "&Apply" -msgstr "&Toepassen" - -#: ../../../src/uibase.cpp:518 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../src/uibase.cpp:524 -msgid "version" -msgstr "versie" - -#: ../../../src/uibase.cpp:535 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2011 Bitcoin-ontwikkelaars\n" -"\n" -"Dit is experimentele software.\n" -"\n" -"Gedistributeerd onder de MIT/X11 software licentie, zie het bijgevoegde bestand \n" -"license.txt of kijk op http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Dit product bevat software ontwikkeld door het OpenSSL project for gebruik \n" -"in de OpenSSL Toolkit (http://www.openssl.org/), en cryptografische \n" -"software geschreven door Eric Young (eay@cryptsoft.com)) en UPnP software geschreven\n" -"door Thomas Bernard." - -#: ../../../src/uibase.cpp:591 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Voer een bitcoin-adres (bijvoorbeeld: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:605 -msgid "Pay &To:" -msgstr "Betaal &aan:" - -#: ../../../src/uibase.cpp:620 -msgid "&Paste" -msgstr "&Plakken" - -#: ../../../src/uibase.cpp:623 -msgid " Address &Book..." -msgstr " Adres&boek..." - -#: ../../../src/uibase.cpp:630 -msgid "&Amount:" -msgstr "&Hoeveelheid:" - -#: ../../../src/uibase.cpp:640 -msgid "T&ransfer:" -msgstr "O&verdracht:" - -#: ../../../src/uibase.cpp:646 -msgid " Standard" -msgstr " Standaard" - -#: ../../../src/uibase.cpp:673 -msgid "&Send" -msgstr "&Versturen" - -#: ../../../src/uibase.cpp:721 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Verbinden..." - -#: ../../../src/uibase.cpp:771 -msgid "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." -msgstr "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." - -#: ../../../src/uibase.cpp:784 -#: ../../../src/uibase.cpp:896 -msgid "&Edit..." -msgstr "&Bewerken..." - -#: ../../../src/uibase.cpp:787 -#: ../../../src/uibase.cpp:899 -msgid " &New Address... " -msgstr " &Nieuw adres... " - -#: ../../../src/uibase.cpp:859 -msgid "Sending" -msgstr "Versturen..." - -#: ../../../src/uibase.cpp:867 -msgid "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." -msgstr "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." - -#: ../../../src/uibase.cpp:880 -msgid "Receiving" -msgstr "Ontvangen..." - -#: ../../../src/uibase.cpp:890 -msgid "&Delete" -msgstr "&Verwijderen" - -#: ../../../src/bak/wallet.cpp:957 -msgid "Invalid bitcoin address" -msgstr "Foutief bitcoin-adres" - -#: ../../../src/bak/uibase.cpp:360 -msgid "&Connect through socks4 proxy: " -msgstr "&Verbind via socks4 proxy: " - -#: ../../../src/uibase.h:151 -msgid "Transaction Details" -msgstr "Transactiedetails" - -#: ../../../src/uibase.h:203 -msgid "Options" -msgstr "Opties" - -#: ../../../src/uibase.h:232 -msgid "About Bitcoin" -msgstr "Over Bitcoin" - -#: ../../../src/uibase.h:341 -msgid "Your Bitcoin Addresses" -msgstr "Uw bitcoin-adressen" - diff --git a/locale/pl/LC_MESSAGES/bitcoin.po b/locale/pl/LC_MESSAGES/bitcoin.po deleted file mode 100644 index 17b5f10..0000000 --- a/locale/pl/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,978 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: Bitcoin\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-28 20:11+0100\n" -"PO-Revision-Date: \n" -"Last-Translator: Krystian Maksymowicz \n" -"Language-Team: Spiechu , Krystian Maksymowicz \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: \n" -"X-Poedit-Language: Polish\n" -"X-Poedit-Country: POLAND\n" -"X-Poedit-SourceCharset: utf-8\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/net.cpp:1590 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "Powiązanie z portem %d nie powiodło się. Prawdopodobnie Bitcoin jest już uruchomiony." - -#: ../../../src/init.cpp:162 -msgid "Bitcoin version" -msgstr "Wersja Bitcoin" - -#: ../../../src/init.cpp:163 -msgid "Usage:" -msgstr "Zastosowanie:" - -#: ../../../src/init.cpp:165 -msgid "Send command to -server or bitcoind\n" -msgstr "Wyślij polecenie do -server lub bitcoind\n" - -#: ../../../src/init.cpp:166 -msgid "List commands\n" -msgstr "Lista komend\n" - -#: ../../../src/init.cpp:167 -msgid "Get help for a command\n" -msgstr "Wyświetl pomoc dla komendy\n" - -#: ../../../src/init.cpp:168 -msgid "Options:\n" -msgstr "Opcje:\n" - -#: ../../../src/init.cpp:169 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Określ plik konfiguracyjny (domyślnie: bitcoin.conf)\n" - -#: ../../../src/init.cpp:170 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "Określ plik pid (domyślnie: bitcoind.pid)\n" - -#: ../../../src/init.cpp:171 -msgid "Generate coins\n" -msgstr "Generuj monety\n" - -#: ../../../src/init.cpp:172 -msgid "Don't generate coins\n" -msgstr "Nie generuj monet\n" - -#: ../../../src/init.cpp:173 -msgid "Start minimized\n" -msgstr "Uruchom zminimalizowany\n" - -#: ../../../src/init.cpp:174 -msgid "Specify data directory\n" -msgstr "Określ katalog danych\n" - -#: ../../../src/init.cpp:175 -msgid "Specify connection timeout (in milliseconds)\n" -msgstr "Ustaw limit czasu połączenia (w milisekundach)\n" - -#: ../../../src/init.cpp:176 -msgid "Connect through socks4 proxy\n" -msgstr "Połącz przez proxy socks4\n" - -# 2do -#: ../../../src/init.cpp:177 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Umożliwiaj wyszukiwanie DNS przy dodawaniu węzła i połączenia\n" - -# 2do -#: ../../../src/init.cpp:178 -msgid "Add a node to connect to\n" -msgstr "Dodaj węzeł do którego połączyć\n" - -#: ../../../src/init.cpp:179 -msgid "Connect only to the specified node\n" -msgstr "Łącz tylko z wybranym węzłem\n" - -#: ../../../src/init.cpp:180 -msgid "Don't accept connections from outside\n" -msgstr "Nie akceptuj połączeń z zewnątrz\n" - -#: ../../../src/init.cpp:183 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Nie próbuj użyć UPnP dla mapowania portu nasłuchu\n" - -#: ../../../src/init.cpp:185 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Próbuj użyć UPnP dla mapowania portu nasłuchu\n" - -#: ../../../src/init.cpp:188 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Prowizja na KB dodawana do transakcji, które wysyłasz\n" - -#: ../../../src/init.cpp:190 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Akceptuj polecenia linii poleceń i JSON-RPC\n" - -#: ../../../src/init.cpp:193 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Uruchom w tle (daemon) i akceptuj komendy\n" - -#: ../../../src/init.cpp:195 -msgid "Use the test network\n" -msgstr "Użyj sieci testowej\n" - -#: ../../../src/init.cpp:196 -msgid "Username for JSON-RPC connections\n" -msgstr "Nazwa użytkownika dla połączeń JSON-RPC\n" - -#: ../../../src/init.cpp:197 -msgid "Password for JSON-RPC connections\n" -msgstr "Hasło dla połączeń JSON-RPC\n" - -#: ../../../src/init.cpp:198 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Nasłuch dla połączeń JSON-RPC na porcie (domyślnie: 8332)\n" - -#: ../../../src/init.cpp:199 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Zezwól na połączenia JSON-RPC z adresu IP\n" - -#: ../../../src/init.cpp:200 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Wysyłaj polecenia do węzła działającego na (domyślnie: 127.0.0.1)\n" - -#: ../../../src/init.cpp:201 -msgid "Set key pool size to (default: 100)\n" -msgstr "Ustaw pulę kluczy na (domyślnie: 100)\n" - -#: ../../../src/init.cpp:202 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Przeszukaj łańcuch bloków w poszukiwaniu zaginionych transakcji\n" - -#: ../../../src/init.cpp:206 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"Opcje SSL: (zobacz instrukcje na Bitcoin Wiki dla ustawień SSL)\n" - -#: ../../../src/init.cpp:207 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Użyj OpenSSL (https) dla połączeń JSON-RPC\n" - -#: ../../../src/init.cpp:208 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Plik certyfikacji serwera (domyślnie: server.cert)\n" - -#: ../../../src/init.cpp:209 -msgid "Server private key (default: server.pem)\n" -msgstr "Klucz prywatny serwera (domyślnie: server.pem)\n" - -#: ../../../src/init.cpp:210 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Akceptowalne szyfry (domyślnie: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:214 -msgid "This help message\n" -msgstr "Ta wiadomość pomocy\n" - -#: ../../../src/init.cpp:351 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "Nie można korzystać z katalogu %s z danymi. Bitcoin prawdopodobnie już jest uruchomiony." - -#: ../../../src/init.cpp:377 -msgid "Error loading addr.dat \n" -msgstr "Błąd ładowania addr.dat \n" - -#: ../../../src/init.cpp:383 -msgid "Error loading blkindex.dat \n" -msgstr "Błąd ładowania blkindex.dat \n" - -#: ../../../src/init.cpp:391 -msgid "Error loading wallet.dat \n" -msgstr "Błąd ładowania wallet.dat \n" - -#: ../../../src/init.cpp:481 -msgid "Invalid -proxy address" -msgstr "Niewłaściwy adres -proxy" - -#: ../../../src/init.cpp:504 -msgid "Invalid amount for -paytxfee=" -msgstr "Nieprawidłowa kwota w -paytxfee=" - -#: ../../../src/init.cpp:508 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Ostrzeżenie: ustawienie -paytxfee jest bardzo wysokie. To jest prowizja transakcji, którą zapłacisz jeżeli wyślesz transakcję." - -#: ../../../src/rpc.cpp:1822 -#: ../../../src/rpc.cpp:1824 -#, c-format -msgid "To use the %s option" -msgstr "Użycie opcji %s" - -#: ../../../src/rpc.cpp:1826 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Ostrzeżenie: %s, musisz ustawić rpcpassword=\n" -"w pliku konfiguracyjnym: %s\n" -"Jeżeli plik nie istnieje, utwórz go z uprawnieniami tylko do odczytu dla właściciela.\n" - -#: ../../../src/rpc.cpp:1994 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"Musisz ustawić rpcpassword= w pliku konfiguracyjnym:\n" -"%s\n" -"Jeżeli plik nie istnieje, utwórz go z uprawnieniami tylko do odczytu dla właściciela." - -#: ../../../src/util.cpp:874 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Ostrzeżenie: Sprawdź czy ustawienia daty i czasu komputera są prawidłowe. Jeżeli zegar jest źle ustawiony, Bitcoin nie będzie działał poprawnie." - -#: ../../../src/util.cpp:908 -msgid "beta" -msgstr "beta" - -#: ../../../src/ui.cpp:216 -#, c-format -msgid "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?" -msgstr "Ta transakcja przekracza limit wielkości. W dalszym ciągu możesz ją wysłać z prowizją %s, która dotrze do węzłów przetwarzających twoją transakcję i pomoże utrzymać całą sieć. Chcesz zapłacić prowizję?" - -#: ../../../src/ui.cpp:316 -msgid "Status" -msgstr "Stan" - -#: ../../../src/ui.cpp:317 -msgid "Date" -msgstr "Data" - -#: ../../../src/ui.cpp:318 -msgid "Description" -msgstr "Opis" - -#: ../../../src/ui.cpp:319 -msgid "Debit" -msgstr "Debet" - -#: ../../../src/ui.cpp:320 -msgid "Credit" -msgstr "Kredyt" - -#: ../../../src/ui.cpp:526 -#, c-format -msgid "Open for %d blocks" -msgstr "Otwórz na %d bloków" - -#: ../../../src/ui.cpp:528 -#, c-format -msgid "Open until %s" -msgstr "Otwarte dopóki %s" - -#: ../../../src/ui.cpp:534 -#, c-format -msgid "%d/offline?" -msgstr "%d/offline?" - -#: ../../../src/ui.cpp:536 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/niepotwierdzona" - -#: ../../../src/ui.cpp:538 -#, c-format -msgid "%d confirmations" -msgstr "%d potwierdzeń" - -#: ../../../src/ui.cpp:623 -msgid "Generated" -msgstr "Wygenerowano" - -#: ../../../src/ui.cpp:631 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Wygenerowano (%s dojrzałych w %d więcej bloków)" - -#: ../../../src/ui.cpp:635 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Wygenerowano - Ostrzeżenie: Ten blok nie został otrzymany przez żaden inny węzeł i prawdopodobnie nie zostanie zaakceptowany!" - -#: ../../../src/ui.cpp:639 -msgid "Generated (not accepted)" -msgstr "Wygenerowano (nie zaakceptowano)" - -#: ../../../src/ui.cpp:649 -msgid "From: " -msgstr "Od:" - -#: ../../../src/ui.cpp:673 -msgid "Received with: " -msgstr "Otrzymano z:" - -#: ../../../src/ui.cpp:719 -msgid "Payment to yourself" -msgstr "Płatność dla siebie samego" - -#: ../../../src/ui.cpp:753 -msgid "To: " -msgstr "Do:" - -#: ../../../src/ui.cpp:1068 -msgid " Generating" -msgstr " Generowanie" - -#: ../../../src/ui.cpp:1070 -msgid "(not connected)" -msgstr "(nie połączony)" - -#: ../../../src/ui.cpp:1073 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d połączeń %d bloków %d transakcji" - -#: ../../../src/ui.cpp:1178 -#: ../../../src/ui.cpp:2571 -msgid "New Receiving Address" -msgstr "Nowy adres odbiorczy" - -#: ../../../src/ui.cpp:1179 -#: ../../../src/ui.cpp:2572 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Powinieneś używać nowych adresów dla każdej otrzymywanej płatności.\n" -"\n" -"Etykieta" - -#: ../../../src/ui.cpp:1251 -msgid "Status: " -msgstr "Status:" - -#: ../../../src/ui.cpp:1256 -msgid ", has not been successfully broadcast yet" -msgstr ", nie został jeszcze prawidłowo rozgłoszony" - -#: ../../../src/ui.cpp:1258 -#, c-format -msgid ", broadcast through %d node" -msgstr ", rozgłasza przez %d węzeł" - -#: ../../../src/ui.cpp:1260 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", rozgłasza przez %d węzłów" - -#: ../../../src/ui.cpp:1264 -msgid "Date: " -msgstr "Data:" - -#: ../../../src/ui.cpp:1272 -msgid "Source: Generated
" -msgstr "Źródło: Wygenerowano
" - -#: ../../../src/ui.cpp:1278 -#: ../../../src/ui.cpp:1296 -msgid "From: " -msgstr "Od:" - -#: ../../../src/ui.cpp:1296 -msgid "unknown" -msgstr "nieznany" - -#: ../../../src/ui.cpp:1297 -#: ../../../src/ui.cpp:1321 -#: ../../../src/ui.cpp:1380 -msgid "To: " -msgstr "Do:" - -#: ../../../src/ui.cpp:1300 -msgid " (yours, label: " -msgstr " (twoja, etykieta: " - -#: ../../../src/ui.cpp:1302 -msgid " (yours)" -msgstr " (twoja)" - -#: ../../../src/ui.cpp:1339 -#: ../../../src/ui.cpp:1351 -#: ../../../src/ui.cpp:1397 -#: ../../../src/ui.cpp:1414 -msgid "Credit: " -msgstr "Kredyt:" - -#: ../../../src/ui.cpp:1341 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s dojrzałych w %d więcej bloków)" - -#: ../../../src/ui.cpp:1343 -msgid "(not accepted)" -msgstr "(nie zaakceptowano)" - -#: ../../../src/ui.cpp:1388 -#: ../../../src/ui.cpp:1396 -#: ../../../src/ui.cpp:1411 -msgid "Debit: " -msgstr "Debet:" - -#: ../../../src/ui.cpp:1402 -msgid "Transaction fee: " -msgstr "Prowizja transakcji:" - -#: ../../../src/ui.cpp:1418 -msgid "Net amount: " -msgstr "Kwota netto:" - -#: ../../../src/ui.cpp:1425 -msgid "Message:" -msgstr "Wiadomość:" - -#: ../../../src/ui.cpp:1427 -msgid "Comment:" -msgstr "Komentarz:" - -#: ../../../src/ui.cpp:1430 -msgid "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." -msgstr "Wygenerowane monety muszą poczekać 120 bloków zanim będą mogły być wydane. Wygenerowany blok został został rozgłoszony w sieci z przeznaczeniem dodawania nowych bloków do łańcucha. Jeżeli nie uda się go dodać do łańcucha, zostanie oznaczony jako \"nie zaakceptowany\" i nie będzie mógł być wydany. Sporadycznie dzieje się tak jeżeli inny węzeł wygeneruje blok nie dalej niż kilka sekund od ciebie." - -#: ../../../src/ui.cpp:1610 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Nie mogę zapisać pliku autostart/bitcoin.desktop" - -#: ../../../src/ui.cpp:1646 -msgid "Main" -msgstr "Główne" - -#: ../../../src/ui.cpp:1656 -msgid "&Start Bitcoin on window system startup" -msgstr "&Uruchom Bitcoin przy starcie systemu" - -#: ../../../src/ui.cpp:1663 -msgid "&Minimize on close" -msgstr "&Minimalizuj przy zamknięciu" - -#: ../../../src/ui.cpp:1805 -#, c-format -msgid "version %s" -msgstr "wersja %s" - -#: ../../../src/ui.cpp:1928 -msgid "Error in amount " -msgstr "Nieprawidłowa kwota" - -#: ../../../src/ui.cpp:1928 -#: ../../../src/ui.cpp:1933 -#: ../../../src/ui.cpp:1938 -#: ../../../src/ui.cpp:1973 -#: ../../../src/uibase.cpp:55 -msgid "Send Coins" -msgstr "Wyślij Monety" - -#: ../../../src/ui.cpp:1933 -msgid "Amount exceeds your balance " -msgstr "Kwota przekracza twój stan konta" - -#: ../../../src/ui.cpp:1938 -msgid "Total exceeds your balance when the " -msgstr "Przekroczenie twojego stanu konta gdy" - -#: ../../../src/ui.cpp:1938 -msgid " transaction fee is included " -msgstr " prowizja jest wliczona" - -#: ../../../src/ui.cpp:1956 -msgid "Payment sent " -msgstr "Wysłano płatność" - -#: ../../../src/ui.cpp:1956 -#: ../../../src/ui.cpp:1961 -#: ../../../src/ui.cpp:2107 -#: ../../../src/ui.cpp:2260 -#: ../../../src/wallet.cpp:924 -msgid "Sending..." -msgstr "Wysyłanie..." - -#: ../../../src/ui.cpp:1973 -msgid "Invalid address " -msgstr "Nieprawidłowy adres" - -#: ../../../src/ui.cpp:2028 -#, c-format -msgid "Sending %s to %s" -msgstr "Wysyłanie %s do %s" - -#: ../../../src/ui.cpp:2101 -#: ../../../src/ui.cpp:2134 -msgid "CANCELLED" -msgstr "ANULOWANO" - -#: ../../../src/ui.cpp:2105 -msgid "Cancelled" -msgstr "Anulowano" - -#: ../../../src/ui.cpp:2107 -msgid "Transfer cancelled " -msgstr "Transfer anulowany" - -#: ../../../src/ui.cpp:2160 -msgid "Error: " -msgstr "Błąd:" - -#: ../../../src/ui.cpp:2174 -#: ../../../src/ui.cpp:2245 -#: ../../../src/wallet.cpp:943 -msgid "Insufficient funds" -msgstr "Niewystarczające fundusze" - -#: ../../../src/ui.cpp:2179 -msgid "Connecting..." -msgstr "Łączenie..." - -#: ../../../src/ui.cpp:2184 -msgid "Unable to connect" -msgstr "Nie można połączyć" - -#: ../../../src/ui.cpp:2189 -msgid "Requesting public key..." -msgstr "Żądanie klucza publicznego..." - -#: ../../../src/ui.cpp:2201 -msgid "Received public key..." -msgstr "Otrzymano klucz publiczny..." - -#: ../../../src/ui.cpp:2215 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Adresat nie akceptuje transakcji wysyłanych przez adres IP" - -#: ../../../src/ui.cpp:2217 -msgid "Transfer was not accepted" -msgstr "Transfer nie został zaakceptowany" - -#: ../../../src/ui.cpp:2226 -msgid "Invalid response received" -msgstr "Otrzymano niepoprawną odpowiedź" - -#: ../../../src/ui.cpp:2241 -msgid "Creating transaction..." -msgstr "Tworzenie transakcji..." - -#: ../../../src/ui.cpp:2253 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Ta transakcja wymaga prowizji co najmniej %s z uwagi na jej kwotę, złożoność lub wykorzystanie niedawno otrzymanych funduszy" - -#: ../../../src/ui.cpp:2255 -msgid "Transaction creation failed" -msgstr "Błąd tworzenia transakcji " - -#: ../../../src/ui.cpp:2262 -msgid "Transaction aborted" -msgstr "Przerwano transakcję" - -#: ../../../src/ui.cpp:2270 -msgid "Lost connection, transaction cancelled" -msgstr "Utracono połączenie, transakcja anulowana" - -#: ../../../src/ui.cpp:2286 -msgid "Sending payment..." -msgstr "Wysyłanie płatności..." - -#: ../../../src/ui.cpp:2292 -msgid "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." -msgstr "Transakcja została odrzucona. Może się tak zdarzyć jeżeli część monet w twoim portfelu zostało wydanych, np. gdy użyto kopii pliku wallet.dat i monety zostały wydane w kopii, a tutaj nie zostały oznaczone jako wydane." - -#: ../../../src/ui.cpp:2301 -msgid "Waiting for confirmation..." -msgstr "Oczekiwanie na potwierdzenie..." - -#: ../../../src/ui.cpp:2319 -msgid "" -"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." -msgstr "" -"Płatność została wysłana, ale odbiorca nie mógł jej zweryfikować.\n" -"Transakcja została zarejestrowana i zostanie przypisana do odbiorcy,\n" -"ale informacja w komentarzu będzie pusta." - -#: ../../../src/ui.cpp:2328 -msgid "Payment was sent, but an invalid response was received" -msgstr "Płatność została wysłana, ale otrzymano nieprawidłową odpowiedź" - -#: ../../../src/ui.cpp:2334 -msgid "Payment completed" -msgstr "Płatność zakończona" - -#: ../../../src/ui.cpp:2376 -#: ../../../src/ui.cpp:2522 -#: ../../../src/ui.cpp:2559 -msgid "Name" -msgstr "Nazwa" - -#: ../../../src/ui.cpp:2377 -#: ../../../src/ui.cpp:2522 -#: ../../../src/ui.cpp:2559 -msgid "Address" -msgstr "Adres" - -#: ../../../src/ui.cpp:2379 -#: ../../../src/ui.cpp:2534 -msgid "Label" -msgstr "Etykieta" - -#: ../../../src/ui.cpp:2380 -#: ../../../src/uibase.cpp:837 -msgid "Bitcoin Address" -msgstr "Adres Bitcoin" - -#: ../../../src/ui.cpp:2504 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "To jest jeden z twoich adresów na otrzymywane płatności i nie może zostać wpisany do książki adresowej." - -#: ../../../src/ui.cpp:2522 -#: ../../../src/ui.cpp:2528 -msgid "Edit Address" -msgstr "Edytuj adres" - -#: ../../../src/ui.cpp:2534 -msgid "Edit Address Label" -msgstr "Edytuj etykietę adresu" - -#: ../../../src/ui.cpp:2559 -#: ../../../src/ui.cpp:2565 -msgid "Add Address" -msgstr "Dodaj adres" - -#: ../../../src/ui.cpp:2642 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2644 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Generowanie" - -#: ../../../src/ui.cpp:2646 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (nie połączony)" - -#: ../../../src/ui.cpp:2725 -msgid "&Open Bitcoin" -msgstr "&Otwórz Bitcoin" - -#: ../../../src/ui.cpp:2726 -msgid "&Send Bitcoins" -msgstr "&Wyślij Bitcoiny" - -#: ../../../src/ui.cpp:2727 -msgid "O&ptions..." -msgstr "O&pcje..." - -#: ../../../src/ui.cpp:2730 -#: ../../../src/uibase.cpp:25 -msgid "E&xit" -msgstr "W&yjście" - -#: ../../../src/ui.cpp:2956 -msgid "Program has crashed and will terminate. " -msgstr "Program uległ awarii i zostanie zamknięty." - -#: ../../../src/main.cpp:1430 -msgid "Warning: Disk space is low " -msgstr "Ostrzeżenie: Mało miejsca na dysku" - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&Plik" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Twój adres odbiorczy..." - -#: ../../../src/uibase.cpp:36 -msgid "&Options..." -msgstr "&Opcje..." - -#: ../../../src/uibase.cpp:39 -msgid "&Settings" -msgstr "&Ustawienia" - -#: ../../../src/uibase.cpp:43 -msgid "&About..." -msgstr "&O programie..." - -#: ../../../src/uibase.cpp:46 -msgid "&Help" -msgstr "&Pomoc" - -#: ../../../src/uibase.cpp:56 -msgid "Address Book" -msgstr "Książka adresowa" - -#: ../../../src/uibase.cpp:69 -msgid "Your Bitcoin Address:" -msgstr "Twój adres Bitcoin:" - -#: ../../../src/uibase.cpp:76 -msgid " &New... " -msgstr " &Nowy..." - -#: ../../../src/uibase.cpp:79 -#: ../../../src/uibase.cpp:780 -#: ../../../src/uibase.cpp:883 -msgid " &Copy to Clipboard " -msgstr " &Kopiuj do schowka " - -#: ../../../src/uibase.cpp:93 -msgid "Balance:" -msgstr "Saldo:" - -#: ../../../src/uibase.cpp:109 -msgid " All" -msgstr " Wszystko" - -#: ../../../src/uibase.cpp:109 -msgid " Sent" -msgstr " Wysłano" - -#: ../../../src/uibase.cpp:109 -msgid " Received" -msgstr " Otrzymano" - -#: ../../../src/uibase.cpp:109 -msgid " In Progress" -msgstr "W realizacji" - -#: ../../../src/uibase.cpp:130 -msgid "All Transactions" -msgstr "Wszystkie transakcje" - -#: ../../../src/uibase.cpp:141 -msgid "Sent/Received" -msgstr "Wysłane/Otrzymane" - -#: ../../../src/uibase.cpp:152 -msgid "Sent" -msgstr "Wysłane" - -#: ../../../src/uibase.cpp:163 -msgid "Received" -msgstr "Otrzymane" - -#: ../../../src/uibase.cpp:302 -#: ../../../src/uibase.cpp:443 -#: ../../../src/uibase.cpp:542 -#: ../../../src/uibase.cpp:722 -#: ../../../src/uibase.cpp:783 -#: ../../../src/uibase.cpp:892 -#: ../../../src/uibase.cpp:981 -msgid "OK" -msgstr "OK" - -#: ../../../src/uibase.cpp:345 -msgid "&Start Bitcoin on system startup" -msgstr "&Uruchom Bitcoin wraz ze startem systemu" - -#: ../../../src/uibase.cpp:348 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Minimalizuj do obszaru powiadomień zamiast paska zadań" - -#: ../../../src/uibase.cpp:351 -msgid "Map port using &UPnP" -msgstr "Mapuj port używając &UPnP" - -#: ../../../src/uibase.cpp:354 -msgid "M&inimize to the tray on close" -msgstr "M&inimalizuj do obszaru powiadomień przy zamknięciu" - -#: ../../../src/uibase.cpp:360 -msgid "&Connect through socks4 proxy: " -msgstr "&Połącz przez proxy socks4:" - -#: ../../../src/uibase.cpp:371 -msgid "Proxy &IP:" -msgstr "Proxy &IP:" - -#: ../../../src/uibase.cpp:379 -msgid " &Port:" -msgstr " &Port:" - -#: ../../../src/uibase.cpp:392 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Opcjonalna prowizja określona na każdy KB transakcji, zapewniająca szybkie przetworzenie. Większość transakcji to 1KB. Rekomendowana prowizja to 0.01." - -#: ../../../src/uibase.cpp:399 -msgid "Pay transaction fee:" -msgstr "Płać prowizję od transakcji:" - -#: ../../../src/uibase.cpp:420 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:424 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:446 -#: ../../../src/uibase.cpp:668 -#: ../../../src/uibase.cpp:727 -#: ../../../src/uibase.cpp:786 -#: ../../../src/uibase.cpp:895 -#: ../../../src/uibase.cpp:984 -msgid "Cancel" -msgstr "Anuluj" - -#: ../../../src/uibase.cpp:449 -msgid "&Apply" -msgstr "&Zastosuj" - -#: ../../../src/uibase.cpp:508 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../src/uibase.cpp:514 -msgid "version" -msgstr "wersja" - -#: ../../../src/uibase.cpp:525 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"To oprogramowanie jest eksperymentalne.\n" -"\n" -"Dystrybuowane na licencji MIT/X11, zobacz towarzyszący plik \n" -"license.txt lub http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Ten produkt zawiera oprogramowanie rozwijane przez OpenSSL Project w \n" -"OpenSSL Toolkit (http://www.openssl.org/) i oprogramowanie kryptograficzne napisane przez \n" -"Erica Younga (eay@cryptsoft.com) oraz oprogramowanie UPnP napisane przez Thomasa Bernarda." - -#: ../../../src/uibase.cpp:581 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Wprowadź adres Bitcoin (np. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:595 -msgid "Pay &To:" -msgstr "Wpłać &dla:" - -#: ../../../src/uibase.cpp:610 -msgid "&Paste" -msgstr "&Wklej" - -#: ../../../src/uibase.cpp:613 -msgid " Address &Book..." -msgstr " Książka &adresowa..." - -#: ../../../src/uibase.cpp:620 -msgid "&Amount:" -msgstr "&Saldo:" - -#: ../../../src/uibase.cpp:630 -msgid "T&ransfer:" -msgstr "T&ransfer:" - -#: ../../../src/uibase.cpp:636 -msgid " Standard" -msgstr " Standard" - -#: ../../../src/uibase.cpp:663 -msgid "&Send" -msgstr "&Wyślij" - -#: ../../../src/uibase.cpp:711 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Łączenie..." - -#: ../../../src/uibase.cpp:761 -msgid "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." -msgstr "To są twoje adresy Bitcoin dla otrzymywania płatności. Możesz chcieć podawać inny dla każdego płacącego aby kontrolować kto ci płaci. Wyróżniony adres będzie wyświetlany w oknie głównym." - -#: ../../../src/uibase.cpp:774 -#: ../../../src/uibase.cpp:886 -msgid "&Edit..." -msgstr "&Edytuj..." - -#: ../../../src/uibase.cpp:777 -#: ../../../src/uibase.cpp:889 -msgid " &New Address... " -msgstr " &Nowy adres..." - -#: ../../../src/uibase.cpp:849 -msgid "Sending" -msgstr "Wysyłanie" - -#: ../../../src/uibase.cpp:857 -msgid "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." -msgstr "To są twoje adresy Bitcoin dla otrzymywania płatności. Możesz podać różne dla każdego płacącego aby kontrolować kto ci płaci. Wyróżniony adres będzie wyświetlany w oknie głównym." - -#: ../../../src/uibase.cpp:870 -msgid "Receiving" -msgstr "Otrzymywanie" - -#: ../../../src/uibase.cpp:880 -msgid "&Delete" -msgstr "&Usuń" - -#: ../../../src/wallet.cpp:917 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Błąd: Ta transakcja wymaga prowizji co najmniej %s z uwagi na kwotę, złożoność lub użycie niedawno otrzymanych funduszy" - -#: ../../../src/wallet.cpp:919 -msgid "Error: Transaction creation failed " -msgstr "Błąd: Nie udało się utworzyć transakcji" - -#: ../../../src/wallet.cpp:928 -msgid "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." -msgstr "Błąd: Transakcja została odrzucona. Może się tak zdarzyć jeżeli część monet w twoim portfelu zostało wydanych, np. gdy użyto kopii pliku wallet.dat i monety zostały wydane w kopii, a tutaj nie zostały oznaczone jako wydane." - -#: ../../../src/wallet.cpp:941 -msgid "Invalid amount" -msgstr "Niewłaściwa kwota" - -#: ../../../src/wallet.cpp:948 -msgid "Invalid bitcoin address" -msgstr "Niewłaściwy adres bitcoin" - -#: ../../../src/uibase.h:147 -msgid "Transaction Details" -msgstr "Szczegóły transakcji" - -#: ../../../src/uibase.h:199 -msgid "Options" -msgstr "Opcje" - -#: ../../../src/uibase.h:228 -msgid "About Bitcoin" -msgstr "O Bitcoin" - -#: ../../../src/uibase.h:337 -msgid "Your Bitcoin Addresses" -msgstr "Twoje adresy bitcoin" - diff --git a/locale/pt/LC_MESSAGES/bitcoin.mo b/locale/pt/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index 35a3fd7..0000000 Binary files a/locale/pt/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/pt/LC_MESSAGES/bitcoin.po b/locale/pt/LC_MESSAGES/bitcoin.po deleted file mode 100644 index 040fb1d..0000000 --- a/locale/pt/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,811 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-05-26 22:02-0000\n" -"PO-Revision-Date: 2010-07-05 09:06+0100\n" -"Last-Translator: Tiago Faria\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../init.cpp:342 -msgid "Usage: bitcoin [options]" -msgstr "Utilização Bitcoin [opções]" - -#: ../../../init.cpp:343 -msgid "Options:\n" -msgstr "Opções:\n" - -#: ../../../init.cpp:344 -msgid "Generate coins\n" -msgstr "Gerar moedas\n" - -#: ../../../init.cpp:345 -msgid "Don't generate coins\n" -msgstr "Não gerar moedas\n" - -#: ../../../init.cpp:346 -msgid "Start minimized\n" -msgstr "Iniciar minimizado\n" - -#: ../../../init.cpp:347 -msgid "Specify data directory\n" -msgstr "Especificar localização dos dados\n" - -#: ../../../init.cpp:348 -msgid "Connect through socks4 proxy\n" -msgstr "Ligar através de um proxy socks4\n" - -#: ../../../init.cpp:349 -msgid "Add a node to connect to\n" -msgstr "Adicionar um nó para efectuar ligação\n" - -#: ../../../init.cpp:350 -msgid "Connect only to the specified node\n" -msgstr "Ligar apenas ao nó especificado\n" - -#: ../../../init.cpp:351 -msgid "This help message\n" -msgstr "Esta mensagem de ajuda\n" - -#: ../../../init.cpp:455 -msgid "Error loading addr.dat \n" -msgstr "Erro ao carregar addr.dat \n" - -#: ../../../init.cpp:461 -msgid "Error loading blkindex.dat \n" -msgstr "Erro ao carregar blkindex.dat \n" - -#: ../../../init.cpp:468 -msgid "Error loading wallet.dat \n" -msgstr "Erro ao carregar wallet.dat \n" - -#: ../../../init.cpp:536 -msgid "Invalid -proxy address" -msgstr "Endereço -proxy inválido" - -#: ../../../init.cpp:629 -msgid "Program has crashed and will terminate. " -msgstr "A aplicação bloqueou e vai terminar. " - -#: ../../../main.cpp:1465 -msgid "Warning: Disk space is low " -msgstr "Aviso: Espaço em disco limitado " - -#: ../../../main.cpp:2994 -#, c-format -msgid "Error: This is an oversized transaction that requires a transaction fee of %s " -msgstr "Erro: Esta transacção necessita de uma percentagem de transferência no valor de %s " - -#: ../../../main.cpp:2996 -msgid "Error: Transaction creation failed " -msgstr "Erro: Criação da transacção falhou " - -#: ../../../main.cpp:3001 -#: ../../../ui.cpp:1761 -#: ../../../ui.cpp:1763 -#: ../../../ui.cpp:1904 -#: ../../../ui.cpp:2053 -msgid "Sending..." -msgstr "A enviar ..." - -#: ../../../main.cpp:3005 -msgid "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." -msgstr "Erro: A transacção foi rejeitada. Isto pode acontecer se algumas das moedas na sua carteira já tenham sido gastas, como por exemplo na utilização de uma cópia do wallet.dat onde as moedas foram gastas na cópia mas não aqui." - -#: ../../../main.cpp:3017 -msgid "Invalid amount" -msgstr "Montante inválido" - -#: ../../../main.cpp:3019 -#: ../../../ui.cpp:1971 -#: ../../../ui.cpp:2038 -msgid "Insufficient funds" -msgstr "Fundos insuficientes" - -#: ../../../main.cpp:3024 -msgid "Invalid bitcoin address" -msgstr "Endereço Bitcoin inválido" - -#: ../../../ui.cpp:189 -#, c-format -msgid "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?" -msgstr "Esta transacção ultrapassa o limite. Pode, mesmo assim, efectuá-la, no entanto, uma percentagem de %s será enviada para os nós da rede que processam este pagamento. Quer pagar a percentagem?" - -#: ../../../ui.cpp:285 -msgid "Status" -msgstr "Estado" - -#: ../../../ui.cpp:286 -msgid "Date" -msgstr "Data" - -#: ../../../ui.cpp:287 -msgid "Description" -msgstr "Descrição" - -#: ../../../ui.cpp:288 -msgid "Debit" -msgstr "Débito" - -#: ../../../ui.cpp:289 -msgid "Credit" -msgstr "Crédito" - -#: ../../../ui.cpp:489 -#, c-format -msgid "Open for %d blocks" -msgstr "Aberto para %d blocos" - -#: ../../../ui.cpp:491 -#, c-format -msgid "Open until %s" -msgstr "Aberto até %s" - -#: ../../../ui.cpp:497 -#, c-format -msgid "%d/offline?" -msgstr "%d/offline?" - -#: ../../../ui.cpp:499 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/não confirmado" - -#: ../../../ui.cpp:501 -#, c-format -msgid "%d confirmations" -msgstr "%d confirmados" - -#: ../../../ui.cpp:584 -msgid "Generated" -msgstr "Gerado" - -#: ../../../ui.cpp:592 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Gerado (%s maduras em mais %d blocos)" - -#: ../../../ui.cpp:596 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Gerado - Aviso: Este bloco não foi recebido por mais nenhum nó da rede e provavelmente não será aceite." - -#: ../../../ui.cpp:600 -msgid "Generated (not accepted)" -msgstr "Gerado (não aceite)" - -#: ../../../ui.cpp:610 -msgid "From: " -msgstr "Remetente: " - -#: ../../../ui.cpp:634 -msgid "Received with: " -msgstr "Recebido por: " - -#: ../../../ui.cpp:676 -msgid "Payment to yourself" -msgstr "Pagamento ao próprio" - -#: ../../../ui.cpp:713 -msgid "To: " -msgstr "Destinatário: " - -#: ../../../ui.cpp:1009 -msgid " Generating" -msgstr " A gerar" - -#: ../../../ui.cpp:1011 -msgid "(not connected)" -msgstr "(sem ligação)" - -#: ../../../ui.cpp:1014 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d ligações %d blocos %d transacções" - -#: ../../../ui.cpp:1123 -#: ../../../ui.cpp:2351 -msgid "New Receiving Address" -msgstr "Novo Endereço de Recepção" - -#: ../../../ui.cpp:1124 -#: ../../../ui.cpp:2352 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"É uma boa política utilizar um endereço diferente para cada pagamento que recebe.\n" -"\n" -"Etiqueta" - -#: ../../../ui.cpp:1193 -msgid "Status: " -msgstr "Estado: " - -#: ../../../ui.cpp:1198 -msgid ", has not been successfully broadcast yet" -msgstr ", ainda não foram anunciadas com sucesso" - -#: ../../../ui.cpp:1200 -#, c-format -msgid ", broadcast through %d node" -msgstr ", anunciar por %d nó" - -#: ../../../ui.cpp:1202 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", anunciar por %d nós" - -#: ../../../ui.cpp:1206 -msgid "Date: " -msgstr "Data: " - -#: ../../../ui.cpp:1214 -msgid "Source: Generated
" -msgstr "Fonte: Gerado
" - -#: ../../../ui.cpp:1220 -#: ../../../ui.cpp:1238 -msgid "From: " -msgstr "Remetente: " - -#: ../../../ui.cpp:1238 -msgid "unknown" -msgstr "desconhecido" - -#: ../../../ui.cpp:1239 -#: ../../../ui.cpp:1263 -#: ../../../ui.cpp:1322 -msgid "To: " -msgstr "Destinatário: " - -#: ../../../ui.cpp:1242 -msgid " (yours, label: " -msgstr " (seu, etiqueta: " - -#: ../../../ui.cpp:1244 -msgid " (yours)" -msgstr " (seu)" - -#: ../../../ui.cpp:1281 -#: ../../../ui.cpp:1293 -#: ../../../ui.cpp:1356 -msgid "Credit: " -msgstr "Crédito: " - -#: ../../../ui.cpp:1283 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s maduras em mais %d blocos)" - -#: ../../../ui.cpp:1285 -msgid "(not accepted)" -msgstr "(não aceite)" - -#: ../../../ui.cpp:1330 -#: ../../../ui.cpp:1353 -msgid "Debit: " -msgstr "Débito: " - -#: ../../../ui.cpp:1344 -msgid "Transaction fee: " -msgstr "Percentagem da transacção: " - -#: ../../../ui.cpp:1360 -msgid "Net amount: " -msgstr "Quantia Net: " - -#: ../../../ui.cpp:1367 -msgid "Message:" -msgstr "Mensagem:" - -#: ../../../ui.cpp:1370 -msgid "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." -msgstr "As moedas geradas necessitam de 120 blocos para que possam ser gastas. Quando gera um bloco, ele será anunciado pela rede para ser adicionado à cadeia de blocos. Se falhar, mudará para \"não aceite\" e não será possível utilizá-lo. Isto pode acontecer se um nó gerar outro bloco após alguns segundos do seu." - -#: ../../../ui.cpp:1437 -msgid "Main" -msgstr "Principal" - -#: ../../../ui.cpp:1442 -msgid "&Minimize on close" -msgstr "&Minimizar ao fechar" - -#: ../../../ui.cpp:1595 -#, c-format -msgid "version %s%s BETA" -msgstr "versão %s%s BETA" - -#: ../../../ui.cpp:1681 -msgid "Will appear as \"From: Unknown\"" -msgstr "Irá aparecer como \"De: Desconhecido\"" - -#: ../../../ui.cpp:1681 -msgid "n/a" -msgstr "Desconhecido" - -#: ../../../ui.cpp:1681 -msgid "Unknown" -msgstr "Desconhecido" - -#: ../../../ui.cpp:1682 -msgid "Can't include a message when sending to a Bitcoin address" -msgstr "Não é possível incluir uma mensagem ao enviar para um endereço Bitcoin" - -#: ../../../ui.cpp:1735 -msgid "Error in amount " -msgstr "Erro na quantia " - -#: ../../../ui.cpp:1735 -#: ../../../ui.cpp:1740 -#: ../../../ui.cpp:1745 -#: ../../../ui.cpp:1771 -#: ../../../uibase.cpp:61 -msgid "Send Coins" -msgstr "Enviar Moedas" - -#: ../../../ui.cpp:1740 -msgid "Amount exceeds your balance " -msgstr "A quantia excede o seu saldo " - -#: ../../../ui.cpp:1745 -msgid "Total exceeds your balance when the " -msgstr "O total excede o seu saldo quando a " - -#: ../../../ui.cpp:1745 -msgid " transaction fee is included " -msgstr " taxa de transacção for incluída " - -#: ../../../ui.cpp:1761 -msgid "Payment sent " -msgstr "Pagamento enviado " - -#: ../../../ui.cpp:1771 -msgid "Invalid address " -msgstr "Endereço inválido " - -#: ../../../ui.cpp:1825 -#, c-format -msgid "Sending %s to %s" -msgstr "A enviar %s para %s" - -#: ../../../ui.cpp:1898 -#: ../../../ui.cpp:1931 -msgid "CANCELLED" -msgstr "CANCELADO" - -#: ../../../ui.cpp:1902 -msgid "Cancelled" -msgstr "Cancelado" - -#: ../../../ui.cpp:1904 -msgid "Transfer cancelled " -msgstr "Transferência cancelada " - -#: ../../../ui.cpp:1957 -msgid "Error: " -msgstr "Erro: " - -#: ../../../ui.cpp:1976 -msgid "Connecting..." -msgstr "A estabelecer ligação ..." - -#: ../../../ui.cpp:1981 -msgid "Unable to connect" -msgstr "Impossível estabelecer ligação" - -#: ../../../ui.cpp:1986 -msgid "Requesting public key..." -msgstr "A requisitar a chave pública ..." - -#: ../../../ui.cpp:1998 -msgid "Received public key..." -msgstr "Chave pública recebida" - -#: ../../../ui.cpp:2010 -msgid "Transfer was not accepted" -msgstr "A transferência não foi aceite" - -#: ../../../ui.cpp:2019 -msgid "Invalid response received" -msgstr "Resposta inválida recebida" - -#: ../../../ui.cpp:2034 -msgid "Creating transaction..." -msgstr "A criar a transacção ..." - -#: ../../../ui.cpp:2046 -#, c-format -msgid "This is an oversized transaction that requires a transaction fee of %s" -msgstr "Esta transferência requer o pagamento de uma taxa de transacção de %s" - -#: ../../../ui.cpp:2048 -msgid "Transaction creation failed" -msgstr "A criação da transacção falhou" - -#: ../../../ui.cpp:2055 -msgid "Transaction aborted" -msgstr "Transacção cancelada" - -#: ../../../ui.cpp:2063 -msgid "Lost connection, transaction cancelled" -msgstr "Perca de ligação, transacção cancelada" - -#: ../../../ui.cpp:2079 -msgid "Sending payment..." -msgstr "A enviar pagamento ..." - -#: ../../../ui.cpp:2085 -msgid "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." -msgstr "A transacção foi rejeitada. Isto pode acontecer se algumas das moedas na sua carteira já foram utilizadas, como na utilização de uma cópia do wallet.dat, onde as moedas foram utilizadas na cópia do ficheiro e essas alterações não reflectem o estado desta carteira." - -#: ../../../ui.cpp:2092 -msgid "Waiting for confirmation..." -msgstr "A aguardar confirmação ..." - -#: ../../../ui.cpp:2110 -msgid "" -"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." -msgstr "" -"O pagamento foi enviado, mas o remetente não consegiu verificar o seu pagamento.\n" -"A transacção foi entregue, e o remetente receberá as modeas,\n" -"no entanto, o comentário de transacção estará vazio." - -#: ../../../ui.cpp:2119 -msgid "Payment was sent, but an invalid response was received" -msgstr "O pagamento foi enviado, mas foi recebida uma resposta inválida" - -#: ../../../ui.cpp:2125 -msgid "Payment completed" -msgstr "Pagamento completo" - -#: ../../../ui.cpp:2156 -#: ../../../ui.cpp:2302 -#: ../../../ui.cpp:2339 -msgid "Name" -msgstr "Nome" - -#: ../../../ui.cpp:2157 -#: ../../../ui.cpp:2302 -#: ../../../ui.cpp:2339 -msgid "Address" -msgstr "Endereço" - -#: ../../../ui.cpp:2159 -#: ../../../ui.cpp:2314 -msgid "Label" -msgstr "Nota" - -#: ../../../ui.cpp:2160 -#: ../../../uibase.cpp:908 -msgid "Bitcoin Address" -msgstr "Endereço Bitcoin" - -#: ../../../ui.cpp:2284 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Este endereço é seu (onde recebe pagamentos) e não pode ser introduzido no seu livros de endereços. " - -#: ../../../ui.cpp:2302 -#: ../../../ui.cpp:2308 -msgid "Edit Address" -msgstr "Editar endereço" - -#: ../../../ui.cpp:2314 -msgid "Edit Address Label" -msgstr "Editar nota de endereço" - -#: ../../../ui.cpp:2339 -#: ../../../ui.cpp:2345 -msgid "Add Address" -msgstr "Adicionar endereço" - -#: ../../../ui.cpp:2421 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../ui.cpp:2423 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - A gerar" - -#: ../../../ui.cpp:2425 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (sem ligação)" - -#: ../../../ui.cpp:2500 -msgid "&Open Bitcoin" -msgstr "&Abrir Bitcoin" - -#: ../../../ui.cpp:2501 -msgid "O&ptions..." -msgstr "O&pções" - -#: ../../../ui.cpp:2505 -#: ../../../uibase.cpp:27 -msgid "E&xit" -msgstr "S&air" - -#: ../../../uibase.cpp:30 -msgid "&File" -msgstr "&Ficheiro" - -#: ../../../uibase.cpp:38 -msgid "&Your Receiving Addresses..." -msgstr "&Os seus endereços" - -#: ../../../uibase.cpp:42 -msgid "&Options..." -msgstr "&Opções ..." - -#: ../../../uibase.cpp:45 -msgid "&Settings" -msgstr "&Definições" - -#: ../../../uibase.cpp:49 -msgid "&About..." -msgstr "&Sobre ..." - -#: ../../../uibase.cpp:52 -msgid "&Help" -msgstr "&Ajuda" - -#: ../../../uibase.cpp:62 -msgid "Address Book" -msgstr "Livro de Endereços" - -#: ../../../uibase.cpp:77 -msgid "Your Bitcoin Address:" -msgstr "O seu endereço Bitcoin:" - -#: ../../../uibase.cpp:84 -msgid " &New... " -msgstr " &Novo ... " - -#: ../../../uibase.cpp:87 -#: ../../../uibase.cpp:851 -#: ../../../uibase.cpp:954 -msgid " &Copy to Clipboard " -msgstr " &Copiar para o Clipboard " - -#: ../../../uibase.cpp:102 -msgid "Balance:" -msgstr "Saldo:" - -#: ../../../uibase.cpp:121 -msgid " All" -msgstr " Todos" - -#: ../../../uibase.cpp:121 -msgid " Sent" -msgstr " Enviado" - -#: ../../../uibase.cpp:121 -msgid " Received" -msgstr " Recebido" - -#: ../../../uibase.cpp:121 -msgid " In Progress" -msgstr " Em progresso" - -#: ../../../uibase.cpp:142 -msgid "All Transactions" -msgstr "Todas as transacções" - -#: ../../../uibase.cpp:153 -msgid "Sent/Received" -msgstr "Enviadas/Recebidas" - -#: ../../../uibase.cpp:164 -msgid "Sent" -msgstr "Enviado" - -#: ../../../uibase.cpp:175 -msgid "Received" -msgstr "Recebido" - -#: ../../../uibase.cpp:318 -#: ../../../uibase.cpp:479 -#: ../../../uibase.cpp:580 -#: ../../../uibase.cpp:793 -#: ../../../uibase.cpp:854 -#: ../../../uibase.cpp:963 -#: ../../../uibase.cpp:1052 -msgid "OK" -msgstr "OK" - -#: ../../../uibase.cpp:361 -msgid "Optional transaction fee you give to the nodes that process your transactions." -msgstr "Pagamento de taxa de transacção opcional que é entregue aos nós que ajudam a processar o seu pagamento" - -#: ../../../uibase.cpp:370 -msgid "Transaction fee:" -msgstr "Taxa de transacção:" - -#: ../../../uibase.cpp:386 -msgid "&Limit coin generation to" -msgstr "&Limitar a geração de moedas a" - -#: ../../../uibase.cpp:393 -msgid "processors" -msgstr "processadores" - -#: ../../../uibase.cpp:399 -msgid "&Start Bitcoin on system startup" -msgstr "&Iniciar o Bitcoin no arranque do sistema" - -#: ../../../uibase.cpp:403 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Minimizar para a zona do relógio em vez da barra de janelas" - -#: ../../../uibase.cpp:407 -msgid "M&inimize to the tray on close" -msgstr "M&inimizar para a zona do relógio ao fechar" - -#: ../../../uibase.cpp:414 -msgid "&Connect through socks4 proxy: " -msgstr "&Ligar através de um prozy socks4: " - -#: ../../../uibase.cpp:426 -msgid "Proxy &IP:" -msgstr "Proxy &IP:" - -#: ../../../uibase.cpp:434 -msgid " &Port:" -msgstr " &Porto:" - -#: ../../../uibase.cpp:456 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../uibase.cpp:460 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../uibase.cpp:482 -#: ../../../uibase.cpp:735 -#: ../../../uibase.cpp:798 -#: ../../../uibase.cpp:857 -#: ../../../uibase.cpp:966 -#: ../../../uibase.cpp:1055 -msgid "Cancel" -msgstr "Cancelar" - -#: ../../../uibase.cpp:485 -msgid "&Apply" -msgstr "&Aplicar" - -#: ../../../uibase.cpp:546 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../uibase.cpp:552 -msgid "version" -msgstr "versão" - -#: ../../../uibase.cpp:563 -msgid "" -"Copyright (c) 2009-2010 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2010 Bitcoin Developers\n" -"\n" -"Este software é experimental.\n" -"\n" -"Distribuído sob a licença de software MIT/X11. Veja os seguintes ficheiros \n" -"para mais informações license.txt ou \n" -"http://www.opensource.org/licenses/mit-license.php.\n" -"Este producto inclui software desenvolvido pelo projecto OpenSSL, para \n" -"ser utilizado no OpenSSL Toolkit (http://www.openssl.org) e software de \n" -"criptografia desenvolvido por Eric Young (eay@cryptsoft.com)\n" -"e UPnP software escrito por Thomas Bernard." - -#: ../../../uibase.cpp:619 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L) or IP address (e.g. 123.45.6.7)" -msgstr "Introduza um endereço Bitcoin (exemplo: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L) ou um endereço de IP (exemplo: 123.45.6.7)" - -#: ../../../uibase.cpp:633 -msgid "Pay &To:" -msgstr "Pagar &a:" - -#: ../../../uibase.cpp:648 -msgid "&Paste" -msgstr "&Colar" - -#: ../../../uibase.cpp:651 -msgid " Address &Book..." -msgstr " Livro de endereços ..." - -#: ../../../uibase.cpp:658 -msgid "&Amount:" -msgstr "&Quantia:" - -#: ../../../uibase.cpp:668 -msgid "T&ransfer:" -msgstr "T&ransferência:" - -#: ../../../uibase.cpp:674 -msgid " Standard" -msgstr " Standard" - -#: ../../../uibase.cpp:696 -msgid "&From:" -msgstr "&De:" - -#: ../../../uibase.cpp:713 -msgid "&Message:" -msgstr "&Mensagem:" - -#: ../../../uibase.cpp:730 -msgid "&Send" -msgstr "&Enviar" - -#: ../../../uibase.cpp:782 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"A estabelecer ligação ..." - -#: ../../../uibase.cpp:832 -msgid "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." -msgstr "Estes são os seus endereços de Bitcoin onde poderá receber os seus pagamentos. Pode dar um endereço diferente a cada pessoa ou identidade para ter uma melhor ideia sobre quem o está a pagar. O endereço seleccionado será o que aparecerá na janela principal." - -#: ../../../uibase.cpp:845 -#: ../../../uibase.cpp:957 -msgid "&Edit..." -msgstr "&Editar ..." - -#: ../../../uibase.cpp:848 -#: ../../../uibase.cpp:960 -msgid " &New Address... " -msgstr " &Novo endereço ... " - -#: ../../../uibase.cpp:920 -msgid "Sending" -msgstr "A enviar" - -#: ../../../uibase.cpp:928 -msgid "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." -msgstr "Estes são os seus endereços de Bitcoin onde poderá receber os seus pagamentos. Pode dar um endereço diferente a cada pessoa ou identidade para ter uma melhor ideia sobre quem o está a pagar. O endereço seleccionado será o que aparecerá na janela principal." - -#: ../../../uibase.cpp:941 -msgid "Receiving" -msgstr "A receber" - -#: ../../../uibase.cpp:951 -msgid "&Delete" -msgstr "&Remover" - -#: ../../../uibase.h:150 -msgid "Transaction Details" -msgstr "Detalhes da transacção" - -#: ../../../uibase.h:203 -msgid "Options" -msgstr "Opções" - -#: ../../../uibase.h:231 -msgid "About Bitcoin" -msgstr "Sobre o Bitcoin" - -#: ../../../uibase.h:341 -msgid "Your Bitcoin Addresses" -msgstr "O seu endereço de Bitcoin" diff --git a/locale/readme.txt b/locale/readme.txt deleted file mode 100644 index 4019bf4..0000000 --- a/locale/readme.txt +++ /dev/null @@ -1,7 +0,0 @@ -put bitcoin.po and bitcoin.mo files at: -locale//LC_MESSAGES/bitcoin.mo and .po - -.po is the sourcefile -.mo is the compiled translation - -Note: pull requests should only include the .po file. Do not include .mo file \ No newline at end of file diff --git a/locale/ro/LC_MESSAGES/bitcoin.mo b/locale/ro/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index 0eb994b..0000000 Binary files a/locale/ro/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/ro/LC_MESSAGES/bitcoin.po b/locale/ro/LC_MESSAGES/bitcoin.po deleted file mode 100644 index e906e97..0000000 --- a/locale/ro/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,1078 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-09-06 03:47+0100\n" -"PO-Revision-Date: 2011-09-06 06:36+0100\n" -"Last-Translator: Alex B \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: \n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-Language: Romanian\n" -"X-Poedit-SourceCharset: iso-8859-2\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/init.cpp:163 -msgid "Bitcoin version" -msgstr "versiune Bitcoin" - -#: ../../../src/init.cpp:164 -msgid "Usage:" -msgstr "Uz:" - -#: ../../../src/init.cpp:166 -msgid "Send command to -server or bitcoind\n" -msgstr "Trimite comanda la bitcoin lansat cu -server sau bitcoind\n" - -#: ../../../src/init.cpp:167 -msgid "List commands\n" -msgstr "Listeaza comenzi\n" - -#: ../../../src/init.cpp:168 -msgid "Get help for a command\n" -msgstr "Ajutor pentru o comanda\n" - -#: ../../../src/init.cpp:169 -msgid "Options:\n" -msgstr "Optiuni:\n" - -#: ../../../src/init.cpp:170 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Specifica fisier de configuratie (predeterminat: bitcoin.conf)\n" - -#: ../../../src/init.cpp:171 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "Specifica fisier pid (predeterminat: bitcoin.pid)\n" - -#: ../../../src/init.cpp:172 -msgid "Generate coins\n" -msgstr "Genereaza monede\n" - -#: ../../../src/init.cpp:173 -msgid "Don't generate coins\n" -msgstr "Nu genera monede\n" - -#: ../../../src/init.cpp:174 -msgid "Start minimized\n" -msgstr "Porneste minimizat\n" - -#: ../../../src/init.cpp:175 -msgid "Specify data directory\n" -msgstr "Specifica directorul de date\n" - -#: ../../../src/init.cpp:176 -msgid "Specify connection timeout (in milliseconds)\n" -msgstr "Specifica timpul maxim de conexiune (in milisecunde)\n" - -#: ../../../src/init.cpp:177 -msgid "Connect through socks4 proxy\n" -msgstr "Conecteaza prin proxy socks4\n" - -#: ../../../src/init.cpp:178 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Permite cautare DNS pentru addnode si connect\n" - -#: ../../../src/init.cpp:179 -msgid "Add a node to connect to\n" -msgstr "Adauga un nod de conectare\n" - -#: ../../../src/init.cpp:180 -msgid "Connect only to the specified node\n" -msgstr "Conecteaza numai la nodul specificat\n" - -#: ../../../src/init.cpp:181 -msgid "Don't accept connections from outside\n" -msgstr "Nu accepta conexiuni din exterior\n" - -#: ../../../src/init.cpp:184 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Nu utiliza UPnP pentru deschiderea portul de ascultare\n" - -#: ../../../src/init.cpp:186 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Incearca sa utilizezi UPnP pentru deschiderea portului de ascultare.\n" - -#: ../../../src/init.cpp:189 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Comision per KB ce se adauga la tranzactiile transmise\n" - -#: ../../../src/init.cpp:191 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Accepta comenzi de consola si JSON-RPC\n" - -#: ../../../src/init.cpp:194 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Executa ca daemon si accepta comenzi\n" - -#: ../../../src/init.cpp:196 -msgid "Use the test network\n" -msgstr "Utilizeaza reteaua de probe\n" - -#: ../../../src/init.cpp:197 -msgid "Username for JSON-RPC connections\n" -msgstr "Utilizator pentru conexiuni JSON-RPC\n" - -#: ../../../src/init.cpp:198 -msgid "Password for JSON-RPC connections\n" -msgstr "Parola pentru conexiuni JSON-RPC\n" - -#: ../../../src/init.cpp:199 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Asculta conexiuni JSON-RPC pe portul (predeterminat: 8332)\n" - -#: ../../../src/init.cpp:200 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Permite conexiuni JSON-RPC de la adresa IP specifica\n" - -#: ../../../src/init.cpp:201 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Trimite comanda la nod existent la (predeterminat: 127.0.0.1)\n" - -#: ../../../src/init.cpp:202 -msgid "Set key pool size to (default: 100)\n" -msgstr "Ajusteaza numarul de chei in rezerva (predeterminat: 100)\n" - -#: ../../../src/init.cpp:203 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Rescaneza lantul de blocuri in cautare de tranzacti lipsa din portofel\n" - -#: ../../../src/init.cpp:207 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"Optiuni SSL: (vezi la Wiki Bitcoin pentru instructiuni detaliate)\n" - -#: ../../../src/init.cpp:208 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Utilizeaza OpenSSL (https) pentru conexiunile JSON-RPC\n" - -#: ../../../src/init.cpp:209 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Arhiva certificat de server (predeterminat: server.cert)\n" - -#: ../../../src/init.cpp:210 -msgid "Server private key (default: server.pem)\n" -msgstr "Cheie privata de server (predeterminat: server.pem)\n" - -#: ../../../src/init.cpp:211 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Tipuri de cifrare acceptate (predeterminat: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:215 -msgid "This help message\n" -msgstr "Acest mesaj de ajutor\n" - -#: ../../../src/init.cpp:353 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "Nu se poate obtine permis de lucru in directorul de date %s. E posibil ca Bitcoin sa fie deja in executie." - -#: ../../../src/init.cpp:379 -msgid "Error loading addr.dat \n" -msgstr "Eroare la incarcare addr.dat \n" - -#: ../../../src/init.cpp:385 -msgid "Error loading blkindex.dat \n" -msgstr "Eroare la incarcare blkindex.dat \n" - -#: ../../../src/init.cpp:396 -msgid "Error loading wallet.dat: Wallet corrupted \n" -msgstr "Eroare la incarcare wallet.dat \n" - -#: ../../../src/init.cpp:398 -msgid "Error loading wallet.dat: Wallet requires newer version of Bitcoin \n" -msgstr "Eroare la incarcare wallet.dat: E necesare o versiune mai noua de Bitcoin \n" - -#: ../../../src/init.cpp:400 -msgid "Error loading wallet.dat \n" -msgstr "Eroare la incarcare wallet.dat \n" - -#: ../../../src/init.cpp:489 -msgid "Invalid -proxy address" -msgstr "Adresa -proxy invalida" - -#: ../../../src/init.cpp:514 -msgid "Invalid amount for -paytxfee=" -msgstr "Cantitate invalida pentru -paytxfee=" - -#: ../../../src/init.cpp:518 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Atentie: -paytxfee este prea mare. Acesta este comisionul platit la fiecare tranzactie." - -#: ../../../src/main.cpp:1398 -msgid "Warning: Disk space is low " -msgstr "Atentie: Spatiul pe hard disk este redus" - -#: ../../../src/net.cpp:1610 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "Nu e posibila ascultarea pe portul %d in acest calculator. Probabil clientul Bitcoin este deja in executie." - -#: ../../../src/rpc.cpp:2005 -#: ../../../src/rpc.cpp:2007 -#, c-format -msgid "To use the %s option" -msgstr "Pentru a utiliza optiunea %s" - -#: ../../../src/rpc.cpp:2009 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Atentie: %s, trebuie sa specifici rpcpassword=\n" -"in fisierul de configuratie: %s\n" -"Daca fisierul nu exista trebuie creat cu permisiuni de citire numai pentru autor.\n" - -#: ../../../src/rpc.cpp:2185 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"Trebuie sa specifici rpcpassword= in fisierul de configuratie:\n" -"%s\n" -"Daca fisierul nu exista trebuie creat cu permisiuni de citire numai pentru autor." - -#: ../../../src/ui.cpp:217 -#, c-format -msgid "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?" -msgstr "Aceasta tranzactie trece peste limita de dimensiune. O poti trimite in continuare pentru %s, care taxa se imparte intre nodurile ce receptioneaza tranzactia si ajuta la mentinerea retelei. Continui tranzactia?" - -#: ../../../src/ui.cpp:261 -#: ../../../src/ui.cpp:1247 -msgid "Enter the current passphrase to the wallet." -msgstr "Introduce parola actuala de portofel" - -#: ../../../src/ui.cpp:262 -#: ../../../src/ui.cpp:1183 -#: ../../../src/ui.cpp:1200 -#: ../../../src/ui.cpp:1248 -#: ../../../src/ui.cpp:1272 -#: ../../../src/ui.cpp:1292 -msgid "Passphrase" -msgstr "Parola" - -#: ../../../src/ui.cpp:268 -msgid "Please supply the current wallet decryption passphrase." -msgstr "Introduce parola actuala para decriptarea portofelului." - -#: ../../../src/ui.cpp:276 -#: ../../../src/ui.cpp:1257 -#: ../../../src/ui.cpp:1314 -msgid "The passphrase entered for the wallet decryption was incorrect." -msgstr "Parola introdusa pentru decriptarea portofelului nu este corecta." - -#: ../../../src/ui.cpp:353 -msgid "Status" -msgstr "Stare" - -#: ../../../src/ui.cpp:354 -msgid "Date" -msgstr "Data" - -#: ../../../src/ui.cpp:355 -msgid "Description" -msgstr "Descriere" - -#: ../../../src/ui.cpp:356 -msgid "Debit" -msgstr "Debit" - -#: ../../../src/ui.cpp:357 -msgid "Credit" -msgstr "Credit" - -#: ../../../src/ui.cpp:568 -#, c-format -msgid "Open for %d blocks" -msgstr "Deschis pentru %d blocuri" - -#: ../../../src/ui.cpp:570 -#, c-format -msgid "Open until %s" -msgstr "Deschis pana la %s" - -#: ../../../src/ui.cpp:576 -#, c-format -msgid "%d/offline?" -msgstr "%d/desconectat?" - -#: ../../../src/ui.cpp:578 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/neconfirmat" - -#: ../../../src/ui.cpp:580 -#, c-format -msgid "%d confirmations" -msgstr "%d confirmari" - -#: ../../../src/ui.cpp:665 -msgid "Generated" -msgstr "Generat" - -#: ../../../src/ui.cpp:673 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Generat (%s matureaza in %d blocuri)" - -#: ../../../src/ui.cpp:677 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Generat - Atentie: Acest block nu se a receptionat de la alte noduri si probabil nu va fi acceptat!" - -#: ../../../src/ui.cpp:681 -msgid "Generated (not accepted)" -msgstr "Generat (neaceptat)" - -#: ../../../src/ui.cpp:691 -msgid "From: " -msgstr "De: " - -#: ../../../src/ui.cpp:715 -msgid "Received with: " -msgstr "Receptionat cu: " - -#: ../../../src/ui.cpp:760 -msgid "Payment to yourself" -msgstr "Plata proprie" - -#: ../../../src/ui.cpp:794 -msgid "To: " -msgstr "Pentru: " - -#: ../../../src/ui.cpp:1109 -msgid " Generating" -msgstr " Genereaza" - -#: ../../../src/ui.cpp:1111 -msgid "(not connected)" -msgstr "(neconectat)" - -#: ../../../src/ui.cpp:1114 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d conexiuni %d blocuri %d tranzactii" - -#: ../../../src/ui.cpp:1171 -msgid "Wallet already encrypted." -msgstr "Portofel deja encriptat." - -#: ../../../src/ui.cpp:1182 -msgid "" -"Enter the new passphrase to the wallet.\n" -"Please use a passphrase of 10 or more random characters, or eight or more words." -msgstr "" -"Introduce noua parola de portofel.\n" -"Te rugam sa utilizezi o parola de 10 sau mai multe caracter aleatoare sau minimum opt cuvinte." - -#: ../../../src/ui.cpp:1189 -#: ../../../src/ui.cpp:1280 -msgid "Error: The supplied passphrase was too short." -msgstr "Eroare: Parola introdusa este prea scurta." - -#: ../../../src/ui.cpp:1193 -msgid "" -"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?" -msgstr "" -"ATENTIE: Daca encriptezi portofelul si uiti parola vei pierde TOATE MONEDELE!\n" -"Esti sigur ca vrei sa encriptezi portofelul?" - -#: ../../../src/ui.cpp:1199 -msgid "Please re-enter your new wallet passphrase." -msgstr "Reintroduce noua parola de portofel." - -#: ../../../src/ui.cpp:1208 -#: ../../../src/ui.cpp:1302 -msgid "Error: the supplied passphrases didn't match." -msgstr "Eroare: parolele introduse nu sunt identice." - -#: ../../../src/ui.cpp:1218 -msgid "Wallet encryption failed." -msgstr "Encriptare portofel esuata." - -#: ../../../src/ui.cpp:1225 -msgid "" -"Wallet Encrypted.\n" -"Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer." -msgstr "" -"Portofel encriptat.\n" -"Retine ca encriptarea portofelului nu iti poate proteja complet monedele daca pc-ul este infectat de malware." - -#: ../../../src/ui.cpp:1236 -msgid "Wallet is unencrypted, please encrypt it first." -msgstr "Portofelul nu este encriptat, incearca sa-l encriptezi inainte." - -#: ../../../src/ui.cpp:1271 -msgid "Enter the new passphrase for the wallet." -msgstr "Introduce noua parola de portofel." - -#: ../../../src/ui.cpp:1291 -msgid "Re-enter the new passphrase for the wallet." -msgstr "Reintroduce noua parola de portofel." - -#: ../../../src/ui.cpp:1323 -msgid "Wallet Passphrase Changed." -msgstr "Parola de portofel schimbata." - -#: ../../../src/ui.cpp:1379 -#: ../../../src/ui.cpp:2821 -msgid "New Receiving Address" -msgstr "Adresa Noua de Primire" - -#: ../../../src/ui.cpp:1380 -#: ../../../src/ui.cpp:2822 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Cel mai indicat e sa utilizezi a adresa noua pentru fiecare plata primita.\n" -"\n" -"Eticheta" - -#: ../../../src/ui.cpp:1464 -msgid "Status: " -msgstr "Stare: " - -#: ../../../src/ui.cpp:1469 -msgid ", has not been successfully broadcast yet" -msgstr ", inca nu a fost trimisa cu succes" - -#: ../../../src/ui.cpp:1471 -#, c-format -msgid ", broadcast through %d node" -msgstr ", emis prin nod %d" - -#: ../../../src/ui.cpp:1473 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", emis prin noduri %d" - -#: ../../../src/ui.cpp:1477 -msgid "Date: " -msgstr "Data: " - -#: ../../../src/ui.cpp:1485 -msgid "Source: Generated
" -msgstr "Sursa: Generat
" - -#: ../../../src/ui.cpp:1491 -#: ../../../src/ui.cpp:1508 -msgid "From: " -msgstr "De: " - -#: ../../../src/ui.cpp:1508 -msgid "unknown" -msgstr "necunoscut" - -#: ../../../src/ui.cpp:1509 -#: ../../../src/ui.cpp:1533 -#: ../../../src/ui.cpp:1592 -msgid "To: " -msgstr "Pentru: " - -#: ../../../src/ui.cpp:1512 -msgid " (yours, label: " -msgstr "(tau, eticheta: " - -#: ../../../src/ui.cpp:1514 -msgid " (yours)" -msgstr "(tau)" - -#: ../../../src/ui.cpp:1551 -#: ../../../src/ui.cpp:1563 -#: ../../../src/ui.cpp:1609 -#: ../../../src/ui.cpp:1626 -msgid "Credit: " -msgstr "Credit: " - -#: ../../../src/ui.cpp:1553 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s matureaza in %d blocuri)" - -#: ../../../src/ui.cpp:1555 -msgid "(not accepted)" -msgstr "(neaceptat)" - -#: ../../../src/ui.cpp:1600 -#: ../../../src/ui.cpp:1608 -#: ../../../src/ui.cpp:1623 -msgid "Debit: " -msgstr "Debit: " - -#: ../../../src/ui.cpp:1614 -msgid "Transaction fee: " -msgstr "Comision tranzactie: " - -#: ../../../src/ui.cpp:1630 -msgid "Net amount: " -msgstr "Cantitate neta: " - -#: ../../../src/ui.cpp:1637 -msgid "Message:" -msgstr "Mesaj:" - -#: ../../../src/ui.cpp:1639 -msgid "Comment:" -msgstr "Comentariu:" - -#: ../../../src/ui.cpp:1642 -msgid "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." -msgstr "Monedele generate trebuie sa astepte 120 de blocuri inainte sa poata fi cheltuite. Cand ai generat acest block, s-a transmis in retea pentru a fi incul in lantul de blocuri. Daca nu este acceptat in lant, se va schimba in \"neaceptat\" si nu se va putea cheltui. Acest lucru se poate intampla rareori cand alt nod genereaza un bloc in acelasi moment cu al tau ." - -#: ../../../src/ui.cpp:1822 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Nu se poate scrie in fisierul autostart/bitcoin.desktop" - -#: ../../../src/ui.cpp:1858 -msgid "Main" -msgstr "Principal" - -#: ../../../src/ui.cpp:1868 -msgid "&Start Bitcoin on window system startup" -msgstr "&Porneste Bitcoin odata cu sistemul" - -#: ../../../src/ui.cpp:1875 -msgid "&Minimize on close" -msgstr "&Minimizeaza la inchidere" - -#: ../../../src/ui.cpp:2017 -#, c-format -msgid "version %s" -msgstr "versiune %s" - -#: ../../../src/ui.cpp:2140 -msgid "Error in amount " -msgstr "Eroare in cantitate " - -#: ../../../src/ui.cpp:2140 -#: ../../../src/ui.cpp:2145 -#: ../../../src/ui.cpp:2150 -#: ../../../src/ui.cpp:2203 -#: ../../../src/uibase.cpp:61 -msgid "Send Coins" -msgstr "Trimite Monede" - -#: ../../../src/ui.cpp:2145 -msgid "Amount exceeds your balance " -msgstr "Cantitatea trece peste limita disponibila" - -#: ../../../src/ui.cpp:2150 -msgid "Total exceeds your balance when the " -msgstr "Totalul trece peste limita cand" - -#: ../../../src/ui.cpp:2150 -msgid " transaction fee is included " -msgstr "comisionul de tranzactie este inclus" - -#: ../../../src/ui.cpp:2177 -msgid "Payment sent " -msgstr "Plata trimisa" - -#: ../../../src/ui.cpp:2177 -#: ../../../src/ui.cpp:2187 -#: ../../../src/ui.cpp:2337 -#: ../../../src/ui.cpp:2502 -#: ../../../src/wallet.cpp:1088 -msgid "Sending..." -msgstr "Se trimite..." - -#: ../../../src/ui.cpp:2203 -msgid "Invalid address " -msgstr "Adresa incorecta" - -#: ../../../src/ui.cpp:2258 -#, c-format -msgid "Sending %s to %s" -msgstr "Se trimite %s la %s" - -#: ../../../src/ui.cpp:2331 -#: ../../../src/ui.cpp:2364 -msgid "CANCELLED" -msgstr "ANULAT" - -#: ../../../src/ui.cpp:2335 -msgid "Cancelled" -msgstr "Anulat" - -#: ../../../src/ui.cpp:2337 -msgid "Transfer cancelled " -msgstr "Transfer anulat" - -#: ../../../src/ui.cpp:2390 -msgid "Error: " -msgstr "Eroare: " - -#: ../../../src/ui.cpp:2404 -#: ../../../src/ui.cpp:2473 -#: ../../../src/wallet.cpp:1106 -msgid "Insufficient funds" -msgstr "Fonduri insuficiente" - -#: ../../../src/ui.cpp:2409 -msgid "Connecting..." -msgstr "Se conecteaza..." - -#: ../../../src/ui.cpp:2414 -msgid "Unable to connect" -msgstr "Conectare imposibila" - -#: ../../../src/ui.cpp:2419 -msgid "Requesting public key..." -msgstr "Se cere cheia publica..." - -#: ../../../src/ui.cpp:2431 -msgid "Received public key..." -msgstr "Cheia publica primita..." - -#: ../../../src/ui.cpp:2445 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Destinatarul nu accepta tranzacti trimise la adresa IP" - -#: ../../../src/ui.cpp:2447 -msgid "Transfer was not accepted" -msgstr "Transferul nu a fost acceptat" - -#: ../../../src/ui.cpp:2456 -msgid "Invalid response received" -msgstr "Raspuns invalid receptionat" - -#: ../../../src/ui.cpp:2469 -msgid "Creating transaction..." -msgstr "Se creeaza tranzactia..." - -#: ../../../src/ui.cpp:2492 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Aceasta tranzactie necesita un comision de cel putin %s datorita cantitatii, complexitatii sau uzului de fonduri primite recent" - -#: ../../../src/ui.cpp:2494 -msgid "Transaction creation failed" -msgstr "Crearea tranzactiei a esuat." - -#: ../../../src/ui.cpp:2504 -msgid "Transaction aborted" -msgstr "Tranzactie anulata" - -#: ../../../src/ui.cpp:2512 -msgid "Lost connection, transaction cancelled" -msgstr "Conexiune pierduta, tranzactie anulata" - -#: ../../../src/ui.cpp:2528 -msgid "Sending payment..." -msgstr "Se trimite plata..." - -#: ../../../src/ui.cpp:2540 -msgid "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." -msgstr "Tranzactia a fost respinsa. Acest lucru se poate intampla daca vreuna din monede a fost cheltuita sau s-a folosit o copie de portofel (wallet.dat) si monedele a fost cheltuite in copie dar nu s-au marcat cheltuite aici." - -#: ../../../src/ui.cpp:2549 -msgid "Waiting for confirmation..." -msgstr "Se asteapta confirmare..." - -#: ../../../src/ui.cpp:2566 -msgid "" -"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." -msgstr "" -"Plata a fost trimisa dar destinatarul nu a putut sa o verifice.\n" -"Tranzactia a fost inregistrata si creditul trimis la desinatar,\n" -"dar informatia de comentarii va ramane in alb." - -#: ../../../src/ui.cpp:2575 -msgid "Payment was sent, but an invalid response was received" -msgstr "Plata a fost trimisa dar s-a receptionat un raspuns incorect" - -#: ../../../src/ui.cpp:2581 -msgid "Payment completed" -msgstr "Plata completa" - -#: ../../../src/ui.cpp:2623 -#: ../../../src/ui.cpp:2769 -#: ../../../src/ui.cpp:2809 -msgid "Name" -msgstr "Nume" - -#: ../../../src/ui.cpp:2624 -#: ../../../src/ui.cpp:2769 -#: ../../../src/ui.cpp:2809 -msgid "Address" -msgstr "Adresa" - -#: ../../../src/ui.cpp:2626 -#: ../../../src/ui.cpp:2781 -msgid "Label" -msgstr "Eticheta" - -#: ../../../src/ui.cpp:2627 -#: ../../../src/uibase.cpp:847 -msgid "Bitcoin Address" -msgstr "Adresa Bitcoin" - -#: ../../../src/ui.cpp:2751 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Aceasta este o adresa pentru primire de plati de aceea nu se poate introduce manual in agenda" - -#: ../../../src/ui.cpp:2769 -#: ../../../src/ui.cpp:2775 -msgid "Edit Address" -msgstr "Editeaza adresa" - -#: ../../../src/ui.cpp:2781 -msgid "Edit Address Label" -msgstr "Editeaza eticheta de adresa" - -#: ../../../src/ui.cpp:2809 -#: ../../../src/ui.cpp:2815 -msgid "Add Address" -msgstr "Adauga adresa" - -#: ../../../src/ui.cpp:2902 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2904 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Se genereaza" - -#: ../../../src/ui.cpp:2906 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (neconectat)" - -#: ../../../src/ui.cpp:2985 -msgid "&Open Bitcoin" -msgstr "&Deschide Bitcoin" - -#: ../../../src/ui.cpp:2986 -msgid "&Send Bitcoins" -msgstr "&Trimite Bitcoin" - -#: ../../../src/ui.cpp:2987 -msgid "O&ptions..." -msgstr "O&ptiuni" - -#: ../../../src/ui.cpp:2990 -#: ../../../src/uibase.cpp:25 -msgid "E&xit" -msgstr "I&esire" - -#: ../../../src/ui.cpp:3216 -msgid "Program has crashed and will terminate. " -msgstr "Programul a detectat o eroare si se va inchide." - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&Arhiva" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Adresele de primire..." - -#: ../../../src/uibase.cpp:35 -msgid "&Encrypt Wallet..." -msgstr "&Encripteaza portofel..." - -#: ../../../src/uibase.cpp:38 -msgid "&Change Wallet Encryption Passphrase..." -msgstr "&Schimba parola de encriptare portofel..." - -#: ../../../src/uibase.cpp:42 -msgid "&Options..." -msgstr "&Optiuni..." - -#: ../../../src/uibase.cpp:45 -msgid "&Settings" -msgstr "&Cnfiguratie" - -#: ../../../src/uibase.cpp:49 -msgid "&About..." -msgstr "&Despre..." - -#: ../../../src/uibase.cpp:52 -msgid "&Help" -msgstr "&Ajutor" - -#: ../../../src/uibase.cpp:62 -msgid "Address Book" -msgstr "Agenda cu adrese" - -#: ../../../src/uibase.cpp:75 -msgid "Your Bitcoin Address:" -msgstr "Adresa Ta Bitcoin:" - -#: ../../../src/uibase.cpp:82 -msgid " &New... " -msgstr " &Nou... " - -#: ../../../src/uibase.cpp:85 -#: ../../../src/uibase.cpp:790 -#: ../../../src/uibase.cpp:893 -msgid " &Copy to Clipboard " -msgstr " &Copiaza in Clipboard" - -#: ../../../src/uibase.cpp:99 -msgid "Balance:" -msgstr "Balant:" - -#: ../../../src/uibase.cpp:115 -msgid " All" -msgstr "Tot" - -#: ../../../src/uibase.cpp:115 -msgid " Sent" -msgstr "Trimis" - -#: ../../../src/uibase.cpp:115 -msgid " Received" -msgstr "Primit" - -#: ../../../src/uibase.cpp:115 -msgid " In Progress" -msgstr "In Curs" - -#: ../../../src/uibase.cpp:136 -msgid "All Transactions" -msgstr "Toate Tranzactiile" - -#: ../../../src/uibase.cpp:147 -msgid "Sent/Received" -msgstr "Trimis/Primit" - -#: ../../../src/uibase.cpp:158 -msgid "Sent" -msgstr "Trimis" - -#: ../../../src/uibase.cpp:169 -msgid "Received" -msgstr "Primit" - -#: ../../../src/uibase.cpp:312 -#: ../../../src/uibase.cpp:453 -#: ../../../src/uibase.cpp:552 -#: ../../../src/uibase.cpp:732 -#: ../../../src/uibase.cpp:793 -#: ../../../src/uibase.cpp:902 -#: ../../../src/uibase.cpp:991 -msgid "OK" -msgstr "OK" - -#: ../../../src/uibase.cpp:355 -msgid "&Start Bitcoin on system startup" -msgstr "&Porneste Bitcoin odata cu sistemul" - -#: ../../../src/uibase.cpp:358 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Minimizeaza in tray nu in bara de aplicatii" - -#: ../../../src/uibase.cpp:361 -msgid "Map port using &UPnP" -msgstr "Reserva portul utilizand &UPnP" - -#: ../../../src/uibase.cpp:364 -msgid "M&inimize to the tray on close" -msgstr "M&inimizeaza in tray la inchidere" - -#: ../../../src/uibase.cpp:370 -msgid "&Connect through socks4 proxy (requires restart to apply): " -msgstr "&Conecteaza prin proxy socks4 (repornire apl. necesara): " - -#: ../../../src/uibase.cpp:381 -msgid "Proxy &IP:" -msgstr "&IP de proxy:" - -#: ../../../src/uibase.cpp:389 -msgid " &Port:" -msgstr " &Port:" - -#: ../../../src/uibase.cpp:402 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Comision optional per KB ce asigura ca tranzactiile tale sunt procesate rapid. Majoritatea tranzactiilor sunt de 1KB. Se recomanda un comision de 0.01." - -#: ../../../src/uibase.cpp:409 -msgid "Pay transaction fee:" -msgstr "Comision de tranzactie:" - -#: ../../../src/uibase.cpp:430 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:434 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:456 -#: ../../../src/uibase.cpp:678 -#: ../../../src/uibase.cpp:737 -#: ../../../src/uibase.cpp:796 -#: ../../../src/uibase.cpp:905 -#: ../../../src/uibase.cpp:994 -msgid "Cancel" -msgstr "Anuleaza" - -#: ../../../src/uibase.cpp:459 -msgid "&Apply" -msgstr "&Aplica" - -#: ../../../src/uibase.cpp:518 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../src/uibase.cpp:524 -msgid "version" -msgstr "versiune" - -#: ../../../src/uibase.cpp:535 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"Acesta este un program experimental.\n" -"\n" -"Distribuit sub licenta MIT/X11, cauta fisierul adaugat de licenta \n" -"license.txt sau http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Acest produs contine software creat deOpenSSL Project pentru uz in \n" -"OpenSSL Toolkit (http://www.openssl.org/), software cryptografic scris de \n" -"Eric Young (eay@cryptsoft.com) si software UPnP scris de Thomas Bernard." - -#: ../../../src/uibase.cpp:591 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Introduce o a adresa Bitcoin (exemplu: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:605 -msgid "Pay &To:" -msgstr "Plateste &la:" - -#: ../../../src/uibase.cpp:620 -msgid "&Paste" -msgstr "&Lipeste (paste)" - -#: ../../../src/uibase.cpp:623 -msgid " Address &Book..." -msgstr "Agenda de &adrese..." - -#: ../../../src/uibase.cpp:630 -msgid "&Amount:" -msgstr "&Cantitate:" - -#: ../../../src/uibase.cpp:640 -msgid "T&ransfer:" -msgstr "T&ransfera:" - -#: ../../../src/uibase.cpp:646 -msgid " Standard" -msgstr "Standard" - -#: ../../../src/uibase.cpp:673 -msgid "&Send" -msgstr "&Trimite" - -#: ../../../src/uibase.cpp:721 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Se conecteaza..." - -#: ../../../src/uibase.cpp:771 -msgid "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." -msgstr "Acestea sunt adresele tale pentru primit plati. Poti sa folosesti o adresa diferita pentru fiecare persoana care iti trimite pentru a putea tine cont de unde vin platile. Adresa selectionata este afisata in fereastra principala." - -#: ../../../src/uibase.cpp:784 -#: ../../../src/uibase.cpp:896 -msgid "&Edit..." -msgstr "&Editeaza..." - -#: ../../../src/uibase.cpp:787 -#: ../../../src/uibase.cpp:899 -msgid " &New Address... " -msgstr " &Adresa noua... " - -#: ../../../src/uibase.cpp:859 -msgid "Sending" -msgstr "Se trimite" - -#: ../../../src/uibase.cpp:867 -msgid "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." -msgstr "Acestea sunt adresele tale pentru primit plati. Poti sa folosesti o adresa diferita pentru fiecare persoana care iti trimite pentru a putea tine cont de unde vin platile. Adresa selectionata este afisata in fereastra principala." - -#: ../../../src/uibase.cpp:880 -msgid "Receiving" -msgstr "Se receptioneaza" - -#: ../../../src/uibase.cpp:890 -msgid "&Delete" -msgstr "&Sterge" - -#: ../../../src/util.cpp:870 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Atentie: Regleaza corect hora si data calculatorului pentru ca Bitcoin sa functioneze corect." - -#: ../../../src/util.cpp:904 -msgid "beta" -msgstr "beta" - -#: ../../../src/wallet.cpp:1073 -msgid "Error: Wallet locked, unable to create transaction " -msgstr "Eroare: Portofel blocat, nu se poate crea tranzactia" - -#: ../../../src/wallet.cpp:1081 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Eroare: Aceasta tranzactie necesita un comision de cel putin %s datorita cantitatii, complexitatii sau uzului de fonduri primite recent" - -#: ../../../src/wallet.cpp:1083 -msgid "Error: Transaction creation failed " -msgstr "Eroare: Crearea tranzactiei a esuat" - -#: ../../../src/wallet.cpp:1092 -msgid "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." -msgstr "Error: Tranzactia a fost respinsa. Acest lucru se poate intampla daca vreuna din monede a fost cheltuita sau s-a folosit o copie de portofel (wallet.dat) si monedele a fost cheltuite in copie dar nu s-au marcat cheltuite aici." - -#: ../../../src/wallet.cpp:1104 -msgid "Invalid amount" -msgstr "Cantitate incorecta" - -#: ../../../src/uibase.h:151 -msgid "Transaction Details" -msgstr "Detalii de Tranzactie" - -#: ../../../src/uibase.h:203 -msgid "Options" -msgstr "Optiuni" - -#: ../../../src/uibase.h:232 -msgid "About Bitcoin" -msgstr "Despre Bitcoin" - -#: ../../../src/uibase.h:341 -msgid "Your Bitcoin Addresses" -msgstr "Adresele Tale Bitcoin" - -#~ msgid "Invalid bitcoin address" -#~ msgstr "Dirección Bitcoin inválida" diff --git a/locale/ru/LC_MESSAGES/bitcoin.mo b/locale/ru/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index 4175fc4..0000000 Binary files a/locale/ru/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/ru/LC_MESSAGES/bitcoin.po b/locale/ru/LC_MESSAGES/bitcoin.po deleted file mode 100644 index 266e768..0000000 --- a/locale/ru/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,1021 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: m0Ray \n" -"POT-Creation-Date: 2011-05-15 18:24+0100\n" -"PO-Revision-Date: 2011-07-17 04:18+0100\n" -"Last-Translator: Michael Bemmerl \n" -"Language-Team: \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/net.cpp:1499 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "Не могу открыть порт %d. Возможно, Bitcoin уже запущен." - -#: ../../../src/ui.cpp:202 -#, c-format -msgid "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?" -msgstr "Этот перевод превышает допустимый лимит. Вы можете провести его с комиссией %s, которую получат узлы, обрабатывающие перевод, и поможет поддерживать сеть. Вы хотите заплатить комиссию?" - -#: ../../../src/ui.cpp:301 -msgid "Status" -msgstr "Статус" - -#: ../../../src/ui.cpp:302 -msgid "Date" -msgstr "Дата" - -#: ../../../src/ui.cpp:303 -msgid "Description" -msgstr "Описание" - -#: ../../../src/ui.cpp:304 -msgid "Debit" -msgstr "Расход" - -#: ../../../src/ui.cpp:305 -msgid "Credit" -msgstr "Приход" - -#: ../../../src/ui.cpp:511 -#, c-format -msgid "Open for %d blocks" -msgstr "Открыто на %d блоков" - -#: ../../../src/ui.cpp:513 -#, c-format -msgid "Open until %s" -msgstr "Открыто до %s" - -#: ../../../src/ui.cpp:519 -#, c-format -msgid "%d/offline?" -msgstr "%d/оффлайн?" - -#: ../../../src/ui.cpp:521 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/не подтверждено" - -#: ../../../src/ui.cpp:523 -#, c-format -msgid "%d confirmations" -msgstr "%d подтверждений" - -#: ../../../src/ui.cpp:608 -msgid "Generated" -msgstr "Сгенерировано" - -#: ../../../src/ui.cpp:616 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Сгенерировано (%s станет доступно через %d блоков)" - -#: ../../../src/ui.cpp:620 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Сгенерировано - Внимание: этот блок не был получен ни одним узлом и, скорее всего, не будет принят!" - -#: ../../../src/ui.cpp:624 -msgid "Generated (not accepted)" -msgstr "Сгенерировано (не принято)" - -#: ../../../src/ui.cpp:634 -msgid "From: " -msgstr "От: " - -#: ../../../src/ui.cpp:658 -msgid "Received with: " -msgstr "Получено для: " - -#: ../../../src/ui.cpp:704 -msgid "Payment to yourself" -msgstr "Платёж самому себе" - -#: ../../../src/ui.cpp:738 -msgid "To: " -msgstr "Кому: " - -#: ../../../src/ui.cpp:1053 -msgid " Generating" -msgstr " Генерация" - -#: ../../../src/ui.cpp:1055 -msgid "(not connected)" -msgstr "(не подключен)" - -#: ../../../src/ui.cpp:1058 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d подключений %d блоков %d переводов" - -#: ../../../src/ui.cpp:1163 -#: ../../../src/ui.cpp:2527 -msgid "New Receiving Address" -msgstr "Новый адрес получения" - -#: ../../../src/ui.cpp:1164 -#: ../../../src/ui.cpp:2528 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Рекомендуется использовать новый адрес для каждого получаемого платежа.\n" -"\n" -"Метка" - -#: ../../../src/ui.cpp:1233 -msgid "Status: " -msgstr "Статус: " - -#: ../../../src/ui.cpp:1238 -msgid ", has not been successfully broadcast yet" -msgstr ", ещё не был успешно разослан" - -#: ../../../src/ui.cpp:1240 -#, c-format -msgid ", broadcast through %d node" -msgstr ", рассылка через %d узел" - -#: ../../../src/ui.cpp:1242 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", рассылка через %d узлов" - -#: ../../../src/ui.cpp:1246 -msgid "Date: " -msgstr "Дата: " - -#: ../../../src/ui.cpp:1254 -msgid "Source: Generated
" -msgstr "Источник: Сгенерировано
" - -#: ../../../src/ui.cpp:1260 -#: ../../../src/ui.cpp:1278 -msgid "From: " -msgstr "От: " - -#: ../../../src/ui.cpp:1278 -msgid "unknown" -msgstr "аноним" - -#: ../../../src/ui.cpp:1279 -#: ../../../src/ui.cpp:1303 -#: ../../../src/ui.cpp:1362 -msgid "To: " -msgstr "Кому: " - -#: ../../../src/ui.cpp:1282 -msgid " (yours, label: " -msgstr " (ваш, метка: " - -#: ../../../src/ui.cpp:1284 -msgid " (yours)" -msgstr " (ваш)" - -#: ../../../src/ui.cpp:1321 -#: ../../../src/ui.cpp:1333 -#: ../../../src/ui.cpp:1379 -#: ../../../src/ui.cpp:1396 -msgid "Credit: " -msgstr "Приход: " - -#: ../../../src/ui.cpp:1323 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s станет доступно через %d блоков)" - -#: ../../../src/ui.cpp:1325 -msgid "(not accepted)" -msgstr "(не принято)" - -#: ../../../src/ui.cpp:1370 -#: ../../../src/ui.cpp:1378 -#: ../../../src/ui.cpp:1393 -msgid "Debit: " -msgstr "Расход: " - -#: ../../../src/ui.cpp:1384 -msgid "Transaction fee: " -msgstr "Комиссия: " - -#: ../../../src/ui.cpp:1400 -msgid "Net amount: " -msgstr "Чистая сумма: " - -#: ../../../src/ui.cpp:1407 -msgid "Message:" -msgstr "Сообщение:" - -#: ../../../src/ui.cpp:1409 -msgid "Comment:" -msgstr "Комментарий:" - -#: ../../../src/ui.cpp:1412 -msgid "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." -msgstr "Сгенерированные монеты должны ждать 120 блоков, прежде чем они могут быть потрачены. Когда вы сгенерировали этот блок, он был разослан в сети для добавления в цепь блоков. Если не удалось добавить этот блок в цепь, он будет обозначен как \"не принятый\" и не может быть потрачен. Такое может случиться, если другой узел сгенерировал блок примерно в то же время, что и вы." - -#: ../../../src/ui.cpp:1592 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Не удаётся записать файл autostart/bitcoin.desktop" - -#: ../../../src/ui.cpp:1628 -msgid "Main" -msgstr "Основные" - -#: ../../../src/ui.cpp:1636 -msgid "&Start Bitcoin on window system startup" -msgstr "&Запускать Bitcoin при запуске оконной системы" - -#: ../../../src/ui.cpp:1643 -msgid "&Minimize on close" -msgstr "&Сворачивать при закрытии" - -#: ../../../src/ui.cpp:1785 -#, c-format -msgid "version %s" -msgstr "версия %s" - -#: ../../../src/ui.cpp:1897 -msgid "Error in amount " -msgstr "Ошибка в количестве " - -#: ../../../src/ui.cpp:1897 -#: ../../../src/ui.cpp:1902 -#: ../../../src/ui.cpp:1907 -#: ../../../src/ui.cpp:1942 -#: ../../../src/uibase.cpp:55 -msgid "Send Coins" -msgstr "Отправить монеты" - -#: ../../../src/ui.cpp:1902 -msgid "Amount exceeds your balance " -msgstr "Количество превышает ваш баланс " - -#: ../../../src/ui.cpp:1907 -msgid "Total exceeds your balance when the " -msgstr "Общая сумма превышает ваш баланс, когда " - -#: ../../../src/ui.cpp:1907 -msgid " transaction fee is included " -msgstr " комиссия включена " - -#: ../../../src/ui.cpp:1925 -msgid "Payment sent " -msgstr "Платёж отправлен " - -#: ../../../src/ui.cpp:1925 -#: ../../../src/ui.cpp:1930 -#: ../../../src/ui.cpp:2074 -#: ../../../src/ui.cpp:2227 -#: ../../../src/main.cpp:3999 -msgid "Sending..." -msgstr "Отправка..." - -#: ../../../src/ui.cpp:1942 -msgid "Invalid address " -msgstr "Неверный адрес " - -#: ../../../src/ui.cpp:1995 -#, c-format -msgid "Sending %s to %s" -msgstr "Отправка %s для %s" - -#: ../../../src/ui.cpp:2068 -#: ../../../src/ui.cpp:2101 -msgid "CANCELLED" -msgstr "ОТМЕНЕНО" - -#: ../../../src/ui.cpp:2072 -msgid "Cancelled" -msgstr "Отменено" - -#: ../../../src/ui.cpp:2074 -msgid "Transfer cancelled " -msgstr "Передача отменена " - -#: ../../../src/ui.cpp:2127 -msgid "Error: " -msgstr "Ошибка: " - -#: ../../../src/ui.cpp:2141 -#: ../../../src/ui.cpp:2212 -#: ../../../src/main.cpp:4018 -msgid "Insufficient funds" -msgstr "Недостаточно средств" - -#: ../../../src/ui.cpp:2146 -msgid "Connecting..." -msgstr "Подключение..." - -#: ../../../src/ui.cpp:2151 -msgid "Unable to connect" -msgstr "Невозможно подключиться" - -#: ../../../src/ui.cpp:2156 -msgid "Requesting public key..." -msgstr "Запрос публичного ключа..." - -#: ../../../src/ui.cpp:2168 -msgid "Received public key..." -msgstr "Получен публичный ключ..." - -#: ../../../src/ui.cpp:2182 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Получатель не принимает переводы на IP-адрес" - -#: ../../../src/ui.cpp:2184 -msgid "Transfer was not accepted" -msgstr "Передача не принята" - -#: ../../../src/ui.cpp:2193 -msgid "Invalid response received" -msgstr "Получен неверный отклик" - -#: ../../../src/ui.cpp:2208 -msgid "Creating transaction..." -msgstr "Создание перевода..." - -#: ../../../src/ui.cpp:2220 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Этот перевод требует уплаты комиссии минимум в %s, так как имеет большой объём, сложность или использует недавно полученные средства" - -#: ../../../src/ui.cpp:2222 -msgid "Transaction creation failed" -msgstr "Не удалось создать перевод" - -#: ../../../src/ui.cpp:2229 -msgid "Transaction aborted" -msgstr "Перевод прерван" - -#: ../../../src/ui.cpp:2237 -msgid "Lost connection, transaction cancelled" -msgstr "Соединение разорвано, перевод отменён" - -#: ../../../src/ui.cpp:2253 -msgid "Sending payment..." -msgstr "Отправка платежа..." - -#: ../../../src/ui.cpp:2259 -msgid "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." -msgstr "Перевод был отклонён. Это могло произойти, если некоторые из монет в вашем кошельке уже были потрачены, например, если вы использовали копию wallet.dat, и монеты были потрачены в копии, но не отмечены израсходованными здесь." - -#: ../../../src/ui.cpp:2268 -msgid "Waiting for confirmation..." -msgstr "Ожидание подтверждения..." - -#: ../../../src/ui.cpp:2286 -msgid "" -"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." -msgstr "" -"Платёж был отправлен, но получатель не смог проверить его.\n" -"Перевод был записан и будет начислен получателю,\n" -"но поле комментария будет пустое." - -#: ../../../src/ui.cpp:2295 -msgid "Payment was sent, but an invalid response was received" -msgstr "Платёж отправлен, но был получен неверный отклик" - -#: ../../../src/ui.cpp:2301 -msgid "Payment completed" -msgstr "Платёж проведён" - -#: ../../../src/ui.cpp:2332 -#: ../../../src/ui.cpp:2478 -#: ../../../src/ui.cpp:2515 -msgid "Name" -msgstr "Имя" - -#: ../../../src/ui.cpp:2333 -#: ../../../src/ui.cpp:2478 -#: ../../../src/ui.cpp:2515 -msgid "Address" -msgstr "Адрес" - -#: ../../../src/ui.cpp:2335 -#: ../../../src/ui.cpp:2490 -msgid "Label" -msgstr "Метка" - -#: ../../../src/ui.cpp:2336 -#: ../../../src/uibase.cpp:837 -msgid "Bitcoin Address" -msgstr "Адрес Bitcoin" - -#: ../../../src/ui.cpp:2460 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Это один из ваших собственных адресов для получения платежей, он не может быть внесён в адресную книгу. " - -#: ../../../src/ui.cpp:2478 -#: ../../../src/ui.cpp:2484 -msgid "Edit Address" -msgstr "Правка адреса" - -#: ../../../src/ui.cpp:2490 -msgid "Edit Address Label" -msgstr "Правка метки адреса" - -#: ../../../src/ui.cpp:2515 -#: ../../../src/ui.cpp:2521 -msgid "Add Address" -msgstr "Добавить адрес" - -#: ../../../src/ui.cpp:2598 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2600 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Генерация" - -#: ../../../src/ui.cpp:2602 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (не подключен)" - -#: ../../../src/ui.cpp:2681 -msgid "&Open Bitcoin" -msgstr "&Открыть Bitcoin" - -#: ../../../src/ui.cpp:2682 -msgid "&Send Bitcoins" -msgstr "&Отправить Bitcoins" - -#: ../../../src/ui.cpp:2683 -msgid "O&ptions..." -msgstr "О&пции..." - -#: ../../../src/ui.cpp:2686 -#: ../../../src/uibase.cpp:25 -msgid "E&xit" -msgstr "&Выход" - -#: ../../../src/ui.cpp:2902 -msgid "Program has crashed and will terminate. " -msgstr "Сбой программы, завершение. " - -#: ../../../src/main.cpp:1868 -msgid "Warning: Disk space is low " -msgstr "Внимание: мало места на диске " - -#: ../../../src/main.cpp:3992 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Ошибка: Этот перевод требует уплаты комиссии минимум в %s, так как имеет большой объём, сложность или использует недавно полученные средства " - -#: ../../../src/main.cpp:3994 -msgid "Error: Transaction creation failed " -msgstr "Ошибка: не удалось создать перевод " - -#: ../../../src/main.cpp:4003 -msgid "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." -msgstr "Перевод был отклонен. Это могло произойти, если некоторые из монет в вашем кошельке уже были потрачены, например, если вы использовали копию wallet.dat, и монеты были потрачены в копии, но не отмечены израсходованными здесь." - -#: ../../../src/main.cpp:4016 -msgid "Invalid amount" -msgstr "Неверное количество" - -#: ../../../src/main.cpp:4023 -msgid "Invalid bitcoin address" -msgstr "Неверный адрес bitcoin" - -#: ../../../src/rpc.cpp:1800 -#: ../../../src/rpc.cpp:1802 -#, c-format -msgid "To use the %s option" -msgstr "Чтобы использовать опцию %s" - -#: ../../../src/rpc.cpp:1804 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Внимание: %s, вы должны установить rpcpassword=<пароль>\n" -"в конфигурационном файле: %s\n" -"Если файл не существует, создайте его с правами \"чтение только владельцем\".\n" - -#: ../../../src/rpc.cpp:1972 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"Вы должны установить rpcpassword=<пароль> в конфигурационном файле:\n" -"%s\n" -"Если файл не существует, создайте его с правами \"чтение только владельцем\"." - -#: ../../../src/util.cpp:865 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Внимание: пожалуйста, проверьте дату и время на вашем компьютере. Если часы идут неверно, Bitcoin не будет работать правильно." - -#: ../../../src/util.cpp:898 -msgid "beta" -msgstr "beta" - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "&Файл" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Ваши адреса получения..." - -#: ../../../src/uibase.cpp:36 -msgid "&Options..." -msgstr "&Опции" - -#: ../../../src/uibase.cpp:39 -msgid "&Settings" -msgstr "&Настройки" - -#: ../../../src/uibase.cpp:43 -msgid "&About..." -msgstr "&О программе..." - -#: ../../../src/uibase.cpp:46 -msgid "&Help" -msgstr "&Справка" - -#: ../../../src/uibase.cpp:56 -msgid "Address Book" -msgstr "Адресная книга" - -#: ../../../src/uibase.cpp:69 -msgid "Your Bitcoin Address:" -msgstr "Ваш адрес Bitcoin:" - -#: ../../../src/uibase.cpp:76 -msgid " &New... " -msgstr " &Новый... " - -#: ../../../src/uibase.cpp:79 -#: ../../../src/uibase.cpp:780 -#: ../../../src/uibase.cpp:883 -msgid " &Copy to Clipboard " -msgstr " &Копировать в буфер обмена " - -#: ../../../src/uibase.cpp:93 -msgid "Balance:" -msgstr "Баланс:" - -#: ../../../src/uibase.cpp:109 -msgid " All" -msgstr " Все" - -#: ../../../src/uibase.cpp:109 -msgid " Sent" -msgstr " Отправленные" - -#: ../../../src/uibase.cpp:109 -msgid " Received" -msgstr " Полученные" - -#: ../../../src/uibase.cpp:109 -msgid " In Progress" -msgstr " В процессе" - -#: ../../../src/uibase.cpp:130 -msgid "All Transactions" -msgstr "Все переводы" - -#: ../../../src/uibase.cpp:141 -msgid "Sent/Received" -msgstr "Отправленные/Полученные" - -#: ../../../src/uibase.cpp:152 -msgid "Sent" -msgstr "Отправленные" - -#: ../../../src/uibase.cpp:163 -msgid "Received" -msgstr "Полученные" - -#: ../../../src/uibase.cpp:302 -#: ../../../src/uibase.cpp:443 -#: ../../../src/uibase.cpp:542 -#: ../../../src/uibase.cpp:722 -#: ../../../src/uibase.cpp:783 -#: ../../../src/uibase.cpp:892 -#: ../../../src/uibase.cpp:981 -msgid "OK" -msgstr "ОК" - -#: ../../../src/uibase.cpp:345 -msgid "&Start Bitcoin on system startup" -msgstr "&Запускать Bitcoin при старте системы" - -#: ../../../src/uibase.cpp:348 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Сворачивать в трей вместо панели задач" - -#: ../../../src/uibase.cpp:351 -msgid "Map port using &UPnP" -msgstr "Использовать &UPnP" - -#: ../../../src/uibase.cpp:354 -msgid "M&inimize to the tray on close" -msgstr "С&ворачивать в трей при закрытии" - -#: ../../../src/uibase.cpp:360 -msgid "&Connect through socks4 proxy: " -msgstr "&Подключаться через socks4 прокси: " - -#: ../../../src/uibase.cpp:371 -msgid "Proxy &IP:" -msgstr "IP п&рокси-сервера:" - -#: ../../../src/uibase.cpp:379 -msgid " &Port:" -msgstr " &Порт" - -#: ../../../src/uibase.cpp:392 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Необязательная комиссия за килобайт обеспечивает приоритет обработки перевода. Большинство транзакций имеют размер в 1КБ. Рекомендуется значение в 0.01." - -#: ../../../src/uibase.cpp:399 -msgid "Pay transaction fee:" -msgstr "Комиссия:" - -#: ../../../src/uibase.cpp:420 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:424 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:446 -#: ../../../src/uibase.cpp:668 -#: ../../../src/uibase.cpp:727 -#: ../../../src/uibase.cpp:786 -#: ../../../src/uibase.cpp:895 -#: ../../../src/uibase.cpp:984 -msgid "Cancel" -msgstr "Отмена" - -#: ../../../src/uibase.cpp:449 -msgid "&Apply" -msgstr "&Применить" - -#: ../../../src/uibase.cpp:508 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../src/uibase.cpp:514 -msgid "version" -msgstr "версия" - -#: ../../../src/uibase.cpp:525 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Все права защищены (c) 2009-2010 Bitcoin Developers\n" -"\n" -"Это экспериментальное ПО.\n" -"\n" -"Распространяется под лицензией MIT/X11, см. файл\n" -"license.txt или http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Этот продукт включает ПО, разработанное проектом OpenSSL для использования в\n" -"OpenSSL Toolkit (http://www.openssl.org/), и криптографическое ПО, написанное\n" -"Eric Young (eay@cryptsoft.com) и UPnP программного обеспечения, написанного Thomas Bernard." - -#: ../../../src/uibase.cpp:581 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Введите адрес Bitcoin (напр. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:595 -msgid "Pay &To:" -msgstr "&Кому:" - -#: ../../../src/uibase.cpp:610 -msgid "&Paste" -msgstr "&Вставить" - -#: ../../../src/uibase.cpp:613 -msgid " Address &Book..." -msgstr " А&дресная книга..." - -#: ../../../src/uibase.cpp:620 -msgid "&Amount:" -msgstr "К&оличество:" - -#: ../../../src/uibase.cpp:630 -msgid "T&ransfer:" -msgstr "&Передача:" - -#: ../../../src/uibase.cpp:636 -msgid " Standard" -msgstr " Стандарт" - -#: ../../../src/uibase.cpp:663 -msgid "&Send" -msgstr "Отп&равить" - -#: ../../../src/uibase.cpp:711 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Подключение..." - -#: ../../../src/uibase.cpp:761 -msgid "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." -msgstr "Это ваши адреса для получения платежей. Вы можете использовать разные для каждого отправителя, чтобы отслеживать, кто вам платит. Выделенный адрес отображается в главном окне." - -#: ../../../src/uibase.cpp:774 -#: ../../../src/uibase.cpp:886 -msgid "&Edit..." -msgstr "&Правка..." - -#: ../../../src/uibase.cpp:777 -#: ../../../src/uibase.cpp:889 -msgid " &New Address... " -msgstr " &Новый адрес... " - -#: ../../../src/uibase.cpp:849 -msgid "Sending" -msgstr "Отправка" - -#: ../../../src/uibase.cpp:857 -msgid "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." -msgstr "Это ваши адреса для получения платежей. Вы можете использовать разные для каждого отправителя, чтобы отслеживать, кто вам платит. Выделенный адрес отображается в главном окне." - -#: ../../../src/uibase.cpp:870 -msgid "Receiving" -msgstr "Получение" - -#: ../../../src/uibase.cpp:880 -msgid "&Delete" -msgstr "&Удалить" - -#: ../../../src/init.cpp:147 -msgid "Bitcoin version" -msgstr "Bitcoin версия" - -#: ../../../src/init.cpp:148 -msgid "Usage:" -msgstr "Использование" - -#: ../../../src/init.cpp:150 -msgid "Send command to -server or bitcoind\n" -msgstr "Отправить команду bitcoin, запущенному с -server\n" - -#: ../../../src/init.cpp:151 -msgid "List commands\n" -msgstr "Список команд\n" - -#: ../../../src/init.cpp:152 -msgid "Get help for a command\n" -msgstr "Получить помощь для команды\n" - -#: ../../../src/init.cpp:153 -msgid "Options:\n" -msgstr "Параметры:\n" - -#: ../../../src/init.cpp:154 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Укажите конфигурационный файл (по умолчанию: bitcoin.conf)\n" - -#: ../../../src/init.cpp:155 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "Укажите конфигурационный файл (по умолчанию: bitcoin.conf)\n" - -#: ../../../src/init.cpp:156 -msgid "Generate coins\n" -msgstr "Генерировать монеты\n" - -#: ../../../src/init.cpp:157 -msgid "Don't generate coins\n" -msgstr "Не генерировать монеты\n" - -#: ../../../src/init.cpp:158 -msgid "Start minimized\n" -msgstr "Запускать свёрнутым\n" - -#: ../../../src/init.cpp:159 -msgid "Specify data directory\n" -msgstr "Указать каталог данных\n" - -#: ../../../src/init.cpp:160 -msgid "Connect through socks4 proxy\n" -msgstr "Подключаться через socks4 прокси\n" - -#: ../../../src/init.cpp:161 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Использовать DNS для добавления узлов и соединения\n" - -#: ../../../src/init.cpp:162 -msgid "Add a node to connect to\n" -msgstr "Добавить узел для подключения\n" - -#: ../../../src/init.cpp:163 -msgid "Connect only to the specified node\n" -msgstr "Подключаться только к указанному узлу\n" - -#: ../../../src/init.cpp:164 -msgid "Don't accept connections from outside\n" -msgstr "Не принимать входящие соединения\n" - -#: ../../../src/init.cpp:167 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Не использовать UPnP для отображения порта входящих соединений\n" - -#: ../../../src/init.cpp:169 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Использовать UPnP для отображения порта входящих соединений\n" - -#: ../../../src/init.cpp:172 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Комиссия за 1 килобайт отправляемых транзакций\n" - -#: ../../../src/init.cpp:174 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Принимать команды из командной строки и через JSON-RPC\n" - -#: ../../../src/init.cpp:177 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Запустить в фоне как демон и принимать команды\n" - -#: ../../../src/init.cpp:179 -msgid "Use the test network\n" -msgstr "Использовать тестовую сеть (testnet)\n" - -#: ../../../src/init.cpp:180 -msgid "Username for JSON-RPC connections\n" -msgstr "Имя пользователя для JSON-RPC\n" - -#: ../../../src/init.cpp:181 -msgid "Password for JSON-RPC connections\n" -msgstr "Пароль для JSON-RPC\n" - -#: ../../../src/init.cpp:182 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Порт входящих соединений JSON-RPC (по умолчанию 8332)\n" - -#: ../../../src/init.cpp:183 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Разрешить соединения JSON-RPC со следующих IP-адресов\n" - -#: ../../../src/init.cpp:184 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Посылать команды узлу с указанным адресом (по умолчанию 127.0.0.1)\n" - -#: ../../../src/init.cpp:185 -msgid "Set key pool size to (default: 100)\n" -msgstr "Установить размер пула адресов (по умолчанию 100)\n" - -#: ../../../src/init.cpp:181 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Просканировать цепочку блоков в поисках утерянных переводов\n" - -#: ../../../src/init.cpp:182 -msgid "Purge all transactions from wallet and rescan\n" -msgstr "Удалить все транзакции из кошелька и пересканировать цепочку блоков в поисках транзакций\n" - -#: ../../../src/init.cpp:190 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"Опции SSL: (прочтите документацию для правильной настройки)\n" - -#: ../../../src/init.cpp:191 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Использовать OpenSSL (протокол https) для соединений JSON-RPC\n" - -#: ../../../src/init.cpp:192 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Файл сертификата сервера (по умолчанию server.cert)\n" - -#: ../../../src/init.cpp:193 -msgid "Server private key (default: server.pem)\n" -msgstr "Приватный ключ сервера (по умолчанию server.pem)\n" - -#: ../../../src/init.cpp:194 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Приемлемые шифры (по умолчанию TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:198 -msgid "This help message\n" -msgstr "Эта справка\n" - -#: ../../../src/init.cpp:335 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "Не удаётся получить блокировку каталога с данными %s. Возможно, Bitcoin уже запущен." - -#: ../../../src/init.cpp:361 -msgid "Error loading addr.dat \n" -msgstr "Ошибка загрузки addr.dat \n" - -#: ../../../src/init.cpp:367 -msgid "Error loading blkindex.dat \n" -msgstr "Ошибка загрузки blkindex.dat \n" - -#: ../../../src/init.cpp:374 -msgid "Error loading wallet.dat \n" -msgstr "Ошибка загрузки wallet.dat \n" - -#: ../../../src/init.cpp:454 -msgid "Invalid -proxy address" -msgstr "Неверный адрес -proxy" - -#: ../../../src/init.cpp:477 -msgid "Invalid amount for -paytxfee=" -msgstr "Неверное значение для -paytxfee=" - -#: ../../../src/init.cpp:481 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Внимание: -paytxfee установлено в очень большое значение. Это комиссия, которую вы будете платить при переводе." - -#: ../../../src/uibase.h:147 -msgid "Transaction Details" -msgstr "Подробности транзакции" - -#: ../../../src/uibase.h:199 -msgid "Options" -msgstr "Опции" - -#: ../../../src/uibase.h:228 -msgid "About Bitcoin" -msgstr "О Bitcoin" - -#: ../../../src/uibase.h:337 -msgid "Your Bitcoin Addresses" -msgstr "Ваш адрес Bitcoin" - -#~ msgid "" -#~ "Error: This is an oversized transaction that requires a transaction fee " -#~ "of %s " -#~ msgstr "" -#~ "Ошибка: этот перевод слишком большого размера, который требует комиссию " -#~ "%s " - -#~ msgid "version %s%s BETA" -#~ msgstr "версия %s%s бета" - -#~ msgid "n/a" -#~ msgstr "н/д" - -#~ msgid "Can't include a message when sending to a Bitcoin address" -#~ msgstr "Не удаётся включить сообщение при отправке на адрес Bitcoin" - -#~ msgid "" -#~ "This is an oversized transaction that requires a transaction fee of %s" -#~ msgstr "Это слишком большой перевод, который требует комиссию в размере %s" - -#~ msgid "" -#~ "Optional transaction fee you give to the nodes that process your " -#~ "transactions." -#~ msgstr "" -#~ "Необязательная комиссия, которую вы даёте узлам, проводящим ваш перевод." - -#~ msgid "&Limit coin generation to" -#~ msgstr "&Ограничить генерацию монет до" - -#~ msgid "processors" -#~ msgstr "процессоров" - -#~ msgid "&From:" -#~ msgstr "О&т:" - -#~ msgid "&Message:" -#~ msgstr "&Сообщение:" - -#~ msgid "" -#~ "It's good policy to use a new address for each payment you receive.\n" -#~ "\n" -#~ "Label" -#~ msgstr "" -#~ "Неплохо будет использовать новый адрес для каждого получаемого платежа.\n" -#~ "\n" -#~ "Метка" - -#~ msgid "Will appear as \"From: Unknown\"" -#~ msgstr "Будет отображаться как \"От: Аноним\"" diff --git a/locale/sv/LC_MESSAGES/bitcoin.mo b/locale/sv/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index b61914c..0000000 Binary files a/locale/sv/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/sv/LC_MESSAGES/bitcoin.po b/locale/sv/LC_MESSAGES/bitcoin.po deleted file mode 100644 index dc635f3..0000000 --- a/locale/sv/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,973 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-07-03 10:40+0100\n" -"PO-Revision-Date: 2011-07-03 15:13+0100\n" -"Last-Translator: Codler \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../init.cpp:162 -msgid "Bitcoin version" -msgstr "Bitcoin version" - -#: ../../../init.cpp:163 -msgid "Usage:" -msgstr "Användning:" - -#: ../../../init.cpp:165 -msgid "Send command to -server or bitcoind\n" -msgstr "Skicka kommando till -server eller bitcoind\n" - -#: ../../../init.cpp:166 -msgid "List commands\n" -msgstr "Lista kommandon\n" - -#: ../../../init.cpp:167 -msgid "Get help for a command\n" -msgstr "Få hjälp om kommandon\n" - -#: ../../../init.cpp:168 -msgid "Options:\n" -msgstr "Val:\n" - -#: ../../../init.cpp:169 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "Ange konfigurationsfil (standard: bitcoin.conf)\n" - -#: ../../../init.cpp:170 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "Ange pid-fil (standard: bitcoind.pid)\n" - -#: ../../../init.cpp:171 -msgid "Generate coins\n" -msgstr "Generera mynt\n" - -#: ../../../init.cpp:172 -msgid "Don't generate coins\n" -msgstr "Generera inte mynt\n" - -#: ../../../init.cpp:173 -msgid "Start minimized\n" -msgstr "Starta minimerad\n" - -#: ../../../init.cpp:174 -msgid "Specify data directory\n" -msgstr "Ange data mappen\n" - -#: ../../../init.cpp:175 -msgid "Specify connection timeout (in milliseconds)\n" -msgstr "Ange timeout för anslutning (i millisekunder)\n" - -#: ../../../init.cpp:176 -msgid "Connect through socks4 proxy\n" -msgstr "Anslut via socks4 proxy\n" - -#: ../../../init.cpp:177 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "Tillåt DNS uppslagningar för addnode och connect\n" - -#: ../../../init.cpp:178 -msgid "Add a node to connect to\n" -msgstr "Lägg till en nod att ansluta till\n" - -#: ../../../init.cpp:179 -msgid "Connect only to the specified node\n" -msgstr "Anslut endast till specifik nod\n" - -#: ../../../init.cpp:180 -msgid "Don't accept connections from outside\n" -msgstr "Acceptera ej anslutningar från utsidan\n" - -#: ../../../init.cpp:183 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "Försöker inte använda UPnP till avslyssningsport\n" - -#: ../../../init.cpp:185 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "Försöker använda UPnP till avlyssningsport\n" - -#: ../../../init.cpp:188 -msgid "Fee per KB to add to transactions you send\n" -msgstr "Avgift per KB som läggs på transaktionen när du sänder\n" - -#: ../../../init.cpp:190 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "Accepterar kommandorad och JSON-RPC kommando\n" - -#: ../../../init.cpp:193 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "Kör i bakgrund som daemon och accepterar kommando\n" - -#: ../../../init.cpp:195 -msgid "Use the test network\n" -msgstr "Använd test nätverk\n" - -#: ../../../init.cpp:196 -msgid "Username for JSON-RPC connections\n" -msgstr "Användarnamn till JSON-RPC anslutning\n" - -#: ../../../init.cpp:197 -msgid "Password for JSON-RPC connections\n" -msgstr "Lösenord till JSON-RPC anslutning\n" - -#: ../../../init.cpp:198 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "Lyssnar på JSON-RPC anslutningar på (standard: 8332)\n" - -#: ../../../init.cpp:199 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "Tillåt JSON-RPC anslutningar från specifik IP-adress\n" - -#: ../../../init.cpp:200 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "Skicka kommando till noden som körs på (standard: 127.0.0.1)\n" - -#: ../../../init.cpp:201 -msgid "Set key pool size to (default: 100)\n" -msgstr "Sätt nyckel pool storlek till (standard: 100)\n" - -#: ../../../init.cpp:202 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "Scanna om block kedja efter saknade plånbokstransaktioner\n" - -#: ../../../init.cpp:206 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"SSL val: (Se på Bitcoin Wiki för SSL installation instruktioner)\n" - -#: ../../../init.cpp:207 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "Använd OpenSSL (https) till JSON-RPC anslutningar\n" - -#: ../../../init.cpp:208 -msgid "Server certificate file (default: server.cert)\n" -msgstr "Server certifikatfil (standard: server.cert)\n" - -#: ../../../init.cpp:209 -msgid "Server private key (default: server.pem)\n" -msgstr "Server privat nyckel (standard: server.pem)\n" - -#: ../../../init.cpp:210 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "Acceptabla krypteringar (standard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../init.cpp:214 -msgid "This help message\n" -msgstr "Detta hjälpmeddelande\n" - -#: ../../../init.cpp:351 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "Kan inte sätta lås på data mappen %s. Bitcoin körs troligen redan." - -#: ../../../init.cpp:377 -msgid "Error loading addr.dat \n" -msgstr "Fel vid laddning av addr.dat \n" - -#: ../../../init.cpp:383 -msgid "Error loading blkindex.dat \n" -msgstr "Fel vid laddning av blkindex.dat \n" - -#: ../../../init.cpp:391 -msgid "Error loading wallet.dat \n" -msgstr "Fel vid laddning av wallet.dat \n" - -#: ../../../init.cpp:481 -msgid "Invalid -proxy address" -msgstr "Ogiltig -proxy adress" - -#: ../../../init.cpp:506 -msgid "Invalid amount for -paytxfee=" -msgstr "Ogiltig belopp på -paytxfee=" - -#: ../../../init.cpp:510 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "Varning: -paytxfee är satt väldigt högt. Denna är transaktionsavgiften som du kommer att betala om du skickar en transaktion." - -#: ../../../main.cpp:1430 -msgid "Warning: Disk space is low " -msgstr "Varning: Diskutrymme är låg " - -#: ../../../net.cpp:1598 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "Det gick inte att binda till port %d på denna dator. Bitcoin körs troligen redan." - -#: ../../../rpc.cpp:1828 -#: ../../../rpc.cpp:1830 -#, c-format -msgid "To use the %s option" -msgstr "För att använda %s val" - -#: ../../../rpc.cpp:1832 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"Varning: %s, du måste sätta rpcpassword=\n" -"i konfigurationsfilen: %s\n" -"Om filen inte existerar, skapa med ägare med filbehörigheten -readable-only.\n" - -#: ../../../rpc.cpp:2005 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"Du måste sätta rpcpassword= i konfigurationsfilen:\n" -"%s\n" -"Om filen inte existerar, skapa med ägare med filbehörighete -readable-only." - -#: ../../../ui.cpp:216 -#, c-format -msgid "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?" -msgstr "Denna transaktion är över storleksbegränsningen. Du kan fortfarande skicka mot en avgift på %s, som går till noderna som bearbetar din transaktion och hjälper att stödja nätverket. Vill du fortfarande betala avgiften?" - -#: ../../../ui.cpp:316 -msgid "Status" -msgstr "Status" - -#: ../../../ui.cpp:317 -msgid "Date" -msgstr "Datum" - -#: ../../../ui.cpp:318 -msgid "Description" -msgstr "Beskrivning" - -#: ../../../ui.cpp:319 -msgid "Debit" -msgstr "Debet" - -#: ../../../ui.cpp:320 -msgid "Credit" -msgstr "Kredit" - -#: ../../../ui.cpp:526 -#, c-format -msgid "Open for %d blocks" -msgstr "Öppen för %d block" - -#: ../../../ui.cpp:528 -#, c-format -msgid "Open until %s" -msgstr "Öppen tills %s" - -#: ../../../ui.cpp:534 -#, c-format -msgid "%d/offline?" -msgstr "%d/offline?" - -#: ../../../ui.cpp:536 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/obekräftade" - -#: ../../../ui.cpp:538 -#, c-format -msgid "%d confirmations" -msgstr "%d bekräftelser" - -#: ../../../ui.cpp:623 -msgid "Generated" -msgstr "Genererad" - -#: ../../../ui.cpp:631 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "Genererad (%s mognar om %d block)" - -#: ../../../ui.cpp:635 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "Genererad - Varning: Denna block har inte blivit mottagen av någon annan nod och kommer troligtvis inte bli accepterad" - -#: ../../../ui.cpp:639 -msgid "Generated (not accepted)" -msgstr "Genererad (ej accepterad)" - -#: ../../../ui.cpp:649 -msgid "From: " -msgstr "Från: " - -#: ../../../ui.cpp:673 -msgid "Received with: " -msgstr "Mottagen med: " - -#: ../../../ui.cpp:719 -msgid "Payment to yourself" -msgstr "Betalning till dig själv" - -#: ../../../ui.cpp:753 -msgid "To: " -msgstr "Till: " - -#: ../../../ui.cpp:1068 -msgid " Generating" -msgstr " Generering" - -#: ../../../ui.cpp:1070 -msgid "(not connected)" -msgstr "(inte ansluten)" - -#: ../../../ui.cpp:1073 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d anslutningar %d block %d transaktioner" - -#: ../../../ui.cpp:1178 -#: ../../../ui.cpp:2577 -msgid "New Receiving Address" -msgstr "Ny Mottagningsadress" - -#: ../../../ui.cpp:1179 -#: ../../../ui.cpp:2578 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"Du borde använda en ny adress för varje betalning som du mottagit.\n" -"\n" -"Etikett" - -#: ../../../ui.cpp:1252 -msgid "Status: " -msgstr "Status: " - -#: ../../../ui.cpp:1257 -msgid ", has not been successfully broadcast yet" -msgstr ", har inte lyckats broadcast än" - -#: ../../../ui.cpp:1259 -#, c-format -msgid ", broadcast through %d node" -msgstr ", broadcast genom %d nod" - -#: ../../../ui.cpp:1261 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ", broadcast genom %d noder" - -#: ../../../ui.cpp:1265 -msgid "Date: " -msgstr "Datum: " - -#: ../../../ui.cpp:1273 -msgid "Source: Generated
" -msgstr "Källa: Genererad
" - -#: ../../../ui.cpp:1279 -#: ../../../ui.cpp:1297 -msgid "From: " -msgstr "Från: " - -#: ../../../ui.cpp:1297 -msgid "unknown" -msgstr "okänd" - -#: ../../../ui.cpp:1298 -#: ../../../ui.cpp:1322 -#: ../../../ui.cpp:1381 -msgid "To: " -msgstr "Till: " - -#: ../../../ui.cpp:1301 -msgid " (yours, label: " -msgstr " (din, etikett: " - -#: ../../../ui.cpp:1303 -msgid " (yours)" -msgstr " (ditt)" - -#: ../../../ui.cpp:1340 -#: ../../../ui.cpp:1352 -#: ../../../ui.cpp:1398 -#: ../../../ui.cpp:1415 -msgid "Credit: " -msgstr "Kredit: " - -#: ../../../ui.cpp:1342 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s mognar om %d block)" - -#: ../../../ui.cpp:1344 -msgid "(not accepted)" -msgstr "(ej accepterad)" - -#: ../../../ui.cpp:1389 -#: ../../../ui.cpp:1397 -#: ../../../ui.cpp:1412 -msgid "Debit: " -msgstr "Debet: " - -#: ../../../ui.cpp:1403 -msgid "Transaction fee: " -msgstr "Transaktionsavgift: " - -#: ../../../ui.cpp:1419 -msgid "Net amount: " -msgstr "Nät belopp: " - -#: ../../../ui.cpp:1426 -msgid "Message:" -msgstr "Meddelande:" - -#: ../../../ui.cpp:1428 -msgid "Comment:" -msgstr "Kommentar:" - -#: ../../../ui.cpp:1431 -msgid "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." -msgstr "Genererad mynt måste vänta 120 block innan dem kan användas.När du genererat denna block, skickades en broadcast till nätet och lades till block kedjan. Om den misslyckas att lägga till kedjan så kommer det ändras till \"not accepted\" och är icke brukbar. Detta kan hända om en annan nod genererat en block några sekunder efter din." - -#: ../../../ui.cpp:1611 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "Kan inte skriva autostart/bitcoin.desktop fil" - -#: ../../../ui.cpp:1647 -msgid "Main" -msgstr "Allmänt" - -#: ../../../ui.cpp:1657 -msgid "&Start Bitcoin on window system startup" -msgstr "&Starta Bitcoin vid system uppstart" - -#: ../../../ui.cpp:1664 -msgid "&Minimize on close" -msgstr "&Minimera vid stängning" - -#: ../../../ui.cpp:1806 -#, c-format -msgid "version %s" -msgstr "version %s" - -#: ../../../ui.cpp:1929 -msgid "Error in amount " -msgstr "Fel i belopp " - -#: ../../../ui.cpp:1929 -#: ../../../ui.cpp:1934 -#: ../../../ui.cpp:1939 -#: ../../../ui.cpp:1974 -#: ../../../uibase.cpp:55 -msgid "Send Coins" -msgstr "Skicka mynt" - -#: ../../../ui.cpp:1934 -msgid "Amount exceeds your balance " -msgstr "Belopp överskrider din balans " - -#: ../../../ui.cpp:1939 -msgid "Total exceeds your balance when the " -msgstr "Totalt överskrider din balans när " - -#: ../../../ui.cpp:1939 -msgid " transaction fee is included " -msgstr " transaktionsavgift är inkluderad " - -#: ../../../ui.cpp:1957 -msgid "Payment sent " -msgstr "Betalning skickad " - -#: ../../../ui.cpp:1957 -#: ../../../ui.cpp:1962 -#: ../../../ui.cpp:2108 -#: ../../../ui.cpp:2261 -#: ../../../wallet.cpp:924 -msgid "Sending..." -msgstr "Skickar..." - -#: ../../../ui.cpp:1974 -msgid "Invalid address " -msgstr "Ogiltig adress " - -#: ../../../ui.cpp:2029 -#, c-format -msgid "Sending %s to %s" -msgstr "Skickar %s till %s" - -#: ../../../ui.cpp:2102 -#: ../../../ui.cpp:2135 -msgid "CANCELLED" -msgstr "AVBRUTEN" - -#: ../../../ui.cpp:2106 -msgid "Cancelled" -msgstr "Avbruten" - -#: ../../../ui.cpp:2108 -msgid "Transfer cancelled " -msgstr "Överföring avbruten " - -#: ../../../ui.cpp:2161 -msgid "Error: " -msgstr "Fel: " - -#: ../../../ui.cpp:2175 -#: ../../../ui.cpp:2246 -#: ../../../wallet.cpp:943 -msgid "Insufficient funds" -msgstr "Otillräckligt med pengar" - -#: ../../../ui.cpp:2180 -msgid "Connecting..." -msgstr "Ansluter..." - -#: ../../../ui.cpp:2185 -msgid "Unable to connect" -msgstr "Det gick inte att ansluta" - -#: ../../../ui.cpp:2190 -msgid "Requesting public key..." -msgstr "Efterfrågar publik nyckel..." - -#: ../../../ui.cpp:2202 -msgid "Received public key..." -msgstr "Mottagen publik nyckel..." - -#: ../../../ui.cpp:2216 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "Mottagaren accepterar inte transaktioner skickat från IP adress" - -#: ../../../ui.cpp:2218 -msgid "Transfer was not accepted" -msgstr "Överföringen var inte accepterad" - -#: ../../../ui.cpp:2227 -msgid "Invalid response received" -msgstr "Ogiltig respons mottagen" - -#: ../../../ui.cpp:2242 -msgid "Creating transaction..." -msgstr "Skapar transation..." - -#: ../../../ui.cpp:2254 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "Denna transaktion kräver en transaktionsavgift minst %s för dess belopp, komplexitet, eller användning av nyligen mottagna pengar" - -#: ../../../ui.cpp:2256 -msgid "Transaction creation failed" -msgstr "Misslyckades skapa transaktion" - -#: ../../../ui.cpp:2263 -msgid "Transaction aborted" -msgstr "Transaktion avbruten" - -#: ../../../ui.cpp:2271 -msgid "Lost connection, transaction cancelled" -msgstr "Förlorad anslutning, transaktionen avbruten" - -#: ../../../ui.cpp:2287 -msgid "Sending payment..." -msgstr "Skickar betalning..." - -#: ../../../ui.cpp:2293 -msgid "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." -msgstr "Transaktionen blev nekad. Detta kan hända om några av dina mynt i din plånbok var redan spenderad. Till exempel om du använde en kopia av wallet.dat och mynten var redan spenderad i kopian, men som inte var markerad som spenderad här." - -#: ../../../ui.cpp:2302 -msgid "Waiting for confirmation..." -msgstr "Väntar på bekräftelse..." - -#: ../../../ui.cpp:2320 -msgid "" -"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." -msgstr "" -"Betalning var skickat, men mottagaren kunde inte verifiera det.\n" -"Transaktionen är registrerad och kommer att kreditera mottagaren,\n" -"men kommentar informationen kommer att vara tom." - -#: ../../../ui.cpp:2329 -msgid "Payment was sent, but an invalid response was received" -msgstr "Betalning var skickad, men en ogiltig respons var mottagen" - -#: ../../../ui.cpp:2335 -msgid "Payment completed" -msgstr "Betalning slutförd" - -#: ../../../ui.cpp:2377 -#: ../../../ui.cpp:2525 -#: ../../../ui.cpp:2565 -msgid "Name" -msgstr "Namn" - -#: ../../../ui.cpp:2378 -#: ../../../ui.cpp:2525 -#: ../../../ui.cpp:2565 -msgid "Address" -msgstr "Adress" - -#: ../../../ui.cpp:2380 -#: ../../../ui.cpp:2537 -msgid "Label" -msgstr "Etikett" - -#: ../../../ui.cpp:2381 -#: ../../../uibase.cpp:837 -msgid "Bitcoin Address" -msgstr "Bitcoin Adress" - -#: ../../../ui.cpp:2507 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "Denna är en av dina egna adresser för mottagning av betalningar och kan inte slås in i adressboken. " - -#: ../../../ui.cpp:2525 -#: ../../../ui.cpp:2531 -msgid "Edit Address" -msgstr "Ändra Adress" - -#: ../../../ui.cpp:2537 -msgid "Edit Address Label" -msgstr "Ändra Address Etikett" - -#: ../../../ui.cpp:2565 -#: ../../../ui.cpp:2571 -msgid "Add Address" -msgstr "Lägg till Adress" - -#: ../../../ui.cpp:2649 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../ui.cpp:2651 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - Genererar" - -#: ../../../ui.cpp:2653 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (ej ansluten)" - -#: ../../../ui.cpp:2732 -msgid "&Open Bitcoin" -msgstr "&Öppna Bitcoin" - -#: ../../../ui.cpp:2733 -msgid "&Send Bitcoins" -msgstr "&Skicka Bitcoins" - -#: ../../../ui.cpp:2734 -msgid "O&ptions..." -msgstr "&Inställningar..." - -#: ../../../ui.cpp:2737 -#: ../../../uibase.cpp:25 -msgid "E&xit" -msgstr "&Avsluta" - -#: ../../../ui.cpp:2963 -msgid "Program has crashed and will terminate. " -msgstr "Programmet har krachat och kommer att avslutas. " - -#: ../../../uibase.cpp:28 -msgid "&File" -msgstr "&Fil" - -#: ../../../uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "&Dina Mottagningsadresser..." - -#: ../../../uibase.cpp:36 -msgid "&Options..." -msgstr "&Inställningar..." - -#: ../../../uibase.cpp:39 -msgid "&Settings" -msgstr "&Inställningar" - -#: ../../../uibase.cpp:43 -msgid "&About..." -msgstr "&Om..." - -#: ../../../uibase.cpp:46 -msgid "&Help" -msgstr "&Hjälp" - -#: ../../../uibase.cpp:56 -msgid "Address Book" -msgstr "Adressbok" - -#: ../../../uibase.cpp:69 -msgid "Your Bitcoin Address:" -msgstr "Din Bitcoin Adress:" - -#: ../../../uibase.cpp:76 -msgid " &New... " -msgstr " &Nytt... " - -#: ../../../uibase.cpp:79 -#: ../../../uibase.cpp:780 -#: ../../../uibase.cpp:883 -msgid " &Copy to Clipboard " -msgstr " &Kopiera till Urklipp " - -#: ../../../uibase.cpp:93 -msgid "Balance:" -msgstr "Balans:" - -#: ../../../uibase.cpp:109 -msgid " All" -msgstr " Alla" - -#: ../../../uibase.cpp:109 -msgid " Sent" -msgstr " Skickat" - -#: ../../../uibase.cpp:109 -msgid " Received" -msgstr " Mottagen" - -#: ../../../uibase.cpp:109 -msgid " In Progress" -msgstr " Pågående" - -#: ../../../uibase.cpp:130 -msgid "All Transactions" -msgstr "Alla Transaktioner" - -#: ../../../uibase.cpp:141 -msgid "Sent/Received" -msgstr "Skickat/Mottagen" - -#: ../../../uibase.cpp:152 -msgid "Sent" -msgstr "Skickat" - -#: ../../../uibase.cpp:163 -msgid "Received" -msgstr "Mottagen" - -#: ../../../uibase.cpp:302 -#: ../../../uibase.cpp:443 -#: ../../../uibase.cpp:542 -#: ../../../uibase.cpp:722 -#: ../../../uibase.cpp:783 -#: ../../../uibase.cpp:892 -#: ../../../uibase.cpp:981 -msgid "OK" -msgstr "OK" - -#: ../../../uibase.cpp:345 -msgid "&Start Bitcoin on system startup" -msgstr "&Starta Bitcoin vid system uppstart" - -#: ../../../uibase.cpp:348 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "&Minimerar till systemfältet istället för aktivitetsfält" - -#: ../../../uibase.cpp:351 -msgid "Map port using &UPnP" -msgstr "Mapp port använder &UPnP" - -#: ../../../uibase.cpp:354 -msgid "M&inimize to the tray on close" -msgstr "M&inimera till systemfältet vid stängning" - -#: ../../../uibase.cpp:360 -msgid "&Connect through socks4 proxy: " -msgstr "&Anslut via socks4 proxy: " - -#: ../../../uibase.cpp:371 -msgid "Proxy &IP:" -msgstr "Proxy &IP:" - -#: ../../../uibase.cpp:379 -msgid " &Port:" -msgstr " &Port:" - -#: ../../../uibase.cpp:392 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "Frivillig transaktionsavgift per KB som garanterar att din transaktion bearbetas snabbt. Flesta transaktioner är 1KB. Avgift 0.01 rekommenderas." - -#: ../../../uibase.cpp:399 -msgid "Pay transaction fee:" -msgstr "Betala transaktionsavgift:" - -#: ../../../uibase.cpp:420 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../uibase.cpp:424 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../uibase.cpp:446 -#: ../../../uibase.cpp:668 -#: ../../../uibase.cpp:727 -#: ../../../uibase.cpp:786 -#: ../../../uibase.cpp:895 -#: ../../../uibase.cpp:984 -msgid "Cancel" -msgstr "Avbryt" - -#: ../../../uibase.cpp:449 -msgid "&Apply" -msgstr "&Använd" - -#: ../../../uibase.cpp:508 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../uibase.cpp:514 -msgid "version" -msgstr "version" - -#: ../../../uibase.cpp:525 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"Detta är en experimentell mjukvara.\n" -"\n" -"Distribuerad under MIT/X11 mjukvarulicens, se medföljande fil \n" -"license.txt eller http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"Denna produkt inkluderar mjukvara utvecklad av OpenSSL Project för användning i \n" -"OpenSSL Toolkit (http://www.openssl.org/) och kryptografisk mjukvara skriven av \n" -"Eric Young (eay@cryptsoft.com) och UPnP mjukvara skriven av Thomas Bernard.\n" -"\n" -"Översatt av Han Lin Yap." - -#: ../../../uibase.cpp:581 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "Ange en Bitcoin adress (t.ex. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../uibase.cpp:595 -msgid "Pay &To:" -msgstr "Betala &Till:" - -#: ../../../uibase.cpp:610 -msgid "&Paste" -msgstr "&Klistra in" - -#: ../../../uibase.cpp:613 -msgid " Address &Book..." -msgstr " Adress&bok..." - -#: ../../../uibase.cpp:620 -msgid "&Amount:" -msgstr "&Belopp:" - -#: ../../../uibase.cpp:630 -msgid "T&ransfer:" -msgstr "&Överföring:" - -#: ../../../uibase.cpp:636 -msgid " Standard" -msgstr " Standard" - -#: ../../../uibase.cpp:663 -msgid "&Send" -msgstr "&Skicka" - -#: ../../../uibase.cpp:711 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"Ansluter..." - -#: ../../../uibase.cpp:761 -msgid "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." -msgstr "Dessa är dina Bitcoin adresser för mottagning av betalningar. Du rekommenderas att ge olika till varje avsändare så du kan ha koll på vem som betalar dig. Den markerade adressen visas i huvudfönstret." - -#: ../../../uibase.cpp:774 -#: ../../../uibase.cpp:886 -msgid "&Edit..." -msgstr "&Redigera..." - -#: ../../../uibase.cpp:777 -#: ../../../uibase.cpp:889 -msgid " &New Address... " -msgstr " &Ny Adress... " - -#: ../../../uibase.cpp:849 -msgid "Sending" -msgstr "Skickar" - -#: ../../../uibase.cpp:857 -msgid "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." -msgstr "Dessa är dina Bitcoin adresser för mottagning av betalningar. Du kan ge olika till varje avsändare så du kan ha koll på vem som betalar dig. Den markerade adressen visas i huvudfönstret." - -#: ../../../uibase.cpp:870 -msgid "Receiving" -msgstr "Mottagning" - -#: ../../../uibase.cpp:880 -msgid "&Delete" -msgstr "&Ta bort" - -#: ../../../util.cpp:874 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "Varning: Var god och kolla att din dator har rätt datum och klockslag. Om din klocka är fel så kommer Bitcoin inte att fungera ordentligt." - -#: ../../../util.cpp:908 -msgid "beta" -msgstr "beta" - -#: ../../../wallet.cpp:917 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "Fel: Denna transaktion kräver en transaktionsavgift minst %s för dess belopp, komplexitet, eller användning av nyligen mottagna pengar " - -#: ../../../wallet.cpp:919 -msgid "Error: Transaction creation failed " -msgstr "Fel: Misslyckades att skapa transaktion " - -#: ../../../wallet.cpp:928 -msgid "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." -msgstr "Fel: Transaktionen blev nekad. Detta kan hända om några av dina mynt i din plånbok var redan spenderad. Till exempel om du använde en kopia av wallet.dat och mynten var redan spenderad i kopian, men som inte var markerad som spenderad här." - -#: ../../../wallet.cpp:941 -msgid "Invalid amount" -msgstr "Ogiltig belopp" - -#: ../../../wallet.cpp:948 -msgid "Invalid bitcoin address" -msgstr "Ogiltig bitcoin adress" - -#: ../../../uibase.h:147 -msgid "Transaction Details" -msgstr "Transaktion detaljer" - -#: ../../../uibase.h:199 -msgid "Options" -msgstr "Inställningar" - -#: ../../../uibase.h:228 -msgid "About Bitcoin" -msgstr "Om Bitcoin" - -#: ../../../uibase.h:337 -msgid "Your Bitcoin Addresses" -msgstr "Dina Bitcoin Adresser" - diff --git a/locale/zh_cn/LC_MESSAGES/bitcoin.mo b/locale/zh_cn/LC_MESSAGES/bitcoin.mo deleted file mode 100644 index 87538f0..0000000 Binary files a/locale/zh_cn/LC_MESSAGES/bitcoin.mo and /dev/null differ diff --git a/locale/zh_cn/LC_MESSAGES/bitcoin.po b/locale/zh_cn/LC_MESSAGES/bitcoin.po deleted file mode 100644 index f53367e..0000000 --- a/locale/zh_cn/LC_MESSAGES/bitcoin.po +++ /dev/null @@ -1,1076 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-09-06 21:58+0100\n" -"PO-Revision-Date: 2011-09-17 19:08+0800\n" -"Last-Translator: Dean Lee \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" -"X-Poedit-Basepath: .\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Language: zh_CN\n" -"X-Source-Language: C\n" -"X-Poedit-Bookmarks: 77,-1,-1,-1,-1,-1,-1,-1,-1,-1\n" -"X-Poedit-SearchPath-0: ../../..\n" - -#: ../../../src/init.cpp:163 -msgid "Bitcoin version" -msgstr "Bitcoin 版本" - -#: ../../../src/init.cpp:164 -msgid "Usage:" -msgstr "用法:" - -#: ../../../src/init.cpp:166 -msgid "Send command to -server or bitcoind\n" -msgstr "发送命令给 -server 或 bitcoin\n" - -#: ../../../src/init.cpp:167 -msgid "List commands\n" -msgstr "列出命令\n" - -#: ../../../src/init.cpp:168 -msgid "Get help for a command\n" -msgstr "获取命令的帮助\n" - -#: ../../../src/init.cpp:169 -msgid "Options:\n" -msgstr "选项:\n" - -#: ../../../src/init.cpp:170 -msgid "Specify configuration file (default: bitcoin.conf)\n" -msgstr "指定配置文件 (默认: bitcoin.conf)\n" - -#: ../../../src/init.cpp:171 -msgid "Specify pid file (default: bitcoind.pid)\n" -msgstr "指定 pid 文件 (默认: bitcoin.pid)\n" - -#: ../../../src/init.cpp:172 -msgid "Generate coins\n" -msgstr "生成货币\n" - -#: ../../../src/init.cpp:173 -msgid "Don't generate coins\n" -msgstr "不要生成货币\n" - -#: ../../../src/init.cpp:174 -msgid "Start minimized\n" -msgstr "启动时最小化\n" - -#: ../../../src/init.cpp:175 -msgid "Specify data directory\n" -msgstr "指定数据目录\n" - -#: ../../../src/init.cpp:176 -msgid "Specify connection timeout (in milliseconds)\n" -msgstr "指定连接超时时间 (毫秒)\n" - -#: ../../../src/init.cpp:177 -msgid "Connect through socks4 proxy\n" -msgstr "通过 socks4 代理连接\n" - -#: ../../../src/init.cpp:178 -msgid "Allow DNS lookups for addnode and connect\n" -msgstr "允许 DNS 查找新增结点和连接\n" - -#: ../../../src/init.cpp:179 -msgid "Add a node to connect to\n" -msgstr "添加一个连接结点\n" - -#: ../../../src/init.cpp:180 -msgid "Connect only to the specified node\n" -msgstr "只连接特定结点\n" - -#: ../../../src/init.cpp:181 -msgid "Don't accept connections from outside\n" -msgstr "不要接受外部传来的连接\n" - -#: ../../../src/init.cpp:184 -msgid "Don't attempt to use UPnP to map the listening port\n" -msgstr "不要尝试使用 UPnP 映射监听端口\n" - -#: ../../../src/init.cpp:186 -msgid "Attempt to use UPnP to map the listening port\n" -msgstr "尝试使用 UPnP 映射监听端口\n" - -#: ../../../src/init.cpp:189 -msgid "Fee per KB to add to transactions you send\n" -msgstr "您为每 KB 支付所增加的交易佣金\n" - -#: ../../../src/init.cpp:191 -msgid "Accept command line and JSON-RPC commands\n" -msgstr "允许命令行和 JSON-RPC 控制\n" - -#: ../../../src/init.cpp:194 -msgid "Run in the background as a daemon and accept commands\n" -msgstr "在后台运行并接收命令\n" - -#: ../../../src/init.cpp:196 -msgid "Use the test network\n" -msgstr "使用测试网络\n" - -#: ../../../src/init.cpp:197 -msgid "Username for JSON-RPC connections\n" -msgstr "JSON-RPC 连接的用户名\n" - -#: ../../../src/init.cpp:198 -msgid "Password for JSON-RPC connections\n" -msgstr "JSON-RPC 连接的密码\n" - -#: ../../../src/init.cpp:199 -msgid "Listen for JSON-RPC connections on (default: 8332)\n" -msgstr "在端口 监听 JSON-RPC 连接 (默认: 8332)\n" - -#: ../../../src/init.cpp:200 -msgid "Allow JSON-RPC connections from specified IP address\n" -msgstr "允许来自特定 IP 地址的 JSON-RPC 连接\n" - -#: ../../../src/init.cpp:201 -msgid "Send commands to node running on (default: 127.0.0.1)\n" -msgstr "发送命令给运行的结点,IP 地址 (默认: 127.0.0.1)\n" - -#: ../../../src/init.cpp:202 -msgid "Set key pool size to (default: 100)\n" -msgstr "设置密钥池大小为 (默认: 100)\n" - -#: ../../../src/init.cpp:203 -msgid "Rescan the block chain for missing wallet transactions\n" -msgstr "重新扫描货币包链来检测丢失的钱包交易\n" - -#: ../../../src/init.cpp:207 -msgid "" -"\n" -"SSL options: (see the Bitcoin Wiki for SSL setup instructions)\n" -msgstr "" -"\n" -"SSL 选项: (SSL 设置步骤请参见 Bitcoin Wiki)\n" - -#: ../../../src/init.cpp:208 -msgid "Use OpenSSL (https) for JSON-RPC connections\n" -msgstr "使用 OpenSSL (https) 进行 JSON-RPC 连接\n" - -#: ../../../src/init.cpp:209 -msgid "Server certificate file (default: server.cert)\n" -msgstr "服务器证书 (默认: server.cert)\n" - -#: ../../../src/init.cpp:210 -msgid "Server private key (default: server.pem)\n" -msgstr "服务器私有密钥 (默认: server.pem)\n" - -#: ../../../src/init.cpp:211 -msgid "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" -msgstr "许可密码 (默认: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n" - -#: ../../../src/init.cpp:215 -msgid "This help message\n" -msgstr "本帮助信息\n" - -#: ../../../src/init.cpp:353 -#, c-format -msgid "Cannot obtain a lock on data directory %s. Bitcoin is probably already running." -msgstr "无法获取数据目录 %s 的锁。 Bitcoin 可能已经启动。" - -#: ../../../src/init.cpp:379 -msgid "Error loading addr.dat \n" -msgstr "加载 addr.dat 出错 \n" - -#: ../../../src/init.cpp:385 -msgid "Error loading blkindex.dat \n" -msgstr "加载 blkindex.dat 出错 \n" - -#: ../../../src/init.cpp:396 -msgid "Error loading wallet.dat: Wallet corrupted \n" -msgstr "加载 wallet.dat 出错: 钱包已损坏 \n" - -#: ../../../src/init.cpp:398 -msgid "Error loading wallet.dat: Wallet requires newer version of Bitcoin \n" -msgstr "加载 wallet.dat 出错: 钱包要求更高版本的 Bitcoin \n" - -#: ../../../src/init.cpp:400 -msgid "Error loading wallet.dat \n" -msgstr "加载 wallet.dat 出错 \n" - -#: ../../../src/init.cpp:489 -msgid "Invalid -proxy address" -msgstr "无效 -proxy 地址" - -#: ../../../src/init.cpp:514 -msgid "Invalid amount for -paytxfee=" -msgstr "无效的金额 -paytxfee=" - -#: ../../../src/init.cpp:518 -msgid "Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction." -msgstr "警告: -paytxfee 设置得过高。 这个参数是您发送一笔交易要支付的佣金。" - -#: ../../../src/main.cpp:1398 -msgid "Warning: Disk space is low " -msgstr "警告: 磁盘空间不足" - -#: ../../../src/net.cpp:1610 -#, c-format -msgid "Unable to bind to port %d on this computer. Bitcoin is probably already running." -msgstr "无法在这台电脑上绑定 %d 端口。 Bitcoin 可能已经在运行。" - -#: ../../../src/rpc.cpp:2005 -#: ../../../src/rpc.cpp:2007 -#, c-format -msgid "To use the %s option" -msgstr "使用 %s 选项" - -#: ../../../src/rpc.cpp:2009 -#, c-format -msgid "" -"Warning: %s, you must set rpcpassword=\n" -"in the configuration file: %s\n" -"If the file does not exist, create it with owner-readable-only file permissions.\n" -msgstr "" -"警告: %s,您必须在配置文件中设置 rpcpassword=\n" -"配置文件为: %s\n" -"如果文件不存在,请创建文件并只给创建者提供只读访问权限。\n" - -#: ../../../src/rpc.cpp:2185 -#, c-format -msgid "" -"You must set rpcpassword= in the configuration file:\n" -"%s\n" -"If the file does not exist, create it with owner-readable-only file permissions." -msgstr "" -"您必须在配置文件中设置 rpcpassword= :\n" -"%s\n" -"如果文件不存在,请创建文件并只给创建者提供只读访问权限。" - -#: ../../../src/ui.cpp:217 -#, c-format -msgid "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?" -msgstr "这笔交易超过了大小限制。 您依然可以通过支付 %s 的佣金来进行,佣金用来支付为您的交易计算的结点来帮助支撑网络。 您是否要支付佣金?" - -#: ../../../src/ui.cpp:261 -#: ../../../src/ui.cpp:1247 -msgid "Enter the current passphrase to the wallet." -msgstr "输入钱包当前的口令。" - -#: ../../../src/ui.cpp:262 -#: ../../../src/ui.cpp:1183 -#: ../../../src/ui.cpp:1200 -#: ../../../src/ui.cpp:1248 -#: ../../../src/ui.cpp:1272 -#: ../../../src/ui.cpp:1292 -msgid "Passphrase" -msgstr "口令" - -#: ../../../src/ui.cpp:268 -msgid "Please supply the current wallet decryption passphrase." -msgstr "请输入钱包当前的解密口令。" - -#: ../../../src/ui.cpp:276 -#: ../../../src/ui.cpp:1257 -#: ../../../src/ui.cpp:1314 -msgid "The passphrase entered for the wallet decryption was incorrect." -msgstr "钱包解密口令不正确。" - -#: ../../../src/ui.cpp:353 -msgid "Status" -msgstr "状态" - -#: ../../../src/ui.cpp:354 -msgid "Date" -msgstr "日期" - -#: ../../../src/ui.cpp:355 -msgid "Description" -msgstr "描述" - -#: ../../../src/ui.cpp:356 -msgid "Debit" -msgstr "付款人" - -#: ../../../src/ui.cpp:357 -msgid "Credit" -msgstr "信用" - -#: ../../../src/ui.cpp:568 -#, c-format -msgid "Open for %d blocks" -msgstr "%d 个货币包开放" - -#: ../../../src/ui.cpp:570 -#, c-format -msgid "Open until %s" -msgstr "开放直到 %s" - -#: ../../../src/ui.cpp:576 -#, c-format -msgid "%d/offline?" -msgstr "%d/离线?" - -#: ../../../src/ui.cpp:578 -#, c-format -msgid "%d/unconfirmed" -msgstr "%d/未确认" - -#: ../../../src/ui.cpp:580 -#, c-format -msgid "%d confirmations" -msgstr "%d 确认" - -#: ../../../src/ui.cpp:665 -msgid "Generated" -msgstr "已生成" - -#: ../../../src/ui.cpp:673 -#, c-format -msgid "Generated (%s matures in %d more blocks)" -msgstr "已生成 (%s 成熟 %d 新增货币包)" - -#: ../../../src/ui.cpp:677 -msgid "Generated - Warning: This block was not received by any other nodes and will probably not be accepted!" -msgstr "已生成 - 警告: 这个货币包没有被任何其他结点收到,因此很可能不会被接受!" - -#: ../../../src/ui.cpp:681 -msgid "Generated (not accepted)" -msgstr "已生成 (未被接受)" - -#: ../../../src/ui.cpp:691 -msgid "From: " -msgstr "来自: " - -#: ../../../src/ui.cpp:715 -msgid "Received with: " -msgstr "伴随接收: " - -#: ../../../src/ui.cpp:760 -msgid "Payment to yourself" -msgstr "支付给您自己" - -#: ../../../src/ui.cpp:794 -msgid "To: " -msgstr "到: " - -#: ../../../src/ui.cpp:1109 -msgid " Generating" -msgstr " 生成中" - -#: ../../../src/ui.cpp:1111 -msgid "(not connected)" -msgstr "(未连接)" - -#: ../../../src/ui.cpp:1114 -#, c-format -msgid " %d connections %d blocks %d transactions" -msgstr " %d 个连接 %d 个货币包 %d 个交易 " - -#: ../../../src/ui.cpp:1171 -msgid "Wallet already encrypted." -msgstr "钱包已加密。" - -#: ../../../src/ui.cpp:1182 -msgid "" -"Enter the new passphrase to the wallet.\n" -"Please use a passphrase of 10 or more random characters, or eight or more words." -msgstr "" -"输入钱包的新口令。\n" -"请使用 10 个或更多字符,或 8 个或更多单词的口令。" - -#: ../../../src/ui.cpp:1189 -#: ../../../src/ui.cpp:1280 -msgid "Error: The supplied passphrase was too short." -msgstr "错误: 所输口令太短。" - -#: ../../../src/ui.cpp:1193 -msgid "" -"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?" -msgstr "" -"警告: 如果您加密钱包又丢失口令,将失去全部 BITCOINS!\n" -"是否确实想加密钱包?" - -#: ../../../src/ui.cpp:1199 -msgid "Please re-enter your new wallet passphrase." -msgstr "请重新输入新的钱包口令。" - -#: ../../../src/ui.cpp:1208 -#: ../../../src/ui.cpp:1302 -msgid "Error: the supplied passphrases didn't match." -msgstr "错误: 所输口令不匹配。" - -#: ../../../src/ui.cpp:1218 -msgid "Wallet encryption failed." -msgstr "钱包加密失败。" - -#: ../../../src/ui.cpp:1225 -msgid "" -"Wallet Encrypted.\n" -"Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer." -msgstr "" -"钱包已加密。\n" -"请记住,加密钱包无法完全保护您的 bitcoins 不被计算机感染的恶意软件窃取。" - -#: ../../../src/ui.cpp:1236 -msgid "Wallet is unencrypted, please encrypt it first." -msgstr "钱包未加密,请先加密。" - -#: ../../../src/ui.cpp:1271 -msgid "Enter the new passphrase for the wallet." -msgstr "输入钱包的新口令。" - -#: ../../../src/ui.cpp:1291 -msgid "Re-enter the new passphrase for the wallet." -msgstr "重新输入钱包的新口令。" - -#: ../../../src/ui.cpp:1323 -msgid "Wallet Passphrase Changed." -msgstr "钱包口令已更改。" - -#: ../../../src/ui.cpp:1379 -#: ../../../src/ui.cpp:2825 -msgid "New Receiving Address" -msgstr "新建接收地址" - -#: ../../../src/ui.cpp:1380 -#: ../../../src/ui.cpp:2826 -msgid "" -"You should use a new address for each payment you receive.\n" -"\n" -"Label" -msgstr "" -"您应该为您收到的每次付款使用不同的地址。\n" -"\n" -"标签" - -#: ../../../src/ui.cpp:1464 -msgid "Status: " -msgstr "状态: " - -#: ../../../src/ui.cpp:1469 -msgid ", has not been successfully broadcast yet" -msgstr ",尚未被成功广播" - -#: ../../../src/ui.cpp:1471 -#, c-format -msgid ", broadcast through %d node" -msgstr ",通过 %d 个结点广播" - -#: ../../../src/ui.cpp:1473 -#, c-format -msgid ", broadcast through %d nodes" -msgstr ",通过 %d 个结点广播" - -#: ../../../src/ui.cpp:1477 -msgid "Date: " -msgstr "日期:" - -#: ../../../src/ui.cpp:1485 -msgid "Source: Generated
" -msgstr "来源: 生成
" - -#: ../../../src/ui.cpp:1491 -#: ../../../src/ui.cpp:1508 -msgid "From: " -msgstr "从: " - -#: ../../../src/ui.cpp:1508 -msgid "unknown" -msgstr "未知" - -#: ../../../src/ui.cpp:1509 -#: ../../../src/ui.cpp:1533 -#: ../../../src/ui.cpp:1592 -msgid "To: " -msgstr "到: " - -#: ../../../src/ui.cpp:1512 -msgid " (yours, label: " -msgstr " (您的标签: " - -#: ../../../src/ui.cpp:1514 -msgid " (yours)" -msgstr " (您的)" - -#: ../../../src/ui.cpp:1551 -#: ../../../src/ui.cpp:1563 -#: ../../../src/ui.cpp:1609 -#: ../../../src/ui.cpp:1626 -msgid "Credit: " -msgstr "信用: " - -#: ../../../src/ui.cpp:1553 -#, c-format -msgid "(%s matures in %d more blocks)" -msgstr "(%s 收获在 %d 更多的货币包)" - -#: ../../../src/ui.cpp:1555 -msgid "(not accepted)" -msgstr "(未被接受)" - -#: ../../../src/ui.cpp:1600 -#: ../../../src/ui.cpp:1608 -#: ../../../src/ui.cpp:1623 -msgid "Debit: " -msgstr "付款人: " - -#: ../../../src/ui.cpp:1614 -msgid "Transaction fee: " -msgstr "交易佣金: " - -#: ../../../src/ui.cpp:1630 -msgid "Net amount: " -msgstr "网络金额: " - -#: ../../../src/ui.cpp:1637 -msgid "Message:" -msgstr "消息:" - -#: ../../../src/ui.cpp:1639 -msgid "Comment:" -msgstr "评论" - -#: ../../../src/ui.cpp:1642 -msgid "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." -msgstr "生成的货币必须等待 120 个货币包之后才能够使用。 当您生成了一个货币包后,它被广播给网络来加入货币包链中。 如果它无法加入货币包链中,他将会标记为\"不被接受\"且不能被支付。 这种情况可能因为在您生成这个货币包之后的几秒钟内有别人也生成了货币包而发生。" - -#: ../../../src/ui.cpp:1826 -msgid "Cannot write autostart/bitcoin.desktop file" -msgstr "无法写入 autostart/bitcoin.desktop 文件" - -#: ../../../src/ui.cpp:1862 -msgid "Main" -msgstr "主要" - -#: ../../../src/ui.cpp:1872 -msgid "&Start Bitcoin on window system startup" -msgstr "开机自动启动 Bitcoin(&S)" - -#: ../../../src/ui.cpp:1879 -msgid "&Minimize on close" -msgstr "关闭时最小化(&M)" - -#: ../../../src/ui.cpp:2021 -#, c-format -msgid "version %s" -msgstr "版本 %s" - -#: ../../../src/ui.cpp:2144 -msgid "Error in amount " -msgstr "金额有误 " - -#: ../../../src/ui.cpp:2144 -#: ../../../src/ui.cpp:2149 -#: ../../../src/ui.cpp:2154 -#: ../../../src/ui.cpp:2207 -#: ../../../src/uibase.cpp:61 -msgid "Send Coins" -msgstr "发送货币" - -#: ../../../src/ui.cpp:2149 -msgid "Amount exceeds your balance " -msgstr "金额超出您的账户余额" - -#: ../../../src/ui.cpp:2154 -msgid "Total exceeds your balance when the " -msgstr "总费用超出您的账户余额当 " - -#: ../../../src/ui.cpp:2154 -msgid " transaction fee is included " -msgstr " 交易佣金已包括" - -#: ../../../src/ui.cpp:2181 -msgid "Payment sent " -msgstr "付款已发送" - -#: ../../../src/ui.cpp:2181 -#: ../../../src/ui.cpp:2191 -#: ../../../src/ui.cpp:2341 -#: ../../../src/ui.cpp:2506 -#: ../../../src/wallet.cpp:1088 -msgid "Sending..." -msgstr "正在发送..." - -#: ../../../src/ui.cpp:2207 -msgid "Invalid address " -msgstr "无效地址 " - -#: ../../../src/ui.cpp:2262 -#, c-format -msgid "Sending %s to %s" -msgstr "发送 %s 给 %s" - -#: ../../../src/ui.cpp:2335 -#: ../../../src/ui.cpp:2368 -msgid "CANCELLED" -msgstr "已取消" - -#: ../../../src/ui.cpp:2339 -msgid "Cancelled" -msgstr "已取消" - -#: ../../../src/ui.cpp:2341 -msgid "Transfer cancelled " -msgstr "传输已取消 " - -#: ../../../src/ui.cpp:2394 -msgid "Error: " -msgstr "错误: " - -#: ../../../src/ui.cpp:2408 -#: ../../../src/ui.cpp:2477 -#: ../../../src/wallet.cpp:1106 -msgid "Insufficient funds" -msgstr "余额不足" - -#: ../../../src/ui.cpp:2413 -msgid "Connecting..." -msgstr "正在连接..." - -#: ../../../src/ui.cpp:2418 -msgid "Unable to connect" -msgstr "无法连接" - -#: ../../../src/ui.cpp:2423 -msgid "Requesting public key..." -msgstr "正在请求公共密钥..." - -#: ../../../src/ui.cpp:2435 -msgid "Received public key..." -msgstr "收到公共密钥..." - -#: ../../../src/ui.cpp:2449 -msgid "Recipient is not accepting transactions sent by IP address" -msgstr "收款人不接受来自 IP 地址的交易" - -#: ../../../src/ui.cpp:2451 -msgid "Transfer was not accepted" -msgstr "传输没有被接受" - -#: ../../../src/ui.cpp:2460 -msgid "Invalid response received" -msgstr "接收到无效回复" - -#: ../../../src/ui.cpp:2473 -msgid "Creating transaction..." -msgstr "正在创建交易..." - -#: ../../../src/ui.cpp:2496 -#, c-format -msgid "This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds" -msgstr "这笔交易因为它最近收到的付款的数量,交易难度或者使用情况,需要至少 %s 交易佣金" - -#: ../../../src/ui.cpp:2498 -msgid "Transaction creation failed" -msgstr "交易创建失败" - -#: ../../../src/ui.cpp:2508 -msgid "Transaction aborted" -msgstr "交易中止" - -#: ../../../src/ui.cpp:2516 -msgid "Lost connection, transaction cancelled" -msgstr "失去连接,交易已取消" - -#: ../../../src/ui.cpp:2532 -msgid "Sending payment..." -msgstr "正在发送付款..." - -#: ../../../src/ui.cpp:2544 -msgid "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." -msgstr "交易被拒绝。 这可能是因为您账户中的一部分货币已经被使用,比如您使用了一个复制的 wallet.dat 文件,而且货币在另一个副本里支付但没有在这里标记。" - -#: ../../../src/ui.cpp:2553 -msgid "Waiting for confirmation..." -msgstr "正在等待确认..." - -#: ../../../src/ui.cpp:2570 -msgid "" -"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." -msgstr "" -"付款已发送,但是收款人无法进行确认。\n" -"交易已经被记录,并且支付给收款人,\n" -"但是评论信息可能是空的。" - -#: ../../../src/ui.cpp:2579 -msgid "Payment was sent, but an invalid response was received" -msgstr "支付已发送,但是收到无效回复" - -#: ../../../src/ui.cpp:2585 -msgid "Payment completed" -msgstr "付款完成" - -#: ../../../src/ui.cpp:2627 -#: ../../../src/ui.cpp:2773 -#: ../../../src/ui.cpp:2813 -msgid "Name" -msgstr "姓名" - -#: ../../../src/ui.cpp:2628 -#: ../../../src/ui.cpp:2773 -#: ../../../src/ui.cpp:2813 -msgid "Address" -msgstr "地址" - -#: ../../../src/ui.cpp:2630 -#: ../../../src/ui.cpp:2785 -msgid "Label" -msgstr "标签" - -#: ../../../src/ui.cpp:2631 -#: ../../../src/uibase.cpp:847 -msgid "Bitcoin Address" -msgstr "Bitcoin 地址" - -#: ../../../src/ui.cpp:2755 -msgid "This is one of your own addresses for receiving payments and cannot be entered in the address book. " -msgstr "这是您拥有的接收付款的地址之一,它不能够进入这个地址簿。 " - -#: ../../../src/ui.cpp:2773 -#: ../../../src/ui.cpp:2779 -msgid "Edit Address" -msgstr "编辑地址" - -#: ../../../src/ui.cpp:2785 -msgid "Edit Address Label" -msgstr "编辑地址标签" - -#: ../../../src/ui.cpp:2813 -#: ../../../src/ui.cpp:2819 -msgid "Add Address" -msgstr "添加地址" - -#: ../../../src/ui.cpp:2906 -msgid "Bitcoin" -msgstr "Bitcoin" - -#: ../../../src/ui.cpp:2908 -msgid "Bitcoin - Generating" -msgstr "Bitcoin - 生成中" - -#: ../../../src/ui.cpp:2910 -msgid "Bitcoin - (not connected)" -msgstr "Bitcoin - (未连接)" - -#: ../../../src/ui.cpp:2989 -msgid "&Open Bitcoin" -msgstr "打开 Bitcoin(&O)" - -#: ../../../src/ui.cpp:2990 -msgid "&Send Bitcoins" -msgstr "发送 Bitcoins(&S)" - -#: ../../../src/ui.cpp:2991 -msgid "O&ptions..." -msgstr "选项(&P)..." - -#: ../../../src/ui.cpp:2994 -#: ../../../src/uibase.cpp:25 -msgid "E&xit" -msgstr "退出(&X)" - -#: ../../../src/ui.cpp:3220 -msgid "Program has crashed and will terminate. " -msgstr "程序崩溃,即将关闭。 " - -#: ../../../src/uibase.cpp:28 -msgid "&File" -msgstr "文件(&F)" - -#: ../../../src/uibase.cpp:32 -msgid "&Your Receiving Addresses..." -msgstr "您的接收地址(&Y)..." - -#: ../../../src/uibase.cpp:35 -msgid "&Encrypt Wallet..." -msgstr "加密钱包(&E)..." - -#: ../../../src/uibase.cpp:38 -msgid "&Change Wallet Encryption Passphrase..." -msgstr "更改钱包加密口令(&C)..." - -#: ../../../src/uibase.cpp:42 -msgid "&Options..." -msgstr "选项(&O)..." - -#: ../../../src/uibase.cpp:45 -msgid "&Settings" -msgstr "设置(&S)" - -#: ../../../src/uibase.cpp:49 -msgid "&About..." -msgstr "关于(&A)..." - -#: ../../../src/uibase.cpp:52 -msgid "&Help" -msgstr "帮助(&H)" - -#: ../../../src/uibase.cpp:62 -msgid "Address Book" -msgstr "地址簿" - -#: ../../../src/uibase.cpp:75 -msgid "Your Bitcoin Address:" -msgstr "您的 Bitcoin 地址:" - -#: ../../../src/uibase.cpp:82 -msgid " &New... " -msgstr " 新建(&N)... " - -#: ../../../src/uibase.cpp:85 -#: ../../../src/uibase.cpp:790 -#: ../../../src/uibase.cpp:893 -msgid " &Copy to Clipboard " -msgstr " 复制到剪贴板(&C)" - -#: ../../../src/uibase.cpp:99 -msgid "Balance:" -msgstr "账户余额:" - -#: ../../../src/uibase.cpp:115 -msgid " All" -msgstr "全部" - -#: ../../../src/uibase.cpp:115 -msgid " Sent" -msgstr " 已发送" - -#: ../../../src/uibase.cpp:115 -msgid " Received" -msgstr " 已接收" - -#: ../../../src/uibase.cpp:115 -msgid " In Progress" -msgstr "处理中" - -#: ../../../src/uibase.cpp:136 -msgid "All Transactions" -msgstr "所有交易" - -#: ../../../src/uibase.cpp:147 -msgid "Sent/Received" -msgstr "已发送/已接收" - -#: ../../../src/uibase.cpp:158 -msgid "Sent" -msgstr "已发送" - -#: ../../../src/uibase.cpp:169 -msgid "Received" -msgstr "已接收" - -#: ../../../src/uibase.cpp:312 -#: ../../../src/uibase.cpp:453 -#: ../../../src/uibase.cpp:552 -#: ../../../src/uibase.cpp:732 -#: ../../../src/uibase.cpp:793 -#: ../../../src/uibase.cpp:902 -#: ../../../src/uibase.cpp:991 -msgid "OK" -msgstr "确定" - -#: ../../../src/uibase.cpp:355 -msgid "&Start Bitcoin on system startup" -msgstr "开机自动启动(&S)" - -#: ../../../src/uibase.cpp:358 -msgid "&Minimize to the tray instead of the taskbar" -msgstr "最小化到系统托盘(&M)" - -#: ../../../src/uibase.cpp:361 -msgid "Map port using &UPnP" -msgstr "使用 &UPnP 映射端口" - -#: ../../../src/uibase.cpp:364 -msgid "M&inimize to the tray on close" -msgstr "关闭时最小化到托盘(&I)" - -#: ../../../src/uibase.cpp:370 -msgid "&Connect through socks4 proxy (requires restart to apply): " -msgstr "通过 socks4 代理连接 (重启生效) (&C): " - -#: ../../../src/uibase.cpp:381 -msgid "Proxy &IP:" -msgstr "代理服务器(&I):" - -#: ../../../src/uibase.cpp:389 -msgid " &Port:" -msgstr " 端口(&P):" - -#: ../../../src/uibase.cpp:402 -msgid "Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended." -msgstr "可以选择按照KB支付交易佣金来确保您的交易得到迅速处理。 大多数交易需要 1KB。 建议支付 0.01。" - -#: ../../../src/uibase.cpp:409 -msgid "Pay transaction fee:" -msgstr "支付交易佣金:" - -#: ../../../src/uibase.cpp:430 -msgid "// [don't translate] Test panel 2 for future expansion" -msgstr "" - -#: ../../../src/uibase.cpp:434 -msgid "// [don't translate] Let's not start multiple pages until the first page is filled up" -msgstr "" - -#: ../../../src/uibase.cpp:456 -#: ../../../src/uibase.cpp:678 -#: ../../../src/uibase.cpp:737 -#: ../../../src/uibase.cpp:796 -#: ../../../src/uibase.cpp:905 -#: ../../../src/uibase.cpp:994 -msgid "Cancel" -msgstr "取消" - -#: ../../../src/uibase.cpp:459 -msgid "&Apply" -msgstr "应用(&A)" - -#: ../../../src/uibase.cpp:518 -msgid "Bitcoin " -msgstr "Bitcoin " - -#: ../../../src/uibase.cpp:524 -msgid "version" -msgstr "版本" - -#: ../../../src/uibase.cpp:535 -msgid "" -"Copyright (c) 2009-2011 Bitcoin Developers\n" -"\n" -"This is experimental software.\n" -"\n" -"Distributed under the MIT/X11 software license, see the accompanying file \n" -"license.txt or http://www.opensource.org/licenses/mit-license.php.\n" -"\n" -"This product includes software developed by the OpenSSL Project for use in the \n" -"OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by \n" -"Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard." -msgstr "" -"版权所有 (c) 2009-2010 Bitcoin 开发人员\n" -"这是一个实验软件。\n" -"分发遵循 MIT/X11 软件许可协议,请参见附带的 license.txt 文件或访问\n" -"http://www.opensource.org/licenses/mit-license.php。\n" -"本产品使用了 OpenSSL Project 开发的 OpenSSL Toolkit\n" -"(http://www.openssl.org/),以及 Eric Young(eay@cryptsoft.com)\n" -"编写的加密软件和 Thomas Bernard 编写的 UPnP 软件。" - -#: ../../../src/uibase.cpp:591 -msgid "Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" -msgstr "输入 Bitcoin 地址 (比如 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)" - -#: ../../../src/uibase.cpp:605 -msgid "Pay &To:" -msgstr "付款给(&T):" - -#: ../../../src/uibase.cpp:620 -msgid "&Paste" -msgstr "粘贴(&P)" - -#: ../../../src/uibase.cpp:623 -msgid " Address &Book..." -msgstr " 地址簿(&B)..." - -#: ../../../src/uibase.cpp:630 -msgid "&Amount:" -msgstr "数量(&A):" - -#: ../../../src/uibase.cpp:640 -msgid "T&ransfer:" -msgstr "传输(&R):" - -#: ../../../src/uibase.cpp:646 -msgid " Standard" -msgstr "标准" - -#: ../../../src/uibase.cpp:673 -msgid "&Send" -msgstr "发送(&S)" - -#: ../../../src/uibase.cpp:721 -msgid "" -"\n" -"\n" -"Connecting..." -msgstr "" -"\n" -"\n" -"正在连接..." - -#: ../../../src/uibase.cpp:771 -msgid "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." -msgstr "这些是您用来接收付款的 Bitcoin 地址。 您可能需要给每一个付款人一个不同的地址从而可以最终每一笔交易是谁支付的。 下面高亮的地址是您的主窗口正在使用的地址。" - -#: ../../../src/uibase.cpp:784 -#: ../../../src/uibase.cpp:896 -msgid "&Edit..." -msgstr "编辑(&E)..." - -#: ../../../src/uibase.cpp:787 -#: ../../../src/uibase.cpp:899 -msgid " &New Address... " -msgstr " 新建地址(&N)..." - -#: ../../../src/uibase.cpp:859 -msgid "Sending" -msgstr "发送人地址" - -#: ../../../src/uibase.cpp:867 -msgid "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." -msgstr "这些是您用来接收付款的 Bitcoin 地址。 您可以给每一个付款人一个不同的地址从而可以最终每一笔交易是谁支付的。 下面高亮的地址是您的主窗口正在使用的地址。" - -#: ../../../src/uibase.cpp:880 -msgid "Receiving" -msgstr "我的接收地址" - -#: ../../../src/uibase.cpp:890 -msgid "&Delete" -msgstr "删除(&D)" - -#: ../../../src/util.cpp:870 -msgid "Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly." -msgstr "警告: 请检查您的电脑日期和时间是否正确。 如果您的时钟不正确 Bitcoin 将无法正常工作。" - -#: ../../../src/util.cpp:904 -msgid "beta" -msgstr "测试版" - -#: ../../../src/wallet.cpp:1073 -msgid "Error: Wallet locked, unable to create transaction " -msgstr "错误: 钱包已锁定,无法创建交易 " - -#: ../../../src/wallet.cpp:1081 -#, c-format -msgid "Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds " -msgstr "错误: 这个交易因为近期收到支付的数量,难度或者使用而需要支付至少 %s 交易佣金 " - -#: ../../../src/wallet.cpp:1083 -msgid "Error: Transaction creation failed " -msgstr "错误: 交易创建失败" - -#: ../../../src/wallet.cpp:1092 -msgid "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." -msgstr "错误: 交易被拒绝。 这可能是因为您账户里的一些货币应经被使用,比如您使用了一个复制的 wallet.dat 文件,一些货币在另一个副本里支付了但是没有在这里更新。" - -#: ../../../src/wallet.cpp:1104 -msgid "Invalid amount" -msgstr "无效金额" - -#: ../../../src/uibase.h:151 -msgid "Transaction Details" -msgstr "交易详情" - -#: ../../../src/uibase.h:203 -msgid "Options" -msgstr "选项" - -#: ../../../src/uibase.h:232 -msgid "About Bitcoin" -msgstr "关于 Bitcoin" - -#: ../../../src/uibase.h:341 -msgid "Your Bitcoin Addresses" -msgstr "您的 Bitcoin 地址" - -#~ msgid "Invalid bitcoin address" -#~ msgstr "无效 bitcoin 地址" diff --git a/scripts/qt/extract_strings_qt.py b/scripts/qt/extract_strings_qt.py new file mode 100755 index 0000000..b047869 --- /dev/null +++ b/scripts/qt/extract_strings_qt.py @@ -0,0 +1,69 @@ +#!/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 +// Automatically generated by extract_strings.py +#ifdef __GNUC__ +#define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif +""") +f.write('static const char UNUSED *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 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 index 0000000..136aff3 --- /dev/null +++ b/scripts/qt/make_spinner.py @@ -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 120000 index 0000000..f51c32a --- /dev/null +++ b/scripts/qt/make_windows_icon.py @@ -0,0 +1 @@ +make_windows_icon.sh \ No newline at end of file diff --git a/scripts/qt/make_windows_icon.sh b/scripts/qt/make_windows_icon.sh new file mode 100755 index 0000000..bf607b1 --- /dev/null +++ b/scripts/qt/make_windows_icon.sh @@ -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} + diff --git a/src/xpm/bitcoin32.xpm b/share/pixmaps/bitcoin32.xpm similarity index 100% rename from src/xpm/bitcoin32.xpm rename to share/pixmaps/bitcoin32.xpm diff --git a/src/xpm/bitcoin80.xpm b/share/pixmaps/bitcoin80.xpm similarity index 100% rename from src/xpm/bitcoin80.xpm rename to share/pixmaps/bitcoin80.xpm diff --git a/share/setup.nsi b/share/setup.nsi index 643b0ff..e231436 100644 --- a/share/setup.nsi +++ b/share/setup.nsi @@ -5,7 +5,7 @@ SetCompressor /SOLID lzma # General Symbol Definitions !define REGKEY "SOFTWARE\$(^Name)" -!define VERSION 0.4.5 +!define VERSION 0.5.4 !define COMPANY "Bitcoin project" !define URL http://www.bitcoin.org/ @@ -20,7 +20,7 @@ SetCompressor /SOLID lzma !define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY} !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup !define MUI_STARTMENUPAGE_DEFAULTFOLDER Bitcoin -!define MUI_FINISHPAGE_RUN $INSTDIR\bitcoin.exe +!define MUI_FINISHPAGE_RUN $INSTDIR\bitcoin-qt.exe !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp" !define MUI_UNFINISHPAGE_NOAUTOCLOSE @@ -45,13 +45,13 @@ Var StartMenuGroup !insertmacro MUI_LANGUAGE English # Installer attributes -OutFile bitcoin-0.4.5-win32-setup.exe +OutFile bitcoin-0.5.4-win32-setup.exe InstallDir $PROGRAMFILES\Bitcoin CRCCheck on XPStyle on BrandingText " " ShowInstDetails show -VIProductVersion 0.4.5.0 +VIProductVersion 0.5.4.0 VIAddVersionKey ProductName Bitcoin VIAddVersionKey ProductVersion "${VERSION}" VIAddVersionKey CompanyName "${COMPANY}" @@ -66,17 +66,19 @@ ShowUninstDetails show Section -Main SEC0000 SetOutPath $INSTDIR SetOverwrite on - File ../src/bitcoin.exe + File ../release/bitcoin-qt.exe File /oname=license.txt ../COPYING File /oname=readme.txt ../doc/README_windows.txt SetOutPath $INSTDIR\daemon File ../src/bitcoind.exe - SetOutPath $INSTDIR\locale - File /r ../locale/*.* SetOutPath $INSTDIR\src File /r /x *.exe /x *.o ../src\*.* SetOutPath $INSTDIR WriteRegStr HKCU "${REGKEY}\Components" Main 1 + + # Remove old wxwidgets-based-bitcoin executable and locales: + Delete /REBOOTOK $INSTDIR\bitcoin.exe + RMDir /r /REBOOTOK $INSTDIR\locale SectionEnd Section -post SEC0001 @@ -85,7 +87,7 @@ Section -post SEC0001 WriteUninstaller $INSTDIR\uninstall.exe !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateDirectory $SMPROGRAMS\$StartMenuGroup - CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Bitcoin.lnk" $INSTDIR\bitcoin.exe + CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Bitcoin.lnk" $INSTDIR\bitcoin-qt.exe CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall Bitcoin.lnk" $INSTDIR\uninstall.exe !insertmacro MUI_STARTMENU_WRITE_END WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)" @@ -113,11 +115,10 @@ done${UNSECTION_ID}: # Uninstaller sections Section /o -un.Main UNSEC0000 - Delete /REBOOTOK $INSTDIR\bitcoin.exe + Delete /REBOOTOK $INSTDIR\bitcoin-qt.exe Delete /REBOOTOK $INSTDIR\license.txt Delete /REBOOTOK $INSTDIR\readme.txt RMDir /r /REBOOTOK $INSTDIR\daemon - RMDir /r /REBOOTOK $INSTDIR\locale RMDir /r /REBOOTOK $INSTDIR\src DeleteRegValue HKCU "${REGKEY}\Components" Main SectionEnd diff --git a/share/uiproject.fbp b/share/uiproject.fbp deleted file mode 100644 index 7d2c258..0000000 --- a/share/uiproject.fbp +++ /dev/null @@ -1,6388 +0,0 @@ - - - - - - C++ - 1 - UTF-8 - connect - impl_virtual - uibase - 1000 - none - 1 - - - . - - 1 - 0 - 0 - - wxSYS_COLOUR_BTNFACE - - - 1 - - - - 0 - wxID_MAINFRAME - - - CMainFrameBase - - 723,484 - wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER - - Bitcoin - - - wxFILTER_NONE - wxDefaultValidator - - - - wxTAB_TRAVERSAL - 1 - - - - OnClose - - - - OnIconize - OnIdle - - - - - - - - - - - - OnMouseEvents - - OnPaint - - - - - - - - - - 1 - - - 0 - wxID_ANY - MyMenuBar - - - m_menubar - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - &File - m_menuFile - protected - - - 0 - 1 - - wxID_EXIT - wxITEM_NORMAL - E&xit - m_menuFileExit - none - - - OnMenuFileExit - - - - - &Settings - m_menuOptions - public - - - 0 - 1 - - wxID_ANY - wxITEM_NORMAL - &Your Receiving Addresses... - m_menuOptionsChangeYourAddress - none - - - OnMenuOptionsChangeYourAddress - - - - - 0 - 1 - - wxID_ANY - wxITEM_NORMAL - &Encrypt Wallet... - m_menuOptionsEncryptWallet - public - - - OnMenuOptionsEncryptWallet - - - - - 0 - 1 - - wxID_ANY - wxITEM_NORMAL - &Change Wallet Encryption Passphrase... - m_menuOptionsChangeWalletPassphrase - public - - - OnMenuOptionsChangeWalletPassphrase - - - - - 0 - 1 - - wxID_PREFERENCES - wxITEM_NORMAL - &Options... - m_menuOptionsOptions - none - - - OnMenuOptionsOptions - - - - - &Help - m_menuHelp - protected - - - 0 - 1 - - wxID_ABOUT - wxITEM_NORMAL - &About... - m_menuHelpAbout - none - - - OnMenuHelpAbout - - - - - - - 20,20 - - 1 - - ,90,90,-1,70,0 - 0 - wxID_ANY - - - - m_toolBar - 1 - protected - - 1 - -1,-1 - wxTB_FLAT|wxTB_HORZ_TEXT - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xpm/send20.xpm; Load From File - wxID_BUTTONSEND - wxITEM_NORMAL - Send Coins - m_tool1 - - - - OnButtonSend - - - - - - xpm/addressbook20.xpm; Load From File - wxID_BUTTONRECEIVE - wxITEM_NORMAL - Address Book - m_tool2 - - - - OnButtonAddressBook - - - - - - - - - 1 - - 1 - - 0 - wxID_ANY - - - m_statusBar - public - - - wxST_SIZEGRIP - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer2 - wxVERTICAL - none - - 5 - wxEXPAND - 0 - - 2 - protected - 0 - - - - 5 - wxEXPAND|wxRIGHT|wxLEFT - 0 - - - bSizer85 - wxHORIZONTAL - none - - 5 - wxALIGN_CENTER_VERTICAL|wxLEFT - 0 - - - - 1 - - - 0 - wxID_ANY - Your Bitcoin Address: - - - m_staticText32 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT - 0 - - - - 1 - - - 0 - wxID_TEXTCTRLADDRESS - -1,-1 - 0 - -1,-1 - m_textCtrlAddress - public - - 340,-1 - wxTE_READONLY - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - OnKeyDown - - - - - - - - - - - OnMouseEventsAddress - - - - - - OnSetFocusAddress - - - - - - - - - - 5 - wxRIGHT|wxALIGN_CENTER_VERTICAL - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONNEW - &New... - - - m_buttonNew - protected - - -1,-1 - wxBU_EXACTFIT - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonNew - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxRIGHT - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONCOPY - &Copy to Clipboard - - - m_buttonCopy - protected - - - wxBU_EXACTFIT - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonCopy - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - 0 - protected - 0 - - - - - - 5 - wxEXPAND - 0 - - - bSizer3 - wxHORIZONTAL - none - - 5 - wxEXPAND|wxALL - 1 - - - bSizer66 - wxHORIZONTAL - none - - 5 - wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT - 0 - - - - 1 - - - 0 - wxID_ANY - Balance: - - - m_staticText41 - protected - - -1,15 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxALL - 0 - - 255,255,255 - - 1 - - ,90,90,8,70,0 - 0 - wxID_ANY - - - - m_staticTextBalance - protected - - 120,15 - wxALIGN_RIGHT|wxST_NO_AUTORESIZE - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - 0 - protected - 0 - - - - 5 - wxALIGN_BOTTOM|wxTOP|wxRIGHT|wxLEFT - 0 - - - " All" " Sent" " Received" " In Progress" - - 1 - - - 1 - wxID_ANY - - - m_choiceFilter - protected - - 0 - 110,-1 - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 1 - - - - - 1 - - - 0 - wxID_ANY - - - m_notebook - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - OnNotebookPageChanged - - - - - - - - - - - All Transactions - 1 - - - - 1 - - - 0 - wxID_ANY - - - m_panel9 - protected - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - wxTAB_TRAVERSAL - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer11 - wxVERTICAL - none - - 5 - wxEXPAND - 1 - - - - 1 - - - 0 - wxID_ANY - - - m_listCtrlAll - public - - - wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - OnListColBeginDrag - - - - - - - - - OnListItemActivated - - - - - - - - - - - - - OnPaintListCtrl - - - - - - - - - - - - - - Sent/Received - 0 - - - - 1 - - - 0 - wxID_ANY - - - m_panel91 - protected - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - wxTAB_TRAVERSAL - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer111 - wxVERTICAL - none - - 5 - wxEXPAND - 1 - - - - 1 - - - 0 - wxID_ANY - - - m_listCtrlSentReceived - public - - - wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - OnListColBeginDrag - - - - - - - - - OnListItemActivated - - - - - - - - - - - - - OnPaintListCtrl - - - - - - - - - - - - - - Sent - 0 - - - - 1 - - - 0 - wxID_ANY - - - m_panel92 - protected - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - wxTAB_TRAVERSAL - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer112 - wxVERTICAL - none - - 5 - wxEXPAND - 1 - - - - 1 - - - 0 - wxID_ANY - - - m_listCtrlSent - public - - - wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - OnListColBeginDrag - - - - - - - - - OnListItemActivated - - - - - - - - - - - - - OnPaintListCtrl - - - - - - - - - - - - - - Received - 0 - - - - 1 - - - 0 - wxID_ANY - - - m_panel93 - protected - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - wxTAB_TRAVERSAL - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer113 - wxVERTICAL - none - - 5 - wxEXPAND - 1 - - - - 1 - - - 0 - wxID_ANY - - - m_listCtrlReceived - public - - - wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - OnListColBeginDrag - - - - - - - - - OnListItemActivated - - - - - - - - - - - - - OnPaintListCtrl - - - - - - - - - - - - - - - - - - - - 1 - - - - 0 - wxID_ANY - - - CTxDetailsDialogBase - - 620,450 - wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER - - Transaction Details - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer64 - wxVERTICAL - none - - 5 - wxEXPAND - 1 - - - bSizer66 - wxVERTICAL - none - - 5 - wxALL|wxEXPAND - 1 - - - - 1 - - - 0 - wxID_ANY - - - m_htmlWin - protected - - - wxHW_SCROLLBAR_AUTO - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_RIGHT - 0 - - - bSizer65 - wxHORIZONTAL - none - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_OK - OK - - - m_buttonOK - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonOK - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - 0 - wxID_ANY - - - COptionsDialogBase - - 540,360 - wxDEFAULT_DIALOG_STYLE - - Options - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer55 - wxVERTICAL - none - - 9 - wxEXPAND|wxALL - 1 - - - bSizer66 - wxHORIZONTAL - none - - 5 - wxEXPAND|wxRIGHT - 0 - - - - - 1 - - - 0 - wxID_ANY - - - m_listBox - protected - - 110,-1 - wxLB_NEEDED_SB|wxLB_SINGLE - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - OnListBox - - - - - - - - - - - - - - - - - - 5 - wxEXPAND|wxLEFT - 1 - - - - 1 - - - 0 - wxID_ANY - - - m_scrolledWindow - protected - - 5 - 5 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer63 - wxVERTICAL - none - - 5 - wxEXPAND - 0 - - - - 1 - - - 0 - wxID_ANY - - - m_panelMain - protected - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - wxTAB_TRAVERSAL - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer69 - wxVERTICAL - none - - 5 - wxEXPAND - 0 - - 16 - protected - 0 - - - - 5 - wxALL - 0 - - - 0 - - 1 - - - 0 - wxID_ANY - &Start Bitcoin on system startup - - - m_checkBoxStartOnSystemStartup - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL - 0 - - - 0 - - 1 - - - 0 - wxID_ANY - &Minimize to the tray instead of the taskbar - - - m_checkBoxMinimizeToTray - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - OnCheckBoxMinimizeToTray - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL - 0 - - - 0 - - 1 - - - 0 - wxID_ANY - Map port using &UPnP - - - m_checkBoxUseUPnP - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL - 0 - - - 0 - - 1 - - - 0 - wxID_ANY - M&inimize to the tray on close - - - m_checkBoxMinimizeOnClose - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 1 - - - bSizer102 - wxHORIZONTAL - none - - 5 - wxALL|wxALIGN_CENTER_VERTICAL - 0 - - - 0 - - 1 - - - 0 - wxID_ANY - &Connect through socks4 proxy (requires restart to apply): - - - m_checkBoxUseProxy - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - OnCheckBoxUseProxy - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 1 - - - bSizer103 - wxHORIZONTAL - none - - 5 - - 0 - - 0 - protected - 18 - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL - 0 - - - - 1 - - - 0 - wxID_ANY - Proxy &IP: - - - m_staticTextProxyIP - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL - 0 - - - - 1 - - - 0 - wxID_PROXYIP - - 15 - - m_textCtrlProxyIP - protected - - 140,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - OnKillFocusProxy - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL - 0 - - - - 1 - - - 0 - wxID_ANY - &Port: - - - m_staticTextProxyPort - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL - 0 - - - - 1 - - - 0 - wxID_PROXYPORT - - 5 - - m_textCtrlProxyPort - protected - - 55,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - OnKillFocusProxy - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - 0 - - 1 - protected - 0 - - - - 5 - wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT - 0 - - - - 1 - - - 0 - wxID_ANY - Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended. - - - m_staticText32 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - 365 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - - bSizer56 - wxHORIZONTAL - none - - 5 - wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT - 0 - - - - 1 - - - 0 - wxID_ANY - Pay transaction fee: - - - m_staticText31 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxALL - 0 - - - - 1 - - - 0 - wxID_TRANSACTIONFEE - - 0 - - m_textCtrlTransactionFee - protected - - 70,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - OnKillFocusTransactionFee - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - - - 1 - - - 0 - wxID_ANY - - - m_panelTest2 - protected - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - wxTAB_TRAVERSAL - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer64 - wxVERTICAL - none - - 5 - wxEXPAND - 0 - - 16 - protected - 0 - - - - 5 - wxALIGN_CENTER_VERTICAL|wxALL - 0 - - - - 1 - - - 0 - wxID_ANY - // [don't translate] Test panel 2 for future expansion - - - m_staticText321 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL - 0 - - - - 1 - - - 0 - wxID_ANY - // [don't translate] Let's not start multiple pages until the first page is filled up - - - m_staticText69 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_RIGHT - 0 - - - bSizer58 - wxHORIZONTAL - none - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_OK - OK - - - m_buttonOK - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonOK - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_CANCEL - Cancel - - -1,-1 - m_buttonCancel - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonCancel - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_APPLY - &Apply - - -1,-1 - m_buttonApply - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonApply - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - 0 - wxID_ANY - - - CAboutDialogBase - - 532,333 - wxDEFAULT_DIALOG_STYLE - - About Bitcoin - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer63 - wxHORIZONTAL - none - - 5 - - 0 - - - xpm/about.xpm; Load From File - - 1 - - - 0 - wxID_ANY - - - m_bitmap - protected - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND|wxLEFT - 1 - - - bSizer60 - wxVERTICAL - none - - 5 - wxEXPAND - 1 - - - bSizer62 - wxHORIZONTAL - none - - 5 - wxEXPAND - 1 - - - bSizer631 - wxVERTICAL - none - - 5 - wxEXPAND - 0 - - 65 - protected - 0 - - - - 5 - wxEXPAND - 0 - - - bSizer64 - wxHORIZONTAL - none - - 5 - wxALIGN_BOTTOM|wxTOP|wxBOTTOM|wxLEFT - 0 - - - - 1 - - Tahoma,90,92,10,74,0 - 0 - wxID_ANY - Bitcoin - - - m_staticText40 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_BOTTOM|wxTOP|wxBOTTOM|wxRIGHT - 0 - - - - 1 - - Tahoma,90,90,10,74,0 - 0 - wxID_ANY - version - - - m_staticTextVersion - public - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - 4 - protected - 0 - - - - 5 - wxALL - 0 - - - - 1 - - - 0 - wxID_ANY - Copyright (c) 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. - - - m_staticTextMain - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - 0 - protected - 0 - - - - - - - - 2 - wxALIGN_RIGHT|wxEXPAND|wxRIGHT - 0 - - - bSizer61 - wxHORIZONTAL - none - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 6 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_OK - OK - - - m_buttonOK - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonOK - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - 0 - wxID_ANY - - - CSendDialogBase - - 498,157 - wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER - - Send Coins - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer21 - wxVERTICAL - none - - 5 - wxEXPAND - 0 - - 5 - protected - 0 - - - - 5 - wxEXPAND|wxLEFT - 0 - - 2 - wxBOTH - 1 - - 0 - - fgSizer1 - wxFLEX_GROWMODE_SPECIFIED - none - 0 - 0 - - 5 - wxEXPAND - 0 - - 0 - protected - 0 - - - - 5 - wxTOP|wxRIGHT|wxLEFT - 0 - - - - 1 - - - 0 - wxID_ANY - Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) - - - m_staticTextInstructions - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND|wxLEFT - 1 - - 70,-1 - bSizer47 - wxHORIZONTAL - none - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL - 0 - - - xpm/check.xpm; Load From File - - 1 - - - 0 - wxID_ANY - - - m_bitmapCheckMark - protected - - 16,16 - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT - 0 - - - - 1 - - - 0 - wxID_ANY - Pay &To: - - - m_staticText36 - protected - - -1,-1 - wxALIGN_RIGHT - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND|wxRIGHT - 1 - - - bSizer19 - wxHORIZONTAL - none - - 5 - wxALIGN_CENTER_VERTICAL|wxALL - 1 - - - - 1 - - - 0 - wxID_TEXTCTRLPAYTO - - 0 - - m_textCtrlAddress - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - OnKeyDown - - - - - - - - - - - - - - - - - - - OnTextAddress - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL - 0 - - - bSizer66 - wxHORIZONTAL - none - - 5 - wxALIGN_CENTER_VERTICAL|wxRIGHT|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONPASTE - &Paste - - - m_buttonPaste - protected - - -1,-1 - wxBU_EXACTFIT - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonPaste - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxRIGHT|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONADDRESSBOOK - Address &Book... - - - m_buttonAddress - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonAddressBook - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_RIGHT - 0 - - - - 1 - - - 0 - wxID_ANY - &Amount: - - - m_staticText19 - protected - - -1,-1 - wxALIGN_RIGHT - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxALL - 0 - - - - 1 - - ,90,90,-1,70,0 - 0 - wxID_TEXTCTRLAMOUNT - - 20 - - m_textCtrlAmount - protected - - 145,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - OnKeyDown - - OnKillFocusAmount - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxTOP|wxBOTTOM|wxLEFT - 0 - - - - 1 - - - 1 - wxID_ANY - T&ransfer: - - - m_staticText20 - protected - - -1,-1 - wxALIGN_RIGHT - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxALL - 0 - - - " Standard" - - 1 - - - 1 - wxID_CHOICETRANSFERTYPE - - - m_choiceTransferType - protected - - 0 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - 3 - protected - 0 - - - - 5 - wxEXPAND - 0 - - 0 - protected - 0 - - - - - - 5 - wxEXPAND - 0 - - - bSizer672 - wxHORIZONTAL - none - - - - 5 - wxEXPAND - 0 - - - bSizer23 - wxHORIZONTAL - none - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - ,90,90,-1,70,0 - 0 - wxID_BUTTONSEND - &Send - - -1,-1 - m_buttonSend - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonSend - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_CANCEL - Cancel - - -1,-1 - m_buttonCancel - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonCancel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - 0 - wxID_ANY - - - CSendingDialogBase - - 442,151 - wxDEFAULT_DIALOG_STYLE - - Sending... - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - OnClose - - - - - - - - - - - - - - - - - - - - OnPaint - - - - - - - - - bSizer68 - wxVERTICAL - none - - 8 - wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT - 0 - - - - 1 - - - 0 - wxID_ANY - - - - m_staticTextSending - protected - - -1,14 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 10 - wxEXPAND|wxRIGHT|wxLEFT - 1 - - wxSYS_COLOUR_BTNFACE - - 1 - - - 0 - wxID_ANY - - 0 - - m_textCtrlStatus - protected - - - wxTE_CENTRE|wxTE_MULTILINE|wxTE_NO_VSCROLL|wxTE_READONLY - - - - wxFILTER_NONE - wxDefaultValidator - - Connecting... - - - wxNO_BORDER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - - bSizer69 - wxHORIZONTAL - none - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 0 - - - 0 - wxID_ANY - OK - - -1,-1 - m_buttonOK - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonOK - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_CANCEL - Cancel - - -1,-1 - m_buttonCancel - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonCancel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - 0 - wxID_ANY - - - CYourAddressDialogBase - - 610,390 - wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER - - Your Bitcoin Addresses - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - OnClose - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer68 - wxVERTICAL - none - - 5 - wxEXPAND - 0 - - 5 - protected - 0 - - - - 5 - wxALL - 0 - - - - 1 - - - 0 - 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. - - - m_staticText45 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - 590 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxEXPAND - 1 - - - - 1 - - - 0 - wxID_LISTCTRL - - - m_listCtrl - protected - - - wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_ASCENDING - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - OnListEndLabelEdit - - OnListItemActivated - - - - - OnListItemSelected - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - - bSizer69 - wxHORIZONTAL - none - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONRENAME - &Edit... - - -1,-1 - m_buttonRename - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonRename - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONNEW - &New Address... - - -1,-1 - m_buttonNew - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonNew - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONCOPY - &Copy to Clipboard - - -1,-1 - m_buttonCopy - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonCopy - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_OK - OK - - -1,-1 - m_buttonOK - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonOK - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 1 - wxID_CANCEL - Cancel - - -1,-1 - m_buttonCancel - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonCancel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - 0 - wxID_ANY - - - CAddressBookDialogBase - - 610,390 - wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER - - Address Book - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - OnClose - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer58 - wxVERTICAL - none - - 5 - wxEXPAND|wxTOP|wxRIGHT|wxLEFT - 1 - - - - - 1 - - - 0 - wxID_ANY - - - m_notebook - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - OnNotebookPageChanged - - - - - - - - - - - Sending - 0 - - - - 1 - - - 0 - wxID_PANELSENDING - - - m_panelSending - protected - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - wxTAB_TRAVERSAL - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer68 - wxVERTICAL - none - - 5 - wxEXPAND - 0 - - 0 - protected - 0 - - - - 5 - wxTOP|wxRIGHT|wxLEFT - 0 - - - - 1 - - - 1 - wxID_ANY - Bitcoin Address - - - m_staticText55 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxEXPAND - 1 - - - - 1 - - - 0 - wxID_LISTCTRLSENDING - - - m_listCtrlSending - protected - - - wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_ASCENDING - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - OnListEndLabelEdit - - OnListItemActivated - - - - - OnListItemSelected - - - - - - - - - - - - - - - - - - - - - - Receiving - 1 - - - - 1 - - - 0 - wxID_PANELRECEIVING - - - m_panelReceiving - protected - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - wxTAB_TRAVERSAL - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer681 - wxVERTICAL - none - - 5 - wxEXPAND - 0 - - 0 - protected - 0 - - - - 6 - wxTOP|wxRIGHT|wxLEFT - 0 - - - - 1 - - - 0 - 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. - - - m_staticText45 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - 570 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - 2 - protected - 0 - - - - 5 - wxALL|wxEXPAND - 1 - - - - 1 - - - 0 - wxID_LISTCTRLRECEIVING - - - m_listCtrlReceiving - protected - - - wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_ASCENDING - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - - - - - - - - - - - - - - - - - - OnListEndLabelEdit - - OnListItemActivated - - - - - OnListItemSelected - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 0 - - - bSizer69 - wxHORIZONTAL - none - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONDELETE - &Delete - - -1,-1 - m_buttonDelete - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonDelete - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONCOPY - &Copy to Clipboard - - -1,-1 - m_buttonCopy - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonCopy - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONEDIT - &Edit... - - -1,-1 - m_buttonEdit - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonEdit - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_BUTTONNEW - &New Address... - - -1,-1 - m_buttonNew - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonNew - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_OK - OK - - -1,-1 - m_buttonOK - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonOK - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_CANCEL - Cancel - - -1,-1 - m_buttonCancel - public - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonCancel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - 0 - wxID_ANY - - - CGetTextFromUserDialogBase - - 440,138 - wxDEFAULT_DIALOG_STYLE - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - OnClose - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bSizer79 - wxVERTICAL - none - - 10 - wxEXPAND|wxALL - 1 - - - bSizer81 - wxVERTICAL - none - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxTOP|wxRIGHT|wxLEFT - 0 - - - - 1 - - - 0 - wxID_ANY - - - - m_staticTextMessage1 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL - 0 - - - - 1 - - - 0 - wxID_TEXTCTRL - - 0 - - m_textCtrl1 - protected - - - wxTE_PROCESS_ENTER - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - OnKeyDown - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxTOP|wxRIGHT|wxLEFT - 0 - - - - 1 - - - 1 - wxID_ANY - - - - m_staticTextMessage2 - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL - 0 - - - - 1 - - - 1 - wxID_TEXTCTRL - - 0 - - m_textCtrl2 - protected - - - wxTE_PROCESS_ENTER - - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - OnKeyDown - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - - - 5 - wxEXPAND - 0 - - - bSizer80 - wxHORIZONTAL - none - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_OK - OK - - -1,-1 - m_buttonOK - protected - - -1,-1 - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonOK - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND - 0 - - - - 0 - 1 - - - 0 - wxID_CANCEL - Cancel - - -1,-1 - m_buttonCancel - protected - - - - - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnButtonCancel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/base58.h b/src/base58.h index fe19272..d7fedb1 100644 --- a/src/base58.h +++ b/src/base58.h @@ -21,7 +21,7 @@ static const char* pszBase58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; - +// Encode a byte sequence as a base58-encoded string inline std::string EncodeBase58(const unsigned char* pbegin, const unsigned char* pend) { CAutoBN_CTX pctx; @@ -62,11 +62,14 @@ inline std::string EncodeBase58(const unsigned char* pbegin, const unsigned char return str; } +// Encode a byte vector as a base58-encoded string inline std::string EncodeBase58(const std::vector& vch) { return EncodeBase58(&vch[0], &vch[0] + vch.size()); } +// Decode a base58-encoded string psz into byte vector vchRet +// returns true if decoding is succesful inline bool DecodeBase58(const char* psz, std::vector& vchRet) { CAutoBN_CTX pctx; @@ -113,6 +116,8 @@ inline bool DecodeBase58(const char* psz, std::vector& vchRet) return true; } +// Decode a base58-encoded string str into byte vector vchRet +// returns true if decoding is succesful inline bool DecodeBase58(const std::string& str, std::vector& vchRet) { return DecodeBase58(str.c_str(), vchRet); @@ -121,7 +126,7 @@ inline bool DecodeBase58(const std::string& str, std::vector& vch - +// Encode a byte vector to a base58-encoded string, including checksum inline std::string EncodeBase58Check(const std::vector& vchIn) { // add 4-byte hash check to the end @@ -131,6 +136,8 @@ inline std::string EncodeBase58Check(const std::vector& vchIn) return EncodeBase58(vch); } +// Decode a base58-encoded string psz that includes a checksum, into byte vector vchRet +// returns true if decoding is succesful inline bool DecodeBase58Check(const char* psz, std::vector& vchRet) { if (!DecodeBase58(psz, vchRet)) @@ -150,6 +157,8 @@ inline bool DecodeBase58Check(const char* psz, std::vector& vchRe return true; } +// Decode a base58-encoded string str that includes a checksum, into byte vector vchRet +// returns true if decoding is succesful inline bool DecodeBase58Check(const std::string& str, std::vector& vchRet) { return DecodeBase58Check(str.c_str(), vchRet); @@ -159,11 +168,14 @@ inline bool DecodeBase58Check(const std::string& str, std::vector - +// Base class for all base58-encoded data class CBase58Data { protected: + // the version byte unsigned char nVersion; + + // the actually encoded data std::vector vchData; CBase58Data() @@ -174,6 +186,7 @@ protected: ~CBase58Data() { + // zero the memory, as it may contain sensitive data if (!vchData.empty()) memset(&vchData[0], 0, vchData.size()); } @@ -238,7 +251,9 @@ public: bool operator> (const CBase58Data& b58) const { return CompareTo(b58) > 0; } }; - +// base58-encoded bitcoin addresses +// Addresses have version 0 or 111 (testnet) +// The data vector contains RIPEMD160(SHA256(pubkey)), where pubkey is the serialized public key class CBitcoinAddress : public CBase58Data { public: diff --git a/src/rpc.cpp b/src/bitcoinrpc.cpp similarity index 88% rename from src/rpc.cpp rename to src/bitcoinrpc.cpp index 8a02d95..b141e73 100644 --- a/src/rpc.cpp +++ b/src/bitcoinrpc.cpp @@ -4,7 +4,6 @@ // file license.txt or http://www.opensource.org/licenses/mit-license.php. #include "headers.h" -#include "cryptopp/sha.h" #include "db.h" #include "net.h" #include "init.h" @@ -37,6 +36,8 @@ void ThreadRPCServer2(void* parg); typedef Value(*rpcfn_type)(const Array& params, bool fHelp); extern map mapCallTable; +static std::string strRPCUserColonPass; + static int64 nWalletUnlockTime; static CCriticalSection cs_nWalletUnlockTime; @@ -50,13 +51,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 +65,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 } @@ -131,6 +128,7 @@ Value help(const Array& params, bool fHelp) // We already filter duplicates, but these deprecated screw up the sort order if (strMethod == "getamountreceived" || strMethod == "getallreceived" || + strMethod == "getblocknumber" || // deprecated (strMethod.find("label") != string::npos)) continue; if (strCommand != "" && strMethod != strCommand) @@ -165,10 +163,13 @@ Value stop(const Array& params, bool fHelp) throw runtime_error( "stop\n" "Stop bitcoin server."); - +#ifndef QT_GUI // Shutdown will take long enough that the response should get back CreateThread(Shutdown, NULL); return "bitcoin server stopping"; +#else + throw runtime_error("NYI: cannot shut down GUI with RPC command"); +#endif } @@ -183,12 +184,13 @@ Value getblockcount(const Array& params, bool fHelp) } +// deprecated Value getblocknumber(const Array& params, bool fHelp) { if (fHelp || params.size() != 0) throw runtime_error( "getblocknumber\n" - "Returns the block number of the latest block in the longest block chain."); + "Deprecated. Use getblockcount."); return nBestHeight; } @@ -530,6 +532,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 \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 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 \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 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) { @@ -943,7 +1011,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); @@ -958,7 +1025,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); @@ -1210,6 +1276,70 @@ Value listaccounts(const Array& params, bool fHelp) return ret; } +Value listsinceblock(const Array& params, bool fHelp) +{ + if (fHelp) + throw runtime_error( + "listsinceblock [blockid] [target-confirmations]\n" + "Get all transactions in blocks since block [blockid], or all transactions if omitted"); + + CBlockIndex *pindex = NULL; + int target_confirms = 1; + + if (params.size() > 0) + { + uint256 blockId = 0; + + blockId.SetHex(params[0].get_str()); + pindex = CBlockLocator(blockId).GetBlockIndex(); + } + + if (params.size() > 1) + { + target_confirms = params[1].get_int(); + + if (target_confirms < 1) + throw JSONRPCError(-8, "Invalid parameter"); + } + + int depth = pindex ? (1 + nBestHeight - pindex->nHeight) : -1; + + Array transactions; + + for (map::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); it++) + { + CWalletTx tx = (*it).second; + + if (depth == -1 || tx.GetDepthInMainChain() < depth) + ListTransactions(tx, "*", 0, true, transactions); + } + + uint256 lastblock; + + if (target_confirms == 1) + { + printf("oops!\n"); + lastblock = hashBestChain; + } + else + { + int target_height = pindexBest->nHeight + 1 - target_confirms; + + CBlockIndex *block; + for (block = pindexBest; + block && block->nHeight > target_height; + block = block->pprev) { } + + lastblock = block ? block->GetBlockHash() : 0; + } + + Object ret; + ret.push_back(Pair("transactions", transactions)); + ret.push_back(Pair("lastblock", lastblock.GetHex())); + + return ret; +} + Value gettransaction(const Array& params, bool fHelp) { if (fHelp || params.size() != 1) @@ -1343,21 +1473,16 @@ Value walletpassphrase(const Array& params, bool fHelp) throw JSONRPCError(-17, "Error: Wallet is already unlocked."); // Note that the walletpassphrase is stored in params[0] which is not mlock()ed - string strWalletPass; + SecureString strWalletPass; strWalletPass.reserve(100); - mlock(&strWalletPass[0], strWalletPass.capacity()); - strWalletPass = params[0].get_str(); + // TODO: get rid of this .c_str() by implementing SecureString::operator=(std::string) + // Alternately, find a way to make params[0] mlock()'d to begin with. + strWalletPass = params[0].get_str().c_str(); if (strWalletPass.length() > 0) { if (!pwalletMain->Unlock(strWalletPass)) - { - fill(strWalletPass.begin(), strWalletPass.end(), '\0'); - munlock(&strWalletPass[0], strWalletPass.capacity()); throw JSONRPCError(-14, "Error: The wallet passphrase entered was incorrect."); - } - fill(strWalletPass.begin(), strWalletPass.end(), '\0'); - munlock(&strWalletPass[0], strWalletPass.capacity()); } else throw runtime_error( @@ -1383,15 +1508,15 @@ Value walletpassphrasechange(const Array& params, bool fHelp) if (!pwalletMain->IsCrypted()) throw JSONRPCError(-15, "Error: running with an unencrypted wallet, but walletpassphrasechange was called."); - string strOldWalletPass; + // TODO: get rid of these .c_str() calls by implementing SecureString::operator=(std::string) + // Alternately, find a way to make params[0] mlock()'d to begin with. + SecureString strOldWalletPass; strOldWalletPass.reserve(100); - mlock(&strOldWalletPass[0], strOldWalletPass.capacity()); - strOldWalletPass = params[0].get_str(); + strOldWalletPass = params[0].get_str().c_str(); - string strNewWalletPass; + SecureString strNewWalletPass; strNewWalletPass.reserve(100); - mlock(&strNewWalletPass[0], strNewWalletPass.capacity()); - strNewWalletPass = params[1].get_str(); + strNewWalletPass = params[1].get_str().c_str(); if (strOldWalletPass.length() < 1 || strNewWalletPass.length() < 1) throw runtime_error( @@ -1399,17 +1524,7 @@ Value walletpassphrasechange(const Array& params, bool fHelp) "Changes the wallet passphrase from to ."); if (!pwalletMain->ChangeWalletPassphrase(strOldWalletPass, strNewWalletPass)) - { - fill(strOldWalletPass.begin(), strOldWalletPass.end(), '\0'); - fill(strNewWalletPass.begin(), strNewWalletPass.end(), '\0'); - munlock(&strOldWalletPass[0], strOldWalletPass.capacity()); - munlock(&strNewWalletPass[0], strNewWalletPass.capacity()); throw JSONRPCError(-14, "Error: The wallet passphrase entered was incorrect."); - } - fill(strNewWalletPass.begin(), strNewWalletPass.end(), '\0'); - fill(strOldWalletPass.begin(), strOldWalletPass.end(), '\0'); - munlock(&strOldWalletPass[0], strOldWalletPass.capacity()); - munlock(&strNewWalletPass[0], strNewWalletPass.capacity()); return Value::null; } @@ -1449,15 +1564,16 @@ Value encryptwallet(const Array& params, bool fHelp) if (pwalletMain->IsCrypted()) throw JSONRPCError(-15, "Error: running with an encrypted wallet, but encryptwallet was called."); -#ifdef GUI +#ifdef QT_GUI // shutting down via RPC while the GUI is running does not work (yet): throw runtime_error("Not Yet Implemented: use GUI to encrypt wallet, not RPC command"); #endif - string strWalletPass; + // TODO: get rid of this .c_str() by implementing SecureString::operator=(std::string) + // Alternately, find a way to make params[0] mlock()'d to begin with. + SecureString strWalletPass; strWalletPass.reserve(100); - mlock(&strWalletPass[0], strWalletPass.capacity()); - strWalletPass = params[0].get_str(); + strWalletPass = params[0].get_str().c_str(); if (strWalletPass.length() < 1) throw runtime_error( @@ -1465,13 +1581,7 @@ Value encryptwallet(const Array& params, bool fHelp) "Encrypts the wallet with ."); if (!pwalletMain->EncryptWallet(strWalletPass)) - { - fill(strWalletPass.begin(), strWalletPass.end(), '\0'); - munlock(&strWalletPass[0], strWalletPass.capacity()); throw JSONRPCError(-16, "Error: Failed to encrypt the wallet."); - } - fill(strWalletPass.begin(), strWalletPass.end(), '\0'); - munlock(&strWalletPass[0], strWalletPass.capacity()); // BDB seems to have a bad habit of writing old data into // slack space in .dat files; that is bad if the old data is @@ -1513,9 +1623,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."); @@ -1579,9 +1689,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; } @@ -1595,7 +1705,7 @@ Value getwork(const Array& params, bool fHelp) // Byte reverse for (int i = 0; i < 128/4; i++) - ((unsigned int*)pdata)[i] = CryptoPP::ByteReverse(((unsigned int*)pdata)[i]); + ((unsigned int*)pdata)[i] = ByteReverse(((unsigned int*)pdata)[i]); // Get saved block if (!mapNewBlock.count(pdata->hashMerkleRoot)) @@ -1612,6 +1722,93 @@ 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->UpdateTime(pindexPrev); + 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)); + + union { + int32_t nBits; + char cBits[4]; + } uBits; + uBits.nBits = htonl((int32_t)pblock->nBits); + result.push_back(Pair("bits", HexStr(BEGIN(uBits.cBits), END(uBits.cBits)))); + + return result; + } + else + { + // Parse parameters + CDataStream ssBlock(ParseHex(params[0].get_str())); + CBlock pblock; + ssBlock >> pblock; + + return ProcessBlock(NULL, &pblock); + } +} + + @@ -1640,20 +1837,13 @@ pair 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), @@ -1667,9 +1857,13 @@ pair 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), + make_pair("listsinceblock", &listsinceblock), }; map mapCallTable(pCallTable, pCallTable + sizeof(pCallTable)/sizeof(pCallTable[0])); @@ -1678,7 +1872,7 @@ string pAllowInSafeMode[] = "help", "stop", "getblockcount", - "getblocknumber", + "getblocknumber", // deprecated "getconnectioncount", "getdifficulty", "getgenerate", @@ -1687,17 +1881,15 @@ string pAllowInSafeMode[] = "getinfo", "getnewaddress", "getaccountaddress", - "setlabel", // deprecated "getaccount", - "getlabel", // deprecated "getaddressesbyaccount", - "getaddressesbylabel", // deprecated "backupwallet", "keypoolrefill", "walletpassphrase", "walletlock", "validateaddress", "getwork", + "getmemorypool", }; set setAllowInSafeMode(pAllowInSafeMode, pAllowInSafeMode + sizeof(pAllowInSafeMode)/sizeof(pAllowInSafeMode[0])); @@ -1719,6 +1911,7 @@ string HTTPPost(const string& strMsg, const map& 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"; @@ -1759,12 +1952,13 @@ static string HTTPReply(int nStatus, const string& strMsg) "\r\n" "

401 Unauthorized.

\r\n" "\r\n", rfc1123Time().c_str(), FormatFullVersion().c_str()); - string strStatus; - if (nStatus == 200) strStatus = "OK"; - else if (nStatus == 400) strStatus = "Bad Request"; - else if (nStatus == 403) strStatus = "Forbidden"; - else if (nStatus == 404) strStatus = "Not Found"; - else if (nStatus == 500) strStatus = "Internal Server Error"; + const char *cStatus; + if (nStatus == 200) cStatus = "OK"; + else if (nStatus == 400) cStatus = "Bad Request"; + else if (nStatus == 403) cStatus = "Forbidden"; + else if (nStatus == 404) cStatus = "Not Found"; + else if (nStatus == 500) cStatus = "Internal Server Error"; + else cStatus = ""; return strprintf( "HTTP/1.1 %d %s\r\n" "Date: %s\r\n" @@ -1775,7 +1969,7 @@ static string HTTPReply(int nStatus, const string& strMsg) "\r\n" "%s", nStatus, - strStatus.c_str(), + cStatus, rfc1123Time().c_str(), strMsg.size(), FormatFullVersion().c_str(), @@ -1842,43 +2036,6 @@ int ReadHTTP(std::basic_istream& stream, map& 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(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(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& mapHeaders) { string strAuth = mapHeaders["authorization"]; @@ -1886,12 +2043,7 @@ bool HTTPAuthorized(map& mapHeaders) return false; string strUserPass64 = strAuth.substr(6); boost::trim(strUserPass64); string strUserPass = DecodeBase64(strUserPass64); - string::size_type nColon = strUserPass.find(":"); - if (nColon == string::npos) - return false; - string strUser = strUserPass.substr(0, nColon); - string strPassword = strUserPass.substr(nColon+1); - return (strUser == mapArgs["-rpcuser"] && strPassword == mapArgs["-rpcpassword"]); + return strUserPass == strRPCUserColonPass; } // @@ -2020,11 +2172,16 @@ void ThreadRPCServer(void* parg) printf("ThreadRPCServer exiting\n"); } +#ifdef QT_GUI +extern bool HACK_SHUTDOWN; +#endif + void ThreadRPCServer2(void* parg) { printf("ThreadRPCServer started\n"); - if (mapArgs["-rpcuser"] == "" && mapArgs["-rpcpassword"] == "") + strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"]; + if (strRPCUserColonPass == ":") { unsigned char rand_pwd[32]; RAND_bytes(rand_pwd, 32); @@ -2033,8 +2190,8 @@ void ThreadRPCServer2(void* parg) strWhatAmI = strprintf(_("To use the %s option"), "\"-server\""); else if (mapArgs.count("-daemon")) strWhatAmI = strprintf(_("To use the %s option"), "\"-daemon\""); - PrintConsole( - _("Warning: %s, you must set a rpcpassword in the configuration file:\n %s\n" + ThreadSafeMessageBox(strprintf( + _("Error: %s, you must set a rpcpassword in the configuration file:\n %s\n" "It is recommended you use the following random password:\n" "rpcuser=bitcoinrpc\n" "rpcpassword=%s\n" @@ -2042,8 +2199,11 @@ void ThreadRPCServer2(void* parg) "If the file does not exist, create it with owner-readable-only file permissions.\n"), strWhatAmI.c_str(), GetConfigFile().c_str(), - EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str()); + EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str()), + _("Error"), wxOK | wxMODAL); +#ifndef QT_GUI CreateThread(Shutdown, NULL); +#endif return; } @@ -2052,9 +2212,27 @@ void ThreadRPCServer2(void* parg) asio::io_service io_service; ip::tcp::endpoint endpoint(bindAddress, GetArg("-rpcport", 8332)); +#ifndef QT_GUI ip::tcp::acceptor acceptor(io_service, endpoint); acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true)); +#else + ip::tcp::acceptor acceptor(io_service); + try + { + acceptor.open(endpoint.protocol()); + acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true)); + acceptor.bind(endpoint); + acceptor.listen(socket_base::max_connections); + } + catch(system::system_error &e) + { + HACK_SHUTDOWN = true; + ThreadSafeMessageBox(strprintf(_("An error occured while setting up the RPC port %i for listening: %s"), endpoint.port(), e.what()), + _("Error"), wxOK | wxMODAL); + return; + } +#endif #ifdef USE_SSL ssl::context context(io_service, ssl::context::sslv23); @@ -2159,7 +2337,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 @@ -2325,18 +2503,12 @@ int CommandLineRPC(int argc, char *argv[]) if (strMethod == "setgenerate" && n > 1) ConvertTo(params[1]); if (strMethod == "sendtoaddress" && n > 1) ConvertTo(params[1]); if (strMethod == "settxfee" && n > 0) ConvertTo(params[0]); - if (strMethod == "getamountreceived" && n > 1) ConvertTo(params[1]); // deprecated if (strMethod == "getreceivedbyaddress" && n > 1) ConvertTo(params[1]); if (strMethod == "getreceivedbyaccount" && n > 1) ConvertTo(params[1]); - if (strMethod == "getreceivedbylabel" && n > 1) ConvertTo(params[1]); // deprecated - if (strMethod == "getallreceived" && n > 0) ConvertTo(params[0]); // deprecated - if (strMethod == "getallreceived" && n > 1) ConvertTo(params[1]); // deprecated if (strMethod == "listreceivedbyaddress" && n > 0) ConvertTo(params[0]); if (strMethod == "listreceivedbyaddress" && n > 1) ConvertTo(params[1]); if (strMethod == "listreceivedbyaccount" && n > 0) ConvertTo(params[0]); if (strMethod == "listreceivedbyaccount" && n > 1) ConvertTo(params[1]); - if (strMethod == "listreceivedbylabel" && n > 0) ConvertTo(params[0]); // deprecated - if (strMethod == "listreceivedbylabel" && n > 1) ConvertTo(params[1]); // deprecated if (strMethod == "getbalance" && n > 1) ConvertTo(params[1]); if (strMethod == "move" && n > 2) ConvertTo(params[2]); if (strMethod == "move" && n > 3) ConvertTo(params[3]); @@ -2346,6 +2518,7 @@ int CommandLineRPC(int argc, char *argv[]) if (strMethod == "listtransactions" && n > 2) ConvertTo(params[2]); if (strMethod == "listaccounts" && n > 0) ConvertTo(params[0]); if (strMethod == "walletpassphrase" && n > 1) ConvertTo(params[1]); + if (strMethod == "listsinceblock" && n > 1) ConvertTo(params[1]); if (strMethod == "sendmany" && n > 1) { string s = params[1].get_str(); @@ -2393,13 +2566,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; } diff --git a/src/rpc.h b/src/bitcoinrpc.h similarity index 100% rename from src/rpc.h rename to src/bitcoinrpc.h diff --git a/src/crypter.cpp b/src/crypter.cpp index e821b08..727cf09 100644 --- a/src/crypter.cpp +++ b/src/crypter.cpp @@ -7,7 +7,7 @@ #include #include #include "headers.h" -#ifdef __WXMSW__ +#ifdef WIN32 #include #endif @@ -15,7 +15,7 @@ #include "main.h" #include "util.h" -bool CCrypter::SetKeyFromPassphrase(const std::string& strKeyData, const std::vector& chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod) +bool CCrypter::SetKeyFromPassphrase(const SecureString& strKeyData, const std::vector& chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod) { if (nRounds < 1 || chSalt.size() != WALLET_CRYPTO_SALT_SIZE) return false; diff --git a/src/crypter.h b/src/crypter.h index 5b95ea4..d7f8a39 100644 --- a/src/crypter.h +++ b/src/crypter.h @@ -13,15 +13,15 @@ const unsigned int WALLET_CRYPTO_SALT_SIZE = 8; Private key encryption is done based on a CMasterKey, which holds a salt and random encryption key. -CMasterKeys is encrypted using AES-256-CBC using a key +CMasterKeys are encrypted using AES-256-CBC using a key derived using derivation method nDerivationMethod (0 == EVP_sha512()) and derivation iterations nDeriveIterations. vchOtherDerivationParameters is provided for alternative algorithms which may require more parameters (such as scrypt). Wallet Private Keys are then encrypted using AES-256-CBC -with the double-sha256 of the private key as the IV, and the -master key's key as the encryption key. +with the double-sha256 of the public key as the IV, and the +master key's key as the encryption key (see keystore.[ch]). */ class CMasterKey @@ -65,7 +65,7 @@ private: bool fKeySet; public: - bool SetKeyFromPassphrase(const std::string &strKeyData, const std::vector& chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod); + bool SetKeyFromPassphrase(const SecureString &strKeyData, const std::vector& chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod); bool Encrypt(const CKeyingMaterial& vchPlaintext, std::vector &vchCiphertext); bool Decrypt(const std::vector& vchCiphertext, CKeyingMaterial& vchPlaintext); bool SetKey(const CKeyingMaterial& chNewKey, const std::vector& chNewIV); diff --git a/src/cryptopp/License.txt b/src/cryptopp/License.txt deleted file mode 100644 index fc3f054..0000000 --- a/src/cryptopp/License.txt +++ /dev/null @@ -1,67 +0,0 @@ -Compilation Copyright (c) 1995-2009 by Wei Dai. All rights reserved. -This copyright applies only to this software distribution package -as a compilation, and does not imply a copyright on any particular -file in the package. - -The following files are copyrighted by their respective original authors, -and their use is subject to additional licenses included in these files. - -mars.cpp - Copyright 1998 Brian Gladman. - -All other files in this compilation are placed in the public domain by -Wei Dai and other contributors. - -I would like to thank the following authors for placing their works into -the public domain: - -Joan Daemen - 3way.cpp -Leonard Janke - cast.cpp, seal.cpp -Steve Reid - cast.cpp -Phil Karn - des.cpp -Andrew M. Kuchling - md2.cpp, md4.cpp -Colin Plumb - md5.cpp -Seal Woods - rc6.cpp -Chris Morgan - rijndael.cpp -Paulo Baretto - rijndael.cpp, skipjack.cpp, square.cpp -Richard De Moliner - safer.cpp -Matthew Skala - twofish.cpp -Kevin Springle - camellia.cpp, shacal2.cpp, ttmac.cpp, whrlpool.cpp, ripemd.cpp - -Permission to use, copy, modify, and distribute this compilation for -any purpose, including commercial applications, is hereby granted -without fee, subject to the following restrictions: - -1. Any copy or modification of this compilation in any form, except -in object code form as part of an application software, must include -the above copyright notice and this license. - -2. Users of this software agree that any modification or extension -they provide to Wei Dai will be considered public domain and not -copyrighted unless it includes an explicit copyright notice. - -3. Wei Dai makes no warranty or representation that the operation of the -software in this compilation will be error-free, and Wei Dai is under no -obligation to provide any services, by way of maintenance, update, or -otherwise. THE SOFTWARE AND ANY DOCUMENTATION ARE PROVIDED "AS IS" -WITHOUT EXPRESS OR IMPLIED WARRANTY INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. IN NO EVENT WILL WEI DAI OR ANY OTHER CONTRIBUTOR BE LIABLE FOR -DIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF -ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -4. Users will not use Wei Dai or any other contributor's name in any -publicity or advertising, without prior written consent in each case. - -5. Export of this software from the United States may require a -specific license from the United States Government. It is the -responsibility of any person or organization contemplating export -to obtain such a license before exporting. - -6. Certain parts of this software may be protected by patents. It -is the users' responsibility to obtain the appropriate -licenses before using those parts. - -If this compilation is used in object code form in an application -software, acknowledgement of the author is not required but would be -appreciated. The contribution of any useful modifications or extensions -to Wei Dai is not required but would also be appreciated. diff --git a/src/cryptopp/Readme.txt b/src/cryptopp/Readme.txt deleted file mode 100644 index 861c036..0000000 --- a/src/cryptopp/Readme.txt +++ /dev/null @@ -1,429 +0,0 @@ -Crypto++: a C++ Class Library of Cryptographic Schemes -Version 5.6.0 (3/15/2009) - -Crypto++ Library is a free C++ class library of cryptographic schemes. -Currently the library contains the following algorithms: - - algorithm type name - - authenticated encryption schemes GCM, CCM, EAX - - high speed stream ciphers Panama, Sosemanuk, Salsa20, XSalsa20 - - AES and AES candidates AES (Rijndael), RC6, MARS, Twofish, Serpent, - CAST-256 - - IDEA, Triple-DES (DES-EDE2 and DES-EDE3), - other block ciphers Camellia, SEED, RC5, Blowfish, TEA, XTEA, - Skipjack, SHACAL-2 - - block cipher modes of operation ECB, CBC, CBC ciphertext stealing (CTS), - CFB, OFB, counter mode (CTR) - - message authentication codes VMAC, HMAC, CMAC, CBC-MAC, DMAC, - Two-Track-MAC - - SHA-1, SHA-2 (SHA-224, SHA-256, SHA-384, and - hash functions SHA-512), Tiger, WHIRLPOOL, RIPEMD-128, - RIPEMD-256, RIPEMD-160, RIPEMD-320 - - RSA, DSA, ElGamal, Nyberg-Rueppel (NR), - public-key cryptography Rabin, Rabin-Williams (RW), LUC, LUCELG, - DLIES (variants of DHAES), ESIGN - - padding schemes for public-key PKCS#1 v2.0, OAEP, PSS, PSSR, IEEE P1363 - systems EMSA2 and EMSA5 - - Diffie-Hellman (DH), Unified Diffie-Hellman - key agreement schemes (DH2), Menezes-Qu-Vanstone (MQV), LUCDIF, - XTR-DH - - elliptic curve cryptography ECDSA, ECNR, ECIES, ECDH, ECMQV - - insecure or obsolescent MD2, MD4, MD5, Panama Hash, DES, ARC4, SEAL -algorithms retained for backwards 3.0, WAKE, WAKE-OFB, DESX (DES-XEX3), RC2, - compatibility and historical SAFER, 3-WAY, GOST, SHARK, CAST-128, Square - value - -Other features include: - - * pseudo random number generators (PRNG): ANSI X9.17 appendix C, RandomPool - * password based key derivation functions: PBKDF1 and PBKDF2 from PKCS #5, - PBKDF from PKCS #12 appendix B - * Shamir's secret sharing scheme and Rabin's information dispersal algorithm - (IDA) - * fast multi-precision integer (bignum) and polynomial operations - * finite field arithmetics, including GF(p) and GF(2^n) - * prime number generation and verification - * useful non-cryptographic algorithms - + DEFLATE (RFC 1951) compression/decompression with gzip (RFC 1952) and - zlib (RFC 1950) format support - + hex, base-32, and base-64 coding/decoding - + 32-bit CRC and Adler32 checksum - * class wrappers for these operating system features (optional): - + high resolution timers on Windows, Unix, and Mac OS - + Berkeley and Windows style sockets - + Windows named pipes - + /dev/random, /dev/urandom, /dev/srandom - + Microsoft's CryptGenRandom on Windows - * A high level interface for most of the above, using a filter/pipeline - metaphor - * benchmarks and validation testing - * x86, x86-64 (x64), MMX, and SSE2 assembly code for the most commonly used - algorithms, with run-time CPU feature detection and code selection - * some versions are available in FIPS 140-2 validated form - -You are welcome to use it for any purpose without paying me, but see -License.txt for the fine print. - -The following compilers are supported for this release. Please visit -http://www.cryptopp.com the most up to date build instructions and porting notes. - - * MSVC 6.0 - 2008 - * GCC 3.3 - 4.3 - * C++Builder 2009 - * Intel C++ Compiler 9 - 11 - * Sun Studio 12 (CC 5.9) - -*** Important Usage Notes *** - -1. If a constructor for A takes a pointer to an object B (except primitive -types such as int and char), then A owns B and will delete B at A's -destruction. If a constructor for A takes a reference to an object B, -then the caller retains ownership of B and should not destroy it until -A no longer needs it. - -2. Crypto++ is thread safe at the class level. This means you can use -Crypto++ safely in a multithreaded application, but you must provide -synchronization when multiple threads access a common Crypto++ object. - -*** MSVC-Specific Information *** - -On Windows, Crypto++ can be compiled into 3 forms: a static library -including all algorithms, a DLL with only FIPS Approved algorithms, and -a static library with only algorithms not in the DLL. -(FIPS Approved means Approved according to the FIPS 140-2 standard.) -The DLL may be used by itself, or it may be used together with the second -form of the static library. MSVC project files are included to build -all three forms, and sample applications using each of the three forms -are also included. - -To compile Crypto++ with MSVC, open the "cryptest.dsw" (for MSVC 6 and MSVC .NET -2003) or "cryptest.sln" (for MSVC .NET 2005) workspace file and build one or -more of the following projects: - -cryptdll - This builds the DLL. Please note that if you wish to use Crypto++ - as a FIPS validated module, you must use a pre-built DLL that has undergone - the FIPS validation process instead of building your own. -dlltest - This builds a sample application that only uses the DLL. -cryptest Non-DLL-Import Configuration - This builds the full static library - along with a full test driver. -cryptest DLL-Import Configuration - This builds a static library containing - only algorithms not in the DLL, along with a full test driver that uses - both the DLL and the static library. - -To use the Crypto++ DLL in your application, #include "dll.h" before including -any other Crypto++ header files, and place the DLL in the same directory as -your .exe file. dll.h includes the line #pragma comment(lib, "cryptopp") -so you don't have to explicitly list the import library in your project -settings. To use a static library form of Crypto++, specify it as -an additional library to link with in your project settings. -In either case you should check the compiler options to -make sure that the library and your application are using the same C++ -run-time libraries and calling conventions. - -*** DLL Memory Management *** - -Because it's possible for the Crypto++ DLL to delete objects allocated -by the calling application, they must use the same C++ memory heap. Three -methods are provided to achieve this. -1. The calling application can tell Crypto++ what heap to use. This method - is required when the calling application uses a non-standard heap. -2. Crypto++ can tell the calling application what heap to use. This method - is required when the calling application uses a statically linked C++ Run - Time Library. (Method 1 does not work in this case because the Crypto++ DLL - is initialized before the calling application's heap is initialized.) -3. Crypto++ can automatically use the heap provided by the calling application's - dynamically linked C++ Run Time Library. The calling application must - make sure that the dynamically linked C++ Run Time Library is initialized - before Crypto++ is loaded. (At this time it is not clear if it is possible - to control the order in which DLLs are initialized on Windows 9x machines, - so it might be best to avoid using this method.) - -When Crypto++ attaches to a new process, it searches all modules loaded -into the process space for exported functions "GetNewAndDeleteForCryptoPP" -and "SetNewAndDeleteFromCryptoPP". If one of these functions is found, -Crypto++ uses methods 1 or 2, respectively, by calling the function. -Otherwise, method 3 is used. - -*** GCC-Specific Information *** - -A makefile is included for you to compile Crypto++ with GCC. Make sure -you are using GNU Make and GNU ld. The make process will produce two files, -libcryptopp.a and cryptest.exe. Run "cryptest.exe v" for the validation -suite. - -*** Documentation and Support *** - -Crypto++ is documented through inline comments in header files, which are -processed through Doxygen to produce an HTML reference manual. You can find -a link to the manual from http://www.cryptopp.com. Also at that site is -the Crypto++ FAQ, which you should browse through before attempting to -use this library, because it will likely answer many of questions that -may come up. - -If you run into any problems, please try the Crypto++ mailing list. -The subscription information and the list archive are available on -http://www.cryptopp.com. You can also email me directly by visiting -http://www.weidai.com, but you will probably get a faster response through -the mailing list. - -*** History *** - -1.0 - First public release. Withdrawn at the request of RSA DSI. - - included Blowfish, BBS, DES, DH, Diamond, DSA, ElGamal, IDEA, - MD5, RC4, RC5, RSA, SHA, WAKE, secret sharing, DEFLATE compression - - had a serious bug in the RSA key generation code. - -1.1 - Removed RSA, RC4, RC5 - - Disabled calls to RSAREF's non-public functions - - Minor bugs fixed - -2.0 - a completely new, faster multiprecision integer class - - added MD5-MAC, HAVAL, 3-WAY, TEA, SAFER, LUC, Rabin, BlumGoldwasser, - elliptic curve algorithms - - added the Lucas strong probable primality test - - ElGamal encryption and signature schemes modified to avoid weaknesses - - Diamond changed to Diamond2 because of key schedule weakness - - fixed bug in WAKE key setup - - SHS class renamed to SHA - - lots of miscellaneous optimizations - -2.1 - added Tiger, HMAC, GOST, RIPE-MD160, LUCELG, LUCDIF, XOR-MAC, - OAEP, PSSR, SHARK - - added precomputation to DH, ElGamal, DSA, and elliptic curve algorithms - - added back RC5 and a new RSA - - optimizations in elliptic curves over GF(p) - - changed Rabin to use OAEP and PSSR - - changed many classes to allow copy constructors to work correctly - - improved exception generation and handling - -2.2 - added SEAL, CAST-128, Square - - fixed bug in HAVAL (padding problem) - - fixed bug in triple-DES (decryption order was reversed) - - fixed bug in RC5 (couldn't handle key length not a multiple of 4) - - changed HMAC to conform to RFC-2104 (which is not compatible - with the original HMAC) - - changed secret sharing and information dispersal to use GF(2^32) - instead of GF(65521) - - removed zero knowledge prover/verifier for graph isomorphism - - removed several utility classes in favor of the C++ standard library - -2.3 - ported to EGCS - - fixed incomplete workaround of min/max conflict in MSVC - -3.0 - placed all names into the "CryptoPP" namespace - - added MD2, RC2, RC6, MARS, RW, DH2, MQV, ECDHC, CBC-CTS - - added abstract base classes PK_SimpleKeyAgreementDomain and - PK_AuthenticatedKeyAgreementDomain - - changed DH and LUCDIF to implement the PK_SimpleKeyAgreementDomain - interface and to perform domain parameter and key validation - - changed interfaces of PK_Signer and PK_Verifier to sign and verify - messages instead of message digests - - changed OAEP to conform to PKCS#1 v2.0 - - changed benchmark code to produce HTML tables as output - - changed PSSR to track IEEE P1363a - - renamed ElGamalSignature to NR and changed it to track IEEE P1363 - - renamed ECKEP to ECMQVC and changed it to track IEEE P1363 - - renamed several other classes for clarity - - removed support for calling RSAREF - - removed option to compile old SHA (SHA-0) - - removed option not to throw exceptions - -3.1 - added ARC4, Rijndael, Twofish, Serpent, CBC-MAC, DMAC - - added interface for querying supported key lengths of symmetric ciphers - and MACs - - added sample code for RSA signature and verification - - changed CBC-CTS to be compatible with RFC 2040 - - updated SEAL to version 3.0 of the cipher specification - - optimized multiprecision squaring and elliptic curves over GF(p) - - fixed bug in MARS key setup - - fixed bug with attaching objects to Deflator - -3.2 - added DES-XEX3, ECDSA, DefaultEncryptorWithMAC - - renamed DES-EDE to DES-EDE2 and TripleDES to DES-EDE3 - - optimized ARC4 - - generalized DSA to allow keys longer than 1024 bits - - fixed bugs in GF2N and ModularArithmetic that can cause calculation errors - - fixed crashing bug in Inflator when given invalid inputs - - fixed endian bug in Serpent - - fixed padding bug in Tiger - -4.0 - added Skipjack, CAST-256, Panama, SHA-2 (SHA-256, SHA-384, and SHA-512), - and XTR-DH - - added a faster variant of Rabin's Information Dispersal Algorithm (IDA) - - added class wrappers for these operating system features: - - high resolution timers on Windows, Unix, and MacOS - - Berkeley and Windows style sockets - - Windows named pipes - - /dev/random and /dev/urandom on Linux and FreeBSD - - Microsoft's CryptGenRandom on Windows - - added support for SEC 1 elliptic curve key format and compressed points - - added support for X.509 public key format (subjectPublicKeyInfo) for - RSA, DSA, and elliptic curve schemes - - added support for DER and OpenPGP signature format for DSA - - added support for ZLIB compressed data format (RFC 1950) - - changed elliptic curve encryption to use ECIES (as defined in SEC 1) - - changed MARS key schedule to reflect the latest specification - - changed BufferedTransformation interface to support multiple channels - and messages - - changed CAST and SHA-1 implementations to use public domain source code - - fixed bug in StringSource - - optmized multi-precision integer code for better performance - -4.1 - added more support for the recommended elliptic curve parameters in SEC 2 - - added Panama MAC, MARC4 - - added IV stealing feature to CTS mode - - added support for PKCS #8 private key format for RSA, DSA, and elliptic - curve schemes - - changed Deflate, MD5, Rijndael, and Twofish to use public domain code - - fixed a bug with flushing compressed streams - - fixed a bug with decompressing stored blocks - - fixed a bug with EC point decompression using non-trinomial basis - - fixed a bug in NetworkSource::GeneralPump() - - fixed a performance issue with EC over GF(p) decryption - - fixed syntax to allow GCC to compile without -fpermissive - - relaxed some restrictions in the license - -4.2 - added support for longer HMAC keys - - added MD4 (which is not secure so use for compatibility purposes only) - - added compatibility fixes/workarounds for STLport 4.5, GCC 3.0.2, - and MSVC 7.0 - - changed MD2 to use public domain code - - fixed a bug with decompressing multiple messages with the same object - - fixed a bug in CBC-MAC with MACing multiple messages with the same object - - fixed a bug in RC5 and RC6 with zero-length keys - - fixed a bug in Adler32 where incorrect checksum may be generated - -5.0 - added ESIGN, DLIES, WAKE-OFB, PBKDF1 and PBKDF2 from PKCS #5 - - added key validation for encryption and signature public/private keys - - renamed StreamCipher interface to SymmetricCipher, which is now implemented - by both stream ciphers and block cipher modes including ECB and CBC - - added keying interfaces to support resetting of keys and IVs without - having to destroy and recreate objects - - changed filter interface to support non-blocking input/output - - changed SocketSource and SocketSink to use overlapped I/O on Microsoft Windows - - grouped related classes inside structs to help templates, for example - AESEncryption and AESDecryption are now AES::Encryption and AES::Decryption - - where possible, typedefs have been added to improve backwards - compatibility when the CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY macro is defined - - changed Serpent, HAVAL and IDEA to use public domain code - - implemented SSE2 optimizations for Integer operations - - fixed a bug in HMAC::TruncatedFinal() - - fixed SKIPJACK byte ordering following NIST clarification dated 5/9/02 - -5.01 - added known answer test for X9.17 RNG in FIPS 140 power-up self test - - submitted to NIST/CSE, but not publicly released - -5.02 - changed EDC test to MAC integrity check using HMAC/SHA1 - - improved performance of integrity check - - added blinding to defend against RSA timing attack - -5.03 - created DLL version of Crypto++ for FIPS 140-2 validation - - fixed vulnerabilities in GetNextIV for CTR and OFB modes - -5.0.4 - Removed DES, SHA-256, SHA-384, SHA-512 from DLL - -5.1 - added PSS padding and changed PSSR to track IEEE P1363a draft standard - - added blinding for RSA and Rabin to defend against timing attacks - on decryption operations - - changed signing and decryption APIs to support the above - - changed WaitObjectContainer to allow waiting for more than 64 - objects at a time on Win32 platforms - - fixed a bug in CBC and ECB modes with processing non-aligned data - - fixed standard conformance bugs in DLIES (DHAES mode) and RW/EMSA2 - signature scheme (these fixes are not backwards compatible) - - fixed a number of compiler warnings, minor bugs, and portability problems - - removed Sapphire - -5.2 - merged in changes for 5.01 - 5.0.4 - - added support for using encoding parameters and key derivation parameters - with public key encryption (implemented by OAEP and DL/ECIES) - - added Camellia, SHACAL-2, Two-Track-MAC, Whirlpool, RIPEMD-320, - RIPEMD-128, RIPEMD-256, Base-32 coding, FIPS variant of CFB mode - - added ThreadUserTimer for timing thread CPU usage - - added option for password-based key derivation functions - to iterate until a mimimum elapsed thread CPU time is reached - - added option (on by default) for DEFLATE compression to detect - uncompressible files and process them more quickly - - improved compatibility and performance on 64-bit platforms, - including Alpha, IA-64, x86-64, PPC64, Sparc64, and MIPS64 - - fixed ONE_AND_ZEROS_PADDING to use 0x80 instead 0x01 as padding. - - fixed encoding/decoding of PKCS #8 privateKeyInfo to properly - handle optional attributes - -5.2.1 - fixed bug in the "dlltest" DLL testing program - - fixed compiling with STLport using VC .NET - - fixed compiling with -fPIC using GCC - - fixed compiling with -msse2 on systems without memalign() - - fixed inability to instantiate PanamaMAC - - fixed problems with inline documentation - -5.2.2 - added SHA-224 - - put SHA-256, SHA-384, SHA-512, RSASSA-PSS into DLL - -5.2.3 - fixed issues with FIPS algorithm test vectors - - put RSASSA-ISO into DLL - -5.3 - ported to MSVC 2005 with support for x86-64 - - added defense against AES timing attacks, and more AES test vectors - - changed StaticAlgorithmName() of Rijndael to "AES", CTR to "CTR" - -5.4 - added Salsa20 - - updated Whirlpool to version 3.0 - - ported to GCC 4.1, Sun C++ 5.8, and Borland C++Builder 2006 - -5.5 - added VMAC and Sosemanuk (with x86-64 and SSE2 assembly) - - improved speed of integer arithmetic, AES, SHA-512, Tiger, Salsa20, - Whirlpool, and PANAMA cipher using assembly (x86-64, MMX, SSE2) - - optimized Camellia and added defense against timing attacks - - updated benchmarks code to show cycles per byte and to time key/IV setup - - started using OpenMP for increased multi-core speed - - enabled GCC optimization flags by default in GNUmakefile - - added blinding and computational error checking for RW signing - - changed RandomPool, X917RNG, GetNextIV, DSA/NR/ECDSA/ECNR to reduce - the risk of reusing random numbers and IVs after virtual machine state - rollback - - changed default FIPS mode RNG from AutoSeededX917RNG to - AutoSeededX917RNG - - fixed PANAMA cipher interface to accept 256-bit key and 256-bit IV - - moved MD2, MD4, MD5, PanamaHash, ARC4, WAKE_CFB into the namespace "Weak" - - removed HAVAL, MD5-MAC, XMAC - -5.5.1 - fixed VMAC validation failure on 32-bit big-endian machines - -5.5.2 - ported x64 assembly language code for AES, Salsa20, Sosemanuk, and Panama - to MSVC 2005 (using MASM since MSVC doesn't support inline assembly on x64) - - fixed Salsa20 initialization crash on non-SSE2 machines - - fixed Whirlpool crash on Pentium 2 machines - - fixed possible branch prediction analysis (BPA) vulnerability in - MontgomeryReduce(), which may affect security of RSA, RW, LUC - - fixed link error with MSVC 2003 when using "debug DLL" form of runtime library - - fixed crash in SSE2_Add on P4 machines when compiled with - MSVC 6.0 SP5 with Processor Pack - - ported to MSVC 2008, GCC 4.2, Sun CC 5.9, Intel C++ Compiler 10.0, - and Borland C++Builder 2007 - -5.6 - added AuthenticatedSymmetricCipher interface class and Filter wrappers - - added CCM, GCM (with SSE2 assembly), EAX, CMAC, XSalsa20, and SEED - - added support for variable length IVs - - improved AES and SHA-256 speed on x86 and x64 - - fixed incorrect VMAC computation on message lengths - that are >64 mod 128 (x86 assembly version is not affected) - - fixed compiler error in vmac.cpp on x86 with GCC -fPIC - - fixed run-time validation error on x86-64 with GCC 4.3.2 -O2 - - fixed HashFilter bug when putMessage=true - - removed WORD64_AVAILABLE; compiler support for 64-bit int is now required - - ported to GCC 4.3, C++Builder 2009, Sun CC 5.10, Intel C++ Compiler 11 - -Written by Wei Dai diff --git a/src/cryptopp/config.h b/src/cryptopp/config.h deleted file mode 100644 index 0737027..0000000 --- a/src/cryptopp/config.h +++ /dev/null @@ -1,462 +0,0 @@ -#ifndef CRYPTOPP_CONFIG_H -#define CRYPTOPP_CONFIG_H - -//// Bitcoin: disable SSE2 on 32-bit -#if !defined(_M_X64) && !defined(__x86_64__) -#define CRYPTOPP_DISABLE_SSE2 1 -#endif -//////////// end of Bitcoin changes - - -// ***************** Important Settings ******************** - -// define this if running on a big-endian CPU -#if !defined(IS_LITTLE_ENDIAN) && (defined(__BIG_ENDIAN__) || defined(__sparc) || defined(__sparc__) || defined(__hppa__) || defined(__mips__) || (defined(__MWERKS__) && !defined(__INTEL__))) -# define IS_BIG_ENDIAN -#endif - -// define this if running on a little-endian CPU -// big endian will be assumed if IS_LITTLE_ENDIAN is not defined -#ifndef IS_BIG_ENDIAN -# define IS_LITTLE_ENDIAN -#endif - -// define this if you want to disable all OS-dependent features, -// such as sockets and OS-provided random number generators -// #define NO_OS_DEPENDENCE - -// Define this to use features provided by Microsoft's CryptoAPI. -// Currently the only feature used is random number generation. -// This macro will be ignored if NO_OS_DEPENDENCE is defined. -#define USE_MS_CRYPTOAPI - -// Define this to 1 to enforce the requirement in FIPS 186-2 Change Notice 1 that only 1024 bit moduli be used -#ifndef DSA_1024_BIT_MODULUS_ONLY -# define DSA_1024_BIT_MODULUS_ONLY 1 -#endif - -// ***************** Less Important Settings *************** - -// define this to retain (as much as possible) old deprecated function and class names -// #define CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY - -#define GZIP_OS_CODE 0 - -// Try this if your CPU has 256K internal cache or a slow multiply instruction -// and you want a (possibly) faster IDEA implementation using log tables -// #define IDEA_LARGECACHE - -// Define this if, for the linear congruential RNG, you want to use -// the original constants as specified in S.K. Park and K.W. Miller's -// CACM paper. -// #define LCRNG_ORIGINAL_NUMBERS - -// choose which style of sockets to wrap (mostly useful for cygwin which has both) -#define PREFER_BERKELEY_STYLE_SOCKETS -// #define PREFER_WINDOWS_STYLE_SOCKETS - -// set the name of Rijndael cipher, was "Rijndael" before version 5.3 -#define CRYPTOPP_RIJNDAEL_NAME "AES" - -// ***************** Important Settings Again ******************** -// But the defaults should be ok. - -// namespace support is now required -#ifdef NO_NAMESPACE -# error namespace support is now required -#endif - -// Define this to workaround a Microsoft CryptoAPI bug where -// each call to CryptAcquireContext causes a 100 KB memory leak. -// Defining this will cause Crypto++ to make only one call to CryptAcquireContext. -#define WORKAROUND_MS_BUG_Q258000 - -#ifdef CRYPTOPP_DOXYGEN_PROCESSING -// Avoid putting "CryptoPP::" in front of everything in Doxygen output -# define CryptoPP -# define NAMESPACE_BEGIN(x) -# define NAMESPACE_END -// Get Doxygen to generate better documentation for these typedefs -# define DOCUMENTED_TYPEDEF(x, y) class y : public x {}; -#else -# define NAMESPACE_BEGIN(x) namespace x { -# define NAMESPACE_END } -# define DOCUMENTED_TYPEDEF(x, y) typedef x y; -#endif -#define ANONYMOUS_NAMESPACE_BEGIN namespace { -#define USING_NAMESPACE(x) using namespace x; -#define DOCUMENTED_NAMESPACE_BEGIN(x) namespace x { -#define DOCUMENTED_NAMESPACE_END } - -// What is the type of the third parameter to bind? -// For Unix, the new standard is ::socklen_t (typically unsigned int), and the old standard is int. -// Unfortunately there is no way to tell whether or not socklen_t is defined. -// To work around this, TYPE_OF_SOCKLEN_T is a macro so that you can change it from the makefile. -#ifndef TYPE_OF_SOCKLEN_T -# if defined(_WIN32) || defined(__CYGWIN__) -# define TYPE_OF_SOCKLEN_T int -# else -# define TYPE_OF_SOCKLEN_T ::socklen_t -# endif -#endif - -#if defined(__CYGWIN__) && defined(PREFER_WINDOWS_STYLE_SOCKETS) -# define __USE_W32_SOCKETS -#endif - -typedef unsigned char byte; // put in global namespace to avoid ambiguity with other byte typedefs - -NAMESPACE_BEGIN(CryptoPP) - -typedef unsigned short word16; -typedef unsigned int word32; - -#if defined(_MSC_VER) || defined(__BORLANDC__) - typedef unsigned __int64 word64; - #define W64LIT(x) x##ui64 -#else - typedef unsigned long long word64; - #define W64LIT(x) x##ULL -#endif - -// define large word type, used for file offsets and such -typedef word64 lword; -const lword LWORD_MAX = W64LIT(0xffffffffffffffff); - -#ifdef __GNUC__ - #define CRYPTOPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - -// define hword, word, and dword. these are used for multiprecision integer arithmetic -// Intel compiler won't have _umul128 until version 10.0. See http://softwarecommunity.intel.com/isn/Community/en-US/forums/thread/30231625.aspx -#if (defined(_MSC_VER) && (!defined(__INTEL_COMPILER) || __INTEL_COMPILER >= 1000) && (defined(_M_X64) || defined(_M_IA64))) || (defined(__DECCXX) && defined(__alpha__)) || (defined(__INTEL_COMPILER) && defined(__x86_64__)) || (defined(__SUNPRO_CC) && defined(__x86_64__)) - typedef word32 hword; - typedef word64 word; -#else - #define CRYPTOPP_NATIVE_DWORD_AVAILABLE - #if defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || defined(__x86_64__) || defined(__mips64) || defined(__sparc64__) - #if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !(CRYPTOPP_GCC_VERSION == 40001 && defined(__APPLE__)) && CRYPTOPP_GCC_VERSION >= 30400 - // GCC 4.0.1 on MacOS X is missing __umodti3 and __udivti3 - // mode(TI) division broken on amd64 with GCC earlier than GCC 3.4 - typedef word32 hword; - typedef word64 word; - typedef __uint128_t dword; - typedef __uint128_t word128; - #define CRYPTOPP_WORD128_AVAILABLE - #else - // if we're here, it means we're on a 64-bit CPU but we don't have a way to obtain 128-bit multiplication results - typedef word16 hword; - typedef word32 word; - typedef word64 dword; - #endif - #else - // being here means the native register size is probably 32 bits or less - #define CRYPTOPP_BOOL_SLOW_WORD64 1 - typedef word16 hword; - typedef word32 word; - typedef word64 dword; - #endif -#endif -#ifndef CRYPTOPP_BOOL_SLOW_WORD64 - #define CRYPTOPP_BOOL_SLOW_WORD64 0 -#endif - -const unsigned int WORD_SIZE = sizeof(word); -const unsigned int WORD_BITS = WORD_SIZE * 8; - -NAMESPACE_END - -#ifndef CRYPTOPP_L1_CACHE_LINE_SIZE - // This should be a lower bound on the L1 cache line size. It's used for defense against timing attacks. - #if defined(_M_X64) || defined(__x86_64__) - #define CRYPTOPP_L1_CACHE_LINE_SIZE 64 - #else - // L1 cache line size is 32 on Pentium III and earlier - #define CRYPTOPP_L1_CACHE_LINE_SIZE 32 - #endif -#endif - -#if defined(_MSC_VER) - #if _MSC_VER == 1200 - #include - #endif - #if _MSC_VER > 1200 || defined(_mm_free) - #define CRYPTOPP_MSVC6PP_OR_LATER // VC 6 processor pack or later - #else - #define CRYPTOPP_MSVC6_NO_PP // VC 6 without processor pack - #endif -#endif - -#ifndef CRYPTOPP_ALIGN_DATA - #if defined(CRYPTOPP_MSVC6PP_OR_LATER) - #define CRYPTOPP_ALIGN_DATA(x) __declspec(align(x)) - #elif defined(__GNUC__) - #define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x))) - #else - #define CRYPTOPP_ALIGN_DATA(x) - #endif -#endif - -#ifndef CRYPTOPP_SECTION_ALIGN16 - #if defined(__GNUC__) && !defined(__APPLE__) - // the alignment attribute doesn't seem to work without this section attribute when -fdata-sections is turned on - #define CRYPTOPP_SECTION_ALIGN16 __attribute__((section ("CryptoPP_Align16"))) - #else - #define CRYPTOPP_SECTION_ALIGN16 - #endif -#endif - -#if defined(_MSC_VER) || defined(__fastcall) - #define CRYPTOPP_FASTCALL __fastcall -#else - #define CRYPTOPP_FASTCALL -#endif - -// VC60 workaround: it doesn't allow typename in some places -#if defined(_MSC_VER) && (_MSC_VER < 1300) -#define CPP_TYPENAME -#else -#define CPP_TYPENAME typename -#endif - -// VC60 workaround: can't cast unsigned __int64 to float or double -#if defined(_MSC_VER) && !defined(CRYPTOPP_MSVC6PP_OR_LATER) -#define CRYPTOPP_VC6_INT64 (__int64) -#else -#define CRYPTOPP_VC6_INT64 -#endif - -#ifdef _MSC_VER -#define CRYPTOPP_NO_VTABLE __declspec(novtable) -#else -#define CRYPTOPP_NO_VTABLE -#endif - -#ifdef _MSC_VER - // 4231: nonstandard extension used : 'extern' before template explicit instantiation - // 4250: dominance - // 4251: member needs to have dll-interface - // 4275: base needs to have dll-interface - // 4660: explicitly instantiating a class that's already implicitly instantiated - // 4661: no suitable definition provided for explicit template instantiation request - // 4786: identifer was truncated in debug information - // 4355: 'this' : used in base member initializer list - // 4910: '__declspec(dllexport)' and 'extern' are incompatible on an explicit instantiation -# pragma warning(disable: 4231 4250 4251 4275 4660 4661 4786 4355 4910) -#endif - -#ifdef __BORLANDC__ -// 8037: non-const function called for const object. needed to work around BCB2006 bug -# pragma warn -8037 -#endif - -#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || defined(_STLPORT_VERSION) -#define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION -#endif - -#ifndef CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION -#define CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE -#endif - -#ifdef CRYPTOPP_DISABLE_X86ASM // for backwards compatibility: this macro had both meanings -#define CRYPTOPP_DISABLE_ASM -#define CRYPTOPP_DISABLE_SSE2 -#endif - -#if !defined(CRYPTOPP_DISABLE_ASM) && ((defined(_MSC_VER) && defined(_M_IX86)) || (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)))) - #define CRYPTOPP_X86_ASM_AVAILABLE - - #if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || CRYPTOPP_GCC_VERSION >= 30300) - #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 1 - #else - #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0 - #endif - - // SSSE3 was actually introduced in GNU as 2.17, which was released 6/23/2006, but we can't tell what version of binutils is installed. - // GCC 4.1.2 was released on 2/13/2007, so we'll use that as a proxy for the binutils version. - #if !defined(CRYPTOPP_DISABLE_SSSE3) && (_MSC_VER >= 1400 || CRYPTOPP_GCC_VERSION >= 40102) - #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 1 - #else - #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0 - #endif -#endif - -#if !defined(CRYPTOPP_DISABLE_ASM) && defined(_MSC_VER) && defined(_M_X64) - #define CRYPTOPP_X64_MASM_AVAILABLE -#endif - -#if !defined(CRYPTOPP_DISABLE_ASM) && defined(__GNUC__) && defined(__x86_64__) - #define CRYPTOPP_X64_ASM_AVAILABLE -#endif - -#if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || defined(__SSE2__)) - #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 1 -#else - #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 0 -#endif - -#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE || CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) - #define CRYPTOPP_BOOL_ALIGN16_ENABLED 1 -#else - #define CRYPTOPP_BOOL_ALIGN16_ENABLED 0 -#endif - -// how to allocate 16-byte aligned memory (for SSE2) -#if defined(CRYPTOPP_MSVC6PP_OR_LATER) - #define CRYPTOPP_MM_MALLOC_AVAILABLE -#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) - #define CRYPTOPP_MALLOC_ALIGNMENT_IS_16 -#elif defined(__linux__) || defined(__sun__) || defined(__CYGWIN__) - #define CRYPTOPP_MEMALIGN_AVAILABLE -#else - #define CRYPTOPP_NO_ALIGNED_ALLOC -#endif - -// how to disable inlining -#if defined(_MSC_VER) && _MSC_VER >= 1300 -# define CRYPTOPP_NOINLINE_DOTDOTDOT -# define CRYPTOPP_NOINLINE __declspec(noinline) -#elif defined(__GNUC__) -# define CRYPTOPP_NOINLINE_DOTDOTDOT -# define CRYPTOPP_NOINLINE __attribute__((noinline)) -#else -# define CRYPTOPP_NOINLINE_DOTDOTDOT ... -# define CRYPTOPP_NOINLINE -#endif - -// how to declare class constants -#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER) -# define CRYPTOPP_CONSTANT(x) enum {x}; -#else -# define CRYPTOPP_CONSTANT(x) static const int x; -#endif - -#if defined(_M_X64) || defined(__x86_64__) - #define CRYPTOPP_BOOL_X64 1 -#else - #define CRYPTOPP_BOOL_X64 0 -#endif - -// see http://predef.sourceforge.net/prearch.html -#if defined(_M_IX86) || defined(__i386__) || defined(__i386) || defined(_X86_) || defined(__I86__) || defined(__INTEL__) - #define CRYPTOPP_BOOL_X86 1 -#else - #define CRYPTOPP_BOOL_X86 0 -#endif - -#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86 || defined(__powerpc__) - #define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS -#endif - -#define CRYPTOPP_VERSION 560 - -// ***************** determine availability of OS features ******************** - -#ifndef NO_OS_DEPENDENCE - -#if defined(_WIN32) || defined(__CYGWIN__) -#define CRYPTOPP_WIN32_AVAILABLE -#endif - -#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__sun) -#define CRYPTOPP_UNIX_AVAILABLE -#endif - -#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE) -# define HIGHRES_TIMER_AVAILABLE -#endif - -#ifdef CRYPTOPP_UNIX_AVAILABLE -# define HAS_BERKELEY_STYLE_SOCKETS -#endif - -#ifdef CRYPTOPP_WIN32_AVAILABLE -# define HAS_WINDOWS_STYLE_SOCKETS -#endif - -#if defined(HIGHRES_TIMER_AVAILABLE) && (defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(HAS_WINDOWS_STYLE_SOCKETS)) -# define SOCKETS_AVAILABLE -#endif - -#if defined(HAS_WINDOWS_STYLE_SOCKETS) && (!defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(PREFER_WINDOWS_STYLE_SOCKETS)) -# define USE_WINDOWS_STYLE_SOCKETS -#else -# define USE_BERKELEY_STYLE_SOCKETS -#endif - -#if defined(HIGHRES_TIMER_AVAILABLE) && defined(CRYPTOPP_WIN32_AVAILABLE) && !defined(USE_BERKELEY_STYLE_SOCKETS) -# define WINDOWS_PIPES_AVAILABLE -#endif - -#if defined(CRYPTOPP_WIN32_AVAILABLE) && defined(USE_MS_CRYPTOAPI) -# define NONBLOCKING_RNG_AVAILABLE -# define OS_RNG_AVAILABLE -#endif - -#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING) -# define NONBLOCKING_RNG_AVAILABLE -# define BLOCKING_RNG_AVAILABLE -# define OS_RNG_AVAILABLE -# define HAS_PTHREADS -# define THREADS_AVAILABLE -#endif - -#ifdef CRYPTOPP_WIN32_AVAILABLE -# define HAS_WINTHREADS -# define THREADS_AVAILABLE -#endif - -#endif // NO_OS_DEPENDENCE - -// ***************** DLL related ******************** - -#ifdef CRYPTOPP_WIN32_AVAILABLE - -#ifdef CRYPTOPP_EXPORTS -#define CRYPTOPP_IS_DLL -#define CRYPTOPP_DLL __declspec(dllexport) -#elif defined(CRYPTOPP_IMPORTS) -#define CRYPTOPP_IS_DLL -#define CRYPTOPP_DLL __declspec(dllimport) -#else -#define CRYPTOPP_DLL -#endif - -#define CRYPTOPP_API __cdecl - -#else // CRYPTOPP_WIN32_AVAILABLE - -#define CRYPTOPP_DLL -#define CRYPTOPP_API - -#endif // CRYPTOPP_WIN32_AVAILABLE - -#if defined(__MWERKS__) -#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern class CRYPTOPP_DLL -#elif defined(__BORLANDC__) || defined(__SUNPRO_CC) -#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL -#else -#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern template class CRYPTOPP_DLL -#endif - -#if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_IMPORTS) -#define CRYPTOPP_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL -#else -#define CRYPTOPP_DLL_TEMPLATE_CLASS CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS -#endif - -#if defined(__MWERKS__) -#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern class -#elif defined(__BORLANDC__) || defined(__SUNPRO_CC) -#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS template class -#else -#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern template class -#endif - -#if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_EXPORTS) -#define CRYPTOPP_STATIC_TEMPLATE_CLASS template class -#else -#define CRYPTOPP_STATIC_TEMPLATE_CLASS CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS -#endif - -#endif diff --git a/src/cryptopp/cpu.cpp b/src/cryptopp/cpu.cpp deleted file mode 100644 index 8789dc3..0000000 --- a/src/cryptopp/cpu.cpp +++ /dev/null @@ -1,199 +0,0 @@ -// cpu.cpp - written and placed in the public domain by Wei Dai - -#include "pch.h" - -#ifndef CRYPTOPP_IMPORTS - -#include "cpu.h" -#include "misc.h" -#include - -#ifdef __GNUC__ -#include -#include -#endif - -#ifdef CRYPTOPP_MSVC6PP_OR_LATER -#include -#endif - -NAMESPACE_BEGIN(CryptoPP) - -#ifdef CRYPTOPP_X86_ASM_AVAILABLE - -#ifndef _MSC_VER -typedef void (*SigHandler)(int); - -static jmp_buf s_jmpNoCPUID; -static void SigIllHandlerCPUID(int) -{ - longjmp(s_jmpNoCPUID, 1); -} -#endif - -bool CpuId(word32 input, word32 *output) -{ -#ifdef _MSC_VER - __try - { - __asm - { - mov eax, input - cpuid - mov edi, output - mov [edi], eax - mov [edi+4], ebx - mov [edi+8], ecx - mov [edi+12], edx - } - } - __except (1) - { - return false; - } - return true; -#else - SigHandler oldHandler = signal(SIGILL, SigIllHandlerCPUID); - if (oldHandler == SIG_ERR) - return false; - - bool result = true; - if (setjmp(s_jmpNoCPUID)) - result = false; - else - { - __asm__ - ( - // save ebx in case -fPIC is being used -#if CRYPTOPP_BOOL_X86 - "push %%ebx; cpuid; mov %%ebx, %%edi; pop %%ebx" -#else - "pushq %%rbx; cpuid; mov %%ebx, %%edi; popq %%rbx" -#endif - : "=a" (output[0]), "=D" (output[1]), "=c" (output[2]), "=d" (output[3]) - : "a" (input) - ); - } - - signal(SIGILL, oldHandler); - return result; -#endif -} - -#if !CRYPTOPP_BOOL_X64 && !defined(_MSC_VER) && defined(__GNUC__) -static jmp_buf s_jmpNoSSE2; -static void SigIllHandlerSSE2(int) -{ - longjmp(s_jmpNoSSE2, 1); -} -#endif - -#elif _MSC_VER >= 1400 && CRYPTOPP_BOOL_X64 - -bool CpuId(word32 input, word32 *output) -{ - __cpuid((int *)output, input); - return true; -} - -#endif - -#ifdef CRYPTOPP_CPUID_AVAILABLE - -static bool TrySSE2() -{ -#if CRYPTOPP_BOOL_X64 - return true; -#elif defined(_MSC_VER) - __try - { -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE - AS2(por xmm0, xmm0) // executing SSE2 instruction -#elif CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE - __mm128i x = _mm_setzero_si128(); - return _mm_cvtsi128_si32(x) == 0; -#endif - } - __except (1) - { - return false; - } - return true; -#elif defined(__GNUC__) - SigHandler oldHandler = signal(SIGILL, SigIllHandlerSSE2); - if (oldHandler == SIG_ERR) - return false; - - bool result = true; - if (setjmp(s_jmpNoSSE2)) - result = false; - else - { -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE - __asm __volatile ("por %xmm0, %xmm0"); -#elif CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE - __mm128i x = _mm_setzero_si128(); - result = _mm_cvtsi128_si32(x) == 0; -#endif - } - - signal(SIGILL, oldHandler); - return result; -#else - return false; -#endif -} - -bool g_x86DetectionDone = false; -bool g_hasISSE = false, g_hasSSE2 = false, g_hasSSSE3 = false, g_hasMMX = false, g_isP4 = false; -word32 g_cacheLineSize = CRYPTOPP_L1_CACHE_LINE_SIZE; - -void DetectX86Features() -{ - word32 cpuid[4], cpuid1[4]; - if (!CpuId(0, cpuid)) - return; - if (!CpuId(1, cpuid1)) - return; - - g_hasMMX = (cpuid1[3] & (1 << 23)) != 0; - if ((cpuid1[3] & (1 << 26)) != 0) - g_hasSSE2 = TrySSE2(); - g_hasSSSE3 = g_hasSSE2 && (cpuid1[2] & (1<<9)); - - if ((cpuid1[3] & (1 << 25)) != 0) - g_hasISSE = true; - else - { - word32 cpuid2[4]; - CpuId(0x080000000, cpuid2); - if (cpuid2[0] >= 0x080000001) - { - CpuId(0x080000001, cpuid2); - g_hasISSE = (cpuid2[3] & (1 << 22)) != 0; - } - } - - std::swap(cpuid[2], cpuid[3]); - if (memcmp(cpuid+1, "GenuineIntel", 12) == 0) - { - g_isP4 = ((cpuid1[0] >> 8) & 0xf) == 0xf; - g_cacheLineSize = 8 * GETBYTE(cpuid1[1], 1); - } - else if (memcmp(cpuid+1, "AuthenticAMD", 12) == 0) - { - CpuId(0x80000005, cpuid); - g_cacheLineSize = GETBYTE(cpuid[2], 0); - } - - if (!g_cacheLineSize) - g_cacheLineSize = CRYPTOPP_L1_CACHE_LINE_SIZE; - - g_x86DetectionDone = true; -} - -#endif - -NAMESPACE_END - -#endif diff --git a/src/cryptopp/cpu.h b/src/cryptopp/cpu.h deleted file mode 100644 index 7f01dad..0000000 --- a/src/cryptopp/cpu.h +++ /dev/null @@ -1,263 +0,0 @@ -#ifndef CRYPTOPP_CPU_H -#define CRYPTOPP_CPU_H - -#ifdef CRYPTOPP_GENERATE_X64_MASM - -#define CRYPTOPP_X86_ASM_AVAILABLE -#define CRYPTOPP_BOOL_X64 1 -#define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 1 -#define NAMESPACE_END - -#else - -#include "config.h" - -#ifdef CRYPTOPP_MSVC6PP_OR_LATER - #include -#endif - -NAMESPACE_BEGIN(CryptoPP) - -#if defined(CRYPTOPP_X86_ASM_AVAILABLE) || (_MSC_VER >= 1400 && CRYPTOPP_BOOL_X64) - -#define CRYPTOPP_CPUID_AVAILABLE - -// these should not be used directly -extern CRYPTOPP_DLL bool g_x86DetectionDone; -extern CRYPTOPP_DLL bool g_hasSSE2; -extern CRYPTOPP_DLL bool g_hasISSE; -extern CRYPTOPP_DLL bool g_hasMMX; -extern CRYPTOPP_DLL bool g_hasSSSE3; -extern CRYPTOPP_DLL bool g_isP4; -extern CRYPTOPP_DLL word32 g_cacheLineSize; -CRYPTOPP_DLL void CRYPTOPP_API DetectX86Features(); - -CRYPTOPP_DLL bool CRYPTOPP_API CpuId(word32 input, word32 *output); - -#if CRYPTOPP_BOOL_X64 -inline bool HasSSE2() {return true;} -inline bool HasISSE() {return true;} -inline bool HasMMX() {return true;} -#else - -inline bool HasSSE2() -{ - if (!g_x86DetectionDone) - DetectX86Features(); - return g_hasSSE2; -} - -inline bool HasISSE() -{ - if (!g_x86DetectionDone) - DetectX86Features(); - return g_hasISSE; -} - -inline bool HasMMX() -{ - if (!g_x86DetectionDone) - DetectX86Features(); - return g_hasMMX; -} - -#endif - -inline bool HasSSSE3() -{ - if (!g_x86DetectionDone) - DetectX86Features(); - return g_hasSSSE3; -} - -inline bool IsP4() -{ - if (!g_x86DetectionDone) - DetectX86Features(); - return g_isP4; -} - -inline int GetCacheLineSize() -{ - if (!g_x86DetectionDone) - DetectX86Features(); - return g_cacheLineSize; -} - -#else - -inline int GetCacheLineSize() -{ - return CRYPTOPP_L1_CACHE_LINE_SIZE; -} - -inline bool HasSSSE3() {return false;} -inline bool IsP4() {return false;} - -// assume MMX and SSE2 if intrinsics are enabled -#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE || CRYPTOPP_BOOL_X64 -inline bool HasSSE2() {return true;} -inline bool HasISSE() {return true;} -inline bool HasMMX() {return true;} -#else -inline bool HasSSE2() {return false;} -inline bool HasISSE() {return false;} -inline bool HasMMX() {return false;} -#endif - -#endif // #ifdef CRYPTOPP_X86_ASM_AVAILABLE || _MSC_VER >= 1400 - -#endif - -#ifdef CRYPTOPP_GENERATE_X64_MASM - #define AS1(x) x*newline* - #define AS2(x, y) x, y*newline* - #define AS3(x, y, z) x, y, z*newline* - #define ASS(x, y, a, b, c, d) x, y, a*64+b*16+c*4+d*newline* - #define ASL(x) label##x:*newline* - #define ASJ(x, y, z) x label##y*newline* - #define ASC(x, y) x label##y*newline* - #define AS_HEX(y) 0##y##h -#elif defined(__GNUC__) - // define these in two steps to allow arguments to be expanded - #define GNU_AS1(x) #x ";" - #define GNU_AS2(x, y) #x ", " #y ";" - #define GNU_AS3(x, y, z) #x ", " #y ", " #z ";" - #define GNU_ASL(x) "\n" #x ":" - #define GNU_ASJ(x, y, z) #x " " #y #z ";" - #define AS1(x) GNU_AS1(x) - #define AS2(x, y) GNU_AS2(x, y) - #define AS3(x, y, z) GNU_AS3(x, y, z) - #define ASS(x, y, a, b, c, d) #x ", " #y ", " #a "*64+" #b "*16+" #c "*4+" #d ";" - #define ASL(x) GNU_ASL(x) - #define ASJ(x, y, z) GNU_ASJ(x, y, z) - #define ASC(x, y) #x " " #y ";" - #define CRYPTOPP_NAKED - #define AS_HEX(y) 0x##y -#else - #define AS1(x) __asm {x} - #define AS2(x, y) __asm {x, y} - #define AS3(x, y, z) __asm {x, y, z} - #define ASS(x, y, a, b, c, d) __asm {x, y, _MM_SHUFFLE(a, b, c, d)} - #define ASL(x) __asm {label##x:} - #define ASJ(x, y, z) __asm {x label##y} - #define ASC(x, y) __asm {x label##y} - #define CRYPTOPP_NAKED __declspec(naked) - #define AS_HEX(y) 0x##y -#endif - -#define IF0(y) -#define IF1(y) y - -#ifdef CRYPTOPP_GENERATE_X64_MASM -#define ASM_MOD(x, y) ((x) MOD (y)) -#define XMMWORD_PTR XMMWORD PTR -#else -// GNU assembler doesn't seem to have mod operator -#define ASM_MOD(x, y) ((x)-((x)/(y))*(y)) -// GAS 2.15 doesn't support XMMWORD PTR. it seems necessary only for MASM -#define XMMWORD_PTR -#endif - -#if CRYPTOPP_BOOL_X86 - #define AS_REG_1 ecx - #define AS_REG_2 edx - #define AS_REG_3 esi - #define AS_REG_4 edi - #define AS_REG_5 eax - #define AS_REG_6 ebx - #define AS_REG_7 ebp - #define AS_REG_1d ecx - #define AS_REG_2d edx - #define AS_REG_3d esi - #define AS_REG_4d edi - #define AS_REG_5d eax - #define AS_REG_6d ebx - #define AS_REG_7d ebp - #define WORD_SZ 4 - #define WORD_REG(x) e##x - #define WORD_PTR DWORD PTR - #define AS_PUSH_IF86(x) AS1(push e##x) - #define AS_POP_IF86(x) AS1(pop e##x) - #define AS_JCXZ jecxz -#elif CRYPTOPP_BOOL_X64 - #ifdef CRYPTOPP_GENERATE_X64_MASM - #define AS_REG_1 rcx - #define AS_REG_2 rdx - #define AS_REG_3 r8 - #define AS_REG_4 r9 - #define AS_REG_5 rax - #define AS_REG_6 r10 - #define AS_REG_7 r11 - #define AS_REG_1d ecx - #define AS_REG_2d edx - #define AS_REG_3d r8d - #define AS_REG_4d r9d - #define AS_REG_5d eax - #define AS_REG_6d r10d - #define AS_REG_7d r11d - #else - #define AS_REG_1 rdi - #define AS_REG_2 rsi - #define AS_REG_3 rdx - #define AS_REG_4 rcx - #define AS_REG_5 r8 - #define AS_REG_6 r9 - #define AS_REG_7 r10 - #define AS_REG_1d edi - #define AS_REG_2d esi - #define AS_REG_3d edx - #define AS_REG_4d ecx - #define AS_REG_5d r8d - #define AS_REG_6d r9d - #define AS_REG_7d r10d - #endif - #define WORD_SZ 8 - #define WORD_REG(x) r##x - #define WORD_PTR QWORD PTR - #define AS_PUSH_IF86(x) - #define AS_POP_IF86(x) - #define AS_JCXZ jrcxz -#endif - -// helper macro for stream cipher output -#define AS_XMM_OUTPUT4(labelPrefix, inputPtr, outputPtr, x0, x1, x2, x3, t, p0, p1, p2, p3, increment)\ - AS2( test inputPtr, inputPtr)\ - ASC( jz, labelPrefix##3)\ - AS2( test inputPtr, 15)\ - ASC( jnz, labelPrefix##7)\ - AS2( pxor xmm##x0, [inputPtr+p0*16])\ - AS2( pxor xmm##x1, [inputPtr+p1*16])\ - AS2( pxor xmm##x2, [inputPtr+p2*16])\ - AS2( pxor xmm##x3, [inputPtr+p3*16])\ - AS2( add inputPtr, increment*16)\ - ASC( jmp, labelPrefix##3)\ - ASL(labelPrefix##7)\ - AS2( movdqu xmm##t, [inputPtr+p0*16])\ - AS2( pxor xmm##x0, xmm##t)\ - AS2( movdqu xmm##t, [inputPtr+p1*16])\ - AS2( pxor xmm##x1, xmm##t)\ - AS2( movdqu xmm##t, [inputPtr+p2*16])\ - AS2( pxor xmm##x2, xmm##t)\ - AS2( movdqu xmm##t, [inputPtr+p3*16])\ - AS2( pxor xmm##x3, xmm##t)\ - AS2( add inputPtr, increment*16)\ - ASL(labelPrefix##3)\ - AS2( test outputPtr, 15)\ - ASC( jnz, labelPrefix##8)\ - AS2( movdqa [outputPtr+p0*16], xmm##x0)\ - AS2( movdqa [outputPtr+p1*16], xmm##x1)\ - AS2( movdqa [outputPtr+p2*16], xmm##x2)\ - AS2( movdqa [outputPtr+p3*16], xmm##x3)\ - ASC( jmp, labelPrefix##9)\ - ASL(labelPrefix##8)\ - AS2( movdqu [outputPtr+p0*16], xmm##x0)\ - AS2( movdqu [outputPtr+p1*16], xmm##x1)\ - AS2( movdqu [outputPtr+p2*16], xmm##x2)\ - AS2( movdqu [outputPtr+p3*16], xmm##x3)\ - ASL(labelPrefix##9)\ - AS2( add outputPtr, increment*16) - -NAMESPACE_END - -#endif diff --git a/src/cryptopp/cryptlib.h b/src/cryptopp/cryptlib.h deleted file mode 100644 index 15cd6da..0000000 --- a/src/cryptopp/cryptlib.h +++ /dev/null @@ -1,1668 +0,0 @@ -// cryptlib.h - written and placed in the public domain by Wei Dai -/*! \file - This file contains the declarations for the abstract base - classes that provide a uniform interface to this library. -*/ - -/*! \mainpage Crypto++ Library 5.6.0 API Reference -
-
Abstract Base Classes
- cryptlib.h -
Authenticated Encryption
- AuthenticatedSymmetricCipherDocumentation -
Symmetric Ciphers
- SymmetricCipherDocumentation -
Hash Functions
- SHA1, SHA224, SHA256, SHA384, SHA512, Tiger, Whirlpool, RIPEMD160, RIPEMD320, RIPEMD128, RIPEMD256, Weak1::MD2, Weak1::MD4, Weak1::MD5 -
Non-Cryptographic Checksums
- CRC32, Adler32 -
Message Authentication Codes
- VMAC, HMAC, CBC_MAC, CMAC, DMAC, TTMAC, GCM (GMAC) -
Random Number Generators
- NullRNG(), LC_RNG, RandomPool, BlockingRng, NonblockingRng, AutoSeededRandomPool, AutoSeededX917RNG, DefaultAutoSeededRNG -
Password-based Cryptography
- PasswordBasedKeyDerivationFunction -
Public Key Cryptosystems
- DLIES, ECIES, LUCES, RSAES, RabinES, LUC_IES -
Public Key Signature Schemes
- DSA, GDSA, ECDSA, NR, ECNR, LUCSS, RSASS, RSASS_ISO, RabinSS, RWSS, ESIGN -
Key Agreement
- #DH, DH2, #MQV, ECDH, ECMQV, XTR_DH -
Algebraic Structures
- Integer, PolynomialMod2, PolynomialOver, RingOfPolynomialsOver, - ModularArithmetic, MontgomeryRepresentation, GFP2_ONB, - GF2NP, GF256, GF2_32, EC2N, ECP -
Secret Sharing and Information Dispersal
- SecretSharing, SecretRecovery, InformationDispersal, InformationRecovery -
Compression
- Deflator, Inflator, Gzip, Gunzip, ZlibCompressor, ZlibDecompressor -
Input Source Classes
- StringSource, ArraySource, FileSource, SocketSource, WindowsPipeSource, RandomNumberSource -
Output Sink Classes
- StringSinkTemplate, ArraySink, FileSink, SocketSink, WindowsPipeSink, RandomNumberSink -
Filter Wrappers
- StreamTransformationFilter, HashFilter, HashVerificationFilter, SignerFilter, SignatureVerificationFilter -
Binary to Text Encoders and Decoders
- HexEncoder, HexDecoder, Base64Encoder, Base64Decoder, Base32Encoder, Base32Decoder -
Wrappers for OS features
- Timer, Socket, WindowsHandle, ThreadLocalStorage, ThreadUserTimer -
FIPS 140 related
- fips140.h -
- -In the FIPS 140-2 validated DLL version of Crypto++, only the following implementation class are available. -
-
Block Ciphers
- AES, DES_EDE2, DES_EDE3, SKIPJACK -
Cipher Modes (replace template parameter BC with one of the block ciphers above)
- ECB_Mode\, CTR_Mode\, CBC_Mode\, CFB_FIPS_Mode\, OFB_Mode\ -
Hash Functions
- SHA1, SHA224, SHA256, SHA384, SHA512 -
Public Key Signature Schemes (replace template parameter H with one of the hash functions above)
- RSASS\, RSASS\, RSASS_ISO\, RWSS\, DSA, ECDSA\, ECDSA\ -
Message Authentication Codes (replace template parameter H with one of the hash functions above)
- HMAC\, CBC_MAC\, CBC_MAC\ -
Random Number Generators
- DefaultAutoSeededRNG (AutoSeededX917RNG\) -
Key Agreement
- #DH -
Public Key Cryptosystems
- RSAES\ \> -
- -

This reference manual is a work in progress. Some classes are still lacking detailed descriptions. -

Click here to download a zip archive containing this manual. -

Thanks to Ryan Phillips for providing the Doxygen configuration file -and getting me started with this manual. -*/ - -#ifndef CRYPTOPP_CRYPTLIB_H -#define CRYPTOPP_CRYPTLIB_H - -#include "config.h" -#include "stdcpp.h" - -NAMESPACE_BEGIN(CryptoPP) - -// forward declarations -class Integer; -class RandomNumberGenerator; -class BufferedTransformation; - -//! used to specify a direction for a cipher to operate in (encrypt or decrypt) -enum CipherDir {ENCRYPTION, DECRYPTION}; - -//! used to represent infinite time -const unsigned long INFINITE_TIME = ULONG_MAX; - -// VC60 workaround: using enums as template parameters causes problems -template -struct EnumToType -{ - static ENUM_TYPE ToEnum() {return (ENUM_TYPE)VALUE;} -}; - -enum ByteOrder {LITTLE_ENDIAN_ORDER = 0, BIG_ENDIAN_ORDER = 1}; -typedef EnumToType LittleEndian; -typedef EnumToType BigEndian; - -//! base class for all exceptions thrown by Crypto++ -class CRYPTOPP_DLL Exception : public std::exception -{ -public: - //! error types - enum ErrorType { - //! a method is not implemented - NOT_IMPLEMENTED, - //! invalid function argument - INVALID_ARGUMENT, - //! BufferedTransformation received a Flush(true) signal but can't flush buffers - CANNOT_FLUSH, - //! data integerity check (such as CRC or MAC) failed - DATA_INTEGRITY_CHECK_FAILED, - //! received input data that doesn't conform to expected format - INVALID_DATA_FORMAT, - //! error reading from input device or writing to output device - IO_ERROR, - //! some error not belong to any of the above categories - OTHER_ERROR - }; - - explicit Exception(ErrorType errorType, const std::string &s) : m_errorType(errorType), m_what(s) {} - virtual ~Exception() throw() {} - const char *what() const throw() {return (m_what.c_str());} - const std::string &GetWhat() const {return m_what;} - void SetWhat(const std::string &s) {m_what = s;} - ErrorType GetErrorType() const {return m_errorType;} - void SetErrorType(ErrorType errorType) {m_errorType = errorType;} - -private: - ErrorType m_errorType; - std::string m_what; -}; - -//! exception thrown when an invalid argument is detected -class CRYPTOPP_DLL InvalidArgument : public Exception -{ -public: - explicit InvalidArgument(const std::string &s) : Exception(INVALID_ARGUMENT, s) {} -}; - -//! exception thrown when input data is received that doesn't conform to expected format -class CRYPTOPP_DLL InvalidDataFormat : public Exception -{ -public: - explicit InvalidDataFormat(const std::string &s) : Exception(INVALID_DATA_FORMAT, s) {} -}; - -//! exception thrown by decryption filters when trying to decrypt an invalid ciphertext -class CRYPTOPP_DLL InvalidCiphertext : public InvalidDataFormat -{ -public: - explicit InvalidCiphertext(const std::string &s) : InvalidDataFormat(s) {} -}; - -//! exception thrown by a class if a non-implemented method is called -class CRYPTOPP_DLL NotImplemented : public Exception -{ -public: - explicit NotImplemented(const std::string &s) : Exception(NOT_IMPLEMENTED, s) {} -}; - -//! exception thrown by a class when Flush(true) is called but it can't completely flush its buffers -class CRYPTOPP_DLL CannotFlush : public Exception -{ -public: - explicit CannotFlush(const std::string &s) : Exception(CANNOT_FLUSH, s) {} -}; - -//! error reported by the operating system -class CRYPTOPP_DLL OS_Error : public Exception -{ -public: - OS_Error(ErrorType errorType, const std::string &s, const std::string& operation, int errorCode) - : Exception(errorType, s), m_operation(operation), m_errorCode(errorCode) {} - ~OS_Error() throw() {} - - // the operating system API that reported the error - const std::string & GetOperation() const {return m_operation;} - // the error code return by the operating system - int GetErrorCode() const {return m_errorCode;} - -protected: - std::string m_operation; - int m_errorCode; -}; - -//! used to return decoding results -struct CRYPTOPP_DLL DecodingResult -{ - explicit DecodingResult() : isValidCoding(false), messageLength(0) {} - explicit DecodingResult(size_t len) : isValidCoding(true), messageLength(len) {} - - bool operator==(const DecodingResult &rhs) const {return isValidCoding == rhs.isValidCoding && messageLength == rhs.messageLength;} - bool operator!=(const DecodingResult &rhs) const {return !operator==(rhs);} - - bool isValidCoding; - size_t messageLength; - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY - operator size_t() const {return isValidCoding ? messageLength : 0;} -#endif -}; - -//! interface for retrieving values given their names -/*! \note This class is used to safely pass a variable number of arbitrarily typed arguments to functions - and to read values from keys and crypto parameters. - \note To obtain an object that implements NameValuePairs for the purpose of parameter - passing, use the MakeParameters() function. - \note To get a value from NameValuePairs, you need to know the name and the type of the value. - Call GetValueNames() on a NameValuePairs object to obtain a list of value names that it supports. - Then look at the Name namespace documentation to see what the type of each value is, or - alternatively, call GetIntValue() with the value name, and if the type is not int, a - ValueTypeMismatch exception will be thrown and you can get the actual type from the exception object. -*/ -class CRYPTOPP_NO_VTABLE NameValuePairs -{ -public: - virtual ~NameValuePairs() {} - - //! exception thrown when trying to retrieve a value using a different type than expected - class CRYPTOPP_DLL ValueTypeMismatch : public InvalidArgument - { - public: - ValueTypeMismatch(const std::string &name, const std::type_info &stored, const std::type_info &retrieving) - : InvalidArgument("NameValuePairs: type mismatch for '" + name + "', stored '" + stored.name() + "', trying to retrieve '" + retrieving.name() + "'") - , m_stored(stored), m_retrieving(retrieving) {} - - const std::type_info & GetStoredTypeInfo() const {return m_stored;} - const std::type_info & GetRetrievingTypeInfo() const {return m_retrieving;} - - private: - const std::type_info &m_stored; - const std::type_info &m_retrieving; - }; - - //! get a copy of this object or a subobject of it - template - bool GetThisObject(T &object) const - { - return GetValue((std::string("ThisObject:")+typeid(T).name()).c_str(), object); - } - - //! get a pointer to this object, as a pointer to T - template - bool GetThisPointer(T *&p) const - { - return GetValue((std::string("ThisPointer:")+typeid(T).name()).c_str(), p); - } - - //! get a named value, returns true if the name exists - template - bool GetValue(const char *name, T &value) const - { - return GetVoidValue(name, typeid(T), &value); - } - - //! get a named value, returns the default if the name doesn't exist - template - T GetValueWithDefault(const char *name, T defaultValue) const - { - GetValue(name, defaultValue); - return defaultValue; - } - - //! get a list of value names that can be retrieved - CRYPTOPP_DLL std::string GetValueNames() const - {std::string result; GetValue("ValueNames", result); return result;} - - //! get a named value with type int - /*! used to ensure we don't accidentally try to get an unsigned int - or some other type when we mean int (which is the most common case) */ - CRYPTOPP_DLL bool GetIntValue(const char *name, int &value) const - {return GetValue(name, value);} - - //! get a named value with type int, with default - CRYPTOPP_DLL int GetIntValueWithDefault(const char *name, int defaultValue) const - {return GetValueWithDefault(name, defaultValue);} - - //! used by derived classes to check for type mismatch - CRYPTOPP_DLL static void CRYPTOPP_API ThrowIfTypeMismatch(const char *name, const std::type_info &stored, const std::type_info &retrieving) - {if (stored != retrieving) throw ValueTypeMismatch(name, stored, retrieving);} - - template - void GetRequiredParameter(const char *className, const char *name, T &value) const - { - if (!GetValue(name, value)) - throw InvalidArgument(std::string(className) + ": missing required parameter '" + name + "'"); - } - - CRYPTOPP_DLL void GetRequiredIntParameter(const char *className, const char *name, int &value) const - { - if (!GetIntValue(name, value)) - throw InvalidArgument(std::string(className) + ": missing required parameter '" + name + "'"); - } - - //! to be implemented by derived classes, users should use one of the above functions instead - CRYPTOPP_DLL virtual bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const =0; -}; - -//! namespace containing value name definitions -/*! value names, types and semantics: - - ThisObject:ClassName (ClassName, copy of this object or a subobject) - ThisPointer:ClassName (const ClassName *, pointer to this object or a subobject) -*/ -DOCUMENTED_NAMESPACE_BEGIN(Name) -// more names defined in argnames.h -DOCUMENTED_NAMESPACE_END - -//! empty set of name-value pairs -class CRYPTOPP_DLL NullNameValuePairs : public NameValuePairs -{ -public: - bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const {return false;} -}; - -//! _ -extern CRYPTOPP_DLL const NullNameValuePairs g_nullNameValuePairs; - -// ******************************************************** - -//! interface for cloning objects, this is not implemented by most classes yet -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Clonable -{ -public: - virtual ~Clonable() {} - //! this is not implemented by most classes yet - virtual Clonable* Clone() const {throw NotImplemented("Clone() is not implemented yet.");} // TODO: make this =0 -}; - -//! interface for all crypto algorithms - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Algorithm : public Clonable -{ -public: - /*! When FIPS 140-2 compliance is enabled and checkSelfTestStatus == true, - this constructor throws SelfTestFailure if the self test hasn't been run or fails. */ - Algorithm(bool checkSelfTestStatus = true); - //! returns name of this algorithm, not universally implemented yet - virtual std::string AlgorithmName() const {return "unknown";} -}; - -//! keying interface for crypto algorithms that take byte strings as keys -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE SimpleKeyingInterface -{ -public: - virtual ~SimpleKeyingInterface() {} - - //! returns smallest valid key length in bytes */ - virtual size_t MinKeyLength() const =0; - //! returns largest valid key length in bytes */ - virtual size_t MaxKeyLength() const =0; - //! returns default (recommended) key length in bytes */ - virtual size_t DefaultKeyLength() const =0; - - //! returns the smallest valid key length in bytes that is >= min(n, GetMaxKeyLength()) - virtual size_t GetValidKeyLength(size_t n) const =0; - - //! returns whether n is a valid key length - virtual bool IsValidKeyLength(size_t n) const - {return n == GetValidKeyLength(n);} - - //! set or reset the key of this object - /*! \param params is used to specify Rounds, BlockSize, etc. */ - virtual void SetKey(const byte *key, size_t length, const NameValuePairs ¶ms = g_nullNameValuePairs); - - //! calls SetKey() with an NameValuePairs object that just specifies "Rounds" - void SetKeyWithRounds(const byte *key, size_t length, int rounds); - - //! calls SetKey() with an NameValuePairs object that just specifies "IV" - void SetKeyWithIV(const byte *key, size_t length, const byte *iv, size_t ivLength); - - //! calls SetKey() with an NameValuePairs object that just specifies "IV" - void SetKeyWithIV(const byte *key, size_t length, const byte *iv) - {SetKeyWithIV(key, length, iv, IVSize());} - - enum IV_Requirement {UNIQUE_IV = 0, RANDOM_IV, UNPREDICTABLE_RANDOM_IV, INTERNALLY_GENERATED_IV, NOT_RESYNCHRONIZABLE}; - //! returns the minimal requirement for secure IVs - virtual IV_Requirement IVRequirement() const =0; - - //! returns whether this object can be resynchronized (i.e. supports initialization vectors) - /*! If this function returns true, and no IV is passed to SetKey() and CanUseStructuredIVs()==true, an IV of all 0's will be assumed. */ - bool IsResynchronizable() const {return IVRequirement() < NOT_RESYNCHRONIZABLE;} - //! returns whether this object can use random IVs (in addition to ones returned by GetNextIV) - bool CanUseRandomIVs() const {return IVRequirement() <= UNPREDICTABLE_RANDOM_IV;} - //! returns whether this object can use random but possibly predictable IVs (in addition to ones returned by GetNextIV) - bool CanUsePredictableIVs() const {return IVRequirement() <= RANDOM_IV;} - //! returns whether this object can use structured IVs, for example a counter (in addition to ones returned by GetNextIV) - bool CanUseStructuredIVs() const {return IVRequirement() <= UNIQUE_IV;} - - virtual unsigned int IVSize() const {throw NotImplemented(GetAlgorithm().AlgorithmName() + ": this object doesn't support resynchronization");} - //! returns default length of IVs accepted by this object - unsigned int DefaultIVLength() const {return IVSize();} - //! returns minimal length of IVs accepted by this object - virtual unsigned int MinIVLength() const {return IVSize();} - //! returns maximal length of IVs accepted by this object - virtual unsigned int MaxIVLength() const {return IVSize();} - //! resynchronize with an IV. ivLength=-1 means use IVSize() - virtual void Resynchronize(const byte *iv, int ivLength=-1) {throw NotImplemented(GetAlgorithm().AlgorithmName() + ": this object doesn't support resynchronization");} - //! get a secure IV for the next message - /*! This method should be called after you finish encrypting one message and are ready to start the next one. - After calling it, you must call SetKey() or Resynchronize() before using this object again. - This method is not implemented on decryption objects. */ - virtual void GetNextIV(RandomNumberGenerator &rng, byte *IV); - -protected: - virtual const Algorithm & GetAlgorithm() const =0; - virtual void UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms) =0; - - void ThrowIfInvalidKeyLength(size_t length); - void ThrowIfResynchronizable(); // to be called when no IV is passed - void ThrowIfInvalidIV(const byte *iv); // check for NULL IV if it can't be used - size_t ThrowIfInvalidIVLength(int size); - const byte * GetIVAndThrowIfInvalid(const NameValuePairs ¶ms, size_t &size); - inline void AssertValidKeyLength(size_t length) const - {assert(IsValidKeyLength(length));} -}; - -//! interface for the data processing part of block ciphers - -/*! Classes derived from BlockTransformation are block ciphers - in ECB mode (for example the DES::Encryption class), which are stateless. - These classes should not be used directly, but only in combination with - a mode class (see CipherModeDocumentation in modes.h). -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE BlockTransformation : public Algorithm -{ -public: - //! encrypt or decrypt inBlock, xor with xorBlock, and write to outBlock - virtual void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const =0; - - //! encrypt or decrypt one block - /*! \pre size of inBlock and outBlock == BlockSize() */ - void ProcessBlock(const byte *inBlock, byte *outBlock) const - {ProcessAndXorBlock(inBlock, NULL, outBlock);} - - //! encrypt or decrypt one block in place - void ProcessBlock(byte *inoutBlock) const - {ProcessAndXorBlock(inoutBlock, NULL, inoutBlock);} - - //! block size of the cipher in bytes - virtual unsigned int BlockSize() const =0; - - //! returns how inputs and outputs should be aligned for optimal performance - virtual unsigned int OptimalDataAlignment() const; - - //! returns true if this is a permutation (i.e. there is an inverse transformation) - virtual bool IsPermutation() const {return true;} - - //! returns true if this is an encryption object - virtual bool IsForwardTransformation() const =0; - - //! return number of blocks that can be processed in parallel, for bit-slicing implementations - virtual unsigned int OptimalNumberOfParallelBlocks() const {return 1;} - - enum {BT_InBlockIsCounter=1, BT_DontIncrementInOutPointers=2, BT_XorInput=4, BT_ReverseDirection=8} FlagsForAdvancedProcessBlocks; - - //! encrypt and xor blocks according to flags (see FlagsForAdvancedProcessBlocks) - /*! /note If BT_InBlockIsCounter is set, last byte of inBlocks may be modified. */ - virtual size_t AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) const; - - inline CipherDir GetCipherDirection() const {return IsForwardTransformation() ? ENCRYPTION : DECRYPTION;} -}; - -//! interface for the data processing part of stream ciphers - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE StreamTransformation : public Algorithm -{ -public: - //! return a reference to this object, - /*! This function is useful for passing a temporary StreamTransformation object to a - function that takes a non-const reference. */ - StreamTransformation& Ref() {return *this;} - - //! returns block size, if input must be processed in blocks, otherwise 1 - virtual unsigned int MandatoryBlockSize() const {return 1;} - - //! returns the input block size that is most efficient for this cipher - /*! \note optimal input length is n * OptimalBlockSize() - GetOptimalBlockSizeUsed() for any n > 0 */ - virtual unsigned int OptimalBlockSize() const {return MandatoryBlockSize();} - //! returns how much of the current block is used up - virtual unsigned int GetOptimalBlockSizeUsed() const {return 0;} - - //! returns how input should be aligned for optimal performance - virtual unsigned int OptimalDataAlignment() const; - - //! encrypt or decrypt an array of bytes of specified length - /*! \note either inString == outString, or they don't overlap */ - virtual void ProcessData(byte *outString, const byte *inString, size_t length) =0; - - //! for ciphers where the last block of data is special, encrypt or decrypt the last block of data - /*! For now the only use of this function is for CBC-CTS mode. */ - virtual void ProcessLastBlock(byte *outString, const byte *inString, size_t length); - //! returns the minimum size of the last block, 0 indicating the last block is not special - virtual unsigned int MinLastBlockSize() const {return 0;} - - //! same as ProcessData(inoutString, inoutString, length) - inline void ProcessString(byte *inoutString, size_t length) - {ProcessData(inoutString, inoutString, length);} - //! same as ProcessData(outString, inString, length) - inline void ProcessString(byte *outString, const byte *inString, size_t length) - {ProcessData(outString, inString, length);} - //! implemented as {ProcessData(&input, &input, 1); return input;} - inline byte ProcessByte(byte input) - {ProcessData(&input, &input, 1); return input;} - - //! returns whether this cipher supports random access - virtual bool IsRandomAccess() const =0; - //! for random access ciphers, seek to an absolute position - virtual void Seek(lword n) - { - assert(!IsRandomAccess()); - throw NotImplemented("StreamTransformation: this object doesn't support random access"); - } - - //! returns whether this transformation is self-inverting (e.g. xor with a keystream) - virtual bool IsSelfInverting() const =0; - //! returns whether this is an encryption object - virtual bool IsForwardTransformation() const =0; -}; - -//! interface for hash functions and data processing part of MACs - -/*! HashTransformation objects are stateful. They are created in an initial state, - change state as Update() is called, and return to the initial - state when Final() is called. This interface allows a large message to - be hashed in pieces by calling Update() on each piece followed by - calling Final(). -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE HashTransformation : public Algorithm -{ -public: - //! return a reference to this object, - /*! This function is useful for passing a temporary HashTransformation object to a - function that takes a non-const reference. */ - HashTransformation& Ref() {return *this;} - - //! process more input - virtual void Update(const byte *input, size_t length) =0; - - //! request space to write input into - virtual byte * CreateUpdateSpace(size_t &size) {size=0; return NULL;} - - //! compute hash for current message, then restart for a new message - /*! \pre size of digest == DigestSize(). */ - virtual void Final(byte *digest) - {TruncatedFinal(digest, DigestSize());} - - //! discard the current state, and restart with a new message - virtual void Restart() - {TruncatedFinal(NULL, 0);} - - //! size of the hash/digest/MAC returned by Final() - virtual unsigned int DigestSize() const =0; - - //! same as DigestSize() - unsigned int TagSize() const {return DigestSize();} - - - //! block size of underlying compression function, or 0 if not block based - virtual unsigned int BlockSize() const {return 0;} - - //! input to Update() should have length a multiple of this for optimal speed - virtual unsigned int OptimalBlockSize() const {return 1;} - - //! returns how input should be aligned for optimal performance - virtual unsigned int OptimalDataAlignment() const; - - //! use this if your input is in one piece and you don't want to call Update() and Final() separately - virtual void CalculateDigest(byte *digest, const byte *input, size_t length) - {Update(input, length); Final(digest);} - - //! verify that digest is a valid digest for the current message, then reinitialize the object - /*! Default implementation is to call Final() and do a bitwise comparison - between its output and digest. */ - virtual bool Verify(const byte *digest) - {return TruncatedVerify(digest, DigestSize());} - - //! use this if your input is in one piece and you don't want to call Update() and Verify() separately - virtual bool VerifyDigest(const byte *digest, const byte *input, size_t length) - {Update(input, length); return Verify(digest);} - - //! truncated version of Final() - virtual void TruncatedFinal(byte *digest, size_t digestSize) =0; - - //! truncated version of CalculateDigest() - virtual void CalculateTruncatedDigest(byte *digest, size_t digestSize, const byte *input, size_t length) - {Update(input, length); TruncatedFinal(digest, digestSize);} - - //! truncated version of Verify() - virtual bool TruncatedVerify(const byte *digest, size_t digestLength); - - //! truncated version of VerifyDigest() - virtual bool VerifyTruncatedDigest(const byte *digest, size_t digestLength, const byte *input, size_t length) - {Update(input, length); return TruncatedVerify(digest, digestLength);} - -protected: - void ThrowIfInvalidTruncatedSize(size_t size) const; -}; - -typedef HashTransformation HashFunction; - -//! interface for one direction (encryption or decryption) of a block cipher -/*! \note These objects usually should not be used directly. See BlockTransformation for more details. */ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE BlockCipher : public SimpleKeyingInterface, public BlockTransformation -{ -protected: - const Algorithm & GetAlgorithm() const {return *this;} -}; - -//! interface for one direction (encryption or decryption) of a stream cipher or cipher mode -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE SymmetricCipher : public SimpleKeyingInterface, public StreamTransformation -{ -protected: - const Algorithm & GetAlgorithm() const {return *this;} -}; - -//! interface for message authentication codes -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE MessageAuthenticationCode : public SimpleKeyingInterface, public HashTransformation -{ -protected: - const Algorithm & GetAlgorithm() const {return *this;} -}; - -//! interface for for one direction (encryption or decryption) of a stream cipher or block cipher mode with authentication -/*! The StreamTransformation part of this interface is used to encrypt/decrypt the data, and the MessageAuthenticationCode part of this - interface is used to input additional authenticated data (AAD, which is MAC'ed but not encrypted), and to generate/verify the MAC. */ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE AuthenticatedSymmetricCipher : public MessageAuthenticationCode, public StreamTransformation -{ -public: - //! this indicates that a member function was called in the wrong state, for example trying to encrypt a message before having set the key or IV - class BadState : public Exception - { - public: - explicit BadState(const std::string &name, const char *message) : Exception(OTHER_ERROR, name + ": " + message) {} - explicit BadState(const std::string &name, const char *function, const char *state) : Exception(OTHER_ERROR, name + ": " + function + " was called before " + state) {} - }; - - //! the maximum length of AAD that can be input before the encrypted data - virtual lword MaxHeaderLength() const =0; - //! the maximum length of encrypted data - virtual lword MaxMessageLength() const =0; - //! the maximum length of AAD that can be input after the encrypted data - virtual lword MaxFooterLength() const {return 0;} - //! if this function returns true, SpecifyDataLengths() must be called before attempting to input data - /*! This is the case for some schemes, such as CCM. */ - virtual bool NeedsPrespecifiedDataLengths() const {return false;} - //! this function only needs to be called if NeedsPrespecifiedDataLengths() returns true - void SpecifyDataLengths(lword headerLength, lword messageLength, lword footerLength=0); - //! encrypt and generate MAC in one call. will truncate MAC if macSize < TagSize() - virtual void EncryptAndAuthenticate(byte *ciphertext, byte *mac, size_t macSize, const byte *iv, int ivLength, const byte *header, size_t headerLength, const byte *message, size_t messageLength); - //! decrypt and verify MAC in one call, returning true iff MAC is valid. will assume MAC is truncated if macLength < TagSize() - virtual bool DecryptAndVerify(byte *message, const byte *mac, size_t macLength, const byte *iv, int ivLength, const byte *header, size_t headerLength, const byte *ciphertext, size_t ciphertextLength); - - // redeclare this to avoid compiler ambiguity errors - virtual std::string AlgorithmName() const =0; - -protected: - const Algorithm & GetAlgorithm() const {return *static_cast(this);} - virtual void UncheckedSpecifyDataLengths(lword headerLength, lword messageLength, lword footerLength) {} -}; - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY -typedef SymmetricCipher StreamCipher; -#endif - -//! interface for random number generators -/*! All return values are uniformly distributed over the range specified. -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE RandomNumberGenerator : public Algorithm -{ -public: - //! update RNG state with additional unpredictable values - virtual void IncorporateEntropy(const byte *input, size_t length) {throw NotImplemented("RandomNumberGenerator: IncorporateEntropy not implemented");} - - //! returns true if IncorporateEntropy is implemented - virtual bool CanIncorporateEntropy() const {return false;} - - //! generate new random byte and return it - virtual byte GenerateByte(); - - //! generate new random bit and return it - /*! Default implementation is to call GenerateByte() and return its lowest bit. */ - virtual unsigned int GenerateBit(); - - //! generate a random 32 bit word in the range min to max, inclusive - virtual word32 GenerateWord32(word32 a=0, word32 b=0xffffffffL); - - //! generate random array of bytes - virtual void GenerateBlock(byte *output, size_t size); - - //! generate and discard n bytes - virtual void DiscardBytes(size_t n); - - //! generate random bytes as input to a BufferedTransformation - virtual void GenerateIntoBufferedTransformation(BufferedTransformation &target, const std::string &channel, lword length); - - //! randomly shuffle the specified array, resulting permutation is uniformly distributed - template void Shuffle(IT begin, IT end) - { - for (; begin != end; ++begin) - std::iter_swap(begin, begin + GenerateWord32(0, end-begin-1)); - } - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY - byte GetByte() {return GenerateByte();} - unsigned int GetBit() {return GenerateBit();} - word32 GetLong(word32 a=0, word32 b=0xffffffffL) {return GenerateWord32(a, b);} - word16 GetShort(word16 a=0, word16 b=0xffff) {return (word16)GenerateWord32(a, b);} - void GetBlock(byte *output, size_t size) {GenerateBlock(output, size);} -#endif -}; - -//! returns a reference that can be passed to functions that ask for a RNG but doesn't actually use it -CRYPTOPP_DLL RandomNumberGenerator & CRYPTOPP_API NullRNG(); - -class WaitObjectContainer; -class CallStack; - -//! interface for objects that you can wait for - -class CRYPTOPP_NO_VTABLE Waitable -{ -public: - virtual ~Waitable() {} - - //! maximum number of wait objects that this object can return - virtual unsigned int GetMaxWaitObjectCount() const =0; - //! put wait objects into container - /*! \param callStack is used for tracing no wait loops, example: - something.GetWaitObjects(c, CallStack("my func after X", 0)); - - or in an outer GetWaitObjects() method that itself takes a callStack parameter: - innerThing.GetWaitObjects(c, CallStack("MyClass::GetWaitObjects at X", &callStack)); */ - virtual void GetWaitObjects(WaitObjectContainer &container, CallStack const& callStack) =0; - //! wait on this object - /*! same as creating an empty container, calling GetWaitObjects(), and calling Wait() on the container */ - bool Wait(unsigned long milliseconds, CallStack const& callStack); -}; - -//! the default channel for BufferedTransformation, equal to the empty string -extern CRYPTOPP_DLL const std::string DEFAULT_CHANNEL; - -//! channel for additional authenticated data, equal to "AAD" -extern CRYPTOPP_DLL const std::string AAD_CHANNEL; - -//! interface for buffered transformations - -/*! BufferedTransformation is a generalization of BlockTransformation, - StreamTransformation, and HashTransformation. - - A buffered transformation is an object that takes a stream of bytes - as input (this may be done in stages), does some computation on them, and - then places the result into an internal buffer for later retrieval. Any - partial result already in the output buffer is not modified by further - input. - - If a method takes a "blocking" parameter, and you - pass "false" for it, the method will return before all input has been processed if - the input cannot be processed without waiting (for network buffers to become available, for example). - In this case the method will return true - or a non-zero integer value. When this happens you must continue to call the method with the same - parameters until it returns false or zero, before calling any other method on it or - attached BufferedTransformation. The integer return value in this case is approximately - the number of bytes left to be processed, and can be used to implement a progress bar. - - For functions that take a "propagation" parameter, propagation != 0 means pass on the signal to attached - BufferedTransformation objects, with propagation decremented at each step until it reaches 0. - -1 means unlimited propagation. - - \nosubgrouping -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE BufferedTransformation : public Algorithm, public Waitable -{ -public: - // placed up here for CW8 - static const std::string &NULL_CHANNEL; // same as DEFAULT_CHANNEL, for backwards compatibility - - BufferedTransformation() : Algorithm(false) {} - - //! return a reference to this object - /*! This function is useful for passing a temporary BufferedTransformation object to a - function that takes a non-const reference. */ - BufferedTransformation& Ref() {return *this;} - - //! \name INPUT - //@{ - //! input a byte for processing - size_t Put(byte inByte, bool blocking=true) - {return Put(&inByte, 1, blocking);} - //! input multiple bytes - size_t Put(const byte *inString, size_t length, bool blocking=true) - {return Put2(inString, length, 0, blocking);} - - //! input a 16-bit word - size_t PutWord16(word16 value, ByteOrder order=BIG_ENDIAN_ORDER, bool blocking=true); - //! input a 32-bit word - size_t PutWord32(word32 value, ByteOrder order=BIG_ENDIAN_ORDER, bool blocking=true); - - //! request space which can be written into by the caller, and then used as input to Put() - /*! \param size is requested size (as a hint) for input, and size of the returned space for output */ - /*! \note The purpose of this method is to help avoid doing extra memory allocations. */ - virtual byte * CreatePutSpace(size_t &size) {size=0; return NULL;} - - virtual bool CanModifyInput() const {return false;} - - //! input multiple bytes that may be modified by callee - size_t PutModifiable(byte *inString, size_t length, bool blocking=true) - {return PutModifiable2(inString, length, 0, blocking);} - - bool MessageEnd(int propagation=-1, bool blocking=true) - {return !!Put2(NULL, 0, propagation < 0 ? -1 : propagation+1, blocking);} - size_t PutMessageEnd(const byte *inString, size_t length, int propagation=-1, bool blocking=true) - {return Put2(inString, length, propagation < 0 ? -1 : propagation+1, blocking);} - - //! input multiple bytes for blocking or non-blocking processing - /*! \param messageEnd means how many filters to signal MessageEnd to, including this one */ - virtual size_t Put2(const byte *inString, size_t length, int messageEnd, bool blocking) =0; - //! input multiple bytes that may be modified by callee for blocking or non-blocking processing - /*! \param messageEnd means how many filters to signal MessageEnd to, including this one */ - virtual size_t PutModifiable2(byte *inString, size_t length, int messageEnd, bool blocking) - {return Put2(inString, length, messageEnd, blocking);} - - //! thrown by objects that have not implemented nonblocking input processing - struct BlockingInputOnly : public NotImplemented - {BlockingInputOnly(const std::string &s) : NotImplemented(s + ": Nonblocking input is not implemented by this object.") {}}; - //@} - - //! \name WAITING - //@{ - unsigned int GetMaxWaitObjectCount() const; - void GetWaitObjects(WaitObjectContainer &container, CallStack const& callStack); - //@} - - //! \name SIGNALS - //@{ - virtual void IsolatedInitialize(const NameValuePairs ¶meters) {throw NotImplemented("BufferedTransformation: this object can't be reinitialized");} - virtual bool IsolatedFlush(bool hardFlush, bool blocking) =0; - virtual bool IsolatedMessageSeriesEnd(bool blocking) {return false;} - - //! initialize or reinitialize this object - virtual void Initialize(const NameValuePairs ¶meters=g_nullNameValuePairs, int propagation=-1); - //! flush buffered input and/or output - /*! \param hardFlush is used to indicate whether all data should be flushed - \note Hard flushes must be used with care. It means try to process and output everything, even if - there may not be enough data to complete the action. For example, hard flushing a HexDecoder would - cause an error if you do it after inputing an odd number of hex encoded characters. - For some types of filters, for example ZlibDecompressor, hard flushes can only - be done at "synchronization points". These synchronization points are positions in the data - stream that are created by hard flushes on the corresponding reverse filters, in this - example ZlibCompressor. This is useful when zlib compressed data is moved across a - network in packets and compression state is preserved across packets, as in the ssh2 protocol. - */ - virtual bool Flush(bool hardFlush, int propagation=-1, bool blocking=true); - //! mark end of a series of messages - /*! There should be a MessageEnd immediately before MessageSeriesEnd. */ - virtual bool MessageSeriesEnd(int propagation=-1, bool blocking=true); - - //! set propagation of automatically generated and transferred signals - /*! propagation == 0 means do not automaticly generate signals */ - virtual void SetAutoSignalPropagation(int propagation) {} - - //! - virtual int GetAutoSignalPropagation() const {return 0;} -public: - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY - void Close() {MessageEnd();} -#endif - //@} - - //! \name RETRIEVAL OF ONE MESSAGE - //@{ - //! returns number of bytes that is currently ready for retrieval - /*! All retrieval functions return the actual number of bytes - retrieved, which is the lesser of the request number and - MaxRetrievable(). */ - virtual lword MaxRetrievable() const; - - //! returns whether any bytes are currently ready for retrieval - virtual bool AnyRetrievable() const; - - //! try to retrieve a single byte - virtual size_t Get(byte &outByte); - //! try to retrieve multiple bytes - virtual size_t Get(byte *outString, size_t getMax); - - //! peek at the next byte without removing it from the output buffer - virtual size_t Peek(byte &outByte) const; - //! peek at multiple bytes without removing them from the output buffer - virtual size_t Peek(byte *outString, size_t peekMax) const; - - //! try to retrieve a 16-bit word - size_t GetWord16(word16 &value, ByteOrder order=BIG_ENDIAN_ORDER); - //! try to retrieve a 32-bit word - size_t GetWord32(word32 &value, ByteOrder order=BIG_ENDIAN_ORDER); - - //! try to peek at a 16-bit word - size_t PeekWord16(word16 &value, ByteOrder order=BIG_ENDIAN_ORDER) const; - //! try to peek at a 32-bit word - size_t PeekWord32(word32 &value, ByteOrder order=BIG_ENDIAN_ORDER) const; - - //! move transferMax bytes of the buffered output to target as input - lword TransferTo(BufferedTransformation &target, lword transferMax=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL) - {TransferTo2(target, transferMax, channel); return transferMax;} - - //! discard skipMax bytes from the output buffer - virtual lword Skip(lword skipMax=LWORD_MAX); - - //! copy copyMax bytes of the buffered output to target as input - lword CopyTo(BufferedTransformation &target, lword copyMax=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL) const - {return CopyRangeTo(target, 0, copyMax, channel);} - - //! copy copyMax bytes of the buffered output, starting at position (relative to current position), to target as input - lword CopyRangeTo(BufferedTransformation &target, lword position, lword copyMax=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL) const - {lword i = position; CopyRangeTo2(target, i, i+copyMax, channel); return i-position;} - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY - unsigned long MaxRetrieveable() const {return MaxRetrievable();} -#endif - //@} - - //! \name RETRIEVAL OF MULTIPLE MESSAGES - //@{ - //! - virtual lword TotalBytesRetrievable() const; - //! number of times MessageEnd() has been received minus messages retrieved or skipped - virtual unsigned int NumberOfMessages() const; - //! returns true if NumberOfMessages() > 0 - virtual bool AnyMessages() const; - //! start retrieving the next message - /*! - Returns false if no more messages exist or this message - is not completely retrieved. - */ - virtual bool GetNextMessage(); - //! skip count number of messages - virtual unsigned int SkipMessages(unsigned int count=UINT_MAX); - //! - unsigned int TransferMessagesTo(BufferedTransformation &target, unsigned int count=UINT_MAX, const std::string &channel=DEFAULT_CHANNEL) - {TransferMessagesTo2(target, count, channel); return count;} - //! - unsigned int CopyMessagesTo(BufferedTransformation &target, unsigned int count=UINT_MAX, const std::string &channel=DEFAULT_CHANNEL) const; - - //! - virtual void SkipAll(); - //! - void TransferAllTo(BufferedTransformation &target, const std::string &channel=DEFAULT_CHANNEL) - {TransferAllTo2(target, channel);} - //! - void CopyAllTo(BufferedTransformation &target, const std::string &channel=DEFAULT_CHANNEL) const; - - virtual bool GetNextMessageSeries() {return false;} - virtual unsigned int NumberOfMessagesInThisSeries() const {return NumberOfMessages();} - virtual unsigned int NumberOfMessageSeries() const {return 0;} - //@} - - //! \name NON-BLOCKING TRANSFER OF OUTPUT - //@{ - //! upon return, byteCount contains number of bytes that have finished being transfered, and returns the number of bytes left in the current transfer block - virtual size_t TransferTo2(BufferedTransformation &target, lword &byteCount, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true) =0; - //! upon return, begin contains the start position of data yet to be finished copying, and returns the number of bytes left in the current transfer block - virtual size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true) const =0; - //! upon return, messageCount contains number of messages that have finished being transfered, and returns the number of bytes left in the current transfer block - size_t TransferMessagesTo2(BufferedTransformation &target, unsigned int &messageCount, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true); - //! returns the number of bytes left in the current transfer block - size_t TransferAllTo2(BufferedTransformation &target, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true); - //@} - - //! \name CHANNELS - //@{ - struct NoChannelSupport : public NotImplemented - {NoChannelSupport(const std::string &name) : NotImplemented(name + ": this object doesn't support multiple channels") {}}; - struct InvalidChannelName : public InvalidArgument - {InvalidChannelName(const std::string &name, const std::string &channel) : InvalidArgument(name + ": unexpected channel name \"" + channel + "\"") {}}; - - size_t ChannelPut(const std::string &channel, byte inByte, bool blocking=true) - {return ChannelPut(channel, &inByte, 1, blocking);} - size_t ChannelPut(const std::string &channel, const byte *inString, size_t length, bool blocking=true) - {return ChannelPut2(channel, inString, length, 0, blocking);} - - size_t ChannelPutModifiable(const std::string &channel, byte *inString, size_t length, bool blocking=true) - {return ChannelPutModifiable2(channel, inString, length, 0, blocking);} - - size_t ChannelPutWord16(const std::string &channel, word16 value, ByteOrder order=BIG_ENDIAN_ORDER, bool blocking=true); - size_t ChannelPutWord32(const std::string &channel, word32 value, ByteOrder order=BIG_ENDIAN_ORDER, bool blocking=true); - - bool ChannelMessageEnd(const std::string &channel, int propagation=-1, bool blocking=true) - {return !!ChannelPut2(channel, NULL, 0, propagation < 0 ? -1 : propagation+1, blocking);} - size_t ChannelPutMessageEnd(const std::string &channel, const byte *inString, size_t length, int propagation=-1, bool blocking=true) - {return ChannelPut2(channel, inString, length, propagation < 0 ? -1 : propagation+1, blocking);} - - virtual byte * ChannelCreatePutSpace(const std::string &channel, size_t &size); - - virtual size_t ChannelPut2(const std::string &channel, const byte *begin, size_t length, int messageEnd, bool blocking); - virtual size_t ChannelPutModifiable2(const std::string &channel, byte *begin, size_t length, int messageEnd, bool blocking); - - virtual bool ChannelFlush(const std::string &channel, bool hardFlush, int propagation=-1, bool blocking=true); - virtual bool ChannelMessageSeriesEnd(const std::string &channel, int propagation=-1, bool blocking=true); - - virtual void SetRetrievalChannel(const std::string &channel); - //@} - - //! \name ATTACHMENT - /*! Some BufferedTransformation objects (e.g. Filter objects) - allow other BufferedTransformation objects to be attached. When - this is done, the first object instead of buffering its output, - sents that output to the attached object as input. The entire - attachment chain is deleted when the anchor object is destructed. - */ - //@{ - //! returns whether this object allows attachment - virtual bool Attachable() {return false;} - //! returns the object immediately attached to this object or NULL for no attachment - virtual BufferedTransformation *AttachedTransformation() {assert(!Attachable()); return 0;} - //! - virtual const BufferedTransformation *AttachedTransformation() const - {return const_cast(this)->AttachedTransformation();} - //! delete the current attachment chain and replace it with newAttachment - virtual void Detach(BufferedTransformation *newAttachment = 0) - {assert(!Attachable()); throw NotImplemented("BufferedTransformation: this object is not attachable");} - //! add newAttachment to the end of attachment chain - virtual void Attach(BufferedTransformation *newAttachment); - //@} - -protected: - static int DecrementPropagation(int propagation) - {return propagation != 0 ? propagation - 1 : 0;} - -private: - byte m_buf[4]; // for ChannelPutWord16 and ChannelPutWord32, to ensure buffer isn't deallocated before non-blocking operation completes -}; - -//! returns a reference to a BufferedTransformation object that discards all input -BufferedTransformation & TheBitBucket(); - -//! interface for crypto material, such as public and private keys, and crypto parameters - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE CryptoMaterial : public NameValuePairs -{ -public: - //! exception thrown when invalid crypto material is detected - class CRYPTOPP_DLL InvalidMaterial : public InvalidDataFormat - { - public: - explicit InvalidMaterial(const std::string &s) : InvalidDataFormat(s) {} - }; - - //! assign values from source to this object - /*! \note This function can be used to create a public key from a private key. */ - virtual void AssignFrom(const NameValuePairs &source) =0; - - //! check this object for errors - /*! \param level denotes the level of thoroughness: - 0 - using this object won't cause a crash or exception (rng is ignored) - 1 - this object will probably function (encrypt, sign, etc.) correctly (but may not check for weak keys and such) - 2 - make sure this object will function correctly, and do reasonable security checks - 3 - do checks that may take a long time - \return true if the tests pass */ - virtual bool Validate(RandomNumberGenerator &rng, unsigned int level) const =0; - - //! throws InvalidMaterial if this object fails Validate() test - virtual void ThrowIfInvalid(RandomNumberGenerator &rng, unsigned int level) const - {if (!Validate(rng, level)) throw InvalidMaterial("CryptoMaterial: this object contains invalid values");} - -// virtual std::vector GetSupportedFormats(bool includeSaveOnly=false, bool includeLoadOnly=false); - - //! save key into a BufferedTransformation - virtual void Save(BufferedTransformation &bt) const - {throw NotImplemented("CryptoMaterial: this object does not support saving");} - - //! load key from a BufferedTransformation - /*! \throws KeyingErr if decode fails - \note Generally does not check that the key is valid. - Call ValidateKey() or ThrowIfInvalidKey() to check that. */ - virtual void Load(BufferedTransformation &bt) - {throw NotImplemented("CryptoMaterial: this object does not support loading");} - - //! \return whether this object supports precomputation - virtual bool SupportsPrecomputation() const {return false;} - //! do precomputation - /*! The exact semantics of Precompute() is varies, but - typically it means calculate a table of n objects - that can be used later to speed up computation. */ - virtual void Precompute(unsigned int n) - {assert(!SupportsPrecomputation()); throw NotImplemented("CryptoMaterial: this object does not support precomputation");} - //! retrieve previously saved precomputation - virtual void LoadPrecomputation(BufferedTransformation &storedPrecomputation) - {assert(!SupportsPrecomputation()); throw NotImplemented("CryptoMaterial: this object does not support precomputation");} - //! save precomputation for later use - virtual void SavePrecomputation(BufferedTransformation &storedPrecomputation) const - {assert(!SupportsPrecomputation()); throw NotImplemented("CryptoMaterial: this object does not support precomputation");} - - // for internal library use - void DoQuickSanityCheck() const {ThrowIfInvalid(NullRNG(), 0);} - -#if (defined(__SUNPRO_CC) && __SUNPRO_CC < 0x590) - // Sun Studio 11/CC 5.8 workaround: it generates incorrect code when casting to an empty virtual base class - char m_sunCCworkaround; -#endif -}; - -//! interface for generatable crypto material, such as private keys and crypto parameters - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE GeneratableCryptoMaterial : virtual public CryptoMaterial -{ -public: - //! generate a random key or crypto parameters - /*! \throws KeyingErr if algorithm parameters are invalid, or if a key can't be generated - (e.g., if this is a public key object) */ - virtual void GenerateRandom(RandomNumberGenerator &rng, const NameValuePairs ¶ms = g_nullNameValuePairs) - {throw NotImplemented("GeneratableCryptoMaterial: this object does not support key/parameter generation");} - - //! calls the above function with a NameValuePairs object that just specifies "KeySize" - void GenerateRandomWithKeySize(RandomNumberGenerator &rng, unsigned int keySize); -}; - -//! interface for public keys - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PublicKey : virtual public CryptoMaterial -{ -}; - -//! interface for private keys - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PrivateKey : public GeneratableCryptoMaterial -{ -}; - -//! interface for crypto prameters - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE CryptoParameters : public GeneratableCryptoMaterial -{ -}; - -//! interface for asymmetric algorithms - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE AsymmetricAlgorithm : public Algorithm -{ -public: - //! returns a reference to the crypto material used by this object - virtual CryptoMaterial & AccessMaterial() =0; - //! returns a const reference to the crypto material used by this object - virtual const CryptoMaterial & GetMaterial() const =0; - - //! for backwards compatibility, calls AccessMaterial().Load(bt) - void BERDecode(BufferedTransformation &bt) - {AccessMaterial().Load(bt);} - //! for backwards compatibility, calls GetMaterial().Save(bt) - void DEREncode(BufferedTransformation &bt) const - {GetMaterial().Save(bt);} -}; - -//! interface for asymmetric algorithms using public keys - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PublicKeyAlgorithm : public AsymmetricAlgorithm -{ -public: - // VC60 workaround: no co-variant return type - CryptoMaterial & AccessMaterial() {return AccessPublicKey();} - const CryptoMaterial & GetMaterial() const {return GetPublicKey();} - - virtual PublicKey & AccessPublicKey() =0; - virtual const PublicKey & GetPublicKey() const {return const_cast(this)->AccessPublicKey();} -}; - -//! interface for asymmetric algorithms using private keys - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PrivateKeyAlgorithm : public AsymmetricAlgorithm -{ -public: - CryptoMaterial & AccessMaterial() {return AccessPrivateKey();} - const CryptoMaterial & GetMaterial() const {return GetPrivateKey();} - - virtual PrivateKey & AccessPrivateKey() =0; - virtual const PrivateKey & GetPrivateKey() const {return const_cast(this)->AccessPrivateKey();} -}; - -//! interface for key agreement algorithms - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE KeyAgreementAlgorithm : public AsymmetricAlgorithm -{ -public: - CryptoMaterial & AccessMaterial() {return AccessCryptoParameters();} - const CryptoMaterial & GetMaterial() const {return GetCryptoParameters();} - - virtual CryptoParameters & AccessCryptoParameters() =0; - virtual const CryptoParameters & GetCryptoParameters() const {return const_cast(this)->AccessCryptoParameters();} -}; - -//! interface for public-key encryptors and decryptors - -/*! This class provides an interface common to encryptors and decryptors - for querying their plaintext and ciphertext lengths. -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PK_CryptoSystem -{ -public: - virtual ~PK_CryptoSystem() {} - - //! maximum length of plaintext for a given ciphertext length - /*! \note This function returns 0 if ciphertextLength is not valid (too long or too short). */ - virtual size_t MaxPlaintextLength(size_t ciphertextLength) const =0; - - //! calculate length of ciphertext given length of plaintext - /*! \note This function returns 0 if plaintextLength is not valid (too long). */ - virtual size_t CiphertextLength(size_t plaintextLength) const =0; - - //! this object supports the use of the parameter with the given name - /*! some possible parameter names: EncodingParameters, KeyDerivationParameters */ - virtual bool ParameterSupported(const char *name) const =0; - - //! return fixed ciphertext length, if one exists, otherwise return 0 - /*! \note "Fixed" here means length of ciphertext does not depend on length of plaintext. - It usually does depend on the key length. */ - virtual size_t FixedCiphertextLength() const {return 0;} - - //! return maximum plaintext length given the fixed ciphertext length, if one exists, otherwise return 0 - virtual size_t FixedMaxPlaintextLength() const {return 0;} - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY - size_t MaxPlainTextLength(size_t cipherTextLength) const {return MaxPlaintextLength(cipherTextLength);} - size_t CipherTextLength(size_t plainTextLength) const {return CiphertextLength(plainTextLength);} -#endif -}; - -//! interface for public-key encryptors -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PK_Encryptor : public PK_CryptoSystem, public PublicKeyAlgorithm -{ -public: - //! exception thrown when trying to encrypt plaintext of invalid length - class CRYPTOPP_DLL InvalidPlaintextLength : public Exception - { - public: - InvalidPlaintextLength() : Exception(OTHER_ERROR, "PK_Encryptor: invalid plaintext length") {} - }; - - //! encrypt a byte string - /*! \pre CiphertextLength(plaintextLength) != 0 (i.e., plaintext isn't too long) - \pre size of ciphertext == CiphertextLength(plaintextLength) - */ - virtual void Encrypt(RandomNumberGenerator &rng, - const byte *plaintext, size_t plaintextLength, - byte *ciphertext, const NameValuePairs ¶meters = g_nullNameValuePairs) const =0; - - //! create a new encryption filter - /*! \note The caller is responsible for deleting the returned pointer. - \note Encoding parameters should be passed in the "EP" channel. - */ - virtual BufferedTransformation * CreateEncryptionFilter(RandomNumberGenerator &rng, - BufferedTransformation *attachment=NULL, const NameValuePairs ¶meters = g_nullNameValuePairs) const; -}; - -//! interface for public-key decryptors - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PK_Decryptor : public PK_CryptoSystem, public PrivateKeyAlgorithm -{ -public: - //! decrypt a byte string, and return the length of plaintext - /*! \pre size of plaintext == MaxPlaintextLength(ciphertextLength) bytes. - \return the actual length of the plaintext, indication that decryption failed. - */ - virtual DecodingResult Decrypt(RandomNumberGenerator &rng, - const byte *ciphertext, size_t ciphertextLength, - byte *plaintext, const NameValuePairs ¶meters = g_nullNameValuePairs) const =0; - - //! create a new decryption filter - /*! \note caller is responsible for deleting the returned pointer - */ - virtual BufferedTransformation * CreateDecryptionFilter(RandomNumberGenerator &rng, - BufferedTransformation *attachment=NULL, const NameValuePairs ¶meters = g_nullNameValuePairs) const; - - //! decrypt a fixed size ciphertext - DecodingResult FixedLengthDecrypt(RandomNumberGenerator &rng, const byte *ciphertext, byte *plaintext, const NameValuePairs ¶meters = g_nullNameValuePairs) const - {return Decrypt(rng, ciphertext, FixedCiphertextLength(), plaintext, parameters);} -}; - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY -typedef PK_CryptoSystem PK_FixedLengthCryptoSystem; -typedef PK_Encryptor PK_FixedLengthEncryptor; -typedef PK_Decryptor PK_FixedLengthDecryptor; -#endif - -//! interface for public-key signers and verifiers - -/*! This class provides an interface common to signers and verifiers - for querying scheme properties. -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PK_SignatureScheme -{ -public: - //! invalid key exception, may be thrown by any function in this class if the private or public key has a length that can't be used - class CRYPTOPP_DLL InvalidKeyLength : public Exception - { - public: - InvalidKeyLength(const std::string &message) : Exception(OTHER_ERROR, message) {} - }; - - //! key too short exception, may be thrown by any function in this class if the private or public key is too short to sign or verify anything - class CRYPTOPP_DLL KeyTooShort : public InvalidKeyLength - { - public: - KeyTooShort() : InvalidKeyLength("PK_Signer: key too short for this signature scheme") {} - }; - - virtual ~PK_SignatureScheme() {} - - //! signature length if it only depends on the key, otherwise 0 - virtual size_t SignatureLength() const =0; - - //! maximum signature length produced for a given length of recoverable message part - virtual size_t MaxSignatureLength(size_t recoverablePartLength = 0) const {return SignatureLength();} - - //! length of longest message that can be recovered, or 0 if this signature scheme does not support message recovery - virtual size_t MaxRecoverableLength() const =0; - - //! length of longest message that can be recovered from a signature of given length, or 0 if this signature scheme does not support message recovery - virtual size_t MaxRecoverableLengthFromSignatureLength(size_t signatureLength) const =0; - - //! requires a random number generator to sign - /*! if this returns false, NullRNG() can be passed to functions that take RandomNumberGenerator & */ - virtual bool IsProbabilistic() const =0; - - //! whether or not a non-recoverable message part can be signed - virtual bool AllowNonrecoverablePart() const =0; - - //! if this function returns true, during verification you must input the signature before the message, otherwise you can input it at anytime */ - virtual bool SignatureUpfront() const {return false;} - - //! whether you must input the recoverable part before the non-recoverable part during signing - virtual bool RecoverablePartFirst() const =0; -}; - -//! interface for accumulating messages to be signed or verified -/*! Only Update() should be called - on this class. No other functions inherited from HashTransformation should be called. -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PK_MessageAccumulator : public HashTransformation -{ -public: - //! should not be called on PK_MessageAccumulator - unsigned int DigestSize() const - {throw NotImplemented("PK_MessageAccumulator: DigestSize() should not be called");} - //! should not be called on PK_MessageAccumulator - void TruncatedFinal(byte *digest, size_t digestSize) - {throw NotImplemented("PK_MessageAccumulator: TruncatedFinal() should not be called");} -}; - -//! interface for public-key signers - -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PK_Signer : public PK_SignatureScheme, public PrivateKeyAlgorithm -{ -public: - //! create a new HashTransformation to accumulate the message to be signed - virtual PK_MessageAccumulator * NewSignatureAccumulator(RandomNumberGenerator &rng) const =0; - - virtual void InputRecoverableMessage(PK_MessageAccumulator &messageAccumulator, const byte *recoverableMessage, size_t recoverableMessageLength) const =0; - - //! sign and delete messageAccumulator (even in case of exception thrown) - /*! \pre size of signature == MaxSignatureLength() - \return actual signature length - */ - virtual size_t Sign(RandomNumberGenerator &rng, PK_MessageAccumulator *messageAccumulator, byte *signature) const; - - //! sign and restart messageAccumulator - /*! \pre size of signature == MaxSignatureLength() - \return actual signature length - */ - virtual size_t SignAndRestart(RandomNumberGenerator &rng, PK_MessageAccumulator &messageAccumulator, byte *signature, bool restart=true) const =0; - - //! sign a message - /*! \pre size of signature == MaxSignatureLength() - \return actual signature length - */ - virtual size_t SignMessage(RandomNumberGenerator &rng, const byte *message, size_t messageLen, byte *signature) const; - - //! sign a recoverable message - /*! \pre size of signature == MaxSignatureLength(recoverableMessageLength) - \return actual signature length - */ - virtual size_t SignMessageWithRecovery(RandomNumberGenerator &rng, const byte *recoverableMessage, size_t recoverableMessageLength, - const byte *nonrecoverableMessage, size_t nonrecoverableMessageLength, byte *signature) const; -}; - -//! interface for public-key signature verifiers -/*! The Recover* functions throw NotImplemented if the signature scheme does not support - message recovery. - The Verify* functions throw InvalidDataFormat if the scheme does support message - recovery and the signature contains a non-empty recoverable message part. The - Recovery* functions should be used in that case. -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE PK_Verifier : public PK_SignatureScheme, public PublicKeyAlgorithm -{ -public: - //! create a new HashTransformation to accumulate the message to be verified - virtual PK_MessageAccumulator * NewVerificationAccumulator() const =0; - - //! input signature into a message accumulator - virtual void InputSignature(PK_MessageAccumulator &messageAccumulator, const byte *signature, size_t signatureLength) const =0; - - //! check whether messageAccumulator contains a valid signature and message, and delete messageAccumulator (even in case of exception thrown) - virtual bool Verify(PK_MessageAccumulator *messageAccumulator) const; - - //! check whether messageAccumulator contains a valid signature and message, and restart messageAccumulator - virtual bool VerifyAndRestart(PK_MessageAccumulator &messageAccumulator) const =0; - - //! check whether input signature is a valid signature for input message - virtual bool VerifyMessage(const byte *message, size_t messageLen, - const byte *signature, size_t signatureLength) const; - - //! recover a message from its signature - /*! \pre size of recoveredMessage == MaxRecoverableLengthFromSignatureLength(signatureLength) - */ - virtual DecodingResult Recover(byte *recoveredMessage, PK_MessageAccumulator *messageAccumulator) const; - - //! recover a message from its signature - /*! \pre size of recoveredMessage == MaxRecoverableLengthFromSignatureLength(signatureLength) - */ - virtual DecodingResult RecoverAndRestart(byte *recoveredMessage, PK_MessageAccumulator &messageAccumulator) const =0; - - //! recover a message from its signature - /*! \pre size of recoveredMessage == MaxRecoverableLengthFromSignatureLength(signatureLength) - */ - virtual DecodingResult RecoverMessage(byte *recoveredMessage, - const byte *nonrecoverableMessage, size_t nonrecoverableMessageLength, - const byte *signature, size_t signatureLength) const; -}; - -//! interface for domains of simple key agreement protocols - -/*! A key agreement domain is a set of parameters that must be shared - by two parties in a key agreement protocol, along with the algorithms - for generating key pairs and deriving agreed values. -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE SimpleKeyAgreementDomain : public KeyAgreementAlgorithm -{ -public: - //! return length of agreed value produced - virtual unsigned int AgreedValueLength() const =0; - //! return length of private keys in this domain - virtual unsigned int PrivateKeyLength() const =0; - //! return length of public keys in this domain - virtual unsigned int PublicKeyLength() const =0; - //! generate private key - /*! \pre size of privateKey == PrivateKeyLength() */ - virtual void GeneratePrivateKey(RandomNumberGenerator &rng, byte *privateKey) const =0; - //! generate public key - /*! \pre size of publicKey == PublicKeyLength() */ - virtual void GeneratePublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const =0; - //! generate private/public key pair - /*! \note equivalent to calling GeneratePrivateKey() and then GeneratePublicKey() */ - virtual void GenerateKeyPair(RandomNumberGenerator &rng, byte *privateKey, byte *publicKey) const; - //! derive agreed value from your private key and couterparty's public key, return false in case of failure - /*! \note If you have previously validated the public key, use validateOtherPublicKey=false to save time. - \pre size of agreedValue == AgreedValueLength() - \pre length of privateKey == PrivateKeyLength() - \pre length of otherPublicKey == PublicKeyLength() - */ - virtual bool Agree(byte *agreedValue, const byte *privateKey, const byte *otherPublicKey, bool validateOtherPublicKey=true) const =0; - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY - bool ValidateDomainParameters(RandomNumberGenerator &rng) const - {return GetCryptoParameters().Validate(rng, 2);} -#endif -}; - -//! interface for domains of authenticated key agreement protocols - -/*! In an authenticated key agreement protocol, each party has two - key pairs. The long-lived key pair is called the static key pair, - and the short-lived key pair is called the ephemeral key pair. -*/ -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE AuthenticatedKeyAgreementDomain : public KeyAgreementAlgorithm -{ -public: - //! return length of agreed value produced - virtual unsigned int AgreedValueLength() const =0; - - //! return length of static private keys in this domain - virtual unsigned int StaticPrivateKeyLength() const =0; - //! return length of static public keys in this domain - virtual unsigned int StaticPublicKeyLength() const =0; - //! generate static private key - /*! \pre size of privateKey == PrivateStaticKeyLength() */ - virtual void GenerateStaticPrivateKey(RandomNumberGenerator &rng, byte *privateKey) const =0; - //! generate static public key - /*! \pre size of publicKey == PublicStaticKeyLength() */ - virtual void GenerateStaticPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const =0; - //! generate private/public key pair - /*! \note equivalent to calling GenerateStaticPrivateKey() and then GenerateStaticPublicKey() */ - virtual void GenerateStaticKeyPair(RandomNumberGenerator &rng, byte *privateKey, byte *publicKey) const; - - //! return length of ephemeral private keys in this domain - virtual unsigned int EphemeralPrivateKeyLength() const =0; - //! return length of ephemeral public keys in this domain - virtual unsigned int EphemeralPublicKeyLength() const =0; - //! generate ephemeral private key - /*! \pre size of privateKey == PrivateEphemeralKeyLength() */ - virtual void GenerateEphemeralPrivateKey(RandomNumberGenerator &rng, byte *privateKey) const =0; - //! generate ephemeral public key - /*! \pre size of publicKey == PublicEphemeralKeyLength() */ - virtual void GenerateEphemeralPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const =0; - //! generate private/public key pair - /*! \note equivalent to calling GenerateEphemeralPrivateKey() and then GenerateEphemeralPublicKey() */ - virtual void GenerateEphemeralKeyPair(RandomNumberGenerator &rng, byte *privateKey, byte *publicKey) const; - - //! derive agreed value from your private keys and couterparty's public keys, return false in case of failure - /*! \note The ephemeral public key will always be validated. - If you have previously validated the static public key, use validateStaticOtherPublicKey=false to save time. - \pre size of agreedValue == AgreedValueLength() - \pre length of staticPrivateKey == StaticPrivateKeyLength() - \pre length of ephemeralPrivateKey == EphemeralPrivateKeyLength() - \pre length of staticOtherPublicKey == StaticPublicKeyLength() - \pre length of ephemeralOtherPublicKey == EphemeralPublicKeyLength() - */ - virtual bool Agree(byte *agreedValue, - const byte *staticPrivateKey, const byte *ephemeralPrivateKey, - const byte *staticOtherPublicKey, const byte *ephemeralOtherPublicKey, - bool validateStaticOtherPublicKey=true) const =0; - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY - bool ValidateDomainParameters(RandomNumberGenerator &rng) const - {return GetCryptoParameters().Validate(rng, 2);} -#endif -}; - -// interface for password authenticated key agreement protocols, not implemented yet -#if 0 -//! interface for protocol sessions -/*! The methods should be called in the following order: - - InitializeSession(rng, parameters); // or call initialize method in derived class - while (true) - { - if (OutgoingMessageAvailable()) - { - length = GetOutgoingMessageLength(); - GetOutgoingMessage(message); - ; // send outgoing message - } - - if (LastMessageProcessed()) - break; - - ; // receive incoming message - ProcessIncomingMessage(message); - } - ; // call methods in derived class to obtain result of protocol session -*/ -class ProtocolSession -{ -public: - //! exception thrown when an invalid protocol message is processed - class ProtocolError : public Exception - { - public: - ProtocolError(ErrorType errorType, const std::string &s) : Exception(errorType, s) {} - }; - - //! exception thrown when a function is called unexpectedly - /*! for example calling ProcessIncomingMessage() when ProcessedLastMessage() == true */ - class UnexpectedMethodCall : public Exception - { - public: - UnexpectedMethodCall(const std::string &s) : Exception(OTHER_ERROR, s) {} - }; - - ProtocolSession() : m_rng(NULL), m_throwOnProtocolError(true), m_validState(false) {} - virtual ~ProtocolSession() {} - - virtual void InitializeSession(RandomNumberGenerator &rng, const NameValuePairs ¶meters) =0; - - bool GetThrowOnProtocolError() const {return m_throwOnProtocolError;} - void SetThrowOnProtocolError(bool throwOnProtocolError) {m_throwOnProtocolError = throwOnProtocolError;} - - bool HasValidState() const {return m_validState;} - - virtual bool OutgoingMessageAvailable() const =0; - virtual unsigned int GetOutgoingMessageLength() const =0; - virtual void GetOutgoingMessage(byte *message) =0; - - virtual bool LastMessageProcessed() const =0; - virtual void ProcessIncomingMessage(const byte *message, unsigned int messageLength) =0; - -protected: - void HandleProtocolError(Exception::ErrorType errorType, const std::string &s) const; - void CheckAndHandleInvalidState() const; - void SetValidState(bool valid) {m_validState = valid;} - - RandomNumberGenerator *m_rng; - -private: - bool m_throwOnProtocolError, m_validState; -}; - -class KeyAgreementSession : public ProtocolSession -{ -public: - virtual unsigned int GetAgreedValueLength() const =0; - virtual void GetAgreedValue(byte *agreedValue) const =0; -}; - -class PasswordAuthenticatedKeyAgreementSession : public KeyAgreementSession -{ -public: - void InitializePasswordAuthenticatedKeyAgreementSession(RandomNumberGenerator &rng, - const byte *myId, unsigned int myIdLength, - const byte *counterPartyId, unsigned int counterPartyIdLength, - const byte *passwordOrVerifier, unsigned int passwordOrVerifierLength); -}; - -class PasswordAuthenticatedKeyAgreementDomain : public KeyAgreementAlgorithm -{ -public: - //! return whether the domain parameters stored in this object are valid - virtual bool ValidateDomainParameters(RandomNumberGenerator &rng) const - {return GetCryptoParameters().Validate(rng, 2);} - - virtual unsigned int GetPasswordVerifierLength(const byte *password, unsigned int passwordLength) const =0; - virtual void GeneratePasswordVerifier(RandomNumberGenerator &rng, const byte *userId, unsigned int userIdLength, const byte *password, unsigned int passwordLength, byte *verifier) const =0; - - enum RoleFlags {CLIENT=1, SERVER=2, INITIATOR=4, RESPONDER=8}; - - virtual bool IsValidRole(unsigned int role) =0; - virtual PasswordAuthenticatedKeyAgreementSession * CreateProtocolSession(unsigned int role) const =0; -}; -#endif - -//! BER Decode Exception Class, may be thrown during an ASN1 BER decode operation -class CRYPTOPP_DLL BERDecodeErr : public InvalidArgument -{ -public: - BERDecodeErr() : InvalidArgument("BER decode error") {} - BERDecodeErr(const std::string &s) : InvalidArgument(s) {} -}; - -//! interface for encoding and decoding ASN1 objects -class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE ASN1Object -{ -public: - virtual ~ASN1Object() {} - //! decode this object from a BufferedTransformation, using BER (Basic Encoding Rules) - virtual void BERDecode(BufferedTransformation &bt) =0; - //! encode this object into a BufferedTransformation, using DER (Distinguished Encoding Rules) - virtual void DEREncode(BufferedTransformation &bt) const =0; - //! encode this object into a BufferedTransformation, using BER - /*! this may be useful if DEREncode() would be too inefficient */ - virtual void BEREncode(BufferedTransformation &bt) const {DEREncode(bt);} -}; - -#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY -typedef PK_SignatureScheme PK_SignatureSystem; -typedef SimpleKeyAgreementDomain PK_SimpleKeyAgreementDomain; -typedef AuthenticatedKeyAgreementDomain PK_AuthenticatedKeyAgreementDomain; -#endif - -NAMESPACE_END - -#endif diff --git a/src/cryptopp/iterhash.h b/src/cryptopp/iterhash.h deleted file mode 100644 index 2f5895e..0000000 --- a/src/cryptopp/iterhash.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef CRYPTOPP_ITERHASH_H -#define CRYPTOPP_ITERHASH_H - -#include "secblock.h" - -NAMESPACE_BEGIN(CryptoPP) - -// *** trimmed down dependency from iterhash.h *** -template -class CRYPTOPP_NO_VTABLE IteratedHashWithStaticTransform -{ -public: - CRYPTOPP_CONSTANT(DIGESTSIZE = T_DigestSize ? T_DigestSize : T_StateSize) - unsigned int DigestSize() const {return DIGESTSIZE;}; - typedef T_HashWordType HashWordType; - CRYPTOPP_CONSTANT(BLOCKSIZE = T_BlockSize) - -protected: - IteratedHashWithStaticTransform() {this->Init();} - void HashEndianCorrectedBlock(const T_HashWordType *data) {T_Transform::Transform(this->m_state, data);} - void Init() {T_Transform::InitState(this->m_state);} - - T_HashWordType* StateBuf() {return this->m_state;} - FixedSizeAlignedSecBlock m_state; -}; - -NAMESPACE_END - -#endif diff --git a/src/cryptopp/misc.h b/src/cryptopp/misc.h deleted file mode 100644 index de8037b..0000000 --- a/src/cryptopp/misc.h +++ /dev/null @@ -1,1134 +0,0 @@ -#ifndef CRYPTOPP_MISC_H -#define CRYPTOPP_MISC_H - -#include "cryptlib.h" -#include "smartptr.h" -#include // for memcpy and memmove - -#ifdef _MSC_VER - #include - #if _MSC_VER >= 1400 - // VC2005 workaround: disable declarations that conflict with winnt.h - #define _interlockedbittestandset CRYPTOPP_DISABLED_INTRINSIC_1 - #define _interlockedbittestandreset CRYPTOPP_DISABLED_INTRINSIC_2 - #define _interlockedbittestandset64 CRYPTOPP_DISABLED_INTRINSIC_3 - #define _interlockedbittestandreset64 CRYPTOPP_DISABLED_INTRINSIC_4 - #include - #undef _interlockedbittestandset - #undef _interlockedbittestandreset - #undef _interlockedbittestandset64 - #undef _interlockedbittestandreset64 - #define CRYPTOPP_FAST_ROTATE(x) 1 - #elif _MSC_VER >= 1300 - #define CRYPTOPP_FAST_ROTATE(x) ((x) == 32 | (x) == 64) - #else - #define CRYPTOPP_FAST_ROTATE(x) ((x) == 32) - #endif -#elif (defined(__MWERKS__) && TARGET_CPU_PPC) || \ - (defined(__GNUC__) && (defined(_ARCH_PWR2) || defined(_ARCH_PWR) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || defined(_ARCH_COM))) - #define CRYPTOPP_FAST_ROTATE(x) ((x) == 32) -#elif defined(__GNUC__) && (CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86) // depend on GCC's peephole optimization to generate rotate instructions - #define CRYPTOPP_FAST_ROTATE(x) 1 -#else - #define CRYPTOPP_FAST_ROTATE(x) 0 -#endif - -#ifdef __BORLANDC__ -#include -#endif - -#if defined(__GNUC__) && defined(__linux__) -#define CRYPTOPP_BYTESWAP_AVAILABLE -#include -#endif - -NAMESPACE_BEGIN(CryptoPP) - -// ************** compile-time assertion *************** - -template -struct CompileAssert -{ - static char dummy[2*b-1]; -}; - -#define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, __LINE__) -#if defined(CRYPTOPP_EXPORTS) || defined(CRYPTOPP_IMPORTS) -#define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) -#else -#define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance) -#endif -#define CRYPTOPP_ASSERT_JOIN(X, Y) CRYPTOPP_DO_ASSERT_JOIN(X, Y) -#define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y - -// ************** misc classes *************** - -class CRYPTOPP_DLL Empty -{ -}; - -//! _ -template -class CRYPTOPP_NO_VTABLE TwoBases : public BASE1, public BASE2 -{ -}; - -//! _ -template -class CRYPTOPP_NO_VTABLE ThreeBases : public BASE1, public BASE2, public BASE3 -{ -}; - -template -class ObjectHolder -{ -protected: - T m_object; -}; - -class NotCopyable -{ -public: - NotCopyable() {} -private: - NotCopyable(const NotCopyable &); - void operator=(const NotCopyable &); -}; - -template -struct NewObject -{ - T* operator()() const {return new T;} -}; - -/*! This function safely initializes a static object in a multithreaded environment without using locks. - It may leak memory when two threads try to initialize the static object at the same time - but this should be acceptable since each static object is only initialized once per session. -*/ -template , int instance=0> -class Singleton -{ -public: - Singleton(F objectFactory = F()) : m_objectFactory(objectFactory) {} - - // prevent this function from being inlined - CRYPTOPP_NOINLINE const T & Ref(CRYPTOPP_NOINLINE_DOTDOTDOT) const; - -private: - F m_objectFactory; -}; - -template -const T & Singleton::Ref(CRYPTOPP_NOINLINE_DOTDOTDOT) const -{ - static simple_ptr s_pObject; - static char s_objectState = 0; - -retry: - switch (s_objectState) - { - case 0: - s_objectState = 1; - try - { - s_pObject.m_p = m_objectFactory(); - } - catch(...) - { - s_objectState = 0; - throw; - } - s_objectState = 2; - break; - case 1: - goto retry; - default: - break; - } - return *s_pObject.m_p; -} - -// ************** misc functions *************** - -#if (!__STDC_WANT_SECURE_LIB__) -inline void memcpy_s(void *dest, size_t sizeInBytes, const void *src, size_t count) -{ - if (count > sizeInBytes) - throw InvalidArgument("memcpy_s: buffer overflow"); - memcpy(dest, src, count); -} - -inline void memmove_s(void *dest, size_t sizeInBytes, const void *src, size_t count) -{ - if (count > sizeInBytes) - throw InvalidArgument("memmove_s: buffer overflow"); - memmove(dest, src, count); -} -#endif - -inline void * memset_z(void *ptr, int value, size_t num) -{ -// avoid extranous warning on GCC 4.3.2 Ubuntu 8.10 -#if CRYPTOPP_GCC_VERSION >= 30001 - if (__builtin_constant_p(num) && num==0) - return ptr; -#endif - return memset(ptr, value, num); -} - -// can't use std::min or std::max in MSVC60 or Cygwin 1.1.0 -template inline const T& STDMIN(const T& a, const T& b) -{ - return b < a ? b : a; -} - -template inline const T1 UnsignedMin(const T1& a, const T2& b) -{ - CRYPTOPP_COMPILE_ASSERT((sizeof(T1)<=sizeof(T2) && T2(-1)>0) || (sizeof(T1)>sizeof(T2) && T1(-1)>0)); - assert(a==0 || a>0); // GCC workaround: get rid of the warning "comparison is always true due to limited range of data type" - assert(b>=0); - - if (sizeof(T1)<=sizeof(T2)) - return b < (T2)a ? (T1)b : a; - else - return (T1)b < a ? (T1)b : a; -} - -template inline const T& STDMAX(const T& a, const T& b) -{ - return a < b ? b : a; -} - -#define RETURN_IF_NONZERO(x) size_t returnedValue = x; if (returnedValue) return returnedValue - -// this version of the macro is fastest on Pentium 3 and Pentium 4 with MSVC 6 SP5 w/ Processor Pack -#define GETBYTE(x, y) (unsigned int)byte((x)>>(8*(y))) -// these may be faster on other CPUs/compilers -// #define GETBYTE(x, y) (unsigned int)(((x)>>(8*(y)))&255) -// #define GETBYTE(x, y) (((byte *)&(x))[y]) - -#define CRYPTOPP_GET_BYTE_AS_BYTE(x, y) byte((x)>>(8*(y))) - -template -unsigned int Parity(T value) -{ - for (unsigned int i=8*sizeof(value)/2; i>0; i/=2) - value ^= value >> i; - return (unsigned int)value&1; -} - -template -unsigned int BytePrecision(const T &value) -{ - if (!value) - return 0; - - unsigned int l=0, h=8*sizeof(value); - - while (h-l > 8) - { - unsigned int t = (l+h)/2; - if (value >> t) - l = t; - else - h = t; - } - - return h/8; -} - -template -unsigned int BitPrecision(const T &value) -{ - if (!value) - return 0; - - unsigned int l=0, h=8*sizeof(value); - - while (h-l > 1) - { - unsigned int t = (l+h)/2; - if (value >> t) - l = t; - else - h = t; - } - - return h; -} - -template -inline T Crop(T value, size_t size) -{ - if (size < 8*sizeof(value)) - return T(value & ((T(1) << size) - 1)); - else - return value; -} - -template -inline bool SafeConvert(T1 from, T2 &to) -{ - to = (T2)from; - if (from != to || (from > 0) != (to > 0)) - return false; - return true; -} - -inline size_t BitsToBytes(size_t bitCount) -{ - return ((bitCount+7)/(8)); -} - -inline size_t BytesToWords(size_t byteCount) -{ - return ((byteCount+WORD_SIZE-1)/WORD_SIZE); -} - -inline size_t BitsToWords(size_t bitCount) -{ - return ((bitCount+WORD_BITS-1)/(WORD_BITS)); -} - -inline size_t BitsToDwords(size_t bitCount) -{ - return ((bitCount+2*WORD_BITS-1)/(2*WORD_BITS)); -} - -CRYPTOPP_DLL void CRYPTOPP_API xorbuf(byte *buf, const byte *mask, size_t count); -CRYPTOPP_DLL void CRYPTOPP_API xorbuf(byte *output, const byte *input, const byte *mask, size_t count); - -CRYPTOPP_DLL bool CRYPTOPP_API VerifyBufsEqual(const byte *buf1, const byte *buf2, size_t count); - -template -inline bool IsPowerOf2(const T &n) -{ - return n > 0 && (n & (n-1)) == 0; -} - -template -inline T2 ModPowerOf2(const T1 &a, const T2 &b) -{ - assert(IsPowerOf2(b)); - return T2(a) & (b-1); -} - -template -inline T1 RoundDownToMultipleOf(const T1 &n, const T2 &m) -{ - if (IsPowerOf2(m)) - return n - ModPowerOf2(n, m); - else - return n - n%m; -} - -template -inline T1 RoundUpToMultipleOf(const T1 &n, const T2 &m) -{ - if (n+m-1 < n) - throw InvalidArgument("RoundUpToMultipleOf: integer overflow"); - return RoundDownToMultipleOf(n+m-1, m); -} - -template -inline unsigned int GetAlignmentOf(T *dummy=NULL) // VC60 workaround -{ -#ifdef CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS - if (sizeof(T) < 16) - return 1; -#endif - -#if (_MSC_VER >= 1300) - return __alignof(T); -#elif defined(__GNUC__) - return __alignof__(T); -#elif CRYPTOPP_BOOL_SLOW_WORD64 - return UnsignedMin(4U, sizeof(T)); -#else - return sizeof(T); -#endif -} - -inline bool IsAlignedOn(const void *p, unsigned int alignment) -{ - return alignment==1 || (IsPowerOf2(alignment) ? ModPowerOf2((size_t)p, alignment) == 0 : (size_t)p % alignment == 0); -} - -template -inline bool IsAligned(const void *p, T *dummy=NULL) // VC60 workaround -{ - return IsAlignedOn(p, GetAlignmentOf()); -} - -#ifdef IS_LITTLE_ENDIAN - typedef LittleEndian NativeByteOrder; -#else - typedef BigEndian NativeByteOrder; -#endif - -inline ByteOrder GetNativeByteOrder() -{ - return NativeByteOrder::ToEnum(); -} - -inline bool NativeByteOrderIs(ByteOrder order) -{ - return order == GetNativeByteOrder(); -} - -template -std::string IntToString(T a, unsigned int base = 10) -{ - if (a == 0) - return "0"; - bool negate = false; - if (a < 0) - { - negate = true; - a = 0-a; // VC .NET does not like -a - } - std::string result; - while (a > 0) - { - T digit = a % base; - result = char((digit < 10 ? '0' : ('a' - 10)) + digit) + result; - a /= base; - } - if (negate) - result = "-" + result; - return result; -} - -template -inline T1 SaturatingSubtract(const T1 &a, const T2 &b) -{ - return T1((a > b) ? (a - b) : 0); -} - -template -inline CipherDir GetCipherDir(const T &obj) -{ - return obj.IsForwardTransformation() ? ENCRYPTION : DECRYPTION; -} - -CRYPTOPP_DLL void CRYPTOPP_API CallNewHandler(); - -inline void IncrementCounterByOne(byte *inout, unsigned int s) -{ - for (int i=s-1, carry=1; i>=0 && carry; i--) - carry = !++inout[i]; -} - -inline void IncrementCounterByOne(byte *output, const byte *input, unsigned int s) -{ - int i, carry; - for (i=s-1, carry=1; i>=0 && carry; i--) - carry = ((output[i] = input[i]+1) == 0); - memcpy_s(output, s, input, i+1); -} - -// ************** rotate functions *************** - -template inline T rotlFixed(T x, unsigned int y) -{ - assert(y < sizeof(T)*8); - return T((x<>(sizeof(T)*8-y))); -} - -template inline T rotrFixed(T x, unsigned int y) -{ - assert(y < sizeof(T)*8); - return T((x>>y) | (x<<(sizeof(T)*8-y))); -} - -template inline T rotlVariable(T x, unsigned int y) -{ - assert(y < sizeof(T)*8); - return T((x<>(sizeof(T)*8-y))); -} - -template inline T rotrVariable(T x, unsigned int y) -{ - assert(y < sizeof(T)*8); - return T((x>>y) | (x<<(sizeof(T)*8-y))); -} - -template inline T rotlMod(T x, unsigned int y) -{ - y %= sizeof(T)*8; - return T((x<>(sizeof(T)*8-y))); -} - -template inline T rotrMod(T x, unsigned int y) -{ - y %= sizeof(T)*8; - return T((x>>y) | (x<<(sizeof(T)*8-y))); -} - -#ifdef _MSC_VER - -template<> inline word32 rotlFixed(word32 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return y ? _lrotl(x, y) : x; -} - -template<> inline word32 rotrFixed(word32 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return y ? _lrotr(x, y) : x; -} - -template<> inline word32 rotlVariable(word32 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return _lrotl(x, y); -} - -template<> inline word32 rotrVariable(word32 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return _lrotr(x, y); -} - -template<> inline word32 rotlMod(word32 x, unsigned int y) -{ - return _lrotl(x, y); -} - -template<> inline word32 rotrMod(word32 x, unsigned int y) -{ - return _lrotr(x, y); -} - -#endif // #ifdef _MSC_VER - -#if _MSC_VER >= 1300 && !defined(__INTEL_COMPILER) -// Intel C++ Compiler 10.0 calls a function instead of using the rotate instruction when using these instructions - -template<> inline word64 rotlFixed(word64 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return y ? _rotl64(x, y) : x; -} - -template<> inline word64 rotrFixed(word64 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return y ? _rotr64(x, y) : x; -} - -template<> inline word64 rotlVariable(word64 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return _rotl64(x, y); -} - -template<> inline word64 rotrVariable(word64 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return _rotr64(x, y); -} - -template<> inline word64 rotlMod(word64 x, unsigned int y) -{ - return _rotl64(x, y); -} - -template<> inline word64 rotrMod(word64 x, unsigned int y) -{ - return _rotr64(x, y); -} - -#endif // #if _MSC_VER >= 1310 - -#if _MSC_VER >= 1400 && !defined(__INTEL_COMPILER) -// Intel C++ Compiler 10.0 gives undefined externals with these - -template<> inline word16 rotlFixed(word16 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return y ? _rotl16(x, y) : x; -} - -template<> inline word16 rotrFixed(word16 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return y ? _rotr16(x, y) : x; -} - -template<> inline word16 rotlVariable(word16 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return _rotl16(x, y); -} - -template<> inline word16 rotrVariable(word16 x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return _rotr16(x, y); -} - -template<> inline word16 rotlMod(word16 x, unsigned int y) -{ - return _rotl16(x, y); -} - -template<> inline word16 rotrMod(word16 x, unsigned int y) -{ - return _rotr16(x, y); -} - -template<> inline byte rotlFixed(byte x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return y ? _rotl8(x, y) : x; -} - -template<> inline byte rotrFixed(byte x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return y ? _rotr8(x, y) : x; -} - -template<> inline byte rotlVariable(byte x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return _rotl8(x, y); -} - -template<> inline byte rotrVariable(byte x, unsigned int y) -{ - assert(y < 8*sizeof(x)); - return _rotr8(x, y); -} - -template<> inline byte rotlMod(byte x, unsigned int y) -{ - return _rotl8(x, y); -} - -template<> inline byte rotrMod(byte x, unsigned int y) -{ - return _rotr8(x, y); -} - -#endif // #if _MSC_VER >= 1400 - -#if (defined(__MWERKS__) && TARGET_CPU_PPC) - -template<> inline word32 rotlFixed(word32 x, unsigned int y) -{ - assert(y < 32); - return y ? __rlwinm(x,y,0,31) : x; -} - -template<> inline word32 rotrFixed(word32 x, unsigned int y) -{ - assert(y < 32); - return y ? __rlwinm(x,32-y,0,31) : x; -} - -template<> inline word32 rotlVariable(word32 x, unsigned int y) -{ - assert(y < 32); - return (__rlwnm(x,y,0,31)); -} - -template<> inline word32 rotrVariable(word32 x, unsigned int y) -{ - assert(y < 32); - return (__rlwnm(x,32-y,0,31)); -} - -template<> inline word32 rotlMod(word32 x, unsigned int y) -{ - return (__rlwnm(x,y,0,31)); -} - -template<> inline word32 rotrMod(word32 x, unsigned int y) -{ - return (__rlwnm(x,32-y,0,31)); -} - -#endif // #if (defined(__MWERKS__) && TARGET_CPU_PPC) - -// ************** endian reversal *************** - -template -inline unsigned int GetByte(ByteOrder order, T value, unsigned int index) -{ - if (order == LITTLE_ENDIAN_ORDER) - return GETBYTE(value, index); - else - return GETBYTE(value, sizeof(T)-index-1); -} - -inline byte ByteReverse(byte value) -{ - return value; -} - -inline word16 ByteReverse(word16 value) -{ -#ifdef CRYPTOPP_BYTESWAP_AVAILABLE - return bswap_16(value); -#elif defined(_MSC_VER) && _MSC_VER >= 1300 - return _byteswap_ushort(value); -#else - return rotlFixed(value, 8U); -#endif -} - -inline word32 ByteReverse(word32 value) -{ -#if defined(__GNUC__) && defined(CRYPTOPP_X86_ASM_AVAILABLE) - __asm__ ("bswap %0" : "=r" (value) : "0" (value)); - return value; -#elif defined(CRYPTOPP_BYTESWAP_AVAILABLE) - return bswap_32(value); -#elif defined(__MWERKS__) && TARGET_CPU_PPC - return (word32)__lwbrx(&value,0); -#elif _MSC_VER >= 1400 || (_MSC_VER >= 1300 && !defined(_DLL)) - return _byteswap_ulong(value); -#elif CRYPTOPP_FAST_ROTATE(32) - // 5 instructions with rotate instruction, 9 without - return (rotrFixed(value, 8U) & 0xff00ff00) | (rotlFixed(value, 8U) & 0x00ff00ff); -#else - // 6 instructions with rotate instruction, 8 without - value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8); - return rotlFixed(value, 16U); -#endif -} - -inline word64 ByteReverse(word64 value) -{ -#if defined(__GNUC__) && defined(CRYPTOPP_X86_ASM_AVAILABLE) && defined(__x86_64__) - __asm__ ("bswap %0" : "=r" (value) : "0" (value)); - return value; -#elif defined(CRYPTOPP_BYTESWAP_AVAILABLE) - return bswap_64(value); -#elif defined(_MSC_VER) && _MSC_VER >= 1300 - return _byteswap_uint64(value); -#elif CRYPTOPP_BOOL_SLOW_WORD64 - return (word64(ByteReverse(word32(value))) << 32) | ByteReverse(word32(value>>32)); -#else - value = ((value & W64LIT(0xFF00FF00FF00FF00)) >> 8) | ((value & W64LIT(0x00FF00FF00FF00FF)) << 8); - value = ((value & W64LIT(0xFFFF0000FFFF0000)) >> 16) | ((value & W64LIT(0x0000FFFF0000FFFF)) << 16); - return rotlFixed(value, 32U); -#endif -} - -inline byte BitReverse(byte value) -{ - value = ((value & 0xAA) >> 1) | ((value & 0x55) << 1); - value = ((value & 0xCC) >> 2) | ((value & 0x33) << 2); - return rotlFixed(value, 4U); -} - -inline word16 BitReverse(word16 value) -{ - value = ((value & 0xAAAA) >> 1) | ((value & 0x5555) << 1); - value = ((value & 0xCCCC) >> 2) | ((value & 0x3333) << 2); - value = ((value & 0xF0F0) >> 4) | ((value & 0x0F0F) << 4); - return ByteReverse(value); -} - -inline word32 BitReverse(word32 value) -{ - value = ((value & 0xAAAAAAAA) >> 1) | ((value & 0x55555555) << 1); - value = ((value & 0xCCCCCCCC) >> 2) | ((value & 0x33333333) << 2); - value = ((value & 0xF0F0F0F0) >> 4) | ((value & 0x0F0F0F0F) << 4); - return ByteReverse(value); -} - -inline word64 BitReverse(word64 value) -{ -#if CRYPTOPP_BOOL_SLOW_WORD64 - return (word64(BitReverse(word32(value))) << 32) | BitReverse(word32(value>>32)); -#else - value = ((value & W64LIT(0xAAAAAAAAAAAAAAAA)) >> 1) | ((value & W64LIT(0x5555555555555555)) << 1); - value = ((value & W64LIT(0xCCCCCCCCCCCCCCCC)) >> 2) | ((value & W64LIT(0x3333333333333333)) << 2); - value = ((value & W64LIT(0xF0F0F0F0F0F0F0F0)) >> 4) | ((value & W64LIT(0x0F0F0F0F0F0F0F0F)) << 4); - return ByteReverse(value); -#endif -} - -template -inline T BitReverse(T value) -{ - if (sizeof(T) == 1) - return (T)BitReverse((byte)value); - else if (sizeof(T) == 2) - return (T)BitReverse((word16)value); - else if (sizeof(T) == 4) - return (T)BitReverse((word32)value); - else - { - assert(sizeof(T) == 8); - return (T)BitReverse((word64)value); - } -} - -template -inline T ConditionalByteReverse(ByteOrder order, T value) -{ - return NativeByteOrderIs(order) ? value : ByteReverse(value); -} - -template -void ByteReverse(T *out, const T *in, size_t byteCount) -{ - assert(byteCount % sizeof(T) == 0); - size_t count = byteCount/sizeof(T); - for (size_t i=0; i -inline void ConditionalByteReverse(ByteOrder order, T *out, const T *in, size_t byteCount) -{ - if (!NativeByteOrderIs(order)) - ByteReverse(out, in, byteCount); - else if (in != out) - memcpy_s(out, byteCount, in, byteCount); -} - -template -inline void GetUserKey(ByteOrder order, T *out, size_t outlen, const byte *in, size_t inlen) -{ - const size_t U = sizeof(T); - assert(inlen <= outlen*U); - memcpy_s(out, outlen*U, in, inlen); - memset_z((byte *)out+inlen, 0, outlen*U-inlen); - ConditionalByteReverse(order, out, out, RoundUpToMultipleOf(inlen, U)); -} - -#ifndef CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS -inline byte UnalignedGetWordNonTemplate(ByteOrder order, const byte *block, const byte *) -{ - return block[0]; -} - -inline word16 UnalignedGetWordNonTemplate(ByteOrder order, const byte *block, const word16 *) -{ - return (order == BIG_ENDIAN_ORDER) - ? block[1] | (block[0] << 8) - : block[0] | (block[1] << 8); -} - -inline word32 UnalignedGetWordNonTemplate(ByteOrder order, const byte *block, const word32 *) -{ - return (order == BIG_ENDIAN_ORDER) - ? word32(block[3]) | (word32(block[2]) << 8) | (word32(block[1]) << 16) | (word32(block[0]) << 24) - : word32(block[0]) | (word32(block[1]) << 8) | (word32(block[2]) << 16) | (word32(block[3]) << 24); -} - -inline word64 UnalignedGetWordNonTemplate(ByteOrder order, const byte *block, const word64 *) -{ - return (order == BIG_ENDIAN_ORDER) - ? - (word64(block[7]) | - (word64(block[6]) << 8) | - (word64(block[5]) << 16) | - (word64(block[4]) << 24) | - (word64(block[3]) << 32) | - (word64(block[2]) << 40) | - (word64(block[1]) << 48) | - (word64(block[0]) << 56)) - : - (word64(block[0]) | - (word64(block[1]) << 8) | - (word64(block[2]) << 16) | - (word64(block[3]) << 24) | - (word64(block[4]) << 32) | - (word64(block[5]) << 40) | - (word64(block[6]) << 48) | - (word64(block[7]) << 56)); -} - -inline void UnalignedPutWordNonTemplate(ByteOrder order, byte *block, byte value, const byte *xorBlock) -{ - block[0] = xorBlock ? (value ^ xorBlock[0]) : value; -} - -inline void UnalignedPutWordNonTemplate(ByteOrder order, byte *block, word16 value, const byte *xorBlock) -{ - if (order == BIG_ENDIAN_ORDER) - { - if (xorBlock) - { - block[0] = xorBlock[0] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[1] = xorBlock[1] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - } - else - { - block[0] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[1] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - } - } - else - { - if (xorBlock) - { - block[0] = xorBlock[0] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - block[1] = xorBlock[1] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - } - else - { - block[0] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - block[1] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - } - } -} - -inline void UnalignedPutWordNonTemplate(ByteOrder order, byte *block, word32 value, const byte *xorBlock) -{ - if (order == BIG_ENDIAN_ORDER) - { - if (xorBlock) - { - block[0] = xorBlock[0] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 3); - block[1] = xorBlock[1] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 2); - block[2] = xorBlock[2] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[3] = xorBlock[3] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - } - else - { - block[0] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 3); - block[1] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 2); - block[2] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[3] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - } - } - else - { - if (xorBlock) - { - block[0] = xorBlock[0] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - block[1] = xorBlock[1] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[2] = xorBlock[2] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 2); - block[3] = xorBlock[3] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 3); - } - else - { - block[0] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - block[1] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[2] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 2); - block[3] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 3); - } - } -} - -inline void UnalignedPutWordNonTemplate(ByteOrder order, byte *block, word64 value, const byte *xorBlock) -{ - if (order == BIG_ENDIAN_ORDER) - { - if (xorBlock) - { - block[0] = xorBlock[0] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 7); - block[1] = xorBlock[1] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 6); - block[2] = xorBlock[2] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 5); - block[3] = xorBlock[3] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 4); - block[4] = xorBlock[4] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 3); - block[5] = xorBlock[5] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 2); - block[6] = xorBlock[6] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[7] = xorBlock[7] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - } - else - { - block[0] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 7); - block[1] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 6); - block[2] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 5); - block[3] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 4); - block[4] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 3); - block[5] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 2); - block[6] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[7] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - } - } - else - { - if (xorBlock) - { - block[0] = xorBlock[0] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - block[1] = xorBlock[1] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[2] = xorBlock[2] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 2); - block[3] = xorBlock[3] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 3); - block[4] = xorBlock[4] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 4); - block[5] = xorBlock[5] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 5); - block[6] = xorBlock[6] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 6); - block[7] = xorBlock[7] ^ CRYPTOPP_GET_BYTE_AS_BYTE(value, 7); - } - else - { - block[0] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 0); - block[1] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 1); - block[2] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 2); - block[3] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 3); - block[4] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 4); - block[5] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 5); - block[6] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 6); - block[7] = CRYPTOPP_GET_BYTE_AS_BYTE(value, 7); - } - } -} -#endif // #ifndef CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS - -template -inline T GetWord(bool assumeAligned, ByteOrder order, const byte *block) -{ -#ifndef CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS - if (!assumeAligned) - return UnalignedGetWordNonTemplate(order, block, (T*)NULL); - assert(IsAligned(block)); -#endif - return ConditionalByteReverse(order, *reinterpret_cast(block)); -} - -template -inline void GetWord(bool assumeAligned, ByteOrder order, T &result, const byte *block) -{ - result = GetWord(assumeAligned, order, block); -} - -template -inline void PutWord(bool assumeAligned, ByteOrder order, byte *block, T value, const byte *xorBlock = NULL) -{ -#ifndef CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS - if (!assumeAligned) - return UnalignedPutWordNonTemplate(order, block, value, xorBlock); - assert(IsAligned(block)); - assert(IsAligned(xorBlock)); -#endif - *reinterpret_cast(block) = ConditionalByteReverse(order, value) ^ (xorBlock ? *reinterpret_cast(xorBlock) : 0); -} - -template -class GetBlock -{ -public: - GetBlock(const void *block) - : m_block((const byte *)block) {} - - template - inline GetBlock & operator()(U &x) - { - CRYPTOPP_COMPILE_ASSERT(sizeof(U) >= sizeof(T)); - x = GetWord(A, B::ToEnum(), m_block); - m_block += sizeof(T); - return *this; - } - -private: - const byte *m_block; -}; - -template -class PutBlock -{ -public: - PutBlock(const void *xorBlock, void *block) - : m_xorBlock((const byte *)xorBlock), m_block((byte *)block) {} - - template - inline PutBlock & operator()(U x) - { - PutWord(A, B::ToEnum(), m_block, (T)x, m_xorBlock); - m_block += sizeof(T); - if (m_xorBlock) - m_xorBlock += sizeof(T); - return *this; - } - -private: - const byte *m_xorBlock; - byte *m_block; -}; - -template -struct BlockGetAndPut -{ - // function needed because of C++ grammatical ambiguity between expression-statements and declarations - static inline GetBlock Get(const void *block) {return GetBlock(block);} - typedef PutBlock Put; -}; - -template -std::string WordToString(T value, ByteOrder order = BIG_ENDIAN_ORDER) -{ - if (!NativeByteOrderIs(order)) - value = ByteReverse(value); - - return std::string((char *)&value, sizeof(value)); -} - -template -T StringToWord(const std::string &str, ByteOrder order = BIG_ENDIAN_ORDER) -{ - T value = 0; - memcpy_s(&value, sizeof(value), str.data(), UnsignedMin(str.size(), sizeof(value))); - return NativeByteOrderIs(order) ? value : ByteReverse(value); -} - -// ************** help remove warning on g++ *************** - -template struct SafeShifter; - -template<> struct SafeShifter -{ - template - static inline T RightShift(T value, unsigned int bits) - { - return 0; - } - - template - static inline T LeftShift(T value, unsigned int bits) - { - return 0; - } -}; - -template<> struct SafeShifter -{ - template - static inline T RightShift(T value, unsigned int bits) - { - return value >> bits; - } - - template - static inline T LeftShift(T value, unsigned int bits) - { - return value << bits; - } -}; - -template -inline T SafeRightShift(T value) -{ - return SafeShifter<(bits>=(8*sizeof(T)))>::RightShift(value, bits); -} - -template -inline T SafeLeftShift(T value) -{ - return SafeShifter<(bits>=(8*sizeof(T)))>::LeftShift(value, bits); -} - -// ************** use one buffer for multiple data members *************** - -#define CRYPTOPP_BLOCK_1(n, t, s) t* m_##n() {return (t *)(m_aggregate+0);} size_t SS1() {return sizeof(t)*(s);} size_t m_##n##Size() {return (s);} -#define CRYPTOPP_BLOCK_2(n, t, s) t* m_##n() {return (t *)(m_aggregate+SS1());} size_t SS2() {return SS1()+sizeof(t)*(s);} size_t m_##n##Size() {return (s);} -#define CRYPTOPP_BLOCK_3(n, t, s) t* m_##n() {return (t *)(m_aggregate+SS2());} size_t SS3() {return SS2()+sizeof(t)*(s);} size_t m_##n##Size() {return (s);} -#define CRYPTOPP_BLOCK_4(n, t, s) t* m_##n() {return (t *)(m_aggregate+SS3());} size_t SS4() {return SS3()+sizeof(t)*(s);} size_t m_##n##Size() {return (s);} -#define CRYPTOPP_BLOCK_5(n, t, s) t* m_##n() {return (t *)(m_aggregate+SS4());} size_t SS5() {return SS4()+sizeof(t)*(s);} size_t m_##n##Size() {return (s);} -#define CRYPTOPP_BLOCK_6(n, t, s) t* m_##n() {return (t *)(m_aggregate+SS5());} size_t SS6() {return SS5()+sizeof(t)*(s);} size_t m_##n##Size() {return (s);} -#define CRYPTOPP_BLOCK_7(n, t, s) t* m_##n() {return (t *)(m_aggregate+SS6());} size_t SS7() {return SS6()+sizeof(t)*(s);} size_t m_##n##Size() {return (s);} -#define CRYPTOPP_BLOCK_8(n, t, s) t* m_##n() {return (t *)(m_aggregate+SS7());} size_t SS8() {return SS7()+sizeof(t)*(s);} size_t m_##n##Size() {return (s);} -#define CRYPTOPP_BLOCKS_END(i) size_t SST() {return SS##i();} void AllocateBlocks() {m_aggregate.New(SST());} AlignedSecByteBlock m_aggregate; - -NAMESPACE_END - -#endif diff --git a/src/cryptopp/pch.h b/src/cryptopp/pch.h deleted file mode 100644 index 418c390..0000000 --- a/src/cryptopp/pch.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef CRYPTOPP_PCH_H -#define CRYPTOPP_PCH_H - -#ifdef CRYPTOPP_GENERATE_X64_MASM - - #include "cpu.h" - -#else - - #include "config.h" - - #ifdef USE_PRECOMPILED_HEADERS - #include "simple.h" - #include "secblock.h" - #include "misc.h" - #include "smartptr.h" - #endif - -#endif - -#endif diff --git a/src/cryptopp/secblock.h b/src/cryptopp/secblock.h deleted file mode 100644 index 2025757..0000000 --- a/src/cryptopp/secblock.h +++ /dev/null @@ -1,501 +0,0 @@ -// secblock.h - written and placed in the public domain by Wei Dai - -#ifndef CRYPTOPP_SECBLOCK_H -#define CRYPTOPP_SECBLOCK_H - -#include "config.h" -#include "misc.h" -#include - -#if defined(CRYPTOPP_MEMALIGN_AVAILABLE) || defined(CRYPTOPP_MM_MALLOC_AVAILABLE) || defined(QNX) - #include -#else - #include -#endif - -NAMESPACE_BEGIN(CryptoPP) - -// ************** secure memory allocation *************** - -template -class AllocatorBase -{ -public: - typedef T value_type; - typedef size_t size_type; -#ifdef CRYPTOPP_MSVCRT6 - typedef ptrdiff_t difference_type; -#else - typedef std::ptrdiff_t difference_type; -#endif - typedef T * pointer; - typedef const T * const_pointer; - typedef T & reference; - typedef const T & const_reference; - - pointer address(reference r) const {return (&r);} - const_pointer address(const_reference r) const {return (&r); } - void construct(pointer p, const T& val) {new (p) T(val);} - void destroy(pointer p) {p->~T();} - size_type max_size() const {return ~size_type(0)/sizeof(T);} // switch to std::numeric_limits::max later - -protected: - static void CheckSize(size_t n) - { - if (n > ~size_t(0) / sizeof(T)) - throw InvalidArgument("AllocatorBase: requested size would cause integer overflow"); - } -}; - -#define CRYPTOPP_INHERIT_ALLOCATOR_TYPES \ -typedef typename AllocatorBase::value_type value_type;\ -typedef typename AllocatorBase::size_type size_type;\ -typedef typename AllocatorBase::difference_type difference_type;\ -typedef typename AllocatorBase::pointer pointer;\ -typedef typename AllocatorBase::const_pointer const_pointer;\ -typedef typename AllocatorBase::reference reference;\ -typedef typename AllocatorBase::const_reference const_reference; - -#if defined(_MSC_VER) && (_MSC_VER < 1300) -// this pragma causes an internal compiler error if placed immediately before std::swap(a, b) -#pragma warning(push) -#pragma warning(disable: 4700) // VC60 workaround: don't know how to get rid of this warning -#endif - -template -typename A::pointer StandardReallocate(A& a, T *p, typename A::size_type oldSize, typename A::size_type newSize, bool preserve) -{ - if (oldSize == newSize) - return p; - - if (preserve) - { - typename A::pointer newPointer = a.allocate(newSize, NULL); - memcpy_s(newPointer, sizeof(T)*newSize, p, sizeof(T)*STDMIN(oldSize, newSize)); - a.deallocate(p, oldSize); - return newPointer; - } - else - { - a.deallocate(p, oldSize); - return a.allocate(newSize, NULL); - } -} - -#if defined(_MSC_VER) && (_MSC_VER < 1300) -#pragma warning(pop) -#endif - -template -class AllocatorWithCleanup : public AllocatorBase -{ -public: - CRYPTOPP_INHERIT_ALLOCATOR_TYPES - - pointer allocate(size_type n, const void * = NULL) - { - CheckSize(n); - if (n == 0) - return NULL; - - if (CRYPTOPP_BOOL_ALIGN16_ENABLED && T_Align16 && n*sizeof(T) >= 16) - { - byte *p; - #ifdef CRYPTOPP_MM_MALLOC_AVAILABLE - while (!(p = (byte *)_mm_malloc(sizeof(T)*n, 16))) - #elif defined(CRYPTOPP_MEMALIGN_AVAILABLE) - while (!(p = (byte *)memalign(16, sizeof(T)*n))) - #elif defined(CRYPTOPP_MALLOC_ALIGNMENT_IS_16) - while (!(p = (byte *)malloc(sizeof(T)*n))) - #else - while (!(p = (byte *)malloc(sizeof(T)*n + 16))) - #endif - CallNewHandler(); - - #ifdef CRYPTOPP_NO_ALIGNED_ALLOC - size_t adjustment = 16-((size_t)p%16); - p += adjustment; - p[-1] = (byte)adjustment; - #endif - - assert(IsAlignedOn(p, 16)); - return (pointer)p; - } - - pointer p; - while (!(p = (pointer)malloc(sizeof(T)*n))) - CallNewHandler(); - return p; - } - - void deallocate(void *p, size_type n) - { - memset_z(p, 0, n*sizeof(T)); - - if (CRYPTOPP_BOOL_ALIGN16_ENABLED && T_Align16 && n*sizeof(T) >= 16) - { - #ifdef CRYPTOPP_MM_MALLOC_AVAILABLE - _mm_free(p); - #elif defined(CRYPTOPP_NO_ALIGNED_ALLOC) - p = (byte *)p - ((byte *)p)[-1]; - free(p); - #else - free(p); - #endif - return; - } - - free(p); - } - - pointer reallocate(T *p, size_type oldSize, size_type newSize, bool preserve) - { - return StandardReallocate(*this, p, oldSize, newSize, preserve); - } - - // VS.NET STL enforces the policy of "All STL-compliant allocators have to provide a - // template class member called rebind". - template struct rebind { typedef AllocatorWithCleanup other; }; -#if _MSC_VER >= 1500 - AllocatorWithCleanup() {} - template AllocatorWithCleanup(const AllocatorWithCleanup &) {} -#endif -}; - -CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; -CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; -CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; -CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; -#if CRYPTOPP_BOOL_X86 -CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; // for Integer -#endif - -template -class NullAllocator : public AllocatorBase -{ -public: - CRYPTOPP_INHERIT_ALLOCATOR_TYPES - - pointer allocate(size_type n, const void * = NULL) - { - assert(false); - return NULL; - } - - void deallocate(void *p, size_type n) - { - //// Bitcoin: don't know why this trips, probably a false alarm, depends on the compiler used. - //assert(false); - } - - size_type max_size() const {return 0;} -}; - -// This allocator can't be used with standard collections because -// they require that all objects of the same allocator type are equivalent. -// So this is for use with SecBlock only. -template , bool T_Align16 = false> -class FixedSizeAllocatorWithCleanup : public AllocatorBase -{ -public: - CRYPTOPP_INHERIT_ALLOCATOR_TYPES - - FixedSizeAllocatorWithCleanup() : m_allocated(false) {} - - pointer allocate(size_type n) - { - assert(IsAlignedOn(m_array, 8)); - - if (n <= S && !m_allocated) - { - m_allocated = true; - return GetAlignedArray(); - } - else - return m_fallbackAllocator.allocate(n); - } - - pointer allocate(size_type n, const void *hint) - { - if (n <= S && !m_allocated) - { - m_allocated = true; - return GetAlignedArray(); - } - else - return m_fallbackAllocator.allocate(n, hint); - } - - void deallocate(void *p, size_type n) - { - if (p == GetAlignedArray()) - { - assert(n <= S); - assert(m_allocated); - m_allocated = false; - memset(p, 0, n*sizeof(T)); - } - else - m_fallbackAllocator.deallocate(p, n); - } - - pointer reallocate(pointer p, size_type oldSize, size_type newSize, bool preserve) - { - if (p == GetAlignedArray() && newSize <= S) - { - assert(oldSize <= S); - if (oldSize > newSize) - memset(p + newSize, 0, (oldSize-newSize)*sizeof(T)); - return p; - } - - pointer newPointer = allocate(newSize, NULL); - if (preserve) - memcpy(newPointer, p, sizeof(T)*STDMIN(oldSize, newSize)); - deallocate(p, oldSize); - return newPointer; - } - - size_type max_size() const {return STDMAX(m_fallbackAllocator.max_size(), S);} - -private: -#ifdef __BORLANDC__ - T* GetAlignedArray() {return m_array;} - T m_array[S]; -#else - T* GetAlignedArray() {return (CRYPTOPP_BOOL_ALIGN16_ENABLED && T_Align16) ? (T*)(((byte *)m_array) + (0-(size_t)m_array)%16) : m_array;} - CRYPTOPP_ALIGN_DATA(8) T m_array[(CRYPTOPP_BOOL_ALIGN16_ENABLED && T_Align16) ? S+8/sizeof(T) : S]; -#endif - A m_fallbackAllocator; - bool m_allocated; -}; - -//! a block of memory allocated using A -template > -class SecBlock -{ -public: - typedef typename A::value_type value_type; - typedef typename A::pointer iterator; - typedef typename A::const_pointer const_iterator; - typedef typename A::size_type size_type; - - explicit SecBlock(size_type size=0) - : m_size(size) {m_ptr = m_alloc.allocate(size, NULL);} - SecBlock(const SecBlock &t) - : m_size(t.m_size) {m_ptr = m_alloc.allocate(m_size, NULL); memcpy_s(m_ptr, m_size*sizeof(T), t.m_ptr, m_size*sizeof(T));} - SecBlock(const T *t, size_type len) - : m_size(len) - { - m_ptr = m_alloc.allocate(len, NULL); - if (t == NULL) - memset_z(m_ptr, 0, len*sizeof(T)); - else - memcpy(m_ptr, t, len*sizeof(T)); - } - - ~SecBlock() - {m_alloc.deallocate(m_ptr, m_size);} - -#ifdef __BORLANDC__ - operator T *() const - {return (T*)m_ptr;} -#else - operator const void *() const - {return m_ptr;} - operator void *() - {return m_ptr;} - - operator const T *() const - {return m_ptr;} - operator T *() - {return m_ptr;} -#endif - -// T *operator +(size_type offset) -// {return m_ptr+offset;} - -// const T *operator +(size_type offset) const -// {return m_ptr+offset;} - -// T& operator[](size_type index) -// {assert(index >= 0 && index < m_size); return m_ptr[index];} - -// const T& operator[](size_type index) const -// {assert(index >= 0 && index < m_size); return m_ptr[index];} - - iterator begin() - {return m_ptr;} - const_iterator begin() const - {return m_ptr;} - iterator end() - {return m_ptr+m_size;} - const_iterator end() const - {return m_ptr+m_size;} - - typename A::pointer data() {return m_ptr;} - typename A::const_pointer data() const {return m_ptr;} - - size_type size() const {return m_size;} - bool empty() const {return m_size == 0;} - - byte * BytePtr() {return (byte *)m_ptr;} - const byte * BytePtr() const {return (const byte *)m_ptr;} - size_type SizeInBytes() const {return m_size*sizeof(T);} - - //! set contents and size - void Assign(const T *t, size_type len) - { - New(len); - memcpy_s(m_ptr, m_size*sizeof(T), t, len*sizeof(T)); - } - - //! copy contents and size from another SecBlock - void Assign(const SecBlock &t) - { - New(t.m_size); - memcpy_s(m_ptr, m_size*sizeof(T), t.m_ptr, m_size*sizeof(T)); - } - - SecBlock& operator=(const SecBlock &t) - { - Assign(t); - return *this; - } - - // append to this object - SecBlock& operator+=(const SecBlock &t) - { - size_type oldSize = m_size; - Grow(m_size+t.m_size); - memcpy_s(m_ptr+oldSize, m_size*sizeof(T), t.m_ptr, t.m_size*sizeof(T)); - return *this; - } - - // append operator - SecBlock operator+(const SecBlock &t) - { - SecBlock result(m_size+t.m_size); - memcpy_s(result.m_ptr, result.m_size*sizeof(T), m_ptr, m_size*sizeof(T)); - memcpy_s(result.m_ptr+m_size, t.m_size*sizeof(T), t.m_ptr, t.m_size*sizeof(T)); - return result; - } - - bool operator==(const SecBlock &t) const - { - return m_size == t.m_size && VerifyBufsEqual(m_ptr, t.m_ptr, m_size*sizeof(T)); - } - - bool operator!=(const SecBlock &t) const - { - return !operator==(t); - } - - //! change size, without preserving contents - void New(size_type newSize) - { - m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, false); - m_size = newSize; - } - - //! change size and set contents to 0 - void CleanNew(size_type newSize) - { - New(newSize); - memset_z(m_ptr, 0, m_size*sizeof(T)); - } - - //! change size only if newSize > current size. contents are preserved - void Grow(size_type newSize) - { - if (newSize > m_size) - { - m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, true); - m_size = newSize; - } - } - - //! change size only if newSize > current size. contents are preserved and additional area is set to 0 - void CleanGrow(size_type newSize) - { - if (newSize > m_size) - { - m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, true); - memset(m_ptr+m_size, 0, (newSize-m_size)*sizeof(T)); - m_size = newSize; - } - } - - //! change size and preserve contents - void resize(size_type newSize) - { - m_ptr = m_alloc.reallocate(m_ptr, m_size, newSize, true); - m_size = newSize; - } - - //! swap contents and size with another SecBlock - void swap(SecBlock &b) - { - std::swap(m_alloc, b.m_alloc); - std::swap(m_size, b.m_size); - std::swap(m_ptr, b.m_ptr); - } - -//private: - A m_alloc; - size_type m_size; - T *m_ptr; -}; - -typedef SecBlock SecByteBlock; -typedef SecBlock > AlignedSecByteBlock; -typedef SecBlock SecWordBlock; - -//! a SecBlock with fixed size, allocated statically -template > -class FixedSizeSecBlock : public SecBlock -{ -public: - explicit FixedSizeSecBlock() : SecBlock(S) {} -}; - -template -class FixedSizeAlignedSecBlock : public FixedSizeSecBlock, T_Align16> > -{ -}; - -//! a SecBlock that preallocates size S statically, and uses the heap when this size is exceeded -template > > -class SecBlockWithHint : public SecBlock -{ -public: - explicit SecBlockWithHint(size_t size) : SecBlock(size) {} -}; - -template -inline bool operator==(const CryptoPP::AllocatorWithCleanup&, const CryptoPP::AllocatorWithCleanup&) {return (true);} -template -inline bool operator!=(const CryptoPP::AllocatorWithCleanup&, const CryptoPP::AllocatorWithCleanup&) {return (false);} - -NAMESPACE_END - -NAMESPACE_BEGIN(std) -template -inline void swap(CryptoPP::SecBlock &a, CryptoPP::SecBlock &b) -{ - a.swap(b); -} - -#if defined(_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE) || (defined(_STLPORT_VERSION) && !defined(_STLP_MEMBER_TEMPLATE_CLASSES)) -// working for STLport 5.1.3 and MSVC 6 SP5 -template -inline CryptoPP::AllocatorWithCleanup<_Tp2>& -__stl_alloc_rebind(CryptoPP::AllocatorWithCleanup<_Tp1>& __a, const _Tp2*) -{ - return (CryptoPP::AllocatorWithCleanup<_Tp2>&)(__a); -} -#endif - -NAMESPACE_END - -#endif diff --git a/src/cryptopp/sha.cpp b/src/cryptopp/sha.cpp deleted file mode 100644 index fd0b0a2..0000000 --- a/src/cryptopp/sha.cpp +++ /dev/null @@ -1,899 +0,0 @@ -// sha.cpp - modified by Wei Dai from Steve Reid's public domain sha1.c - -// Steve Reid implemented SHA-1. Wei Dai implemented SHA-2. -// Both are in the public domain. - -// use "cl /EP /P /DCRYPTOPP_GENERATE_X64_MASM sha.cpp" to generate MASM code - -#include "pch.h" - -#ifndef CRYPTOPP_IMPORTS -#ifndef CRYPTOPP_GENERATE_X64_MASM - -#include "sha.h" -#include "misc.h" -#include "cpu.h" - -NAMESPACE_BEGIN(CryptoPP) - -// start of Steve Reid's code - -#define blk0(i) (W[i] = data[i]) -#define blk1(i) (W[i&15] = rotlFixed(W[(i+13)&15]^W[(i+8)&15]^W[(i+2)&15]^W[i&15],1)) - -void SHA1::InitState(HashWordType *state) -{ - state[0] = 0x67452301L; - state[1] = 0xEFCDAB89L; - state[2] = 0x98BADCFEL; - state[3] = 0x10325476L; - state[4] = 0xC3D2E1F0L; -} - -#define f1(x,y,z) (z^(x&(y^z))) -#define f2(x,y,z) (x^y^z) -#define f3(x,y,z) ((x&y)|(z&(x|y))) -#define f4(x,y,z) (x^y^z) - -/* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */ -#define R0(v,w,x,y,z,i) z+=f1(w,x,y)+blk0(i)+0x5A827999+rotlFixed(v,5);w=rotlFixed(w,30); -#define R1(v,w,x,y,z,i) z+=f1(w,x,y)+blk1(i)+0x5A827999+rotlFixed(v,5);w=rotlFixed(w,30); -#define R2(v,w,x,y,z,i) z+=f2(w,x,y)+blk1(i)+0x6ED9EBA1+rotlFixed(v,5);w=rotlFixed(w,30); -#define R3(v,w,x,y,z,i) z+=f3(w,x,y)+blk1(i)+0x8F1BBCDC+rotlFixed(v,5);w=rotlFixed(w,30); -#define R4(v,w,x,y,z,i) z+=f4(w,x,y)+blk1(i)+0xCA62C1D6+rotlFixed(v,5);w=rotlFixed(w,30); - -void SHA1::Transform(word32 *state, const word32 *data) -{ - word32 W[16]; - /* Copy context->state[] to working vars */ - word32 a = state[0]; - word32 b = state[1]; - word32 c = state[2]; - word32 d = state[3]; - word32 e = state[4]; - /* 4 rounds of 20 operations each. Loop unrolled. */ - R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); - R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); - R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); - R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); - R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); - R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); - R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); - R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); - R2(d,e,a,b,c,32); R2(c,d,e,a,b,33); R2(b,c,d,e,a,34); R2(a,b,c,d,e,35); - R2(e,a,b,c,d,36); R2(d,e,a,b,c,37); R2(c,d,e,a,b,38); R2(b,c,d,e,a,39); - R3(a,b,c,d,e,40); R3(e,a,b,c,d,41); R3(d,e,a,b,c,42); R3(c,d,e,a,b,43); - R3(b,c,d,e,a,44); R3(a,b,c,d,e,45); R3(e,a,b,c,d,46); R3(d,e,a,b,c,47); - R3(c,d,e,a,b,48); R3(b,c,d,e,a,49); R3(a,b,c,d,e,50); R3(e,a,b,c,d,51); - R3(d,e,a,b,c,52); R3(c,d,e,a,b,53); R3(b,c,d,e,a,54); R3(a,b,c,d,e,55); - R3(e,a,b,c,d,56); R3(d,e,a,b,c,57); R3(c,d,e,a,b,58); R3(b,c,d,e,a,59); - R4(a,b,c,d,e,60); R4(e,a,b,c,d,61); R4(d,e,a,b,c,62); R4(c,d,e,a,b,63); - R4(b,c,d,e,a,64); R4(a,b,c,d,e,65); R4(e,a,b,c,d,66); R4(d,e,a,b,c,67); - R4(c,d,e,a,b,68); R4(b,c,d,e,a,69); R4(a,b,c,d,e,70); R4(e,a,b,c,d,71); - R4(d,e,a,b,c,72); R4(c,d,e,a,b,73); R4(b,c,d,e,a,74); R4(a,b,c,d,e,75); - R4(e,a,b,c,d,76); R4(d,e,a,b,c,77); R4(c,d,e,a,b,78); R4(b,c,d,e,a,79); - /* Add the working vars back into context.state[] */ - state[0] += a; - state[1] += b; - state[2] += c; - state[3] += d; - state[4] += e; -} - -// end of Steve Reid's code - -// ************************************************************* - -void SHA224::InitState(HashWordType *state) -{ - static const word32 s[8] = {0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4}; - memcpy(state, s, sizeof(s)); -} - -void SHA256::InitState(HashWordType *state) -{ - static const word32 s[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19}; - memcpy(state, s, sizeof(s)); -} - -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE -CRYPTOPP_ALIGN_DATA(16) extern const word32 SHA256_K[64] CRYPTOPP_SECTION_ALIGN16 = { -#else -extern const word32 SHA256_K[64] = { -#endif - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, - 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, - 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, - 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, - 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, - 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, - 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, - 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, - 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 -}; - -#endif // #ifndef CRYPTOPP_GENERATE_X64_MASM - -#if defined(CRYPTOPP_X86_ASM_AVAILABLE) || defined(CRYPTOPP_GENERATE_X64_MASM) - -#pragma warning(disable: 4731) // frame pointer register 'ebp' modified by inline assembly code - -static void CRYPTOPP_FASTCALL X86_SHA256_HashBlocks(word32 *state, const word32 *data, size_t len -#if defined(_MSC_VER) && (_MSC_VER == 1200) - , ... // VC60 workaround: prevent VC 6 from inlining this function -#endif - ) -{ -#if defined(_MSC_VER) && (_MSC_VER == 1200) - AS2(mov ecx, [state]) - AS2(mov edx, [data]) -#endif - - #define LOCALS_SIZE 8*4 + 16*4 + 4*WORD_SZ - #define H(i) [BASE+ASM_MOD(1024+7-(i),8)*4] - #define G(i) H(i+1) - #define F(i) H(i+2) - #define E(i) H(i+3) - #define D(i) H(i+4) - #define C(i) H(i+5) - #define B(i) H(i+6) - #define A(i) H(i+7) - #define Wt(i) BASE+8*4+ASM_MOD(1024+15-(i),16)*4 - #define Wt_2(i) Wt((i)-2) - #define Wt_15(i) Wt((i)-15) - #define Wt_7(i) Wt((i)-7) - #define K_END [BASE+8*4+16*4+0*WORD_SZ] - #define STATE_SAVE [BASE+8*4+16*4+1*WORD_SZ] - #define DATA_SAVE [BASE+8*4+16*4+2*WORD_SZ] - #define DATA_END [BASE+8*4+16*4+3*WORD_SZ] - #define Kt(i) WORD_REG(si)+(i)*4 -#if CRYPTOPP_BOOL_X86 - #define BASE esp+4 -#elif defined(__GNUC__) - #define BASE r8 -#else - #define BASE rsp -#endif - -#define RA0(i, edx, edi) \ - AS2( add edx, [Kt(i)] )\ - AS2( add edx, [Wt(i)] )\ - AS2( add edx, H(i) )\ - -#define RA1(i, edx, edi) - -#define RB0(i, edx, edi) - -#define RB1(i, edx, edi) \ - AS2( mov AS_REG_7d, [Wt_2(i)] )\ - AS2( mov edi, [Wt_15(i)])\ - AS2( mov ebx, AS_REG_7d )\ - AS2( shr AS_REG_7d, 10 )\ - AS2( ror ebx, 17 )\ - AS2( xor AS_REG_7d, ebx )\ - AS2( ror ebx, 2 )\ - AS2( xor ebx, AS_REG_7d )/* s1(W_t-2) */\ - AS2( add ebx, [Wt_7(i)])\ - AS2( mov AS_REG_7d, edi )\ - AS2( shr AS_REG_7d, 3 )\ - AS2( ror edi, 7 )\ - AS2( add ebx, [Wt(i)])/* s1(W_t-2) + W_t-7 + W_t-16 */\ - AS2( xor AS_REG_7d, edi )\ - AS2( add edx, [Kt(i)])\ - AS2( ror edi, 11 )\ - AS2( add edx, H(i) )\ - AS2( xor AS_REG_7d, edi )/* s0(W_t-15) */\ - AS2( add AS_REG_7d, ebx )/* W_t = s1(W_t-2) + W_t-7 + s0(W_t-15) W_t-16*/\ - AS2( mov [Wt(i)], AS_REG_7d)\ - AS2( add edx, AS_REG_7d )\ - -#define ROUND(i, r, eax, ecx, edi, edx)\ - /* in: edi = E */\ - /* unused: eax, ecx, temp: ebx, AS_REG_7d, out: edx = T1 */\ - AS2( mov edx, F(i) )\ - AS2( xor edx, G(i) )\ - AS2( and edx, edi )\ - AS2( xor edx, G(i) )/* Ch(E,F,G) = (G^(E&(F^G))) */\ - AS2( mov AS_REG_7d, edi )\ - AS2( ror edi, 6 )\ - AS2( ror AS_REG_7d, 25 )\ - RA##r(i, edx, edi )/* H + Wt + Kt + Ch(E,F,G) */\ - AS2( xor AS_REG_7d, edi )\ - AS2( ror edi, 5 )\ - AS2( xor AS_REG_7d, edi )/* S1(E) */\ - AS2( add edx, AS_REG_7d )/* T1 = S1(E) + Ch(E,F,G) + H + Wt + Kt */\ - RB##r(i, edx, edi )/* H + Wt + Kt + Ch(E,F,G) */\ - /* in: ecx = A, eax = B^C, edx = T1 */\ - /* unused: edx, temp: ebx, AS_REG_7d, out: eax = A, ecx = B^C, edx = E */\ - AS2( mov ebx, ecx )\ - AS2( xor ecx, B(i) )/* A^B */\ - AS2( and eax, ecx )\ - AS2( xor eax, B(i) )/* Maj(A,B,C) = B^((A^B)&(B^C) */\ - AS2( mov AS_REG_7d, ebx )\ - AS2( ror ebx, 2 )\ - AS2( add eax, edx )/* T1 + Maj(A,B,C) */\ - AS2( add edx, D(i) )\ - AS2( mov D(i), edx )\ - AS2( ror AS_REG_7d, 22 )\ - AS2( xor AS_REG_7d, ebx )\ - AS2( ror ebx, 11 )\ - AS2( xor AS_REG_7d, ebx )\ - AS2( add eax, AS_REG_7d )/* T1 + S0(A) + Maj(A,B,C) */\ - AS2( mov H(i), eax )\ - -#define SWAP_COPY(i) \ - AS2( mov WORD_REG(bx), [WORD_REG(dx)+i*WORD_SZ])\ - AS1( bswap WORD_REG(bx))\ - AS2( mov [Wt(i*(1+CRYPTOPP_BOOL_X64)+CRYPTOPP_BOOL_X64)], WORD_REG(bx)) - -#if defined(__GNUC__) - #if CRYPTOPP_BOOL_X64 - FixedSizeAlignedSecBlock workspace; - #endif - __asm__ __volatile__ - ( - #if CRYPTOPP_BOOL_X64 - "lea %4, %%r8;" - #endif - ".intel_syntax noprefix;" -#elif defined(CRYPTOPP_GENERATE_X64_MASM) - ALIGN 8 - X86_SHA256_HashBlocks PROC FRAME - rex_push_reg rsi - push_reg rdi - push_reg rbx - push_reg rbp - alloc_stack(LOCALS_SIZE+8) - .endprolog - mov rdi, r8 - lea rsi, [?SHA256_K@CryptoPP@@3QBIB + 48*4] -#endif - -#if CRYPTOPP_BOOL_X86 - #ifndef __GNUC__ - AS2( mov edi, [len]) - AS2( lea WORD_REG(si), [SHA256_K+48*4]) - #endif - #if !defined(_MSC_VER) || (_MSC_VER < 1400) - AS_PUSH_IF86(bx) - #endif - - AS_PUSH_IF86(bp) - AS2( mov ebx, esp) - AS2( and esp, -16) - AS2( sub WORD_REG(sp), LOCALS_SIZE) - AS_PUSH_IF86(bx) -#endif - AS2( mov STATE_SAVE, WORD_REG(cx)) - AS2( mov DATA_SAVE, WORD_REG(dx)) - AS2( add WORD_REG(di), WORD_REG(dx)) - AS2( mov DATA_END, WORD_REG(di)) - AS2( mov K_END, WORD_REG(si)) - -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE -#if CRYPTOPP_BOOL_X86 - AS2( test edi, 1) - ASJ( jnz, 2, f) -#endif - AS2( movdqa xmm0, XMMWORD_PTR [WORD_REG(cx)+0*16]) - AS2( movdqa xmm1, XMMWORD_PTR [WORD_REG(cx)+1*16]) -#endif - -#if CRYPTOPP_BOOL_X86 -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE - ASJ( jmp, 0, f) -#endif - ASL(2) // non-SSE2 - AS2( mov esi, ecx) - AS2( lea edi, A(0)) - AS2( mov ecx, 8) - AS1( rep movsd) - AS2( mov esi, K_END) - ASJ( jmp, 3, f) -#endif - -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE - ASL(0) - AS2( movdqa E(0), xmm1) - AS2( movdqa A(0), xmm0) -#endif -#if CRYPTOPP_BOOL_X86 - ASL(3) -#endif - AS2( sub WORD_REG(si), 48*4) - SWAP_COPY(0) SWAP_COPY(1) SWAP_COPY(2) SWAP_COPY(3) - SWAP_COPY(4) SWAP_COPY(5) SWAP_COPY(6) SWAP_COPY(7) -#if CRYPTOPP_BOOL_X86 - SWAP_COPY(8) SWAP_COPY(9) SWAP_COPY(10) SWAP_COPY(11) - SWAP_COPY(12) SWAP_COPY(13) SWAP_COPY(14) SWAP_COPY(15) -#endif - AS2( mov edi, E(0)) // E - AS2( mov eax, B(0)) // B - AS2( xor eax, C(0)) // B^C - AS2( mov ecx, A(0)) // A - - ROUND(0, 0, eax, ecx, edi, edx) - ROUND(1, 0, ecx, eax, edx, edi) - ROUND(2, 0, eax, ecx, edi, edx) - ROUND(3, 0, ecx, eax, edx, edi) - ROUND(4, 0, eax, ecx, edi, edx) - ROUND(5, 0, ecx, eax, edx, edi) - ROUND(6, 0, eax, ecx, edi, edx) - ROUND(7, 0, ecx, eax, edx, edi) - ROUND(8, 0, eax, ecx, edi, edx) - ROUND(9, 0, ecx, eax, edx, edi) - ROUND(10, 0, eax, ecx, edi, edx) - ROUND(11, 0, ecx, eax, edx, edi) - ROUND(12, 0, eax, ecx, edi, edx) - ROUND(13, 0, ecx, eax, edx, edi) - ROUND(14, 0, eax, ecx, edi, edx) - ROUND(15, 0, ecx, eax, edx, edi) - - ASL(1) - AS2(add WORD_REG(si), 4*16) - ROUND(0, 1, eax, ecx, edi, edx) - ROUND(1, 1, ecx, eax, edx, edi) - ROUND(2, 1, eax, ecx, edi, edx) - ROUND(3, 1, ecx, eax, edx, edi) - ROUND(4, 1, eax, ecx, edi, edx) - ROUND(5, 1, ecx, eax, edx, edi) - ROUND(6, 1, eax, ecx, edi, edx) - ROUND(7, 1, ecx, eax, edx, edi) - ROUND(8, 1, eax, ecx, edi, edx) - ROUND(9, 1, ecx, eax, edx, edi) - ROUND(10, 1, eax, ecx, edi, edx) - ROUND(11, 1, ecx, eax, edx, edi) - ROUND(12, 1, eax, ecx, edi, edx) - ROUND(13, 1, ecx, eax, edx, edi) - ROUND(14, 1, eax, ecx, edi, edx) - ROUND(15, 1, ecx, eax, edx, edi) - AS2( cmp WORD_REG(si), K_END) - ASJ( jne, 1, b) - - AS2( mov WORD_REG(dx), DATA_SAVE) - AS2( add WORD_REG(dx), 64) - AS2( mov AS_REG_7, STATE_SAVE) - AS2( mov DATA_SAVE, WORD_REG(dx)) - -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE -#if CRYPTOPP_BOOL_X86 - AS2( test DWORD PTR DATA_END, 1) - ASJ( jnz, 4, f) -#endif - AS2( movdqa xmm1, XMMWORD_PTR [AS_REG_7+1*16]) - AS2( movdqa xmm0, XMMWORD_PTR [AS_REG_7+0*16]) - AS2( paddd xmm1, E(0)) - AS2( paddd xmm0, A(0)) - AS2( movdqa [AS_REG_7+1*16], xmm1) - AS2( movdqa [AS_REG_7+0*16], xmm0) - AS2( cmp WORD_REG(dx), DATA_END) - ASJ( jl, 0, b) -#endif - -#if CRYPTOPP_BOOL_X86 -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE - ASJ( jmp, 5, f) - ASL(4) // non-SSE2 -#endif - AS2( add [AS_REG_7+0*4], ecx) // A - AS2( add [AS_REG_7+4*4], edi) // E - AS2( mov eax, B(0)) - AS2( mov ebx, C(0)) - AS2( mov ecx, D(0)) - AS2( add [AS_REG_7+1*4], eax) - AS2( add [AS_REG_7+2*4], ebx) - AS2( add [AS_REG_7+3*4], ecx) - AS2( mov eax, F(0)) - AS2( mov ebx, G(0)) - AS2( mov ecx, H(0)) - AS2( add [AS_REG_7+5*4], eax) - AS2( add [AS_REG_7+6*4], ebx) - AS2( add [AS_REG_7+7*4], ecx) - AS2( mov ecx, AS_REG_7d) - AS2( cmp WORD_REG(dx), DATA_END) - ASJ( jl, 2, b) -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE - ASL(5) -#endif -#endif - - AS_POP_IF86(sp) - AS_POP_IF86(bp) - #if !defined(_MSC_VER) || (_MSC_VER < 1400) - AS_POP_IF86(bx) - #endif - -#ifdef CRYPTOPP_GENERATE_X64_MASM - add rsp, LOCALS_SIZE+8 - pop rbp - pop rbx - pop rdi - pop rsi - ret - X86_SHA256_HashBlocks ENDP -#endif - -#ifdef __GNUC__ - ".att_syntax prefix;" - : - : "c" (state), "d" (data), "S" (SHA256_K+48), "D" (len) - #if CRYPTOPP_BOOL_X64 - , "m" (workspace[0]) - #endif - : "memory", "cc", "%eax" - #if CRYPTOPP_BOOL_X64 - , "%rbx", "%r8" - #endif - ); -#endif -} - -#endif // #if defined(CRYPTOPP_X86_ASM_AVAILABLE) || defined(CRYPTOPP_GENERATE_X64_MASM) - -#ifndef CRYPTOPP_GENERATE_X64_MASM - -#ifdef CRYPTOPP_X64_MASM_AVAILABLE -extern "C" { -void CRYPTOPP_FASTCALL X86_SHA256_HashBlocks(word32 *state, const word32 *data, size_t len); -} -#endif - -#if defined(CRYPTOPP_X86_ASM_AVAILABLE) || defined(CRYPTOPP_X64_MASM_AVAILABLE) - -size_t SHA256::HashMultipleBlocks(const word32 *input, size_t length) -{ - X86_SHA256_HashBlocks(m_state, input, (length&(size_t(0)-BLOCKSIZE)) - !HasSSE2()); - return length % BLOCKSIZE; -} - -size_t SHA224::HashMultipleBlocks(const word32 *input, size_t length) -{ - X86_SHA256_HashBlocks(m_state, input, (length&(size_t(0)-BLOCKSIZE)) - !HasSSE2()); - return length % BLOCKSIZE; -} - -#endif - -#define blk2(i) (W[i&15]+=s1(W[(i-2)&15])+W[(i-7)&15]+s0(W[(i-15)&15])) - -#define Ch(x,y,z) (z^(x&(y^z))) -#define Maj(x,y,z) (y^((x^y)&(y^z))) - -#define a(i) T[(0-i)&7] -#define b(i) T[(1-i)&7] -#define c(i) T[(2-i)&7] -#define d(i) T[(3-i)&7] -#define e(i) T[(4-i)&7] -#define f(i) T[(5-i)&7] -#define g(i) T[(6-i)&7] -#define h(i) T[(7-i)&7] - -#define R(i) h(i)+=S1(e(i))+Ch(e(i),f(i),g(i))+SHA256_K[i+j]+(j?blk2(i):blk0(i));\ - d(i)+=h(i);h(i)+=S0(a(i))+Maj(a(i),b(i),c(i)) - -// for SHA256 -#define S0(x) (rotrFixed(x,2)^rotrFixed(x,13)^rotrFixed(x,22)) -#define S1(x) (rotrFixed(x,6)^rotrFixed(x,11)^rotrFixed(x,25)) -#define s0(x) (rotrFixed(x,7)^rotrFixed(x,18)^(x>>3)) -#define s1(x) (rotrFixed(x,17)^rotrFixed(x,19)^(x>>10)) - -void SHA256::Transform(word32 *state, const word32 *data) -{ - word32 W[16]; -#if defined(CRYPTOPP_X86_ASM_AVAILABLE) || defined(CRYPTOPP_X64_MASM_AVAILABLE) - // this byte reverse is a waste of time, but this function is only called by MDC - ByteReverse(W, data, BLOCKSIZE); - X86_SHA256_HashBlocks(state, W, BLOCKSIZE - !HasSSE2()); -#else - word32 T[8]; - /* Copy context->state[] to working vars */ - memcpy(T, state, sizeof(T)); - /* 64 operations, partially loop unrolled */ - for (unsigned int j=0; j<64; j+=16) - { - R( 0); R( 1); R( 2); R( 3); - R( 4); R( 5); R( 6); R( 7); - R( 8); R( 9); R(10); R(11); - R(12); R(13); R(14); R(15); - } - /* Add the working vars back into context.state[] */ - state[0] += a(0); - state[1] += b(0); - state[2] += c(0); - state[3] += d(0); - state[4] += e(0); - state[5] += f(0); - state[6] += g(0); - state[7] += h(0); -#endif -} - -/* -// smaller but slower -void SHA256::Transform(word32 *state, const word32 *data) -{ - word32 T[20]; - word32 W[32]; - unsigned int i = 0, j = 0; - word32 *t = T+8; - - memcpy(t, state, 8*4); - word32 e = t[4], a = t[0]; - - do - { - word32 w = data[j]; - W[j] = w; - w += SHA256_K[j]; - w += t[7]; - w += S1(e); - w += Ch(e, t[5], t[6]); - e = t[3] + w; - t[3] = t[3+8] = e; - w += S0(t[0]); - a = w + Maj(a, t[1], t[2]); - t[-1] = t[7] = a; - --t; - ++j; - if (j%8 == 0) - t += 8; - } while (j<16); - - do - { - i = j&0xf; - word32 w = s1(W[i+16-2]) + s0(W[i+16-15]) + W[i] + W[i+16-7]; - W[i+16] = W[i] = w; - w += SHA256_K[j]; - w += t[7]; - w += S1(e); - w += Ch(e, t[5], t[6]); - e = t[3] + w; - t[3] = t[3+8] = e; - w += S0(t[0]); - a = w + Maj(a, t[1], t[2]); - t[-1] = t[7] = a; - - w = s1(W[(i+1)+16-2]) + s0(W[(i+1)+16-15]) + W[(i+1)] + W[(i+1)+16-7]; - W[(i+1)+16] = W[(i+1)] = w; - w += SHA256_K[j+1]; - w += (t-1)[7]; - w += S1(e); - w += Ch(e, (t-1)[5], (t-1)[6]); - e = (t-1)[3] + w; - (t-1)[3] = (t-1)[3+8] = e; - w += S0((t-1)[0]); - a = w + Maj(a, (t-1)[1], (t-1)[2]); - (t-1)[-1] = (t-1)[7] = a; - - t-=2; - j+=2; - if (j%8 == 0) - t += 8; - } while (j<64); - - state[0] += a; - state[1] += t[1]; - state[2] += t[2]; - state[3] += t[3]; - state[4] += e; - state[5] += t[5]; - state[6] += t[6]; - state[7] += t[7]; -} -*/ - -#undef S0 -#undef S1 -#undef s0 -#undef s1 -#undef R - -// ************************************************************* - -void SHA384::InitState(HashWordType *state) -{ - static const word64 s[8] = { - W64LIT(0xcbbb9d5dc1059ed8), W64LIT(0x629a292a367cd507), - W64LIT(0x9159015a3070dd17), W64LIT(0x152fecd8f70e5939), - W64LIT(0x67332667ffc00b31), W64LIT(0x8eb44a8768581511), - W64LIT(0xdb0c2e0d64f98fa7), W64LIT(0x47b5481dbefa4fa4)}; - memcpy(state, s, sizeof(s)); -} - -void SHA512::InitState(HashWordType *state) -{ - static const word64 s[8] = { - W64LIT(0x6a09e667f3bcc908), W64LIT(0xbb67ae8584caa73b), - W64LIT(0x3c6ef372fe94f82b), W64LIT(0xa54ff53a5f1d36f1), - W64LIT(0x510e527fade682d1), W64LIT(0x9b05688c2b3e6c1f), - W64LIT(0x1f83d9abfb41bd6b), W64LIT(0x5be0cd19137e2179)}; - memcpy(state, s, sizeof(s)); -} - -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE && CRYPTOPP_BOOL_X86 -CRYPTOPP_ALIGN_DATA(16) static const word64 SHA512_K[80] CRYPTOPP_SECTION_ALIGN16 = { -#else -static const word64 SHA512_K[80] = { -#endif - W64LIT(0x428a2f98d728ae22), W64LIT(0x7137449123ef65cd), - W64LIT(0xb5c0fbcfec4d3b2f), W64LIT(0xe9b5dba58189dbbc), - W64LIT(0x3956c25bf348b538), W64LIT(0x59f111f1b605d019), - W64LIT(0x923f82a4af194f9b), W64LIT(0xab1c5ed5da6d8118), - W64LIT(0xd807aa98a3030242), W64LIT(0x12835b0145706fbe), - W64LIT(0x243185be4ee4b28c), W64LIT(0x550c7dc3d5ffb4e2), - W64LIT(0x72be5d74f27b896f), W64LIT(0x80deb1fe3b1696b1), - W64LIT(0x9bdc06a725c71235), W64LIT(0xc19bf174cf692694), - W64LIT(0xe49b69c19ef14ad2), W64LIT(0xefbe4786384f25e3), - W64LIT(0x0fc19dc68b8cd5b5), W64LIT(0x240ca1cc77ac9c65), - W64LIT(0x2de92c6f592b0275), W64LIT(0x4a7484aa6ea6e483), - W64LIT(0x5cb0a9dcbd41fbd4), W64LIT(0x76f988da831153b5), - W64LIT(0x983e5152ee66dfab), W64LIT(0xa831c66d2db43210), - W64LIT(0xb00327c898fb213f), W64LIT(0xbf597fc7beef0ee4), - W64LIT(0xc6e00bf33da88fc2), W64LIT(0xd5a79147930aa725), - W64LIT(0x06ca6351e003826f), W64LIT(0x142929670a0e6e70), - W64LIT(0x27b70a8546d22ffc), W64LIT(0x2e1b21385c26c926), - W64LIT(0x4d2c6dfc5ac42aed), W64LIT(0x53380d139d95b3df), - W64LIT(0x650a73548baf63de), W64LIT(0x766a0abb3c77b2a8), - W64LIT(0x81c2c92e47edaee6), W64LIT(0x92722c851482353b), - W64LIT(0xa2bfe8a14cf10364), W64LIT(0xa81a664bbc423001), - W64LIT(0xc24b8b70d0f89791), W64LIT(0xc76c51a30654be30), - W64LIT(0xd192e819d6ef5218), W64LIT(0xd69906245565a910), - W64LIT(0xf40e35855771202a), W64LIT(0x106aa07032bbd1b8), - W64LIT(0x19a4c116b8d2d0c8), W64LIT(0x1e376c085141ab53), - W64LIT(0x2748774cdf8eeb99), W64LIT(0x34b0bcb5e19b48a8), - W64LIT(0x391c0cb3c5c95a63), W64LIT(0x4ed8aa4ae3418acb), - W64LIT(0x5b9cca4f7763e373), W64LIT(0x682e6ff3d6b2b8a3), - W64LIT(0x748f82ee5defb2fc), W64LIT(0x78a5636f43172f60), - W64LIT(0x84c87814a1f0ab72), W64LIT(0x8cc702081a6439ec), - W64LIT(0x90befffa23631e28), W64LIT(0xa4506cebde82bde9), - W64LIT(0xbef9a3f7b2c67915), W64LIT(0xc67178f2e372532b), - W64LIT(0xca273eceea26619c), W64LIT(0xd186b8c721c0c207), - W64LIT(0xeada7dd6cde0eb1e), W64LIT(0xf57d4f7fee6ed178), - W64LIT(0x06f067aa72176fba), W64LIT(0x0a637dc5a2c898a6), - W64LIT(0x113f9804bef90dae), W64LIT(0x1b710b35131c471b), - W64LIT(0x28db77f523047d84), W64LIT(0x32caab7b40c72493), - W64LIT(0x3c9ebe0a15c9bebc), W64LIT(0x431d67c49c100d4c), - W64LIT(0x4cc5d4becb3e42b6), W64LIT(0x597f299cfc657e2a), - W64LIT(0x5fcb6fab3ad6faec), W64LIT(0x6c44198c4a475817) -}; - -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE && CRYPTOPP_BOOL_X86 -// put assembly version in separate function, otherwise MSVC 2005 SP1 doesn't generate correct code for the non-assembly version -CRYPTOPP_NAKED static void CRYPTOPP_FASTCALL SHA512_SSE2_Transform(word64 *state, const word64 *data) -{ -#ifdef __GNUC__ - __asm__ __volatile__ - ( - ".intel_syntax noprefix;" - AS1( push ebx) - AS2( mov ebx, eax) -#else - AS1( push ebx) - AS1( push esi) - AS1( push edi) - AS2( lea ebx, SHA512_K) -#endif - - AS2( mov eax, esp) - AS2( and esp, 0xfffffff0) - AS2( sub esp, 27*16) // 17*16 for expanded data, 20*8 for state - AS1( push eax) - AS2( xor eax, eax) - AS2( lea edi, [esp+4+8*8]) // start at middle of state buffer. will decrement pointer each round to avoid copying - AS2( lea esi, [esp+4+20*8+8]) // 16-byte alignment, then add 8 - - AS2( movdqa xmm0, [ecx+0*16]) - AS2( movdq2q mm4, xmm0) - AS2( movdqa [edi+0*16], xmm0) - AS2( movdqa xmm0, [ecx+1*16]) - AS2( movdqa [edi+1*16], xmm0) - AS2( movdqa xmm0, [ecx+2*16]) - AS2( movdq2q mm5, xmm0) - AS2( movdqa [edi+2*16], xmm0) - AS2( movdqa xmm0, [ecx+3*16]) - AS2( movdqa [edi+3*16], xmm0) - ASJ( jmp, 0, f) - -#define SSE2_S0_S1(r, a, b, c) \ - AS2( movq mm6, r)\ - AS2( psrlq r, a)\ - AS2( movq mm7, r)\ - AS2( psllq mm6, 64-c)\ - AS2( pxor mm7, mm6)\ - AS2( psrlq r, b-a)\ - AS2( pxor mm7, r)\ - AS2( psllq mm6, c-b)\ - AS2( pxor mm7, mm6)\ - AS2( psrlq r, c-b)\ - AS2( pxor r, mm7)\ - AS2( psllq mm6, b-a)\ - AS2( pxor r, mm6) - -#define SSE2_s0(r, a, b, c) \ - AS2( movdqa xmm6, r)\ - AS2( psrlq r, a)\ - AS2( movdqa xmm7, r)\ - AS2( psllq xmm6, 64-c)\ - AS2( pxor xmm7, xmm6)\ - AS2( psrlq r, b-a)\ - AS2( pxor xmm7, r)\ - AS2( psrlq r, c-b)\ - AS2( pxor r, xmm7)\ - AS2( psllq xmm6, c-a)\ - AS2( pxor r, xmm6) - -#define SSE2_s1(r, a, b, c) \ - AS2( movdqa xmm6, r)\ - AS2( psrlq r, a)\ - AS2( movdqa xmm7, r)\ - AS2( psllq xmm6, 64-c)\ - AS2( pxor xmm7, xmm6)\ - AS2( psrlq r, b-a)\ - AS2( pxor xmm7, r)\ - AS2( psllq xmm6, c-b)\ - AS2( pxor xmm7, xmm6)\ - AS2( psrlq r, c-b)\ - AS2( pxor r, xmm7) - - ASL(SHA512_Round) - // k + w is in mm0, a is in mm4, e is in mm5 - AS2( paddq mm0, [edi+7*8]) // h - AS2( movq mm2, [edi+5*8]) // f - AS2( movq mm3, [edi+6*8]) // g - AS2( pxor mm2, mm3) - AS2( pand mm2, mm5) - SSE2_S0_S1(mm5,14,18,41) - AS2( pxor mm2, mm3) - AS2( paddq mm0, mm2) // h += Ch(e,f,g) - AS2( paddq mm5, mm0) // h += S1(e) - AS2( movq mm2, [edi+1*8]) // b - AS2( movq mm1, mm2) - AS2( por mm2, mm4) - AS2( pand mm2, [edi+2*8]) // c - AS2( pand mm1, mm4) - AS2( por mm1, mm2) - AS2( paddq mm1, mm5) // temp = h + Maj(a,b,c) - AS2( paddq mm5, [edi+3*8]) // e = d + h - AS2( movq [edi+3*8], mm5) - AS2( movq [edi+11*8], mm5) - SSE2_S0_S1(mm4,28,34,39) // S0(a) - AS2( paddq mm4, mm1) // a = temp + S0(a) - AS2( movq [edi-8], mm4) - AS2( movq [edi+7*8], mm4) - AS1( ret) - - // first 16 rounds - ASL(0) - AS2( movq mm0, [edx+eax*8]) - AS2( movq [esi+eax*8], mm0) - AS2( movq [esi+eax*8+16*8], mm0) - AS2( paddq mm0, [ebx+eax*8]) - ASC( call, SHA512_Round) - AS1( inc eax) - AS2( sub edi, 8) - AS2( test eax, 7) - ASJ( jnz, 0, b) - AS2( add edi, 8*8) - AS2( cmp eax, 16) - ASJ( jne, 0, b) - - // rest of the rounds - AS2( movdqu xmm0, [esi+(16-2)*8]) - ASL(1) - // data expansion, W[i-2] already in xmm0 - AS2( movdqu xmm3, [esi]) - AS2( paddq xmm3, [esi+(16-7)*8]) - AS2( movdqa xmm2, [esi+(16-15)*8]) - SSE2_s1(xmm0, 6, 19, 61) - AS2( paddq xmm0, xmm3) - SSE2_s0(xmm2, 1, 7, 8) - AS2( paddq xmm0, xmm2) - AS2( movdq2q mm0, xmm0) - AS2( movhlps xmm1, xmm0) - AS2( paddq mm0, [ebx+eax*8]) - AS2( movlps [esi], xmm0) - AS2( movlps [esi+8], xmm1) - AS2( movlps [esi+8*16], xmm0) - AS2( movlps [esi+8*17], xmm1) - // 2 rounds - ASC( call, SHA512_Round) - AS2( sub edi, 8) - AS2( movdq2q mm0, xmm1) - AS2( paddq mm0, [ebx+eax*8+8]) - ASC( call, SHA512_Round) - // update indices and loop - AS2( add esi, 16) - AS2( add eax, 2) - AS2( sub edi, 8) - AS2( test eax, 7) - ASJ( jnz, 1, b) - // do housekeeping every 8 rounds - AS2( mov esi, 0xf) - AS2( and esi, eax) - AS2( lea esi, [esp+4+20*8+8+esi*8]) - AS2( add edi, 8*8) - AS2( cmp eax, 80) - ASJ( jne, 1, b) - -#define SSE2_CombineState(i) \ - AS2( movdqa xmm0, [edi+i*16])\ - AS2( paddq xmm0, [ecx+i*16])\ - AS2( movdqa [ecx+i*16], xmm0) - - SSE2_CombineState(0) - SSE2_CombineState(1) - SSE2_CombineState(2) - SSE2_CombineState(3) - - AS1( pop esp) - AS1( emms) - -#if defined(__GNUC__) - AS1( pop ebx) - ".att_syntax prefix;" - : - : "a" (SHA512_K), "c" (state), "d" (data) - : "%esi", "%edi", "memory", "cc" - ); -#else - AS1( pop edi) - AS1( pop esi) - AS1( pop ebx) - AS1( ret) -#endif -} -#endif // #if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE - -void SHA512::Transform(word64 *state, const word64 *data) -{ -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE && CRYPTOPP_BOOL_X86 - if (HasSSE2()) - { - SHA512_SSE2_Transform(state, data); - return; - } -#endif - -#define S0(x) (rotrFixed(x,28)^rotrFixed(x,34)^rotrFixed(x,39)) -#define S1(x) (rotrFixed(x,14)^rotrFixed(x,18)^rotrFixed(x,41)) -#define s0(x) (rotrFixed(x,1)^rotrFixed(x,8)^(x>>7)) -#define s1(x) (rotrFixed(x,19)^rotrFixed(x,61)^(x>>6)) - -#define R(i) h(i)+=S1(e(i))+Ch(e(i),f(i),g(i))+SHA512_K[i+j]+(j?blk2(i):blk0(i));\ - d(i)+=h(i);h(i)+=S0(a(i))+Maj(a(i),b(i),c(i)) - - word64 W[16]; - word64 T[8]; - /* Copy context->state[] to working vars */ - memcpy(T, state, sizeof(T)); - /* 80 operations, partially loop unrolled */ - for (unsigned int j=0; j<80; j+=16) - { - R( 0); R( 1); R( 2); R( 3); - R( 4); R( 5); R( 6); R( 7); - R( 8); R( 9); R(10); R(11); - R(12); R(13); R(14); R(15); - } - /* Add the working vars back into context.state[] */ - state[0] += a(0); - state[1] += b(0); - state[2] += c(0); - state[3] += d(0); - state[4] += e(0); - state[5] += f(0); - state[6] += g(0); - state[7] += h(0); -} - -NAMESPACE_END - -#endif // #ifndef CRYPTOPP_GENERATE_X64_MASM -#endif // #ifndef CRYPTOPP_IMPORTS diff --git a/src/cryptopp/sha.h b/src/cryptopp/sha.h deleted file mode 100644 index 679081e..0000000 --- a/src/cryptopp/sha.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef CRYPTOPP_SHA_H -#define CRYPTOPP_SHA_H - -#include "iterhash.h" - -NAMESPACE_BEGIN(CryptoPP) - -/// SHA-1 -class CRYPTOPP_DLL SHA1 : public IteratedHashWithStaticTransform -{ -public: - static void CRYPTOPP_API InitState(HashWordType *state); - static void CRYPTOPP_API Transform(word32 *digest, const word32 *data); - static const char * CRYPTOPP_API StaticAlgorithmName() {return "SHA-1";} -}; - -typedef SHA1 SHA; // for backwards compatibility - -//! implements the SHA-256 standard -class CRYPTOPP_DLL SHA256 : public IteratedHashWithStaticTransform -{ -public: -#if defined(CRYPTOPP_X86_ASM_AVAILABLE) || defined(CRYPTOPP_X64_MASM_AVAILABLE) - size_t HashMultipleBlocks(const word32 *input, size_t length); -#endif - static void CRYPTOPP_API InitState(HashWordType *state); - static void CRYPTOPP_API Transform(word32 *digest, const word32 *data); - static const char * CRYPTOPP_API StaticAlgorithmName() {return "SHA-256";} -}; - -//! implements the SHA-224 standard -class CRYPTOPP_DLL SHA224 : public IteratedHashWithStaticTransform -{ -public: -#if defined(CRYPTOPP_X86_ASM_AVAILABLE) || defined(CRYPTOPP_X64_MASM_AVAILABLE) - size_t HashMultipleBlocks(const word32 *input, size_t length); -#endif - static void CRYPTOPP_API InitState(HashWordType *state); - static void CRYPTOPP_API Transform(word32 *digest, const word32 *data) {SHA256::Transform(digest, data);} - static const char * CRYPTOPP_API StaticAlgorithmName() {return "SHA-224";} -}; - -//! implements the SHA-512 standard -class CRYPTOPP_DLL SHA512 : public IteratedHashWithStaticTransform -{ -public: - static void CRYPTOPP_API InitState(HashWordType *state); - static void CRYPTOPP_API Transform(word64 *digest, const word64 *data); - static const char * CRYPTOPP_API StaticAlgorithmName() {return "SHA-512";} -}; - -//! implements the SHA-384 standard -class CRYPTOPP_DLL SHA384 : public IteratedHashWithStaticTransform -{ -public: - static void CRYPTOPP_API InitState(HashWordType *state); - static void CRYPTOPP_API Transform(word64 *digest, const word64 *data) {SHA512::Transform(digest, data);} - static const char * CRYPTOPP_API StaticAlgorithmName() {return "SHA-384";} -}; - -NAMESPACE_END - -#endif diff --git a/src/cryptopp/simple.h b/src/cryptopp/simple.h deleted file mode 100644 index 8b13789..0000000 --- a/src/cryptopp/simple.h +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/cryptopp/smartptr.h b/src/cryptopp/smartptr.h deleted file mode 100644 index 6b4040e..0000000 --- a/src/cryptopp/smartptr.h +++ /dev/null @@ -1,223 +0,0 @@ -#ifndef CRYPTOPP_SMARTPTR_H -#define CRYPTOPP_SMARTPTR_H - -#include "config.h" -#include - -NAMESPACE_BEGIN(CryptoPP) - -template class simple_ptr -{ -public: - simple_ptr() : m_p(NULL) {} - ~simple_ptr() {delete m_p;} - T *m_p; -}; - -template class member_ptr -{ -public: - explicit member_ptr(T *p = NULL) : m_p(p) {} - - ~member_ptr(); - - const T& operator*() const { return *m_p; } - T& operator*() { return *m_p; } - - const T* operator->() const { return m_p; } - T* operator->() { return m_p; } - - const T* get() const { return m_p; } - T* get() { return m_p; } - - T* release() - { - T *old_p = m_p; - m_p = 0; - return old_p; - } - - void reset(T *p = 0); - -protected: - member_ptr(const member_ptr& rhs); // copy not allowed - void operator=(const member_ptr& rhs); // assignment not allowed - - T *m_p; -}; - -template member_ptr::~member_ptr() {delete m_p;} -template void member_ptr::reset(T *p) {delete m_p; m_p = p;} - -// ******************************************************** - -template class value_ptr : public member_ptr -{ -public: - value_ptr(const T &obj) : member_ptr(new T(obj)) {} - value_ptr(T *p = NULL) : member_ptr(p) {} - value_ptr(const value_ptr& rhs) - : member_ptr(rhs.m_p ? new T(*rhs.m_p) : NULL) {} - - value_ptr& operator=(const value_ptr& rhs); - bool operator==(const value_ptr& rhs) - { - return (!this->m_p && !rhs.m_p) || (this->m_p && rhs.m_p && *this->m_p == *rhs.m_p); - } -}; - -template value_ptr& value_ptr::operator=(const value_ptr& rhs) -{ - T *old_p = this->m_p; - this->m_p = rhs.m_p ? new T(*rhs.m_p) : NULL; - delete old_p; - return *this; -} - -// ******************************************************** - -template class clonable_ptr : public member_ptr -{ -public: - clonable_ptr(const T &obj) : member_ptr(obj.Clone()) {} - clonable_ptr(T *p = NULL) : member_ptr(p) {} - clonable_ptr(const clonable_ptr& rhs) - : member_ptr(rhs.m_p ? rhs.m_p->Clone() : NULL) {} - - clonable_ptr& operator=(const clonable_ptr& rhs); -}; - -template clonable_ptr& clonable_ptr::operator=(const clonable_ptr& rhs) -{ - T *old_p = this->m_p; - this->m_p = rhs.m_p ? rhs.m_p->Clone() : NULL; - delete old_p; - return *this; -} - -// ******************************************************** - -template class counted_ptr -{ -public: - explicit counted_ptr(T *p = 0); - counted_ptr(const T &r) : m_p(0) {attach(r);} - counted_ptr(const counted_ptr& rhs); - - ~counted_ptr(); - - const T& operator*() const { return *m_p; } - T& operator*() { return *m_p; } - - const T* operator->() const { return m_p; } - T* operator->() { return get(); } - - const T* get() const { return m_p; } - T* get(); - - void attach(const T &p); - - counted_ptr & operator=(const counted_ptr& rhs); - -private: - T *m_p; -}; - -template counted_ptr::counted_ptr(T *p) - : m_p(p) -{ - if (m_p) - m_p->m_referenceCount = 1; -} - -template counted_ptr::counted_ptr(const counted_ptr& rhs) - : m_p(rhs.m_p) -{ - if (m_p) - m_p->m_referenceCount++; -} - -template counted_ptr::~counted_ptr() -{ - if (m_p && --m_p->m_referenceCount == 0) - delete m_p; -} - -template void counted_ptr::attach(const T &r) -{ - if (m_p && --m_p->m_referenceCount == 0) - delete m_p; - if (r.m_referenceCount == 0) - { - m_p = r.clone(); - m_p->m_referenceCount = 1; - } - else - { - m_p = const_cast(&r); - m_p->m_referenceCount++; - } -} - -template T* counted_ptr::get() -{ - if (m_p && m_p->m_referenceCount > 1) - { - T *temp = m_p->clone(); - m_p->m_referenceCount--; - m_p = temp; - m_p->m_referenceCount = 1; - } - return m_p; -} - -template counted_ptr & counted_ptr::operator=(const counted_ptr& rhs) -{ - if (m_p != rhs.m_p) - { - if (m_p && --m_p->m_referenceCount == 0) - delete m_p; - m_p = rhs.m_p; - if (m_p) - m_p->m_referenceCount++; - } - return *this; -} - -// ******************************************************** - -template class vector_member_ptrs -{ -public: - vector_member_ptrs(size_t size=0) - : m_size(size), m_ptr(new member_ptr[size]) {} - ~vector_member_ptrs() - {delete [] this->m_ptr;} - - member_ptr& operator[](size_t index) - {assert(indexm_size); return this->m_ptr[index];} - const member_ptr& operator[](size_t index) const - {assert(indexm_size); return this->m_ptr[index];} - - size_t size() const {return this->m_size;} - void resize(size_t newSize) - { - member_ptr *newPtr = new member_ptr[newSize]; - for (size_t i=0; im_size && im_ptr[i].release()); - delete [] this->m_ptr; - this->m_size = newSize; - this->m_ptr = newPtr; - } - -private: - vector_member_ptrs(const vector_member_ptrs &c); // copy not allowed - void operator=(const vector_member_ptrs &x); // assignment not allowed - - size_t m_size; - member_ptr *m_ptr; -}; - -NAMESPACE_END - -#endif diff --git a/src/cryptopp/stdcpp.h b/src/cryptopp/stdcpp.h deleted file mode 100644 index 9a468ab..0000000 --- a/src/cryptopp/stdcpp.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef CRYPTOPP_STDCPP_H -#define CRYPTOPP_STDCPP_H - -#include -#include -#include -#include -#include -#include -#include - - -#ifdef _MSC_VER -#include // CodeWarrior doesn't have memory.h -#include -#include -#include - -// re-disable this -#pragma warning(disable: 4231) -#endif - -#if defined(_MSC_VER) && defined(_CRTAPI1) -#define CRYPTOPP_MSVCRT6 -#endif - -#endif diff --git a/src/db.cpp b/src/db.cpp index bf335e7..9b67ab6 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -629,24 +629,6 @@ bool CAddrDB::LoadAddresses() { CRITICAL_BLOCK(cs_mapAddresses) { - // Load user provided addresses - CAutoFile filein = fopen((GetDataDir() + "/addr.txt").c_str(), "rt"); - if (filein) - { - try - { - char psz[1000]; - while (fgets(psz, sizeof(psz), filein)) - { - CAddress addr(psz, false, NODE_NETWORK); - addr.nTime = 0; // so it won't relay unless successfully connected - if (addr.IsValid()) - AddAddress(addr); - } - } - catch (...) { } - } - // Get cursor Dbc* pcursor = GetCursor(); if (!pcursor) @@ -786,7 +768,7 @@ int CWalletDB::LoadWallet(CWallet* pwallet) bool fIsEncrypted = false; // Modify defaults -#ifndef __WXMSW__ +#ifndef WIN32 // Tray icon sometimes disappears on 9.10 karmic koala 64-bit, leaving no way to access the program fMinimizeToTray = false; fMinimizeOnClose = false; @@ -975,7 +957,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; diff --git a/src/headers.h b/src/headers.h index 88a16d9..ea011c5 100644 --- a/src/headers.h +++ b/src/headers.h @@ -28,19 +28,11 @@ #if (defined(__unix__) || defined(unix)) && !defined(USG) #include // to get BSD define #endif -#ifdef __WXMAC_OSX__ +#ifdef MAC_OSX #ifndef BSD #define BSD 1 #endif #endif -#ifdef GUI -#include -#include -#include -#include -#include -#include -#endif #include #include #include @@ -63,7 +55,7 @@ #include #include -#ifdef __WXMSW__ +#ifdef WIN32 #include #include #include @@ -97,24 +89,8 @@ #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 diff --git a/src/init.cpp b/src/init.cpp index 2dccc81..168ebee 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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" @@ -12,6 +12,17 @@ #include #include +#if defined(BITCOIN_NEED_QT_PLUGINS) && !defined(_BITCOIN_QT_PLUGINS_INCLUDED) +#define _BITCOIN_QT_PLUGINS_INCLUDED +#define __INSURE__ +#include +Q_IMPORT_PLUGIN(qcncodecs) +Q_IMPORT_PLUGIN(qjpcodecs) +Q_IMPORT_PLUGIN(qtwcodecs) +Q_IMPORT_PLUGIN(qkrcodecs) +Q_IMPORT_PLUGIN(qtaccessiblewidgets) +#endif + using namespace std; using namespace boost; @@ -24,7 +35,7 @@ CWallet* pwalletMain; void ExitTimeout(void* parg) { -#ifdef __WXMSW__ +#ifdef WIN32 Sleep(5000); ExitProcess(0); #endif @@ -80,7 +91,7 @@ void HandleSIGTERM(int) // // Start // -#ifndef GUI +#if !defined(QT_GUI) int main(int argc, char* argv[]) { bool fRet = false; @@ -121,10 +132,10 @@ bool AppInit2(int argc, char* argv[]) // Disable confusing "helpful" text message on abort, ctrl-c _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); #endif -#ifndef __WXMSW__ +#ifndef WIN32 umask(077); #endif -#ifndef __WXMSW__ +#ifndef WIN32 // Clean shutdown on SIGTERM struct sigaction sa; sa.sa_handler = HandleSIGTERM; @@ -183,6 +194,8 @@ bool AppInit2(int argc, char* argv[]) " -noirc \t " + _("Don't find peers using internet relay chat\n") + " -nolisten \t " + _("Don't accept connections from outside\n") + " -nodnsseed \t " + _("Don't bootstrap list of peers using DNS\n") + + " -banscore= \t " + _("Threshold for disconnecting misbehaving peers (default: 100)\n") + + " -bantime= \t " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)\n") + " -maxreceivebuffer=\t " + _("Maximum per-connection receive buffer, *1000 bytes (default: 10000)\n") + " -maxsendbuffer=\t " + _("Maximum per-connection send buffer, *1000 bytes (default: 10000)\n") + #ifdef USE_UPNP @@ -192,11 +205,11 @@ bool AppInit2(int argc, char* argv[]) " -upnp \t " + _("Attempt to use UPnP to map the listening port\n") + #endif #endif - " -paytxfee= \t " + _("Fee per KB to add to transactions you send\n") + -#ifdef GUI + " -paytxfee= \t " + _("Fee per kB to add to transactions you send\n") + +#ifdef QT_GUI " -server \t\t " + _("Accept command line and JSON-RPC commands\n") + #endif -#ifndef __WXMSW__ +#if !defined(WIN32) && !defined(QT_GUI) " -daemon \t\t " + _("Run in the background as a daemon and accept commands\n") + #endif " -testnet \t\t " + _("Use the test network\n") + @@ -226,12 +239,12 @@ 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()); +#if defined(QT_GUI) && defined(WIN32) + // On windows, show a message box, as there is no stderr + wxMessageBox(strUsage, "Usage"); +#else fprintf(stderr, "%s", strUsage.c_str()); #endif return false; @@ -240,7 +253,7 @@ bool AppInit2(int argc, char* argv[]) fTestNet = GetBoolArg("-testnet"); fDebug = GetBoolArg("-debug"); -#ifndef __WXMSW__ +#if !defined(WIN32) && !defined(QT_GUI) fDaemon = GetBoolArg("-daemon"); #else fDaemon = false; @@ -252,14 +265,14 @@ 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"); fLogTimestamps = GetBoolArg("-logtimestamps"); +#ifndef QT_GUI for (int i = 1; i < argc; i++) if (!IsSwitchChar(argv[i][0])) fCommandLine = true; @@ -269,8 +282,9 @@ bool AppInit2(int argc, char* argv[]) int ret = CommandLineRPC(argc, argv); exit(ret); } +#endif -#ifndef __WXMSW__ +#if !defined(WIN32) && !defined(QT_GUI) if (fDaemon) { // Daemonize @@ -296,11 +310,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")) @@ -311,46 +320,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. @@ -372,18 +341,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; @@ -422,12 +394,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 @@ -556,30 +530,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 diff --git a/src/key.h b/src/key.h index 6bf7508..d096b39 100644 --- a/src/key.h +++ b/src/key.h @@ -39,6 +39,7 @@ // see www.keylength.com // script supports up to 75 for single byte push +// Generate a private key from just the secret parameter int static inline EC_KEY_regenerate_key(EC_KEY *eckey, BIGNUM *priv_key) { int ok = 0; @@ -75,6 +76,79 @@ err: return(ok); } +// Perform ECDSA key recovery (see SEC1 4.1.6) for curves over (mod p)-fields +// recid selects which key is recovered +// if check is nonzero, additional checks are performed +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 { @@ -84,7 +158,9 @@ public: // secure_allocator is defined in serialize.h +// CPrivKey is a serialized private key, with all parameters included (279 bytes) typedef std::vector > CPrivKey; +// CSecret is a serialization of just the secret parameter (32 bytes) typedef std::vector > CSecret; class CKey @@ -93,6 +169,11 @@ protected: EC_KEY* pkey; bool fSet; + void SetCompressedPubKey() + { + EC_KEY_set_conv_form(pkey, POINT_CONVERSION_COMPRESSED); + } + public: CKey() { @@ -225,6 +306,78 @@ public: return true; } + // create a compact signature (65 bytes), which allows reconstructing the used public key + // The format is one header byte, followed by two times 32 bytes for the serialized r and s values. + // The header byte: 0x1B = first key with even y, 0x1C = first key with odd y, + // 0x1D = second key with even y, 0x1E = second key with odd y + bool SignCompact(uint256 hash, std::vector& 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 + // This is only slightly more CPU intensive than just verifying it. + // If this function succeeds, the recovered public key is guaranteed to be valid + // (the signature is a valid signature of the given data for that key) + bool SetCompactSignature(uint256 hash, const std::vector& vchSig) + { + if (vchSig.size() != 65) + return false; + int nV = vchSig[0]; + if (nV<27 || nV>=35) + 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 (nV >= 31) + { + SetCompressedPubKey(); + nV -= 4; + } + if (ECDSA_SIG_recover_key_GFp(pkey, sig, (unsigned char*)&hash, sizeof(hash), nV - 27, 0) == 1) + { + fSet = true; + ECDSA_SIG_free(sig); + return true; + } + return false; + } + bool Verify(uint256 hash, const std::vector& vchSig) { // -1 = error, 0 = bad sig, 1 = good @@ -233,6 +386,18 @@ public: return true; } + // Verify a compact signature + bool VerifyCompact(uint256 hash, const std::vector& vchSig) + { + CKey key; + if (!key.SetCompactSignature(hash, vchSig)) + return false; + if (GetPubKey() != key.GetPubKey()) + return false; + return true; + } + + // Get the address corresponding to this key CBitcoinAddress GetAddress() const { return CBitcoinAddress(GetPubKey()); diff --git a/src/keystore.h b/src/keystore.h index cb297c3..8aaf3e6 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -7,6 +7,7 @@ #include "crypter.h" +// A virtual base class for key stores class CKeyStore { protected: @@ -15,15 +16,27 @@ protected: public: virtual ~CKeyStore() {} + // Add a key to the store. virtual bool AddKey(const CKey& key) =0; + + // Check whether a key corresponding to a given address is present in the store. virtual bool HaveKey(const CBitcoinAddress &address) const =0; + + // Retrieve a key corresponding to a given address from the store. + // Return true if succesful. virtual bool GetKey(const CBitcoinAddress &address, CKey& keyOut) const =0; + + // Retrieve only the public key corresponding to a given address. + // This may succeed even if GetKey fails (e.g., encrypted wallets) virtual bool GetPubKey(const CBitcoinAddress &address, std::vector& vchPubKeyOut) const; + + // Generate a new key, and add it to the store virtual std::vector GenerateNewKey(); }; typedef std::map KeyMap; +// Basic key store, that keeps keys in an address->secret map class CBasicKeyStore : public CKeyStore { protected: @@ -55,6 +68,8 @@ public: typedef std::map, std::vector > > CryptedKeyMap; +// Keystore which keeps the private keys encrypted +// It derives from the basic key store, which is used if no encryption is active. class CCryptoKeyStore : public CBasicKeyStore { private: diff --git a/src/main.cpp b/src/main.cpp index e6f9421..d72a131 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,7 +7,6 @@ #include "db.h" #include "net.h" #include "init.h" -#include "cryptopp/sha.h" #include #include @@ -31,7 +30,6 @@ map mapNextTx; map mapBlockIndex; uint256 hashGenesisBlock("0x000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"); static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32); -const int nInitialBlockThreshold = 120; // Regard blocks up until N-threshold as "initial download" CBlockIndex* pindexGenesisBlock = NULL; int nBestHeight = -1; CBigNum bnBestChainWork = 0; @@ -40,6 +38,8 @@ uint256 hashBestChain = 0; CBlockIndex* pindexBest = NULL; int64 nTimeBestReceived = 0; +CMedianFilter cPeerBlockCounts(5, 0); // Amount of blocks that other nodes claim to have + map mapOrphanBlocks; multimap mapOrphanBlocksByPrev; @@ -64,16 +64,14 @@ int fUseUPnP = false; #endif - - - - - ////////////////////////////////////////////////////////////////////////////// // // dispatching functions // +// These functions dispatch to one or all registered wallets + + void RegisterWallet(CWallet* pwalletIn) { CRITICAL_BLOCK(cs_setpwalletRegistered) @@ -90,6 +88,7 @@ void UnregisterWallet(CWallet* pwalletIn) } } +// check whether the passed transaction is from us bool static IsFromMe(CTransaction& tx) { BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) @@ -98,6 +97,7 @@ bool static IsFromMe(CTransaction& tx) return false; } +// get the wallet transaction with the given hash (if it exists) bool static GetTransaction(const uint256& hashTx, CWalletTx& wtx) { BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) @@ -106,42 +106,49 @@ bool static GetTransaction(const uint256& hashTx, CWalletTx& wtx) return false; } +// erases transaction with the given hash from all wallets void static EraseFromWallets(uint256 hash) { BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) pwallet->EraseFromWallet(hash); } +// make sure all wallets know about the given transaction, in the given block void static SyncWithWallets(const CTransaction& tx, const CBlock* pblock = NULL, bool fUpdate = false) { BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) pwallet->AddToWalletIfInvolvingMe(tx, pblock, fUpdate); } +// notify wallets about a new best chain void static SetBestChain(const CBlockLocator& loc) { BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) pwallet->SetBestChain(loc); } +// notify wallets about an updated transaction void static UpdatedTransaction(const uint256& hashTx) { BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) pwallet->UpdatedTransaction(hashTx); } +// dump all wallets void static PrintWallets(const CBlock& block) { BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) pwallet->PrintWallet(block); } +// notify wallets about an incoming inventory (for request counts) void static Inventory(const uint256& hash) { BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) pwallet->Inventory(hash); } +// ask wallets to resend their transactions void static ResendWalletTransactions() { BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) @@ -314,24 +321,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 @@ -346,13 +353,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; @@ -368,7 +375,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) @@ -436,7 +443,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"); int64 nFees = GetValueIn(mapInputs)-GetValueOut(); @@ -788,9 +795,15 @@ bool CheckProofOfWork(uint256 hash, unsigned int nBits) return true; } +// Return maximum amount of blocks that other nodes claim to have +int GetNumBlocksOfPeers() +{ + return std::max(cPeerBlockCounts.median(), Checkpoints::GetTotalBlocksEstimate()); +} + bool IsInitialBlockDownload() { - if (pindexBest == NULL || nBestHeight < (Checkpoints::GetTotalBlocksEstimate()-nInitialBlockThreshold)) + if (pindexBest == NULL || nBestHeight < Checkpoints::GetTotalBlocksEstimate()) return true; static int64 nLastUpdate; static CBlockIndex* pindexLastBest; @@ -940,7 +953,7 @@ bool CTransaction::FetchInputs(CTxDB& txdb, const map& mapTes // Revisit this if/when transaction replacement is implemented and allows // adding inputs: fInvalid = true; - return error("FetchInputs() : %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("FetchInputs() : %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())); } } @@ -1009,7 +1022,7 @@ bool CTransaction::ConnectInputs(MapPrevTx inputs, CTransaction& txPrev = inputs[prevout.hash].second; 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()) @@ -1018,24 +1031,31 @@ bool CTransaction::ConnectInputs(MapPrevTx inputs, return error("ConnectInputs() : tried to spend coinbase at depth %d", pindexBlock->nHeight - pindex->nHeight); // 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")); - // Verify signature - if (!VerifySignature(txPrev, *this, i, fStrictPayToScriptHash, 0)) + // Skip ECDSA signature verification when connecting blocks (fBlock=true) + // 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 && (nBestHeight < Checkpoints::GetTotalBlocksEstimate()))) { - // only during transition phase for P2SH: do not invoke (external) - // anti-DoS code for potentially old clients relaying bad P2SH - // transactions - if (fStrictPayToScriptHash && VerifySignature(txPrev, *this, i, false, 0)) - return error("ConnectInputs() : %s P2SH VerifySignature failed", GetHash().ToString().substr(0,10).c_str()); + // Verify signature + if (!VerifySignature(txPrev, *this, i, fStrictPayToScriptHash, 0)) + { + // only during transition phase for P2SH: do not invoke anti-DoS code for + // potentially old clients relaying bad P2SH transactions + if (fStrictPayToScriptHash && VerifySignature(txPrev, *this, i, false, 0)) + return error("ConnectInputs() : %s P2SH VerifySignature failed", GetHash().ToString().substr(0,10).c_str()); - return error("ConnectInputs() : %s VerifySignature failed", GetHash().ToString().substr(0,10).c_str()); + return DoS(100,error("ConnectInputs() : %s VerifySignature failed", GetHash().ToString().substr(0,10).c_str())); + } } // Mark outpoints as spent @@ -1049,15 +1069,15 @@ bool CTransaction::ConnectInputs(MapPrevTx inputs, } 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())); nFees += nTxFee; if (!MoneyRange(nFees)) - return error("ConnectInputs() : nFees out of range"); + return DoS(100, error("ConnectInputs() : nFees out of range")); } return true; @@ -1176,7 +1196,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex) { nSigOps += tx.GetSigOpCount(); if (nSigOps > MAX_BLOCK_SIGOPS) - return error("ConnectBlock() : too many sigops"); + return DoS(100, error("ConnectBlock() : too many sigops")); CDiskTxPos posThisTx(pindex->nFile, pindex->nBlockPos, nTxPos); nTxPos += ::GetSerializeSize(tx, SER_DISK); @@ -1195,7 +1215,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex) // an incredibly-expensive-to-validate block. nSigOps += tx.GetP2SHSigOpCount(mapInputs); if (nSigOps > MAX_BLOCK_SIGOPS) - return error("ConnectBlock() : too many sigops"); + return DoS(100, error("ConnectBlock() : too many sigops")); } nFees += tx.GetValueIn(mapInputs)-tx.GetValueOut(); @@ -1450,11 +1470,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) @@ -1462,23 +1482,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 (unsigned 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() : out-of-bounds SigOpCount"); + 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; } @@ -1493,13 +1513,13 @@ bool CBlock::AcceptBlock() // Get prev block index map::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, this)) - return error("AcceptBlock() : incorrect proof of work"); + return DoS(100, error("AcceptBlock() : incorrect proof of work")); // Check timestamp against prev if (GetBlockTime() <= pindexPrev->GetMedianTimePast()) @@ -1508,11 +1528,11 @@ 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 (!Checkpoints::CheckBlock(nHeight, hash)) - 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))) @@ -1535,7 +1555,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(); @@ -1555,6 +1575,8 @@ bool static ProcessBlock(CNode* pfrom, CBlock* pblock) int64 deltaTime = pblock->GetBlockTime() - pcheckpoint->nTime; if (deltaTime < 0) { + if (pfrom) + pfrom->Misbehaving(100); return error("ProcessBlock() : block with timestamp before last checkpoint"); } CBigNum bnNewBlock; @@ -1563,6 +1585,8 @@ bool static ProcessBlock(CNode* pfrom, CBlock* pblock) bnRequired.SetCompact(ComputeMinWork(pcheckpoint->nBits, deltaTime)); if (bnNewBlock > bnRequired) { + if (pfrom) + pfrom->Misbehaving(100); return error("ProcessBlock() : block with too little proof-of-work"); } } @@ -2002,7 +2026,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; @@ -2080,12 +2107,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; } @@ -2107,7 +2137,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; @@ -2165,7 +2198,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) vector 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) @@ -2194,7 +2230,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) vector vInv; vRecv >> vInv; if (vInv.size() > 50000) + { + pfrom->Misbehaving(20); return error("message getdata size() = %d", vInv.size()); + } BOOST_FOREACH(const CInv& inv, vInv) { @@ -2371,6 +2410,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) if (nEvicted > 0) printf("mapOrphan overflow, removed %d tx\n", nEvicted); } + if (tx.nDoS) pfrom->Misbehaving(tx.nDoS); } @@ -2387,6 +2427,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) if (ProcessBlock(pfrom, &block)) mapAlreadyAskedFor.erase(inv); + if (block.nDoS) pfrom->Misbehaving(block.nDoS); } @@ -2830,15 +2871,25 @@ int static FormatHashBlocks(void* pbuffer, unsigned int len) return blocks; } -using CryptoPP::ByteReverse; - static const unsigned int pSHA256InitState[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19}; -inline void SHA256Transform(void* pstate, void* pinput, const void* pinit) +void SHA256Transform(void* pstate, void* pinput, const void* pinit) { - memcpy(pstate, pinit, 32); - CryptoPP::SHA256::Transform((CryptoPP::word32*)pstate, (CryptoPP::word32*)pinput); + SHA256_CTX ctx; + unsigned char data[64]; + + SHA256_Init(&ctx); + + for (int i = 0; i < 16; i++) + ((uint32_t*)data)[i] = ByteReverse(((uint32_t*)pinput)[i]); + + for (int i = 0; i < 8; i++) + ctx.h[i] = ((uint32_t*)pinit)[i]; + + SHA256_Update(&ctx, data, sizeof(data)); + for (int i = 0; i < 8; i++) + ((uint32_t*)pstate)[i] = ctx.h[i]; } // @@ -3156,7 +3207,6 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey) return error("BitcoinMiner : ProcessBlock, block not accepted"); } - Sleep(2000); return true; } diff --git a/src/main.h b/src/main.h index de674b5..f55f189 100644 --- a/src/main.h +++ b/src/main.h @@ -86,6 +86,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); @@ -100,6 +101,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); unsigned int ComputeMinWork(unsigned int nBase, int64 nTime); +int GetNumBlocksOfPeers(); bool IsInitialBlockDownload(); std::string GetWarnings(std::string strFor); @@ -401,6 +403,9 @@ public: std::vector vout; unsigned int nLockTime; + // Denial-of-service detection: + mutable int nDoS; + bool DoS(int nDoSIn, bool fIn) const { nDoS += nDoSIn; return fIn; } CTransaction() { @@ -422,6 +427,7 @@ public: vin.clear(); vout.clear(); nLockTime = 0; + nDoS = 0; // Denial-of-service prevention } bool IsNull() const @@ -837,6 +843,9 @@ public: // memory only mutable std::vector vMerkleTree; + // Denial-of-service detection: + mutable int nDoS; + bool DoS(int nDoSIn, bool fIn) const { nDoS += nDoSIn; return fIn; } CBlock() { @@ -870,6 +879,7 @@ public: nNonce = 0; vtx.clear(); vMerkleTree.clear(); + nDoS = 0; } bool IsNull() const @@ -970,7 +980,7 @@ public: fflush(fileout); if (!IsInitialBlockDownload() || (nBestHeight+1) % 500 == 0) { -#ifdef __WXMSW__ +#ifdef WIN32 _commit(_fileno(fileout)); #else fsync(fileno(fileout)); diff --git a/src/makefile.linux-mingw b/src/makefile.linux-mingw index 23b417c..61f8d48 100644 --- a/src/makefile.linux-mingw +++ b/src/makefile.linux-mingw @@ -9,19 +9,13 @@ USE_UPNP:=0 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)/openssl-1.0.0e/include" \ -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.0e" 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 \ @@ -50,16 +44,15 @@ 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 + ifdef USE_UPNP LIBPATHS += -L"$(DEPSDIR)/miniupnpc" LIBS += -l miniupnpc -l iphlpapi @@ -78,34 +71,17 @@ 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 \ - cryptopp/obj/sha.o \ - cryptopp/obj/cpu.o - - -all: bitcoin.exe - - -obj/%.o: %.cpp $(HEADERS) - i586-mingw32msvc-g++ -c $(CFLAGS) -DGUI -o $@ $< - -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/wallet.o +all: bitcoind.exe obj/nogui/%.o: %.cpp $(HEADERS) i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $< -bitcoind.exe: $(OBJS:obj/%=obj/nogui/%) obj/ui_res.o +bitcoind.exe: $(OBJS:obj/%=obj/nogui/%) i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) @@ -120,9 +96,7 @@ clean: -rm -f obj/*.o -rm -f obj/nogui/*.o -rm -f obj/test/*.o - -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 diff --git a/src/makefile.mingw b/src/makefile.mingw index ef7eebf..2cb78d9 100644 --- a/src/makefile.mingw +++ b/src/makefile.mingw @@ -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 \ @@ -47,12 +41,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,34 +68,18 @@ 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 \ - cryptopp/obj/sha.o \ - cryptopp/obj/cpu.o - - -all: bitcoin.exe - - -obj/%.o: %.cpp $(HEADERS) - g++ -c $(CFLAGS) -DGUI -o $@ $< - -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 $< + obj/wallet.o -bitcoin.exe: $(OBJS) obj/ui.o obj/uibase.o obj/ui_res.o - g++ $(CFLAGS) -mwindows -Wl,--subsystem,windows -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS) +all: bitcoind.exe obj/nogui/%.o: %.cpp $(HEADERS) g++ -c $(CFLAGS) -o $@ $< -bitcoind.exe: $(OBJS:obj/%=obj/nogui/%) obj/ui_res.o +bitcoind.exe: $(OBJS:obj/%=obj/nogui/%) g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) obj/test/test_bitcoin.o: $(wildcard test/*.cpp) $(HEADERS) @@ -113,10 +89,9 @@ 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\* - -del /Q cryptopp\obj\* -del /Q test\*.o -del /Q headers.h.gch diff --git a/src/makefile.osx b/src/makefile.osx index af52636..cbd51b0 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -1,37 +1,58 @@ -# Copyright (c) 2010 Laszlo Hanyecz +# -*- mode: Makefile; -*- +# 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. # Mac OS X makefile for bitcoin -# Laszlo Hanyecz (solar@heliacal.net) +# Originally by Laszlo Hanyecz (solar@heliacal.net) CXX=llvm-g++ -DEPSDIR=/Users/macosuser/bitcoin/deps +DEPSDIR=/opt/local INCLUDEPATHS= \ - -I"$(DEPSDIR)/include" + -I"$(DEPSDIR)/include" \ + -I"$(DEPSDIR)/include/db48" LIBPATHS= \ - -L"$(DEPSDIR)/lib" - -WXLIBS=$(shell $(DEPSDIR)/bin/wx-config --libs --static) - -USE_UPNP:=0 - -LIBS= -dead_strip \ - $(DEPSDIR)/lib/libdb_cxx-4.8.a \ - $(DEPSDIR)/lib/libboost_system.a \ - $(DEPSDIR)/lib/libboost_filesystem.a \ - $(DEPSDIR)/lib/libboost_program_options.a \ - $(DEPSDIR)/lib/libboost_thread.a \ + -L"$(DEPSDIR)/lib" \ + -L"$(DEPSDIR)/lib/db48" + +USE_UPNP:=1 + +LIBS= -dead_strip +ifdef STATIC +# Build STATIC if you are redistributing the bitcoind binary +TESTLIBS += \ + $(DEPSDIR)/lib/libboost_unit_test_framework-mt.a +LIBS += \ + $(DEPSDIR)/lib/db48/libdb_cxx-4.8.a \ + $(DEPSDIR)/lib/libboost_system-mt.a \ + $(DEPSDIR)/lib/libboost_filesystem-mt.a \ + $(DEPSDIR)/lib/libboost_program_options-mt.a \ + $(DEPSDIR)/lib/libboost_thread-mt.a \ $(DEPSDIR)/lib/libssl.a \ - $(DEPSDIR)/lib/libcrypto.a + $(DEPSDIR)/lib/libcrypto.a \ + -lz +else +TESTLIBS += \ + -lboost_unit_test_framework-mt +LIBS += \ + -ldb_cxx-4.8 \ + -lboost_system-mt \ + -lboost_filesystem-mt \ + -lboost_program_options-mt \ + -lboost_thread-mt \ + -lssl \ + -lcrypto \ + -lz +TESTDEFS += -DBOOST_TEST_DYN_LINK +endif -DEFS=$(shell $(DEPSDIR)/bin/wx-config --cxxflags) -D__WXMAC_OSX__ -DNOPCH -DMSG_NOSIGNAL=0 -DUSE_SSL +DEFS=-DMAC_OSX -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) +CFLAGS=-mmacosx-version-min=10.5 -arch i386 -O3 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS) HEADERS = \ base58.h \ bignum.h \ @@ -47,12 +68,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 @@ -67,47 +86,52 @@ 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 \ - cryptopp/obj/sha.o \ - cryptopp/obj/cpu.o + obj/wallet.o ifdef USE_UPNP - LIBS += $(DEPSDIR)/lib/libminiupnpc.a DEFS += -DUSE_UPNP=$(USE_UPNP) +ifdef STATIC + LIBS += $(DEPSDIR)/lib/libminiupnpc.a +else + LIBS += -lminiupnpc +endif endif - - -all: bitcoin - - -obj/%.o: %.cpp $(HEADERS) - $(CXX) -c $(CFLAGS) -DGUI -o $@ $< -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) +all: bitcoind +# auto-generated dependencies: +-include obj/nogui/*.P +-include obj-test/*.P -obj/nogui/%.o: %.cpp $(HEADERS) - $(CXX) -c $(CFLAGS) -o $@ $< +obj/nogui/%.o: %.cpp + $(CXX) -c $(CFLAGS) -MMD -o $@ $< + @cp $(@:%.o=%.d) $(@:%.o=%.P); \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ + rm -f $(@:%.o=%.d) bitcoind: $(OBJS:obj/%=obj/nogui/%) $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) -obj/test/test_bitcoin.o: $(wildcard test/*.cpp) $(HEADERS) - $(CXX) -c $(CFLAGS) -o $@ test/test_bitcoin.cpp +obj/test/%.o: test/%.cpp + $(CXX) -c $(TESTDEFS) $(CFLAGS) -MMD -o $@ $< + @cp $(@:%.o=%.d) $(@:%.o=%.P); \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ + rm -f $(@:%.o=%.d) test_bitcoin: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%)) - $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) -lboost_unit_test_framework + $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) $(TESTLIBS) 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 - -rm -f cryptopp/obj/*.o + -rm -f obj-test/*.o + -rm -f obj/*.P + -rm -f obj/nogui/*.P + -rm -f obj-test/*.P diff --git a/src/makefile.unix b/src/makefile.unix index 6629067..e75dda5 100644 --- a/src/makefile.unix +++ b/src/makefile.unix @@ -2,34 +2,49 @@ # Distributed under the MIT/X11 software license, see the accompanying # file license.txt or http://www.opensource.org/licenses/mit-license.php. -CXX=g++ - -WXINCLUDEPATHS=$(shell wx-config --cxxflags) +USE_UPNP:=0 -WXLIBS=$(shell wx-config --libs) +DEFS=-DNOPCH -USE_UPNP:=0 +DEFS += $(addprefix -I,$(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH)) +LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH)) -DEFS=-DNOPCH -DUSE_SSL +LMODE = dynamic +LMODE2 = dynamic +ifdef STATIC + LMODE = static + ifeq (${STATIC}, all) + LMODE2 = static + endif +else + TESTDEFS += -DBOOST_TEST_DYN_LINK +endif # for boost 1.37, add -mt to the boost libraries -LIBS= \ - -Wl,-Bstatic \ - -l boost_system \ - -l boost_filesystem \ - -l boost_program_options \ - -l boost_thread \ - -l db_cxx \ +LIBS += \ + -Wl,-B$(LMODE) \ + -l boost_system$(BOOST_LIB_SUFFIX) \ + -l boost_filesystem$(BOOST_LIB_SUFFIX) \ + -l boost_program_options$(BOOST_LIB_SUFFIX) \ + -l boost_thread$(BOOST_LIB_SUFFIX) \ + -l db_cxx$(BDB_LIB_SUFFIX) \ -l ssl \ -l crypto -ifdef USE_UPNP +ifndef USE_UPNP + override USE_UPNP = - +endif +ifneq (${USE_UPNP}, -) LIBS += -l miniupnpc DEFS += -DUSE_UPNP=$(USE_UPNP) endif +ifneq (${USE_SSL}, 0) + DEFS += -DUSE_SSL +endif + LIBS+= \ - -Wl,-Bdynamic \ + -Wl,-B$(LMODE2) \ -l z \ -l dl \ -l pthread @@ -68,8 +83,9 @@ LIBS+= \ # -DEBUGFLAGS=-g -D__WXDEBUG__ -CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(HARDENING) +DEBUGFLAGS=-g +CXXFLAGS=-O2 +xCXXFLAGS=-pthread -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS) HEADERS = \ base58.h \ bignum.h \ @@ -85,12 +101,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 @@ -105,43 +119,43 @@ 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 \ - cryptopp/obj/sha.o \ - cryptopp/obj/cpu.o - - -all: bitcoin - - -obj/%.o: %.cpp $(HEADERS) - $(CXX) -c $(CXXFLAGS) $(WXINCLUDEPATHS) -DGUI -o $@ $< + obj/wallet.o -cryptopp/obj/%.o: cryptopp/%.cpp - $(CXX) -c $(CXXFLAGS) -O3 -o $@ $< -bitcoin: $(OBJS) obj/ui.o obj/uibase.o - $(CXX) $(CXXFLAGS) -o $@ $^ $(WXLIBS) $(LIBS) +all: bitcoind +# auto-generated dependencies: +-include obj/nogui/*.P +-include obj-test/*.P -obj/nogui/%.o: %.cpp $(HEADERS) - $(CXX) -c $(CXXFLAGS) -o $@ $< +obj/nogui/%.o: %.cpp + $(CXX) -c $(xCXXFLAGS) -MMD -o $@ $< + @cp $(@:%.o=%.d) $(@:%.o=%.P); \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ + rm -f $(@:%.o=%.d) bitcoind: $(OBJS:obj/%=obj/nogui/%) - $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS) + $(CXX) $(xCXXFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS) -obj/test/test_bitcoin.o: $(wildcard test/*.cpp) $(HEADERS) - $(CXX) -c $(CXXFLAGS) -o $@ test/test_bitcoin.cpp +obj-test/%.o: test/%.cpp + $(CXX) -c $(TESTDEFS) $(xCXXFLAGS) -MMD -o $@ $< + @cp $(@:%.o=%.d) $(@:%.o=%.P); \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ + rm -f $(@:%.o=%.d) -test_bitcoin: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%)) - $(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ -Wl,-Bstatic -lboost_unit_test_framework $(LIBS) +test_bitcoin: obj-test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%)) + $(CXX) $(xCXXFLAGS) -o $@ $(LIBPATHS) $^ -Wl,-B$(LMODE) -lboost_unit_test_framework $(LDFLAGS) $(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 - -rm -f cryptopp/obj/*.o - -rm -f headers.h.gch + -rm -f obj-test/*.o + -rm -f obj/*.P + -rm -f obj/nogui/*.P + -rm -f obj-test/*.P diff --git a/src/makefile.vc b/src/makefile.vc index 4c81cc4..60f1e09 100644 --- a/src/makefile.vc +++ b/src/makefile.vc @@ -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 \ @@ -60,7 +55,7 @@ HEADERS = \ net.h \ noui.h \ protocol.h \ - rpc.h \ + bitcoinrpc.h \ script.h \ serialize.h \ strlcpy.h \ @@ -83,18 +78,12 @@ OBJS= \ obj\protocol.o \ obj\script.o \ obj\util.o \ - obj\wallet.o \ - cryptopp\obj\sha.o \ - cryptopp\obj\cpu.o - -CRYPTOPP_OBJS= \ - cryptopp\obj\sha.obj \ - cryptopp\obj\cpu.obj + obj\wallet.o RC=../share -all: bitcoin.exe +all: bitcoind.exe .cpp{obj}.obj: @@ -128,19 +117,6 @@ obj\ui.obj: $(HEADERS) obj\uibase.obj: $(HEADERS) -cryptopp\obj\sha.obj: cryptopp\sha.cpp - cl $(CFLAGS) /O2 /DCRYPTOPP_DISABLE_ASM /Fo$@ %s - -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 @@ -166,13 +142,12 @@ obj\nogui\rpc.obj: $(HEADERS) obj\nogui\init.obj: $(HEADERS) -bitcoind.exe: $(OBJS:obj\=obj\nogui\) $(CRYPTOPP_OBJS) obj\ui.res +bitcoind.exe: $(OBJS:obj\=obj\nogui\) 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 diff --git a/src/net.cpp b/src/net.cpp index 92ccb1e..5b3faea 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -10,7 +10,7 @@ #include "init.h" #include "strlcpy.h" -#ifdef __WXMSW__ +#ifdef WIN32 #include #endif @@ -103,7 +103,7 @@ bool ConnectSocket(const CAddress& addrConnect, SOCKET& hSocketRet, int nTimeout bool fProxy = (fUseProxy && addrConnect.IsRoutable()); struct sockaddr_in sockaddr = (fProxy ? addrProxy.GetSockAddr() : addrConnect.GetSockAddr()); -#ifdef __WXMSW__ +#ifdef WIN32 u_long fNonblock = 1; if (ioctlsocket(hSocket, FIONBIO, &fNonblock) == SOCKET_ERROR) #else @@ -142,7 +142,7 @@ bool ConnectSocket(const CAddress& addrConnect, SOCKET& hSocketRet, int nTimeout return false; } socklen_t nRetSize = sizeof(nRet); -#ifdef __WXMSW__ +#ifdef WIN32 if (getsockopt(hSocket, SOL_SOCKET, SO_ERROR, (char*)(&nRet), &nRetSize) == SOCKET_ERROR) #else if (getsockopt(hSocket, SOL_SOCKET, SO_ERROR, &nRet, &nRetSize) == SOCKET_ERROR) @@ -159,7 +159,7 @@ bool ConnectSocket(const CAddress& addrConnect, SOCKET& hSocketRet, int nTimeout return false; } } -#ifdef __WXMSW__ +#ifdef WIN32 else if (WSAGetLastError() != WSAEISCONN) #else else @@ -176,7 +176,7 @@ bool ConnectSocket(const CAddress& addrConnect, SOCKET& hSocketRet, int nTimeout CNode::ConnectNode immediately turns the socket back to non-blocking but we'll turn it back to blocking just in case */ -#ifdef __WXMSW__ +#ifdef WIN32 fNonblock = 0; if (ioctlsocket(hSocket, FIONBIO, &fNonblock) == SOCKET_ERROR) #else @@ -679,7 +679,7 @@ CNode* ConnectNode(CAddress addrConnect, int64 nTimeout) printf("connected %s\n", addrConnect.ToString().c_str()); // Set to nonblocking -#ifdef __WXMSW__ +#ifdef WIN32 u_long nOne = 1; if (ioctlsocket(hSocket, FIONBIO, &nOne) == SOCKET_ERROR) printf("ConnectSocket() : ioctlsocket nonblocking setting failed, error %d\n", WSAGetLastError()); @@ -732,6 +732,52 @@ void CNode::Cleanup() } +std::map 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::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; +} + @@ -906,6 +952,11 @@ void ThreadSocketHandler2(void* parg) { closesocket(hSocket); } + else if (CNode::IsBanned(addr.ip)) + { + printf("connection from %s dropped (banned)\n", addr.ToString().c_str()); + closesocket(hSocket); + } else { printf("accepted connection %s\n", addr.ToString().c_str()); @@ -1496,6 +1547,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, CAddress)& item, mapAddresses) @@ -1503,8 +1556,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); @@ -1563,7 +1616,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]--; @@ -1667,7 +1721,7 @@ bool BindListenPort(string& strError) int nOne = 1; addrLocalHost.port = htons(GetListenPort()); -#ifdef __WXMSW__ +#ifdef WIN32 // Initialize Windows Sockets WSADATA wsadata; int ret = WSAStartup(MAKEWORD(2,2), &wsadata); @@ -1693,13 +1747,13 @@ bool BindListenPort(string& strError) setsockopt(hListenSocket, SOL_SOCKET, SO_NOSIGPIPE, (void*)&nOne, sizeof(int)); #endif -#ifndef __WXMSW__ +#ifndef WIN32 // Allow binding if the port is still in TIME_WAIT state after // the program was closed and restarted. Not an issue on windows. setsockopt(hListenSocket, SOL_SOCKET, SO_REUSEADDR, (void*)&nOne, sizeof(int)); #endif -#ifdef __WXMSW__ +#ifdef WIN32 // Set to nonblocking, incoming connections will also inherit this if (ioctlsocket(hListenSocket, FIONBIO, (u_long*)&nOne) == SOCKET_ERROR) #else @@ -1746,7 +1800,7 @@ void StartNode(void* parg) if (pnodeLocalHost == NULL) pnodeLocalHost = new CNode(INVALID_SOCKET, CAddress("127.0.0.1", 0, false, nLocalServices)); -#ifdef __WXMSW__ +#ifdef WIN32 // Get local host ip char pszHostName[1000] = ""; if (gethostname(pszHostName, sizeof(pszHostName)) != SOCKET_ERROR) @@ -1889,7 +1943,7 @@ public: if (closesocket(hListenSocket) == SOCKET_ERROR) printf("closesocket(hListenSocket) failed with error %d\n", WSAGetLastError()); -#ifdef __WXMSW__ +#ifdef WIN32 // Shutdown Windows Sockets WSACleanup(); #endif diff --git a/src/net.h b/src/net.h index 24ab43a..5666805 100644 --- a/src/net.h +++ b/src/net.h @@ -10,7 +10,7 @@ #include #include -#ifndef __WXMSW__ +#ifndef WIN32 #include #endif @@ -123,6 +123,13 @@ public: bool fDisconnect; protected: int nRefCount; + + // Denial-of-service detection/prevention + // Key is ip address, value is banned-until-time + static std::map setBanned; + static CCriticalSection cs_setBanned; + int nMisbehavior; + public: int64 nReleaseTime; std::map mapRequests; @@ -147,7 +154,6 @@ public: // publish and subscription std::vector vfSubscribe; - CNode(SOCKET hSocketIn, CAddress addrIn, bool fInboundIn=false) { nServices = 0; @@ -184,6 +190,7 @@ public: nStartingHeight = -1; fGetAddr = false; vfSubscribe.assign(256, false); + nMisbehavior = 0; // Be shy and don't send version until we hear if (!fInbound) @@ -569,6 +576,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 }; diff --git a/src/noui.h b/src/noui.h index cbe6fa4..0bbf45a 100644 --- a/src/noui.h +++ b/src/noui.h @@ -36,6 +36,8 @@ typedef void wxWindow; #define wxHELP 0x00008000 #define wxMORE 0x00010000 #define wxSETUP 0x00020000 +// Force blocking, modal message box dialog (not just notification) +#define wxMODAL 0x00040000 inline int MyMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1) { @@ -67,4 +69,8 @@ inline void MainFrameRepaint() { } +inline void InitMessage(const std::string &message) +{ +} + #endif diff --git a/src/cryptopp/obj/.gitignore b/src/obj-test/.gitignore similarity index 100% rename from src/cryptopp/obj/.gitignore rename to src/obj-test/.gitignore diff --git a/src/protocol.cpp b/src/protocol.cpp index a3e54eb..9933452 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -6,7 +6,7 @@ #include "protocol.h" #include "util.h" -#ifndef __WXMSW__ +#ifndef WIN32 # include #endif diff --git a/src/qt/aboutdialog.cpp b/src/qt/aboutdialog.cpp new file mode 100644 index 0000000..a3aa6de --- /dev/null +++ b/src/qt/aboutdialog.cpp @@ -0,0 +1,29 @@ +#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) +{ + if(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 index 0000000..2ed9e9e --- /dev/null +++ b/src/qt/aboutdialog.h @@ -0,0 +1,28 @@ +#ifndef ABOUTDIALOG_H +#define ABOUTDIALOG_H + +#include + +namespace Ui { + class AboutDialog; +} +class ClientModel; + +/** "About" dialog box */ +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 index 0000000..2c4407a --- /dev/null +++ b/src/qt/addressbookpage.cpp @@ -0,0 +1,228 @@ +#include "addressbookpage.h" +#include "ui_addressbookpage.h" + +#include "addresstablemodel.h" +#include "editaddressdialog.h" +#include "csvmodelwriter.h" +#include "guiutil.h" + +#include +#include +#include + +AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) : + QDialog(parent), + ui(new Ui::AddressBookPage), + model(0), + mode(mode), + tab(tab) +{ + ui->setupUi(this); + +#ifdef Q_WS_MAC // Icons on push buttons are very uncommon on Mac + ui->newAddressButton->setIcon(QIcon()); + ui->copyToClipboard->setIcon(QIcon()); + ui->deleteButton->setIcon(QIcon()); +#endif + + 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; + if(!model) + return; + // 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(); +} + +void AddressBookPage::on_copyToClipboard_clicked() +{ + // Copy currently selected address to clipboard + // (or nothing, if nothing selected) + QTableView *table = ui->tableView; + if(!table->selectionModel()) + return; + 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() +{ + if(!model) + return; + 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 = ui->tableView; + if(!table->selectionModel()) + return; + 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 = ui->tableView; + if(!table->selectionModel()) + return; + + 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) +{ + QTableView *table = ui->tableView; + if(!table->selectionModel() || !table->model()) + return; + // 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 + 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 = GUIUtil::getSaveFileName( + this, + tr("Export Address Book Data"), QString(), + 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 index 0000000..1a97f3d --- /dev/null +++ b/src/qt/addressbookpage.h @@ -0,0 +1,59 @@ +#ifndef ADDRESSBOOKPAGE_H +#define ADDRESSBOOKPAGE_H + +#include + +namespace Ui { + class AddressBookPage; +} +class AddressTableModel; + +QT_BEGIN_NAMESPACE +class QTableView; +class QItemSelection; +class QSortFilterProxyModel; +QT_END_NAMESPACE + +/** Widget that shows a list of sending or receiving addresses. + */ +class AddressBookPage : public QDialog +{ + Q_OBJECT + +public: + enum Tabs { + SendingTab = 0, + ReceivingTab = 1 + }; + + enum Mode { + ForSending, /**< Open address book to 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; + +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 index 0000000..5d724ea --- /dev/null +++ b/src/qt/addresstablemodel.cpp @@ -0,0 +1,348 @@ +#include "addresstablemodel.h" +#include "guiutil.h" +#include "walletmodel.h" + +#include "headers.h" + +#include +#include + +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 +class AddressTablePriv +{ +public: + CWallet *wallet; + QList 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(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(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(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 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::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 index 0000000..0743300 --- /dev/null +++ b/src/qt/addresstablemodel.h @@ -0,0 +1,88 @@ +#ifndef ADDRESSTABLEMODEL_H +#define ADDRESSTABLEMODEL_H + +#include +#include + +class AddressTablePriv; +class CWallet; +class WalletModel; + +/** + Qt model of the address book in the core. This allows views to access and modify the address book. + */ +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 /**< Type of address (#Send or #Receive) */ + }; + + /** Return status of edit/insert operation */ + enum EditStatus { + OK, + INVALID_ADDRESS, /**< Unparseable address */ + DUPLICATE_ADDRESS, /**< Address already in address book */ + WALLET_UNLOCK_FAILURE, /**< Wallet could not be unlocked to create new receiving address */ + KEY_GENERATION_FAILURE /**< Generating a new public key for a receiving address failed */ + }; + + static const QString Send; /**< Specifies send address */ + static const QString Receive; /**< Specifies receive address */ + + /** @name Methods overridden 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 index 0000000..31e4040 --- /dev/null +++ b/src/qt/askpassphrasedialog.cpp @@ -0,0 +1,240 @@ +#include "askpassphrasedialog.h" +#include "ui_askpassphrasedialog.h" + +#include "guiconstants.h" +#include "walletmodel.h" + +#include +#include +#include + +AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) : + QDialog(parent), + ui(new Ui::AskPassphraseDialog), + mode(mode), + model(0), + fCapsLock(false) +{ + ui->setupUi(this); + ui->passEdit1->setMaxLength(MAX_PASSPHRASE_SIZE); + ui->passEdit2->setMaxLength(MAX_PASSPHRASE_SIZE); + ui->passEdit3->setMaxLength(MAX_PASSPHRASE_SIZE); + + // Setup Caps Lock detection. + ui->passEdit1->installEventFilter(this); + ui->passEdit2->installEventFilter(this); + ui->passEdit3->installEventFilter(this); + ui->capsLabel->clear(); + + switch(mode) + { + case Encrypt: // Ask passphrase x2 + ui->passLabel1->hide(); + ui->passEdit1->hide(); + ui->warningLabel->setText(tr("Enter the new passphrase to the wallet.
Please use a passphrase of 10 or more random characters, or eight or more words.")); + 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; + } + + 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() +{ + SecureString oldpass, newpass1, newpass2; + if(!model) + return; + oldpass.reserve(MAX_PASSPHRASE_SIZE); + newpass1.reserve(MAX_PASSPHRASE_SIZE); + newpass2.reserve(MAX_PASSPHRASE_SIZE); + // TODO: get rid of this .c_str() by implementing SecureString::operator=(std::string) + // Alternately, find a way to make this input mlock()'d to begin with. + oldpass.assign(ui->passEdit1->text().toStdString().c_str()); + newpass1.assign(ui->passEdit2->text().toStdString().c_str()); + newpass2.assign(ui->passEdit3->text().toStdString().c_str()); + + 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 LOSE ALL OF YOUR BITCOINS!\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("Bitcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.")); + QApplication::quit(); + } + 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); +} + +bool AskPassphraseDialog::event(QEvent *event) +{ + // Detect Caps Lock key press. + if (event->type() == QEvent::KeyPress) { + QKeyEvent *ke = static_cast(event); + if (ke->key() == Qt::Key_CapsLock) { + fCapsLock = !fCapsLock; + } + if (fCapsLock) { + ui->capsLabel->setText(tr("Warning: The Caps Lock key is on.")); + } else { + ui->capsLabel->clear(); + } + } + return QWidget::event(event); +} + +bool AskPassphraseDialog::eventFilter(QObject *, QEvent *event) +{ + /* Detect Caps Lock. + * There is no good OS-independent way to check a key state in Qt, but we + * can detect Caps Lock by checking for the following condition: + * Shift key is down and the result is a lower case character, or + * Shift key is not down and the result is an upper case character. + */ + if (event->type() == QEvent::KeyPress) { + QKeyEvent *ke = static_cast(event); + QString str = ke->text(); + if (str.length() != 0) { + const QChar *psz = str.unicode(); + bool fShift = (ke->modifiers() & Qt::ShiftModifier) != 0; + if ((fShift && psz->isLower()) || (!fShift && psz->isUpper())) { + fCapsLock = true; + ui->capsLabel->setText(tr("Warning: The Caps Lock key is on.")); + } else if (psz->isLetter()) { + fCapsLock = false; + ui->capsLabel->clear(); + } + } + } + return false; +} diff --git a/src/qt/askpassphrasedialog.h b/src/qt/askpassphrasedialog.h new file mode 100644 index 0000000..b500ff4 --- /dev/null +++ b/src/qt/askpassphrasedialog.h @@ -0,0 +1,45 @@ +#ifndef ASKPASSPHRASEDIALOG_H +#define ASKPASSPHRASEDIALOG_H + +#include + +namespace Ui { + class AskPassphraseDialog; +} + +class WalletModel; + +/** Multifunctional dialog to ask for passphrases. Used for encryption, unlocking, and changing the passphrase. + */ +class AskPassphraseDialog : public QDialog +{ + Q_OBJECT + +public: + enum Mode { + Encrypt, /**< Ask passphrase twice and encrypt */ + Unlock, /**< Ask passphrase and unlock */ + ChangePass, /**< Ask old passphrase + new passphrase twice */ + Decrypt /**< Ask passphrase and decrypt wallet */ + }; + + explicit AskPassphraseDialog(Mode mode, QWidget *parent = 0); + ~AskPassphraseDialog(); + + void accept(); + + void setModel(WalletModel *model); + +private: + Ui::AskPassphraseDialog *ui; + Mode mode; + WalletModel *model; + bool fCapsLock; + +private slots: + void textChanged(); + bool event(QEvent *event); + bool eventFilter(QObject *, QEvent *event); +}; + +#endif // ASKPASSPHRASEDIALOG_H diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp new file mode 100644 index 0000000..b7c8a45 --- /dev/null +++ b/src/qt/bitcoin.cpp @@ -0,0 +1,222 @@ +/* + * 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 "util.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +// 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) +{ + bool modal = style & wxMODAL; + + if (modal) + while (!guiref) + Sleep(1000); + + // Message from network thread + if(guiref) + { + QMetaObject::invokeMethod(guiref, "error", Qt::QueuedConnection, + Q_ARG(QString, QString::fromStdString(caption)), + Q_ARG(QString, QString::fromStdString(message)), + Q_ARG(bool, modal)); + } + 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 fn) +{ + // Only used for built-in mining, which is disabled, simple ignore +} + +void MainFrameRepaint() +{ + if(guiref) + QMetaObject::invokeMethod(guiref, "refreshStatusBar", Qt::QueuedConnection); +} + +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(); +} + +/* Handle runaway exceptions. Shows a message box with the problem and quits the program. + */ +static void handleRunawayException(std::exception *e) +{ + PrintExceptionContinue(e, "Runaway exception"); + QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occured. Bitcoin can no longer continue safely and will quit.") + QString("\n\n") + QString::fromStdString(strMiscWarning)); + exit(1); +} + +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 files for system locale: + // - First load the translator for the base language, without territory + // - Then load the more specific locale translator + QString lang_territory = QLocale::system().name(); // "en_US" + QString lang = lang_territory; + lang.truncate(lang_territory.lastIndexOf('_')); // "en" + QTranslator qtTranslatorBase, qtTranslator, translatorBase, translator; + + qtTranslatorBase.load(QLibraryInfo::location(QLibraryInfo::TranslationsPath) + "/qt_" + lang); + if (!qtTranslatorBase.isEmpty()) + app.installTranslator(&qtTranslatorBase); + + qtTranslator.load(QLibraryInfo::location(QLibraryInfo::TranslationsPath) + "/qt_" + lang_territory); + if (!qtTranslator.isEmpty()) + app.installTranslator(&qtTranslator); + + translatorBase.load(":/translations/"+lang); + if (!translatorBase.isEmpty()) + app.installTranslator(&translatorBase); + + translator.load(":/translations/"+lang_territory); + if (!translator.isEmpty()) + app.installTranslator(&translator); + + app.setApplicationName(QApplication::translate("main", "Bitcoin-Qt")); + + QSplashScreen splash(QPixmap(":/images/splash"), 0); + if (!GetBoolArg("-min")) + { + 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() in case of exceptions. + BitcoinGUI window; + if (splashref) + splash.finish(&window); + OptionsModel optionsModel(pwalletMain); + ClientModel clientModel(&optionsModel); + WalletModel walletModel(pwalletMain, &optionsModel); + + guiref = &window; + window.setClientModel(&clientModel); + window.setWalletModel(&walletModel); + + // If -min option passed, start window minimized. + if(GetBoolArg("-min")) + { + window.showMinimized(); + } + else + { + window.show(); + } + + app.exec(); + + guiref = 0; + } + Shutdown(NULL); + } + else + { + return 1; + } + } catch (std::exception& e) { + handleRunawayException(&e); + } catch (...) { + handleRunawayException(NULL); + } + return 0; +} diff --git a/src/qt/bitcoin.qrc b/src/qt/bitcoin.qrc new file mode 100644 index 0000000..aea61d6 --- /dev/null +++ b/src/qt/bitcoin.qrc @@ -0,0 +1,64 @@ + + + res/icons/bitcoin.png + res/icons/address-book.png + res/icons/quit.png + res/icons/send.png + res/icons/toolbar.png + res/icons/connect0_16.png + res/icons/connect1_16.png + res/icons/connect2_16.png + res/icons/connect3_16.png + res/icons/connect4_16.png + res/icons/transaction0.png + res/icons/transaction2.png + res/icons/clock1.png + res/icons/clock2.png + res/icons/clock3.png + res/icons/clock4.png + res/icons/clock5.png + res/icons/configure.png + res/icons/receive.png + res/icons/editpaste.png + res/icons/editcopy.png + res/icons/add.png + res/icons/bitcoin_testnet.png + res/icons/toolbar_testnet.png + res/icons/edit.png + res/icons/history.png + res/icons/overview.png + res/icons/export.png + res/icons/synced.png + res/icons/remove.png + res/icons/tx_mined.png + res/icons/tx_input.png + res/icons/tx_output.png + res/icons/tx_inout.png + res/icons/lock_closed.png + res/icons/lock_open.png + res/icons/key.png + + + res/images/about.png + res/images/splash2.jpg + + + res/movies/update_spinner.mng + + + locale/bitcoin_da.qm + locale/bitcoin_de.qm + locale/bitcoin_en.qm + locale/bitcoin_es.qm + locale/bitcoin_es_CL.qm + locale/bitcoin_hu.qm + locale/bitcoin_it.qm + locale/bitcoin_nb.qm + locale/bitcoin_nl.qm + locale/bitcoin_pt_BR.qm + locale/bitcoin_ru.qm + locale/bitcoin_uk.qm + locale/bitcoin_zh_CN.qm + locale/bitcoin_zh_TW.qm + + diff --git a/src/qt/bitcoinaddressvalidator.cpp b/src/qt/bitcoinaddressvalidator.cpp new file mode 100644 index 0000000..3738778 --- /dev/null +++ b/src/qt/bitcoinaddressvalidator.cpp @@ -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= '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 index 0000000..6ca3bd6 --- /dev/null +++ b/src/qt/bitcoinaddressvalidator.h @@ -0,0 +1,24 @@ +#ifndef BITCOINADDRESSVALIDATOR_H +#define BITCOINADDRESSVALIDATOR_H + +#include + +/** 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 index 0000000..19cd565 --- /dev/null +++ b/src/qt/bitcoinamountfield.cpp @@ -0,0 +1,167 @@ +#include "bitcoinamountfield.h" +#include "qvaluecombobox.h" +#include "bitcoinunits.h" + +#include "guiconstants.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +BitcoinAmountField::BitcoinAmountField(QWidget *parent): + QWidget(parent), amount(0), currentUnit(-1) +{ + amount = new QDoubleSpinBox(this); + amount->setLocale(QLocale::c()); + amount->setDecimals(8); + amount->installEventFilter(this); + amount->setMaximumWidth(170); + + QHBoxLayout *layout = new QHBoxLayout(this); + layout->addWidget(amount); + 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(valueChanged(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) +{ + if (text.isEmpty()) + amount->clear(); + else + amount->setValue(text.toDouble()); +} + +void BitcoinAmountField::clear() +{ + amount->clear(); + unit->setCurrentIndex(0); +} + +bool BitcoinAmountField::validate() +{ + bool valid = true; + if (amount->value() == 0.0) + valid = false; + if (valid && !BitcoinUnits::parse(currentUnit, text(), 0)) + valid = false; + + setValid(valid); + + return valid; +} + +void BitcoinAmountField::setValid(bool valid) +{ + if (valid) + amount->setStyleSheet(""); + else + amount->setStyleSheet(STYLE_INVALID); +} + +QString BitcoinAmountField::text() const +{ + if (amount->text().isEmpty()) + return QString(); + else + return amount->text(); +} + +bool BitcoinAmountField::eventFilter(QObject *object, QEvent *event) +{ + if (event->type() == QEvent::FocusIn) + { + // Clear invalid flag on focus + setValid(true); + } + else if (event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease) + { + QKeyEvent *keyEvent = static_cast(event); + if (keyEvent->key() == Qt::Key_Comma) + { + // Translate a comma into a period + QKeyEvent periodKeyEvent(event->type(), Qt::Key_Period, keyEvent->modifiers(), ".", keyEvent->isAutoRepeat(), keyEvent->count()); + qApp->sendEvent(object, &periodKeyEvent); + return true; + } + } + return QWidget::eventFilter(object, event); +} + +QWidget *BitcoinAmountField::setupTabChain(QWidget *prev) +{ + QWidget::setTabOrder(prev, amount); + return amount; +} + +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->setDecimals(BitcoinUnits::decimals(currentUnit)); + amount->setMaximum(qPow(10, BitcoinUnits::amountDigits(currentUnit)) - qPow(10, -amount->decimals())); + + 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 index 0000000..ead8bdb --- /dev/null +++ b/src/qt/bitcoinamountfield.h @@ -0,0 +1,60 @@ +#ifndef BITCOINFIELD_H +#define BITCOINFIELD_H + +#include + +QT_BEGIN_NAMESPACE +class QDoubleSpinBox; +class QValueComboBox; +QT_END_NAMESPACE + +/** Widget for entering bitcoin amounts. + */ +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 value as invalid in UI. */ + void setValid(bool valid); + /** Perform input validation, mark field as invalid if entered value is not valid. */ + bool validate(); + + /** Change unit used to display amount. */ + 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), + in these cases we have to set it up manually. + */ + QWidget *setupTabChain(QWidget *prev); + +signals: + void textChanged(); + +protected: + /** Intercept focus-in event and ',' keypresses */ + bool eventFilter(QObject *object, QEvent *event); + +private: + QDoubleSpinBox *amount; + 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 index 0000000..778acd1 --- /dev/null +++ b/src/qt/bitcoingui.cpp @@ -0,0 +1,748 @@ +/* + * Qt4 bitcoin GUI. + * + * W.J. van der Laan 2011 + * The Bitcoin Developers 2011 + */ + +#include "checkpoints.h" + +#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" + +#ifdef Q_WS_MAC +#include "macdockiconhandler.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include + +BitcoinGUI::BitcoinGUI(QWidget *parent): + QMainWindow(parent), + clientModel(0), + walletModel(0), + encryptWalletAction(0), + changePassphraseAction(0), + aboutQtAction(0), + trayIcon(0), + notificator(0) +{ + resize(850, 550); + setWindowTitle(tr("Bitcoin Wallet")); +#ifndef Q_WS_MAC + setWindowIcon(QIcon(":icons/bitcoin")); +#else + setUnifiedTitleAndToolBarOnMac(true); + QApplication::setAttribute(Qt::AA_DontShowIconsInMenus); +#endif + // Accept D&D of URIs + setAcceptDrops(true); + + // Create actions for the toolbar, menu bar and tray/dock icon + createActions(); + + // Create application menu bar + createMenuBar(); + + // Create the toolbars + createToolBars(); + + // Create the tray icon (or setup the dock icon) + createTrayIcon(); + + // 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); + + 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(); +} + +BitcoinGUI::~BitcoinGUI() +{ +#ifdef Q_WS_MAC + delete appMenuBar; +#endif +} + +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); + overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1)); + tabGroup->addAction(overviewAction); + + historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this); + historyAction->setToolTip(tr("Browse transaction history")); + historyAction->setCheckable(true); + historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4)); + 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); + addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5)); + 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); + receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3)); + 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); + sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2)); + tabGroup->addAction(sendCoinsAction); + + connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormal())); + connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage())); + connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormal())); + connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage())); + connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormal())); + connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage())); + connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormal())); + connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage())); + connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormal())); + connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage())); + + quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this); + quitAction->setToolTip(tr("Quit application")); + quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q)); + quitAction->setMenuRole(QAction::QuitRole); + aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About %1").arg(qApp->applicationName()), this); + aboutAction->setToolTip(tr("Show information about Bitcoin")); + aboutAction->setMenuRole(QAction::AboutRole); + aboutQtAction = new QAction(tr("About &Qt"), this); + aboutQtAction->setToolTip(tr("Show information about Qt")); + aboutQtAction->setMenuRole(QAction::AboutQtRole); + optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this); + optionsAction->setToolTip(tr("Modify configuration options for bitcoin")); + optionsAction->setMenuRole(QAction::PreferencesRole); + 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(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt())); + 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::createMenuBar() +{ +#ifdef Q_WS_MAC + // Create a decoupled menu bar on Mac which stays even if the window is closed + appMenuBar = new QMenuBar(); +#else + // Get the main window's menu bar on other platforms + appMenuBar = menuBar(); +#endif + + // Configure the menus + QMenu *file = appMenuBar->addMenu(tr("&File")); + file->addAction(quitAction); + + QMenu *settings = appMenuBar->addMenu(tr("&Settings")); + settings->addAction(encryptWalletAction); + settings->addAction(changePassphraseAction); + settings->addSeparator(); + settings->addAction(optionsAction); + + QMenu *help = appMenuBar->addMenu(tr("&Help")); + help->addAction(aboutAction); + help->addAction(aboutQtAction); +} + +void BitcoinGUI::createToolBars() +{ + 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); +} + +void BitcoinGUI::setClientModel(ClientModel *clientModel) +{ + this->clientModel = clientModel; + if(clientModel) + { + if(clientModel->isTestNet()) + { + QString title_testnet = windowTitle() + QString(" ") + tr("[testnet]"); + setWindowTitle(title_testnet); +#ifndef Q_WS_MAC + setWindowIcon(QIcon(":icons/bitcoin_testnet")); +#else + MacDockIconHandler::instance()->setIcon(QIcon(":icons/bitcoin_testnet")); +#endif + 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; + if(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; +#ifndef Q_WS_MAC + trayIcon = new QSystemTrayIcon(this); + trayIconMenu = new QMenu(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(); +#else + // Note: On Mac, the dock icon is used to provide the tray's functionality. + MacDockIconHandler *dockIconHandler = MacDockIconHandler::instance(); + connect(dockIconHandler, SIGNAL(dockIconClicked()), openBitcoinAction, SLOT(trigger())); + trayIconMenu = dockIconHandler->dockMenu(); +#endif + + // Configuration of the tray icon (or dock icon) icon menu + trayIconMenu->addAction(openBitcoinAction); + trayIconMenu->addSeparator(); + trayIconMenu->addAction(receiveCoinsAction); + trayIconMenu->addAction(sendCoinsAction); + trayIconMenu->addSeparator(); + trayIconMenu->addAction(optionsAction); +#ifndef Q_WS_MAC // This is built-in on Mac + trayIconMenu->addSeparator(); + trayIconMenu->addAction(quitAction); +#endif + + notificator = new Notificator(tr("bitcoin-qt"), trayIcon); +} + +#ifndef Q_WS_MAC +void BitcoinGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason) +{ + if(reason == QSystemTrayIcon::Trigger) + { + // Click on system tray icon triggers "open bitcoin" + openBitcoinAction->trigger(); + } +} +#endif + +void BitcoinGUI::optionsClicked() +{ + if(!clientModel || !clientModel->getOptionsModel()) + return; + 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) +{ + if(!clientModel) + return; + int total = clientModel->getNumBlocksOfPeers(); + QString tooltip; + + if(count < total) + { + if (clientModel->getStatusBarWarnings() == "") + { + progressBarLabel->setVisible(true); + progressBarLabel->setText(tr("Synchronizing with network...")); + progressBar->setVisible(true); + progressBar->setMaximum(total); + progressBar->setValue(count); + } + else + { + progressBarLabel->setText(clientModel->getStatusBarWarnings()); + progressBarLabel->setVisible(true); + progressBar->setVisible(false); + } + tooltip = tr("Downloaded %1 of %2 blocks of transaction history.").arg(count).arg(total); + } + else + { + if (clientModel->getStatusBarWarnings() == "") + progressBarLabel->setVisible(false); + else + { + progressBarLabel->setText(clientModel->getStatusBarWarnings()); + progressBarLabel->setVisible(true); + } + 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 <= 0) + { + // Fully up to date. Leave text empty. + } + else 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 < 90*60 && count >= Checkpoints::GetTotalBlocksEstimate()) + { + 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(); + } + + if(!text.isEmpty()) + { + tooltip += QString("\n"); + tooltip += tr("Last received block was generated %1.").arg(text); + } + + labelBlocksIcon->setToolTip(tooltip); + progressBarLabel->setToolTip(tooltip); + progressBar->setToolTip(tooltip); +} + +void BitcoinGUI::refreshStatusBar() +{ + /* Might display multiple times in the case of multiple alerts + static QString prevStatusBar; + QString newStatusBar = clientModel->getStatusBarWarnings(); + if (prevStatusBar != newStatusBar) + { + prevStatusBar = newStatusBar; + error(tr("Network Alert"), newStatusBar); + }*/ + setNumBlocks(clientModel->getNumBlocks()); +} + +bool HACK_SHUTDOWN = false; + +void BitcoinGUI::error(const QString &title, const QString &message, bool modal) +{ + // Report errors from network/worker thread + if (modal) + { + QMessageBox::critical(this, title, message, QMessageBox::Ok, QMessageBox::Ok); + if (HACK_SHUTDOWN) + QMetaObject::invokeMethod(QCoreApplication::instance(), "quit", Qt::QueuedConnection); + } else { + notificator->notify(Notificator::Critical, title, message); + } +} + +void BitcoinGUI::changeEvent(QEvent *e) +{ + QMainWindow::changeEvent(e); +#ifndef Q_WS_MAC // Ignored on Mac + if(e->type() == QEvent::WindowStateChange) + { + if(clientModel && clientModel->getOptionsModel()->getMinimizeToTray()) + { + QWindowStateChangeEvent *wsevt = static_cast(e); + if(!(wsevt->oldState() & Qt::WindowMinimized) && isMinimized()) + { + QTimer::singleShot(0, this, SLOT(hide())); + e->ignore(); + } + } + } +#endif +} + +void BitcoinGUI::closeEvent(QCloseEvent *event) +{ + if(clientModel) + { +#ifndef Q_WS_MAC // Ignored on Mac + if(!clientModel->getOptionsModel()->getMinimizeToTray() && + !clientModel->getOptionsModel()->getMinimizeOnClose()) + { + qApp->quit(); + } +#endif + } + 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) +{ + if(!walletModel || !clientModel) + return; + 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(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 URIs + if(event->mimeData()->hasUrls()) + event->acceptProposedAction(); +} + +void BitcoinGUI::dropEvent(QDropEvent *event) +{ + if(event->mimeData()->hasUrls()) + { + gotoSendCoinsPage(); + QList uris = event->mimeData()->urls(); + foreach(const QUrl &uri, uris) + { + sendCoinsPage->handleURI(&uri); + } + } + + 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 encrypted and currently unlocked")); + 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 encrypted and currently locked")); + encryptWalletAction->setChecked(true); + changePassphraseAction->setEnabled(true); + encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported + break; + } +} + +void BitcoinGUI::encryptWallet(bool status) +{ + if(!walletModel) + return; + 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() +{ + if(!walletModel) + return; + // 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 index 0000000..0fcb72a --- /dev/null +++ b/src/qt/bitcoingui.h @@ -0,0 +1,160 @@ +#ifndef BITCOINGUI_H +#define BITCOINGUI_H + +#include +#include + +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 + +/** + Bitcoin GUI main class. This class represents the main window of the Bitcoin UI. It communicates with both the client and + wallet models to give the user an up-to-date view of the current core state. +*/ +class BitcoinGUI : public QMainWindow +{ + Q_OBJECT +public: + explicit BitcoinGUI(QWidget *parent = 0); + ~BitcoinGUI(); + + /** Set the client model. + The client model represents the part of the core that communicates with the P2P network, and is wallet-agnostic. + */ + void setClientModel(ClientModel *clientModel); + /** Set the wallet model. + The wallet model represents a bitcoin wallet, and offers access to the list of transactions, address book and sending + functionality. + */ + void setWalletModel(WalletModel *walletModel); + +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; + + QMenuBar *appMenuBar; + QAction *overviewAction; + QAction *historyAction; + QAction *quitAction; + QAction *sendCoinsAction; + QAction *addressBookAction; + QAction *aboutAction; + QAction *receiveCoinsAction; + QAction *optionsAction; + QAction *openBitcoinAction; + QAction *exportAction; + QAction *encryptWalletAction; + QAction *changePassphraseAction; + QAction *aboutQtAction; + + QSystemTrayIcon *trayIcon; + Notificator *notificator; + TransactionView *transactionView; + + QMovie *syncIconMovie; + + /** Create the main UI actions. */ + void createActions(); + /** Create the menu bar and submenus. */ + void createMenuBar(); + /** Create the toolbars */ + void createToolBars(); + /** Create system tray (notification) icon */ + void createTrayIcon(); + +public slots: + /** Set number of connections shown in the UI */ + void setNumConnections(int count); + /** Set number of blocks shown in the UI */ + void setNumBlocks(int count); + /** Set the encryption status as shown in the UI. + @param[in] status current encryption status + @see WalletModel::EncryptionStatus + */ + void setEncryptionStatus(int status); + /** Set the status bar text if there are any warnings (removes sync progress bar if applicable) */ + void refreshStatusBar(); + + /** Notify the user of an error in the network or transaction handling code. */ + void error(const QString &title, const QString &message, bool modal = false); + /** Asks the user whether to pay the transaction fee or to cancel the transaction. + It is currently not possible to pass a return value to another thread through + BlockingQueuedConnection, so an indirected pointer is used. + http://bugreports.qt.nokia.com/browse/QTBUG-10440 + + @param[in] nFeeRequired the required fee + @param[out] payFee true to pay the fee, false to not pay the fee + */ + void askFee(qint64 nFeeRequired, bool *payFee); + +private slots: + /** Switch to overview (home) page */ + void gotoOverviewPage(); + /** Switch to history (transactions) page */ + void gotoHistoryPage(); + /** Switch to address book page */ + void gotoAddressBookPage(); + /** Switch to receive coins page */ + void gotoReceiveCoinsPage(); + /** Switch to send coins page */ + void gotoSendCoinsPage(); + + /** Show configuration dialog */ + void optionsClicked(); + /** Show about dialog */ + void aboutClicked(); +#ifndef Q_WS_MAC + /** Handle tray icon clicked */ + void trayIconActivated(QSystemTrayIcon::ActivationReason reason); +#endif + /** Show incoming transaction notification for new transactions. + + The new items are those between start and end inclusive, under the given parent item. + */ + void incomingTransaction(const QModelIndex & parent, int start, int end); + /** Encrypt the wallet */ + void encryptWallet(bool status); + /** Change encrypted wallet passphrase */ + void changePassphrase(); + /** Ask for pass phrase to unlock wallet temporarily */ + void unlockWallet(); +}; + +#endif diff --git a/src/qt/bitcoinstrings.cpp b/src/qt/bitcoinstrings.cpp new file mode 100644 index 0000000..2d77441 --- /dev/null +++ b/src/qt/bitcoinstrings.cpp @@ -0,0 +1,81 @@ +#include +// Automatically generated by extract_strings.py +#ifdef __GNUC__ +#define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif +static const char UNUSED *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", "Threshold for disconnecting misbehaving peers (default: 100)\n"), +QT_TRANSLATE_NOOP("bitcoin-core", "" +"Number of seconds to keep misbehaving peers from reconnecting (default: " +"86400)\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 (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 (default: 127.0.0.1)\n"), +QT_TRANSLATE_NOOP("bitcoin-core", "Set key pool size to (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="), +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", "" +"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 index 0000000..9a9a489 --- /dev/null +++ b/src/qt/bitcoinunits.cpp @@ -0,0 +1,181 @@ +#include "bitcoinunits.h" + +#include + +BitcoinUnits::BitcoinUnits(QObject *parent): + QAbstractListModel(parent), + unitlist(availableUnits()) +{ +} + +QList BitcoinUnits::availableUnits() +{ + QList 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(unit)); + } + } + return QVariant(); +} diff --git a/src/qt/bitcoinunits.h b/src/qt/bitcoinunits.h new file mode 100644 index 0000000..18fa36a --- /dev/null +++ b/src/qt/bitcoinunits.h @@ -0,0 +1,66 @@ +#ifndef BITCOINUNITS_H +#define BITCOINUNITS_H + +#include +#include + +/** 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); + + /** Bitcoin units. + @note Source: https://en.bitcoin.it/wiki/Units . Please add only sensible ones + */ + enum Unit + { + BTC, + mBTC, + uBTC + }; + + //! @name Static API + //! Unit conversion and formatting + ///@{ + + //! Get list of units, for dropdown box + static QList 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 (1e-8) per 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); + ///@} + + //! @name AbstractListModel implementation + //! List model for unit dropdown selection box. + ///@{ + enum RoleIndex { + /** Unit identifier */ + UnitRole = Qt::UserRole + }; + int rowCount(const QModelIndex &parent) const; + QVariant data(const QModelIndex &index, int role) const; + ///@} +private: + QList unitlist; +}; +typedef BitcoinUnits::Unit BitcoinUnit; + +#endif // BITCOINUNITS_H diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp new file mode 100644 index 0000000..5a0b4aa --- /dev/null +++ b/src/qt/clientmodel.cpp @@ -0,0 +1,88 @@ +#include "clientmodel.h" +#include "guiconstants.h" +#include "optionsmodel.h" +#include "addresstablemodel.h" +#include "transactiontablemodel.h" + +#include "headers.h" + +#include +#include + +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(); +} + +QString ClientModel::getStatusBarWarnings() const +{ + return QString::fromStdString(GetWarnings("statusbar")); +} + +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 index 0000000..5a12c4f --- /dev/null +++ b/src/qt/clientmodel.h @@ -0,0 +1,62 @@ +#ifndef CLIENTMODEL_H +#define CLIENTMODEL_H + +#include + +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; + //! Return warnings to be displayed in status bar + QString getStatusBarWarnings() 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 index 0000000..84578b3 --- /dev/null +++ b/src/qt/csvmodelwriter.cpp @@ -0,0 +1,87 @@ +#include "csvmodelwriter.h" + +#include +#include +#include + +CSVModelWriter::CSVModelWriter(const QString &filename, QObject *parent) : + QObject(parent), + filename(filename), model(0) +{ +} + +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 = 0; + if(model) + { + numRows = model->rowCount(); + } + + // Header row + for(int i=0; iindex(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 index 0000000..6c9dcba --- /dev/null +++ b/src/qt/csvmodelwriter.h @@ -0,0 +1,46 @@ +#ifndef CSVMODELWRITER_H +#define CSVMODELWRITER_H + +#include +#include + +QT_BEGIN_NAMESPACE +class QAbstractItemModel; +QT_END_NAMESPACE + +/** Export a Qt table model to a CSV file. This is useful for analyzing or post-processing the data in + a spreadsheet. + */ +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 export of the model to CSV. + @returns true on success, false otherwise + */ + bool write(); + +private: + QString filename; + const QAbstractItemModel *model; + + struct Column + { + QString title; + int column; + int role; + }; + QList columns; + +signals: + +public slots: + +}; + +#endif // CSVMODELWRITER_H diff --git a/src/qt/editaddressdialog.cpp b/src/qt/editaddressdialog.cpp new file mode 100644 index 0000000..cecb8ae --- /dev/null +++ b/src/qt/editaddressdialog.cpp @@ -0,0 +1,128 @@ +#include "editaddressdialog.h" +#include "ui_editaddressdialog.h" +#include "addresstablemodel.h" +#include "guiutil.h" + +#include +#include + +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() +{ + if(!model) + return false; + 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(!model) + return; + 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; + case AddressTableModel::OK: + // Failed with unknown reason. Just reject. + break; + } + + return; + } + QDialog::accept(); +} + +QString EditAddressDialog::getAddress() const +{ + return address; +} + +void EditAddressDialog::setAddress(const QString &address) +{ + this->address = address; + ui->addressEdit->setText(address); +} diff --git a/src/qt/editaddressdialog.h b/src/qt/editaddressdialog.h new file mode 100644 index 0000000..7ec053f --- /dev/null +++ b/src/qt/editaddressdialog.h @@ -0,0 +1,50 @@ +#ifndef EDITADDRESSDIALOG_H +#define EDITADDRESSDIALOG_H + +#include + +QT_BEGIN_NAMESPACE +class QDataWidgetMapper; +QT_END_NAMESPACE + +namespace Ui { + class EditAddressDialog; +} +class AddressTableModel; + +/** Dialog for editing an address and associated information. + */ +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; + void setAddress(const QString &address); +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 index 0000000..127b909 --- /dev/null +++ b/src/qt/forms/aboutdialog.ui @@ -0,0 +1,162 @@ + + + AboutDialog + + + + 0 + 0 + 593 + 319 + + + + About Bitcoin + + + + + + + 0 + 0 + + + + + + + :/images/about + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + <b>Bitcoin</b> version + + + + + + + 0.3.666-beta + + + Qt::RichText + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Copyright © 2009-2012 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. + + + true + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Ok + + + + + + + + + + + + + buttonBox + accepted() + AboutDialog + accept() + + + 360 + 308 + + + 157 + 274 + + + + + buttonBox + rejected() + AboutDialog + reject() + + + 428 + 308 + + + 286 + 274 + + + + + diff --git a/src/qt/forms/addressbookpage.ui b/src/qt/forms/addressbookpage.ui new file mode 100644 index 0000000..fb098c8 --- /dev/null +++ b/src/qt/forms/addressbookpage.ui @@ -0,0 +1,130 @@ + + + AddressBookPage + + + + 0 + 0 + 627 + 347 + + + + Address Book + + + + + + 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. + + + Qt::AutoText + + + true + + + + + + + Double-click to edit address or label + + + true + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + false + + + + + + + + + Create a new address + + + &New Address... + + + + :/icons/add:/icons/add + + + + + + + Copy the currently selected address to the system clipboard + + + &Copy to Clipboard + + + + :/icons/editcopy:/icons/editcopy + + + + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + + + &Delete + + + + :/icons/remove:/icons/remove + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + QDialogButtonBox::Ok + + + + + + + + + + + + diff --git a/src/qt/forms/askpassphrasedialog.ui b/src/qt/forms/askpassphrasedialog.ui new file mode 100644 index 0000000..3f6b668 --- /dev/null +++ b/src/qt/forms/askpassphrasedialog.ui @@ -0,0 +1,153 @@ + + + AskPassphraseDialog + + + + 0 + 0 + 598 + 198 + + + + + 0 + 0 + + + + + 550 + 0 + + + + Dialog + + + + + + TextLabel + + + Qt::RichText + + + true + + + + + + + QFormLayout::AllNonFixedFieldsGrow + + + + + Enter passphrase + + + + + + + QLineEdit::Password + + + + + + + New passphrase + + + + + + + QLineEdit::Password + + + + + + + Repeat new passphrase + + + + + + + QLineEdit::Password + + + + + + + #capsLabel { + font: bold; +} + + + TextLabel + + + Qt::AlignCenter + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + AskPassphraseDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + AskPassphraseDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/src/qt/forms/editaddressdialog.ui b/src/qt/forms/editaddressdialog.ui new file mode 100644 index 0000000..b4a4c1b --- /dev/null +++ b/src/qt/forms/editaddressdialog.ui @@ -0,0 +1,105 @@ + + + EditAddressDialog + + + + 0 + 0 + 457 + 126 + + + + Edit Address + + + + + + QFormLayout::AllNonFixedFieldsGrow + + + + + &Label + + + labelEdit + + + + + + + The label associated with this address book entry + + + + + + + &Address + + + addressEdit + + + + + + + The address associated with this address book entry. This can only be modified for sending addresses. + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + EditAddressDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + EditAddressDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/src/qt/forms/overviewpage.ui b/src/qt/forms/overviewpage.ui new file mode 100644 index 0000000..cc67fae --- /dev/null +++ b/src/qt/forms/overviewpage.ui @@ -0,0 +1,161 @@ + + + OverviewPage + + + + 0 + 0 + 552 + 342 + + + + Form + + + + + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + QFormLayout::AllNonFixedFieldsGrow + + + 12 + + + 12 + + + + + Balance: + + + + + + + 123.456 BTC + + + + + + + Number of transactions: + + + + + + + 0 + + + + + + + Unconfirmed: + + + + + + + 0 BTC + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + <b>Recent transactions</b> + + + + + + + QFrame::NoFrame + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + diff --git a/src/qt/forms/sendcoinsdialog.ui b/src/qt/forms/sendcoinsdialog.ui new file mode 100644 index 0000000..04cf404 --- /dev/null +++ b/src/qt/forms/sendcoinsdialog.ui @@ -0,0 +1,166 @@ + + + SendCoinsDialog + + + + 0 + 0 + 686 + 217 + + + + Send Coins + + + + + + true + + + + + 0 + 0 + 666 + 165 + + + + + 0 + + + + + 6 + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + Send to multiple recipients at once + + + &Add recipient... + + + + :/icons/add:/icons/add + + + + + + + + 0 + 0 + + + + Remove all transaction fields + + + Clear all + + + + :/icons/remove:/icons/remove + + + 300 + + + + + + + 3 + + + + + Balance: + + + + + + + 123.456 BTC + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 150 + 0 + + + + Confirm the send action + + + &Send + + + + :/icons/send:/icons/send + + + true + + + + + + + + + + + + diff --git a/src/qt/forms/sendcoinsentry.ui b/src/qt/forms/sendcoinsentry.ui new file mode 100644 index 0000000..22a3f8f --- /dev/null +++ b/src/qt/forms/sendcoinsentry.ui @@ -0,0 +1,169 @@ + + + SendCoinsEntry + + + + 0 + 0 + 729 + 136 + + + + Form + + + QFrame::StyledPanel + + + QFrame::Sunken + + + + 12 + + + + + A&mount: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + payAmount + + + + + + + Pay &To: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + payTo + + + + + + + + + + 0 + + + + + true + + + Enter a label for this address to add it to your address book + + + + + + + + + &Label: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + addAsLabel + + + + + + + 0 + + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + 34 + + + + + + + Choose address from address book + + + + + + + :/icons/address-book:/icons/address-book + + + Alt+A + + + + + + + Paste address from clipboard + + + + + + + :/icons/editpaste:/icons/editpaste + + + Alt+P + + + + + + + Remove this recipient + + + + + + + :/icons/remove:/icons/remove + + + + + + + + + + BitcoinAmountField + QLineEdit +

bitcoinamountfield.h
+ 1 + + + QValidatedLineEdit + QLineEdit +
qvalidatedlineedit.h
+
+ + + + + + diff --git a/src/qt/forms/transactiondescdialog.ui b/src/qt/forms/transactiondescdialog.ui new file mode 100644 index 0000000..9a9f6db --- /dev/null +++ b/src/qt/forms/transactiondescdialog.ui @@ -0,0 +1,74 @@ + + + TransactionDescDialog + + + + 0 + 0 + 400 + 300 + + + + Transaction details + + + + + + This pane shows a detailed description of the transaction + + + true + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close + + + + + + + + + buttonBox + accepted() + TransactionDescDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + TransactionDescDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/src/qt/guiconstants.h b/src/qt/guiconstants.h new file mode 100644 index 0000000..0cb5075 --- /dev/null +++ b/src/qt/guiconstants.h @@ -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 index 0000000..f5e6e0a --- /dev/null +++ b/src/qt/guiutil.cpp @@ -0,0 +1,137 @@ +#include "guiutil.h" +#include "bitcoinaddressvalidator.h" +#include "walletmodel.h" +#include "bitcoinunits.h" + +#include "headers.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +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::parseBitcoinURI(const QUrl *uri, SendCoinsRecipient *out) +{ + if(uri->scheme() != QString("bitcoin")) + return false; + + SendCoinsRecipient rv; + rv.address = uri->path(); + rv.label = uri->queryItemValue("label"); + + QString amount = uri->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; +} + +bool GUIUtil::parseBitcoinURI(QString uri, SendCoinsRecipient *out) +{ + // Convert bitcoin:// to bitcoin: + // + // Cannot handle this later, because bitcoin:// will cause Qt to see the part after // as host, + // which will lowercase it (and thus invalidate the address). + if(uri.startsWith("bitcoin://")) + { + uri.replace(0, 10, "bitcoin:"); + } + QUrl uriInstance(uri); + return parseBitcoinURI(&uriInstance, out); +} + +QString GUIUtil::getSaveFileName(QWidget *parent, const QString &caption, + const QString &dir, + const QString &filter, + QString *selectedSuffixOut) +{ + QString selectedFilter; + QString myDir; + if(dir.isEmpty()) // Default to user documents location + { + myDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation); + } + else + { + myDir = dir; + } + QString result = QFileDialog::getSaveFileName(parent, caption, myDir, filter, &selectedFilter); + + /* Extract first suffix from filter pattern "Description (*.foo)" or "Description (*.foo *.bar ...) */ + QRegExp filter_re(".* \\(\\*\\.(.*)[ \\)]"); + QString selectedSuffix; + if(filter_re.exactMatch(selectedFilter)) + { + selectedSuffix = filter_re.cap(1); + } + + /* Add suffix if needed */ + QFileInfo info(result); + if(!result.isEmpty()) + { + if(info.suffix().isEmpty() && !selectedSuffix.isEmpty()) + { + /* No suffix specified, add selected suffix */ + if(!result.endsWith(".")) + result.append("."); + result.append(selectedSuffix); + } + } + + /* Return selected suffix if asked to */ + if(selectedSuffixOut) + { + *selectedSuffixOut = selectedSuffix; + } + return result; +} + diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h new file mode 100644 index 0000000..7e2b006 --- /dev/null +++ b/src/qt/guiutil.h @@ -0,0 +1,52 @@ +#ifndef GUIUTIL_H +#define GUIUTIL_H + +#include + +QT_BEGIN_NAMESPACE +class QFont; +class QLineEdit; +class QWidget; +class QDateTime; +class QUrl; +QT_END_NAMESPACE +class SendCoinsRecipient; + +/** Static utility functions used by the Bitcoin Qt UI. + */ +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:" URI into recipient object, return true on succesful parsing + // See Bitcoin URI definition discussion here: https://bitcointalk.org/index.php?topic=33490.0 + static bool parseBitcoinURI(const QUrl *, SendCoinsRecipient *out); + static bool parseBitcoinURI(QString uri, SendCoinsRecipient *out); + + /** Get save file name, mimics QFileDialog::getSaveFileName, except that it appends a default suffix + when no suffix is provided by the user. + + @param[in] parent Parent window (or 0) + @param[in] caption Window caption (or empty, for default) + @param[in] dir Starting directory (or empty, to default to documents directory) + @param[in] filter Filter specification such as "Comma Separated Files (*.csv)" + @param[out] selectedSuffixOut Pointer to return the suffix (file type) that was selected (or 0). + Can be useful when choosing the save file format based on suffix. + */ + static QString getSaveFileName(QWidget *parent=0, const QString &caption=QString(), + const QString &dir=QString(), const QString &filter=QString(), + QString *selectedSuffixOut=0); + +}; + +#endif // GUIUTIL_H diff --git a/src/qt/locale/bitcoin_da.ts b/src/qt/locale/bitcoin_da.ts new file mode 100644 index 0000000..7e5e683 --- /dev/null +++ b/src/qt/locale/bitcoin_da.ts @@ -0,0 +1,2337 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + Om Bitcoin + + + + <b>Bitcoin</b> version + <b>Bitcoin</b> version + + + + 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. + Copyright © 2009-2011 Bitcoin Developers + +Dette program er ekperimentielt. + +Det er gjort tilgængeligt under MIT/X11 softwarelicensen. Se den tilhørende fil "license.txt" eller http://www.opensource.org/licenses/mit-license.php. + +Produktet indeholder software som er udviklet af OpenSSL Project til brug i OpenSSL Toolkit (http://www.openssl.org/), kryptografisk software skrevet af Eric Young (eay@cryptsoft.com) og UPnP-software skrevet by Thomas Bernard. + + + + AddressBookPage + + + Address Book + Adressebog + + + + 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. + Dette er dine Bitcoinadresser til at modtage betalinger med. Du kan give en forskellig adresse til hver afsender, sÃ¥ du kan holde styr pÃ¥ hvem der betaler dig. + + + + Double-click to edit address or label + Dobbeltklik for at redigere adresse eller mærkat + + + + Create a new address + Opret en ny adresse + + + + &New Address... + &Ny adresse ... + + + + Copy the currently selected address to the system clipboard + Kopier den valgte adresse til systemets udklipsholder + + + + &Copy to Clipboard + &Kopier til Udklipsholder + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Slet den valgte adresse fra listen. Kun adresser brugt til afsendelse kan slettes. + + + + &Delete + &Slet + + + + Export Address Book Data + Eksporter Adressekartoteketsdata + + + + Comma separated file (*.csv) + Kommasepareret fil (*. csv) + + + + Error exporting + Fejl under eksport + + + + Could not write to file %1. + Kunne ikke skrive til filen %1. + + + + AddressTableModel + + + Label + Etiket + + + + Address + Adresse + + + + (no label) + (ingen etiket) + + + + AskPassphraseDialog + + + Dialog + Dialog + + + + TextLabel + TekstEtiket + + + + Enter passphrase + Indtast adgangskode + + + + New passphrase + Ny adgangskode + + + + Repeat new passphrase + Gentag ny adgangskode + + + + 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>. + Indtast den nye adgangskode til tegnebogen.<br/>Brug venligst en adgangskode pÃ¥ <b>10 eller flere tilfældige tegn</b>, eller <b>otte eller flere ord</b>. + + + + Encrypt wallet + Krypter tegnebog + + + + This operation needs your wallet passphrase to unlock the wallet. + Denne funktion har brug for din tegnebogs kodeord for at lÃ¥se tegnebogen op. + + + + Unlock wallet + LÃ¥s tegnebog op + + + + This operation needs your wallet passphrase to decrypt the wallet. + Denne funktion har brug for din tegnebogs kodeord for at dekryptere tegnebogen. + + + + Decrypt wallet + Dekryptér tegnebog + + + + Change passphrase + Skift adgangskode + + + + Enter the old and new passphrase to the wallet. + Indtast den gamle og nye adgangskode til tegnebogen. + + + + Confirm wallet encryption + Bekræft tegnebogskryptering + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + ADVARSEL: Hvis du krypterer din tegnebog og mister dit kodeord vil du <b>miste alle dine BITCOINS</b>! +Er du sikker pÃ¥ at du ønsker at kryptere din tegnebog? + + + + + Wallet encrypted + Tegnebog krypteret + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Husk, at kryptere din tegnebog vil ikke fuldt ud beskytte dine bitcoins mod at blive stjÃ¥let af malware pÃ¥ din computer. + + + + + + + Wallet encryption failed + Tegnebogskryptering mislykkedes + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + Tegnebogskryptering mislykkedes pÃ¥ grund af en intern fejl. Din tegnebog blev ikke krypteret. + + + + + The supplied passphrases do not match. + De angivne kodeord stemmer ikke overens. + + + + Wallet unlock failed + TegnebogsoplÃ¥sning mislykkedes + + + + + + The passphrase entered for the wallet decryption was incorrect. + Det angivne kodeord for tegnebogsdekrypteringen er forkert. + + + + Wallet decryption failed + Tegnebogsdekryptering mislykkedes + + + + Wallet passphrase was succesfully changed. + Tegnebogskodeord blev ændret. + + + + BitcoinGUI + + + Bitcoin Wallet + Bitcoin Tegnebog + + + + Synchronizing with network... + Synkroniserer med netværk ... + + + + Block chain synchronization in progress + Blokkæde synkronisering i gang + + + + &Overview + &Oversigt + + + + Show general overview of wallet + Vis generel oversigt over tegnebog + + + + &Transactions + &Transaktioner + + + + Browse transaction history + Gennemse transaktionshistorik + + + + &Address Book + &Adressebog + + + + Edit the list of stored addresses and labels + Rediger listen over gemte adresser og etiketter + + + + &Receive coins + &Modtag coins + + + + Show the list of addresses for receiving payments + Vis listen over adresser for at modtage betalinger + + + + &Send coins + &Send coins + + + + Send coins to a bitcoin address + Send coins til en bitcoinadresse + + + + E&xit + &Luk + + + + Quit application + Afslut program + + + + &About %1 + &Om %1 + + + + Show information about Bitcoin + Vis oplysninger om Bitcoin + + + + &Options... + &Indstillinger ... + + + + Modify configuration options for bitcoin + Rediger konfigurationsindstillinger af bitcoin + + + + Open &Bitcoin + Åbn &Bitcoin + + + + Show the Bitcoin window + Vis Bitcoinvinduet + + + + &Export... + &Eksporter... + + + + Export the current view to a file + Eksportér den aktuelle visning til en fil + + + + &Encrypt Wallet + &Kryptér tegnebog + + + + Encrypt or decrypt wallet + Kryptér eller dekryptér tegnebog + + + + &Change Passphrase + &Skift adgangskode + + + + Change the passphrase used for wallet encryption + Skift kodeord anvendt til tegnebogskryptering + + + + &File + &Fil + + + + &Settings + &Indstillinger + + + + &Help + &Hjælp + + + + Tabs toolbar + Faneværktøjslinje + + + + Actions toolbar + Handlingsværktøjslinje + + + + [testnet] + [testnet] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n aktiv(e) forbindelse(r) til Bitcoinnetværket%n aktiv(e) forbindelse(r) til Bitcoinnetværket + + + + Downloaded %1 of %2 blocks of transaction history. + Downloadet %1 af %2 blokke af transaktionshistorie. + + + + Downloaded %1 blocks of transaction history. + Downloadet %1 blokke af transaktionshistorie. + + + + %n second(s) ago + %n sekund(er) siden%n sekund(er) siden + + + + %n minute(s) ago + %n minut(ter) siden%n minut(ter) siden + + + + %n hour(s) ago + %n time(r) siden%n time(r) siden + + + + %n day(s) ago + %n dag(e) siden%n dag(e) siden + + + + Up to date + Opdateret + + + + Catching up... + Indhenter... + + + + Last received block was generated %1. + Sidst modtagne blok blev genereret %1. + + + + 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? + Denne transaktion er over størrelsesbegrænsningen. Du kan stadig sende den for et gebyr pÃ¥ %1 som gÃ¥r til de noder der behandler din transaktion, og som hjælper med at støtte netværket. Ønsker du at betale gebyret? + + + + Sending... + Sender... + + + + Sent transaction + Afsendt transaktion + + + + Incoming transaction + IndgÃ¥ende transaktion + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Dato: %1 +Beløb: %2 +Type: %3 +Adresse: %4 + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + Tegnebog er <b>krypteret</b> og i øjeblikket <b>ulÃ¥st</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + Tegnebog er <b>krypteret</b> og i øjeblikket <b>lÃ¥st</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Enhed at vise beløb i: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Vælg den standard underopdelingsenhed som skal vises i brugergrænsefladen, og nÃ¥r du sender coins + + + + Display addresses in transaction list + Vis adresser i transaktionensliste + + + + EditAddressDialog + + + Edit Address + Rediger Adresse + + + + &Label + &Etiket + + + + The label associated with this address book entry + Etiketten forbundet med denne post i adressekartoteket + + + + &Address + &Adresse + + + + The address associated with this address book entry. This can only be modified for sending addresses. + Adressen tilknyttet til denne post i adressekartoteket. Dette kan kun ændres for afsendelsesadresser. + + + + New receiving address + Ny modtagelsesadresse + + + + New sending address + Ny afsendelsesadresse + + + + Edit receiving address + Rediger modtagelsesadresse + + + + Edit sending address + Rediger afsendelsesadresse + + + + The entered address "%1" is already in the address book. + Den indtastede adresse "%1" er allerede i adressebogen. + + + + The entered address "%1" is not a valid bitcoin address. + Den indtastede adresse "%1" er ikke en gyldig bitcoinadresse. + + + + Could not unlock wallet. + Kunne ikke lÃ¥se tegnebog op. + + + + New key generation failed. + Ny nøglegenerering mislykkedes. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Start Bitcoin nÃ¥r systemet startes + + + + Automatically start Bitcoin after the computer is turned on + Start Bitcoin automatisk efter at computeren er tændt + + + + &Minimize to the tray instead of the taskbar + &Minimer til systembakken i stedet for proceslinjen + + + + Show only a tray icon after minimizing the window + Vis kun et systembakkeikon efter minimering af vinduet + + + + Map port using &UPnP + Konfigurer port vha. &UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Åbn Bitcoinklient-porten pÃ¥ routeren automatisk. Dette virker kun nÃ¥r din router understøtter UPnP og UPnP er aktiveret. + + + + M&inimize on close + M&inimer ved lukning + + + + 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. + Minimer i stedet for at afslutte programmet nÃ¥r vinduet lukkes. NÃ¥r denne indstilling er valgt vil programmet kun blive lukket nÃ¥r du har valgt Afslut i menuen. + + + + &Connect through SOCKS4 proxy: + &Forbind gennem SOCKS4 proxy: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Opret forbindelse til Bitconnetværket via en SOCKS4 proxy (f.eks. ved tilslutning gennem Tor) + + + + Proxy &IP: + Proxy-&IP: + + + + IP address of the proxy (e.g. 127.0.0.1) + IP-adressen pÃ¥ proxyen (f.eks. 127.0.0.1) + + + + &Port: + &Port: + + + + Port of the proxy (e.g. 1234) + Porten pÃ¥ proxyen (f.eks. 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Valgfri transaktionsgebyr pr. kB, der hjælper dine transaktioner med at blive behandlet hurtigt. De fleste transaktioner er pÃ¥ 1kB. Gebyr pÃ¥ 0.01 anbefales. + + + + Pay transaction &fee + Betal transaktions&gebyr + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Valgfri transaktionsgebyr pr. kB, der hjælper dine transaktioner med at blive behandlet hurtigt. De fleste transaktioner er pÃ¥ 1kB. Gebyr pÃ¥ 0.01 anbefales. + + + + OptionsDialog + + + Main + Generelt + + + + Display + Visning + + + + Options + Indstillinger + + + + OverviewPage + + + Form + Formular + + + + Balance: + Saldo: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Antal transaktioner: + + + + 0 + 0 + + + + Unconfirmed: + Ubekræftede: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Nyeste transaktioner</b> + + + + Your current balance + Din nuværende saldo + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Summen af ​​transaktioner, der endnu ikke er bekræftet, og endnu ikke er inkluderet i den nuværende saldo + + + + Total number of transactions in wallet + Samlede antal transaktioner i tegnebogen + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Send Coins + + + + Send to multiple recipients at once + Send til flere modtagere pÃ¥ én gang + + + + &Add recipient... + &Tilføj modtager... + + + + Clear all + Ryd alle + + + + Balance: + Saldo: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Bekræft afsendelsen + + + + &Send + &Afsend + + + + <b>%1</b> to %2 (%3) + <b>%1</b> til %2 (%3) + + + + Confirm send coins + Bekræft afsendelse af coins + + + + Are you sure you want to send %1? + Er du sikker pÃ¥ at du vil sende %1? + + + + and + og + + + + The recepient address is not valid, please recheck. + Modtagerens adresse er ikke gyldig. Tjek venligst adressen igen. + + + + The amount to pay must be larger than 0. + Beløbet til betaling skal være større end 0. + + + + Amount exceeds your balance + Beløbet overstiger din saldo + + + + Total exceeds your balance when the %1 transaction fee is included + Totalen overstiger din saldo nÃ¥r %1 transaktionsgebyr er inkluderet + + + + Duplicate address found, can only send to each address once in one send operation + Duplikeret adresse fundet. Du kan kun sende til hver adresse en gang pr. afsendelse. + + + + Error: Transaction creation failed + Fejl: Oprettelse af transaktionen mislykkedes + + + + 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. + Fejl: Transaktionen blev afvist. Dette kan ske hvis nogle af dine coins i din tegnebog allerede var brugt, som hvis du brugte en kopi af wallet.dat og dine coins er blevet brugt i kopien, men ikke er markeret som brugt her. + + + + SendCoinsEntry + + + Form + Formular + + + + A&mount: + B&eløb: + + + + Pay &To: + Betal &Til: + + + + + Enter a label for this address to add it to your address book + Indtast en etiket for denne adresse for at føje den til din adressebog + + + + &Label: + &Etiket: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Adresse som betalingen skal sendes til (f.eks. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + Vælg adresse fra adressebog + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Indsæt adresse fra udklipsholderen + + + + Alt+P + Alt+P + + + + Remove this recipient + Fjern denne modtager + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Indtast en Bitcoinadresse (f.eks. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + Åben for %1 blokke + + + + Open until %1 + Åben indtil %1 + + + + %1/offline? + %1/offline? + + + + %1/unconfirmed + %1/ubekræftet + + + + %1 confirmations + %1 bekræftelser + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + , er ikke blevet transmitteret endnu + + + + , broadcast through %1 node + , transmitteret via %1 node + + + + , broadcast through %1 nodes + , transmitteret via %1 noder + + + + <b>Date:</b> + <b>Dato:</b> + + + + <b>Source:</b> Generated<br> + <b>Kilde:</b> Genereret<br> + + + + + <b>From:</b> + <b>Fra:</b> + + + + unknown + ukendt + + + + + + <b>To:</b> + <b>Til:</b> + + + + (yours, label: + (din, etiket: + + + + (yours) + (din) + + + + + + + <b>Credit:</b> + <b>Kredit:</b> + + + + (%1 matures in %2 more blocks) + (%1 modnes i %2 blokke mere) + + + + (not accepted) + (ikke accepteret) + + + + + + <b>Debit:</b> + <b>Debet:</b> + + + + <b>Transaction fee:</b> + <b>Transaktionsgebyr:</b> + + + + <b>Net amount:</b> + <b>Nettobeløb:</b> + + + + Message: + Besked: + + + + Comment: + Kommentar: + + + + 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. + Genererede coins skal vente 120 blokke, før de kan blive brugt. Da du genererede denne blok blev det transmitteret til netværket, for at blive føjet til blokkæden. Hvis det mislykkes at komme ind i kæden, vil den skifte til "ikke godkendt", og ikke blive kunne bruges. Dette kan lejlighedsvis ske, hvis en anden node genererer en blok inden for fÃ¥ sekunder af din. + + + + TransactionDescDialog + + + Transaction details + Transaktionsdetaljer + + + + This pane shows a detailed description of the transaction + Denne rude viser en detaljeret beskrivelse af transaktionen + + + + TransactionTableModel + + + Date + Dato + + + + Type + Type + + + + Address + Adresse + + + + Amount + Beløb + + + + Open for %n block(s) + Åben for %n blok(ke)Åben for %n blok(ke) + + + + Open until %1 + Åben indtil %1 + + + + Offline (%1 confirmations) + Offline (%1 bekræftelser) + + + + Unconfirmed (%1 of %2 confirmations) + Ubekræftet (%1 af %2 bekræftelser) + + + + Confirmed (%1 confirmations) + Bekræftet (%1 bekræftelser) + + + + Mined balance will be available in %n more blocks + Minerede balance vil være tilgængelig om %n blok(ke)Minerede balance vil være tilgængelig om %n blok(ke) + + + + This block was not received by any other nodes and will probably not be accepted! + Denne blok blev ikke modtaget af nogen andre noder, og vil formentlig ikke blive accepteret! + + + + Generated but not accepted + Genereret, men ikke accepteret + + + + Received with + Modtaget med + + + + Received from IP + Modtaget fra IP + + + + Sent to + Sendt til + + + + Sent to IP + Sendt til IP + + + + Payment to yourself + Betaling til dig selv + + + + Mined + Minerede + + + + (n/a) + (n/a) + + + + Transaction status. Hover over this field to show number of confirmations. + Transactionsstatus. Hold musen over dette felt for at vise antallet af bekræftelser. + + + + Date and time that the transaction was received. + Dato og tid for at transaktionen blev modtaget. + + + + Type of transaction. + Type af transaktion. + + + + Destination address of transaction. + Destinationsadresse for transaktion. + + + + Amount removed from or added to balance. + Beløb fjernet eller tilføjet balance. + + + + TransactionView + + + + All + Alle + + + + Today + I dag + + + + This week + Denne uge + + + + This month + Denne mÃ¥ned + + + + Last month + Sidste mÃ¥ned + + + + This year + Dette Ã¥r + + + + Range... + Interval... + + + + Received with + Modtaget med + + + + Sent to + Sendt til + + + + To yourself + Til dig selv + + + + Mined + Minerede + + + + Other + Andet + + + + Enter address or label to search + Indtast adresse eller etiket for at søge + + + + Min amount + Min. beløb + + + + Copy address + Kopier adresse + + + + Copy label + Kopier etiket + + + + Edit label + Rediger etiket + + + + Show details... + Vis detaljer... + + + + Export Transaction Data + Eksportér Transaktionsdata + + + + Comma separated file (*.csv) + Kommasepareret fil (*.csv) + + + + Confirmed + Bekræftet + + + + Date + Dato + + + + Type + Type + + + + Label + Etiket + + + + Address + Adresse + + + + Amount + Beløb + + + + ID + ID + + + + Error exporting + Fejl under eksport + + + + Could not write to file %1. + Kunne ikke skrive til filen %1. + + + + Range: + Interval: + + + + to + til + + + + WalletModel + + + Sending... + Sender... + + + + bitcoin-core + + + Bitcoin version + Bitcoinversion + + + + Usage: + Anvendelse: + + + + Send command to -server or bitcoind + + Send kommando til -server eller bitcoind + + + + + List commands + + Liste over kommandoer + + + + + Get help for a command + + FÃ¥ hjælp til en kommando + + + + + Options: + + Indstillinger: + + + + + Specify configuration file (default: bitcoin.conf) + + Angiv konfigurationsfil (standard: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + Angiv pid-fil (default: bitcoind.pid) + + + + + Generate coins + + Generér coins + + + + + Don't generate coins + + Generér ikke coins + + + + + Start minimized + + Start minimeret + + + + + Specify data directory + + Angiv databibliotek + + + + + Specify connection timeout (in milliseconds) + + Angiv tilslutningstimeout (i millisekunder) + + + + + Connect through socks4 proxy + + Tilslut via SOCKS4 proxy + + + + + Allow DNS lookups for addnode and connect + + Tillad DNS-opslag for addnode og connect + + + + + Add a node to connect to + + Tilføj en node til at forbinde til + + + + + Connect only to the specified node + + Tilslut kun til den angivne node + + + + + Don't accept connections from outside + + Acceptér ikke forbindelser udefra + + + + + Don't attempt to use UPnP to map the listening port + + Forsøg ikke at bruge UPnP til at konfigurere den lyttende port + + + + Attempt to use UPnP to map the listening port + + Forsøg at bruge UPnP til at kofnigurere den lyttende port + + + + Fee per kB to add to transactions you send + + Gebyr pr. kB, som skal tilføjes til transaktioner du sender + + + + + Accept command line and JSON-RPC commands + + Accepter kommandolinje- og JSON-RPC-kommandoer + + + + + Run in the background as a daemon and accept commands + + Kør i baggrunden som en service, og acceptér kommandoer + + + + + Use the test network + + Brug test-netværket + + + + + Username for JSON-RPC connections + + Brugernavn til JSON-RPC-forbindelser + + + + + Password for JSON-RPC connections + + Password til JSON-RPC-forbindelser + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Lyt til JSON-RPC-forbindelser pÃ¥ <port> (standard: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + Tillad JSON-RPC-forbindelser fra bestemt IP-adresse + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Send kommandoer til node, der kører pÃ¥ <ip> (standard: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Sæt nøglepoolstørrelse til <n> (standard: 100) + + + + + Rescan the block chain for missing wallet transactions + + Gennemsøg blokkæden for manglende tegnebogstransaktioner + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + +SSL-indstillinger: (se Bitcoin Wiki for SSL opsætningsinstruktioner) + + + + Use OpenSSL (https) for JSON-RPC connections + + Brug OpenSSL (https) for JSON-RPC-forbindelser + + + + + Server certificate file (default: server.cert) + + Servercertifikat-fil (standard: server.cert) + + + + + Server private key (default: server.pem) + + Server private nøgle (standard: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Acceptabele ciphers (standard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + Denne hjælpebesked + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + Kan lÃ¥se data-biblioteket %s. Bitcoin kører sikkert allerede. + + + + Loading addresses... + Indlæser adresser... + + + + Error loading addr.dat + + Fejl ved indlæsning af addr.dat + + + + + Loading block index... + Indlæser blok-indeks... + + + + Error loading blkindex.dat + + Fejl ved indlæsning af blkindex.dat + + + + + Loading wallet... + Indlæser tegnebog... + + + + Error loading wallet.dat: Wallet corrupted + + Fejl ved indlæsning af wallet.dat: Tegnebog ødelagt + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Fejl ved indlæsning af wallet.dat: Tegnebog kræver en nyere version af Bitcoin + + + + + Error loading wallet.dat + + Fejl ved indlæsning af wallet.dat + + + + + Rescanning... + Genindlæser... + + + + Done loading + Indlæsning gennemført + + + + Invalid -proxy address + Ugyldig -proxy adresse + + + + Invalid amount for -paytxfee=<amount> + Ugyldigt beløb for -paytxfee=<amount> + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Advarsel:-paytxfee er sat meget højt. Dette er det gebyr du vil betale, hvis du sender en transaktion. + + + + Error: CreateThread(StartNode) failed + Fejl: CreateThread(StartNode) mislykkedes + + + + Warning: Disk space is low + Advarsel: Diskplads er lav + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + Kunne ikke binde sig til port %d pÃ¥ denne computer. Bitcoin kører sikkert allerede. + + + + 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? + Denne transaktion er over størrelsesbegrænsningen. Du kan stadig sende den for et gebyr pÃ¥ %s som gÃ¥r til de noder der behandler din transaktion, og som hjælper med at støtte netværket. Ønsker du at betale gebyret? + + + + Enter the current passphrase to the wallet. + Indtast den nuværende adgangskode til tegnebogen. + + + + Passphrase + Adgangskode + + + + Please supply the current wallet decryption passphrase. + Angiv venligst det nuværende kodeord til dekryptering af tegnebog. + + + + The passphrase entered for the wallet decryption was incorrect. + Det angivne kodeord for tegnebogsdekrypteringen er forkert. + + + + Status + Status + + + + Date + Dato + + + + Description + Beskrivelse + + + + Debit + Debet + + + + Credit + Kredit + + + + Open for %d blocks + Åben for %d blokke + + + + Open until %s + Åben indtil %s + + + + %d/offline? + %d/offline? + + + + %d/unconfirmed + %d/ubekræftet + + + + %d confirmations + %d bekræftelser + + + + Generated + Genereret + + + + Generated (%s matures in %d more blocks) + Genereret (%s modnes om %d blokke) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Genereret - Advarsel: Denne blok blev ikke modtaget af nogen andre noder, og vil formentlig ikke blive accepteret! + + + + Generated (not accepted) + Genereret (ikke accepteret) + + + + From: + Fra: + + + + Received with: + Modtaget med: + + + + Payment to yourself + Betaling til dig selv + + + + To: + Til: + + + + Generating + Generering + + + + (not connected) + (ikke tilsluttet) + + + + %d connections %d blocks %d transactions + %d forbindelser %d blokke %d transaktioner + + + + Wallet already encrypted. + Tegnebog er allerede krypteret. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Indtast den nye adgangskode til tegnebogen. +Brug venligst en adgangskode pÃ¥ 10 eller flere tilfældige tegn, eller otte eller flere ord. + + + + Error: The supplied passphrase was too short. + Fejl: Den angivne kodeord var for kort. + + + + 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? + ADVARSEL: Hvis du krypterer din tegnebog og mister dit kodeord, vil du miste alle dine BITCOINS! +Er du sikker pÃ¥ at du ønsker at kryptere din tegnebog? + + + + Please re-enter your new wallet passphrase. + Angiv venligst dit nye tegneborgskodeord igen. + + + + Error: the supplied passphrases didn't match. + Fejl: de angive kodeord stemte ikke overens. + + + + Wallet encryption failed. + Tegnebogskryptering mislykkedes. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Tegnebog Krypteret. +Husk at kryptere din tegnebog ikke fuldt ud kan beskytte din bitcoins mod at blive stjÃ¥let af malware inficerer din computer. + + + + Wallet is unencrypted, please encrypt it first. + Tegnebogen er ikke krypteret. Kryptér den venligst først. + + + + Enter the new passphrase for the wallet. + Indtast den nye adgangskode til tegnebogen. + + + + Re-enter the new passphrase for the wallet. + Genindtast den nye adgangskode til tegnebogen. + + + + Wallet Passphrase Changed. + Adgangskode til tegnebog ændret. + + + + New Receiving Address + Ny modtageradresse + + + + You should use a new address for each payment you receive. + +Label + Du bør bruge en ny adresse for hver betaling du modtager. + +Mærkat + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + , er ikke blevet transmitteret endnu + + + + , broadcast through %d node + , spredt gennem %d knudepunkt + + + + , broadcast through %d nodes + , spredt gennem %d knudepunkter + + + + <b>Date:</b> + <b>Dato:</b> + + + + <b>Source:</b> Generated<br> + <b>Kilde:</b> Genereret<br> + + + + <b>From:</b> + <b>Fra:</b> + + + + unknown + ukendt + + + + <b>To:</b> + <b>Til:</b> + + + + (yours, label: + (din, etiket: + + + + (yours) + (din) + + + + <b>Credit:</b> + <b>Kredit:</b> + + + + (%s matures in %d more blocks) + (%s bliver moden om %d blokke) + + + + (not accepted) + (ikke accepteret) + + + + <b>Debit:</b> + <b>Debet:</b> + + + + <b>Transaction fee:</b> + <b>Transaktionsgebyr:</b> + + + + <b>Net amount:</b> + <b>Nettobeløb:</b> + + + + Message: + Besked: + + + + Comment: + Kommentar: + + + + 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. + Genererede coins skal vente 120 blokke, før de kan blive brugt. Da du genererede denne blok blev det transmitteret til netværket, for at blive føjet til blokkæden. Hvis det mislykkes at komme ind i kæden, vil den skifte til "ikke godkendt", og ikke blive kunne bruges. Dette kan lejlighedsvis ske, hvis en anden node genererer en blok inden for fÃ¥ sekunder af din. + + + + Cannot write autostart/bitcoin.desktop file + Skrivning til filen autostart/bitcoin.desktop ikke mulig + + + + Main + Generelt + + + + &Start Bitcoin on window system startup + &Start Bitcoin nÃ¥r systemet startes + + + + &Minimize on close + &Minimér ved lukning + + + + version %s + version %s + + + + Error in amount + Fejl i beløb + + + + Send Coins + Send Coins + + + + Amount exceeds your balance + Beløb overstiger saldo + + + + Total exceeds your balance when the + Det samlede beløb overstiger saldoen nÃ¥r + + + + transaction fee is included + transaktionsgebyret er inkluderet + + + + Payment sent + Betaling afsendt + + + + Sending... + Sender... + + + + Invalid address + Ugyldig adresse + + + + Sending %s to %s + Sender %s til %s + + + + CANCELLED + ANNULLERET + + + + Cancelled + Annulleret + + + + Transfer cancelled + Overførsel annulleret + + + + Error: + Fejl: + + + + Insufficient funds + Du har ikke penge nok + + + + Connecting... + Forbinder... + + + + Unable to connect + Forbindelse mislykkedes + + + + Requesting public key... + Efterspørger offentlig nøgle... + + + + Received public key... + Modtog offentlig nøgle... + + + + Recipient is not accepting transactions sent by IP address + Modtageren accepterer ikke transaktioner sendt til en IP-adresse + + + + Transfer was not accepted + Overførsel ikke accepteret + + + + Invalid response received + Ugyldigt svar modtaget + + + + Creating transaction... + Opretter transaktion... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + Denne transaktion kræver at du betaler et transaktionsgebyr pÃ¥ mindst %s pga. af transaktionens størrelse, dens kompleksitet eller fordi den gør brug af nyligt modtagne penge + + + + Transaction creation failed + Opretning af transaktion mislykkedes + + + + Transaction aborted + Transaktion afbrudt + + + + Lost connection, transaction cancelled + Forbindelse afbrudt, transaktion annulleret + + + + Sending payment... + Sender betaling... + + + + 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. + Transaktionen blev afvist. Dette kan ske hvis nogle af pengene i din tegnebog allerede er brugt, for eksempel hvis du har brugt en kopi af din wallet.dat-fil og pengene er brugt i kopien af din tegnebog, men ikke blev markeret som brugte deri. + + + + Waiting for confirmation... + Afventer bekræftelse... + + + + 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. + Betalingen blev afsendt, men modtageren var ikke i stand til at bekræfte den. +Transaktionen er oprettet og vil kreditere modtageren, +men kommentarfeltet vil være tomt. + + + + Payment was sent, but an invalid response was received + Betalingen blev afsendt, men et ugyldigt svar blev modtaget + + + + Payment completed + Betaling fuldført + + + + Name + Navn + + + + Address + Adresse + + + + Label + Etiket + + + + Bitcoin Address + Bitcoinadresse + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + Dette er en af dine egne adresser til at modtage betalinger med, og kan ikke indtastes i adressebogen. + + + + Edit Address + Rediger Adresse + + + + Edit Address Label + Redigér adressemærkat + + + + Add Address + Tilføj adresse + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Bitcoin - Genererer + + + + Bitcoin - (not connected) + Bitcoin - (ikke tilsluttet) + + + + &Open Bitcoin + Å&bn Bitcoin + + + + &Send Bitcoins + &Send Bitcoins + + + + O&ptions... + &Indstillinger... + + + + E&xit + &Luk + + + + Program has crashed and will terminate. + Programmet er gÃ¥et ned og vil afslutte. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Advarsel: Undersøg venligst at din computers dato og klokkeslet er korrekt indstillet. Hvis der er fejl i disse vil Bitcoin ikke fungere korrekt. + + + + beta + beta + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + \ No newline at end of file diff --git a/src/qt/locale/bitcoin_de.ts b/src/qt/locale/bitcoin_de.ts new file mode 100644 index 0000000..c815b77 --- /dev/null +++ b/src/qt/locale/bitcoin_de.ts @@ -0,0 +1,2314 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + Über Bitcoin + + + + <b>Bitcoin</b> version + <b>Bitcoin</b> Version + + + + 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. + Copyright © 2009-2011 Bitcoin Entwickler + +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. + + + + AddressBookPage + + + Address Book + Adressbuch + + + + 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. + Dies sind ihre Bitcoin-Adressen zum Empfangen von Zahlungen. Um Ihre Zahlungen zurückverfolgen zu können, schlagen wir vor, jedem Sender eine andere Empfangsaddresse mitzuteilen. + + + + Double-click to edit address or label + Doppelklick zum Ändern der Adresse oder der Bezeichnung + + + + Create a new address + Neue Adresse erstellen + + + + &New Address... + &Neue Adresse... + + + + Copy the currently selected address to the system clipboard + Ausgewählte Adresse in die Zwischenablage kopieren + + + + &Copy to Clipboard + &In die Zwischenablage kopieren + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Die ausgewählte Adresse aus der Liste entfernen. Sie können nur ausgehende Adressen entfernen. + + + + &Delete + &Löschen + + + + Export Address Book Data + Adressbuch exportieren + + + + Comma separated file (*.csv) + Kommagetrennte Datei (*.csv) + + + + Error exporting + Fehler beim Exportieren + + + + Could not write to file %1. + Konnte Datei %1 nicht zum Schreiben öffnen. + + + + AddressTableModel + + + Label + Bezeichnung + + + + Address + Adresse + + + + (no label) + (keine Bezeichnung) + + + + AskPassphraseDialog + + + Dialog + Dialog + + + + TextLabel + Text Bezeichnung + + + + Enter passphrase + Passphrase eingeben + + + + New passphrase + Neue Passphrase + + + + Repeat new passphrase + Neue Passphrase wiederholen + + + + 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>. + Geben Sie die neue Passphrase für die Brieftasche ein.<br/>Bitte benutzen Sie eine Passphrase von <b>zehn oder mehr zufälligen Zeichen</b> oder <b>acht oder mehr Wörter</b>. + + + + Encrypt wallet + Brieftasche verschlüsseln + + + + This operation needs your wallet passphrase to unlock the wallet. + Dieser Vorgang benötigt Ihre Passphrase um die Brieftasche zu entsperren. + + + + Unlock wallet + Brieftasche entsperren + + + + This operation needs your wallet passphrase to decrypt the wallet. + Dieser Vorgang benötigt Ihre Passphrase um die Brieftasche zu entschlüsseln. + + + + Decrypt wallet + Brieftasche entschlüsseln + + + + Change passphrase + Passphrase ändern + + + + Enter the old and new passphrase to the wallet. + Geben Sie die alte und die neue Passphrase der Brieftasche ein. + + + + Confirm wallet encryption + Bestätige die Verschlüsselung der Brieftasche + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + WARNUNG: Wenn Sie Ihre Brieftasche verschlüsseln und Ihre Passphrase verlieren, werden Sie <b>ALLE IHRE BITCOINS VERLIEREN</b>! +Sind Sie sich sicher, dass Sie Ihre Brieftasche verschlüsseln möchten? + + + + + Wallet encrypted + Brieftasche verschlüsselt + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Beachten Sie, dass das Verschlüsseln Ihrer Brieftasche nicht komplett vor Diebstahl Ihrer Bitcoins durch Malware schützt, die Ihren Computer infiziert hat. + + + + + + + Wallet encryption failed + Verschlüsselung der Brieftasche fehlgeschlagen + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + Die Verschlüsselung der Brieftasche ist wegen eines internen Fehlers fehlgeschlagen. Ihre Brieftasche wurde nicht verschlüsselt. + + + + + The supplied passphrases do not match. + Die eingegebenen Passphrasen stimmen nicht überein. + + + + Wallet unlock failed + Entsperrung der Brieftasche fehlgeschlagen + + + + + + The passphrase entered for the wallet decryption was incorrect. + Die eingegebene Passphrase zum Entschlüsseln der Brieftasche war nicht korrekt. + + + + Wallet decryption failed + Entschlüsselung der Brieftasche fehlgeschlagen + + + + Wallet passphrase was succesfully changed. + Die Passphrase der Brieftasche wurde erfolgreich geändert. + + + + BitcoinGUI + + + Bitcoin Wallet + Bitcoin-Brieftasche + + + + Synchronizing with network... + Synchronisiere mit Netzwerk... + + + + Block chain synchronization in progress + Synchronisiere mit der Blockkette + + + + &Overview + &Übersicht + + + + Show general overview of wallet + Zeige allgemeine Übersicht der Brieftasche + + + + &Transactions + &Transaktionen + + + + Browse transaction history + Transaktionsverlauf durchsehen + + + + &Address Book + &Adressbuch + + + + Edit the list of stored addresses and labels + Gespeicherte Adressen und Bezeichnungen bearbeiten + + + + &Receive coins + &Bitcoins empfangen + + + + Show the list of addresses for receiving payments + Liste der Adressen zum Empfangen von Zahlungen anzeigen + + + + &Send coins + &Bitcoins überweisen + + + + Send coins to a bitcoin address + Bitcoins an eine Bitcoin-Adresse überweisen + + + + E&xit + + + + + Quit application + Anwendung beenden + + + + &About %1 + &Über %1 + + + + Show information about Bitcoin + Informationen über Bitcoin anzeigen + + + + &Options... + &Einstellungen... + + + + Modify configuration options for bitcoin + Einstellungen für Bitcoin ändern + + + + Open &Bitcoin + &Bitcoin öffnen + + + + Show the Bitcoin window + Bitcoin-Fenster anzeigen + + + + &Export... + &Exportieren... + + + + Export the current view to a file + Aktuelle Ansicht in eine Datei exportieren + + + + &Encrypt Wallet + Brieftasche &verschlüsseln + + + + Encrypt or decrypt wallet + Brieftasche ent- oder verschlüsseln + + + + &Change Passphrase + Passphrase &ändern + + + + Change the passphrase used for wallet encryption + Ändert die Passphrase, die für die Verschlüsselung der Brieftasche benutzt wird + + + + &File + &Datei + + + + &Settings + &Einstellungen + + + + &Help + &Hilfe + + + + Tabs toolbar + Registerkarten-Leiste + + + + Actions toolbar + Aktionen-Werkzeugleiste + + + + [testnet] + [testnet] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n aktive Verbindung zum Bitcoin-Netzwerk%n aktive Verbindungen zum Bitcoin-Netzwerk + + + + Downloaded %1 of %2 blocks of transaction history. + %1 von %2 Blöcken des Transaktionsverlauf heruntergeladen. + + + + Downloaded %1 blocks of transaction history. + %1 Blöcke des Transaktionsverlaufs heruntergeladen. + + + + %n second(s) ago + vor %n Sekundevor %n Sekunden + + + + %n minute(s) ago + vor %n Minutevor %n Minuten + + + + %n hour(s) ago + vor %n Stundevor %n Stunden + + + + %n day(s) ago + vor %n Tagvor %n Tagen + + + + Up to date + Auf aktuellem Stand + + + + Catching up... + Hole auf... + + + + Last received block was generated %1. + Der letzte empfangene Block wurde am %1 generiert. + + + + 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? + Die Transaktion übersteigt das Größenlimit. Sie können sie jedoch senden, wenn Sie einen zusätzlichen Betrag von %1 zahlen. Dieser geht an die Knoten, die Ihre Transaktion bearbeiten und unterstützt das Bitcoin-Netzwerk. Möchten Sie die Gebühr bezahlen? + + + + Sending... + Senden... + + + + Sent transaction + Gesendete Transaktion + + + + Incoming transaction + Empfangene Transaktion + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Datum: %1 +Betrag: %2 +Typ: %3 +Adresse: %4 + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + Brieftasche ist <b>verschlüsselt</b> und momentan <b>entsperrt</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + Brieftasche ist <b>verschlüsselt</b> und momentan <b>gesperrt</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Einheit der Beträge: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Wählen Sie die Standard-Unterteilungseinheit, die in der Benutzeroberfläche und beim Senden von Bitcoins angezeigt werden soll + + + + Display addresses in transaction list + Adressen in der Transaktionsliste anzeigen + + + + EditAddressDialog + + + Edit Address + Adresse bearbeiten + + + + &Label + &Bezeichnung + + + + The label associated with this address book entry + Die Bezeichnung dieses Adressbuchseintrags + + + + &Address + &Adresse + + + + The address associated with this address book entry. This can only be modified for sending addresses. + Die Adresse des Adressbucheintrags. Diese kann nur für Zahlungsadressen bearbeitet werden. + + + + New receiving address + Neue Empfangsadresse + + + + New sending address + Neue Zahlungsadresse + + + + Edit receiving address + Empfangsadresse bearbeiten + + + + Edit sending address + Zahlungsadresse bearbeiten + + + + The entered address "%1" is already in the address book. + Die eingegebene Adresse "%1" befindet sich bereits im Adressbuch. + + + + The entered address "%1" is not a valid bitcoin address. + Die eingegebene Adresse "%1" ist keine gültige Bitcoin-Adresse. + + + + Could not unlock wallet. + Die Brieftasche konnte nicht entsperrt werden. + + + + New key generation failed. + Neue Schlüsselgenerierung fehlgeschlagen. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Bitcoin beim Systemstart ausführen + + + + Automatically start Bitcoin after the computer is turned on + Bitcoin automatisch starten, wenn der Computer eingeschaltet wird + + + + &Minimize to the tray instead of the taskbar + &In den Infobereich statt in die Taskleiste minimieren + + + + Show only a tray icon after minimizing the window + Nur ein Symbol im Infobereich anzeigen, wenn das Fenster minimiert wird + + + + Map port using &UPnP + Portweiterleitung via &UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Automatisch den Bitcoin Client-Port auf dem Router öffnen. Dies funktioniert nur, wenn Ihr Router UPnP unterstützt und dies aktiviert ist. + + + + M&inimize on close + Beim Schließen m&inimieren + + + + 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. + Minimiert die Anwendung anstatt sie zu Beenden, wenn das Fenster geschlossen wird. Wenn dies aktiviert ist, müssen Sie das Programm über "Beenden" im Menü schließen. + + + + &Connect through SOCKS4 proxy: + &Über einen SOCKS4-Proxy verbinden: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Über einen SOCKS4-Proxy zum Bitcoin-Netzwerk verbinden (bspw. für eine Verbindung über Tor) + + + + Proxy &IP: + Proxy-&IP: + + + + IP address of the proxy (e.g. 127.0.0.1) + IP-Adresse des Proxy-Servers (z.B. 127.0.0.1) + + + + &Port: + &Port: + + + + Port of the proxy (e.g. 1234) + Port des Proxy-Servers (z.B. 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Zusätzliche Transaktionsgebühr pro kB, welche sicherstellt, dass Ihre Transaktionen schnell bearbeitet werden. Die meisten Transaktionen sind 1 kB groß. Eine Gebühr von 0.01 wird empfohlen. + + + + Pay transaction &fee + Transaktions&gebühr bezahlen + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Zusätzliche Transaktionsgebühr pro kB, welche sicherstellt, dass Ihre Transaktionen schnell bearbeitet werden. Die meisten Transaktionen sind 1 kB groß. Eine Gebühr von 0.01 wird empfohlen. + + + + OptionsDialog + + + Main + Haupt + + + + Display + Anzeige + + + + Options + Einstellungen + + + + OverviewPage + + + Form + Formular + + + + Balance: + Kontostand: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Anzahl der Transaktionen: + + + + 0 + 0 + + + + Unconfirmed: + Unbestätigt: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Brieftasche</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Letzte Transaktionen</b> + + + + Your current balance + Ihr aktueller Kontostand + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Anzahl der Transaktionen, die noch bestätigt werden müssen und noch nicht zum aktuellen Kontostand zählen + + + + Total number of transactions in wallet + Anzahl aller Transaktionen in der Brieftasche + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Bitcoins überweisen + + + + Send to multiple recipients at once + An mehrere Empfänger auf einmal überweisen + + + + &Add recipient... + &Empfänger hinzufügen... + + + + Clear all + Zurücksetzen + + + + Balance: + Kontostand: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Überweisung bestätigen + + + + &Send + &Überweisen + + + + <b>%1</b> to %2 (%3) + <b>%1</b> an %2 (%3) + + + + Confirm send coins + Überweisung bestätigen + + + + Are you sure you want to send %1? + Sind Sie sich sicher, dass Sie folgendes überweisen möchten: %1? + + + + and + und + + + + The recepient address is not valid, please recheck. + Die Empfangsadresse ist ungültig, bitte nochmals überprüfen. + + + + The amount to pay must be larger than 0. + Der zu zahlende Betrag muss mehr als 0 betragen. + + + + Amount exceeds your balance + Der Betrag übersteigt Ihren Kontostand + + + + Total exceeds your balance when the %1 transaction fee is included + Summe übersteigt aufgrund der Transaktionsgebühr in Höhe von %1 Ihren Kontostand + + + + Duplicate address found, can only send to each address once in one send operation + Doppelte Adresse gefunden. Pro Vorgang kann an eine Adresse nur einmalig etwas überwiesen werden + + + + Error: Transaction creation failed + Fehler: Transaktionserstellung fehlgeschlagen + + + + 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. + Fehler: Die Transaktion wurde abgelehnt. Dies kann passieren, wenn einige Ihrer Bitcoins aus Ihrer Brieftasche bereits ausgegeben wurden (z.B. aus einer Sicherungskopie Ihrer wallet.dat). + + + + SendCoinsEntry + + + Form + Formular + + + + A&mount: + &Betrag: + + + + Pay &To: + &Empfänger: + + + + + Enter a label for this address to add it to your address book + Geben Sie hier eine Bezeichnung der Adresse ein, um sie zum Adressbuch hinzuzufügen + + + + &Label: + &Bezeichnung: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Die Empfangsadresse für die Überweisung (z.B. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + Adresse aus dem Adressbuch auswählen + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Adresse aus der Zwischenablage einfügen + + + + Alt+P + Alt+P + + + + Remove this recipient + Diesen Empfänger entfernen + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Bitcoin-Adresse eingeben (z.B. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + Offen für %1 Blöcke + + + + Open until %1 + Offen bis %1 + + + + %1/offline? + %1/offline? + + + + %1/unconfirmed + %1/unbestätigt + + + + %1 confirmations + %1 Bestätigungen + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + ; wurde noch nicht erfolgreich gesendet + + + + , broadcast through %1 node + ; über %1 Knoten gesendet + + + + , broadcast through %1 nodes + ; über %1 Knoten gesendet + + + + <b>Date:</b> + <b>Datum:</b> + + + + <b>Source:</b> Generated<br> + <b>Quelle:</b> Generiert<br> + + + + + <b>From:</b> + <b>Von:</b> + + + + unknown + unbekannt + + + + + + <b>To:</b> + <b>An:</b> + + + + (yours, label: + (Ihre, Bezeichnung: + + + + (yours) + (Ihre) + + + + + + + <b>Credit:</b> + <b>Gutschrift:</b> + + + + (%1 matures in %2 more blocks) + (%1 reift in weiteren %2 Blöcken) + + + + (not accepted) + (nicht angenommen) + + + + + + <b>Debit:</b> + <b>Belastung:</b> + + + + <b>Transaction fee:</b> + <b>Transaktionsgebühr:</b> + + + + <b>Net amount:</b> + <b>Nettobetrag:</b> + + + + Message: + Nachricht: + + + + Comment: + Kommentar: + + + + 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. + Generierte Bitcoins müssen 120 Blöcke lang warten, bevor sie ausgegeben werden können. Als Sie diesen Block generierten, wurde er an das Netzwerk gesendet, um ihn der Blockkette hinzuzufügen. Falls dies fehlschlägt wird der Status in "nicht angenommen" geändert und der Betrag wird nicht verfügbar werden. Das kann gelegentlich passieren, wenn ein anderer Knoten einen Block zur selben Zeit wie Sie generierte. + + + + TransactionDescDialog + + + Transaction details + Transaktionsdetails + + + + This pane shows a detailed description of the transaction + Dieser Bereich zeigt eine detaillierte Beschreibung der Transaktion an + + + + TransactionTableModel + + + Date + Datum + + + + Type + Typ + + + + Address + Adresse + + + + Amount + Betrag + + + + Open for %n block(s) + Offen für %n BlockOffen für %n Blöcke + + + + Open until %1 + Offen bis %1 + + + + Offline (%1 confirmations) + Nicht verbunden (%1 Bestätigungen) + + + + Unconfirmed (%1 of %2 confirmations) + Unbestätigt (%1 von %2 Bestätigungen) + + + + Confirmed (%1 confirmations) + Bestätigt (%1 Bestätigungen) + + + + Mined balance will be available in %n more blocks + Der erarbeitete Betrag wird in %n Block verfügbar seinDer erarbeitete Betrag wird in %n Blöcken verfügbar sein + + + + This block was not received by any other nodes and will probably not be accepted! + Dieser Block wurde von keinem anderen Knoten empfangen und wird wahrscheinlich nicht angenommen werden! + + + + Generated but not accepted + Generiert, jedoch nicht angenommen + + + + Received with + Empfangen durch + + + + Received from IP + Empfangen von IP + + + + Sent to + Überwiesen an + + + + Sent to IP + Überwiesen an IP + + + + Payment to yourself + Zahlung an Sie selbst + + + + Mined + Erarbeitet + + + + (n/a) + (k.A.) + + + + Transaction status. Hover over this field to show number of confirmations. + Transaktionsstatus. Fahren Sie mit der Maus über dieses Feld, um die Anzahl der Bestätigungen zu sehen. + + + + Date and time that the transaction was received. + Datum und Uhrzeit als die Transaktion empfangen wurde. + + + + Type of transaction. + Art der Transaktion. + + + + Destination address of transaction. + Empfangsadresse der Transaktion. + + + + Amount removed from or added to balance. + Betrag vom Kontostand entfernt oder hinzugefügt. + + + + TransactionView + + + + All + Alle + + + + Today + Heute + + + + This week + Diese Woche + + + + This month + Diesen Monat + + + + Last month + Letzten Monat + + + + This year + Dieses Jahr + + + + Range... + Bereich... + + + + Received with + Empfangen durch + + + + Sent to + Überwiesen an + + + + To yourself + Zu Ihnen selbst + + + + Mined + Erarbeitet + + + + Other + Andere + + + + Enter address or label to search + Zu suchende Adresse oder Bezeichnung eingeben + + + + Min amount + Kleinster Betrag + + + + Copy address + Adresse kopieren + + + + Copy label + Bezeichnung kopieren + + + + Edit label + Bezeichnung bearbeiten + + + + Show details... + Details anzeigen... + + + + Export Transaction Data + Transaktionen exportieren + + + + Comma separated file (*.csv) + Kommagetrennte Datei (*.csv) + + + + Confirmed + Bestätigt + + + + Date + Datum + + + + Type + Typ + + + + Label + Bezeichnung + + + + Address + Adresse + + + + Amount + Betrag + + + + ID + ID + + + + Error exporting + Fehler beim Exportieren + + + + Could not write to file %1. + Konnte nicht in Datei %1 schreiben. + + + + Range: + Bereich: + + + + to + bis + + + + WalletModel + + + Sending... + Überweise... + + + + bitcoin-core + + + Bitcoin version + Bitcoin Version + + + + Usage: + Verwendung: + + + + Send command to -server or bitcoind + + Sende Befehl an -server oder bitcoind + + + + + List commands + + Befehle auflisten + + + + + Get help for a command + + Hilfe für Befehl erhalten + + + + + Options: + + Einstellungen: + + + + Specify configuration file (default: bitcoin.conf) + + Bitte wählen Sie eine Konfigurationsdatei (Standard: bitcoin.conf) + + + + Specify pid file (default: bitcoind.pid) + + Bitte wählen Sie den Namen der PID Datei (Standard bitcoind.pid) + + + + Generate coins + + Erarbeite Bitcoins + + + + Don't generate coins + + Keine Bitcoins erarbeiten + + + + + Start minimized + + minimiert starten + + + + Specify data directory + + Bitte wählen Sie das Datenverzeichnis + + + + Specify connection timeout (in milliseconds) + + Netzwerkverbindungsabbruch nach (in Millisekunden) + + + + Connect through socks4 proxy + + Durch SOCKS4-Proxy verbinden + + + + Allow DNS lookups for addnode and connect + + Erlaube DNS Namensauflösung für addnode und connect + + + + Add a node to connect to + + Bitcoin Knoten hinzufügen + + + + + Connect only to the specified node + + Nur zu angegebenen Knoten verbinden + + + + + Don't accept connections from outside + + Keine externen Transatkionen akzeptieren + + + + Don't attempt to use UPnP to map the listening port + + UPnP nicht verwenden + + + + Attempt to use UPnP to map the listening port + + Versuche eine Verbindung mittels UPnP herzustellen + + + + Fee per kB to add to transactions you send + + Gebühr pro kB, die gesendeten Transaktionen hinzugefügt wird + + + + + Accept command line and JSON-RPC commands + + Erlaube Kommandozeilen und JSON-RPC Befehle + + + + + Run in the background as a daemon and accept commands + + Als Hintergrunddienst starten und Befehle akzeptieren + + + + + Use the test network + + Das Test Netzwerk verwenden + + + + + Username for JSON-RPC connections + + Benutzername für JSON-RPC Verbindungen + + + + + Password for JSON-RPC connections + + Passwort für JSON-RPC Verbindungen + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Port für JSON-RPC Befehle (Standard: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + JSON-RPC Befehle nur von dieser IP-Adresse erlauben + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Befehle an Bitcoin Knoten <ip> senden (Standard: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Menge der vorgenerierten Adressen (Standard: 100) + + + + + Rescan the block chain for missing wallet transactions + + Blockkette nach verlorenen Transaktionen durchsuchen (rescan) + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + SSL Einstellungen: (Siehe im BitCoin-Wiki für eine detallierte Beschreibung) + + + + + Use OpenSSL (https) for JSON-RPC connections + + JSON-RPC Befehle über OpenSSL (https) + + + + + Server certificate file (default: server.cert) + + SSL Server Zertifikat (Standard: server.cert) + + + + + Server private key (default: server.pem) + + Privater SSL Schlüssel (Standard: server.pem) + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Erlaubte Kryptographiealgorithmen (Standard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + This help message + + Dieser Hilfetext + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + Konnte das Datenverzeichnis %s nicht sperren. Evtl. wurde das Programm mehrfach gestartet. + + + + Loading addresses... + Lade Adressen... + + + + Error loading addr.dat + + Fehler beim Laden der addr.dat + + + + + Loading block index... + Lade Blockindex... + + + + Error loading blkindex.dat + + Fehler beim laden der blkindex.dat + + + + Loading wallet... + Lade Geldbörse... + + + + Error loading wallet.dat: Wallet corrupted + + Fehler beim Laden von wallet.dat: Brieftasche beschädigt + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Fehler beim Laden von wallet.dat: Neuere Version von Bitcoin notwendig + + + + + Error loading wallet.dat + + Fehler beim Laden von wallet.dat + + + + Rescanning... + Lade neu... + + + + Done loading + Laden abgeschlossen + + + + Invalid -proxy address + Fehlerhafte Proxy Adresse + + + + Invalid amount for -paytxfee=<amount> + Ungültige Angabe für -paytxfee=<Betrag> + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Warnung: -paytxfee ist auf einen sehr hohen Wert gesetzt. Dies ist die Gebühr die beim senden einer Transaktion fällig wird. + + + + Error: CreateThread(StartNode) failed + Fehler: CreateThread(StartNode) fehlerhaft + + + + Warning: Disk space is low + Warnung: Festplattenplatz wird knapp. + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + Fehler beim registrieren des Ports %d auf diesem Computer. Evtl. läuft BitCoin bereits + + + + 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? + + + + + Enter the current passphrase to the wallet. + Geben Sie bitte das Passwort für die Brieftasche ein. + + + + Passphrase + Passwort + + + + Please supply the current wallet decryption passphrase. + Bitte die aktuelle Passphrase zur Entschlüsselung eingeben. + + + + The passphrase entered for the wallet decryption was incorrect. + Das eingegebene Passwort für die Brieftasche war fehlerhaft + + + + Status + Status + + + + Date + Datum + + + + Description + Beschreibung + + + + Debit + Debitoren + + + + Credit + Kreditoren + + + + Open for %d blocks + Öffne für %d Blöcke + + + + Open until %s + Geöffnet bis %s + + + + %d/offline? + %d/offline? + + + + %d/unconfirmed + %d/unbestätigt + + + + %d confirmations + %d Bestätigungen + + + + Generated + Generiert + + + + Generated (%s matures in %d more blocks) + Erstellt (%s reift nach %d weiteren Blöcken) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Generiert - Warnung: Dieser Block wurde bei keinem anderen Knoten empfangen und wird wahrscheinlich nicht akzeptiert! + + + + Generated (not accepted) + Generiert (nicht akzeptiert) + + + + From: + Von: + + + + Received with: + Erhalten mit: + + + + Payment to yourself + Bezahlung an sich selbst + + + + To: + An: + + + + Generating + Erzeuge + + + + (not connected) + (nicht verbunden) + + + + %d connections %d blocks %d transactions + %d Verbindungen %d Blöcke %d Transaktionen + + + + Wallet already encrypted. + Brieftasche ist bereits verschlüsselt. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Geben Sie die neue Passphrase für die Brieftasche ein +Bitte benutzen Sie eine Passphrase von 10 oder mehr zufälligen Zeichen oder acht oder mehr Wörtern. + + + + Error: The supplied passphrase was too short. + Fehler: Das eingegebene Passwort war zu kurz. + + + + 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? + WARNUNG: Wenn Sie Ihre Brieftasche verschlüsseln und Ihre Passphrase verlieren, werden Sie <b>ALLE IHRE BITCOINS VERLIEREN</b>! Sind Sie sich sicher, dass Sie Ihre Brieftasche verschlüsseln möchten? + + + + Please re-enter your new wallet passphrase. + Bitte geben Sie Ihr neues Brieftaschenpasswort erneut ein. + + + + Error: the supplied passphrases didn't match. + Fehler: Die eingegebenen Passphrasen stimmen nicht überein. + + + + Wallet encryption failed. + Verschlüsselung der Brieftasche fehlgeschlagen. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + + + + + Wallet is unencrypted, please encrypt it first. + Brieftasche nicht verschlüsselt, bitte zuerst verschlüsseln. + + + + Enter the new passphrase for the wallet. + Gib eine neue Passphrase für die Brieftasche eine. + + + + Re-enter the new passphrase for the wallet. + Gib die neue Passphrase erneut ein. + + + + Wallet Passphrase Changed. + Passphrase geändert. + + + + New Receiving Address + Neue Empfangsadresse + + + + You should use a new address for each payment you receive. + +Label + + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + ; wurde noch nicht erfolgreich gesendet + + + + , broadcast through %d node + + + + + , broadcast through %d nodes + + + + + <b>Date:</b> + <b>Datum:</b> + + + + <b>Source:</b> Generated<br> + <b>Quelle:</b> Generiert<br> + + + + <b>From:</b> + <b>Von:</b> + + + + unknown + unbekannt + + + + <b>To:</b> + <b>An:</b> + + + + (yours, label: + (Ihre, Bezeichnung: + + + + (yours) + (Ihre) + + + + <b>Credit:</b> + <b>Gutschrift:</b> + + + + (%s matures in %d more blocks) + + + + + (not accepted) + (nicht angenommen) + + + + <b>Debit:</b> + <b>Belastung:</b> + + + + <b>Transaction fee:</b> + <b>Transaktionsgebühr:</b> + + + + <b>Net amount:</b> + <b>Nettobetrag:</b> + + + + Message: + Nachricht: + + + + Comment: + Kommentar: + + + + 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. + Generierte Bitcoins müssen 120 Blöcke lang warten, bevor sie ausgegeben werden können. Als Sie diesen Block generierten, wurde er an das Netzwerk gesendet, um ihn der Blockkette hinzuzufügen. Falls dies fehlschlägt wird der Status in "nicht angenommen" geändert und der Betrag wird nicht verfügbar werden. Das kann gelegentlich passieren, wenn ein anderer Knoten einen Block zur selben Zeit wie Sie generierte. + + + + Cannot write autostart/bitcoin.desktop file + + + + + Main + Haupt + + + + &Start Bitcoin on window system startup + &Bitcoin beim Systemstart ausführen + + + + &Minimize on close + + + + + version %s + Version %s + + + + Error in amount + + + + + Send Coins + Bitcoins überweisen + + + + Amount exceeds your balance + Betrag übersteigt Ihr Guthaben + + + + Total exceeds your balance when the + + + + + transaction fee is included + + + + + Payment sent + Zahlung gesendet + + + + Sending... + Senden... + + + + Invalid address + ungültige Adresse + + + + Sending %s to %s + Sende %s an %s + + + + CANCELLED + ABGEBROCHEN + + + + Cancelled + Abgebrochen + + + + Transfer cancelled + + + + + Error: + Fehler: + + + + Insufficient funds + Unzureichender Kontostand + + + + Connecting... + Verbinde... + + + + Unable to connect + Kann nicht verbinden + + + + Requesting public key... + + + + + Received public key... + + + + + Recipient is not accepting transactions sent by IP address + + + + + Transfer was not accepted + + + + + Invalid response received + + + + + Creating transaction... + + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + + + + + Transaction creation failed + + + + + Transaction aborted + Transaktion abgebrochen + + + + Lost connection, transaction cancelled + + + + + Sending payment... + Sende Zahlung... + + + + 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. + Fehler: Die Transaktion wurde abgelehnt. Dies kann passieren, wenn einige Ihrer Bitcoins aus Ihrer Brieftasche bereits ausgegeben wurden (z.B. aus einer Sicherungskopie Ihrer wallet.dat). + + + + Waiting for confirmation... + Warte auf Bestätigung... + + + + 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. + + + + + Payment was sent, but an invalid response was received + + + + + Payment completed + Die Zahlung wurde abgeschlossen + + + + Name + Name + + + + Address + Adresse + + + + Label + Bezeichnung + + + + Bitcoin Address + Bitcoin Adresse + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + + + + + Edit Address + Adresse bearbeiten + + + + Edit Address Label + + + + + Add Address + Adresse hinzufügen + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Bitcoin - Generiere + + + + Bitcoin - (not connected) + Bitcoin - (nicht verbunden) + + + + &Open Bitcoin + + + + + &Send Bitcoins + + + + + O&ptions... + + + + + E&xit + + + + + Program has crashed and will terminate. + + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Bitte prüfen Sie Ihre Datums- und Uhrzeiteinstellungen, ansonsten kann es sein das BitCoin nicht ordnungsgemäss funktioniert. + + + + beta + Beta + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + \ No newline at end of file diff --git a/src/qt/locale/bitcoin_en.ts b/src/qt/locale/bitcoin_en.ts new file mode 100644 index 0000000..122f6d5 --- /dev/null +++ b/src/qt/locale/bitcoin_en.ts @@ -0,0 +1,2300 @@ + + + +UTF-8 + + AboutDialog + + + About Bitcoin + + + + + <b>Bitcoin</b> version + + + + + 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. + + + + + AddressBookPage + + + Address Book + + + + + 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. + + + + + Double-click to edit address or label + + + + + Create a new address + + + + + &New Address... + + + + + Copy the currently selected address to the system clipboard + + + + + &Copy to Clipboard + + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + + + + + &Delete + + + + + Export Address Book Data + + + + + Comma separated file (*.csv) + + + + + Error exporting + + + + + Could not write to file %1. + + + + + AddressTableModel + + + Label + + + + + Address + + + + + (no label) + + + + + AskPassphraseDialog + + + Dialog + + + + + TextLabel + + + + + Enter passphrase + + + + + New passphrase + + + + + Repeat new passphrase + + + + + 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>. + + + + + Encrypt wallet + + + + + This operation needs your wallet passphrase to unlock the wallet. + + + + + Unlock wallet + + + + + This operation needs your wallet passphrase to decrypt the wallet. + + + + + Decrypt wallet + + + + + Change passphrase + + + + + Enter the old and new passphrase to the wallet. + + + + + Confirm wallet encryption + + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + + + + + + Wallet encrypted + + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + + + + + + + + Wallet encryption failed + + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + + + + + + The supplied passphrases do not match. + + + + + Wallet unlock failed + + + + + + + The passphrase entered for the wallet decryption was incorrect. + + + + + Wallet decryption failed + + + + + Wallet passphrase was succesfully changed. + + + + + BitcoinGUI + + + Bitcoin Wallet + + + + + Synchronizing with network... + + + + + Block chain synchronization in progress + + + + + &Overview + + + + + Show general overview of wallet + + + + + &Transactions + + + + + Browse transaction history + + + + + &Address Book + + + + + Edit the list of stored addresses and labels + + + + + &Receive coins + + + + + Show the list of addresses for receiving payments + + + + + &Send coins + + + + + Send coins to a bitcoin address + + + + + E&xit + + + + + Quit application + + + + + &About %1 + + + + + Show information about Bitcoin + + + + + &Options... + + + + + Modify configuration options for bitcoin + + + + + Open &Bitcoin + + + + + Show the Bitcoin window + + + + + &Export... + + + + + Export the current view to a file + + + + + &Encrypt Wallet + + + + + Encrypt or decrypt wallet + + + + + &Change Passphrase + + + + + Change the passphrase used for wallet encryption + + + + + &File + + + + + &Settings + + + + + &Help + + + + + Tabs toolbar + + + + + Actions toolbar + + + + + [testnet] + + + + + bitcoin-qt + + + + + %n active connection(s) to Bitcoin network + + %n active connection to Bitcoin network + %n active connections to Bitcoin network + + + + + Downloaded %1 of %2 blocks of transaction history. + + + + + Downloaded %1 blocks of transaction history. + + + + + %n second(s) ago + + %n second ago + %n seconds ago + + + + + %n minute(s) ago + + %n minute ago + %n minutes ago + + + + + %n hour(s) ago + + %n hour ago + %n hours ago + + + + + %n day(s) ago + + %n day ago + %n days ago + + + + + Up to date + + + + + Catching up... + + + + + Last received block was generated %1. + + + + + 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? + + + + + Sending... + + + + + Sent transaction + + + + + Incoming transaction + + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + + + + + DisplayOptionsPage + + + &Unit to show amounts in: + + + + + Choose the default subdivision unit to show in the interface, and when sending coins + + + + + Display addresses in transaction list + + + + + EditAddressDialog + + + Edit Address + + + + + &Label + + + + + The label associated with this address book entry + + + + + &Address + + + + + The address associated with this address book entry. This can only be modified for sending addresses. + + + + + New receiving address + + + + + New sending address + + + + + Edit receiving address + + + + + Edit sending address + + + + + The entered address "%1" is already in the address book. + + + + + The entered address "%1" is not a valid bitcoin address. + + + + + Could not unlock wallet. + + + + + New key generation failed. + + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + + + + + Automatically start Bitcoin after the computer is turned on + + + + + &Minimize to the tray instead of the taskbar + + + + + Show only a tray icon after minimizing the window + + + + + Map port using &UPnP + + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + + + + + M&inimize on close + + + + + 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. + + + + + &Connect through SOCKS4 proxy: + + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + + + + + Proxy &IP: + + + + + IP address of the proxy (e.g. 127.0.0.1) + + + + + &Port: + + + + + Port of the proxy (e.g. 1234) + + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + + + + + Pay transaction &fee + + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + + + + + OptionsDialog + + + Main + + + + + Display + + + + + Options + + + + + OverviewPage + + + Form + + + + + Balance: + + + + + 123.456 BTC + + + + + Number of transactions: + + + + + 0 + + + + + Unconfirmed: + + + + + 0 BTC + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + + + + + <b>Recent transactions</b> + + + + + Your current balance + + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + + + + + Total number of transactions in wallet + + + + + SendCoinsDialog + + + + + + + + + + Send Coins + + + + + Send to multiple recipients at once + + + + + &Add recipient... + + + + + Clear all + + + + + Balance: + + + + + 123.456 BTC + + + + + Confirm the send action + + + + + &Send + + + + + <b>%1</b> to %2 (%3) + + + + + Confirm send coins + + + + + Are you sure you want to send %1? + + + + + and + + + + + The recepient address is not valid, please recheck. + + + + + The amount to pay must be larger than 0. + + + + + Amount exceeds your balance + + + + + Total exceeds your balance when the %1 transaction fee is included + + + + + Duplicate address found, can only send to each address once in one send operation + + + + + Error: Transaction creation failed + + + + + 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. + + + + + SendCoinsEntry + + + Form + + + + + A&mount: + + + + + Pay &To: + + + + + + Enter a label for this address to add it to your address book + + + + + &Label: + + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + + Choose address from address book + + + + + Alt+A + + + + + Paste address from clipboard + + + + + Alt+P + + + + + Remove this recipient + + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + + TransactionDesc + + + Open for %1 blocks + + + + + Open until %1 + + + + + %1/offline? + + + + + %1/unconfirmed + + + + + %1 confirmations + + + + + <b>Status:</b> + + + + + , has not been successfully broadcast yet + + + + + , broadcast through %1 node + + + + + , broadcast through %1 nodes + + + + + <b>Date:</b> + + + + + <b>Source:</b> Generated<br> + + + + + + <b>From:</b> + + + + + unknown + + + + + + + <b>To:</b> + + + + + (yours, label: + + + + + (yours) + + + + + + + + <b>Credit:</b> + + + + + (%1 matures in %2 more blocks) + + + + + (not accepted) + + + + + + + <b>Debit:</b> + + + + + <b>Transaction fee:</b> + + + + + <b>Net amount:</b> + + + + + Message: + + + + + Comment: + + + + + 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. + + + + + TransactionDescDialog + + + Transaction details + + + + + This pane shows a detailed description of the transaction + + + + + TransactionTableModel + + + Date + + + + + Type + + + + + Address + + + + + Amount + + + + + Open for %n block(s) + + Open for %n block + Open for %n blocks + + + + + Open until %1 + + + + + Offline (%1 confirmations) + + + + + Unconfirmed (%1 of %2 confirmations) + + + + + Confirmed (%1 confirmations) + + + + + Mined balance will be available in %n more blocks + + Mined balance will be available in %n more block + Mined balance will be available in %n more blocks + + + + + This block was not received by any other nodes and will probably not be accepted! + + + + + Generated but not accepted + + + + + Received with + + + + + Received from IP + + + + + Sent to + + + + + Sent to IP + + + + + Payment to yourself + + + + + Mined + + + + + (n/a) + + + + + Transaction status. Hover over this field to show number of confirmations. + + + + + Date and time that the transaction was received. + + + + + Type of transaction. + + + + + Destination address of transaction. + + + + + Amount removed from or added to balance. + + + + + TransactionView + + + + All + + + + + Today + + + + + This week + + + + + This month + + + + + Last month + + + + + This year + + + + + Range... + + + + + Received with + + + + + Sent to + + + + + To yourself + + + + + Mined + + + + + Other + + + + + Enter address or label to search + + + + + Min amount + + + + + Copy address + + + + + Copy label + + + + + Edit label + + + + + Show details... + + + + + Export Transaction Data + + + + + Comma separated file (*.csv) + + + + + Confirmed + + + + + Date + + + + + Type + + + + + Label + + + + + Address + + + + + Amount + + + + + ID + + + + + Error exporting + + + + + Could not write to file %1. + + + + + Range: + + + + + to + + + + + WalletModel + + + Sending... + + + + + bitcoin-core + + + Bitcoin version + + + + + Usage: + + + + + Send command to -server or bitcoind + + + + + + List commands + + + + + + Get help for a command + + + + + + Options: + + + + + + Specify configuration file (default: bitcoin.conf) + + + + + + Specify pid file (default: bitcoind.pid) + + + + + + Generate coins + + + + + + Don't generate coins + + + + + + Start minimized + + + + + + Specify data directory + + + + + + Specify connection timeout (in milliseconds) + + + + + + Connect through socks4 proxy + + + + + + Allow DNS lookups for addnode and connect + + + + + + Add a node to connect to + + + + + + Connect only to the specified node + + + + + + Don't accept connections from outside + + + + + + Don't attempt to use UPnP to map the listening port + + + + + + Attempt to use UPnP to map the listening port + + + + + + Fee per kB to add to transactions you send + + + + + + Accept command line and JSON-RPC commands + + + + + + Run in the background as a daemon and accept commands + + + + + + Use the test network + + + + + + Username for JSON-RPC connections + + + + + + Password for JSON-RPC connections + + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + + + + + Allow JSON-RPC connections from specified IP address + + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + + + + + Set key pool size to <n> (default: 100) + + + + + + Rescan the block chain for missing wallet transactions + + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + + + + + Use OpenSSL (https) for JSON-RPC connections + + + + + + Server certificate file (default: server.cert) + + + + + + Server private key (default: server.pem) + + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + + This help message + + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + + + + + Loading addresses... + + + + + Error loading addr.dat + + + + + + Loading block index... + + + + + Error loading blkindex.dat + + + + + + Loading wallet... + + + + + Error loading wallet.dat: Wallet corrupted + + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + + + + + Error loading wallet.dat + + + + + + Rescanning... + + + + + Done loading + + + + + Invalid -proxy address + + + + + Invalid amount for -paytxfee=<amount> + + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + + + + + Error: CreateThread(StartNode) failed + + + + + Warning: Disk space is low + + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + + + + + 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? + + + + + Enter the current passphrase to the wallet. + + + + + Passphrase + + + + + Please supply the current wallet decryption passphrase. + + + + + The passphrase entered for the wallet decryption was incorrect. + + + + + Status + + + + + Date + + + + + Description + + + + + Debit + + + + + Credit + + + + + Open for %d blocks + + + + + Open until %s + + + + + %d/offline? + + + + + %d/unconfirmed + + + + + %d confirmations + + + + + Generated + + + + + Generated (%s matures in %d more blocks) + + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + + + + + Generated (not accepted) + + + + + From: + + + + + Received with: + + + + + Payment to yourself + + + + + To: + + + + + Generating + + + + + (not connected) + + + + + %d connections %d blocks %d transactions + + + + + Wallet already encrypted. + + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + + + + + Error: The supplied passphrase was too short. + + + + + 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? + + + + + Please re-enter your new wallet passphrase. + + + + + Error: the supplied passphrases didn't match. + + + + + Wallet encryption failed. + + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + + + + + Wallet is unencrypted, please encrypt it first. + + + + + Enter the new passphrase for the wallet. + + + + + Re-enter the new passphrase for the wallet. + + + + + Wallet Passphrase Changed. + + + + + New Receiving Address + + + + + You should use a new address for each payment you receive. + +Label + + + + + <b>Status:</b> + + + + + , has not been successfully broadcast yet + + + + + , broadcast through %d node + + + + + , broadcast through %d nodes + + + + + <b>Date:</b> + + + + + <b>Source:</b> Generated<br> + + + + + <b>From:</b> + + + + + unknown + + + + + <b>To:</b> + + + + + (yours, label: + + + + + (yours) + + + + + <b>Credit:</b> + + + + + (%s matures in %d more blocks) + + + + + (not accepted) + + + + + <b>Debit:</b> + + + + + <b>Transaction fee:</b> + + + + + <b>Net amount:</b> + + + + + Message: + + + + + Comment: + + + + + 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. + + + + + Cannot write autostart/bitcoin.desktop file + + + + + Main + + + + + &Start Bitcoin on window system startup + + + + + &Minimize on close + + + + + version %s + + + + + Error in amount + + + + + Send Coins + + + + + Amount exceeds your balance + + + + + Total exceeds your balance when the + + + + + transaction fee is included + + + + + Payment sent + + + + + Sending... + + + + + Invalid address + + + + + Sending %s to %s + + + + + CANCELLED + + + + + Cancelled + + + + + Transfer cancelled + + + + + Error: + + + + + Insufficient funds + + + + + Connecting... + + + + + Unable to connect + + + + + Requesting public key... + + + + + Received public key... + + + + + Recipient is not accepting transactions sent by IP address + + + + + Transfer was not accepted + + + + + Invalid response received + + + + + Creating transaction... + + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + + + + + Transaction creation failed + + + + + Transaction aborted + + + + + Lost connection, transaction cancelled + + + + + Sending payment... + + + + + 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. + + + + + Waiting for confirmation... + + + + + 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. + + + + + Payment was sent, but an invalid response was received + + + + + Payment completed + + + + + Name + + + + + Address + + + + + Label + + + + + Bitcoin Address + + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + + + + + Edit Address + + + + + Edit Address Label + + + + + Add Address + + + + + Bitcoin + + + + + Bitcoin - Generating + + + + + Bitcoin - (not connected) + + + + + &Open Bitcoin + + + + + &Send Bitcoins + + + + + O&ptions... + + + + + E&xit + + + + + Program has crashed and will terminate. + + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + + + + + beta + + + + + main + + + Bitcoin Qt + + + + diff --git a/src/qt/locale/bitcoin_es.ts b/src/qt/locale/bitcoin_es.ts new file mode 100644 index 0000000..768efae --- /dev/null +++ b/src/qt/locale/bitcoin_es.ts @@ -0,0 +1,2342 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + Sobre Bitcoin + + + + <b>Bitcoin</b> version + <b>Bitcoin</b> - versión + + + + 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. + Copyright (c) 2009-2010 Bitcoin Developers + +Este es un software experimental. + +Distribuido bajo la licencia MIT/X11, vea el archivo adjunto +license.txt o http://www.opensource.org/licenses/mit-license.php. + +Este producto incluye software desarrollado por OpenSSL Project para su uso en +el OpenSSL Toolkit (http://www.openssl.org) y software criptográfico escrito por +Eric Young (eay@cryptsoft.com) y UPnP software escrito por Thomas Bernard. + + + + AddressBookPage + + + Address Book + Guia de direcciones + + + + 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. + Estas son tus direcciones Bitcoin para recibir pagos. Puedes utilizar una diferente por cada persona emisora para saber quien te está pagando. + + + + Double-click to edit address or label + Haz doble click para editar una dirección o etiqueta + + + + Create a new address + Crea una nueva dirección + + + + &New Address... + &Nueva Dirección + + + + Copy the currently selected address to the system clipboard + Copia la dirección seleccionada al portapapeles + + + + &Copy to Clipboard + &Copiar al portapapeles + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Borra la dirección seleccionada de la lista. Solo las direcciónes de envio se pueden borrar. + + + + &Delete + Bo&rrar + + + + Export Address Book Data + Exporta datos de la Guia de direcciones + + + + Comma separated file (*.csv) + Archivos separados por coma (*.csv) + + + + Error exporting + Exportar errores + + + + Could not write to file %1. + No se pudo escribir al archivo %1. + + + + AddressTableModel + + + Label + Etiqueta + + + + Address + Dirección + + + + (no label) + (sin etiqueta) + + + + AskPassphraseDialog + + + Dialog + Cambiar contraseña + + + + TextLabel + Cambiar contraseña: + + + + Enter passphrase + Introduce contraseña actual + + + + New passphrase + Nueva contraseña + + + + Repeat new passphrase + Repite nueva contraseña: + + + + 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>. + Introduce la nueva contraseña de cartera.<br/>Por favor utiliza un contraseña <b>de 10 o mas caracteres aleatorios</b>, u <b>ocho o mas palabras</b>. + + + + Encrypt wallet + Encriptar cartera + + + + This operation needs your wallet passphrase to unlock the wallet. + Esta operación necesita la contraseña para desbloquear la cartera. + + + + Unlock wallet + Desbloquea cartera + + + + This operation needs your wallet passphrase to decrypt the wallet. + Esta operación necesita la contraseña para decriptar la cartera. + + + + Decrypt wallet + Decriptar cartera + + + + Change passphrase + Cambia contraseña + + + + Enter the old and new passphrase to the wallet. + Introduce la contraseña anterior y la nueva de cartera + + + + Confirm wallet encryption + Confirma la encriptación de cartera + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + ATENCION: ¡Si encriptas tu cartera y pierdes la contraseña perderas <b>TODOS TUS BITCOINS</b>!" +¿Seguro que quieres seguir encriptando la cartera? + + + + + Wallet encrypted + Cartera encriptada + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Recuerda que encriptando tu cartera no garantiza mantener a salvo tus bitcoins en caso de tener viruses en el ordenador. + + + + + + + Wallet encryption failed + Encriptación de cartera fallida + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + Encriptación de cartera fallida debido a un error interno. Tu cartera no ha sido encriptada. + + + + + The supplied passphrases do not match. + Las contraseñas no coinciden. + + + + Wallet unlock failed + Desbloqueo de cartera fallido + + + + + + The passphrase entered for the wallet decryption was incorrect. + La contraseña introducida para decriptar la cartera es incorrecta. + + + + Wallet decryption failed + Decriptación de cartera fallida + + + + Wallet passphrase was succesfully changed. + La contraseña de cartera ha sido cambiada con exit. + + + + BitcoinGUI + + + Bitcoin Wallet + Cartera Bitcoin + + + + Synchronizing with network... + Sincronizando con la red... + + + + Block chain synchronization in progress + Sincronización cadena de bloques en progreso + + + + &Overview + &Vista general + + + + Show general overview of wallet + Muestra una vista general de cartera + + + + &Transactions + &Transacciónes + + + + Browse transaction history + Visiona el historial de transacciónes + + + + &Address Book + &Guia de direcciónes + + + + Edit the list of stored addresses and labels + Edita la lista de las direcciónes y etiquetas almacenada + + + + &Receive coins + &Recibe monedas + + + + Show the list of addresses for receiving payments + Muestra la lista de direcciónes utilizadas para recibir pagos + + + + &Send coins + &Envia monedas + + + + Send coins to a bitcoin address + Envia monedas a una dirección bitcoin + + + + E&xit + &Salir + + + + Quit application + Salir de la aplicación + + + + &About %1 + S&obre %1 + + + + Show information about Bitcoin + Muestra información sobre Bitcoin + + + + &Options... + &Opciones + + + + Modify configuration options for bitcoin + Modifica opciones de configuración + + + + Open &Bitcoin + Abre &Bitcoin + + + + Show the Bitcoin window + Muestra la ventana de Bitcoin + + + + &Export... + &Exporta... + + + + Export the current view to a file + Exporta la vista actual a un archivo + + + + &Encrypt Wallet + &Encriptar cartera + + + + Encrypt or decrypt wallet + Encriptar o decriptar cartera + + + + &Change Passphrase + &Cambiar la contraseña + + + + Change the passphrase used for wallet encryption + Cambiar la contraseña utilizada para la encriptación de cartera + + + + &File + &Archivo + + + + &Settings + &Configuración + + + + &Help + &Ayuda + + + + Tabs toolbar + Barra de pestañas + + + + Actions toolbar + Barra de acciónes + + + + [testnet] + [testnet] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n conexión activa hacia la red Bitcoin%n conexiones activas hacia la red Bitcoin + + + + Downloaded %1 of %2 blocks of transaction history. + Se han bajado %1 de %2 bloques de historial. + + + + Downloaded %1 blocks of transaction history. + Se han bajado %1 bloques de historial. + + + + %n second(s) ago + Hace %n segundoHace %n segundos + + + + %n minute(s) ago + Hace %n minutoHace %n minutos + + + + %n hour(s) ago + Hace %n horaHace %n horas + + + + %n day(s) ago + Hace %n díaHace %n días + + + + Up to date + Actualizado + + + + Catching up... + Recuperando... + + + + Last received block was generated %1. + El ultimo bloque recibido fue generado %1. + + + + 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? + Esta transacción supera el límite. Puedes seguir enviandola incluyendo una comisión de %s que se va a repartir entre los nodos que procesan su transacción y ayudan a mantener la red. ¿Quieres seguir con la transacción? + + + + Sending... + Enviando... + + + + Sent transaction + Transacción enviada + + + + Incoming transaction + Transacción entrante + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Fecha: %1 +Cantidad: %2 +Tipo: %3 +Dirección: %4 + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + La cartera esta <b>encriptada</b> y actualmente <b>desbloqueda</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + La cartera esta <b>encriptada</b> y actualmente <b>bloqueda</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Unidad en la que mostrar cantitades: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Elige la subdivisión por defecto para mostrar cantidaded en la interfaz cuando se envien monedas + + + + Display addresses in transaction list + Muestra direcciones en el listado de movimientos + + + + EditAddressDialog + + + Edit Address + Editar Dirección + + + + &Label + &Etiqueta + + + + The label associated with this address book entry + La etiqueta asociada con esta entrada de la guia + + + + &Address + &Dirección + + + + The address associated with this address book entry. This can only be modified for sending addresses. + La dirección asociada con esta entrada en la guia. Solo puede ser modificada para direcciónes de envío. + + + + New receiving address + Nueva dirección para recibir + + + + New sending address + Nueva dirección para enviar + + + + Edit receiving address + Editar dirección de recepción + + + + Edit sending address + Editar dirección de envio + + + + The entered address "%1" is already in the address book. + La dirección introducia "%1" ya esta guardada en la guia. + + + + The entered address "%1" is not a valid bitcoin address. + La dirección introducida "%1" no es una dirección Bitcoin valida. + + + + Could not unlock wallet. + No se pudo desbloquear la cartera. + + + + New key generation failed. + La generación de nueva clave fallida. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Arranca Bitcoin al iniciar el sistema + + + + Automatically start Bitcoin after the computer is turned on + Arranca Bitcoin cuando se encienda el ordenador + + + + &Minimize to the tray instead of the taskbar + &Minimiza a la bandeja en vez de la barra de tareas + + + + Show only a tray icon after minimizing the window + Muestra solo el icono de sistema cuando se minimize la ventana + + + + Map port using &UPnP + Mapea el puerto usando &UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Intenta abrir el puerto adecuado en el router automaticamente. Esta opcion solo funciona si el router soporta UPnP y esta activado. + + + + M&inimize on close + M&inimiza a la bandeja al cerrar + + + + 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. + Minimiza la ventana en lugar de salir de la aplicación.Cuando esta opcion esta activa la aplicación solo se puede cerrar seleccionando Salir desde el menu. + + + + &Connect through SOCKS4 proxy: + &Conecta atraves de un proxy SOCKS4: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Conecta a la red Bitcoin atraves de un proxy SOCKS4 (ej. para conectar con la red Tor) + + + + Proxy &IP: + &IP Proxy: + + + + IP address of the proxy (e.g. 127.0.0.1) + Dirección IP del proxy (ej. 127.0.0.1) + + + + &Port: + &Puerto: + + + + Port of the proxy (e.g. 1234) + Puerto del servidor proxy (ej. 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Comisión opcional a las transacciones por kB que ayuda a asegurar que tus transacciones son procesadas rápidamente. La mayoría de las transacciones son de 1kB. Se recomienda una comisión de 0.01. + + + + Pay transaction &fee + Comision de &transacciónes + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Comisión opcional a las transacciones por kB que ayuda a asegurar que tus transacciones son procesadas rápidamente. La mayoría de las transacciones son de 1kB. Se recomienda una comisión de 0.01. + + + + OptionsDialog + + + Main + Principal + + + + Display + Mostrado + + + + Options + Opciones + + + + OverviewPage + + + Form + Desde + + + + Balance: + Balance: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Numero de movimientos: + + + + 0 + 0 + + + + Unconfirmed: + No confirmado(s): + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Cartera</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Movimientos recientes</b> + + + + Your current balance + Tu balance actual + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + El total de las transacciones que faltan por confirmar y que no se cuentan para el total general. + + + + Total number of transactions in wallet + El numero total de movimiento en cartera + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Envia monedas + + + + Send to multiple recipients at once + Envia a multiples destinatarios de una vez + + + + &Add recipient... + &Agrega destinatario... + + + + Clear all + &Borra todos + + + + Balance: + Balance: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Confirma el envio + + + + &Send + &Envía + + + + <b>%1</b> to %2 (%3) + <b>%1</b> to %2 (%3) + + + + Confirm send coins + Confirmar el envio de monedas + + + + Are you sure you want to send %1? + Estas seguro que quieres enviar %1? + + + + and + y + + + + The recepient address is not valid, please recheck. + La dirección de destinatarion no es valida, comprueba otra vez. + + + + The amount to pay must be larger than 0. + La cantidad por pagar tiene que ser mayor 0. + + + + Amount exceeds your balance + La cantidad sobrepasa tu saldo + + + + Total exceeds your balance when the %1 transaction fee is included + El total sobrepasa tu saldo cuando se incluyen %1 como tasa de envio + + + + Duplicate address found, can only send to each address once in one send operation + Tienes una dirección duplicada, solo puedes enviar a direcciónes individuales de una sola vez + + + + Error: Transaction creation failed + Error: La transacción no se pudo crear + + + + 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. + Error: La transacción fue rechazada. Esto puede haber ocurrido si alguna de las monedas ya estaba gastada o si ha usado una copia de wallet.dat y las monedas se gastaron en la copia pero no se han marcado como gastadas aqui. + + + + SendCoinsEntry + + + Form + Envio + + + + A&mount: + Cantidad: + + + + Pay &To: + &Pagar a: + + + + + Enter a label for this address to add it to your address book + Introduce una etiqueta a esta dirección para añadirla a tu guia + + + + &Label: + &Etiqueta: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + La dirección donde enviar el pago (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + Elije dirección de la guia + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Pega dirección desde portapapeles + + + + Alt+P + Alt+P + + + + Remove this recipient + Elimina destinatario + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Introduce una dirección Bitcoin (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + Abierto hasta %1 bloques + + + + Open until %1 + Abierto hasta %1 + + + + %1/offline? + %1/fuera de linea? + + + + %1/unconfirmed + %1/no confirmado + + + + %1 confirmations + %1 confirmaciónes + + + + <b>Status:</b> + <b>Estado:</b> + + + + , has not been successfully broadcast yet + , no ha sido emitido satisfactoriamente todavía + + + + , broadcast through %1 node + , emitido mediante %1 nodo + + + + , broadcast through %1 nodes + , emitido mediante %1 nodos + + + + <b>Date:</b> + <b>Fecha:</b> + + + + <b>Source:</b> Generated<br> + <b>Fuente:</b> Generado<br> + + + + + <b>From:</b> + <b>De:</b> + + + + unknown + desconocido + + + + + + <b>To:</b> + <b>Para:</b> + + + + (yours, label: + (tuya, etiqueta: + + + + (yours) + (tuya) + + + + + + + <b>Credit:</b> + <b>Crédito:</b> + + + + (%1 matures in %2 more blocks) + (%1 madura en %1 bloques mas) + + + + (not accepted) + (no aceptada) + + + + + + <b>Debit:</b> + <b>Débito:</b> + + + + <b>Transaction fee:</b> + <b>Comisión transacción:</b> + + + + <b>Net amount:</b> + <b>Cantidad total:</b> + + + + Message: + Mensaje: + + + + Comment: + Comentario: + + + + 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. + Las monedas generadas deben esperar 120 bloques antes de ser gastadas. Cuando has generado este bloque se emitió a la red para ser agregado en la cadena de bloques. Si falla al incluirse en la cadena, cambiará a "no aceptado" y las monedas no se podrán gastar. Esto puede ocurrir ocasionalmente si otro nodo genera un bloque casi al mismo tiempo que el tuyo. + + + + TransactionDescDialog + + + Transaction details + Detalles de transacción + + + + This pane shows a detailed description of the transaction + Esta ventana muestra información detallada sobre la transacción + + + + TransactionTableModel + + + Date + Fecha + + + + Type + Tipo + + + + Address + Dirección + + + + Amount + Cantidad + + + + Open for %n block(s) + Abierto por %n bloqueAbierto por %n bloques + + + + Open until %1 + Abierto hasta %1 + + + + Offline (%1 confirmations) + Fuera de linea (%1 confirmaciónes) + + + + Unconfirmed (%1 of %2 confirmations) + No confirmado (%1 de %2 confirmaciónes) + + + + Confirmed (%1 confirmations) + Confirmado (%1 confirmaciones) + + + + Mined balance will be available in %n more blocks + El balance minado estará disponible en %n bloque masEl balance minado estará disponible en %n bloques mas + + + + This block was not received by any other nodes and will probably not be accepted! + Este bloque no ha sido recibido por otros nodos y probablemente no sea aceptado ! + + + + Generated but not accepted + Generado pero no acceptado + + + + Received with + Recibido con + + + + Received from IP + Recibido de IP + + + + Sent to + Enviado a + + + + Sent to IP + Enviado a IP + + + + Payment to yourself + Pago proprio + + + + Mined + Minado + + + + (n/a) + (n/a) + + + + Transaction status. Hover over this field to show number of confirmations. + Estado de transacción. Pasa el raton sobre este campo para ver el numero de confirmaciónes. + + + + Date and time that the transaction was received. + Fecha y hora cuando se recibió la transaccion + + + + Type of transaction. + Tipo de transacción. + + + + Destination address of transaction. + Dirección de destino para la transacción + + + + Amount removed from or added to balance. + Cantidad restada o añadida al balance + + + + TransactionView + + + + All + Todo + + + + Today + Hoy + + + + This week + Esta semana + + + + This month + Esta mes + + + + Last month + Mes pasado + + + + This year + Este año + + + + Range... + Rango... + + + + Received with + Recibido con + + + + Sent to + Enviado a + + + + To yourself + A ti mismo + + + + Mined + Minado + + + + Other + Otra + + + + Enter address or label to search + Introduce una dirección o etiqueta para buscar + + + + Min amount + Cantidad minima + + + + Copy address + Copia dirección + + + + Copy label + Copia etiqueta + + + + Edit label + Edita etiqueta + + + + Show details... + Muestra detalles... + + + + Export Transaction Data + Exportar datos de transacción + + + + Comma separated file (*.csv) + Archivos separados por coma (*.csv) + + + + Confirmed + Confirmado + + + + Date + Fecha + + + + Type + Tipo + + + + Label + Etiqueta + + + + Address + Dirección + + + + Amount + Cantidad + + + + ID + ID + + + + Error exporting + Error exportando + + + + Could not write to file %1. + No se pudo escribir en el archivo %1. + + + + Range: + Rango: + + + + to + para + + + + WalletModel + + + Sending... + Enviando... + + + + bitcoin-core + + + Bitcoin version + Versión Bitcoin + + + + Usage: + Uso: + + + + Send command to -server or bitcoind + + Envia comando a bitcoin lanzado con -server u bitcoind + + + + + List commands + + Muestra comandos + + + + + Get help for a command + + Recibir ayuda para un comando + + + + + Options: + + Opciones: + + + + + Specify configuration file (default: bitcoin.conf) + + Especifica archivo de configuración (predeterminado: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + Especifica archivo pid (predeterminado: bitcoin.pid) + + + + + Generate coins + + Genera monedas + + + + + Don't generate coins + + No generar monedas + + + + + Start minimized + + Arranca minimizado + + + + + Specify data directory + + Especifica directorio para los datos + + + + + Specify connection timeout (in milliseconds) + + Especifica tiempo de espera para conexion (en milisegundos) + + + + + Connect through socks4 proxy + + Conecta mediante proxy socks4 + + + + + Allow DNS lookups for addnode and connect + + Permite búsqueda DNS para addnode y connect + + + + + Add a node to connect to + + Agrega un nodo para conectarse + + + + + Connect only to the specified node + + Conecta solo al nodo especificado + + + + + Don't accept connections from outside + + No aceptar conexiones desde el exterior + + + + + Don't attempt to use UPnP to map the listening port + + No intentar usar UPnP para mapear el puerto de entrada + + + + + Attempt to use UPnP to map the listening port + + Intenta usar UPnP para mapear el puerto de escucha. + + + + + Fee per kB to add to transactions you send + + Comisión por kB para agregar a las transacciones que envias + + + + + Accept command line and JSON-RPC commands + + Aceptar comandos consola y JSON-RPC + + + + + Run in the background as a daemon and accept commands + + Correr como demonio y acepta comandos + + + + + Use the test network + + Usa la red de pruebas + + + + + Username for JSON-RPC connections + + Usuario para las conexiones JSON-RPC + + + + + Password for JSON-RPC connections + + Contraseña para las conexiones JSON-RPC + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Escucha conexiones JSON-RPC en el puerto <port> (predeterminado: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + Permite conexiones JSON-RPC desde la dirección IP especificada + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Envia comando al nodo situado en <ip> (predeterminado: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Ajusta el numero de claves en reserva <n> (predeterminado: 100) + + + + + Rescan the block chain for missing wallet transactions + + Rescanea la cadena de bloques para transacciones perdidas de la cartera + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + Opciones SSL: (ver la Bitcoin Wiki para instrucciones de configuración SSL) + + + + + Use OpenSSL (https) for JSON-RPC connections + + Usa OpenSSL (https) para las conexiones JSON-RPC + + + + + Server certificate file (default: server.cert) + + Certificado del servidor (Predeterminado: server.cert) + + + + + Server private key (default: server.pem) + + Clave privada del servidor (Predeterminado: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Cifrados aceptados (Predeterminado: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + Este mensaje de ayuda + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + No se puede obtener permiso de trabajo en la carpeta de datos %s. Probablemente Bitcoin ya se está ejecutando. + + + + + Loading addresses... + Cargando direcciónes... + + + + Error loading addr.dat + + Error cargando addr.dat + + + + + Loading block index... + Cargando el index de bloques... + + + + Error loading blkindex.dat + + Error cargando blkindex.dat + + + + + Loading wallet... + Cargando cartera... + + + + Error loading wallet.dat: Wallet corrupted + + Error cargando wallet.dat: Cartera dañada + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Error cargando el archivo wallet.dat: Se necesita una versión mas nueva de Bitcoin + + + + + Error loading wallet.dat + + Error cargando wallet.dat + + + + + Rescanning... + Rescaneando... + + + + Done loading + Carga completa + + + + Invalid -proxy address + Dirección -proxy invalida + + + + Invalid amount for -paytxfee=<amount> + Cantidad inválida para -paytxfee=<amount> + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Precaución: -paytxfee es muy alta. Esta es la comisión que pagarás si envias una transacción. + + + + Error: CreateThread(StartNode) failed + Error: CreateThread(StartNode) fallido + + + + Warning: Disk space is low + Atención: Poco espacio en el disco duro + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + No es posible escuchar en el puerto %d en este ordenador. Probablemente Bitcoin ya se está ejecutando. + + + + 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? + Esta transacción supera el límite. Puedes seguir enviandola incluyendo una comisión de %s que se va a repartir entre los nodos que procesan su transacción y ayudan a mantener la red. ¿Quieres seguir con la transacción? + + + + Enter the current passphrase to the wallet. + Introduce la contraseña actual de la cartera. + + + + Passphrase + Contraseña + + + + Please supply the current wallet decryption passphrase. + Por favor introduce la contraseña actual de la cartera. + + + + The passphrase entered for the wallet decryption was incorrect. + La contraseña introducida para decriptar la cartera es incorrecta. + + + + Status + Estado + + + + Date + Fecha + + + + Description + Descripción + + + + Debit + Debito + + + + Credit + Credito + + + + Open for %d blocks + Abierto para %d bloques + + + + Open until %s + Abierto hasta %s + + + + %d/offline? + %d/fuera de linea? + + + + %d/unconfirmed + %d/no confirmado + + + + %d confirmations + %d confirmaciónes + + + + Generated + Generado + + + + Generated (%s matures in %d more blocks) + Generado (%s madura en %d bloques) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Generado - Cuidado: Este bloque no se recibió de otros nodos y probablemente no sea aceptado! + + + + Generated (not accepted) + Generado (no aceptado) + + + + From: + De: + + + + Received with: + Recibido con: + + + + Payment to yourself + Pago a ti mismo + + + + To: + Para: + + + + Generating + Generando + + + + (not connected) + (no conectado) + + + + %d connections %d blocks %d transactions + %d conexiones %d bloques %d transacciones + + + + Wallet already encrypted. + La cartera ya esta encriptada. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Introduce la nueva contraseña de cartera. +Por favor utiliza un contraseña de 10 o mas caracteres aleatorios, u ocho o mas palabras. + + + + Error: The supplied passphrase was too short. + Error: La contraseña introducida es demasiado corta. + + + + 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? + ATENCION: ¡Si encriptas tu cartera y pierdes la contraseña perderas TODOS TUS BITCOINS! +¿Estas seguro que quieres seguir encriptando la cartera? + + + + Please re-enter your new wallet passphrase. + Por favor vuelve introducir la nueva contraseña. + + + + Error: the supplied passphrases didn't match. + Error: las contraseñas no son identicas. + + + + Wallet encryption failed. + Encriptacion de cartera fallida. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Cartera Encriptada. +Recuerda que encriptando tu cartera no garantiza mantener a salvo tus bitcoins en caso de tener viruses en el ordenador. + + + + Wallet is unencrypted, please encrypt it first. + Cartera no encriptada, intenta encriptar primero. + + + + Enter the new passphrase for the wallet. + Introduce la nueva contraseña para la cartera. + + + + Re-enter the new passphrase for the wallet. + Reintroduce la nueva contraseña para la cartera. + + + + Wallet Passphrase Changed. + Contraseña de cartera cambiada. + + + + New Receiving Address + Nueva dirección de recepción + + + + You should use a new address for each payment you receive. + +Label + Debes usar una nueva dirección para cada pago que usted recibe. + +Etiqueta + + + + <b>Status:</b> + <b>Estado:</b> + + + + , has not been successfully broadcast yet + , no ha sido emitido satisfactoriamente todavía + + + + , broadcast through %d node + , emitido mediante %d nodo + + + + , broadcast through %d nodes + , emitido mediante %d nodos + + + + <b>Date:</b> + <b>Fecha:</b> + + + + <b>Source:</b> Generated<br> + <b>Fuente:</b> Generado<br> + + + + <b>From:</b> + <b>De:</b> + + + + unknown + desconocido + + + + <b>To:</b> + <b>Para:</b> + + + + (yours, label: + (tuya, etiqueta: + + + + (yours) + (tuya) + + + + <b>Credit:</b> + <b>Crédito:</b> + + + + (%s matures in %d more blocks) + (%s madura en %d bloques) + + + + (not accepted) + (no aceptada) + + + + <b>Debit:</b> + <b>Débito:</b> + + + + <b>Transaction fee:</b> + <b>Comisión transacción:</b> + + + + <b>Net amount:</b> + <b>Cantidad total:</b> + + + + Message: + Mensaje: + + + + Comment: + Comentario: + + + + 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. + Las monedas generadas deben esperar 120 bloques antes de ser gastadas. Cuando has generado este bloque se emitió a la red para ser agregado en la cadena de bloques. Si falla al incluirse en la cadena, cambiará a "no aceptado" y las monedas no se podrán gastar. Esto puede ocurrir ocasionalmente si otro nodo genera un bloque casi al mismo tiempo que el tuyo. + + + + Cannot write autostart/bitcoin.desktop file + No se puede escribir el fichero autostart/bitcoin.desktop + + + + Main + Principal + + + + &Start Bitcoin on window system startup + &Arranca Bitcoin al iniciar el sistema + + + + &Minimize on close + &Minimiza al cerrar + + + + version %s + versión %s + + + + Error in amount + Error en la cantidad + + + + Send Coins + Envia monedas + + + + Amount exceeds your balance + La cantidad sobrepasa tu balance + + + + Total exceeds your balance when the + El total sobrepasa tu balance cuando se + + + + transaction fee is included + incluyen las tasas de transacción + + + + Payment sent + Pago enviado + + + + Sending... + Enviando... + + + + Invalid address + Dirección inválida + + + + Sending %s to %s + Enviando %s a %s + + + + CANCELLED + CANCELADO + + + + Cancelled + Cancelado + + + + Transfer cancelled + Transferencia cancelada + + + + Error: + Error: + + + + Insufficient funds + Fondos insuficientes + + + + Connecting... + Conectando... + + + + Unable to connect + No es posible conectar + + + + Requesting public key... + Pidiendo clave pública... + + + + Received public key... + Clave pública recibida... + + + + Recipient is not accepting transactions sent by IP address + El destinatario no accepta transacciones enviadas a direcciones IP + + + + Transfer was not accepted + La transferencia no fue aceptada + + + + Invalid response received + Respuesta inválida recibida + + + + Creating transaction... + Creando transacción... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + Esta transacción requiere una comisión de al menos %s por su cantidad, complejidad o uso de fondos recibidos recientemente + + + + Transaction creation failed + Fallo al crear la transacción. + + + + Transaction aborted + Transacción abortada + + + + Lost connection, transaction cancelled + Conexión perdida, transacción cancelada + + + + Sending payment... + Enviando pago... + + + + 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. + La transacción fue rechazada. Esto puede haber ocurrido si alguna de las monedas ya estaba gastada o si ha usado una copia de wallet.dat y las monedas se gastaron en la copia pero no se han marcado como gastadas aqui. + + + + Waiting for confirmation... + Esperando confirmación... + + + + 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. + El pago se ha enviado, pero el receptor no pudo verificarlo. +La transacción se grabó y el saldo fue transferido, +pero la información de los comentarios quedará en blanco. + + + + Payment was sent, but an invalid response was received + El pago fue enviado, pero se recibió una respuesta inválida + + + + Payment completed + Pago completado + + + + Name + Nombre + + + + Address + Dirección + + + + Label + Etiqueta + + + + Bitcoin Address + Dirección Bitcoin + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + Esta es una de sus direcciones para recibir pagos y no puede incluirse en la libreta de direcciones. + + + + Edit Address + Edita dirección + + + + Edit Address Label + Edita etiqueta dirección + + + + Add Address + Agrega dirección + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Bitcoin - Generando + + + + Bitcoin - (not connected) + Bitcoin - (no conectado) + + + + &Open Bitcoin + &Abre Bitcoin + + + + &Send Bitcoins + &Envia Bitcoins + + + + O&ptions... + O&pciones + + + + E&xit + S&alir + + + + Program has crashed and will terminate. + El programa ha detectado un error y va a cerrarse. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Precaución: Por favor revisa que la fecha y hora de tu ordenador son correctas. Si tu reloj está mal Bitcoin no funcionará correctamente. + + + + beta + beta + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + diff --git a/src/qt/locale/bitcoin_es_CL.ts b/src/qt/locale/bitcoin_es_CL.ts new file mode 100644 index 0000000..c0bea54 --- /dev/null +++ b/src/qt/locale/bitcoin_es_CL.ts @@ -0,0 +1,2342 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + Sobre Bitcoin + + + + <b>Bitcoin</b> version + <b>Bitcoin</b> - versión + + + + 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. + Copyright © 2009-2011 Bitcoin Developers + +Este es un software experimental. + +Distribuido bajo la licencia MIT/X11, vea el archivo adjunto +license.txt o http://www.opensource.org/licenses/mit-license.php. + +Este producto incluye software desarrollado por OpenSSL Project para su uso en +el OpenSSL Toolkit (http://www.openssl.org/), software criptográfico escrito por +Eric Young (eay@cryptsoft.com) y UPnP software escrito por Thomas Bernard. + + + + AddressBookPage + + + Address Book + Guia de direcciones + + + + 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. + Estas son tus direcciones Bitcoin para recibir pagos. Puedes utilizar una diferente por cada persona emisora para saber quien te está pagando. + + + + Double-click to edit address or label + Haz doble clic para editar una dirección o etiqueta + + + + Create a new address + Crea una nueva dirección + + + + &New Address... + &Nueva dirección + + + + Copy the currently selected address to the system clipboard + Copia la dirección seleccionada al portapapeles + + + + &Copy to Clipboard + &Copiar al portapapeles + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Borra la dirección seleccionada de la lista. Solo las direcciónes de envio se pueden borrar. + + + + &Delete + &Borrar + + + + Export Address Book Data + Exporta datos de la guia de direcciones + + + + Comma separated file (*.csv) + Archivos separados por coma (*.csv) + + + + Error exporting + Exportar errores + + + + Could not write to file %1. + No se pudo escribir al archivo %1. + + + + AddressTableModel + + + Label + Etiqueta + + + + Address + Dirección + + + + (no label) + (sin etiqueta) + + + + AskPassphraseDialog + + + Dialog + Cambiar contraseña + + + + TextLabel + Cambiar contraseña: + + + + Enter passphrase + Introduce contraseña actual + + + + New passphrase + Nueva contraseña + + + + Repeat new passphrase + Repite nueva contraseña: + + + + 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>. + Introduce la nueva contraseña para la billetera.<br/>Por favor utiliza un contraseña <b>de 10 o mas caracteres aleatorios</b>, u <b>ocho o mas palabras</b>. + + + + Encrypt wallet + Codificar billetera + + + + This operation needs your wallet passphrase to unlock the wallet. + Esta operación necesita la contraseña para desbloquear la billetera. + + + + Unlock wallet + Desbloquea billetera + + + + This operation needs your wallet passphrase to decrypt the wallet. + Esta operación necesita la contraseña para decodificar la billetara. + + + + Decrypt wallet + Decodificar cartera + + + + Change passphrase + Cambia contraseña + + + + Enter the old and new passphrase to the wallet. + Introduce la contraseña anterior y la nueva de cartera + + + + Confirm wallet encryption + Confirma la codificación de cartera + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + ATENCIÓN: ¡Si codificas tu billetera y pierdes la contraseña perderás <b>TODOS TUS BITCOINS</b>!" +¿Seguro que quieres seguir codificando la billetera? + + + + + Wallet encrypted + Billetera codificada + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Recuerda que codificando tu billetera no garantiza mantener a salvo tus bitcoins en caso de tener virus en el computador. + + + + + + + Wallet encryption failed + Falló la codificación de la billetera + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + La codificación de la billetera falló debido a un error interno. Tu billetera no ha sido codificada. + + + + + The supplied passphrases do not match. + Las contraseñas no coinciden. + + + + Wallet unlock failed + Ha fallado el desbloqueo de la billetera + + + + + + The passphrase entered for the wallet decryption was incorrect. + La contraseña introducida para decodificar la billetera es incorrecta. + + + + Wallet decryption failed + Ha fallado la decodificación de la billetera + + + + Wallet passphrase was succesfully changed. + La contraseña de billetera ha sido cambiada con éxito. + + + + BitcoinGUI + + + Bitcoin Wallet + Billetera Bitcoin + + + + Synchronizing with network... + Sincronizando con la red... + + + + Block chain synchronization in progress + Sincronización de la cadena de bloques en progreso + + + + &Overview + &Vista general + + + + Show general overview of wallet + Muestra una vista general de la billetera + + + + &Transactions + &Transacciónes + + + + Browse transaction history + Explora el historial de transacciónes + + + + &Address Book + &Guia de direcciónes + + + + Edit the list of stored addresses and labels + Edita la lista de direcciones y etiquetas almacenadas + + + + &Receive coins + &Recibir monedas + + + + Show the list of addresses for receiving payments + Muestra la lista de direcciónes utilizadas para recibir pagos + + + + &Send coins + &Envíar monedas + + + + Send coins to a bitcoin address + Enviar monedas a una dirección bitcoin + + + + E&xit + &Salir + + + + Quit application + Salir del programa + + + + &About %1 + S&obre %1 + + + + Show information about Bitcoin + Muestra información acerca de Bitcoin + + + + &Options... + &Opciones + + + + Modify configuration options for bitcoin + Modifica las opciones de configuración de bitcoin + + + + Open &Bitcoin + Abre &Bitcoin + + + + Show the Bitcoin window + Muestra la ventana de Bitcoin + + + + &Export... + &Exportar... + + + + Export the current view to a file + Exportar la vista actual a un archivo + + + + &Encrypt Wallet + &Codificar la billetera + + + + Encrypt or decrypt wallet + Codificar o decodificar la billetera + + + + &Change Passphrase + &Cambiar la contraseña + + + + Change the passphrase used for wallet encryption + Cambiar la contraseña utilizada para la codificación de la billetera + + + + &File + &Archivo + + + + &Settings + &Configuración + + + + &Help + &Ayuda + + + + Tabs toolbar + Barra de pestañas + + + + Actions toolbar + Barra de acciónes + + + + [testnet] + [red-de-pruebas] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n conexión activa hacia la red Bitcoin%n conexiones activas hacia la red Bitcoin + + + + Downloaded %1 of %2 blocks of transaction history. + Descargados %1 de %2 bloques del historial de transacciones. + + + + Downloaded %1 blocks of transaction history. + Descargado %1 bloques del historial de transacciones. + + + + %n second(s) ago + Hace %n segundoHace %n segundos + + + + %n minute(s) ago + Hace %n minutoHace %n minutos + + + + %n hour(s) ago + Hace %n horaHace %n horas + + + + %n day(s) ago + Hace %n díaHace %n días + + + + Up to date + Actualizado + + + + Catching up... + Recuperando... + + + + Last received block was generated %1. + El ultimo bloque recibido fue generado %1. + + + + 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? + Esta transacción supera el límite. Puedes seguir enviandola incluyendo una comisión de %s que se va a repartir entre los nodos que procesan su transacción y ayudan a mantener la red. ¿Quieres seguir con la transacción? + + + + Sending... + Enviando... + + + + Sent transaction + Transacción enviada + + + + Incoming transaction + Transacción entrante + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Fecha: %1 +Cantidad: %2 +Tipo: %3 +Dirección: %4 + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + La billetera esta <b>codificada</b> y actualmente <b>desbloqueda</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + La billetera esta <b>codificada</b> y actualmente <b>bloqueda</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Unidad en la que mostrar cantitades: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Elige la subdivisión por defecto para mostrar cantidaded en la interfaz cuando se envien monedas + + + + Display addresses in transaction list + Muestra direcciones en el listado de transaccioines + + + + EditAddressDialog + + + Edit Address + Editar dirección + + + + &Label + &Etiqueta + + + + The label associated with this address book entry + La etiqueta asociada con esta entrada de la libreta de direcciones + + + + &Address + &Dirección + + + + The address associated with this address book entry. This can only be modified for sending addresses. + La dirección asociada con esta entrada en la libreta de direcciones. Solo puede ser modificada para direcciónes de envío. + + + + New receiving address + Nueva dirección para recibir + + + + New sending address + Nueva dirección para enviar + + + + Edit receiving address + Editar dirección de recepción + + + + Edit sending address + Editar dirección de envio + + + + The entered address "%1" is already in the address book. + La dirección introducida "%1" ya esta guardada en la libreta de direcciones. + + + + The entered address "%1" is not a valid bitcoin address. + La dirección introducida "%1" no es una dirección Bitcoin valida. + + + + Could not unlock wallet. + No se pudo desbloquear la billetera. + + + + New key generation failed. + La generación de nueva clave falló. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Inicia Bitcoin al iniciar el sistema + + + + Automatically start Bitcoin after the computer is turned on + Inicia Bitcoin automáticamente despues de encender el computador + + + + &Minimize to the tray instead of the taskbar + &Minimiza a la bandeja en vez de la barra de tareas + + + + Show only a tray icon after minimizing the window + Muestra solo un ícono en la bandeja después de minimizar la ventana + + + + Map port using &UPnP + Direcciona el puerto usando &UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Abre automáticamente el puerto del cliente Bitcoin en el router. Esto funciona solo cuando tu router es compatible con UPnP y está habilitado. + + + + M&inimize on close + M&inimiza a la bandeja al cerrar + + + + 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. + Minimiza la ventana en lugar de salir del programa cuando la ventana se cierra. Cuando esta opción esta activa el programa solo se puede cerrar seleccionando Salir desde el menu. + + + + &Connect through SOCKS4 proxy: + &Conecta a traves de un proxy SOCKS4: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Conecta a la red Bitcoin a través de un proxy SOCKS4 (ej. cuando te conectas por la red Tor) + + + + Proxy &IP: + &IP Proxy: + + + + IP address of the proxy (e.g. 127.0.0.1) + Dirección IP del servidor proxy (ej. 127.0.0.1) + + + + &Port: + &Puerto: + + + + Port of the proxy (e.g. 1234) + Puerto del servidor proxy (ej. 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Comisión de operación opcional por kB que ayuda a asegurar que tus transacciones sean procesadas rápidamente. La mayoría de las transacciones son de 1kB. Se recomienda una comisión de 0.01. + + + + Pay transaction &fee + Comision de &transacciónes + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Comisión de operación opcional por kB que ayuda a asegurar que tus transacciones sean procesadas rápidamente. La mayoría de las transacciones son de 1kB. Se recomienda una comisión de 0.01. + + + + OptionsDialog + + + Main + Principal + + + + Display + Mostrado + + + + Options + Opciones + + + + OverviewPage + + + Form + Formulario + + + + Balance: + Saldo: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Numero de transacciones: + + + + 0 + 0 + + + + Unconfirmed: + No confirmados: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Cartera</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Transacciones recientes</b> + + + + Your current balance + Tu saldo actual + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Total de transacciones que no han sido confirmadas aun, y que no cuentan para el saldo actual. + + + + Total number of transactions in wallet + Número total de transacciones en la billetera + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Enviar monedas + + + + Send to multiple recipients at once + Enviar a múltiples destinatarios + + + + &Add recipient... + &Agrega destinatario... + + + + Clear all + &Borra todos + + + + Balance: + Balance: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Confirma el envio + + + + &Send + &Envía + + + + <b>%1</b> to %2 (%3) + <b>%1</b> to %2 (%3) + + + + Confirm send coins + Confirmar el envio de monedas + + + + Are you sure you want to send %1? + Estas seguro que quieres enviar %1? + + + + and + y + + + + The recepient address is not valid, please recheck. + La dirección de destinatarion no es valida, comprueba otra vez. + + + + The amount to pay must be larger than 0. + La cantidad por pagar tiene que ser mayor 0. + + + + Amount exceeds your balance + La cantidad sobrepasa tu saldo + + + + Total exceeds your balance when the %1 transaction fee is included + El total sobrepasa tu saldo cuando se incluyen %1 como tasa de envio + + + + Duplicate address found, can only send to each address once in one send operation + Tienes una dirección duplicada, solo puedes enviar a direcciónes individuales de una sola vez + + + + Error: Transaction creation failed + Error: La transacción no se pudo crear + + + + 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. + Error: La transacción fue rechazada. Esto puede haber ocurrido si alguna de las monedas ya estaba gastada o si ha usado una copia de wallet.dat y las monedas se gastaron en la copia pero no se han marcado como gastadas aqui. + + + + SendCoinsEntry + + + Form + Envio + + + + A&mount: + Cantidad: + + + + Pay &To: + &Pagar a: + + + + + Enter a label for this address to add it to your address book + Introduce una etiqueta a esta dirección para añadirla a tu guia + + + + &Label: + &Etiqueta: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + La dirección donde enviar el pago (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + Elije dirección de la guia + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Pega dirección desde portapapeles + + + + Alt+P + Alt+P + + + + Remove this recipient + Elimina destinatario + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Introduce una dirección Bitcoin (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + Abierto hasta %1 bloques + + + + Open until %1 + Abierto hasta %1 + + + + %1/offline? + %1/fuera de linea? + + + + %1/unconfirmed + %1/no confirmado + + + + %1 confirmations + %1 confirmaciónes + + + + <b>Status:</b> + <b>Estado:</b> + + + + , has not been successfully broadcast yet + , no ha sido emitido satisfactoriamente todavía + + + + , broadcast through %1 node + , emitido mediante %1 nodo + + + + , broadcast through %1 nodes + , emitido mediante %1 nodos + + + + <b>Date:</b> + <b>Fecha:</b> + + + + <b>Source:</b> Generated<br> + <b>Fuente:</b> Generado<br> + + + + + <b>From:</b> + <b>De:</b> + + + + unknown + desconocido + + + + + + <b>To:</b> + <b>Para:</b> + + + + (yours, label: + (tuya, etiqueta: + + + + (yours) + (tuya) + + + + + + + <b>Credit:</b> + <b>Crédito:</b> + + + + (%1 matures in %2 more blocks) + (%1 madura en %2 bloques mas) + + + + (not accepted) + (no aceptada) + + + + + + <b>Debit:</b> + <b>Débito:</b> + + + + <b>Transaction fee:</b> + <b>Comisión transacción:</b> + + + + <b>Net amount:</b> + <b>Cantidad total:</b> + + + + Message: + Mensaje: + + + + Comment: + Comentario: + + + + 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. + Las monedas generadas deben esperar 120 bloques antes de ser gastadas. Cuando has generado este bloque se emitió a la red para ser agregado en la cadena de bloques. Si falla al incluirse en la cadena, cambiará a "no aceptado" y las monedas no se podrán gastar. Esto puede ocurrir ocasionalmente si otro nodo genera un bloque casi al mismo tiempo que el tuyo. + + + + TransactionDescDialog + + + Transaction details + Detalles de transacción + + + + This pane shows a detailed description of the transaction + Esta ventana muestra información detallada sobre la transacción + + + + TransactionTableModel + + + Date + Fecha + + + + Type + Tipo + + + + Address + Dirección + + + + Amount + Cantidad + + + + Open for %n block(s) + Abierto por %n bloqueAbierto por %n bloques + + + + Open until %1 + Abierto hasta %1 + + + + Offline (%1 confirmations) + Fuera de linea (%1 confirmaciónes) + + + + Unconfirmed (%1 of %2 confirmations) + No confirmado (%1 de %2 confirmaciónes) + + + + Confirmed (%1 confirmations) + Confirmado (%1 confirmaciones) + + + + Mined balance will be available in %n more blocks + El balance minado estará disponible en %n bloque masEl balance minado estará disponible en %n bloques mas + + + + This block was not received by any other nodes and will probably not be accepted! + Este bloque no ha sido recibido por otros nodos y probablemente no sea aceptado ! + + + + Generated but not accepted + Generado pero no acceptado + + + + Received with + Recibido con + + + + Received from IP + Recibido de IP + + + + Sent to + Enviado a + + + + Sent to IP + Enviado a IP + + + + Payment to yourself + Pago proprio + + + + Mined + Minado + + + + (n/a) + (n/a) + + + + Transaction status. Hover over this field to show number of confirmations. + Estado de transacción. Pasa el raton sobre este campo para ver el numero de confirmaciónes. + + + + Date and time that the transaction was received. + Fecha y hora cuando se recibió la transaccion + + + + Type of transaction. + Tipo de transacción. + + + + Destination address of transaction. + Dirección de destino para la transacción + + + + Amount removed from or added to balance. + Cantidad restada o añadida al balance + + + + TransactionView + + + + All + Todo + + + + Today + Hoy + + + + This week + Esta semana + + + + This month + Esta mes + + + + Last month + Mes pasado + + + + This year + Este año + + + + Range... + Rango... + + + + Received with + Recibido con + + + + Sent to + Enviado a + + + + To yourself + A ti mismo + + + + Mined + Minado + + + + Other + Otra + + + + Enter address or label to search + Introduce una dirección o etiqueta para buscar + + + + Min amount + Cantidad minima + + + + Copy address + Copia dirección + + + + Copy label + Copia etiqueta + + + + Edit label + Edita etiqueta + + + + Show details... + Muestra detalles... + + + + Export Transaction Data + Exportar datos de transacción + + + + Comma separated file (*.csv) + Archivos separados por coma (*.csv) + + + + Confirmed + Confirmado + + + + Date + Fecha + + + + Type + Tipo + + + + Label + Etiqueta + + + + Address + Dirección + + + + Amount + Cantidad + + + + ID + ID + + + + Error exporting + Error exportando + + + + Could not write to file %1. + No se pudo escribir en el archivo %1. + + + + Range: + Rango: + + + + to + para + + + + WalletModel + + + Sending... + Enviando... + + + + bitcoin-core + + + Bitcoin version + Versión Bitcoin + + + + Usage: + Uso: + + + + Send command to -server or bitcoind + + Envia comando a bitcoin lanzado con -server u bitcoind + + + + + List commands + + Muestra comandos + + + + + Get help for a command + + Recibir ayuda para un comando + + + + + Options: + + Opciones: + + + + + Specify configuration file (default: bitcoin.conf) + + Especifica archivo de configuración (predeterminado: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + Especifica archivo pid (predeterminado: bitcoin.pid) + + + + + Generate coins + + Genera monedas + + + + + Don't generate coins + + No generar monedas + + + + + Start minimized + + Arranca minimizado + + + + + Specify data directory + + Especifica directorio para los datos + + + + + Specify connection timeout (in milliseconds) + + Especifica tiempo de espera para conexion (en milisegundos) + + + + + Connect through socks4 proxy + + Conecta mediante proxy socks4 + + + + + Allow DNS lookups for addnode and connect + + Permite búsqueda DNS para addnode y connect + + + + + Add a node to connect to + + Agrega un nodo para conectarse + + + + + Connect only to the specified node + + Conecta solo al nodo especificado + + + + + Don't accept connections from outside + + No aceptar conexiones desde el exterior + + + + + Don't attempt to use UPnP to map the listening port + + No intentar usar UPnP para mapear el puerto de entrada + + + + + Attempt to use UPnP to map the listening port + + Intenta usar UPnP para mapear el puerto de escucha. + + + + + Fee per kB to add to transactions you send + + Comisión por kB para agregar a las transacciones que envias + + + + + Accept command line and JSON-RPC commands + + Aceptar comandos consola y JSON-RPC + + + + + Run in the background as a daemon and accept commands + + Correr como demonio y acepta comandos + + + + + Use the test network + + Usa la red de pruebas + + + + + Username for JSON-RPC connections + + Usuario para las conexiones JSON-RPC + + + + + Password for JSON-RPC connections + + Contraseña para las conexiones JSON-RPC + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Escucha conexiones JSON-RPC en el puerto <port> (predeterminado: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + Permite conexiones JSON-RPC desde la dirección IP especificada + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Envia comando al nodo situado en <ip> (predeterminado: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Ajusta el numero de claves en reserva <n> (predeterminado: 100) + + + + + Rescan the block chain for missing wallet transactions + + Rescanea la cadena de bloques para transacciones perdidas de la cartera + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + Opciones SSL: (ver la Bitcoin Wiki para instrucciones de configuración SSL) + + + + + Use OpenSSL (https) for JSON-RPC connections + + Usa OpenSSL (https) para las conexiones JSON-RPC + + + + + Server certificate file (default: server.cert) + + Certificado del servidor (Predeterminado: server.cert) + + + + + Server private key (default: server.pem) + + Clave privada del servidor (Predeterminado: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Cifrados aceptados (Predeterminado: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + Este mensaje de ayuda + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + No se puede obtener permiso de trabajo en la carpeta de datos %s. Probablemente Bitcoin ya se está ejecutando. + + + + + Loading addresses... + Cargando direcciónes... + + + + Error loading addr.dat + + Error cargando addr.dat + + + + + Loading block index... + Cargando el index de bloques... + + + + Error loading blkindex.dat + + Error cargando blkindex.dat + + + + + Loading wallet... + Cargando cartera... + + + + Error loading wallet.dat: Wallet corrupted + + Error cargando wallet.dat: Cartera dañada + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Error cargando el archivo wallet.dat: Se necesita una versión mas nueva de Bitcoin + + + + + Error loading wallet.dat + + Error cargando wallet.dat + + + + + Rescanning... + Rescaneando... + + + + Done loading + Carga completa + + + + Invalid -proxy address + Dirección -proxy invalida + + + + Invalid amount for -paytxfee=<amount> + Cantidad inválida para -paytxfee=<amount> + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Precaución: -paytxfee es muy alta. Esta es la comisión que pagarás si envias una transacción. + + + + Error: CreateThread(StartNode) failed + Error: CreateThread(StartNode) fallido + + + + Warning: Disk space is low + Atención: Poco espacio en el disco duro + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + No es posible escuchar en el puerto %d en este ordenador. Probablemente Bitcoin ya se está ejecutando. + + + + 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? + Esta transacción supera el límite. Puedes seguir enviandola incluyendo una comisión de %s que se va a repartir entre los nodos que procesan su transacción y ayudan a mantener la red. ¿Quieres seguir con la transacción? + + + + Enter the current passphrase to the wallet. + Introduce la contraseña actual de la cartera. + + + + Passphrase + Contraseña + + + + Please supply the current wallet decryption passphrase. + Por favor introduce la contraseña actual de la cartera. + + + + The passphrase entered for the wallet decryption was incorrect. + La contraseña introducida para decriptar la cartera es incorrecta. + + + + Status + Estado + + + + Date + Fecha + + + + Description + Descripción + + + + Debit + Debito + + + + Credit + Credito + + + + Open for %d blocks + Abierto para %d bloques + + + + Open until %s + Abierto hasta %s + + + + %d/offline? + %d/fuera de linea? + + + + %d/unconfirmed + %d/no confirmado + + + + %d confirmations + %d confirmaciónes + + + + Generated + Generado + + + + Generated (%s matures in %d more blocks) + Generado (%s madura en %d bloques) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Generado - Cuidado: Este bloque no se recibió de otros nodos y probablemente no sea aceptado! + + + + Generated (not accepted) + Generado (no aceptado) + + + + From: + De: + + + + Received with: + Recibido con: + + + + Payment to yourself + Pago a ti mismo + + + + To: + Para: + + + + Generating + Generando + + + + (not connected) + (no conectado) + + + + %d connections %d blocks %d transactions + %d conexiones %d bloques %d transacciones + + + + Wallet already encrypted. + La cartera ya esta encriptada. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Introduce la nueva contraseña de cartera. +Por favor utiliza un contraseña de 10 o mas caracteres aleatorios, u ocho o mas palabras. + + + + Error: The supplied passphrase was too short. + Error: La contraseña introducida es demasiado corta. + + + + 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? + ATENCION: ¡Si encriptas tu cartera y pierdes la contraseña perderas TODOS TUS BITCOINS! +¿Estas seguro que quieres seguir encriptando la cartera? + + + + Please re-enter your new wallet passphrase. + Por favor vuelve introducir la nueva contraseña. + + + + Error: the supplied passphrases didn't match. + Error: las contraseñas no son identicas. + + + + Wallet encryption failed. + Encriptacion de cartera fallida. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Cartera Encriptada. +Recuerda que encriptando tu cartera no garantiza mantener a salvo tus bitcoins en caso de tener viruses en el ordenador. + + + + Wallet is unencrypted, please encrypt it first. + Cartera no encriptada, intenta encriptar primero. + + + + Enter the new passphrase for the wallet. + Introduce la nueva contraseña para la cartera. + + + + Re-enter the new passphrase for the wallet. + Reintroduce la nueva contraseña para la cartera. + + + + Wallet Passphrase Changed. + Contraseña de cartera cambiada. + + + + New Receiving Address + Nueva dirección de recepción + + + + You should use a new address for each payment you receive. + +Label + Debes usar una nueva dirección para cada pago que usted recibe. + +Etiqueta + + + + <b>Status:</b> + <b>Estado:</b> + + + + , has not been successfully broadcast yet + , no ha sido emitido satisfactoriamente todavía + + + + , broadcast through %d node + , emitido mediante %d nodo + + + + , broadcast through %d nodes + , emitido mediante %d nodos + + + + <b>Date:</b> + <b>Fecha:</b> + + + + <b>Source:</b> Generated<br> + <b>Fuente:</b> Generado<br> + + + + <b>From:</b> + <b>De:</b> + + + + unknown + desconocido + + + + <b>To:</b> + <b>Para:</b> + + + + (yours, label: + (tuya, etiqueta: + + + + (yours) + (tuya) + + + + <b>Credit:</b> + <b>Crédito:</b> + + + + (%s matures in %d more blocks) + (%s madura en %d bloques) + + + + (not accepted) + (no aceptada) + + + + <b>Debit:</b> + <b>Débito:</b> + + + + <b>Transaction fee:</b> + <b>Comisión transacción:</b> + + + + <b>Net amount:</b> + <b>Cantidad total:</b> + + + + Message: + Mensaje: + + + + Comment: + Comentario: + + + + 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. + Las monedas generadas deben esperar 120 bloques antes de ser gastadas. Cuando has generado este bloque se emitió a la red para ser agregado en la cadena de bloques. Si falla al incluirse en la cadena, cambiará a "no aceptado" y las monedas no se podrán gastar. Esto puede ocurrir ocasionalmente si otro nodo genera un bloque casi al mismo tiempo que el tuyo. + + + + Cannot write autostart/bitcoin.desktop file + No se puede escribir el fichero autostart/bitcoin.desktop + + + + Main + Principal + + + + &Start Bitcoin on window system startup + &Arranca Bitcoin al iniciar el sistema + + + + &Minimize on close + &Minimiza al cerrar + + + + version %s + versión %s + + + + Error in amount + Error en la cantidad + + + + Send Coins + Envia monedas + + + + Amount exceeds your balance + La cantidad sobrepasa tu balance + + + + Total exceeds your balance when the + El total sobrepasa tu balance cuando se + + + + transaction fee is included + incluyen las tasas de transacción + + + + Payment sent + Pago enviado + + + + Sending... + Enviando... + + + + Invalid address + Dirección inválida + + + + Sending %s to %s + Enviando %s a %s + + + + CANCELLED + CANCELADO + + + + Cancelled + Cancelado + + + + Transfer cancelled + Transferencia cancelada + + + + Error: + Error: + + + + Insufficient funds + Fondos insuficientes + + + + Connecting... + Conectando... + + + + Unable to connect + No es posible conectar + + + + Requesting public key... + Pidiendo clave pública... + + + + Received public key... + Clave pública recibida... + + + + Recipient is not accepting transactions sent by IP address + El destinatario no accepta transacciones enviadas a direcciones IP + + + + Transfer was not accepted + La transferencia no fue aceptada + + + + Invalid response received + Respuesta inválida recibida + + + + Creating transaction... + Creando transacción... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + Esta transacción requiere una comisión de al menos %s por su cantidad, complejidad o uso de fondos recibidos recientemente + + + + Transaction creation failed + Fallo al crear la transacción. + + + + Transaction aborted + Transacción abortada + + + + Lost connection, transaction cancelled + Conexión perdida, transacción cancelada + + + + Sending payment... + Enviando pago... + + + + 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. + La transacción fue rechazada. Esto puede haber ocurrido si alguna de las monedas ya estaba gastada o si ha usado una copia de wallet.dat y las monedas se gastaron en la copia pero no se han marcado como gastadas aqui. + + + + Waiting for confirmation... + Esperando confirmación... + + + + 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. + El pago se ha enviado, pero el receptor no pudo verificarlo. +La transacción se grabó y el saldo fue transferido, +pero la información de los comentarios quedará en blanco. + + + + Payment was sent, but an invalid response was received + El pago fue enviado, pero se recibió una respuesta inválida + + + + Payment completed + Pago completado + + + + Name + Nombre + + + + Address + Dirección + + + + Label + Etiqueta + + + + Bitcoin Address + Dirección Bitcoin + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + Esta es una de sus direcciones para recibir pagos y no puede incluirse en la libreta de direcciones. + + + + Edit Address + Edita dirección + + + + Edit Address Label + Edita etiqueta dirección + + + + Add Address + Agrega dirección + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Bitcoin - Generando + + + + Bitcoin - (not connected) + Bitcoin - (no conectado) + + + + &Open Bitcoin + &Abre Bitcoin + + + + &Send Bitcoins + &Envia Bitcoins + + + + O&ptions... + O&pciones + + + + E&xit + S&alir + + + + Program has crashed and will terminate. + El programa ha detectado un error y va a cerrarse. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Precaución: Por favor revisa que la fecha y hora de tu ordenador son correctas. Si tu reloj está mal Bitcoin no funcionará correctamente. + + + + beta + beta + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + diff --git a/src/qt/locale/bitcoin_hu.ts b/src/qt/locale/bitcoin_hu.ts new file mode 100644 index 0000000..bc48ed8 --- /dev/null +++ b/src/qt/locale/bitcoin_hu.ts @@ -0,0 +1,2340 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + A Bitcoinról + + + + <b>Bitcoin</b> version + <b>Bitcoin</b> verzió + + + + 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. + Szerzői jog © 2009-2011 Bitcoin Developers + +Ez egy kísérleti program. +MIT/X11 szoftverlicenc alatt kiadva, lásd a mellékelt fájlt license.txt vagy http://www.opensource.org/licenses/mit-license.php. + +Ez a termék az OpenSSL Project által lett kifejlesztve az OpenSSL Toolkit (http://www.openssl.org/) és kriptográfiai szoftvertben való felhasználásra, írta Eric Young (eay@cryptsoft.com) és UPnP szoftver, írta Thomas Bernard. + + + + AddressBookPage + + + Address Book + Címjegyzék + + + + 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. + Ezekkel a Bitcoin-címekkel fogadhatod kifizetéseket. Érdemes lehet minden egyes kifizető számára külön címet létrehozni, hogy könnyebben nyomon követhesd, kitől kaptál már pénzt. + + + + Double-click to edit address or label + Dupla-katt a cím vagy a címke szerkesztéséhez + + + + Create a new address + Új cím létrehozása + + + + &New Address... + &Új cím... + + + + Copy the currently selected address to the system clipboard + A kiválasztott cím másolása a vágólapra + + + + &Copy to Clipboard + &Másolás a vágólapra + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + A kiválasztott cím törlése a listáról. Csak a küldő címek törölhetőek. + + + + &Delete + &Törlés + + + + Export Address Book Data + Címjegyzék adatainak exportálása + + + + Comma separated file (*.csv) + Vesszővel elválasztott fájl (*. csv) + + + + Error exporting + Hiba exportálás közben + + + + Could not write to file %1. + %1 nevű fájl nem írható. + + + + AddressTableModel + + + Label + Címke + + + + Address + Cím + + + + (no label) + (nincs címke) + + + + AskPassphraseDialog + + + Dialog + Párbeszéd + + + + TextLabel + SzövegCímke + + + + Enter passphrase + Add meg a jelszót + + + + New passphrase + Új jelszó + + + + Repeat new passphrase + Új jelszó újra + + + + 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>. + Írd be az új jelszót a tárcához.<br/>Használj legalább 10<br/>véletlenszerű karaktert</b> vagy <b>legalább nyolc szót</b>. + + + + Encrypt wallet + Tárca kódolása + + + + This operation needs your wallet passphrase to unlock the wallet. + A tárcád megnyitásához a műveletnek szüksége van a tárcád jelszavára. + + + + Unlock wallet + Tárca megnyitása + + + + This operation needs your wallet passphrase to decrypt the wallet. + A tárcád dekódolásához a műveletnek szüksége van a tárcád jelszavára. + + + + Decrypt wallet + Tárca dekódolása + + + + Change passphrase + Jelszó megváltoztatása + + + + Enter the old and new passphrase to the wallet. + Írd be a tárca régi és új jelszavát. + + + + Confirm wallet encryption + Biztosan kódolni akarod a tárcát? + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + FIGYELEM: Ha kódolod a tárcát, és elveszíted a jelszavad, akkor <b>AZ ÖSSZES BITCOINODAT IS EL FOGOD VESZÍTENI!</b> +Biztosan kódolni akarod a tárcát? + + + + + Wallet encrypted + Tárca kódolva + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Ne feledd, hogy a tárca titkosítása sem nyújt teljes védelmet az adathalász programok fertőzésével szemben. + + + + + + + Wallet encryption failed + Tárca kódolása sikertelen. + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + Tárca kódolása belső hiba miatt sikertelen. A tárcád nem lett kódolva. + + + + + The supplied passphrases do not match. + A megadott jelszavak nem egyeznek. + + + + Wallet unlock failed + Tárca megnyitása sikertelen + + + + + + The passphrase entered for the wallet decryption was incorrect. + Hibás jelszó. + + + + Wallet decryption failed + Dekódolás sikertelen. + + + + Wallet passphrase was succesfully changed. + Jelszó megváltoztatva. + + + + BitcoinGUI + + + Bitcoin Wallet + Bitcoin-tárca + + + + Synchronizing with network... + Szinkronizálás a hálózattal... + + + + Block chain synchronization in progress + Blokklánc-szinkronizálás folyamatban + + + + &Overview + &Áttekintés + + + + Show general overview of wallet + Tárca általános áttekintése + + + + &Transactions + &Tranzakciók + + + + Browse transaction history + Tranzakciótörténet megtekintése + + + + &Address Book + Cím&jegyzék + + + + Edit the list of stored addresses and labels + Tárolt címek és címkék listájának szerkesztése + + + + &Receive coins + Érmék &fogadása + + + + Show the list of addresses for receiving payments + Kiizetést fogadó címek listája + + + + &Send coins + Érmék &küldése + + + + Send coins to a bitcoin address + Érmék küldése megadott címre + + + + E&xit + &Kilépés + + + + Quit application + Kilépés + + + + &About %1 + &A %1-ról + + + + Show information about Bitcoin + Információk a Bitcoinról + + + + &Options... + &Opciók... + + + + Modify configuration options for bitcoin + Bitcoin konfigurációs opciók + + + + Open &Bitcoin + A &Bitcoin megnyitása + + + + Show the Bitcoin window + A Bitcoin-ablak mutatása + + + + &Export... + &Exportálás... + + + + Export the current view to a file + Jelenlegi nézet exportálása fájlba + + + + &Encrypt Wallet + Tárca &kódolása + + + + Encrypt or decrypt wallet + Tárca kódolása vagy dekódolása + + + + &Change Passphrase + Jelszó &megváltoztatása + + + + Change the passphrase used for wallet encryption + Tárcakódoló jelszó megváltoztatása + + + + &File + &Fájl + + + + &Settings + &Beállítások + + + + &Help + &Súgó + + + + Tabs toolbar + Fül eszköztár + + + + Actions toolbar + Parancsok eszköztár + + + + [testnet] + [teszthálózat] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n aktív kapcsolat a Bitcoin-hálózattal%n aktív kapcsolat a Bitcoin-hálózattal + + + + Downloaded %1 of %2 blocks of transaction history. + %1 blokk letöltve a tranzakciótörténet %2 blokkjából. + + + + Downloaded %1 blocks of transaction history. + %1 blokk letöltve a tranzakciótörténetből. + + + + %n second(s) ago + %n másodperccel ezelőtt%n másodperccel ezelőtt + + + + %n minute(s) ago + %n perccel ezelőtt%n perccel ezelőtt + + + + %n hour(s) ago + %n órával ezelőtt%n órával ezelőtt + + + + %n day(s) ago + %n nappal ezelőtt%n nappal ezelőtt + + + + Up to date + Naprakész + + + + Catching up... + Frissítés... + + + + Last received block was generated %1. + Az utolsóként kapott blokk generálva: %1. + + + + 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? + Ez a tranzakció túllépi a mérethatárt, de %1 tranzakciós díj ellenében így is elküldheted. Ezt a plusz összeget a tranzakcióidat feldolgozó csomópontok kapják, így magát a hálózatot támogatod vele. Hajlandó vagy megfizetni a díjat? + + + + Sending... + Küldés... + + + + Sent transaction + Tranzakció elküldve. + + + + Incoming transaction + Beérkező tranzakció + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Dátum: %1 +Összeg: %2 +Típus: %3 +Cím: %4 + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + Tárca <b>kódolva</b> és jelenleg <b>nyitva</b>. + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + Tárca <b>kódolva</b> és jelenleg <b>zárva</b>. + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Mértékegység: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Válaszd ki az interfészen és érmék küldésekor megjelenítendő alapértelmezett alegységet. + + + + Display addresses in transaction list + Címek megjelenítése a tranzakciólistában + + + + EditAddressDialog + + + Edit Address + Cím szerkesztése + + + + &Label + Cím&ke + + + + The label associated with this address book entry + A címhez tartozó címke + + + + &Address + &Cím + + + + The address associated with this address book entry. This can only be modified for sending addresses. + Az ehhez a címjegyzék-bejegyzéshez tartozó cím. Ez csak a küldő címeknél módosítható. + + + + New receiving address + Új fogadó cím + + + + New sending address + Új küldő cím + + + + Edit receiving address + Fogadó cím szerkesztése + + + + Edit sending address + Küldő cím szerkesztése + + + + The entered address "%1" is already in the address book. + A megadott "%1" cím már szerepel a címjegyzékben. + + + + The entered address "%1" is not a valid bitcoin address. + A megadott "%1" cím nem egy érvényes Bitcoin-cím. + + + + Could not unlock wallet. + Tárca feloldása sikertelen + + + + New key generation failed. + Új kulcs generálása sikertelen + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Induljon el a számítógép bekapcsolásakor + + + + Automatically start Bitcoin after the computer is turned on + Induljon el a Bitcoin a számítógép bekapcsolásakor + + + + &Minimize to the tray instead of the taskbar + &Kicsinyítés a tálcára az eszköztár helyett + + + + Show only a tray icon after minimizing the window + Kicsinyítés után csak eszköztár-ikont mutass + + + + Map port using &UPnP + &UPnP port-feltérképezés + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + A Bitcoin-kliens portjának automatikus megnyitása a routeren. Ez csak akkor működik, ha a routered támogatja az UPnP-t és az engedélyezve is van rajta. + + + + M&inimize on close + K&icsinyítés záráskor + + + + 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. + Az alkalmazásból való kilépés helyett az eszköztárba kicsinyíti az alkalmazást az ablak bezárásakor. Ez esetben az alkalmazás csak a Kilépés menüponttal zárható be. + + + + &Connect through SOCKS4 proxy: + &Csatlakozás SOCKS4 proxyn keresztül: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + SOCKS4 proxyn keresztüli csatlakozás a Bitcoin hálózatához (pl. Tor-on keresztüli csatlakozás esetén) + + + + Proxy &IP: + Proxy &IP: + + + + IP address of the proxy (e.g. 127.0.0.1) + Proxy IP címe (pl.: 127.0.0.1) + + + + &Port: + &Port: + + + + Port of the proxy (e.g. 1234) + Proxy portja (pl.: 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Opcionális, kB-onkénti tranzakciós díj a tranzakcióid minél gyorsabb feldolgozásának elősegítésére. A legtöbb tranzakció 1 kB-os. 0,01 BTC ajánlott. + + + + Pay transaction &fee + Tranzakciós &díj fizetése + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Opcionális, kB-onkénti tranzakciós díj a tranzakcióid minél gyorsabb feldolgozásának elősegítésére. A legtöbb tranzakció 1 kB-os. 0,01 BTC ajánlott. + + + + OptionsDialog + + + Main + Fő + + + + Display + Megjelenítés + + + + Options + Opciók + + + + OverviewPage + + + Form + Å°rlap + + + + Balance: + Egyenleg: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Tranzakciók száma: + + + + 0 + 0 + + + + Unconfirmed: + Megerősítetlen: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Legutóbbi tranzakciók</b> + + + + Your current balance + Aktuális egyenleged + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Még megerősítésre váró, a jelenlegi egyenlegbe be nem számított tranzakciók + + + + Total number of transactions in wallet + Tárca összes tranzakcióinak száma + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Érmék küldése + + + + Send to multiple recipients at once + Küldés több címzettnek egyszerre + + + + &Add recipient... + &Címzett hozzáadása ... + + + + Clear all + Mindent töröl + + + + Balance: + Egyenleg: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Küldés megerősítése + + + + &Send + &Küldés + + + + <b>%1</b> to %2 (%3) + <b>%1</b> %2-re (%3) + + + + Confirm send coins + Küldés megerősítése + + + + Are you sure you want to send %1? + Valóban el akarsz küldeni %1-t? + + + + and + és + + + + The recepient address is not valid, please recheck. + A címzett címe érvénytelen, kérlek, ellenőrizd. + + + + The amount to pay must be larger than 0. + A fizetendő összegnek nagyobbnak kell lennie 0-nál. + + + + Amount exceeds your balance + Nincs ennyi bitcoin az egyenlegeden. + + + + Total exceeds your balance when the %1 transaction fee is included + A küldeni kívánt összeg és a %1 tranzakciós díj együtt meghaladja az egyenlegeden rendelkezésedre álló összeget. + + + + Duplicate address found, can only send to each address once in one send operation + Többször szerepel ugyanaz a cím. Egy küldési műveletben egy címre csak egyszer lehet küldeni. + + + + Error: Transaction creation failed + Hiba: nem sikerült létrehozni a tranzakciót + + + + 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. + Hiba: a tranzakciót elutasították. Ezt az okozhatja, ha már elköltöttél valamennyi érmét a tárcádból - például ha a wallet.dat-od egy másolatát használtad, és így az elköltés csak abban lett jelölve, de itt nem. + + + + SendCoinsEntry + + + Form + Å°rlap + + + + A&mount: + Összeg: + + + + Pay &To: + Címzett: + + + + + Enter a label for this address to add it to your address book + Milyen címkével kerüljön be ez a cím a címtáradba? + + + + + &Label: + Címke: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Címzett címe (pl.: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L ) + + + + Choose address from address book + Válassz egy címet a címjegyzékből + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Cím beillesztése a vágólapról + + + + Alt+P + Alt+P + + + + Remove this recipient + Címzett eltávolítása + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Adj meg egy Bitcoin-címet (pl.: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L ) + + + + TransactionDesc + + + Open for %1 blocks + Megnyitva %1 blokkra + + + + Open until %1 + Megnyitva %1-ig + + + + %1/offline? + %1/offline? + + + + %1/unconfirmed + %1/megerősítetlen + + + + %1 confirmations + %1 megerősítés + + + + <b>Status:</b> + <b>Állapot:</b> + + + + , has not been successfully broadcast yet + , még nem sikerült elküldeni. + + + + , broadcast through %1 node + , %1 csomóponton keresztül elküldve. + + + + , broadcast through %1 nodes + , elküldve %1 csomóponton keresztül. + + + + <b>Date:</b> + <b>Dátum:</b> + + + + <b>Source:</b> Generated<br> + <b>Forrás:</b> Generálva <br> + + + + + <b>From:</b> + <b>Å°rlap:</b> + + + + unknown + ismeretlen + + + + + + <b>To:</b> + <b>Címzett:</b> + + + + (yours, label: + (tiéd, címke: + + + + (yours) + (tiéd) + + + + + + + <b>Credit:</b> + <b>Jóváírás</b> + + + + (%1 matures in %2 more blocks) + (%1, %2 múlva készül el) + + + + (not accepted) + (elutasítva) + + + + + + <b>Debit:</b> + <b>Terhelés</b> + + + + <b>Transaction fee:</b> + <b>Tranzakciós díj:</b> + + + + <b>Net amount:</b> + <b>Nettó összeg:</b> + + + + Message: + Üzenet: + + + + Comment: + Megjegyzés: + + + + 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. + A frissen generált érméket csak 120 blokkal később tudod elkölteni. Ez a blokk nyomban szétküldésre került a hálózatba, amint legeneráltad, hogy hozzáadhassák a blokklánchoz. Ha nem kerül be a láncba, úgy az állapota "elutasítva"-ra módosul, és nem költheted el az érméket. Ez akkor következhet be időnként, ha egy másik csomópont mindössze néhány másodperc különbséggel generált le egy blokkot a tiédhez képest. + + + + TransactionDescDialog + + + Transaction details + Tranzakció részletei + + + + This pane shows a detailed description of the transaction + Ez a mező a tranzakció részleteit mutatja + + + + TransactionTableModel + + + Date + Dátum + + + + Type + Típus + + + + Address + Cím + + + + Amount + Összeg + + + + Open for %n block(s) + %n blokkra megnyitva%n blokkra megnyitva + + + + Open until %1 + %1-ig megnyitva + + + + Offline (%1 confirmations) + Offline (%1 megerősítés) + + + + Unconfirmed (%1 of %2 confirmations) + Megerősítetlen (%1 %2 megerősítésből) + + + + Confirmed (%1 confirmations) + Megerősítve (%1 megerősítés) + + + + Mined balance will be available in %n more blocks + %n blokk múlva lesz elérhető a bányászott egyenleg.%n blokk múlva lesz elérhető a bányászott egyenleg. + + + + This block was not received by any other nodes and will probably not be accepted! + Ezt a blokkot egyetlen másik csomópont sem kapta meg, így valószínűleg nem lesz elfogadva! + + + + Generated but not accepted + Legenerálva, de még el nem fogadva. + + + + Received with + Erre a címre + + + + Received from IP + Erről az IP-címről + + + + Sent to + Erre a címre + + + + Sent to IP + Erre az IP-címre: + + + + Payment to yourself + Magadnak kifizetve + + + + Mined + Kibányászva + + + + (n/a) + (nincs) + + + + Transaction status. Hover over this field to show number of confirmations. + Tranzakció állapota. Húzd ide a kurzort, hogy lásd a megerősítések számát. + + + + Date and time that the transaction was received. + Tranzakció fogadásának dátuma és időpontja. + + + + Type of transaction. + Tranzakció típusa. + + + + Destination address of transaction. + A tranzakció címzettjének címe. + + + + Amount removed from or added to balance. + Az egyenleghez jóváírt vagy ráterhelt összeg. + + + + TransactionView + + + + All + Mind + + + + Today + Mai + + + + This week + Ezen a héten + + + + This month + Ebben a hónapban + + + + Last month + Múlt hónapban + + + + This year + Ebben az évben + + + + Range... + Tartomány ... + + + + Received with + Erre a címre + + + + Sent to + Erre a címre + + + + To yourself + Magadnak + + + + Mined + Kibányászva + + + + Other + Más + + + + Enter address or label to search + Írd be a keresendő címet vagy címkét + + + + Min amount + Minimális összeg + + + + Copy address + Cím másolása + + + + Copy label + Címke másolása + + + + Edit label + Címke szerkesztése + + + + Show details... + Részletek... + + + + Export Transaction Data + Tranzakció adatainak exportálása + + + + Comma separated file (*.csv) + Vesszővel elválasztott fájl (*.csv) + + + + Confirmed + Megerősítve + + + + Date + Dátum + + + + Type + Típus + + + + Label + Címke + + + + Address + Cím + + + + Amount + Összeg + + + + ID + Azonosító + + + + Error exporting + Hiba lépett fel exportálás közben + + + + Could not write to file %1. + %1 fájlba való kiírás sikertelen. + + + + Range: + Tartomány: + + + + to + meddig + + + + WalletModel + + + Sending... + Küldés ... + + + + bitcoin-core + + + Bitcoin version + Bitcoin verzió + + + + Usage: + Használat: + + + + Send command to -server or bitcoind + + Parancs küldése a -serverhez vagy a bitcoindhez + + + + + List commands + + Parancsok kilistázása + + + + + Get help for a command + + Segítség egy parancsról + + + + + Options: + + Opciók + + + + + Specify configuration file (default: bitcoin.conf) + + Konfigurációs fájl (alapértelmezett: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + pid-fájl (alapértelmezett: bitcoind.pid) + + + + + Generate coins + + Érmék generálása + + + + + Don't generate coins + + Bitcoin-generálás leállítása + + + + + Start minimized + + Indítás lekicsinyítve + + + + + Specify data directory + + Adatkönyvtár + + + + + Specify connection timeout (in milliseconds) + + Csatlakozás időkerete (milliszekundumban) + + + + + Connect through socks4 proxy + + Csatlakozás SOCKS4 proxyn keresztül + + + + + Allow DNS lookups for addnode and connect + + DNS-kikeresés engedélyezése az addnode-nál és a connect-nél + + + + + Add a node to connect to + + Elérendő csomópont megadása + + + + + Connect only to the specified node + + Csatlakozás csak a megadott csomóponthoz + + + + + Don't accept connections from outside + + Külső csatlakozások elutasítása + + + + + Don't attempt to use UPnP to map the listening port + + UPnP-használat letiltása a figyelő port feltérképezésénél + + + + + Attempt to use UPnP to map the listening port + + UPnP-használat engedélyezése a figyelő port feltérképezésénél + + + + + Fee per kB to add to transactions you send + + kB-onként felajánlandó díj az általad küldött tranzakciókhoz + + + + + Accept command line and JSON-RPC commands + + Parancssoros és JSON-RPC parancsok elfogadása + + + + + Run in the background as a daemon and accept commands + + Háttérben futtatás daemonként és parancsok elfogadása + + + + + Use the test network + + Teszthálózat használata + + + + + Username for JSON-RPC connections + + Felhasználói név JSON-RPC csatlakozásokhoz + + + + + Password for JSON-RPC connections + + Jelszó JSON-RPC csatlakozásokhoz + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + JSON-RPC csatlakozásokhoz figyelendő <port> (alapértelmezett: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + JSON-RPC csatlakozások engedélyezése meghatározott IP-címről + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Parancsok küldése <ip> címen működő csomóponthoz (alapértelmezett: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Kulcskarika mérete <n> (alapértelmezett: 100) + + + + + Rescan the block chain for missing wallet transactions + + Blokklánc újraszkennelése hiányzó tárca-tranzakciók után + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + +SSL-opciók: (lásd a Bitcoin Wiki SSL-beállítási instrukcióit) + + + + + Use OpenSSL (https) for JSON-RPC connections + + OpenSSL (https) használata JSON-RPC csatalkozásokhoz + + + + + Server certificate file (default: server.cert) + + Szervertanúsítvány-fájl (alapértelmezett: server.cert) + + + + + Server private key (default: server.pem) + + Szerver titkos kulcsa (alapértelmezett: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Elfogadható rejtjelkulcsok (alapértelmezett: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH ) + + + + + This help message + + Ez a súgó-üzenet + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + Az %s adatkönyvtár nem zárható. A Bitcoin valószínűleg fut már. + + + + Loading addresses... + Címek betöltése... + + + + Error loading addr.dat + + Hiba az addr.dat betöltése közben + + + + + Loading block index... + Blokkindex betöltése... + + + + Error loading blkindex.dat + + Hiba a blkindex.dat betöltése közben + + + + + Loading wallet... + Tárca betöltése... + + + + Error loading wallet.dat: Wallet corrupted + + Hiba a wallet.dat betöltése közben: meghibásodott tárca + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Hiba a wallet.dat betöltése közben: ehhez a tárcához újabb verziójú Bitcoin-kliens szükséges + + + + + Error loading wallet.dat + + Hiba a wallet.dat betöltése közben + + + + + Rescanning... + Újraszkennelés... + + + + Done loading + Betöltés befejezve. + + + + Invalid -proxy address + Érvénytelen -proxy cím + + + + Invalid amount for -paytxfee=<amount> + Étvénytelen -paytxfee=<összeg> összeg + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Figyelem: a -paytxfee nagyon magas. Ennyi tranzakciós díjat fogsz fizetni, ha elküldöd a tranzakciót. + + + + Error: CreateThread(StartNode) failed + Hiba: CreateThread(StartNode) sikertelen + + + + Warning: Disk space is low + Figyelem: kevés a hely a lemezen. + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + A %d port nem elérhető ezen a gépen. A Bitcoin valószínűleg fut már. + + + + 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? + Ez a tranzakció túllépi a mérethatárt, de %s tranzakciós díj ellenében így is elküldheted. Ezt a plusz összeget a tranzakcióidat feldolgozó csomópontok kapják, így magát a hálózatot támogatod vele. Hajlandó vagy megfizetni a díjat? + + + + Enter the current passphrase to the wallet. + Add meg a tárca jelenlegi jelszavát. + + + + Passphrase + Jelszó: + + + + Please supply the current wallet decryption passphrase. + Add meg a tárca jelenlegi dekódoló jelszavát. + + + + The passphrase entered for the wallet decryption was incorrect. + A megadott tárca-dekódoló jelszó helytelen. + + + + Status + Állapot + + + + Date + Dátum + + + + Description + Leírás + + + + Debit + Terhelés + + + + Credit + Jóváírás + + + + Open for %d blocks + %d blokkra megnyitva + + + + Open until %s + %s-ig megnyitva + + + + %d/offline? + %d/offline? + + + + %d/unconfirmed + %d/megerősítetlen + + + + %d confirmations + %d megerősítés + + + + Generated + Legenerálva + + + + Generated (%s matures in %d more blocks) + Legenerálva (%s érett %d blokkból) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Legenerálva - Figyelem: Ezt a blokkot egyetlen másik csomópont sem kapta meg, így valószínűleg nem lesz elfogadva! + + + + Generated (not accepted) + Legenerálva (elutasítva) + + + + From: + Küldő: + + + + Received with: + Erre a címre: + + + + Payment to yourself + Magadnak kifizetve + + + + To: + Címzett: + + + + Generating + Generálás + + + + (not connected) + (nincs kapcsolat) + + + + %d connections %d blocks %d transactions + %d kapcsolat %d blokk %d tranzakció + + + + Wallet already encrypted. + A tárca már kódolt. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Add meg a tárca új jelszavát. +Használj 10 vagy több véletlenszerű karaktert, vagy nyolc vagy több szót. + + + + Error: The supplied passphrase was too short. + Hiba: a megadott jelszó túl rövid. + + + + 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? + FIGYELEM: Ha lekódolod a tárcátm és elveszíted a jelszavad, úgy AZ ÖSSZES BITCOINODAT IS EL FOGOD VESZÍTENI! +Valóban szeretnéd lekódolni a tárcádat? + + + + Please re-enter your new wallet passphrase. + Add meg az új jelszavadat a tárcádhoz. + + + + Error: the supplied passphrases didn't match. + Hiba: a megadott jelszavak nem egyeznek. + + + + Wallet encryption failed. + Tárcakódolás sikertelen. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Tárca lekódolva. +Ne feledd, hogy a gépedet megfertőző ártalmas programokkal szemben a tárcakódolás sem nyújt teljes védelmet. + + + + Wallet is unencrypted, please encrypt it first. + A tárca még nincs lekódolva. Előbb kódold le. + + + + Enter the new passphrase for the wallet. + Add meg a tárca új jelszavát. + + + + Re-enter the new passphrase for the wallet. + Add meg újra a tárca jelszavát. + + + + Wallet Passphrase Changed. + Tárca jelszava megváltoztatva. + + + + New Receiving Address + Új fogadó cím. + + + + You should use a new address for each payment you receive. + +Label + Érdemes minden fizetést új címmel fogadnod. + +Címke + + + + <b>Status:</b> + <b>Állapot</b> + + + + , has not been successfully broadcast yet + , még nem sikerült elküldeni. + + + + , broadcast through %d node + , elküldve %d csomóponton keresztül + + + + , broadcast through %d nodes + , elküldve %d csomóponton keresztül + + + + <b>Date:</b> + <b>Dátum:</b> + + + + <b>Source:</b> Generated<br> + <b>Forrás:</b> Legenerálva<br> + + + + <b>From:</b> + <b>Küldő:</b> + + + + unknown + ismeretlen + + + + <b>To:</b> + <b>Címzett:</b> + + + + (yours, label: + (tiéd, címke: + + + + (yours) + (tiéd) + + + + <b>Credit:</b> + <b>Jóváírás:</b> + + + + (%s matures in %d more blocks) + (%s, %d blokk múlva készül el) + + + + (not accepted) + (elutasítva) + + + + <b>Debit:</b> + <b>Terhelés:</b> + + + + <b>Transaction fee:</b> + <b>Tranzakciós díj:</b> + + + + <b>Net amount:</b> + <b>Nettó összeg:</b> + + + + Message: + Üzenet: + + + + Comment: + Megjegyzés: + + + + 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. + A frissen generált érméket csak 120 blokkal később tudod elkölteni. Ez a blokk nyomban szétküldésre került a hálózatba, amint legeneráltad, hogy hozzáadhassák a blokklánchoz. Ha nem kerül be a láncba, úgy az állapota "elutasítva"-ra módosul, és nem költheted el az érméket. Ez akkor következhet be időnként, ha egy másik csomópont mindössze néhány másodperc különbséggel generált le egy blokkot a tiédhez képest. + + + + Cannot write autostart/bitcoin.desktop file + Az autostart/bitcoin.desktop fájl nem írható. + + + + Main + Fő + + + + &Start Bitcoin on window system startup + A Bitcoin &indítása a rendszer indulásakor + + + + &Minimize on close + &Kicsinyítés záráskor + + + + version %s + %s verzió + + + + Error in amount + Hiba az összegben + + + + Send Coins + Érmék küldése + + + + Amount exceeds your balance + Nincs ennyi bitcoinod. + + + + Total exceeds your balance when the + Az összeg és a tranzakciós díj együtt + + + + transaction fee is included + meghaladja az egyenlegedet. + + + + Payment sent + Elküldve. + + + + Sending... + Küldés... + + + + Invalid address + Érvénytelen cím + + + + Sending %s to %s + %s küldése ide: %s + + + + CANCELLED + MEGSZAKÍTVA + + + + Cancelled + Megszakítva + + + + Transfer cancelled + Átutalás megszakítva + + + + Error: + Hiba: + + + + Insufficient funds + Nincs elég bitcoinod. + + + + Connecting... + Csatlakozás... + + + + Unable to connect + Csatlakozás sikertelen. + + + + Requesting public key... + Nyilvános kulcs kérése... + + + + Received public key... + Nyilvános kulcs fogadva... + + + + Recipient is not accepting transactions sent by IP address + A címzett nem fogad IP-címre küldött tranzakciókat. + + + + Transfer was not accepted + Az átutalást elutasították. + + + + Invalid response received + Érvénytelen válasz + + + + Creating transaction... + Tranzakció létrehozása... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + Ehhez a tranzakcióhoz legalább %s díj szükséges az összege, az összetettsége vagy frissen kapott bitcoinok használata miatt. + + + + Transaction creation failed + Tranzakció létrehozása sikertelen. + + + + Transaction aborted + Tranzakció megszakítva. + + + + Lost connection, transaction cancelled + Megszakadt a kapcsolat, tranzakció megszakítva. + + + + Sending payment... + Küldés... + + + + 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. + A tranzakciót elutasították. Ezt az okozhatja, ha már elköltöttél valamennyi érmét a tárcádból - például ha a wallet.dat-od egy másolatát használtad, és így az elköltés csak abban lett jelölve, de itt nem. + + + + Waiting for confirmation... + Várakozás megerősítésre... + + + + 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. + A bitcoinok el lettek küldve, de a címzett nem tudta ellenőrizni. +A tranzakció feljegyzésre került és jóvá lesz írva a címzettnek, +de a megjegyzés-információ üres lesz. + + + + Payment was sent, but an invalid response was received + A bitcoinok el lettek küldve, de érvénytelen válasz érkezett a küldésre. + + + + Payment completed + Sikeresen elküldve. + + + + Name + Név + + + + Address + Cím + + + + Label + Címke + + + + Bitcoin Address + Bitcoin-cím + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + Ez az egyik saját fogadó címed, ezért nem jegyezhető be a címtárba. + + + + Edit Address + Cím szerkesztése + + + + Edit Address Label + Cím címkéjének szerkesztése + + + + Add Address + Cím hozzáadása + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Bitcoin - generálás + + + + Bitcoin - (not connected) + Bitcoin - (nincs kapcsolat) + + + + &Open Bitcoin + Bitcoin megnyitása + + + + &Send Bitcoins + Küldés + + + + O&ptions... + O&pciók... + + + + E&xit + &Kilépés + + + + Program has crashed and will terminate. + A program összeomlott és kikapcsol. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Figyelem: Ellenőrizd, hogy helyesen van-e beállítva a gépeden a dátum és az idő. A Bitcoin nem fog megfelelően működni, ha rosszul van beállítvaaz órád. + + + + beta + béta + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + \ No newline at end of file diff --git a/src/qt/locale/bitcoin_it.ts b/src/qt/locale/bitcoin_it.ts new file mode 100644 index 0000000..02d0baa --- /dev/null +++ b/src/qt/locale/bitcoin_it.ts @@ -0,0 +1,2340 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + Info su Bitcoin + + + + <b>Bitcoin</b> version + Versione di <b>Bitcoin</b> + + + + 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. + Copyright © 2009-2011 Bitcoin Developers + +Questo è un software sperimentale. + +Distribuito sotto la licenza software MIT/X11, guarda il file license.txt incluso oppure su http://www.opensource.org/licenses/mit-license.php. + +Questo prodotto include software sviluppato dal progetto OpenSSL per l&apos;uso del Toolkit OpenSSL (http://www.openssl.org/), software crittografico scritto da Eric Young (eay@cryptsoft.com) e software UPnP scritto da Thomas Bernard. + + + + AddressBookPage + + + Address Book + Rubrica + + + + 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. + Questi sono i tuoi indirizzi Bitcoin per ricevere pagamenti. Potrai darne uno diverso ad ognuno per tenere così traccia di chi ti sta pagando. + + + + Double-click to edit address or label + Fai doppio click per modificare o cancellare l'etichetta + + + + Create a new address + Crea un nuovo indirizzo + + + + &New Address... + &Nuovo indirizzo... + + + + Copy the currently selected address to the system clipboard + Copia l'indirizzo attualmente selezionato nella clipboard + + + + &Copy to Clipboard + &Copia nella clipboard + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Cancella l'indirizzo attualmente selezionato dalla lista. Solo indirizzi d'invio possono essere cancellati. + + + + &Delete + &Cancella + + + + Export Address Book Data + Esporta gli indirizzi della rubrica + + + + Comma separated file (*.csv) + Testo CSV (*.csv) + + + + Error exporting + Errore nell'esportazione + + + + Could not write to file %1. + Impossibile scrivere sul file %1. + + + + AddressTableModel + + + Label + Etichetta + + + + Address + Indirizzo + + + + (no label) + (nessuna etichetta) + + + + AskPassphraseDialog + + + Dialog + Dialogo + + + + TextLabel + Etichetta + + + + Enter passphrase + Inserisci la passphrase + + + + New passphrase + Nuova passphrase + + + + Repeat new passphrase + Ripeti la passphrase + + + + 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>. + Inserisci la passphrase per il portamonete.<br/>Per piacere usare unapassphrase di <b>10 o più caratteri casuali</b>, o <b>otto o più parole</b>. + + + + Encrypt wallet + Cifra il portamonete + + + + This operation needs your wallet passphrase to unlock the wallet. + Quest'operazione necessita della passphrase per sbloccare il portamonete. + + + + Unlock wallet + Sblocca il portamonete + + + + This operation needs your wallet passphrase to decrypt the wallet. + Quest'operazione necessita della passphrase per decifrare il portamonete, + + + + Decrypt wallet + Decifra il portamonete + + + + Change passphrase + Cambia la passphrase + + + + Enter the old and new passphrase to the wallet. + Inserisci la vecchia e la nuova passphrase per il portamonete. + + + + Confirm wallet encryption + Conferma la cifratura del portamonete + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + ATTENZIONE: se si cifra il portamonete e si perde la frase d'ordine, <b>SI PERDERANNO TUTTI I PROPRI BITCOIN</b>! +Si è sicuri di voler cifrare il portamonete? + + + + + Wallet encrypted + Portamonete cifrato + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Ricorda che la cifratura del portamonete non protegge del tutto i tuoi bitcoin dal furto da parte di malware che infettasse il tuo computer. + + + + + + + Wallet encryption failed + Cifratura del portamonete fallita + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + Cifratura del portamonete fallita a causa di un errore interno. Il portamonete non è stato cifrato. + + + + + The supplied passphrases do not match. + Le passphrase inserite non corrispondono. + + + + Wallet unlock failed + Sblocco del portamonete fallito + + + + + + The passphrase entered for the wallet decryption was incorrect. + La passphrase inserita per la decifrazione del portamonete è errata. + + + + Wallet decryption failed + Decifrazione del portamonete fallita + + + + Wallet passphrase was succesfully changed. + Passphrase del portamonete modificata con successo. + + + + BitcoinGUI + + + Bitcoin Wallet + Portamonete di bitcoin + + + + Synchronizing with network... + Sto sincronizzando con la rete... + + + + Block chain synchronization in progress + sincronizzazione della catena di blocchi in corso + + + + &Overview + &Sintesi + + + + Show general overview of wallet + Mostra lo stato generale del portamonete + + + + &Transactions + &Transazioni + + + + Browse transaction history + Cerca nelle transazioni + + + + &Address Book + &Rubrica + + + + Edit the list of stored addresses and labels + Modifica la lista degli indirizzi salvati e delle etichette + + + + &Receive coins + &Ricevi monete + + + + Show the list of addresses for receiving payments + Mostra la lista di indirizzi su cui ricevere pagamenti + + + + &Send coins + &Invia monete + + + + Send coins to a bitcoin address + Invia monete ad un indirizzo bitcoin + + + + E&xit + &Esci + + + + Quit application + Chiudi applicazione + + + + &About %1 + &Informazioni su %1 + + + + Show information about Bitcoin + Mostra informazioni su Bitcoin + + + + &Options... + &Opzioni... + + + + Modify configuration options for bitcoin + Modifica configurazione opzioni per bitcoin + + + + Open &Bitcoin + Apri &Bitcoin + + + + Show the Bitcoin window + Mostra la finestra Bitcoin + + + + &Export... + &Esporta... + + + + Export the current view to a file + Esporta la visualizzazione corrente su file + + + + &Encrypt Wallet + &Cifra il portamonete + + + + Encrypt or decrypt wallet + Cifra o decifra il portamonete + + + + &Change Passphrase + &Cambia la passphrase + + + + Change the passphrase used for wallet encryption + Cambia la passphrase per la cifratura del portamonete + + + + &File + &File + + + + &Settings + &Impostazioni + + + + &Help + &Aiuto + + + + Tabs toolbar + Barra degli strumenti "Tabs" + + + + Actions toolbar + Barra degli strumenti "Azioni" + + + + [testnet] + [testnet] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n connessione attiva alla rete Bitcoin%n connessioni attive alla rete Bitcoin + + + + Downloaded %1 of %2 blocks of transaction history. + Scaricati %1 dei %2 blocchi dello storico transazioni. + + + + Downloaded %1 blocks of transaction history. + Scaricati %1 blocchi dello storico transazioni. + + + + %n second(s) ago + %n secondo fa%n secondi fa + + + + %n minute(s) ago + %n minuto fa%n minuti fa + + + + %n hour(s) ago + %n ora fa%n ore fa + + + + %n day(s) ago + %n giorno fa%n giorni fa + + + + Up to date + Aggiornato + + + + Catching up... + In aggiornamento... + + + + Last received block was generated %1. + L'ultimo blocco ricevuto è stato generato %1 + + + + 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? + Questa transazione è superiore al limite di dimensione. È comunque possibile inviarla con una commissione di %1, che va ai nodi che processano la tua transazione e contribuisce a sostenere la rete. Vuoi pagare la commissione? + + + + Sending... + Invio... + + + + Sent transaction + Transazione inviata + + + + Incoming transaction + Transazione ricevuta + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Data: %1 +Quantità: %2 +Tipo: %3 +Indirizzo: %4 + + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + Il portamonete è <b>cifrato</b> e attualmente <b>sbloccato</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + Il portamonete è <b>cifrato</b> e attualmente <b>bloccato</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Unità di misura degli importi in: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Scegli l'unità di suddivisione di default per l'interfaccia e per l'invio di monete + + + + Display addresses in transaction list + Mostra gli indirizzi nella lista delle transazioni + + + + EditAddressDialog + + + Edit Address + Modifica l'indirizzo + + + + &Label + &Etichetta + + + + The label associated with this address book entry + L'etichetta associata a questo indirizzo nella rubrica + + + + &Address + &Indirizzo + + + + The address associated with this address book entry. This can only be modified for sending addresses. + L'indirizzo associato a questa voce della rubrica. Si può modificare solo negli indirizzi di spedizione. + + + + New receiving address + Nuovo indirizzo di ricezione + + + + New sending address + Nuovo indirizzo d'invio + + + + Edit receiving address + Modifica indirizzo di ricezione + + + + Edit sending address + Modifica indirizzo d'invio + + + + The entered address "%1" is already in the address book. + L'indirizzo inserito "%1" è già in rubrica. + + + + The entered address "%1" is not a valid bitcoin address. + L'indirizzo inserito "%1" non è un indirizzo bitcoin valido. + + + + Could not unlock wallet. + Impossibile sbloccare il portamonete. + + + + New key generation failed. + Generazione della nuova chiave non riuscita. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Fai partire Bitcoin all'avvio del sistema + + + + Automatically start Bitcoin after the computer is turned on + Avvia automaticamente Bitcoin all'accensione del computer + + + + &Minimize to the tray instead of the taskbar + &Minimizza sul tray invece che sulla barra delle applicazioni + + + + Show only a tray icon after minimizing the window + Mostra solo un'icona nel tray quando si minimizza la finestra + + + + Map port using &UPnP + Mappa le porte tramite l'&UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Apri automaticamente la porta del client Bitcoin sul router. Questo funziona solo se il router supporta UPnP ed è abilitato. + + + + M&inimize on close + M&inimizza alla chiusura + + + + 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. + Riduci ad icona, invece di uscire dall'applicazione quando la finestra viene chiusa. Quando questa opzione è attivata, l'applicazione verrà chiusa solo dopo aver selezionato Esci nel menu. + + + + &Connect through SOCKS4 proxy: + &Collegati tramite SOCKS4 proxy: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Connettiti alla rete Bitcon attraverso un proxy SOCKS4 (ad esempio quando ci si collega via Tor) + + + + Proxy &IP: + &IP del proxy: + + + + IP address of the proxy (e.g. 127.0.0.1) + Indirizzo IP del proxy (ad esempio 127.0.0.1) + + + + &Port: + &Porta: + + + + Port of the proxy (e.g. 1234) + Porta del proxy (es. 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Commissione di transazione per ogni kB; è opzionale e contribuisce ad assicurare che le transazioni siano elaborate velocemente. La maggior parte delle transazioni è 1kB. Commissione raccomandata 0,01. + + + + Pay transaction &fee + Paga la &commissione + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Commissione di transazione per ogni kB; è opzionale e contribuisce ad assicurare che le transazioni siano elaborate velocemente. La maggior parte delle transazioni è 1kB. Commissione raccomandata 0,01. + + + + OptionsDialog + + + Main + Principale + + + + Display + Mostra + + + + Options + Opzioni + + + + OverviewPage + + + Form + Modulo + + + + Balance: + Saldo + + + + 123.456 BTC + 123,456 BTC + + + + Number of transactions: + Numero di transazioni: + + + + 0 + 0 + + + + Unconfirmed: + Non confermato: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">⏎ +<html><head><meta name="qrichtext" content="1" /><style type="text/css">⏎ +p, li { white-space: pre-wrap; }⏎ +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;">⏎ +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Transazioni recenti</b> + + + + Your current balance + Saldo attuale + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Totale delle transazioni in corso di conferma, che non sono ancora incluse nel saldo attuale + + + + Total number of transactions in wallet + Numero delle transazioni effettuate + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Spedisci Bitcoin + + + + Send to multiple recipients at once + Spedisci a diversi beneficiari in una volta sola + + + + &Add recipient... + &Aggiungi beneficiario... + + + + Clear all + Cancella tutto + + + + Balance: + Saldo: + + + + 123.456 BTC + 123,456 BTC + + + + Confirm the send action + Conferma la spedizione + + + + &Send + &Spedisci + + + + <b>%1</b> to %2 (%3) + <b>%1</b> to %2 (%3) + + + + Confirm send coins + Conferma la spedizione di bitcoin + + + + Are you sure you want to send %1? + Si è sicuri di voler spedire %1? + + + + and + e + + + + The recepient address is not valid, please recheck. + L'indirizzo del beneficiario non è valido, per cortesia controlla. + + + + The amount to pay must be larger than 0. + L'importo da pagare dev'essere maggiore di 0. + + + + Amount exceeds your balance + L'importo è superiore al saldo attuale + + + + Total exceeds your balance when the %1 transaction fee is included + Il totale è superiore al saldo attuale includendo la commissione %1 + + + + Duplicate address found, can only send to each address once in one send operation + Trovato un indirizzo doppio, si può spedire solo una volta a ciascun indirizzo in una singola operazione. + + + + Error: Transaction creation failed + Errore: creazione della transazione fallita + + + + 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. + Errore: la transazione è stata rifiutata. Ciò accade se alcuni bitcoin nel portamonete sono stati già spesi, ad esempio se è stata usata una copia del file wallet.dat e i bitcoin sono stati spesi dalla copia ma non segnati come spesi qui. + + + + SendCoinsEntry + + + Form + Modulo + + + + A&mount: + &Importo: + + + + Pay &To: + Paga &a: + + + + + Enter a label for this address to add it to your address book + Inserisci un'etichetta per questo indirizzo, per aggiungerlo nella rubrica + + + + &Label: + &Etichetta + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + L'indirizzo del beneficiario cui inviare il pagamento (ad esempio 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + Scegli l'indirizzo dalla rubrica + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Incollare l'indirizzo dagli appunti + + + + Alt+P + Alt+P + + + + Remove this recipient + Rimuovere questo beneficiario + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Inserisci un indirizzo Bitcoin (ad esempio 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + Aperto per %1 blocchi + + + + Open until %1 + Aperto fino a %1 + + + + %1/offline? + %1/offline? + + + + %1/unconfirmed + %1/non confermato + + + + %1 confirmations + %1 conferme + + + + <b>Status:</b> + <b>Stato:</b> + + + + , has not been successfully broadcast yet + , non è stato ancora trasmesso con successo + + + + , broadcast through %1 node + , trasmesso attraverso %1 nodo + + + + , broadcast through %1 nodes + , trasmesso attraverso %1 nodi + + + + <b>Date:</b> + <b>Data:</b> + + + + <b>Source:</b> Generated<br> + <b>Fonte:</b> Generato<br> + + + + + <b>From:</b> + <b>Da:</b> + + + + unknown + sconosciuto + + + + + + <b>To:</b> + <b>Per:</b> + + + + (yours, label: + (vostro, etichetta: + + + + (yours) + (vostro) + + + + + + + <b>Credit:</b> + <b>Credito:</b> + + + + (%1 matures in %2 more blocks) + (%1 matura in altri %2 blocchi) + + + + (not accepted) + (non accettate) + + + + + + <b>Debit:</b> + <b>Debito:</b> + + + + <b>Transaction fee:</b> + <b>Commissione:</b> + + + + <b>Net amount:</b> + <b>Importo netto:</b> + + + + Message: + Messaggio: + + + + Comment: + Commento: + + + + 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. + Bisogna attendere 120 blocchi prima di spendere I bitcoin generati. Quando è stato generato questo blocco, è stato trasmesso alla rete per aggiungerlo alla catena di blocchi. Se non riesce a entrare nella catena, verrà modificato in "non accettato" e non sarà spendibile. Questo può accadere a volte, se un altro nodo genera un blocco entro pochi secondi del tuo. + + + + TransactionDescDialog + + + Transaction details + Dettagli sulla transazione + + + + This pane shows a detailed description of the transaction + Questo pannello mostra una descrizione dettagliata della transazione + + + + TransactionTableModel + + + Date + Data + + + + Type + Tipo + + + + Address + Indirizzo + + + + Amount + Importo + + + + Open for %n block(s) + Aperto per %n bloccoAperto per %n blocchi + + + + Open until %1 + Aperto fino a %1 + + + + Offline (%1 confirmations) + Offline (%1 conferme) + + + + Unconfirmed (%1 of %2 confirmations) + Non confermati (%1 su %2 conferme) + + + + Confirmed (%1 confirmations) + Confermato (%1 conferme) + + + + Mined balance will be available in %n more blocks + Il saldo generato sarà disponibile tra %n altro bloccoIl saldo generato sarà disponibile tra %n altri blocchi + + + + This block was not received by any other nodes and will probably not be accepted! + Questo blocco non è stato ricevuto da altri nodi e probabilmente non sarà accettato! + + + + Generated but not accepted + Generati, ma non accettati + + + + Received with + Ricevuto tramite + + + + Received from IP + Ricevuto da IP + + + + Sent to + Spedito a + + + + Sent to IP + Inviato a IP + + + + Payment to yourself + Pagamento a te stesso + + + + Mined + Ottenuto dal mining + + + + (n/a) + (N / a) + + + + Transaction status. Hover over this field to show number of confirmations. + Stato della transazione. Passare con il mouse su questo campo per vedere il numero di conferme. + + + + Date and time that the transaction was received. + Data e ora in cui la transazione è stata ricevuta. + + + + Type of transaction. + Tipo di transazione. + + + + Destination address of transaction. + Indirizzo di destinazione della transazione. + + + + Amount removed from or added to balance. + Importo rimosso o aggiunto al saldo. + + + + TransactionView + + + + All + Tutti + + + + Today + Oggi + + + + This week + Questa settimana + + + + This month + Questo mese + + + + Last month + Il mese scorso + + + + This year + Quest'anno + + + + Range... + Intervallo... + + + + Received with + Ricevuto tramite + + + + Sent to + Spedito a + + + + To yourself + A te + + + + Mined + Ottenuto dal mining + + + + Other + Altro + + + + Enter address or label to search + Inserisci un indirizzo o un'etichetta da cercare + + + + Min amount + Importo minimo + + + + Copy address + Copia l'indirizzo + + + + Copy label + Copia l'etichetta + + + + Edit label + Modifica l'etichetta + + + + Show details... + Mostra i dettagli... + + + + Export Transaction Data + Esporta i dati della transazione + + + + Comma separated file (*.csv) + Testo CSV (*.csv) + + + + Confirmed + Confermato + + + + Date + Data + + + + Type + Tipo + + + + Label + Etichetta + + + + Address + Indirizzo + + + + Amount + Importo + + + + ID + ID + + + + Error exporting + Errore nell'esportazione + + + + Could not write to file %1. + Impossibile scrivere sul file %1. + + + + Range: + Intervallo: + + + + to + a + + + + WalletModel + + + Sending... + Invio... + + + + bitcoin-core + + + Bitcoin version + Versione di Bitcoin + + + + Usage: + Utilizzo: + + + + Send command to -server or bitcoind + + Manda il comando a -server o bitcoind + + + + + List commands + + Lista comandi + + + + + Get help for a command + + Aiuto su un comando + + + + + Options: + + Opzioni: + + + + + Specify configuration file (default: bitcoin.conf) + + Specifica il file di configurazione (di default: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + Specifica il file pid (default: bitcoind.pid) + + + + + Generate coins + + Genera Bitcoin + + + + + Don't generate coins + + Non generare Bitcoin + + + + + Start minimized + + Parti in icona + + + + + Specify data directory + + Specifica la cartella dati + + + + + Specify connection timeout (in milliseconds) + + Specifica il timeout di connessione (in millisecondi) + + + + + Connect through socks4 proxy + + Connessione tramite socks4 proxy + + + + + Allow DNS lookups for addnode and connect + + Consenti ricerche DNS per aggiungere nodi e collegare + + + + + Add a node to connect to + + Aggiungi un nodo e connetti a + + + + + Connect only to the specified node + + Connetti solo al nodo specificato + + + + + Don't accept connections from outside + + Non accettare connessioni dall'esterno + + + + + Don't attempt to use UPnP to map the listening port + + Non usare l'UPnP per mappare la porta + + + + + Attempt to use UPnP to map the listening port + + Prova ad usare l'UPnp per mappare la porta + + + + + Fee per kB to add to transactions you send + + Commissione al kB da aggiungere alle transazioni in uscita + + + + + Accept command line and JSON-RPC commands + + Accetta da linea di comando e da comandi JSON-RPC + + + + + Run in the background as a daemon and accept commands + + Esegui in background come demone e accetta i comandi + + + + + Use the test network + + Utilizza la rete di prova + + + + + Username for JSON-RPC connections + + Nome utente per connessioni JSON-RPC + + + + + Password for JSON-RPC connections + + Password per connessioni JSON-RPC + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Attendi le connessioni JSON-RPC su <porta> (default: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + Consenti connessioni JSON-RPC dall'indirizzo IP specificato + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Inviare comandi al nodo in esecuzione su <ip> (default: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Impostare la quantità di chiavi di riserva a <n> (default: 100) + + + + + Rescan the block chain for missing wallet transactions + + Ripeti analisi della catena dei blocchi per cercare le transazioni mancanti dal portamonete + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + +Opzioni SSL: (vedi il wiki di Bitcoin per le istruzioni di configurazione SSL) + + + + + Use OpenSSL (https) for JSON-RPC connections + + Utilizzare OpenSSL (https) per le connessioni JSON-RPC + + + + + Server certificate file (default: server.cert) + + File certificato del server (default: server.cert) + + + + + Server private key (default: server.pem) + + Chiave privata del server (default: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Cifrari accettabili (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + Questo messaggio di aiuto + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + Non è possibile ottenere i dati sulla directory %s. Probabilmente Bitcoin è già in esecuzione. + + + + Loading addresses... + Caricamento indirizzi... + + + + Error loading addr.dat + + Errore nel caricamento di addr.dat + + + + + Loading block index... + Caricamento dell'indice del blocco... + + + + Error loading blkindex.dat + + Errore nel caricamento di blkindex.dat + + + + + Loading wallet... + Caricamento portamonete... + + + + Error loading wallet.dat: Wallet corrupted + + Errore nel caricamento di wallet.dat: il portamonete è danneggiato + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Errore nel caricamento di wallet.dat: il portamonete richiede una versione più recente di Bitcoin + + + + + Error loading wallet.dat + + Errore nel caricamento di wallet.dat + + + + + Rescanning... + Ripetere la scansione... + + + + Done loading + Caricamento completato + + + + Invalid -proxy address + Indirizzo -proxy non valido + + + + Invalid amount for -paytxfee=<amount> + Importo non valido per -paytxfee=<amount> + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Attenzione: -paytxfee è molto alta. Questa è la commissione che si paga quando si invia una transazione. + + + + Error: CreateThread(StartNode) failed + Errore: CreateThread(StartNode) non riuscito + + + + Warning: Disk space is low + Attenzione: lo spazio su disco è scarso + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + Impossibile collegarsi alla porta %d su questo computer. Probabilmente Bitcoin è già in esecuzione. + + + + 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? + La dimensione della transazione è fuori limite. Puoi ancora spedirla con una commissione di %s, che andrà ai nodi che processano la tua transazione e aiuterà a supportare il network. Vuoi pagare la commissione? + + + + Enter the current passphrase to the wallet. + Inserisci la frase d'ordine attuale per il portamonete. + + + + Passphrase + Passphrase + + + + Please supply the current wallet decryption passphrase. + Si prega di fornire la passphrase per la decifrazione del portamonete attuale. + + + + The passphrase entered for the wallet decryption was incorrect. + La passphrase inserita per la decifrazione del portamonete è errata. + + + + Status + Stato + + + + Date + Data + + + + Description + Descrizione + + + + Debit + Debito + + + + Credit + Credito + + + + Open for %d blocks + Aperto per %d blocchi + + + + Open until %s + Aperto fino a %s + + + + %d/offline? + %d/offline? + + + + %d/unconfirmed + %d/non confermati + + + + %d confirmations + %d conferme + + + + Generated + Generato + + + + Generated (%s matures in %d more blocks) + Generato (%s matura in altri %d blocchi) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Generato - Attenzione: questo blocco non è stato ricevuto da altri nodi e probabilmente non sarà accettato! + + + + Generated (not accepted) + Generato (non accettato) + + + + From: + Da: + + + + Received with: + Ricevuto su: + + + + Payment to yourself + Pagamento a te stesso + + + + To: + Per: + + + + Generating + Generazione + + + + (not connected) + (non collegato) + + + + %d connections %d blocks %d transactions + %d connessioni %d blocchi %d transazioni + + + + Wallet already encrypted. + Portamonete già codificato. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Inserisci una nuova passphrase per il portamonete. +Si prega di utilizzare una frase di 10 o più caratteri casuali, o di almeno otto parole. + + + + Error: The supplied passphrase was too short. + Errore: la passphrase è troppo breve. + + + + 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? + ATTENZIONE: se si cifra il portamonete e si perde la propria passphrase, si perdono tutti i BITCOIN! Sei sicuro di voler cifrare il portamonete? + + + + Please re-enter your new wallet passphrase. + Si prega di inserire ancora la nuova passphrase per il portamonete. + + + + Error: the supplied passphrases didn't match. + Errore: le passphrase fornite non coincidono. + + + + Wallet encryption failed. + Cifratura del portamonete fallita. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Portamonete cifrato. +Ricorda che cifrare il portamonete non protegge completamente i bitcoin dal furto ad opera di malware che infettassero il computer. + + + + Wallet is unencrypted, please encrypt it first. + Il portamonete non è cifrato, per piacere prima cifralo. + + + + Enter the new passphrase for the wallet. + Inserisci la nuova passphrase per il portamonete. + + + + Re-enter the new passphrase for the wallet. + Inserisci ancora la nuova passphrase per il portamonete. + + + + Wallet Passphrase Changed. + Passphrase del portamonete cambiata. + + + + New Receiving Address + Nuovo indirizzo di ricezione + + + + You should use a new address for each payment you receive. + +Label + Si dovrebbe usare un nuovo indirizzo per ciascun pagamento che si riceve. + +Etichetta + + + + <b>Status:</b> + <b>Stato:</b> + + + + , has not been successfully broadcast yet + , non è stato ancora trasmesso con successo + + + + , broadcast through %d node + , trasmesso attraverso %d nodo + + + + , broadcast through %d nodes + , trasmesso attraverso %d nodi + + + + <b>Date:</b> + <b>Data:</b> + + + + <b>Source:</b> Generated<br> + <b>Fonte:</b> Generato<br> + + + + <b>From:</b> + <b>Da:</b> + + + + unknown + sconosciuto + + + + <b>To:</b> + <b>Per:</b> + + + + (yours, label: + (vostro, etichetta: + + + + (yours) + ( vostro) + + + + <b>Credit:</b> + <b>Credito:</b> + + + + (%s matures in %d more blocks) + (%s matura in altri %d blocchi) + + + + (not accepted) + (non accettata) + + + + <b>Debit:</b> + <b>Debito:</b> + + + + <b>Transaction fee:</b> + <b>Commissione:</b> + + + + <b>Net amount:</b> + <b>Importo netto:</b> + + + + Message: + Messaggio: + + + + Comment: + Commento: + + + + 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. + Bisogna aspettare 120 blocchi prima di spendere i bitcoin generati. Quando hai generato questo blocco, è stato trasmesso al network per aggiungerlo alla catena dei blocchi. Se non entra nella catena, sarà modificato in "non accettato" e non risulterà spendibile. Questo potrebbe accadere a volte, quando un altro nodo genera un blocco entro pochi secondi da quando l'hai generato tu. + + + + Cannot write autostart/bitcoin.desktop file + Impossibile scrivere sul file autostart/bitcoin.desktop + + + + Main + Principale + + + + &Start Bitcoin on window system startup + &Fai partire Bitcoin all'avvio del sistema + + + + &Minimize on close + &Minimizza alla chiusura del programma + + + + version %s + versione %s + + + + Error in amount + Errore nell'importo + + + + Send Coins + Spedisci Bitcoin + + + + Amount exceeds your balance + L'importo supera la tua disponibilità + + + + Total exceeds your balance when the + L'importo supera la tua disponibilità se + + + + transaction fee is included + si include la commissione di transazione + + + + Payment sent + Pagamento inviato + + + + Sending... + Invio... + + + + Invalid address + Indirizzo non valido + + + + Sending %s to %s + Invio di %s a %s + + + + CANCELLED + ANNULLATO + + + + Cancelled + Annullato + + + + Transfer cancelled + Trasferimento annullato + + + + Error: + Errore: + + + + Insufficient funds + Fondi insufficienti + + + + Connecting... + Collegamento... + + + + Unable to connect + Impossibile connettersi + + + + Requesting public key... + Richiesta chiave pubblica... + + + + Received public key... + chiave pubblica ricevuta... + + + + Recipient is not accepting transactions sent by IP address + Il destinatario non accetta transazioni effettuate dall'indirizzo IP + + + + Transfer was not accepted + L'invio non è stato accettato + + + + Invalid response received + Risposta non valida ricevuta + + + + Creating transaction... + Creazione della transazione... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + Questa operazione richiede una commissione di transazione di almeno %s a causa del suo importo, della complessità, o per l'utilizzo di fondi ricevuti recentemente + + + + Transaction creation failed + Creazione transazione non riuscita + + + + Transaction aborted + Transazione interrotta + + + + Lost connection, transaction cancelled + Persa la connessione, operazione annullata + + + + Sending payment... + Invio del pagamento... + + + + 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. + La transazione è stata rifiutata. Ciò può accadere se alcuni dei bitcoin nel tuo portamonete erano stati già spesi, ad esempio se hai usato una copia del wallet.dat e i bitcoin sono stati spesi nella copia ma non nella versione corrente. + + + + Waiting for confirmation... + In attesa di conferma... + + + + 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. + Il pagamento è stato spedito ma il destinatario non è riuscito a verificarlo. +La transazione è registrata e sarà trasferita al destinatario, +ma le informazioni a commento saranno vuote. + + + + Payment was sent, but an invalid response was received + Il pagamento è stato inviato, ma è stata ricevuta una risposta non valida + + + + Payment completed + Pagamento completato + + + + Name + Nome + + + + Address + Indirizzo + + + + Label + Etichetta + + + + Bitcoin Address + Indirizzo Bitcoin + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + Questo è uno dei tuoi indirizzi per ricevere pagamenti e non può essere inserito nella rubrica. + + + + Edit Address + Modifica indirizzo + + + + Edit Address Label + Modifica etichetta indirizzo + + + + Add Address + Aggiungi indirizzo + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Bitcoin - Generazione + + + + Bitcoin - (not connected) + Bitcoin - (non collegato) + + + + &Open Bitcoin + &Apri Bitcoin + + + + &Send Bitcoins + &Invia Bitcoin + + + + O&ptions... + O&pzioni... + + + + E&xit + &Esci + + + + Program has crashed and will terminate. + Il programma è andato in crash e si concluderà. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Attenzione: si prega di controllare che la data del computer e l'ora siano corrette. Se il vostro orologio è sbagliato Bitcoin non funziona correttamente. + + + + beta + beta + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + \ No newline at end of file diff --git a/src/qt/locale/bitcoin_nb.ts b/src/qt/locale/bitcoin_nb.ts new file mode 100644 index 0000000..aa5dd54 --- /dev/null +++ b/src/qt/locale/bitcoin_nb.ts @@ -0,0 +1,2338 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + Om Bitcoin + + + + <b>Bitcoin</b> version + <b>Bitcoin</b> versjon + + + + 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. + Copyright © 2009-2011 Bitcoin Developers + +Dette er eksperimentell programvare. + +Distribuert under MIT/X11 programvarelisens. Se den medfølgende filen license.txt eller http://www.opensource.org/licenses/mit-license.php. + +Dette produktet inneholder programvare utviklet av OpenSSL Prosjektet for bruk i OpenSSL Toolkit (http://www.openssl.org/) og kryptografisk programvare skrevet av Eric Young (eay@cryptsoft.com) og UPnP programvare skrevet av Thomas Bernard. + + + + AddressBookPage + + + Address Book + Adressebok + + + + 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. + Dette er dine Bitcoin adresser for Ã¥ motta betalinger. Du kan gi en separat adresse til hver avsender slik at du kan holde oversikt over hvem som betaler deg. + + + + Double-click to edit address or label + Dobbeltklikk for Ã¥ redigere adresse eller merkelapp + + + + Create a new address + Lag en ny adresse + + + + &New Address... + &Ny adresse... + + + + Copy the currently selected address to the system clipboard + Kopier den valgte adressen til systemets utklippstavle + + + + &Copy to Clipboard + &Kopier til utklippstavle + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Slett den valgte adressen fra listen. Bare adresser for sending kan slettes. + + + + &Delete + &Slett + + + + Export Address Book Data + Eksporter adressebok + + + + Comma separated file (*.csv) + Kommaseparert fil (*.csv) + + + + Error exporting + Feil ved eksportering + + + + Could not write to file %1. + Kunne ikke skrive til filen %1. + + + + AddressTableModel + + + Label + Merkelapp + + + + Address + Adresse + + + + (no label) + (ingen merkelapp) + + + + AskPassphraseDialog + + + Dialog + Dialog + + + + TextLabel + Merkelapp + + + + Enter passphrase + Angi adgangsfrase + + + + New passphrase + Ny adgangsfrase + + + + Repeat new passphrase + Gjenta ny adgangsfrase + + + + 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>. + Skriv inn den nye adgangsfrasen for lommeboken.<br/>Vennligst bruk en adgangsfrase med <b>10 eller flere tilfeldige tegn</b>, eller <b>Ã¥tte eller flere ord</b>. + + + + Encrypt wallet + Krypter lommebok + + + + This operation needs your wallet passphrase to unlock the wallet. + Denne operasjonen krever adgangsfrasen til lommeboken for Ã¥ lÃ¥se den opp. + + + + Unlock wallet + LÃ¥s opp lommebok + + + + This operation needs your wallet passphrase to decrypt the wallet. + Denne operasjonen krever adgangsfrasen til lommeboken for Ã¥ dekryptere den. + + + + Decrypt wallet + Dekrypter lommebok + + + + Change passphrase + Endre adgangsfrase + + + + Enter the old and new passphrase to the wallet. + Skriv inn gammel og ny adgangsfrase for lommeboken. + + + + Confirm wallet encryption + Bekreft kryptering av lommebok + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + ADVARSEL: Hvis du krypterer lommeboken og mister adgangsfrasen vil du <b>MISTE ALLE DINE BITCOINS</b>! +Er du sikker pÃ¥ at du vil kryptere lommeboken? + + + + + Wallet encrypted + Lommebok kryptert + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Husk at Ã¥ kryptere lommeboken ikke vil beskytte dine bitcoins fullstendig fra Ã¥ bli stjÃ¥let av skadevare som infiserer datamaskinen din. + + + + + + + Wallet encryption failed + Kryptering av lommebok feilet + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + Kryptering av lommebok feilet pÃ¥ grunn av en intern feil. Din lommebok ble ikke kryptert. + + + + + The supplied passphrases do not match. + De angitte adgangsfrasene er ulike. + + + + Wallet unlock failed + OpplÃ¥sing av lommebok feilet + + + + + + The passphrase entered for the wallet decryption was incorrect. + Adgangsfrasen angitt for dekryptering av lommeboken var feil. + + + + Wallet decryption failed + Dekryptering av lommebok feilet + + + + Wallet passphrase was succesfully changed. + Lommebokens adgangsfrase ble endret. + + + + BitcoinGUI + + + Bitcoin Wallet + Bitcoin Lommebok + + + + Synchronizing with network... + Synkroniserer med nettverk... + + + + Block chain synchronization in progress + Synkronisering av blokk-kjede igang + + + + &Overview + &Oversikt + + + + Show general overview of wallet + Vis generell oversikt over lommeboken + + + + &Transactions + &Transaksjoner + + + + Browse transaction history + Vis transaksjonshistorikk + + + + &Address Book + &Adressebok + + + + Edit the list of stored addresses and labels + Rediger listen over adresser og deres merkelapper + + + + &Receive coins + &Motta bitcoins + + + + Show the list of addresses for receiving payments + Vis listen over adresser for mottak av betalinger + + + + &Send coins + &Send bitcoins + + + + Send coins to a bitcoin address + Send bitcoins til en adresse + + + + E&xit + &Avslutt + + + + Quit application + Avslutt applikasjonen + + + + &About %1 + &Om %1 + + + + Show information about Bitcoin + Vis informasjon om Bitcoin + + + + &Options... + &Innstillinger... + + + + Modify configuration options for bitcoin + Endre innstillinger for bitcoin + + + + Open &Bitcoin + Åpne &Bitcoin + + + + Show the Bitcoin window + Vis Bitcoin-vinduet + + + + &Export... + &Eksporter... + + + + Export the current view to a file + Eksporter visningen til en fil + + + + &Encrypt Wallet + &Krypter Lommebok + + + + Encrypt or decrypt wallet + Krypter eller dekrypter lommebok + + + + &Change Passphrase + &Endre Adgangsfrase + + + + Change the passphrase used for wallet encryption + Endre adgangsfrasen brukt for kryptering av lommebok + + + + &File + &Fil + + + + &Settings + &Innstillinger + + + + &Help + &Hjelp + + + + Tabs toolbar + Verktøylinje for faner + + + + Actions toolbar + Verktøylinje for handlinger + + + + [testnet] + [testnett] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n aktiv forbindelse til Bitcoin nettverket%n aktive forbindelser to Bitcoin nettverket + + + + Downloaded %1 of %2 blocks of transaction history. + Lastet ned %1 av %2 blokker med transaksjonshistorikk. + + + + Downloaded %1 blocks of transaction history. + Lastet ned %1 blokker med transaksjonshistorikk. + + + + %n second(s) ago + %n sekund igjen%n sekunder igjen + + + + %n minute(s) ago + %n minutt siden%n minutter siden + + + + %n hour(s) ago + %n time siden%n timer siden + + + + %n day(s) ago + %n dag siden%n dager siden + + + + Up to date + Ajour + + + + Catching up... + Kommer ajour... + + + + Last received block was generated %1. + Siste mottatte blokk ble generert %1. + + + + 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? + Denne transaksjonen overstiger størrelsesbegrensningen. Du kan likevel sende den med et gebyr pÃ¥ %1, som gÃ¥r til nodene som prosesserer transaksjonen din og støtter nettverket. Vil du betale gebyret? + + + + Sending... + Sender... + + + + Sent transaction + Sendt transaksjon + + + + Incoming transaction + Innkommende transaksjon + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Dato: %1 +Beløp: %2 +Type: %3 +Adresse: %4 + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + Lommeboken er <b>kryptert</b> og for tiden <b>ulÃ¥st</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + Lommeboken er <b>kryptert</b> og for tiden <b>lÃ¥st</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Enhet for Ã¥ vise beløp i: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Velg standard underenhet som skal vises i grensesnittet og ved sending av mynter + + + + Display addresses in transaction list + Vis adresser i transaksjonslisten + + + + EditAddressDialog + + + Edit Address + Rediger adresse + + + + &Label + &Merkelapp + + + + The label associated with this address book entry + Merkelappen koblet til denne adressen i adresseboken + + + + &Address + &Adresse + + + + The address associated with this address book entry. This can only be modified for sending addresses. + Adressen til denne oppføringen i adresseboken. Denne kan kun endres for utsendingsadresser. + + + + New receiving address + Ny mottaksadresse + + + + New sending address + Ny utsendingsadresse + + + + Edit receiving address + Rediger mottaksadresse + + + + Edit sending address + Rediger utsendingsadresse + + + + The entered address "%1" is already in the address book. + Den oppgitte adressen "%1" er allerede i adresseboken. + + + + The entered address "%1" is not a valid bitcoin address. + en oppgitte adressen "%1" er ikke en gyldig bitcoin-adresse. + + + + Could not unlock wallet. + Kunne ikke lÃ¥se opp lommeboken. + + + + New key generation failed. + Generering av ny nøkkel feilet. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Start Bitcoin ved oppstart + + + + Automatically start Bitcoin after the computer is turned on + Start Bitcoin automatisk nÃ¥r datamaskinen blir slÃ¥tt pÃ¥ + + + + &Minimize to the tray instead of the taskbar + &Minimer til systemkurv istedenfor oppgavelinjen + + + + Show only a tray icon after minimizing the window + Vis kun ikon i systemkurv etter minimering av vinduet + + + + Map port using &UPnP + Sett opp port vha. &UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Åpne automatisk Bitcoin klientporten pÃ¥ ruteren. Dette virker kun om din ruter støtter UPnP og dette er pÃ¥slÃ¥tt. + + + + M&inimize on close + M&inimér ved lukking + + + + 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. + Minimerer vinduet istedenfor Ã¥ avslutte applikasjonen nÃ¥r vinduet lukkes. NÃ¥r dette er slÃ¥tt pÃ¥ avsluttes applikasjonen kun ved Ã¥ velge avslutt i menyen. + + + + &Connect through SOCKS4 proxy: + &Koble til gjennom SOCKS4 proxy: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Koble til Bitcoin nettverket gjennom en SOCKS4 mellomtjener (f.eks. for tilkobling gjennom Tor) + + + + Proxy &IP: + Mellomtjeners &IP: + + + + IP address of the proxy (e.g. 127.0.0.1) + IP-adresse for mellomtjener (f.eks. 127.0.0.1) + + + + &Port: + &Port: + + + + Port of the proxy (e.g. 1234) + Port for mellomtjener (f.eks. 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Valgfritt transaksjonsgebyr per kB som hjelper for Ã¥ sikre at transaksjonene dine blir raskt prosessert. De fleste transaksjoner er 1kB. Et gebyr pÃ¥ 0.01 anbefales. + + + + Pay transaction &fee + Betal transaksjons&gebyr + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Valgfritt transaksjonsgebyr per kB som hjelper for Ã¥ sikre at transaksjonene dine blir raskt prosessert. De fleste transaksjoner er 1kB. Et gebyr pÃ¥ 0.01 anbefales. + + + + OptionsDialog + + + Main + Hoved + + + + Display + Visning + + + + Options + Innstillinger + + + + OverviewPage + + + Form + Skjema + + + + Balance: + Saldo: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Antall transaksjoner: + + + + 0 + 0 + + + + Unconfirmed: + Ubekreftet + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Lommebok</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Siste transaksjoner</b> + + + + Your current balance + Din nÃ¥værende saldo + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Totalt antall ubekreftede transaksjoner som ikke telles med i saldo enda + + + + Total number of transactions in wallet + Totalt antall transaksjoner i lommeboken + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Send Bitcoins + + + + Send to multiple recipients at once + Send til flere enn én mottaker + + + + &Add recipient... + &Legg til mottaker... + + + + Clear all + Fjern alle + + + + Balance: + Saldo: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Bekreft sending + + + + &Send + &Send + + + + <b>%1</b> to %2 (%3) + <b>%1</b> til %2 (%3) + + + + Confirm send coins + Bekreft sending av bitcoins + + + + Are you sure you want to send %1? + Er du sikker pÃ¥ at du vil sende %1? + + + + and + og + + + + The recepient address is not valid, please recheck. + Mottaksadressen er ugyldig, prøv igjen. + + + + The amount to pay must be larger than 0. + Beløpen som skal betales mÃ¥ være over 0. + + + + Amount exceeds your balance + Beløpet overstiger saldoen din + + + + Total exceeds your balance when the %1 transaction fee is included + Totalen overgÃ¥r din saldo nÃ¥r transaksjonsgebyret pÃ¥ %1 tas med + + + + Duplicate address found, can only send to each address once in one send operation + Duplikate adresser funnet, kan kun sende til hver adresse en gang i hver sendeoperasjon + + + + Error: Transaction creation failed + Feil: Opprettelse av transaksjon feilet + + + + 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. + Feil: Transaksjonen ble avvist. Dette kan skje hvis noen av myntene i lommeboken allerede var brukt, f.eks. hvis du kopierte wallet.dat og mynter ble brukt i kopien uten Ã¥ bli markert brukt her. + + + + SendCoinsEntry + + + Form + Skjema + + + + A&mount: + &Beløp: + + + + Pay &To: + Betal &Til: + + + + + Enter a label for this address to add it to your address book + Skriv inn en merkelapp for denne adressen for Ã¥ legge den til i din adressebok + + + + &Label: + &Merkelapp: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Adressen betalingen skal sendes til (f.eks. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + Velg adresse fra adresseboken + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Lim inn adresse fra utklippstavlen + + + + Alt+P + Alt+P + + + + Remove this recipient + Fjern denne mottakeren + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Skriv inn en Bitcoin adresse (f.eks. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + Åpen for %1 blokker + + + + Open until %1 + Åpen til %1 + + + + %1/offline? + %1/frakoblet? + + + + %1/unconfirmed + %1/ubekreftet + + + + %1 confirmations + %1 bekreftelser + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + , har ikke blitt kringkastet uten problemer enda. + + + + , broadcast through %1 node + , kringkast gjennom %1 node + + + + , broadcast through %1 nodes + , kringkast gjennom %1 noder + + + + <b>Date:</b> + <b>Dato:</b> + + + + <b>Source:</b> Generated<br> + <b>Kilde:</b> Generert<br> + + + + + <b>From:</b> + <b>Fra:</b> + + + + unknown + ukjent + + + + + + <b>To:</b> + <b>Til:</b> + + + + (yours, label: + (din, merkelapp: + + + + (yours) + (din) + + + + + + + <b>Credit:</b> + <b>Kredit:</b> + + + + (%1 matures in %2 more blocks) + (%1 modnes om %2 flere blokker) + + + + (not accepted) + (ikke akseptert) + + + + + + <b>Debit:</b> + <b>Debet:</b> + + + + <b>Transaction fee:</b> + <b>Transaksjonsgebyr:</b> + + + + <b>Net amount:</b> + <b>Nettobeløp:</b> + + + + Message: + Melding: + + + + Comment: + Kommentar: + + + + 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. + Genererte mynter mÃ¥ vente 120 blokker før de kan brukes. Da du genererte denne blokken ble den kringkastet pÃ¥ nettverket for Ã¥ bli lagt til i kjeden av blokker. Hvis den ikke kommer med i kjeden vil den endre seg til "ikke akseptert og pengene vil ikke kunne brukes. Dette vil noen ganger skje hvis en annen node genererer en blokk noen sekunder i tid fra din egen. + + + + TransactionDescDialog + + + Transaction details + Transaksjonsdetaljer + + + + This pane shows a detailed description of the transaction + Her vises en detaljert beskrivelse av transaksjonen + + + + TransactionTableModel + + + Date + Dato + + + + Type + Type + + + + Address + Adresse + + + + Amount + Beløp + + + + Open for %n block(s) + Åpen for %n blokkÅpen for %n blokker + + + + Open until %1 + Åpen til %1 + + + + Offline (%1 confirmations) + Frakoblet (%1 bekreftelser) + + + + Unconfirmed (%1 of %2 confirmations) + Ubekreftet (%1 av %2 bekreftelser) + + + + Confirmed (%1 confirmations) + Bekreftet (%1 bekreftelser) + + + + Mined balance will be available in %n more blocks + Utvunnet saldo vil bli tilgjengelig om %n blokkUtvunnet saldo vil bli tilgjengelig om %n blokker + + + + This block was not received by any other nodes and will probably not be accepted! + Denne blokken har ikke blitt mottatt av noen andre noder og vil sannsynligvis ikke bli akseptert! + + + + Generated but not accepted + Generert men ikke akseptert + + + + Received with + Mottatt med + + + + Received from IP + Mottatt fra IP + + + + Sent to + Sendt til + + + + Sent to IP + Sendt til IP + + + + Payment to yourself + Betaling til deg selv + + + + Mined + Utvunnet + + + + (n/a) + - + + + + Transaction status. Hover over this field to show number of confirmations. + Transaksjonsstatus. Hold muspekeren over dette feltet for Ã¥ se antall bekreftelser. + + + + Date and time that the transaction was received. + Dato og tid for da transaksjonen ble mottat. + + + + Type of transaction. + Type transaksjon. + + + + Destination address of transaction. + Mottaksadresse for transaksjonen + + + + Amount removed from or added to balance. + Beløp fjernet eller lagt til saldo. + + + + TransactionView + + + + All + Alle + + + + Today + I dag + + + + This week + Denne uken + + + + This month + Denne mÃ¥neden + + + + Last month + Forrige mÃ¥ned + + + + This year + Dette Ã¥ret + + + + Range... + Intervall... + + + + Received with + Mottatt med + + + + Sent to + Sendt til + + + + To yourself + Til deg selv + + + + Mined + Utvunnet + + + + Other + Andre + + + + Enter address or label to search + Skriv inn adresse eller merkelapp for søk + + + + Min amount + Minimumsbeløp + + + + Copy address + Kopier adresse + + + + Copy label + Kopier merkelapp + + + + Edit label + Rediger merkelapp + + + + Show details... + Vis detaljer... + + + + Export Transaction Data + Eksporter transaksjonsdata + + + + Comma separated file (*.csv) + Kommaseparert fil (*.csv) + + + + Confirmed + Bekreftet + + + + Date + Dato + + + + Type + Type + + + + Label + Merkelapp + + + + Address + Adresse + + + + Amount + Beløp + + + + ID + ID + + + + Error exporting + Feil ved eksport + + + + Could not write to file %1. + Kunne ikke skrive til filen %1. + + + + Range: + Intervall: + + + + to + til + + + + WalletModel + + + Sending... + Sender... + + + + bitcoin-core + + + Bitcoin version + Bitcoin versjon + + + + Usage: + Bruk: + + + + Send command to -server or bitcoind + + Send kommando til -server eller bitcoind + + + + + List commands + + Vis liste over kommandoer + + + + + Get help for a command + + FÃ¥ hjelp til kommando + + + + + Options: + + Innstillinger: + + + + + Specify configuration file (default: bitcoin.conf) + + Angi konfigurasjonsfil (standard: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + Angi pid-fil (standard: bitcoind.pid) + + + + + Generate coins + + Generer mynter + + + + + Don't generate coins + + Ikke generer mynter + + + + + + Start minimized + + Start minimert + + + + + Specify data directory + + Angi mappe for data + + + + + Specify connection timeout (in milliseconds) + + Angi tidsavbrudd for forbindelser (i millisekunder) + + + + + Connect through socks4 proxy + + Koble til gjennom sock4 mellomtjener + + + + + Allow DNS lookups for addnode and connect + + Tillat DNS-oppslag for addnode og connect + + + + + Add a node to connect to + + Legg til node for tilkobling + + + + + Connect only to the specified node + + Koble kun til en oppgitt node + + + + + Don't accept connections from outside + + Ikke ta imot tilkoblinger fra utsiden + + + + + Don't attempt to use UPnP to map the listening port + + Ikke forsøk Ã¥ bruke UPnP for Ã¥ sette opp lytteport + + + + Attempt to use UPnP to map the listening port + + Forsøk Ã¥ bruke UPnP for Ã¥ sette opp lytteport + + + + Fee per kB to add to transactions you send + + Gebyr per kB som skal legges til transaksjoner du sender + + + + + Accept command line and JSON-RPC commands + + Ta imot kommandoer fra bÃ¥de kommandolinje og JSON-RPC + + + + + Run in the background as a daemon and accept commands + + Kjør som bakgrunnsprosess og ta imot kommandoer + + + + + Use the test network + + Bruk testnettet + + + + + Username for JSON-RPC connections + + Brukernavn for JSON-RPC forbindelser + + + + + Password for JSON-RPC connections + + Passord for JSON-RPC forbindelser + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Lytt etter JSON-RPC forbindelser pÃ¥ <port> (standard: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + Tillat JSON-RPC forbindelser fra oppgitt IP-adresse + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Send kommandoer til noden som kjører pÃ¥ <ip> (standard: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Sett størrelsen pÃ¥ lager for nye nøkler til <n> (standard: 100) + + + + + Rescan the block chain for missing wallet transactions + + Se igjennom blokk-kjeden pÃ¥ nytt etter manglende lommebokstransaksjoner + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + SSL innstillinger: (se Bitcoin Wikien for instruksjoner for SSL-oppsett) + + + + + Use OpenSSL (https) for JSON-RPC connections + + Bruk OpenSSL (https) for JSON-RPC forbindelser + + + + + Server certificate file (default: server.cert) + + Fil for tjenersertifikat (standard: server.cert) + + + + + Server private key (default: server.pem) + + Privat nøkkel for tjener (standard: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Akseptable krypteringsmetoder (standard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + Denne hjelpemeldingen + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + Kunne ikke lÃ¥se datamappen %s. Bitcoin kjører sannsynligvis allerede. + + + + Loading addresses... + Laster adresser... + + + + Error loading addr.dat + + Feil ved lasting av addr.dat + + + + + Loading block index... + Laster blokkindeks... + + + + Error loading blkindex.dat + + Feil ved lasting av blkindex.dat + + + + + Loading wallet... + Laster lommebok... + + + + Error loading wallet.dat: Wallet corrupted + + Feil ved lasting av wallet.dat: Skadde data i lommeboken + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Feil ved lasting av wallet.dat: Lommeboken krever en nyere versjon av Bitcoin + + + + + Error loading wallet.dat + + Feil ved lasting av wallet.dat + + + + + Rescanning... + Leser gjennom... + + + + Done loading + Ferdig med lasting + + + + Invalid -proxy address + Ugyldig -proxy adresse for mellomtjener + + + + Invalid amount for -paytxfee=<amount> + Ugyldig gebyrbeløp for -paytxfee=<beløp> + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Advarsel: -paytxfee er satt veldig høyt. Dette er transaksjonsgebyret du betaler nÃ¥r du sender en transaksjon. + + + + Error: CreateThread(StartNode) failed + Feil: CreateThread(StartNode) feilet + + + + Warning: Disk space is low + Advarsel: Lite ledig diskplass + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + Klarer ikke binde til port %d pÃ¥ denne datamaskinen. Bitcoin kjører sannsynligvis allerede. + + + + 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? + Denne transaksjonen er over maks-størrelsen. Du kan likevel sende med et gebyr pÃ¥ %s, som vil bli gitt til noder som prosesserer transaksjonen din og støtter nettverket. Vil du betale gebyret? + + + + Enter the current passphrase to the wallet. + Skriv inn nÃ¥værende adgangsfrase for lommeboken. + + + + Passphrase + Adgangsfrase + + + + Please supply the current wallet decryption passphrase. + Vennligst oppgÃ¥ nÃ¥værende adgangsfrase for dekryptering. + + + + The passphrase entered for the wallet decryption was incorrect. + Adgangsfrasen oppgitt for dekryptering av lommeboken var feil. + + + + Status + Status + + + + Date + Dato + + + + Description + Beskrivelse + + + + Debit + Debet + + + + Credit + Kredit + + + + Open for %d blocks + Åpen for %d blokker + + + + Open until %s + Åpen til %s + + + + %d/offline? + %d/frakoblet? + + + + %d/unconfirmed + %d/ubekreftet + + + + %d confirmations + %d bekreftelser + + + + Generated + Generert + + + + Generated (%s matures in %d more blocks) + Generert (%s modnes om %d blokker) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Generert - Advarsel: Denne blokken ble ikke mottatt av noen andre noder og vil sannsynligvis ikke bli akseptert! + + + + Generated (not accepted) + Generert (ikke akseptert) + + + + From: + Fra: + + + + Received with: + Mottatt med: + + + + Payment to yourself + Betaling til deg selv + + + + To: + Til: + + + + Generating + Genererer + + + + (not connected) + (ikke tilkoblet) + + + + %d connections %d blocks %d transactions + %d forbindelser %d blokker %d transaksjoner + + + + Wallet already encrypted. + Lommebok allerede kryptert. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Skriv inn adgangsfrasen for lommeboken. +Vennligst bruk en adgangsfrase pÃ¥ 10 eller flere tilfeldige tegn, eller Ã¥tte eller flere ord. + + + + Error: The supplied passphrase was too short. + Feil: Angitt adgangsfrase var for kort. + + + + 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? + ADVARSEL: Hvis du krypterer lommeboken din og mister adgangsfrasen vil du MISTE ALLE DINE BITCOINS! +Er du sikker pÃ¥ at du vil kryptere lommeboken? + + + + Please re-enter your new wallet passphrase. + Vennligst gjenta adgangsfrasen for lommeboken. + + + + Error: the supplied passphrases didn't match. + Feil: de angitte adgangsfrasene er ulike. + + + + Wallet encryption failed. + Kryptering av lommebok feilet. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Lommebok kryptert. +Husk at det Ã¥ kryptere lommeboken ikke kan beskytte dine bitcoins fullstendig fra Ã¥ bli stjÃ¥let av skadevare som infiserer datamaskinen din. + + + + Wallet is unencrypted, please encrypt it first. + Lommeboken er ukryptert, vennligst krypter den først. + + + + Enter the new passphrase for the wallet. + Skriv inn ny adgangsfrase for lommeboken. + + + + Re-enter the new passphrase for the wallet. + Gjenta adgangsfrasen for lommeboken. + + + + Wallet Passphrase Changed. + Adgangsfrasen for Lommeboken er Endret. + + + + New Receiving Address + Ny Mottaksadresse + + + + You should use a new address for each payment you receive. + +Label + Du bør bruke en ny adresse for hver betaling du mottar. + +Merkelapp + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + , har ikke blitt kringkastet uten problemer enda + + + + , broadcast through %d node + , kringkastet gjennom %d node + + + + , broadcast through %d nodes + , kringkastet gjennom %d noder + + + + <b>Date:</b> + <b>Dato:</b> + + + + <b>Source:</b> Generated<br> + <b>Kilde:</b> Generert<br> + + + + <b>From:</b> + <b>Fra:</b> + + + + unknown + ukjent + + + + <b>To:</b> + <b>Til:</b> + + + + (yours, label: + (din, merkelapp: + + + + (yours) + (din) + + + + <b>Credit:</b> + <b>Kredit:</b> + + + + (%s matures in %d more blocks) + (%s modnes om %d blokker) + + + + (not accepted) + (ikke akseptert) + + + + <b>Debit:</b> + <b>Debet:</b> + + + + <b>Transaction fee:</b> + <b>Transaksjonsgebyr:</b> + + + + <b>Net amount:</b> + <b>Nettobeløp:</b> + + + + Message: + Melding: + + + + Comment: + Kommentar: + + + + 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. + Genererte mynter mÃ¥ vente 120 blokker før de kan brukes. Da du genererte denne blokken ble den kringkastet til nettverket for Ã¥ legges til i blokk-kjeden. Hvis den ikke kommer med i kjeden vil den endres til "ikke akseptert" og ikke kunne brukes. Dette vil skje noen ganger nÃ¥r en annen node genererer en blokk bare sekunder fra din egen i tid. + + + + Cannot write autostart/bitcoin.desktop file + Kan ikke skrive til autostart/bitcoin.desktop filen + + + + Main + Hoved + + + + &Start Bitcoin on window system startup + &Start Bitcoin nÃ¥r systemet starter + + + + &Minimize on close + &Minimer ved lukking + + + + version %s + versjon %s + + + + Error in amount + Feil i beløp + + + + Send Coins + Send bitcoins + + + + Amount exceeds your balance + Beløpet overstiger saldoen + + + + Total exceeds your balance when the + Totalbeløpet overstiger saldoen nÃ¥r + + + + transaction fee is included + transaksjonsgebyret tas med + + + + Payment sent + Betaling sendt + + + + Sending... + Sender... + + + + Invalid address + Ugyldig adresse + + + + Sending %s to %s + Sender %s til %s + + + + CANCELLED + AVBRUTT + + + + Cancelled + Avbrutt + + + + Transfer cancelled + Overføring avbrutt + + + + Error: + Feil: + + + + Insufficient funds + Utilstrekkelige midler + + + + Connecting... + Kobler til... + + + + Unable to connect + Kunne ikke koble til + + + + Requesting public key... + Ber om offentlig nøkkel... + + + + Received public key... + Mottok offentlig nøkkel... + + + + Recipient is not accepting transactions sent by IP address + Mottaker tar ikke imot transaksjoner sendt via IP-adresse + + + + Transfer was not accepted + Overføring ble ikke akseptert + + + + Invalid response received + Ugyldig svar mottatt + + + + Creating transaction... + Oppretter transaksjon... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + Denne transaksjonen krever et gebyr pÃ¥ minst %s pga. beløpet, kompleksiteten, eller bruk av nylig mottatte midler + + + + Transaction creation failed + Opprettelse av transaksjon feilet + + + + Transaction aborted + Transaksjon avbrutt + + + + Lost connection, transaction cancelled + Mistet forbindelsen, transaksjonen avbrutt + + + + Sending payment... + Sender betaling... + + + + 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. + Transaksjonen ble avvist. Dette kan skje hvis noen av myntene i lommeboken allerede er brukt, f.eks. hvis du kopierte wallet.dat og mynter ble brukt i kopien uten Ã¥ bli markert som brukt her. + + + + Waiting for confirmation... + Venter pÃ¥ bekreftelse... + + + + 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. + Betalingen ble sendt, men mottaker kunne ikke verifisere den. +Transaksjonen er lagret og beløpet vil bli kreditert mottaker, +men kommentaren vil bli blank. + + + + Payment was sent, but an invalid response was received + Betaling ble sendt, men et ugyldig svar kom tilbake + + + + Payment completed + Betaling fullført + + + + Name + Navn + + + + Address + Adresse + + + + Label + Merkelapp + + + + Bitcoin Address + Bitcoin-Adresse + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + Dette er en av dine egne adresser for mottak av betalinger og kan ikke legges inn i adresseboken. + + + + Edit Address + Rediger Adresse + + + + Edit Address Label + Rediger Merkelapp + + + + Add Address + Legg til Adresse + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Bitcoin - Genererer + + + + Bitcoin - (not connected) + Bitcoin - (ikke tilkoblet) + + + + &Open Bitcoin + &Åpne Bitcoin + + + + &Send Bitcoins + &Send Bitcoins + + + + O&ptions... + &Innstillinger... + + + + E&xit + &Avslutt + + + + Program has crashed and will terminate. + Programmet har kræsjet og vil avslutte. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Advarsel: Vennligst sjekk at dato og klokke er riktig innstilt pÃ¥ datamaskinen. Hvis klokken er feil vil ikke Bitcoin fungere ordentlig. + + + + beta + beta + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + \ No newline at end of file diff --git a/src/qt/locale/bitcoin_nl.ts b/src/qt/locale/bitcoin_nl.ts new file mode 100644 index 0000000..1db112b --- /dev/null +++ b/src/qt/locale/bitcoin_nl.ts @@ -0,0 +1,2337 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + Over Bitcoin + + + + + <b>Bitcoin</b> version + <b>Bitcoin</b> versie + + + + 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. + 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 voor 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. + + + + AddressBookPage + + + Address Book + Adresboek + + + + 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. + Dit zijn uw Bitcoin-adressen om betalingen te ontvangen. U kunt er voor kiezen om een adres aan te maken voor elke afzender. Op deze manier kunt u bijhouden wie al aan u betaald heeft. + + + + Double-click to edit address or label + Dubbelklik om adres of etiket te wijzigen + + + + Create a new address + Maak een nieuw adres aan + + + + &New Address... + &Nieuw Adres... + + + + Copy the currently selected address to the system clipboard + Kopieer het huidig geselecteerde adres naar het klembord + + + + &Copy to Clipboard + &Kopieer naar Klembord + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Verwijder het huidige geselecteerde adres van de lijst. Alleen afzenderadressen kunnen verwijderd worden. + + + + &Delete + &Verwijder + + + + Export Address Book Data + Exporteer Gegevens van het Adresboek + + + + Comma separated file (*.csv) + Kommagescheiden bestand (*.csv) + + + + Error exporting + Fout bij exporteren + + + + Could not write to file %1. + Kon niet schrijven naar bestand %1. + + + + AddressTableModel + + + Label + Etiket + + + + Address + Adres + + + + (no label) + (geen etiket) + + + + AskPassphraseDialog + + + Dialog + Dialoog + + + + TextLabel + TekstEtiket + + + + Enter passphrase + Enter wachtwoord + + + + New passphrase + Nieuwe wachtwoord + + + + Repeat new passphrase + Herhaal wachtwoord + + + + 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>. + Vul een nieuw wachtwoord in voor uw portemonnee. <br/> Gebruik een wachtwoord van <b>10 of meer lukrake karakters</b>, of <8> acht of meer woorden</b> . + + + + Encrypt wallet + Versleutel portemonnee + + + + This operation needs your wallet passphrase to unlock the wallet. + Deze operatie vereist uw portemonneewachtwoord om de portemonnee te openen. + + + + Unlock wallet + Open portemonnee + + + + This operation needs your wallet passphrase to decrypt the wallet. + Deze operatie vereist uw portemonneewachtwoord om de portemonnee te ontsleutelen + + + + Decrypt wallet + Ontsleutel portemonnee + + + + Change passphrase + Verander wachtwoord + + + + Enter the old and new passphrase to the wallet. + vul uw oude en nieuwe portemonneewachtwoord in. + + + + Confirm wallet encryption + Bevestig versleuteling van de portemonnee + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + WAARSCHUWING: Wanneer uw portemonnee wordt versleuteld en u verliest uw wachtwoord, dan verliest u<b>AL UW BITCOINS</b>! +Bent u er zeker van uw dat u uw portemonnee wilt versleutelen? + + + + + Wallet encrypted + Portemonnee versleuteld + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Onthoud dat het versleutelen van uw portemonnee uw bitcoins niet volledig kan beschermen tegen diefstal, bijvoorbeeld door malware die uw computer infecteert. + + + + + + + Wallet encryption failed + Portemonneeversleuteling mislukt + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + Portemonneeversleuteling mislukt door een interne fout, Uw portemonnee is niet versleuteld. + + + + + The supplied passphrases do not match. + Het opgegeven wachtwoord is niet correct + + + + Wallet unlock failed + Portemonnee openen mislukt + + + + + + The passphrase entered for the wallet decryption was incorrect. + Het opgegeven wachtwoord voor de portemonnee-ontsleuteling is niet correct. + + + + Wallet decryption failed + Portemonnee-ontsleuteling mislukt + + + + Wallet passphrase was succesfully changed. + Portemonneewachtwoord is succesvol veranderd + + + + BitcoinGUI + + + Bitcoin Wallet + Bitcoin-portemonnee + + + + Synchronizing with network... + Synchroniseren met netwerk... + + + + Block chain synchronization in progress + Bezig met blokkenketting-synchronisatie + + + + &Overview + &Overzicht + + + + Show general overview of wallet + Toon algemeen overzicht van de portemonnee + + + + &Transactions + &Transacties + + + + Browse transaction history + Blader door transactieverleden + + + + &Address Book + &Adresboek + + + + Edit the list of stored addresses and labels + Bewerk de lijst van opgeslagen adressen en etiketten + + + + &Receive coins + &Ontvang munten + + + + Show the list of addresses for receiving payments + Toon lijst van adressen om betalingen mee te ontvangen + + + + &Send coins + &Verstuur munten + + + + Send coins to a bitcoin address + Verstuur munten naar een bitcoin-adres + + + + E&xit + &Afsluiten + + + + Quit application + Programma afsluiten + + + + &About %1 + &Over %1 + + + + Show information about Bitcoin + Laat informatie zien over Bitcoin + + + + &Options... + &Opties... + + + + Modify configuration options for bitcoin + Verander instellingen van Bitcoin + + + + Open &Bitcoin + Open &Bitcoin + + + + Show the Bitcoin window + Toon Bitcoin-venster + + + + &Export... + &Exporteer... + + + + Export the current view to a file + Exporteer huidige overzicht naar een bestand + + + + &Encrypt Wallet + &Versleutel Portemonnee + + + + Encrypt or decrypt wallet + Versleutel of ontsleutel portemonnee + + + + &Change Passphrase + &Verander wachtwoord + + + + Change the passphrase used for wallet encryption + Verander het wachtwoord voor uw portemonneversleuteling + + + + &File + &Bestand + + + + &Settings + &Instellingen + + + + &Help + &Hulp + + + + Tabs toolbar + Tab-werkbalk + + + + Actions toolbar + Actie-werkbalk + + + + [testnet] + [testnetwerk] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n actieve connectie(s) naar Bitcoinnetwerk%n actieve connectie(s) naar Bitcoinnetwerk + + + + Downloaded %1 of %2 blocks of transaction history. + %1 van %2 blokken van transactiehistorie opgehaald + + + + Downloaded %1 blocks of transaction history. + %1 blokken van transactiehistorie opgehaald. + + + + %n second(s) ago + %n seconde(n) geleden%n seconde(n) geleden + + + + %n minute(s) ago + %n minu(u)t(en) geleden%n minu(u)t(en) geleden + + + + %n hour(s) ago + %n u(u)r(en) geleden%n u(u)r(en) geleden + + + + %n day(s) ago + %n dag(en) geleden%n dag(en) geleden + + + + Up to date + Bijgewerkt + + + + Catching up... + Aan het bijwerken... + + + + Last received block was generated %1. + Laatst ontvangen blok gegenereerd is %1 + + + + 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? + Deze transactie overschrijdt de groottelimiet. Om de transactie alsnog te versturen kunt u transactiekosten betalen van %1. Deze transactiekosten gaan naar de nodes die uw transactie verwerken en het helpt op deze manier bij het ondersteunen van het netwerk. Wilt u de transactiekosten betalen? + + + + Sending... + Versturen... + + + + Sent transaction + Verzonden transactie + + + + Incoming transaction + Binnenkomende transactie + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Datum: %1 +Bedrag: %2 +Type: %3 +Adres: %4 + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + Portemonnee is <b>versleuteld</b> en momenteel <b>geopend</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + Portemonnee is <b>versleuteld</b> en momenteel <b>gesloten</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Eenheid om bedrag in te tonen: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Kies de standaard onderverdelingseenheid om weer te geven in uw programma, en voor het versturen van munten + + + + Display addresses in transaction list + Toon adressen in uw transactielijst + + + + EditAddressDialog + + + Edit Address + Bewerk Adres + + + + &Label + &Etiket + + + + The label associated with this address book entry + Het etiket dat geassocieerd is met dit adres + + + + &Address + &Adres + + + + The address associated with this address book entry. This can only be modified for sending addresses. + Het adres dat geassocieerd is met deze adresboek-opgave. Dit kan alleen worden veranderd voor afzenderadressen. + + + + New receiving address + Nieuw ontvangst-adres + + + + New sending address + Nieuw afzender-adres + + + + Edit receiving address + Bewerk ontvangst-adres + + + + Edit sending address + Bewerk afzender-adres + + + + The entered address "%1" is already in the address book. + Het opgegeven adres "%1" bestaat al in uw adresboek. + + + + The entered address "%1" is not a valid bitcoin address. + Het opgegeven adres "%1" is een ongeldig bitcoinadres + + + + Could not unlock wallet. + Kon de portemonnee niet openen. + + + + New key generation failed. + Genereren nieuwe sleutel mislukt. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Start Bitcoin wanneer het systeem opstart + + + + Automatically start Bitcoin after the computer is turned on + Start Bitcoin automatisch wanneer de computer wordt aangezet + + + + &Minimize to the tray instead of the taskbar + &Minimaliseer naar het systeemvak in plaats van de taakbalk + + + + Show only a tray icon after minimizing the window + Laat alleen een systeemvak-icoon zien wanneer het venster geminimaliseerd is + + + + Map port using &UPnP + Portmapping via &UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Open de Bitcoin-poort automatisch op de router. Dit werkt alleen als de router UPnP ondersteunt. + + + + M&inimize on close + &Minimaliseer bij sluiten van het venster + + + + 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. + Minimaliseer 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. + + + + &Connect through SOCKS4 proxy: + &Verbind via SOCKS4 proxy: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Verbind met het Bitcoin-netwerk door een SOCKS4 proxy (bijv. wanneer Tor gebruikt wordt) + + + + Proxy &IP: + Proxy &IP: + + + + IP address of the proxy (e.g. 127.0.0.1) + IP-adres van de proxy (bijv. 127.0.0.1) + + + + &Port: + &Poort: + + + + Port of the proxy (e.g. 1234) + Poort waarop de proxy luistert (bijv. 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Optionele transactiekosten per kB die helpen ervoor te zorgen dat uw transacties snel verwerkt worden. De meeste transacties zijn 1kB. Transactiekosten van 0.01 wordt aangeraden. + + + + Pay transaction &fee + Betaal transactie&kosten + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Optionele transactiekosten per kB die helpen ervoor te zorgen dat uw transacties snel verwerkt worden. De meeste transacties zijn 1kB. Transactiekosten van 0.01 wordt aangeraden. + + + + OptionsDialog + + + Main + Algemeen + + + + Display + Beeldscherm + + + + Options + Opties + + + + OverviewPage + + + Form + Vorm + + + + Balance: + Saldo: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Aantal transacties: + + + + 0 + 0 + + + + Unconfirmed: + Onbevestigd: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Portemonnee</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Recente transacties</b> + + + + Your current balance + Uw huidige saldo + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Totaal aantal transacties dat nog moet worden bevestigd, en nog niet is meegeteld in uw huidige saldo + + + + Total number of transactions in wallet + Totaal aantal transacties in uw portemonnee + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Verstuur munten + + + + Send to multiple recipients at once + Verstuur aan verschillende ontvangers ineens + + + + &Add recipient... + &Voeg ontvanger toe... + + + + Clear all + Verwijder alles + + + + Balance: + Saldo: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Bevestig de verstuuractie + + + + &Send + &Verstuur + + + + <b>%1</b> to %2 (%3) + <b>%1</b> aan %2 (%3) + + + + Confirm send coins + Bevestig versturen munten + + + + Are you sure you want to send %1? + Weet u zeker dat u %1 wil versturen? + + + + and + en + + + + The recepient address is not valid, please recheck. + Het ontvangstadres is niet geldig, controleer ingave. + + + + The amount to pay must be larger than 0. + Het ingevoerde gedrag moet groter zijn dan 0. + + + + Amount exceeds your balance + Bedrag overschrijdt uw huidige saldo + + + + Total exceeds your balance when the %1 transaction fee is included + Totaal overschrijdt uw huidige saldo wanneer de %1 transactiekosten worden meegerekend + + + + Duplicate address found, can only send to each address once in one send operation + Dubbel adres gevonden, u kunt slechts eenmaal naar een bepaald adres verzenden per verstuurtransactie + + + + Error: Transaction creation failed + Fout: Aanmaak transactie mislukt + + + + 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. + Fout: De transactie was afgewezen. Dit kan gebeuren als u eerder uitgegeven munten opnieuw wilt versturen, zoals wanneer u een kopie van uw wallet.dat heeft gebruikt en in de kopie deze munten zijn gemarkeerd als uitgegeven, maar in de huidige nog niet. + + + + SendCoinsEntry + + + Form + Vorm + + + + A&mount: + B&edrag: + + + + Pay &To: + Betaal &Aan: + + + + + Enter a label for this address to add it to your address book + Vul een etiket in voor dit adres om het toe te voegen aan uw adresboek + + + + &Label: + &Etiket: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Het adres waaraan u wilt betalen (bijv. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + Kies adres uit adresboek + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Plak adres vanuit klembord + + + + Alt+P + Alt+P + + + + Remove this recipient + Verwijder deze ontvanger + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Vul een Bitcoinadres in (bijv. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + Openen voor %1 blokken + + + + Open until %1 + Openen totdat %1 + + + + %1/offline? + %1/niet verbonden? + + + + %1/unconfirmed + %1/onbevestigd + + + + %1 confirmations + %1 bevestigingen + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + ,is nog niet succesvol uitgezonden + + + + , broadcast through %1 node + , uitzending langs %1 node + + + + , broadcast through %1 nodes + ,uitzending langs %1 nodes + + + + <b>Date:</b> + <b>Datum:</b> + + + + <b>Source:</b> Generated<br> + <b>Bron:</b>Gegenereerd<br> + + + + + <b>From:</b> + <b>Van:</b> + + + + unknown + onbekend + + + + + + <b>To:</b> + <b> Aan:</b> + + + + (yours, label: + (Uw, etiket: + + + + (yours) + (uw) + + + + + + + <b>Credit:</b> + <b>Tegoed:</b> + + + + (%1 matures in %2 more blocks) + (%1 verwezenlijkt in %2 meer blokken) + + + + (not accepted) + (niet geaccepteerd) + + + + + + <b>Debit:</b> + <b>Debet:</b> + + + + <b>Transaction fee:</b> + <b>Transactiekosten:</b> + + + + <b>Net amount:</b> + <b>Netto bedrag:</b> + + + + Message: + Bericht: + + + + Comment: + Opmerking: + + + + 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. + Gegeneerde munten moeten 120 blokken wachten voor ze kunnen worden uitgegeven. Je net gegenereerde blok is uitgezonden aan het netwerk om te worden toegevoegd aan de blokkenketting. Als het niet wordt geaccepteerd in de ketting, zal het blok als "ongeldig" worden aangemerkt en kan het niet worden uitgegeven. Dit kan soms gebeuren als een andere node net iets sneller een blok heeft gegenereerd; een paar seconden voor de uwe. + + + + TransactionDescDialog + + + Transaction details + Transactiedetails + + + + This pane shows a detailed description of the transaction + Dit venster laat een uitgebreide beschrijving van de transactie zien + + + + TransactionTableModel + + + Date + Datum + + + + Type + Type + + + + Address + Adres + + + + Amount + Bedrag + + + + Open for %n block(s) + Open gedurende %n blok(ken)Open gedurende %n blok(ken) + + + + Open until %1 + Open tot %1 + + + + Offline (%1 confirmations) + Niet verbonden (%1 bevestigingen) + + + + Unconfirmed (%1 of %2 confirmations) + Onbevestigd (%1 van %2 bevestigd) + + + + Confirmed (%1 confirmations) + Bevestigd (%1 bevestigingen) + + + + Mined balance will be available in %n more blocks + Ontgonnen saldo word beschikbaar na %n blokken meerOntgonnen saldo word beschikbaar na %n blokken meer + + + + This block was not received by any other nodes and will probably not be accepted! + Dit blok is niet ontvangen bij andere nodes en zal waarschijnlijk niet worden geaccepteerd! + + + + Generated but not accepted + Gegenereerd maar niet geaccepteerd + + + + Received with + Ontvangen met + + + + Received from IP + Ontvangen van IP + + + + Sent to + Verzonden aan + + + + Sent to IP + Verzonden aan IP + + + + Payment to yourself + Betaling aan uzelf + + + + Mined + Ontgonnen + + + + (n/a) + (nvt) + + + + Transaction status. Hover over this field to show number of confirmations. + Transactiestatus. Houd de muiscursor boven dit veld om het aantal bevestigingen te laten zien. + + + + Date and time that the transaction was received. + Datum en tijd waarop deze transactie is ontvangen. + + + + Type of transaction. + Type transactie. + + + + Destination address of transaction. + Ontvangend adres van transactie + + + + Amount removed from or added to balance. + Bedrag verwijderd van of toegevoegd aan saldo + + + + TransactionView + + + + All + Alles + + + + Today + Vandaag + + + + This week + Deze week + + + + This month + Deze maand + + + + Last month + Vorige maand + + + + This year + Dit jaar + + + + Range... + Bereik... + + + + Received with + Ontvangen met + + + + Sent to + Verzonden aan + + + + To yourself + Aan uzelf + + + + Mined + Ontgonnen + + + + Other + Anders + + + + Enter address or label to search + Vul adres of etiket in om te zoeken + + + + Min amount + Min. bedrag + + + + Copy address + Kopieer adres + + + + Copy label + Kopieer etiket + + + + Edit label + Verander Etiket + + + + Show details... + Toon details... + + + + Export Transaction Data + Exporteer transactiegegevens + + + + Comma separated file (*.csv) + Kommagescheiden bestand (*.csv) + + + + Confirmed + Bevestigd + + + + Date + Datum + + + + Type + Type + + + + Label + Etiket + + + + Address + Adres + + + + Amount + Bedrag + + + + ID + ID + + + + Error exporting + Fout bij exporteren + + + + Could not write to file %1. + Kon niet schrijven naar bestand %1. + + + + Range: + Bereik: + + + + to + naar + + + + WalletModel + + + Sending... + Versturen... + + + + bitcoin-core + + + Bitcoin version + Bitcoinversie + + + + Usage: + Gebruik: + + + + Send command to -server or bitcoind + + Stuur commando naar -server of bitcoind + + + + + List commands + + List van commando's + + + + + Get help for a command + + Toon hulp voor een commando + + + + + Options: + + Opties: + + + + + Specify configuration file (default: bitcoin.conf) + + Specifieer configuratiebestand (standaard: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + Specifieer pid-bestand (standaard: bitcoind.pid) + + + + + Generate coins + + Genereer munten + + + + + Don't generate coins + + Genereer geen munten + + + + + Start minimized + + Geminimaliseerd starten + + + + + Specify data directory + + Stel datamap in + + + + + Specify connection timeout (in milliseconds) + + Specificeer de time-out tijd (in milliseconden) + + + + + Connect through socks4 proxy + + Verbind via socks4 proxy + + + + + Allow DNS lookups for addnode and connect + + Sta DNS-naslag toe voor addnode en connect + + + + + Add a node to connect to + + Voeg een node toe om mee te verbinden + + + + + Connect only to the specified node + + Verbind alleen met deze node + + + + + Don't accept connections from outside + + Sta geen verbindingen van buitenaf toe + + + + + Don't attempt to use UPnP to map the listening port + + Probeer geen UPnP te gebruiken om de poort waarop geluisterd wordt te mappen + + + + + Attempt to use UPnP to map the listening port + + Probeer UPnP te gebruiken om de poort waarop geluisterd wordt te mappen + + + + + Fee per kB to add to transactions you send + + Kosten per kB om aan transacties toe te voegen die u verstuurt + + + + + Accept command line and JSON-RPC commands + + Aanvaard commandoregel en JSON-RPC commando's + + + + + Run in the background as a daemon and accept commands + + Draai in de achtergrond als daemon en aanvaard commando's + + + + + Use the test network + + Gebruik het testnetwerk + + + + + Username for JSON-RPC connections + + Gebruikersnaam voor JSON-RPC verbindingen + + + + + Password for JSON-RPC connections + + Wachtwoord voor JSON-RPC verbindingen + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Luister voor JSON-RPC verbindingen op <poort> (standaard: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + Sta JSON-RPC verbindingen van opgegeven IP adres toe + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Verstuur commando's naar proces dat op <ip> draait (standaard: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Stel sleutelpoelgrootte in op <n> (standaard: 100) + + + + + Rescan the block chain for missing wallet transactions + + Doorzoek de blokkenketting op ontbrekende portemonnee-transacties + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + +SSL opties: (zie de Bitcoin wiki voor SSL instructies) + + + + + Use OpenSSL (https) for JSON-RPC connections + + Gebruik OpenSSL (https) voor JSON-RPC verbindingen + + + + + Server certificate file (default: server.cert) + + Certificaat-bestand voor server (standaard: server.cert) + + + + + Server private key (default: server.pem) + + Geheime sleutel voor server (standaard: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Aanvaardbare ciphers (standaard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + This help message + + Dit helpbericht + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + Kan geen lock op de gegevensdirectory %s verkrijgen. Bitcoin draait vermoedelijk reeds. + + + + Loading addresses... + Adressen aan het laden... + + + + Error loading addr.dat + + Fout bij laden van bestand addr.dat + + + + + Loading block index... + Blokindex aan het laden... + + + + Error loading blkindex.dat + + Fout bij laden van bestand addr.dat + + + + + Loading wallet... + Portemonnee aan het laden... + + + + Error loading wallet.dat: Wallet corrupted + + Fout bij het laden van wallet.dat: Portemonnee corrupt + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Fout bij het laden van wallet.dat: Portemonnee vereist nieuwere versie van Bitcoin + + + + Error loading wallet.dat + + Fout bij laden van bestand wallet.dat + + + + + Rescanning... + Opnieuw aan het scannen ... + + + + Done loading + Klaar met laden + + + + Invalid -proxy address + Foutief -proxy adres + + + + Invalid amount for -paytxfee=<amount> + Ongeldig bedrag voor -paytxfee=<bedrag> + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Waarschuwing: -paytxfee is zeer hoog ingesteld. Dit zijn de transactiekosten die u betaalt bij het versturen van een transactie. + + + + Error: CreateThread(StartNode) failed + Fout: CreateThread(StartNode) is mislukt + + + + Warning: Disk space is low + Waarschuwing: Weinig schijfruimte over + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + Kan niet binden aan poort %d op deze computer. Bitcoin draait vermoedelijk reeds. + + + + 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? + Deze transactie overschrijdt de groottelimiet. Om de transactie alsnog te versturen kunt u transactiekosten betalen van %s. Deze transactiekosten gaan naar de nodes die uw transactie verwerken en het helpt op deze manier bij het ondersteunen van het netwerk. Wilt u de transactiekosten betalen? + + + + Enter the current passphrase to the wallet. + Voer het huidige portemonneewachtwoord in. + + + + Passphrase + Wachtwoordzin + + + + Please supply the current wallet decryption passphrase. + Voer het huidige portemonnee-ontsleutel-wachtwoord in. + + + + The passphrase entered for the wallet decryption was incorrect. + Het wachtwoord voor de portemonnee-ontsleuteling was incorrect. + + + + Status + Status + + + + Date + Datum + + + + Description + Omschrijving + + + + Debit + Debet + + + + Credit + Credit + + + + Open for %d blocks + Open voor %d blokken + + + + Open until %s + Open tot %s + + + + %d/offline? + %d/niet verbonden? + + + + %d/unconfirmed + %d/onbevestigd + + + + %d confirmations + %d bevestigingen + + + + Generated + Gegenereerd + + + + Generated (%s matures in %d more blocks) + Gegenereerd (%s wordt volwassen in %d meer blokken) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Gegenereerd - Waarschuwing: Dit blok werd door geen enkele andere node ontvangen en zal waarschijnlijk niet worden geaccepteerd! + + + + Generated (not accepted) + Gegenereerd (niet geaccepteerd) + + + + From: + Van: + + + + Received with: + Ontvangen met: + + + + Payment to yourself + Betaling aan uzelf + + + + To: + Aan: + + + + Generating + Aan het genereren + + + + (not connected) + (Niet verbonden) + + + + %d connections %d blocks %d transactions + %d verbindingen %d blokken %d transacties + + + + Wallet already encrypted. + Portemonnee reeds versleuteld. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Voer het nieuwe portemonneewachtwoord in. Gebruik een wachtwoord van 10 of meer willekeurige tekens, of acht of meer woorden. + + + + Error: The supplied passphrase was too short. + Fout: Het opgegeven wachtwoord was te kort. + + + + 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? + WAARSCHUWING: Als u uw portemonnee versleutelt en uw wachtwoord verliest, verliest u AL UW BITCOINS! Bent u er zeker van dat u uw portemonnee wilt versleutelen? + + + + Please re-enter your new wallet passphrase. + Voer uw nieuwe portemonneewachtwoord nogmaals in. + + + + Error: the supplied passphrases didn't match. + Fout: De opgegeven wachtwoorden kwamen niet overeen. + + + + Wallet encryption failed. + Portemonneeversleuteling mislukt. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Portemonnee versleuteld. +Onthoud dat het versleutelen van uw portemonnee uw bitcoins niet volledig kan beschermen tegen diefstal, bijvoorbeeld door malware die uw computer infecteert. + + + + Wallet is unencrypted, please encrypt it first. + Portemonnee is onversleuteld, gelieve deze eerst te versleutelen. + + + + Enter the new passphrase for the wallet. + Voer het nieuwe portemonneewachtwoord in. + + + + Re-enter the new passphrase for the wallet. + Voer het nieuwe portemonneewachtwoord opnieuw in. + + + + Wallet Passphrase Changed. + Portemonnewachtwoord veranderd. + + + + New Receiving Address + Nieuw Ontvangstadres + + + + You should use a new address for each payment you receive. + +Label + Het is aan te raden om een nieuw adres te gebruiken voor elke betaling die u ontvangt. + +Etiket + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + , is nog niet succesvol uitgezonden + + + + , broadcast through %d node + , uitgezonden door %d node + + + + , broadcast through %d nodes + , uitgezonden door %d nodes + + + + <b>Date:</b> + <b>Datum:</b> + + + + <b>Source:</b> Generated<br> + <b>Bron:</b> Gegenereerd <br> + + + + <b>From:</b> + <b>Uit:</b> + + + + unknown + onbekend + + + + <b>To:</b> + <b>Aan:</b> + + + + (yours, label: + (uw, etiket: + + + + (yours) + (uw) + + + + <b>Credit:</b> + <b>Credit:</b> + + + + (%s matures in %d more blocks) + (%s wordt verwezenlijkt in %d meer blokken) + + + + (not accepted) + (Niet geaccepteerd) + + + + <b>Debit:</b> + <b>Debet:</b> + + + + <b>Transaction fee:</b> + <b>Transactiekosten:</b> + + + + <b>Net amount:</b> + <b>Netto bedrag:</b> + + + + Message: + Bericht: + + + + Comment: + Commentaar: + + + + 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. + Gegeneerde munten moeten 120 blokken wachten voor ze kunnen worden uitgegeven. Je net gegenereerde blok is uitgezonden aan het netwerk om te worden toegevoegd aan de blokkenketting. Als het niet wordt geaccepteerd in de ketting, zal het blok als "ongeldig" worden aangemerkt en kan het niet worden uitgegeven. Dit kan soms gebeuren als een andere node net iets sneller een blok heeft gegenereerd; een paar seconden voor de uwe. + + + + Cannot write autostart/bitcoin.desktop file + Kan niet schrijven naar bestand autostart/bitcoin.desktop + + + + Main + Algemeen + + + + &Start Bitcoin on window system startup + &Start Bitcoin bij het opstarten van het systeem + + + + &Minimize on close + &Minimaliseer bij afsluiten + + + + version %s + versie %s + + + + Error in amount + Fout in bedrag + + + + Send Coins + Verstuur munten + + + + Amount exceeds your balance + Bedrag is hoger dan uw saldo + + + + Total exceeds your balance when the + Totaal is hoger dan uw saldo als de + + + + transaction fee is included + transactiekosten zijn meegerekend + + + + Payment sent + Betaling verzonden + + + + Sending... + Aan het versturen... + + + + Invalid address + Ongeldig adres + + + + Sending %s to %s + %s aan het versturen naar %s + + + + CANCELLED + GEANNULEERD + + + + Cancelled + Geannuleerd + + + + Transfer cancelled + Overschrijving geannuleerd + + + + Error: + Fout: + + + + Insufficient funds + Ontoereikend saldo + + + + Connecting... + Aan het verbinden... + + + + Unable to connect + Kan geen verbinding maken + + + + Requesting public key... + Publieke sleutel aan het aanvragen ... + + + + Received public key... + Publieke sleutel ontvangen... + + + + Recipient is not accepting transactions sent by IP address + Ontvanger accepteert geen transacties verzonden per IP-adres + + + + Transfer was not accepted + Overschrijving was niet geaccepteerd + + + + Invalid response received + Ongeldig antwoord ontvangen + + + + Creating transaction... + Transactie aan het creëren... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + Deze transactie vereist transactiekosten van tenminste %s vanwege het bedrag, de complexiteit, of het gebruik van recentelijk ontvangen munten + + + + Transaction creation failed + Transactiecreatie mislukt + + + + Transaction aborted + Transactie geannuleerd + + + + Lost connection, transaction cancelled + Verbinding verbroken, transactie geannuleerd + + + + Sending payment... + Betaling aan het versturen... + + + + 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. + De transactie was afgewezen. Dit kan gebeuren als u eerder uitgegeven munten opnieuw wilt versturen, zoals wanneer u een kopie van uw wallet.dat heeft gebruikt en in de kopie deze munten zijn gemarkeerd als uitgegeven, maar in de huidige nog niet. + + + + Waiting for confirmation... + Aan het wachten voor bevestiging... + + + + 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. + De betaling was verzonden, maar de ontvanger was niet in staat om deze te verifiëren. +De transactie is opgeslagen en zal ten goede komen aan de ontvanger, +maar het commentaarveld zal leeg zijn + + + + Payment was sent, but an invalid response was received + Betaling is verzonden, maar een ongeldig antwoord was ontvangen + + + + Payment completed + Betaling voltooid + + + + Name + Naam + + + + Address + Adres + + + + Label + Etiket + + + + Bitcoin Address + Bitcoinadres + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + Dit is een van uw eigen adressen voor het ontvangen van betalingen en kan niet worden ingevoerd in het adresboek. + + + + Edit Address + Bewerk Adres + + + + Edit Address Label + Bewerk Adresetiket + + + + Add Address + Voeg Adres Toe + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Bitcoin - Aan het genereren + + + + Bitcoin - (not connected) + Bitcoin - (niet verbonden) + + + + &Open Bitcoin + &Open Bitcoin + + + + &Send Bitcoins + &Verstuur Bitcoins + + + + O&ptions... + O&pties... + + + + E&xit + A&fsluiten + + + + Program has crashed and will terminate. + Het programma is gecrasht en zal worden beëindigd. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Waarschuwing: Controleer dat de datum en tijd op uw computer correct zijn ingesteld. Als uw klok fout staat zal Bitcoin niet correct werken. + + + + beta + beta + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + \ No newline at end of file diff --git a/src/qt/locale/bitcoin_pt_BR.ts b/src/qt/locale/bitcoin_pt_BR.ts new file mode 100644 index 0000000..68bd057 --- /dev/null +++ b/src/qt/locale/bitcoin_pt_BR.ts @@ -0,0 +1,2356 @@ + + + +UTF-8 + + AboutDialog + + + About Bitcoin + Sobre o Bitcoin + + + + <b>Bitcoin</b> version + <b>Bitcoin</b> versão + + + + 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. + + + + + AddressBookPage + + + Address Book + Catálogo de endereços + + + + 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. + Estes são os seus endereços Bitcoin para receber pagamentos. Você pode querer enviar um endereço diferente para cada remetente, para acompanhar quem está pagando. + + + + Double-click to edit address or label + Clique duas vezes para editar o endereço ou o etiqueta + + + + Create a new address + Criar um novo endereço + + + + &New Address... + &Novo endereço ... + + + + Copy the currently selected address to the system clipboard + Copie o endereço selecionado para a área de transferência do sistema + + + + &Copy to Clipboard + &Copie para a área de transferência do sistema + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Excluir o endereço selecionado da lista. Apenas endereços de envio podem ser excluídos. + + + + &Delete + &Excluir + + + + Export Address Book Data + Exportação de dados do Catálogo de Endereços + + + + Comma separated file (*.csv) + Arquivo separado por vírgulas (*. csv) + + + + Error exporting + Erro ao exportar + + + + Could not write to file %1. + + + + + AddressTableModel + + + Label + Rótulo + + + + Address + Endereço + + + + (no label) + (Sem rótulo) + + + + AskPassphraseDialog + + + Dialog + Diálogo + + + + TextLabel + TextoDoRótulo + + + + Enter passphrase + Digite a frase de segurança + + + + New passphrase + Nova frase de segurança + + + + Repeat new passphrase + Repita a nova frase de segurança + + + + 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>. + Digite a nova frase de seguraça da sua carteira. <br/> Por favor, use uma frase de <b>10 ou mais caracteres aleatórios,</b> ou <b>oito ou mais palavras.</b> + + + + Encrypt wallet + Criptografar carteira + + + + This operation needs your wallet passphrase to unlock the wallet. + Esta operação precisa de sua frase de segurança para desbloquear a carteira. + + + + Unlock wallet + Desbloquear carteira + + + + This operation needs your wallet passphrase to decrypt the wallet. + Esta operação precisa de sua frase de segurança para descriptografar a carteira. + + + + Decrypt wallet + Descriptografar carteira + + + + Change passphrase + Alterar frase de segurança + + + + Enter the old and new passphrase to the wallet. + Digite a frase de segurança antiga e nova para a carteira. + + + + Confirm wallet encryption + Confirmar criptografia da carteira + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + AVISO: Se você criptografar sua carteira e perder sua senha, você vai <b>perder todos os seus BITCOINS!</b> Tem certeza de que deseja criptografar sua carteira? + + + + + Wallet encrypted + Carteira criptografada + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Lembre-se que sua carteira criptografada não poderá proteger totalmente os seus bitcoins de serem roubados por softwares maldosos que infectem seu computador. + + + + + + + Wallet encryption failed + A criptografia da carteira falhou + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + A criptografia da carteira falhou devido a um erro interno. Sua carteira não estava criptografada. + + + + + The supplied passphrases do not match. + A frase de segurança fornecida não confere. + + + + Wallet unlock failed + A abertura da carteira falhou + + + + + + The passphrase entered for the wallet decryption was incorrect. + A frase de segurança digitada para a descriptografia da carteira estava incorreta. + + + + Wallet decryption failed + A descriptografia da carteira falhou + + + + Wallet passphrase was succesfully changed. + A frase de segurança da carteira foi alterada com êxito. + + + + BitcoinGUI + + + Bitcoin Wallet + Carteira Bitcoin + + + + Synchronizing with network... + Sincronizando com a rede... + + + + Block chain synchronization in progress + Sincronização da corrente de blocos em andamento + + + + &Overview + &Visão geral + + + + Show general overview of wallet + Mostrar visão geral da carteira + + + + &Transactions + &Transações + + + + Browse transaction history + Navegar pelo histórico de transações + + + + &Address Book + &Catálogo de endereços + + + + Edit the list of stored addresses and labels + Editar a lista de endereços e rótulos + + + + &Receive coins + &Receber moedas + + + + Show the list of addresses for receiving payments + Mostrar a lista de endereços para receber pagamentos + + + + &Send coins + &Enviar moedas + + + + Send coins to a bitcoin address + Enviar moedas para um endereço bitcoin + + + + E&xit + E&xit + + + + Quit application + Sair da aplicação + + + + &About %1 + &About %1 + + + + Show information about Bitcoin + Mostrar informação sobre Bitcoin + + + + &Options... + &Opções... + + + + Modify configuration options for bitcoin + Modificar opções de configuração para bitcoin + + + + Open &Bitcoin + Abrir &Bitcoin + + + + Show the Bitcoin window + Mostrar a janela Bitcoin + + + + &Export... + &Exportar... + + + + Export the current view to a file + Export para arquivo + + + + &Encrypt Wallet + &Criptografar Carteira + + + + Encrypt or decrypt wallet + Criptografar ou decriptogravar carteira + + + + &Change Passphrase + &Mudar frase de segurança + + + + Change the passphrase used for wallet encryption + Mudar a frase de segurança utilizada na criptografia da carteira + + + + &File + &Arquivo + + + + &Settings + E configurações + + + + &Help + &Ajuda + + + + Tabs toolbar + Barra de ferramentas + + + + Actions toolbar + Barra de ações + + + + [testnet] + [testnet] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + + %n conexão ativa na rede Bitcoin + %n conexões ativas na rede Bitcoin + + + + + Downloaded %1 of %2 blocks of transaction history. + Carregados %1 de %2 blocos do histórico de transações. + + + + Downloaded %1 blocks of transaction history. + Carregados %1 blocos do histórico de transações. + + + + %n second(s) ago + + %n segundo atrás + %n segundos atrás + + + + + %n minute(s) ago + + %n minutos atrás + %n minutos atrás + + + + + %n hour(s) ago + + %n hora atrás + %n horas atrás + + + + + %n day(s) ago + + %n dia atrás + %n dias atrás + + + + + Up to date + Atualizado + + + + Catching up... + Recuperando o atraso ... + + + + Last received block was generated %1. + Last received block was generated %1. + + + + 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? + 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? + + + + Sending... + Sending... + + + + Sent transaction + Sent transaction + + + + Incoming transaction + Incoming transaction + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + Wallet is <b>encrypted</b> and currently <b>locked</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Unit to show amounts in: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Choose the default subdivision unit to show in the interface, and when sending coins + + + + Display addresses in transaction list + Display addresses in transaction list + + + + EditAddressDialog + + + Edit Address + Edit Address + + + + &Label + &Label + + + + The label associated with this address book entry + The label associated with this address book entry + + + + &Address + &Address + + + + The address associated with this address book entry. This can only be modified for sending addresses. + The address associated with this address book entry. This can only be modified for sending addresses. + + + + New receiving address + New receiving address + + + + New sending address + New sending address + + + + Edit receiving address + Edit receiving address + + + + Edit sending address + Edit sending address + + + + The entered address "%1" is already in the address book. + The entered address "%1" is already in the address book. + + + + The entered address "%1" is not a valid bitcoin address. + The entered address "%1" is not a valid bitcoin address. + + + + Could not unlock wallet. + Could not unlock wallet. + + + + New key generation failed. + New key generation failed. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Start Bitcoin on window system startup + + + + Automatically start Bitcoin after the computer is turned on + Automatically start Bitcoin after the computer is turned on + + + + &Minimize to the tray instead of the taskbar + &Minimize to the tray instead of the taskbar + + + + Show only a tray icon after minimizing the window + Show only a tray icon after minimizing the window + + + + Map port using &UPnP + Map port using &UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + + + + M&inimize on close + M&inimize on close + + + + 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. + 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. + + + + &Connect through SOCKS4 proxy: + &Connect through SOCKS4 proxy: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + + + + Proxy &IP: + Proxy &IP: + + + + IP address of the proxy (e.g. 127.0.0.1) + IP address of the proxy (e.g. 127.0.0.1) + + + + &Port: + &Port: + + + + Port of the proxy (e.g. 1234) + Port of the proxy (e.g. 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + + + + Pay transaction &fee + Pay transaction &fee + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + + + + OptionsDialog + + + Main + Main + + + + Display + Display + + + + Options + Options + + + + OverviewPage + + + Form + Form + + + + Balance: + Balance: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Number of transactions: + + + + 0 + 0 + + + + Unconfirmed: + Unconfirmed: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Recent transactions</b> + + + + Your current balance + Your current balance + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + + + + Total number of transactions in wallet + Total number of transactions in wallet + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Send Coins + + + + Send to multiple recipients at once + Send to multiple recipients at once + + + + &Add recipient... + &Add recipient... + + + + Clear all + Clear all + + + + Balance: + Balance: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Confirm the send action + + + + &Send + &Send + + + + <b>%1</b> to %2 (%3) + <b>%1</b> to %2 (%3) + + + + Confirm send coins + Confirm send coins + + + + Are you sure you want to send %1? + Are you sure you want to send %1? + + + + and + and + + + + The recepient address is not valid, please recheck. + The recepient address is not valid, please recheck. + + + + The amount to pay must be larger than 0. + The amount to pay must be larger than 0. + + + + Amount exceeds your balance + Amount exceeds your balance + + + + Total exceeds your balance when the %1 transaction fee is included + Total exceeds your balance when the %1 transaction fee is included + + + + Duplicate address found, can only send to each address once in one send operation + Duplicate address found, can only send to each address once in one send operation + + + + Error: Transaction creation failed + Error: Transaction creation failed + + + + 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. + 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. + + + + SendCoinsEntry + + + Form + Form + + + + A&mount: + A&mount: + + + + Pay &To: + Pay &To: + + + + + Enter a label for this address to add it to your address book + Enter a label for this address to add it to your address book + + + + &Label: + &Label: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + Choose address from address book + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Paste address from clipboard + + + + Alt+P + Alt+P + + + + Remove this recipient + Remove this recipient + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + Open for %1 blocks + + + + Open until %1 + Open until %1 + + + + %1/offline? + %1/offline? + + + + %1/unconfirmed + %1/unconfirmed + + + + %1 confirmations + %1 confirmations + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + , has not been successfully broadcast yet + + + + , broadcast through %1 node + , broadcast through %1 node + + + + , broadcast through %1 nodes + , broadcast through %1 nodes + + + + <b>Date:</b> + <b>Date:</b> + + + + <b>Source:</b> Generated<br> + <b>Source:</b> Generated<br> + + + + + <b>From:</b> + <b>From:</b> + + + + unknown + unknown + + + + + + <b>To:</b> + <b>To:</b> + + + + (yours, label: + (yours, label: + + + + (yours) + (yours) + + + + + + + <b>Credit:</b> + <b>Credit:</b> + + + + (%1 matures in %2 more blocks) + (%1 matures in %2 more blocks) + + + + (not accepted) + (not accepted) + + + + + + <b>Debit:</b> + <b>Debit:</b> + + + + <b>Transaction fee:</b> + <b>Transaction fee:</b> + + + + <b>Net amount:</b> + <b>Net amount:</b> + + + + Message: + Message: + + + + Comment: + Comment: + + + + 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. + 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. + + + + TransactionDescDialog + + + Transaction details + Transaction details + + + + This pane shows a detailed description of the transaction + This pane shows a detailed description of the transaction + + + + TransactionTableModel + + + Date + Date + + + + Type + Type + + + + Address + Address + + + + Amount + Amount + + + + Open for %n block(s) + + Open for %n block + Open for %n blocks + + + + + Open until %1 + Open until %1 + + + + Offline (%1 confirmations) + Offline (%1 confirmations) + + + + Unconfirmed (%1 of %2 confirmations) + Unconfirmed (%1 of %2 confirmations) + + + + Confirmed (%1 confirmations) + Confirmed (%1 confirmations) + + + + Mined balance will be available in %n more blocks + + Mined balance will be available in %n more block + Mined balance will be available in %n more blocks + + + + + This block was not received by any other nodes and will probably not be accepted! + This block was not received by any other nodes and will probably not be accepted! + + + + Generated but not accepted + Generated but not accepted + + + + Received with + Received with + + + + Received from IP + Received from IP + + + + Sent to + Sent to + + + + Sent to IP + Sent to IP + + + + Payment to yourself + Payment to yourself + + + + Mined + Mined + + + + (n/a) + (n/a) + + + + Transaction status. Hover over this field to show number of confirmations. + Transaction status. Hover over this field to show number of confirmations. + + + + Date and time that the transaction was received. + Date and time that the transaction was received. + + + + Type of transaction. + Type of transaction. + + + + Destination address of transaction. + Destination address of transaction. + + + + Amount removed from or added to balance. + Amount removed from or added to balance. + + + + TransactionView + + + + All + All + + + + Today + Today + + + + This week + This week + + + + This month + This month + + + + Last month + Last month + + + + This year + This year + + + + Range... + Range... + + + + Received with + Received with + + + + Sent to + Sent to + + + + To yourself + To yourself + + + + Mined + Mined + + + + Other + Other + + + + Enter address or label to search + Enter address or label to search + + + + Min amount + Min amount + + + + Copy address + Copy address + + + + Copy label + Copy label + + + + Edit label + Edit label + + + + Show details... + Show details... + + + + Export Transaction Data + Export Transaction Data + + + + Comma separated file (*.csv) + Comma separated file (*.csv) + + + + Confirmed + Confirmed + + + + Date + Date + + + + Type + Type + + + + Label + Label + + + + Address + Address + + + + Amount + Amount + + + + ID + ID + + + + Error exporting + Error exporting + + + + Could not write to file %1. + Could not write to file %1. + + + + Range: + Range: + + + + to + to + + + + WalletModel + + + Sending... + Sending... + + + + bitcoin-core + + + Bitcoin version + Bitcoin version + + + + Usage: + Usage: + + + + Send command to -server or bitcoind + + Send command to -server or bitcoind + + + + + List commands + + List commands + + + + + Get help for a command + + Get help for a command + + + + + Options: + + Options: + + + + + Specify configuration file (default: bitcoin.conf) + + Specify configuration file (default: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + Specify pid file (default: bitcoind.pid) + + + + + Generate coins + + Generate coins + + + + + Don't generate coins + + Don't generate coins + + + + + Start minimized + + Start minimized + + + + + Specify data directory + + Specify data directory + + + + + Specify connection timeout (in milliseconds) + + Specify connection timeout (in milliseconds) + + + + + Connect through socks4 proxy + + Connect through socks4 proxy + + + + + Allow DNS lookups for addnode and connect + + Allow DNS lookups for addnode and connect + + + + + Add a node to connect to + + Add a node to connect to + + + + + Connect only to the specified node + + Connect only to the specified node + + + + + Don't accept connections from outside + + Don't accept connections from outside + + + + + Don't attempt to use UPnP to map the listening port + + Don't attempt to use UPnP to map the listening port + + + + + Attempt to use UPnP to map the listening port + + Attempt to use UPnP to map the listening port + + + + + Fee per kB to add to transactions you send + + Fee per kB to add to transactions you send + + + + + Accept command line and JSON-RPC commands + + Accept command line and JSON-RPC commands + + + + + Run in the background as a daemon and accept commands + + Run in the background as a daemon and accept commands + + + + + Use the test network + + Use the test network + + + + + Username for JSON-RPC connections + + Username for JSON-RPC connections + + + + + Password for JSON-RPC connections + + Password for JSON-RPC connections + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Listen for JSON-RPC connections on <port> (default: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + Allow JSON-RPC connections from specified IP address + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Send commands to node running on <ip> (default: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Set key pool size to <n> (default: 100) + + + + + Rescan the block chain for missing wallet transactions + + Rescan the block chain for missing wallet transactions + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + + + + Use OpenSSL (https) for JSON-RPC connections + + Use OpenSSL (https) for JSON-RPC connections + + + + + Server certificate file (default: server.cert) + + Server certificate file (default: server.cert) + + + + + Server private key (default: server.pem) + + Server private key (default: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + This help message + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + + + + Loading addresses... + Loading addresses... + + + + Error loading addr.dat + + Error loading addr.dat + + + + + Loading block index... + Loading block index... + + + + Error loading blkindex.dat + + Error loading blkindex.dat + + + + + Loading wallet... + Loading wallet... + + + + Error loading wallet.dat: Wallet corrupted + + Error loading wallet.dat: Wallet corrupted + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + + + + Error loading wallet.dat + + Error loading wallet.dat + + + + + Rescanning... + Rescanning... + + + + Done loading + Done loading + + + + Invalid -proxy address + Invalid -proxy address + + + + Invalid amount for -paytxfee=<amount> + Invalid amount for -paytxfee=<amount> + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + + + + Error: CreateThread(StartNode) failed + Error: CreateThread(StartNode) failed + + + + Warning: Disk space is low + Warning: Disk space is low + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + Unable to bind to port %d on this computer. Bitcoin is probably already running. + + + + 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? + 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? + + + + Enter the current passphrase to the wallet. + Enter the current passphrase to the wallet. + + + + Passphrase + Passphrase + + + + Please supply the current wallet decryption passphrase. + Please supply the current wallet decryption passphrase. + + + + The passphrase entered for the wallet decryption was incorrect. + The passphrase entered for the wallet decryption was incorrect. + + + + Status + Status + + + + Date + Date + + + + Description + Description + + + + Debit + Debit + + + + Credit + Credit + + + + Open for %d blocks + Open for %d blocks + + + + Open until %s + Open until %s + + + + %d/offline? + %d/offline? + + + + %d/unconfirmed + %d/unconfirmed + + + + %d confirmations + %d confirmations + + + + Generated + Generated + + + + Generated (%s matures in %d more blocks) + Generated (%s matures in %d more blocks) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + + + + Generated (not accepted) + Generated (not accepted) + + + + From: + From: + + + + Received with: + Received with: + + + + Payment to yourself + Payment to yourself + + + + To: + To: + + + + Generating + Generating + + + + (not connected) + (not connected) + + + + %d connections %d blocks %d transactions + %d connections %d blocks %d transactions + + + + Wallet already encrypted. + Wallet already encrypted. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + + + + Error: The supplied passphrase was too short. + Error: The supplied passphrase was too short. + + + + 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? + 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? + + + + Please re-enter your new wallet passphrase. + Please re-enter your new wallet passphrase. + + + + Error: the supplied passphrases didn't match. + Error: the supplied passphrases didn't match. + + + + Wallet encryption failed. + Wallet encryption failed. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + + + + Wallet is unencrypted, please encrypt it first. + Wallet is unencrypted, please encrypt it first. + + + + Enter the new passphrase for the wallet. + Enter the new passphrase for the wallet. + + + + Re-enter the new passphrase for the wallet. + Re-enter the new passphrase for the wallet. + + + + Wallet Passphrase Changed. + Wallet Passphrase Changed. + + + + New Receiving Address + New Receiving Address + + + + You should use a new address for each payment you receive. + +Label + You should use a new address for each payment you receive. + +Label + + + + <b>Status:</b> + <b>Status:</b> + + + + , has not been successfully broadcast yet + , has not been successfully broadcast yet + + + + , broadcast through %d node + , broadcast through %d node + + + + , broadcast through %d nodes + , broadcast through %d nodes + + + + <b>Date:</b> + <b>Date:</b> + + + + <b>Source:</b> Generated<br> + <b>Source:</b> Generated<br> + + + + <b>From:</b> + <b>From:</b> + + + + unknown + unknown + + + + <b>To:</b> + <b>To:</b> + + + + (yours, label: + (yours, label: + + + + (yours) + (yours) + + + + <b>Credit:</b> + <b>Credit:</b> + + + + (%s matures in %d more blocks) + (%s matures in %d more blocks) + + + + (not accepted) + (not accepted) + + + + <b>Debit:</b> + <b>Debit:</b> + + + + <b>Transaction fee:</b> + <b>Transaction fee:</b> + + + + <b>Net amount:</b> + <b>Net amount:</b> + + + + Message: + Message: + + + + Comment: + Comment: + + + + 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. + 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. + + + + Cannot write autostart/bitcoin.desktop file + Cannot write autostart/bitcoin.desktop file + + + + Main + Main + + + + &Start Bitcoin on window system startup + &Start Bitcoin on window system startup + + + + &Minimize on close + &Minimize on close + + + + version %s + version %s + + + + Error in amount + Error in amount + + + + Send Coins + Send Coins + + + + Amount exceeds your balance + Amount exceeds your balance + + + + Total exceeds your balance when the + Total exceeds your balance when the + + + + transaction fee is included + transaction fee is included + + + + Payment sent + Payment sent + + + + Sending... + Sending... + + + + Invalid address + Invalid address + + + + Sending %s to %s + Sending %s to %s + + + + CANCELLED + CANCELLED + + + + Cancelled + Cancelled + + + + Transfer cancelled + Transfer cancelled + + + + Error: + Error: + + + + Insufficient funds + Insufficient funds + + + + Connecting... + Connecting... + + + + Unable to connect + Unable to connect + + + + Requesting public key... + Requesting public key... + + + + Received public key... + Received public key... + + + + Recipient is not accepting transactions sent by IP address + Recipient is not accepting transactions sent by IP address + + + + Transfer was not accepted + Transfer was not accepted + + + + Invalid response received + Invalid response received + + + + Creating transaction... + Creating transaction... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + + + + Transaction creation failed + Transaction creation failed + + + + Transaction aborted + Transaction aborted + + + + Lost connection, transaction cancelled + Lost connection, transaction cancelled + + + + Sending payment... + Sending payment... + + + + 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. + 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. + + + + Waiting for confirmation... + Waiting for confirmation... + + + + 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. + 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. + + + + Payment was sent, but an invalid response was received + Payment was sent, but an invalid response was received + + + + Payment completed + Payment completed + + + + Name + Name + + + + Address + Address + + + + Label + Label + + + + Bitcoin Address + Bitcoin Address + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + This is one of your own addresses for receiving payments and cannot be entered in the address book. + + + + Edit Address + Edit Address + + + + Edit Address Label + Edit Address Label + + + + Add Address + Add Address + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Bitcoin - Generating + + + + Bitcoin - (not connected) + Bitcoin - (not connected) + + + + &Open Bitcoin + &Open Bitcoin + + + + &Send Bitcoins + &Send Bitcoins + + + + O&ptions... + O&ptions... + + + + E&xit + E&xit + + + + Program has crashed and will terminate. + Program has crashed and will terminate. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + + + + beta + beta + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + diff --git a/src/qt/locale/bitcoin_ru.ts b/src/qt/locale/bitcoin_ru.ts new file mode 100644 index 0000000..a87ec11 --- /dev/null +++ b/src/qt/locale/bitcoin_ru.ts @@ -0,0 +1,2337 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + О Bitcoin'е + + + + <b>Bitcoin</b> version + Версия Bitcoin'а + + + + 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. + 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 за авторством Томаса Бернарда. + + + + AddressBookPage + + + Address Book + Адресная книга + + + + 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. + Здесь перечислены Ваши адреса для получения платежей. Вы можете использовать их для того, чтобы давать разным людям разные адреса и таким образом иметь возможность отслеживать кто и сколько Вам платил, а так же поддерживать бо́льшую анонимность.. + + + + Double-click to edit address or label + Для того, чтобы изменить адрес или метку давжды кликните по изменяемому объекту + + + + Create a new address + Создать новый адрес + + + + &New Address... + &Создать адрес... + + + + Copy the currently selected address to the system clipboard + Копировать текущий выделенный адрес в буфер обмена + + + + &Copy to Clipboard + &Kопировать + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Удалить выделенный адрес из списка (могут быть удалены только записи из адресной книги). + + + + &Delete + &Удалить + + + + Export Address Book Data + Экспортировать адресную книгу + + + + Comma separated file (*.csv) + Текст, разделённый запятыми (*.csv) + + + + Error exporting + Ошибка экспорта + + + + Could not write to file %1. + Невозможно записать в файл %1. + + + + AddressTableModel + + + Label + Метка + + + + Address + Адрес + + + + (no label) + [нет метки] + + + + AskPassphraseDialog + + + Dialog + Dialog + + + + TextLabel + TextLabel + + + + Enter passphrase + Введите пароль + + + + New passphrase + Новый пароль + + + + Repeat new passphrase + Повторите новый пароль + + + + 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>. + Введите новый пароль для бумажника. <br/> Пожалуйста, используйте фразы из <b>10 или более случайных символов,</b> или <b>восьми и более слов.</b> + + + + Encrypt wallet + Зашифровать бумажник + + + + This operation needs your wallet passphrase to unlock the wallet. + Для выполнения операции требуется пароль вашего бумажника. + + + + Unlock wallet + Разблокировать бумажник + + + + This operation needs your wallet passphrase to decrypt the wallet. + Для выполнения операции требуется пароль вашего бумажника. + + + + Decrypt wallet + Расшифровать бумажник + + + + Change passphrase + Сменить пароль + + + + Enter the old and new passphrase to the wallet. + Введите старый и новый пароль для бумажника. + + + + Confirm wallet encryption + Подтвердите шифрование бумажника + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + ВНИМАНИЕ: Если вы зашифруете бумажник и потеряете свой ​​пароль, вы <b>ПОТЕРЯЕТЕ ВСЕ ВАШИ БИТКОИНЫ!</b> +Вы действительно хотите зашифровать ваш бумажник? + + + + + Wallet encrypted + Бумажник зашифрован + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Помните, что шифрование вашего бумажника не может полностью защитить ваши биткоины от кражи вредоносными программами, заражающими компьютер. + + + + + + + Wallet encryption failed + Не удалось зашифровать бумажник + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + Шифрование бумажника не удалось из-за внутренней ошибки. Ваш бумажник не был зашифрован. + + + + + The supplied passphrases do not match. + Введённые пароли не совпадают. + + + + Wallet unlock failed + Разблокировка бумажника не удалась + + + + + + The passphrase entered for the wallet decryption was incorrect. + Указанный пароль не подходит. + + + + Wallet decryption failed + Расшифрование бумажника не удалось + + + + Wallet passphrase was succesfully changed. + Пароль бумажника успешно изменён. + + + + BitcoinGUI + + + Bitcoin Wallet + Bitcoin-бумажник + + + + Synchronizing with network... + Синхронизация с сетью... + + + + Block chain synchronization in progress + Идёт синхронизация цепочки блоков + + + + &Overview + О&бзор + + + + Show general overview of wallet + Показать общий обзор действий с бумажником + + + + &Transactions + &Транзакции + + + + Browse transaction history + Показать историю транзакций + + + + &Address Book + &Адресная книга + + + + Edit the list of stored addresses and labels + Изменить список сохранённых адресов и меток к ним + + + + &Receive coins + &Получение + + + + Show the list of addresses for receiving payments + Показать список адресов для получения платежей + + + + &Send coins + Отп&равка + + + + Send coins to a bitcoin address + Отправить монеты на указанный адрес + + + + E&xit + В&ыход + + + + Quit application + Закрыть приложение + + + + &About %1 + &О %1 + + + + Show information about Bitcoin + Показать информацию о Bitcoin'е + + + + &Options... + Оп&ции... + + + + Modify configuration options for bitcoin + Изменить настройки + + + + Open &Bitcoin + &Показать бумажник + + + + Show the Bitcoin window + Показать окно бумажника + + + + &Export... + &Экспорт... + + + + Export the current view to a file + Экспортировать в файл + + + + &Encrypt Wallet + &Зашифровать бумажник + + + + Encrypt or decrypt wallet + Зашифровать или расшифровать бумажник + + + + &Change Passphrase + &Изменить пароль + + + + Change the passphrase used for wallet encryption + Изменить пароль шифрования бумажника + + + + &File + &Файл + + + + &Settings + &Настройки + + + + &Help + &Помощь + + + + Tabs toolbar + Панель вкладок + + + + Actions toolbar + Панель действий + + + + [testnet] + [тестовая сеть] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n активное соединение с сетью%n активных соединений с сетью%n активных соединений с сетью + + + + Downloaded %1 of %2 blocks of transaction history. + Загружено %1 из %2 блоков истории транзакций. + + + + Downloaded %1 blocks of transaction history. + Загружено %1 блоков истории транзакций. + + + + %n second(s) ago + %n секунду назад%n секунды назад%n секунд назад + + + + %n minute(s) ago + %n минуту назад%n минуты назад%n минут назад + + + + %n hour(s) ago + %n час назад%n часа назад%n часов назад + + + + %n day(s) ago + %n день назад%n дня назад%n дней назад + + + + Up to date + Синхронизированно + + + + Catching up... + Синхронизируется... + + + + Last received block was generated %1. + Последний полученный блок был сгенерирован %1. + + + + 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? + Данная транзакция превышает предельно допустимый размер. Но Вы можете всё равно совершить ей, добавив комиссию в %1, которая отправится тем узлам, которые обработают Вашу транзакцию и поможет поддержать сеть. Вы хотите добавить комиссию? + + + + Sending... + Отправка... + + + + Sent transaction + Исходящая транзакция + + + + Incoming transaction + Входящая транзакция + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Дата: %1 +Количество: %2 +Тип: %3 +Адрес: %4 + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + Бумажник <b>зашифрован</b> и в настоящее время <b>разблокирован</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + Бумажник <b>зашифрован</b> и в настоящее время <b>заблокирован</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &Измерять монеты в: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Единица измерения количества монет при отображении и при отправке + + + + Display addresses in transaction list + Показывать адреса в списке транзакций + + + + EditAddressDialog + + + Edit Address + Изменить адрес + + + + &Label + &Метка + + + + The label associated with this address book entry + Метка, связанная с данной записью + + + + &Address + &Адрес + + + + The address associated with this address book entry. This can only be modified for sending addresses. + Адрес, связанный с данной записью. + + + + New receiving address + Новый адрес для получения + + + + New sending address + Новый адрес для отправки + + + + Edit receiving address + Изменение адреса для получения + + + + Edit sending address + Изменение адреса для отправки + + + + The entered address "%1" is already in the address book. + Введённый адрес «%1» уже находится в адресной книге. + + + + The entered address "%1" is not a valid bitcoin address. + Введённый адрес «%1» не является правильным Bitcoin-адресом. + + + + Could not unlock wallet. + Не удается разблокировать бумажник. + + + + New key generation failed. + Генерация нового ключа не удалась. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Запускать бумажник при входе в систему + + + + Automatically start Bitcoin after the computer is turned on + Автоматически запускать бумажник, когда включается компьютер + + + + &Minimize to the tray instead of the taskbar + &Cворачивать в системный лоток вместо панели задач + + + + Show only a tray icon after minimizing the window + Показывать только иконку в системном лотке при сворачивании окна + + + + Map port using &UPnP + Пробросить порт через &UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Автоматически открыть порт для Bitcoin-клиента на роутере. Работает ТОЛЬКО если Ваш роутер поддерживает UPnP и данная функция включена. + + + + M&inimize on close + С&ворачивать вместо закрытия + + + + 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. + Сворачивать вместо закрытия. Если данная опция будет выбрана — приложение закроется только после выбора соответствующего пункта в меню. + + + + &Connect through SOCKS4 proxy: + &Подключаться через SOCKS4 прокси: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Подключаться к сети Bitcoin через SOCKS4 прокси (например, при использовании Tor) + + + + Proxy &IP: + &IP Прокси: + + + + IP address of the proxy (e.g. 127.0.0.1) + IP-адрес прокси (например 127.0.0.1) + + + + &Port: + По&рт: + + + + Port of the proxy (e.g. 1234) + Порт прокси-сервера (например 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Опциональная комиссия за кадый kB транзакции, которое позволяет быть уверенным, что Ваша транзакция будет обработана быстро. Большинство транзакций занимают 1 kB. Рекомендованная комиссия: 0.01 BTC. + + + + Pay transaction &fee + Добавлять ко&миссию + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Опциональная комиссия за кадый kB транзакции, которая позволяет быть уверенным, что Ваша транзакция будет обработана быстро. Большинство транзакций занимают 1 kB. Рекомендованная комиссия: 0.01 BTC. + + + + OptionsDialog + + + Main + Основное + + + + Display + Отображение + + + + Options + Опции + + + + OverviewPage + + + Form + Форма + + + + Balance: + Баланс: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Количество транзакций: + + + + 0 + 0 + + + + Unconfirmed: + Не подтверждено: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Бумажник</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Последние транзакции</b> + + + + Your current balance + Ваш текущий баланс + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Общая сумма всех транзакций, которые до сих пор не подтверждены, и до сих пор не учитываются в текущем балансе + + + + Total number of transactions in wallet + Общая количество транзакций в Вашем бумажнике + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Отправка + + + + Send to multiple recipients at once + Отправить нескольким получателям одновременно + + + + &Add recipient... + &Добавить получателя... + + + + Clear all + Очистить всё + + + + Balance: + Баланс: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Подтвердить отправку + + + + &Send + &Отправить + + + + <b>%1</b> to %2 (%3) + <b>%1</b> адресату %2 (%3) + + + + Confirm send coins + Подтвердите отправку монет + + + + Are you sure you want to send %1? + Вы уверены, что хотите отправить %1? + + + + and + и + + + + The recepient address is not valid, please recheck. + Адрес получателя неверный, пожалуйста, перепроверьте. + + + + The amount to pay must be larger than 0. + Количество монет для отправки должно быть больше 0. + + + + Amount exceeds your balance + Количество отправляемых монет превышает Ваш баланс + + + + Total exceeds your balance when the %1 transaction fee is included + Сумма превысит Ваш баланс, если комиссия в %1 будет добавлена к транзакции + + + + Duplicate address found, can only send to each address once in one send operation + Обнаружен дублирующийся адрес. Отправка на один и тот же адрес возможна только один раз за одну операцию отправки + + + + Error: Transaction creation failed + Ошибка: Создание транзакции не удалось + + + + 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. + Ошибка: В транзакции отказано. Такое может произойти, если некоторые монеты уже были потрачены, например, если Вы используете одну копию бумажника (wallet.dat), а монеты были потрачены из другой копии, но не были отмечены как потраченные в этой. Или в случае кражи (компрометации) Вашего бумажника. + + + + SendCoinsEntry + + + Form + Форма + + + + A&mount: + Ко&личество: + + + + Pay &To: + Полу&чатель: + + + + + Enter a label for this address to add it to your address book + Введите метку для данного адреса (для добавления в адресную книгу) + + + + &Label: + &Метка: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Адрес получателя платежа (например 1LA5FtQhnnWnkK6zjFfutR7Stiit4wKd63) + + + + Choose address from address book + Выбрать адрес из адресной книги + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Вставить адрес из буфера обмена + + + + Alt+P + Alt+P + + + + Remove this recipient + Удалить этого получателя + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Введите Bitcoin-адрес (например 1LA5FtQhnnWnkK6zjFfutR7Stiit4wKd63) + + + + TransactionDesc + + + Open for %1 blocks + Открыто до получения %1 блоков + + + + Open until %1 + Открыто до %1 + + + + %1/offline? + %1/оффлайн? + + + + %1/unconfirmed + %1/не подтверждено + + + + %1 confirmations + %1 подтверждений + + + + <b>Status:</b> + <b>Статус:</b> + + + + , has not been successfully broadcast yet + , ещё не было успешно разослано + + + + , broadcast through %1 node + , разослано через %1 узел + + + + , broadcast through %1 nodes + , разослано через %1 узлов + + + + <b>Date:</b> + <b>Дата:</b> + + + + <b>Source:</b> Generated<br> + <b>Источник:</b> [сгенерированно]<br> + + + + + <b>From:</b> + <b>Отправитель:</b> + + + + unknown + неизвестно + + + + + + <b>To:</b> + <b>Получатель:</b> + + + + (yours, label: + (Ваш, метка: + + + + (yours) + (ваш) + + + + + + + <b>Credit:</b> + <b>Кредит:</b> + + + + (%1 matures in %2 more blocks) + (%1 станет доступно через %2 блоков) + + + + (not accepted) + (не принято) + + + + + + <b>Debit:</b> + <b>Дебет:</b> + + + + <b>Transaction fee:</b> + <b>Комиссия:</b> + + + + <b>Net amount:</b> + <b>Общая сумма:</b> + + + + Message: + Сообщение: + + + + Comment: + Комментарий: + + + + 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. + Сгенерированные монеты должны подождать 120 блоков прежде, чем они смогут быть отправлены. Когда Вы сгенерировали этот блок он был отправлен в сеть, чтобы он был добавлен к цепочке блоков. Если данная процедура не удастся, статус изменится на «не подтверждено» и монеты будут непередаваемыми. Такое может случайно происходить в случае, если другой узел сгенерирует блок на несколько секунд раньше. + + + + TransactionDescDialog + + + Transaction details + Детали транзакции + + + + This pane shows a detailed description of the transaction + Данный диалог показывает детализированную статистику по выбранной транзакции + + + + TransactionTableModel + + + Date + Дата + + + + Type + Тип + + + + Address + Адрес + + + + Amount + Количество + + + + Open for %n block(s) + Открыто для %n блокаОткрыто для %n блоковОткрыто для %n блоков + + + + Open until %1 + Открыто до %1 + + + + Offline (%1 confirmations) + Оффлайн (%1 подтверждений) + + + + Unconfirmed (%1 of %2 confirmations) + Не подтверждено (%1 из %2 подтверждений) + + + + Confirmed (%1 confirmations) + Подтверждено (%1 подтверждений) + + + + Mined balance will be available in %n more blocks + Добытыми монетами можно будет воспользоваться через %n блокДобытыми монетами можно будет воспользоваться через %n блокаДобытыми монетами можно будет воспользоваться через %n блоков + + + + This block was not received by any other nodes and will probably not be accepted! + Этот блок не был получен другими узлами и, возможно, не будет принят! + + + + Generated but not accepted + Сгенерированно, но не подтверждено + + + + Received with + Получено + + + + Received from IP + Получено с IP-адреса + + + + Sent to + Отправлено + + + + Sent to IP + Отправлено на IP-адрес + + + + Payment to yourself + Отправлено себе + + + + Mined + Добыто + + + + (n/a) + [не доступно] + + + + Transaction status. Hover over this field to show number of confirmations. + Статус транзакции. Подведите курсор к нужному полю для того, чтобы увидеть количество подтверждений. + + + + Date and time that the transaction was received. + Дата и время, когда транзакция была получена. + + + + Type of transaction. + Тип транзакции. + + + + Destination address of transaction. + Адрес назначения транзакции. + + + + Amount removed from or added to balance. + Сумма, добавленная, или снятая с баланса. + + + + TransactionView + + + + All + Все + + + + Today + Сегодня + + + + This week + На этой неделе + + + + This month + В этом месяце + + + + Last month + За последний месяц + + + + This year + В этом году + + + + Range... + Промежуток... + + + + Received with + Получено на + + + + Sent to + Отправлено на + + + + To yourself + Отправленные себе + + + + Mined + Добытые + + + + Other + Другое + + + + Enter address or label to search + Введите адрес или метку для поиска + + + + Min amount + Мин. сумма + + + + Copy address + Копировать адрес + + + + Copy label + Копировать метку + + + + Edit label + Изменить метку + + + + Show details... + Показать детали... + + + + Export Transaction Data + Экспортировать данные транзакций + + + + Comma separated file (*.csv) + Текс, разделённый запятыми (*.csv) + + + + Confirmed + Подтверждено + + + + Date + Дата + + + + Type + Тип + + + + Label + Метка + + + + Address + Адрес + + + + Amount + Количество + + + + ID + ID + + + + Error exporting + Ошибка экспорта + + + + Could not write to file %1. + Невозможно записать в файл %1. + + + + Range: + Промежуток от: + + + + to + до + + + + WalletModel + + + Sending... + Отправка.... + + + + bitcoin-core + + + Bitcoin version + Версия + + + + Usage: + Использование: + + + + Send command to -server or bitcoind + + Отправить команду на сервер ( -server ) или демону + + + + + List commands + + Список команд + + + + + Get help for a command + + Получить помощь по команде + + + + Options: + + Опции: + + + + + Specify configuration file (default: bitcoin.conf) + + Указать конфигурационный файл вместо используемого по умолчанию (bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + Указать pid-файл вместо используемого по умолчанию (bitcoin.pid) + + + + + Generate coins + + Включить добычу монет + + + + + Don't generate coins + + Выключить добычу монет + + + + + Start minimized + + Запускать минимизированным + + + + + Specify data directory + + Указать рабочую директорию + + + + + Specify connection timeout (in milliseconds) + + Указать таймаут соединения (в миллисекундах) + + + + + Connect through socks4 proxy + + Соединяться через socks4-прокси + + + + + Allow DNS lookups for addnode and connect + + Разрешить поиск в DNS для комманд "addnode" и "connect" + + + + + Add a node to connect to + + Добавить узел для соединения + + + + + Connect only to the specified node + + Соединяться только с указанным узлом + + + + + Don't accept connections from outside + + Не принимать внешние соединения + + + + + Don't attempt to use UPnP to map the listening port + + Не пытаться использовать UPnP + + + + + Attempt to use UPnP to map the listening port + + Попытаться использовать UPnP для проброса прослушиваемого порта на роутере + + + + + Fee per kB to add to transactions you send + + Комиссия (за каждый kB транзакции) + + + + + Accept command line and JSON-RPC commands + + Принимать команды из командной строки и через JSON-RPC + + + + + Run in the background as a daemon and accept commands + + Запустить в бекграунде (как демон) и принимать команды + + + + + Use the test network + + Использовать тестовую сеть + + + + + Username for JSON-RPC connections + + Имя пользователя для JSON-RPC соединений + + + + + Password for JSON-RPC connections + + Пароль для JSON-RPC соединений + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Слушать <порт> для JSON-RPC соединений (по умолчанию: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + Разрешить JSON-RPC соединения с указанного адреса + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Отправлять команды на узел,запущенный на <IP> (по умолчанию: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Установить размер key pool'а в <n> (по умолчанию: 100) + + + + + Rescan the block chain for missing wallet transactions + + Просканировать цепочку блоков в поисках пропущенных транзакций для бумажника + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + Опции SSL: (см. Bitcoin Wiki для инструкций) + + + + + Use OpenSSL (https) for JSON-RPC connections + + Использовать OpenSSL (https) для JSON-RPC соединений + + + + + Server certificate file (default: server.cert) + + Сертификат (публичный ключ) сервера (по умолчанию: server.cert) + + + + + Server private key (default: server.pem) + + Закрытый ключ сервера (по умолчанию: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Допустимые Cipher'ы для сервера (по умолчанию: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + Данная справка + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + Невозможно установить блокировку на рабочую директорию %s. Возможно, бумажник уже запущен. + + + + Loading addresses... + Загрузка адресов... + + + + Error loading addr.dat + + Ошибка при загрузке addr.dat + + + + + Loading block index... + Загрузка индекса блоков... + + + + Error loading blkindex.dat + + Ошибка при загрузке blkindex.dat + + + + + Loading wallet... + Загрузка бумажника... + + + + Error loading wallet.dat: Wallet corrupted + + Ошибка загрузки wallet.dat: Бумажник повреждён + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Ошибка загрузки wallet.dat: Для данного бумажника требуется более новая версия Bitcoin + + + + + Error loading wallet.dat + + Ошибка при загрузке wallet.dat + + + + + Rescanning... + Сканирование... + + + + Done loading + Загрузка завершена + + + + Invalid -proxy address + Ошибка в адресе прокси + + + + Invalid amount for -paytxfee=<amount> + Ошибка в сумме комиссии + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + ВНИМАНИЕ: Установлена слишком большая комиссия (-paytxfee=). Данный параметр отвечает за комиссию, которую Вы будете добавлять к сумме при осуществлении транзакций. + + + + Error: CreateThread(StartNode) failed + Ошибка: Созданиние потока (запуск узла) не удался + + + + Warning: Disk space is low + ВНИМАНИЕ: На диске заканчивается свободное пространство + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + Невозможно забиндить порт %d на данном компьютере. Возможно, бумажник ужк запущен. + + + + 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? + Данная транзакция превышает предельно допустимый размер. Но Вы можете всё равно совершить ей, добавив комиссию в %s, которая отправится тем узлам, которые обработают Вашу транзакцию и поможет поддержать сеть. Вы хотите добавить комиссию? + + + + Enter the current passphrase to the wallet. + Введите текущий пароль от бумажника. + + + + Passphrase + Пароль + + + + Please supply the current wallet decryption passphrase. + Пожалуйста, укажите текущий пароль для расшифровки бумажника. + + + + The passphrase entered for the wallet decryption was incorrect. + Указанный пароль не подходит. + + + + Status + Статус + + + + Date + Дата + + + + Description + Описание + + + + Debit + Дебет + + + + Credit + Кредит + + + + Open for %d blocks + Открыто до получения %d блоков + + + + Open until %s + Открыто до %s + + + + %d/offline? + %d/оффлайн? + + + + %d/unconfirmed + %d/не подтверждено + + + + %d confirmations + %d подтверждений + + + + Generated + Сгенерированно + + + + Generated (%s matures in %d more blocks) + Сгенерированно (%s «созреет» через %d блоков) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Сгенерированно - ВНИМАНИЕ: Данный блок не был получен ни одним другим узлом и, возможно, не будет подтверждён! + + + + Generated (not accepted) + Сгенерированно (не подтверждено) + + + + From: + Отправитель: + + + + Received with: + Получатель: + + + + Payment to yourself + Отправлено себе + + + + To: + Получатель: + + + + Generating + Генерация + + + + (not connected) + (не подключено) + + + + %d connections %d blocks %d transactions + %d подключений %d блоков %d транзакций + + + + Wallet already encrypted. + Бумажник уже зашифрован. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Введите новый пароль для бумажника. +Пожалуйста, используейте пароль из 10 и более случайных символов или из 8 и более слов. + + + + Error: The supplied passphrase was too short. + ОШИБКА: Указанный пароль слишком короткий. + + + + 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? + ВНИМАНИЕ: Если Вы зашифруете Ваш бумажник и потеряете Ваш пароль — Вы ПОТЕРЯЕТЕ ВСЕ ВАШИ БИТКОИНЫ!!! +Вы уверены, что хотите зашифровать бумажник? + + + + Please re-enter your new wallet passphrase. + Пожалуйста, повторите ввод нового пароля. + + + + Error: the supplied passphrases didn't match. + ОШИБКА: указанные пароли не совпадают. + + + + Wallet encryption failed. + Шифрование бумажника не удалось. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Бумажник зашифрован. +Запомните, что шифрование Вашего бумажника не может ПОЛНОСТЬЮ гарантировать защиту Ваших биткоинов от того, чтобы быть украденными с помощью шпионского ПО на Вашем компьютере. Пожалуйста, следите за безопасностью Вашего компьютера самостоятельно. + + + + Wallet is unencrypted, please encrypt it first. + Бумажник не зашифрован. Сначала зашифруйте его. + + + + Enter the new passphrase for the wallet. + Введите новый пароль для бумажника. + + + + Re-enter the new passphrase for the wallet. + Пожалуйста, повторите ввод нового пароля. + + + + Wallet Passphrase Changed. + Пароль от бумажника изменён. + + + + New Receiving Address + Новый адрес для получения + + + + You should use a new address for each payment you receive. + +Label + Вы должны использовать новый адрес для каждого платежа, который Вы получаете. + +Метка + + + + <b>Status:</b> + <b>Статус:</b> + + + + , has not been successfully broadcast yet + , ещё не было успешно разослано + + + + , broadcast through %d node + , разослано через %d узел + + + + , broadcast through %d nodes + , разослано через %d узлов + + + + <b>Date:</b> + <b>Дата:</b> + + + + <b>Source:</b> Generated<br> + <b>Источник:</b> [сгенерированно]<br> + + + + <b>From:</b> + <b>Отправитель:</b> + + + + unknown + неизвестно + + + + <b>To:</b> + <b>Получатель:</b> + + + + (yours, label: + (Ваш, метка: + + + + (yours) + (ваш) + + + + <b>Credit:</b> + <b>Кредит:</b> + + + + (%s matures in %d more blocks) + (%s «созреет» через %d блоков) + + + + (not accepted) + (не принято) + + + + <b>Debit:</b> + <b>Дебет:</b> + + + + <b>Transaction fee:</b> + <b>Комиссия:</b> + + + + <b>Net amount:</b> + <b>Общая сумма:</b> + + + + Message: + Сообщение: + + + + Comment: + Комментарий: + + + + 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. + Сгенерированные монеты должны подождать 120 блоков прежде, чем они смогут быть отправлены. Когда Вы сгенерировали этот блок он был отправлен в сеть, чтобы он был добавлен к цепочке блоков. Если данная процедура не удастся, статус изменится на «не подтверждено» и монеты будут непередаваемыми. Такое может случайно происходить в случае, если другой узел сгенерирует блок на несколько секунд раньше. + + + + Cannot write autostart/bitcoin.desktop file + Не возможно записать файл autostart/bitcoin.desktop + + + + Main + Основное + + + + &Start Bitcoin on window system startup + &Запускать бумажник при входе в систему + + + + &Minimize on close + С&ворачивать вместо закрытия + + + + version %s + версия %s + + + + Error in amount + Ошибка в количестве + + + + Send Coins + Отправка + + + + Amount exceeds your balance + Сумма превышает Ваш баланс + + + + Total exceeds your balance when the + Общая сумма превысит Ваш баланс, если к транзакции будет добавлено ещё + + + + transaction fee is included + в качестве комиссии + + + + Payment sent + Платёж отправлен + + + + Sending... + Отправка... + + + + Invalid address + Ошибочный адрес + + + + Sending %s to %s + Отправка %s адресату %s + + + + CANCELLED + ОТМЕНЕНО + + + + Cancelled + Отменено + + + + Transfer cancelled + Транзакция отменена + + + + Error: + ОШИБКА: + + + + Insufficient funds + Недостаточно монет + + + + Connecting... + Подключение... + + + + Unable to connect + Невозможно подключиться + + + + Requesting public key... + Запрашивается открытый ключ... + + + + Received public key... + Получается публичный ключ... + + + + Recipient is not accepting transactions sent by IP address + Получатель не принимает транзакции, отправленные на IP адрес + + + + Transfer was not accepted + Передача была отвергнута + + + + Invalid response received + Получен неверный ответ + + + + Creating transaction... + Создание транзакции... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + Данная транзакция требует добавления комиссии (по крайней мере в %s) из-за её размера, сложности, или из-за использования недавно полученных монет + + + + Transaction creation failed + Создание транзакции провалилось + + + + Transaction aborted + Транзакция отменена + + + + Lost connection, transaction cancelled + Потеряно соединение, транзакция отменена + + + + Sending payment... + Отправка платежа... + + + + 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. + В транзакции отказано. Такое может произойти, если некоторые монеты уже были потрачены, например, если Вы используете одну копию бумажника (wallet.dat), а монеты были потрачены из другой копии, но не были отмечены как потраченные в этой. Или в случае кражи (компрометации) Вашего бумажника. + + + + Waiting for confirmation... + Ожидание подтверждения... + + + + 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. + Платёж был отправлен, но получатель не смог подтвердить его. +Транзакция записана и будет зачислена получателю, +но комментарий к платежу будет пустым. + + + + Payment was sent, but an invalid response was received + Платёж был отправлен, но был получен неверный ответ + + + + Payment completed + Платёж завершён + + + + Name + Имя + + + + Address + Адрес + + + + Label + Метка + + + + Bitcoin Address + Bitcoin-адрес + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + Это один из Ваших личных адресов для получения платежей. Он не может быть добавлен в адресную книгу. + + + + Edit Address + Изменить адрес + + + + Edit Address Label + Изменить метку + + + + Add Address + Добавить адрес + + + + Bitcoin + Биткоин + + + + Bitcoin - Generating + Bitcoin - Генерация + + + + Bitcoin - (not connected) + Bitcoin - (нет связи) + + + + &Open Bitcoin + &Показать бумажник + + + + &Send Bitcoins + Отп&равка + + + + O&ptions... + Оп&ции... + + + + E&xit + Вы&ход + + + + Program has crashed and will terminate. + Программа экстренно завершилась и будет уничтожена. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + ВНИМАНИЕ: Проверьте дату и время, установленные на Вашем компьютере. Если Ваши часы идут не правильно Bitcoin может наботать не корректно. + + + + beta + бета + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + \ No newline at end of file diff --git a/src/qt/locale/bitcoin_uk.ts b/src/qt/locale/bitcoin_uk.ts new file mode 100644 index 0000000..6cbb516 --- /dev/null +++ b/src/qt/locale/bitcoin_uk.ts @@ -0,0 +1,2339 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + Про Bitcoin + + + + <b>Bitcoin</b> version + Версія <b>Bitcoin'a<b> + + + + 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. + Авторське право © 2009-2011 Розробники Bitcoin + +Це програмне забезпечення є експериментальним. + +Поширюється за ліцензією MIT/X11, додаткова інформація міститься у файлі license.txt, а також за адресою http://www.opensource.org/licenses/mit-license.php. + +Цей продукт включає в себе програмне забезпечення, розроблене в рамках проекту OpenSSL (http://www.openssl.org/), криптографічне програмне забезпечення, написане Еріком Янгом (eay@cryptsoft.com) та функції для роботи з UPnP, написані Томасом Бернардом. + + + + AddressBookPage + + + Address Book + Адресна книга + + + + 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. + Це ваші адреси для отримання платежів. Ви можете давати різні адреси різним людям, таким чином маючи можливість відслідкувати хто конкретно і скільки вам заплатив. + + + + Double-click to edit address or label + Двічі клікніть на адресу чи назву для їх зміни + + + + Create a new address + Створити нову адресу + + + + &New Address... + &Створити адресу... + + + + Copy the currently selected address to the system clipboard + Копіювати виділену адресу в буфер обміну + + + + &Copy to Clipboard + &Копіювати + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + Видалити виділену адресу зі списку. Лише адреси з адресної книги можуть бути видалені. + + + + &Delete + &Видалити + + + + Export Address Book Data + Експортувати адресну книгу + + + + Comma separated file (*.csv) + Файли відділені комами (*.csv) + + + + Error exporting + Помилка при експортуванні + + + + Could not write to file %1. + Неможливо записати у файл %1. + + + + AddressTableModel + + + Label + Назва + + + + Address + Адреса + + + + (no label) + (немає назви) + + + + AskPassphraseDialog + + + Dialog + Діалог + + + + TextLabel + Текстова мітка + + + + Enter passphrase + Введіть пароль + + + + New passphrase + Новий пароль + + + + Repeat new passphrase + Повторіть пароль + + + + 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>. + Введіть новий пароль для гаманця.<br/>Будь ласка, використовуйте паролі що містять <b> як мінімум 10 випадкових символів </b> або <b> як мінімум 8 слів</b>. + + + + Encrypt wallet + Зашифрувати гаманець + + + + This operation needs your wallet passphrase to unlock the wallet. + Ця операція потребує пароль для розблокування гаманця. + + + + Unlock wallet + Розблокувати гаманець + + + + This operation needs your wallet passphrase to decrypt the wallet. + Ця операція потребує пароль для дешифрування гаманця. + + + + Decrypt wallet + Дешифрувати гаманець + + + + Change passphrase + Змінити пароль + + + + Enter the old and new passphrase to the wallet. + Ввести старий та новий паролі для гаманця. + + + + Confirm wallet encryption + Підтвердити шифрування гаманця + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + УВАГА: Якщо ви зашифруєте гаманець і забудете пароль, ви <b>ВТРАТИТЕ ВСІ СВОЇ БІТКОІНИ</b>! +Ви дійсно хочете зашифрувати свій гаманець? + + + + + Wallet encrypted + Гаманець зашифровано + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Пам’ятайте, що шифрування гаманця не може повністю захистити ваші біткоіни від кражі, у випадку якщо ваш комп’ютер буде інфіковано шкідливими програмами. + + + + + + + Wallet encryption failed + Не вдалося зашифрувати гаманець + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + Виникла помилка під час шифрування гаманця. Ваш гаманець не було зашифровано. + + + + + The supplied passphrases do not match. + Введені паролі не співпадають. + + + + Wallet unlock failed + Не вдалося розблокувати гаманець + + + + + + The passphrase entered for the wallet decryption was incorrect. + Введений пароль є невірним. + + + + Wallet decryption failed + Не вдалося розшифрувати гаманець + + + + Wallet passphrase was succesfully changed. + Пароль було успішно змінено. + + + + BitcoinGUI + + + Bitcoin Wallet + Гаманець + + + + Synchronizing with network... + Синхронізація з мережею... + + + + Block chain synchronization in progress + Відбувається синхронізація ланцюжка блоків... + + + + &Overview + &Огляд + + + + Show general overview of wallet + Показати загальний огляд гаманця + + + + &Transactions + Пе&реклади + + + + Browse transaction history + Переглянути історію переказів + + + + &Address Book + &Адресна книга + + + + Edit the list of stored addresses and labels + Редагувати список збережених адрес та міток + + + + &Receive coins + О&тримати + + + + Show the list of addresses for receiving payments + Показати список адрес для отримання платежів + + + + &Send coins + В&ідправити + + + + Send coins to a bitcoin address + Відправити монети на вказану адресу + + + + E&xit + &Вихід + + + + Quit application + Вийти + + + + &About %1 + П&ро %1 + + + + Show information about Bitcoin + Показати інформацію про Bitcoin + + + + &Options... + &Параметри... + + + + Modify configuration options for bitcoin + Редагувати параметри + + + + Open &Bitcoin + Показати &гаманець + + + + Show the Bitcoin window + Показати вікно гаманця + + + + &Export... + &Експорт... + + + + Export the current view to a file + Експортувати в файл + + + + &Encrypt Wallet + &Шифрування гаманця + + + + Encrypt or decrypt wallet + Зашифрувати чи розшифрувати гаманець + + + + &Change Passphrase + Змінити парол&ь + + + + Change the passphrase used for wallet encryption + Змінити пароль, який використовується для шифрування гаманця + + + + &File + &Файл + + + + &Settings + &Налаштування + + + + &Help + &Довідка + + + + Tabs toolbar + Панель вкладок + + + + Actions toolbar + Панель дій + + + + [testnet] + [тестова мережа] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n активне з’єднання з мережею%n активні з’єднання з мережею%n активних з’єднань з мережею + + + + Downloaded %1 of %2 blocks of transaction history. + Завантажено %1 з %2 блоків історії переказів. + + + + Downloaded %1 blocks of transaction history. + Завантажено %1 блоків історії транзакцій. + + + + %n second(s) ago + %n секунду тому%n секунди тому%n секунд тому + + + + %n minute(s) ago + %n хвилину тому%n хвилини тому%n хвилин тому + + + + %n hour(s) ago + %n годину тому%n години тому%n годин тому + + + + %n day(s) ago + %n день тому%n дня тому%n днів тому + + + + Up to date + Синхронізовано + + + + Catching up... + Синхронізується... + + + + Last received block was generated %1. + Останній отриманий блок було згенеровано %1. + + + + 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? + Цей переказ перевищує максимально допустимий розмір. Проте ви можете здійснити її, додавши комісію в %1, яка відправиться тим вузлам що оброблять ваш переказ, та допоможе підтримати мережу. Ви хочете додати комісію? + + + + Sending... + Відправлення... + + + + Sent transaction + Надіслані перекази + + + + Incoming transaction + Отримані перекази + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + Дата: %1 +Кількість: %2 +Тип: %3 +Адреса: %4 + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + <b>Зашифрований</b> гаманець <b>розблоковано</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + <b>Зашифрований</b> гаманець <b>заблоковано</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + В&имірювати монети в: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + Виберіть одиницю вимірювання монет, яка буде відображатись в гаманці та при відправленні. + + + + Display addresses in transaction list + Відображати адресу в списку переказів + + + + EditAddressDialog + + + Edit Address + Редагувати адресу + + + + &Label + &Мітка + + + + The label associated with this address book entry + Мітка, пов’язана з цим записом адресної книги + + + + &Address + &Адреса + + + + The address associated with this address book entry. This can only be modified for sending addresses. + Адреса, пов’язана з цим записом адресної книги. + + + + New receiving address + Нова адреса для отримання + + + + New sending address + Нова адреса для відправлення + + + + Edit receiving address + Редагувати адресу для отримання + + + + Edit sending address + Редагувати адресу для відправлення + + + + The entered address "%1" is already in the address book. + Введена адреса «%1» вже присутня в адресній книзі. + + + + The entered address "%1" is not a valid bitcoin address. + Введена адреса «%1» не є коректною адресою в мережі Bitcoin. + + + + Could not unlock wallet. + Неможливо розблокувати гаманець. + + + + New key generation failed. + Не вдалося згенерувати нові ключі. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &Запускати гаманець при вході в систему + + + + Automatically start Bitcoin after the computer is turned on + Автоматично запускати гаманець при вмиканні комп’ютера + + + + &Minimize to the tray instead of the taskbar + Мінімізувати &у трей + + + + Show only a tray icon after minimizing the window + Показувати лише іконку в треї після згортання вікна + + + + Map port using &UPnP + Відображення порту через &UPnP + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + Автоматично відкривати порт для клієнту біткоін на роутері. Працює лише якщо ваш роутер підтримує UPnP і ця функція увімкнена. + + + + M&inimize on close + Згортати замість закритт&я + + + + 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. + Згортати замість закриття. Якщо ця опція включена, програма закриється лише після вибору відповідного пункту в меню. + + + + &Connect through SOCKS4 proxy: + Підключатись через &SOCKS4-проксі: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + Підключатись до мережі Bitcoin через SOCKS4-проксі (наприклад при використанні Tor) + + + + Proxy &IP: + &IP проксі: + + + + IP address of the proxy (e.g. 127.0.0.1) + IP-адреса проксі-сервера (наприклад 127.0.0.1) + + + + &Port: + &Порт: + + + + Port of the proxy (e.g. 1234) + Порт проксі-сервера (наприклад 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Опціональна комісія за кожен Кб переказу, яка дозволяє бути впевненим у тому, що ваш переказ буде оброблено швидко. Розмір більшості переказів рівен 1 Кб. Рекомендована комісія: 0,01. + + + + Pay transaction &fee + Заплатити комісі&ю + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + Опціональна комісія за кожен Кб переказу, яка дозволяє бути впевненим у тому, що ваш переказ буде оброблено швидко. Розмір більшості переказів рівен 1 Кб. Рекомендована комісія: 0,01. + + + + OptionsDialog + + + Main + Головні + + + + Display + Відображення + + + + Options + Параметри + + + + OverviewPage + + + Form + Форма + + + + Balance: + Баланс: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + Кількість переказів: + + + + 0 + 0 + + + + Unconfirmed: + Непідтверджені: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Гаманець</span></p></body></html> + + + + <b>Recent transactions</b> + <b>Недавні перекази</b> + + + + Your current balance + Ваш поточний баланс + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + Загальна сума всіх переказів, які ще не підтверджені, та до сих пір не враховуються в загальному балансі + + + + Total number of transactions in wallet + Загальна кількість переказів в гаманці + + + + SendCoinsDialog + + + + + + + + + + Send Coins + Відправити + + + + Send to multiple recipients at once + Відправити на декілька адрес + + + + &Add recipient... + Дод&ати одержувача... + + + + Clear all + Очистити все + + + + Balance: + Баланс: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + Підтвердити відправлення + + + + &Send + &Відправити + + + + <b>%1</b> to %2 (%3) + <b>%1</b> адресату %2 (%3) + + + + Confirm send coins + Підтвердіть відправлення + + + + Are you sure you want to send %1? + Ви впевнені що хочете відправити %1 + + + + and + і + + + + The recepient address is not valid, please recheck. + Адреса отримувача невірна, будьласка перепровірте. + + + + The amount to pay must be larger than 0. + Кількість монет для відправлення повинна бути більшою 0. + + + + Amount exceeds your balance + Кількість монет для відправлення перевищує ваш баланс + + + + Total exceeds your balance when the %1 transaction fee is included + Сума перевищить ваш баланс, якщо комісія %1 буде додана до вашого переказу + + + + Duplicate address found, can only send to each address once in one send operation + Знайдено адресу що дублюється. Відправлення на кожну адресу дозволяється лише один раз на кожну операцію переказу. + + + + Error: Transaction creation failed + Помилка: не вдалося створити переказ + + + + 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. + Помилка: переказ було відхилено. Це може статись, якщо декілька монет з вашого гаманця вже використані, наприклад, якщо ви використовуєте одну копію гаманця (wallet.dat), а монети були використані з іншої копії, але не позначені як використані в цій. + + + + SendCoinsEntry + + + Form + Форма + + + + A&mount: + &Кількість: + + + + Pay &To: + &Отримувач: + + + + + Enter a label for this address to add it to your address book + Введіть мітку для цієї адреси для додавання її в адресну книгу + + + + &Label: + &Мітка: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Адреса для отримувача платежу (наприклад, 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + Вибрати адресу з адресної книги + + + + Alt+A + Alt+A + + + + Paste address from clipboard + Вставити адресу + + + + Alt+P + Alt+P + + + + Remove this recipient + Видалити цього отримувача + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + Введіть адресу Bitcoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + Відкрити для %1 блоків + + + + Open until %1 + Відкрити до %1 + + + + %1/offline? + %1/поза інтернетом? + + + + %1/unconfirmed + %1/не підтверджено + + + + %1 confirmations + %1 підтверджень + + + + <b>Status:</b> + <b>Статус:</b> + + + + , has not been successfully broadcast yet + , ще не було успішно розіслано + + + + , broadcast through %1 node + , розіслано через %1 вузол + + + + , broadcast through %1 nodes + , розіслано через %1 вузлів + + + + <b>Date:</b> + <b>Дата:</b> + + + + <b>Source:</b> Generated<br> + <b>Джерело:</b> згенеровано<br> + + + + + <b>From:</b> + <b>Відправник:</b> + + + + unknown + невідомий + + + + + + <b>To:</b> + <b>Одержувач:</b> + + + + (yours, label: + (Ваша, мітка: + + + + (yours) + (ваша) + + + + + + + <b>Credit:</b> + <b>Кредит:</b> + + + + (%1 matures in %2 more blocks) + (%1 «дозріє» через %2 блоків) + + + + (not accepted) + (не прийнято) + + + + + + <b>Debit:</b> + <b>Дебет:</b> + + + + <b>Transaction fee:</b> + <b>Комісія за переказ:</b> + + + + <b>Net amount:</b> + <b>Загальна сума:</b> + + + + Message: + Повідомлення: + + + + Comment: + Коментар: + + + + 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. + Після генерації монет, потрібно зачекати 120 блоків, перш ніж їх можна буде використати. Коли ви згенерували цей блок, його було відправлено в мережу для того, щоб він був доданий до ланцюжка блоків. Якщо ця процедура не вдасться, статус буде змінено на «не підтверджено» і ви не зможете потратити згенеровані монету. Таке може статись, якщо хтось інший згенерував блок на декілька секунд раніше. + + + + TransactionDescDialog + + + Transaction details + Деталі переказів + + + + This pane shows a detailed description of the transaction + Даний діалог показує детальну статистику по вибраному переказу + + + + TransactionTableModel + + + Date + Дата + + + + Type + Тип + + + + Address + Адреса + + + + Amount + Кількість + + + + Open for %n block(s) + Відкрити для %n блокуВідкрити для %n блоківВідкрити для %n блоків + + + + Open until %1 + Відкрити до %1 + + + + Offline (%1 confirmations) + Поза інтернетом (%1 підтверджень) + + + + Unconfirmed (%1 of %2 confirmations) + Непідтверджено (%1 із %2 підтверджень) + + + + Confirmed (%1 confirmations) + Підтверджено (%1 підтверджень) + + + + Mined balance will be available in %n more blocks + Добутими монетами можна буде скористатись через %n блокДобутими монетами можна буде скористатись через %n блокиДобутими монетами можна буде скористатись через %n блоків + + + + This block was not received by any other nodes and will probably not be accepted! + Цей блок не був отриманий жодними іншими вузлами і, ймовірно, не буде прийнятий! + + + + Generated but not accepted + Згенеровано, але не підтверджено + + + + Received with + Отримано + + + + Received from IP + Отримано з IP-адреси + + + + Sent to + Відправлено + + + + Sent to IP + Відправлено на IP-адресу + + + + Payment to yourself + Відправлено собі + + + + Mined + Добуто + + + + (n/a) + (недоступно) + + + + Transaction status. Hover over this field to show number of confirmations. + Статус переказу. Наведіть вказівник на це поле, щоб показати кількість підтверджень. + + + + Date and time that the transaction was received. + Дата і час, коли переказ було отримано. + + + + Type of transaction. + Тип переказу. + + + + Destination address of transaction. + Адреса отримувача + + + + Amount removed from or added to balance. + Сума, додана чи знята з балансу. + + + + TransactionView + + + + All + Всі + + + + Today + Сьогодні + + + + This week + На цьому тижні + + + + This month + На цьому місяці + + + + Last month + Минулого місяця + + + + This year + Цього року + + + + Range... + Проміжок + + + + Received with + Отримані на + + + + Sent to + Відправлені на + + + + To yourself + Відправлені собі + + + + Mined + Добуті + + + + Other + Інше + + + + Enter address or label to search + Введіть адресу чи мітку для пошуку + + + + Min amount + Мінімальна сума + + + + Copy address + Скопіювати адресу + + + + Copy label + Скопіювати мітку + + + + Edit label + Редагувати мітку + + + + Show details... + Показати деталі... + + + + Export Transaction Data + Експортувати дані переказів + + + + Comma separated file (*.csv) + Файли, розділені комою (*.csv) + + + + Confirmed + Підтверджені + + + + Date + Дата + + + + Type + Тип + + + + Label + Мітка + + + + Address + Адреса + + + + Amount + Кількість + + + + ID + Ідентифікатор + + + + Error exporting + Помилка експорту + + + + Could not write to file %1. + Неможливо записати у файл %1 + + + + Range: + Діапазон від: + + + + to + до + + + + WalletModel + + + Sending... + Відправка... + + + + bitcoin-core + + + Bitcoin version + Версія + + + + Usage: + Вкористання: + + + + Send command to -server or bitcoind + + Відправити команду серверу -server чи демону + + + + + List commands + + Список команд + + + + + Get help for a command + + Отримати довідку по команді + + + + + Options: + + Параметри: + + + + + Specify configuration file (default: bitcoin.conf) + + Вкажіть файл конфігурації (за промовчуванням: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + Вкажіть pid-файл (за промовчуванням: bitcoind.pid) + + + + + Generate coins + + Генерувати монети + + + + + Don't generate coins + + Не генерувати монети + + + + + Start minimized + + Запускати згорнутим + + + + + Specify data directory + + Вкажіть робочий каталог + + + + + Specify connection timeout (in milliseconds) + + Вкажіть таймаут з’єднання (в мілісекундах) + + + + + Connect through socks4 proxy + + Підключитись через SOCKS4-проксі + + + + + Allow DNS lookups for addnode and connect + + Дозволити пошук в DNS для команд «addnode» і «connect» + + + + + Add a node to connect to + + Додати вузол для підключення + + + + + Connect only to the specified node + + Підключитись лише до вказаного вузла + + + + + Don't accept connections from outside + + Не приймати підключення ззовні + + + + + Don't attempt to use UPnP to map the listening port + + Не намагатись використовувати UPnP для відображення порту що прослуховується на роутері + + + + + Attempt to use UPnP to map the listening port + + Намагатись використовувати UPnP для відображення порту що прослуховується на роутері + + + + + Fee per kB to add to transactions you send + + Комісія за Кб + + + + + Accept command line and JSON-RPC commands + + Приймати команди із командного рядка та команди JSON-RPC + + + + + Run in the background as a daemon and accept commands + + Запустити в фоновому режимі (як демон) та приймати команди + + + + + Use the test network + + Використовувати тестову мережу + + + + + Username for JSON-RPC connections + + Ім’я користувача для JSON-RPC-з’єднань + + + + + Password for JSON-RPC connections + + Пароль для JSON-RPC-з’єднань + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + Прослуховувати <port> для JSON-RPC-з’єднань (за промовчуванням: 8332) + + + + + Allow JSON-RPC connections from specified IP address + + Дозволити JSON-RPC-з’єднання з вказаної IP-адреси + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + Відправляти команди на вузол, запущений на <ip> (за промовчуванням: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + Встановити розмір пулу ключів <n> (за промовчуванням: 100) + + + + + Rescan the block chain for missing wallet transactions + + Пересканувати ланцюжок блоків, в пошуку втрачених переказів + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + +Параметри SSL: (див. Bitcoin Wiki) + + + + + Use OpenSSL (https) for JSON-RPC connections + + Використовувати OpenSSL (https) для JSON-RPC-з’єднань + + + + + Server certificate file (default: server.cert) + + Сертифікату сервера (за промовчуванням: server.cert) + + + + + Server private key (default: server.pem) + + Закритий ключ сервера (за промовчуванням: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + Допустимі шифри (за промовчуванням: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + Дана довідка + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + Неможливо встановити блокування на робочий каталог %s. Можливо, гаманець вже запущено. + + + + Loading addresses... + Завантаження адрес... + + + + Error loading addr.dat + + Помилка при завантаженні addr.dat + + + + + Loading block index... + Завантаження індексу блоків... + + + + Error loading blkindex.dat + + Помилка при завантаженні blkindex.dat + + + + + Loading wallet... + Завантаження гаманця... + + + + Error loading wallet.dat: Wallet corrupted + + Помилка при завантаженні wallet.dat: Гаманець пошкоджено + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + Помилка при завантаженні wallet.dat: Гаманець потребує новішої версії Bitcoin'а + + + + + Error loading wallet.dat + + Помилка при завантаженні wallet.dat + + + + + Rescanning... + Сканування... + + + + Done loading + Завантаження завершене + + + + Invalid -proxy address + Помилка в адресі проксі-сервера + + + + Invalid amount for -paytxfee=<amount> + Помилка у величині комісії + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + Увага: встановлено занадто велику комісію (-paytxfee). Комісія зніматиметься кожен раз коли ви проводитимете перекази. + + + + Error: CreateThread(StartNode) failed + Помилка: CreateThread(StartNode) дала збій + + + + Warning: Disk space is low + Увага: На диску мало вільного місця + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + Неможливо прив’язати до порту %d на цьому комп’ютері. Молживо гаманець вже запущено. + + + + 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? + Цей переказ перевищує максимально допустимий розмір. Проте ви можете здійснити її, додавши комісію в %s, яка відправиться тим вузлам що оброблять ваш переказ, та допоможе підтримати мережу. Ви хочете додати комісію? + + + + Enter the current passphrase to the wallet. + Введіть пароль від гаманця. + + + + Passphrase + Пароль + + + + Please supply the current wallet decryption passphrase. + Будь ласка, вкажіть пароль для дешиврування гаманця. + + + + The passphrase entered for the wallet decryption was incorrect. + Пароль вказано невірно. + + + + Status + Статус + + + + Date + Дата + + + + Description + Опис + + + + Debit + Дебет + + + + Credit + Кредит + + + + Open for %d blocks + Відкрито до отримання %d блоків + + + + Open until %s + Відкрито до %s + + + + %d/offline? + %d/поза інтернетом? + + + + %d/unconfirmed + %d/не підтверджено + + + + %d confirmations + %d підтверджень + + + + Generated + Згенеровано + + + + Generated (%s matures in %d more blocks) + Згенеровано (%s «дозріє» через %d блоків) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + Згенеровано — увага: цей блок не був отриманий жодними іншими вузлами і, ймовірно, не буде прийнятий! + + + + Generated (not accepted) + Згенеровано (не підтверджено) + + + + From: + Відправник: + + + + Received with: + Отримувач: + + + + Payment to yourself + Відправлено собі + + + + To: + Отримувач: + + + + Generating + Генерація + + + + (not connected) + (не підключено) + + + + %d connections %d blocks %d transactions + %d з’єднань %d блоків %d переказів + + + + Wallet already encrypted. + Гаманець уже зашифровано. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + Введіть новий пароль для гаманця. +Будь ласка використовуйте пароль із як мінімум 10-и випадкових символів, або як мінімум із 8-и слів. + + + + Error: The supplied passphrase was too short. + Помилка: Вказаний пароль занадто короткий. + + + + 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? + УВАГА: Якщо ви зашифруєте гаманець і забудете пароль, ви ВТРАТИТЕ ВСІ СВОЇ БІТКОІНИ! +Ви дійсно хочете зашифрувати свій гаманець? + + + + Please re-enter your new wallet passphrase. + Будь ласка, повторіть новий пароль. + + + + Error: the supplied passphrases didn't match. + Помилка: введені паролі не співпадають. + + + + Wallet encryption failed. + Не вдалося зашифрувати гаманець. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + Гаманець зашифровано. +Пам’ятайте, що шифрування гаманця не може повністю захистити ваші біткоіни від кражі, у випадку якщо ваш комп’ютер буде інфіковано шкідливими програмами. + + + + Wallet is unencrypted, please encrypt it first. + Гаманець не зашифровано, спочатку зашифруйте його. + + + + Enter the new passphrase for the wallet. + Введіть новий пароль для гаманця. + + + + Re-enter the new passphrase for the wallet. + Повторіть ввід нового пароля. + + + + Wallet Passphrase Changed. + Змінено пароль від гаманця. + + + + New Receiving Address + Нова адреса для отримання + + + + You should use a new address for each payment you receive. + +Label + Ви повинні використовувати нову адресу для кожного переказу, який ви отримуєте. +Мітка + + + + <b>Status:</b> + <b>Статус:</b> + + + + , has not been successfully broadcast yet + , ще не було розіслано + + + + , broadcast through %d node + , розсилати через %d вузол + + + + , broadcast through %d nodes + , розсилати через %d вузлів + + + + <b>Date:</b> + <b>Дата:</b> + + + + <b>Source:</b> Generated<br> + <b>Джерело:</b> згенеровано<br> + + + + <b>From:</b> + <b>Відправник:</b> + + + + unknown + невідомо + + + + <b>To:</b> + <b>Отримувач:</b> + + + + (yours, label: + (ваша мітка: + + + + (yours) + (ваш) + + + + <b>Credit:</b> + <b>Кредит:</b> + + + + (%s matures in %d more blocks) + (%s «дозріє» через %d блоків) + + + + (not accepted) + (не прийнято) + + + + <b>Debit:</b> + <b>Дебет:</b> + + + + <b>Transaction fee:</b> + <b>Комісія:</b> + + + + <b>Net amount:</b> + <b>Загальна сума:</b> + + + + Message: + Повідомлення: + + + + Comment: + Коментар: + + + + 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. + Після генерації монет, потрібно зачекати 120 блоків, перш ніж їх можна буде використати. Коли ви згенерували цей блок, його було відправлено в мережу для того, щоб він був доданий до ланцюжка блоків. Якщо ця процедура не вдасться, статус буде змінено на «не підтверджено» і ви не зможете потратити згенеровані монету. Таке може статись, якщо хтось інший згенерував блок на декілька секунд раніше. + + + + Cannot write autostart/bitcoin.desktop file + Неможливо записати файл autostart/bitcoin.desktop + + + + Main + Головне + + + + &Start Bitcoin on window system startup + &Запускати гаманець при вході в систему + + + + &Minimize on close + З&гортати замість закриття + + + + version %s + версія %s + + + + Error in amount + Помилка в кількості + + + + Send Coins + Відправка + + + + Amount exceeds your balance + Кількість монет для відправлення перевищує ваш баланс + + + + Total exceeds your balance when the + Сума перевищить ваш баланс, якщо комісія + + + + transaction fee is included + буде додана до вашого переказу + + + + Payment sent + Оплата відправлена + + + + Sending... + Відправлення... + + + + Invalid address + Помилкова адреса + + + + Sending %s to %s + Відправлення %s адресату %s + + + + CANCELLED + ВІДМІНЕНО + + + + Cancelled + Відмінено + + + + Transfer cancelled + Переказ відмінено + + + + Error: + Помилка: + + + + Insufficient funds + Недостатньо коштів + + + + Connecting... + Підключення... + + + + Unable to connect + Неможливо підключитись + + + + Requesting public key... + Запит публічного ключа... + + + + Received public key... + Отримання публічного ключа... + + + + Recipient is not accepting transactions sent by IP address + Одержувач не приймає перекази, відправлені на IP-адресу + + + + Transfer was not accepted + Переказ не підтверджено + + + + Invalid response received + Отримана помилкова відповідь + + + + Creating transaction... + Створення переказу... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + Цей переказ потребує додавання комісії як мінімум в %s, через його розмір, складність, або внаслідок використання недавно отриманих коштів + + + + Transaction creation failed + Не вдалося створити переказ + + + + Transaction aborted + Переказ відмінено + + + + Lost connection, transaction cancelled + Втрачено з’єднання, переказ відмінено + + + + Sending payment... + Відправка оплати... + + + + 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. + Переказ було відхилено. Це може статись, якщо декілька монет з вашого гаманця вже використані, наприклад, якщо ви використовуєте одну копію гаманця (wallet.dat), а монети були використані з іншої копії, але не позначені як використані в цій. + + + + Waiting for confirmation... + Очікування підтвердження... + + + + 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. + Оплата була відправлена, але отримувач не зміг підтвердити її. +Переказ було записано і він буде нарахований отримувачу, +але коментар буде порожнім. + + + + Payment was sent, but an invalid response was received + Оплата була відправлена, але отримано неправильну відповідь + + + + Payment completed + Оплата завершена + + + + Name + Ім’я + + + + Address + Адреса + + + + Label + Мітка + + + + Bitcoin Address + Bitcoin-адреса + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + Це одина із ваших власних адрес для отримання платежів. Вона не може бути додана в адресну книгу. + + + + Edit Address + Редагувати адресу + + + + Edit Address Label + Редагувати мітку + + + + Add Address + Додати адресу + + + + Bitcoin + Bitcoin + + + + Bitcoin - Generating + Генерація + + + + Bitcoin - (not connected) + Bitcoin - (не підключений) + + + + &Open Bitcoin + &Показати гаманець + + + + &Send Bitcoins + &Відправка + + + + O&ptions... + &Налаштування + + + + E&xit + &Вихід + + + + Program has crashed and will terminate. + Внаслідок виникнення помилки, програма буде закрита. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + Увага: будь ласка, перевірте дату і час на свому комп’ютері. Якщо ваш годинник йде неправильно, Bitcoin може працювати некоректно. + + + + beta + бета + + + + main + + + Bitcoin Qt + Bitcoin Qt + + + \ No newline at end of file diff --git a/src/qt/locale/bitcoin_zh_CN.ts b/src/qt/locale/bitcoin_zh_CN.ts new file mode 100644 index 0000000..832a86e --- /dev/null +++ b/src/qt/locale/bitcoin_zh_CN.ts @@ -0,0 +1,2338 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + 关于比特币 + + + + <b>Bitcoin</b> version + <b>比特币</b>版本 + + + + 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. + 版权所有 © 2009-2011 比特币开发团队 + +本软件目前尚属测试阶段 + +本软件遵循 MIT/X11 软件协议,详细请查阅附带的 license.txt 文件,或访问 http://www.opensource.org/licenses/mit-license.php. + +本软件包含 OpenSSL 项目开发的 OpenSSL Toolkit 组件(http://www.openssl.org/), Eric Young (eay@cryptsoft.com) 开发的加密软件以及 Thomas Bernard 开发的UPnP软件 + + + + AddressBookPage + + + Address Book + 地址薄 + + + + 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. + 这些是你接受支付的比特币地址。当支付时你可以给出不同的地址,以便追踪不同的支付者。 + + + + Double-click to edit address or label + 双击以编辑地址或标签 + + + + Create a new address + 创建新地址 + + + + &New Address... + &新地址... + + + + Copy the currently selected address to the system clipboard + 复制当前选中地址到系统剪贴板 + + + + &Copy to Clipboard + &复制到剪贴板 + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + 从列表中删除当前选中地址。只有发送地址可以被删除。 + + + + &Delete + &删除 + + + + Export Address Book Data + 导出地址薄数据 + + + + Comma separated file (*.csv) + 逗号分隔文件 (*.csv) + + + + Error exporting + 导出错误 + + + + Could not write to file %1. + 无法写入文件 %1。 + + + + AddressTableModel + + + Label + 标签 + + + + Address + 地址 + + + + (no label) + (没有标签) + + + + AskPassphraseDialog + + + Dialog + 会话 + + + + TextLabel + 文本标签 + + + + Enter passphrase + 输入口令 + + + + New passphrase + 新口令 + + + + Repeat new passphrase + 重复新口令 + + + + 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>. + 输入钱包的新口令。<br/>使用的口令请至少包含<b>10个以上随机字符</>,或者是<b>8个以上的单词</b>。 + + + + Encrypt wallet + 加密钱包 + + + + This operation needs your wallet passphrase to unlock the wallet. + 该操作需要您首先使用口令解锁钱包。 + + + + Unlock wallet + 解锁钱包 + + + + This operation needs your wallet passphrase to decrypt the wallet. + 该操作需要您首先使用口令解密钱包。 + + + + Decrypt wallet + 解密钱包 + + + + Change passphrase + 修改口令 + + + + Enter the old and new passphrase to the wallet. + 请输入钱包的旧口令与新口令。 + + + + Confirm wallet encryption + 确认加密钱包 + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + 警告:如果您加密了您的钱包之后忘记了口令,您将会<b>失去所有的比特币</b>! +确定要加密钱包吗? + + + + + Wallet encrypted + 钱包已加密 + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + 请注意,当您的计算机感染恶意软件时,加密钱包并不能完全规避您的比特币被偷窃的可能。 + + + + + + + Wallet encryption failed + 钱包加密失败 + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + 由于一个本地错误,加密钱包操作已经失败。您的钱包没有被加密。 + + + + + The supplied passphrases do not match. + 口令不匹配。 + + + + Wallet unlock failed + 钱包解锁失败 + + + + + + The passphrase entered for the wallet decryption was incorrect. + 用于解密钱包的口令不正确。 + + + + Wallet decryption failed + 钱包解密失败。 + + + + Wallet passphrase was succesfully changed. + 钱包口令修改成功 + + + + BitcoinGUI + + + Bitcoin Wallet + 比特币钱包 + + + + Synchronizing with network... + 正在与网络同步... + + + + Block chain synchronization in progress + 正在同步区域锁链 + + + + &Overview + &概况 + + + + Show general overview of wallet + 显示钱包概况 + + + + &Transactions + &交易 + + + + Browse transaction history + 查看交易历史 + + + + &Address Book + &地址薄 + + + + Edit the list of stored addresses and labels + 修改存储的地址和标签列表 + + + + &Receive coins + &接收货币 + + + + Show the list of addresses for receiving payments + 显示接收支付的地址列表 + + + + &Send coins + &发送货币 + + + + Send coins to a bitcoin address + 将货币发送到一个比特币地址 + + + + E&xit + 退出 + + + + Quit application + 退出程序 + + + + &About %1 + &关于 %1 + + + + Show information about Bitcoin + 显示比特币的相关信息 + + + + &Options... + &选项... + + + + Modify configuration options for bitcoin + 修改比特币配置选项 + + + + Open &Bitcoin + 打开 &比特币 + + + + Show the Bitcoin window + 显示比特币窗口 + + + + &Export... + &导出... + + + + Export the current view to a file + 导出当前视图到指定文件 + + + + &Encrypt Wallet + &加密钱包 + + + + Encrypt or decrypt wallet + 加密或解密钱包 + + + + &Change Passphrase + &修改口令 + + + + Change the passphrase used for wallet encryption + 修改钱包加密口令 + + + + &File + &文件 + + + + &Settings + &设置 + + + + &Help + &帮助 + + + + Tabs toolbar + 分页工具栏 + + + + Actions toolbar + 动作工具栏 + + + + [testnet] + [testnet] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + %n 个到比特币网络的活动连接 + + + + Downloaded %1 of %2 blocks of transaction history. + %1 / %2 个交易历史的区块已下载 + + + + Downloaded %1 blocks of transaction history. + %1 个交易历史的区块已下载 + + + + %n second(s) ago + %n 秒前 + + + + %n minute(s) ago + %n 分种前 + + + + %n hour(s) ago + %n 小时前 + + + + %n day(s) ago + %n 天前 + + + + Up to date + 最新状态 + + + + Catching up... + 更新中... + + + + Last received block was generated %1. + 最新收到的区块产生于 %1。 + + + + 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? + 该笔交易的数据量超限.您可以选择支付 %1 交易费, 交易费将支付给处理该笔交易的网络节点,有助于维持比特币网络的运行. 您愿意支付交易费用吗? + + + + Sending... + 发送中 + + + + Sent transaction + 已发送交易 + + + + Incoming transaction + 流入交易 + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + 日期: %1 +金额: %2 +类别: %3 +地址: %4 + + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + 钱包已被<b>加密</b>,当前为<b>解锁</b>状态 + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + 钱包已被<b>加密</b>,当前为<b>锁定</b>状态 + + + + DisplayOptionsPage + + + &Unit to show amounts in: + &金额显示单位: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + 选择显示及发送比特币时使用的最小单位 + + + + Display addresses in transaction list + 在交易列表中显示地址 + + + + EditAddressDialog + + + Edit Address + 编辑地址 + + + + &Label + &标签 + + + + The label associated with this address book entry + 与此地址条目关联的标签 + + + + &Address + &地址 + + + + The address associated with this address book entry. This can only be modified for sending addresses. + 该地址与地址簿中的条目已关联,无法作为发送地址编辑。 + + + + New receiving address + 新接收地址 + + + + New sending address + 新发送地址 + + + + Edit receiving address + 编辑接收地址 + + + + Edit sending address + 编辑发送地址 + + + + The entered address "%1" is already in the address book. + 输入的地址 "%1" 已经存在于地址薄。 + + + + The entered address "%1" is not a valid bitcoin address. + 输入的地址 "%1" 并不是一个有效的比特币地址 + + + + Could not unlock wallet. + 无法解锁钱包 + + + + New key generation failed. + 密钥创建失败. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + &开机启动比特币 + + + + Automatically start Bitcoin after the computer is turned on + 在计算机启动后自动运行比特币 + + + + &Minimize to the tray instead of the taskbar + &最小化到托盘 + + + + Show only a tray icon after minimizing the window + 最小化窗口后只显示一个托盘标志 + + + + Map port using &UPnP + 使用 &UPnP 映射端口 + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + 自动在路由器中打开比特币端口。只有当您的路由器开启 UPnP 选项时此功能才有效。 + + + + M&inimize on close + 关闭时最小化 + + + + 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. + 当窗口关闭时程序最小化而不是退出。当使用该选项时,程序只能通过在菜单中选择退出来关闭 + + + + &Connect through SOCKS4 proxy: + &通过SOCKS4代理连接 + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + 通过一个SOCKS4代理连接到比特币网络 (如使用Tor连接时) + + + + Proxy &IP: + 代理 &IP: + + + + IP address of the proxy (e.g. 127.0.0.1) + 代理服务器IP (如 127.0.0.1) + + + + &Port: + &端口: + + + + Port of the proxy (e.g. 1234) + 代理端口 (比如 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + 为每1kB交易数据支付交易费将保证您的交易尽快被处理.大部分交易数据都小于1kB. 建议支付0.01个比特币的交易费. + + + + Pay transaction &fee + 支付交易 &费用 + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + 为每1kB交易数据支付交易费将保证您的交易尽快被处理.大部分交易数据都小于1kB. 建议支付0.01个比特币的交易费. + + + + OptionsDialog + + + Main + 主要的 + + + + Display + 查看 + + + + Options + 选项 + + + + OverviewPage + + + Form + 表单 + + + + Balance: + 余额 + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + 交易笔数 + + + + 0 + 0 + + + + Unconfirmed: + 未确认: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">钱包</span></p></body></html> + + + + <b>Recent transactions</b> + <b>当前交易</b> + + + + Your current balance + 您的当前余额 + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + 尚未确认的交易总额, 未计入当前余额 + + + + Total number of transactions in wallet + 钱包总交易数量 + + + + SendCoinsDialog + + + + + + + + + + Send Coins + 发送货币 + + + + Send to multiple recipients at once + 一次发送给多个接收者 + + + + &Add recipient... + &添加接收者... + + + + Clear all + 清除全部 + + + + Balance: + 余额 + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + 确认并发送货币 + + + + &Send + &发送 + + + + <b>%1</b> to %2 (%3) + <b>%1</b> 到 %2 (%3) + + + + Confirm send coins + 确认发送货币 + + + + Are you sure you want to send %1? + 确定您要发送 %1? + + + + and + 和 + + + + The recepient address is not valid, please recheck. + 接收者地址不合法,请检查。 + + + + The amount to pay must be larger than 0. + 支付金额必须大于0. + + + + Amount exceeds your balance + 余额不足。 + + + + Total exceeds your balance when the %1 transaction fee is included + 计入 %1 的交易费后,您的余额不足以支付总价。 + + + + Duplicate address found, can only send to each address once in one send operation + 发现重复地址,一次操作中只可以给每个地址发送一次 + + + + Error: Transaction creation failed + 错误:交易创建失败。 + + + + 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. + 错误:交易被拒绝。这种情况通常发生在您钱包中的一些货币已经被消费之后,比如您使用了一个wallet.dat的副本,而货币在那个副本中已经被消费,但在当前钱包中未被标记为已消费。 + + + + SendCoinsEntry + + + Form + 表单 + + + + A&mount: + 金额 + + + + Pay &To: + 支付 &到: + + + + + Enter a label for this address to add it to your address book + 为这个地址输入一个标签,以便将它添加到您的地址簿 + + + + &Label: + &标签: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + 付款地址 (例如: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + 从地址薄选择地址 + + + + Alt+A + Alt+A + + + + Paste address from clipboard + 从剪贴板粘贴地址 + + + + Alt+P + Alt+P + + + + Remove this recipient + 移除此接收者 + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + 请输入比特币地址 (例如: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + 开启 %1 个数据块 + + + + Open until %1 + 至 %1 个数据块时开启 + + + + %1/offline? + %1/离线? + + + + %1/unconfirmed + %1/未确认 + + + + %1 confirmations + %1 确认项 + + + + <b>Status:</b> + <b>状态:</b> + + + + , has not been successfully broadcast yet + , 未被成功广播 + + + + , broadcast through %1 node + ,同过 %1 节点广播 + + + + , broadcast through %1 nodes + ,同过 %1 节点组广播 + + + + <b>Date:</b> + <b>日期:</b> + + + + <b>Source:</b> Generated<br> + <b>来源:</b> 生成<br> + + + + + <b>From:</b> + <b>从:</b> + + + + unknown + 未知 + + + + + + <b>To:</b> + <b>到:</b> + + + + (yours, label: + (您的, 标签: + + + + (yours) + (您的) + + + + + + + <b>Credit:</b> + <b>到帐:</b> + + + + (%1 matures in %2 more blocks) + (%1 成熟于 %2 以上数据块) + + + + (not accepted) + (未接受) + + + + + + <b>Debit:</b> + 支出 + + + + <b>Transaction fee:</b> + 交易费 + + + + <b>Net amount:</b> + <b>网络金额:</b> + + + + Message: + 消息: + + + + Comment: + 备注 + + + + 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. + 新生产的比特币必须等待120个数据块之后才能被使用. 当您生产出此数据块,它将被广播至比特币网络并添加至数据链. 如果添加到数据链失败, 它的状态将变成"不被接受",生产的比特币将不能使用. 在您生产新数据块的几秒钟内, 如果其它节点也生产出同样的数据块,有可能会发生这种情况. + + + + TransactionDescDialog + + + Transaction details + 交易细节 + + + + This pane shows a detailed description of the transaction + 当前面板显示了交易的详细描述 + + + + TransactionTableModel + + + Date + 日期 + + + + Type + 类型 + + + + Address + 地址 + + + + Amount + 数量 + + + + Open for %n block(s) + 开启 %n 个数据块 + + + + Open until %1 + 至 %1 个数据块时开启 + + + + Offline (%1 confirmations) + 离线 (%1 个确认项) + + + + Unconfirmed (%1 of %2 confirmations) + 未确认 (%1 / %2 条确认信息) + + + + Confirmed (%1 confirmations) + 已确认 (%1 条确认信息) + + + + Mined balance will be available in %n more blocks + 挖矿所得将在 %n 个数据块之后可用 + + + + This block was not received by any other nodes and will probably not be accepted! + 此区块未被其他节点接收,并可能不被接受! + + + + Generated but not accepted + 已生成但未被接受 + + + + Received with + 接收于 + + + + Received from IP + 从IP接收 + + + + Sent to + 发送到 + + + + Sent to IP + 发送到IP + + + + Payment to yourself + 付款给自己 + + + + Mined + 挖矿所得 + + + + (n/a) + (n/a) + + + + Transaction status. Hover over this field to show number of confirmations. + 交易状态。 鼠标移到此区域上可显示确认消息项的数目。 + + + + Date and time that the transaction was received. + 接收交易的时间 + + + + Type of transaction. + 交易类别。 + + + + Destination address of transaction. + 交易目的地址。 + + + + Amount removed from or added to balance. + 从余额添加或移除的金额 + + + + TransactionView + + + + All + 全部 + + + + Today + 今天 + + + + This week + 本周 + + + + This month + 本月 + + + + Last month + 上月 + + + + This year + 今年 + + + + Range... + 范围... + + + + Received with + 接收于 + + + + Sent to + 发送到 + + + + To yourself + 到自己 + + + + Mined + 挖矿所得 + + + + Other + 其他 + + + + Enter address or label to search + 输入地址或标签进行搜索 + + + + Min amount + 最小金额 + + + + Copy address + 复制地址 + + + + Copy label + 复制标签 + + + + Edit label + 编辑标签 + + + + Show details... + 显示细节... + + + + Export Transaction Data + 导出交易数据 + + + + Comma separated file (*.csv) + 逗号分隔文件(*.csv) + + + + Confirmed + 已确认 + + + + Date + 日期 + + + + Type + 类别 + + + + Label + 标签 + + + + Address + 地址 + + + + Amount + 金额 + + + + ID + ID + + + + Error exporting + 导出错误 + + + + Could not write to file %1. + 无法写入文件 %1。 + + + + Range: + 范围: + + + + to + 到 + + + + WalletModel + + + Sending... + 发送中... + + + + bitcoin-core + + + Bitcoin version + 比特币版本 + + + + Usage: + 使用: + + + + Send command to -server or bitcoind + + 发送命令到服务器或者 bitcoind + + + + + List commands + + 列出命令 + + + + + Get help for a command + + 获得某条命令的帮助 + + + + + Options: + + 选项: + + + + + Specify configuration file (default: bitcoin.conf) + + 指定配置文件 (默认为 bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + 指定 pid 文件 (默认为 bitcoind.pid) + + + + + Generate coins + + 生成货币 + + + + + Don't generate coins + + 不要生成货币 + + + + + Start minimized + + 启动时最小化 + + + + + Specify data directory + + 指定数据目录 + + + + + Specify connection timeout (in milliseconds) + + 指定连接超时时间 (微秒) + + + + + Connect through socks4 proxy + + 通过 socks4 代理连接 + + + + + Allow DNS lookups for addnode and connect + + 连接节点时允许DNS查找 + + + + + Add a node to connect to + + 连接到指定节点 + + + + Connect only to the specified node + + 只连接到指定节点 + + + + + Don't accept connections from outside + + 禁止接收外部连接 + + + + + Don't attempt to use UPnP to map the listening port + + 禁止使用 UPnP 映射监听端口 + + + + + Attempt to use UPnP to map the listening port + + 尝试使用 UPnP 映射监听端口 + + + + + Fee per kB to add to transactions you send + + 每发送1kB交易所需的费用 + + + + Accept command line and JSON-RPC commands + + 接受命令行和 JSON-RPC 命令 + + + + + Run in the background as a daemon and accept commands + + 在后台运行并接受命令 + + + + + + Use the test network + + 使用测试网络 + + + + + Username for JSON-RPC connections + + JSON-RPC连接用户名 + + + + + Password for JSON-RPC connections + + JSON-RPC连接密码 + + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + JSON-RPC连接监听<端口> (默认为 8332) + + + + + Allow JSON-RPC connections from specified IP address + + 允许从指定IP接受到的JSON-RPC连接 + + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + 向IP地址为 <ip> 的节点发送指令 (缺省: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + 设置密钥池大小为 <n> (缺省: 100) + + + + + Rescan the block chain for missing wallet transactions + + 重新扫描数据链以查找遗漏的交易 + + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + +SSL 选项: (SSL 安装教程具体见比特币维基百科) + + + + + Use OpenSSL (https) for JSON-RPC connections + + 为 JSON-RPC 连接使用 OpenSSL (https)连接 + + + + Server certificate file (default: server.cert) + + 服务器证书 (默认为 server.cert) + + + + + Server private key (default: server.pem) + + 服务器私钥 (默认为 server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + 可接受的加密器 (默认为 TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + 该帮助信息 + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + 无法给数据目录 %s 加锁。比特币进程可能已在运行。 + + + + Loading addresses... + 正在加载地址... + + + + Error loading addr.dat + + 加载 addr.dat 错误 + + + + + Loading block index... + 加载区块索引... + + + + Error loading blkindex.dat + + 加载 blkindex.dat 失败 + + + + + Loading wallet... + 正在加载钱包... + + + + Error loading wallet.dat: Wallet corrupted + + 加载 wallet.dat 失败:钱包崩溃 + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + 加载 wallet.dat 失败:运行钱包需要一个更新版本的比特币软件 + + + + + Error loading wallet.dat + + 加载 wallet.dat 失败 + + + + + Rescanning... + 正在重新扫描... + + + + Done loading + 加载完成 + + + + Invalid -proxy address + 代理地址不合法 + + + + Invalid amount for -paytxfee=<amount> + 不合适的交易费 -paytxfee=<amount> + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + 警告: -paytxfee 交易费设置过高. 每进行一笔交易您都将支付该数量的交易费. + + + + Error: CreateThread(StartNode) failed + 错误:线程创建(StartNode)失败 + + + + Warning: Disk space is low + 警告:磁盘空间不足 + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + 无法绑定端口 %d 到这台计算机。比特币进程可能已在运行。 + + + + 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? + 交易超出大小限制。你可以继续以 %s 的费用发送。这笔费用将被发送到处理此次交易的节点用以帮助支持这个网络。你想要支付此笔费用吗? + + + + Enter the current passphrase to the wallet. + 输入当前钱包口令 + + + + Passphrase + 口令 + + + + Please supply the current wallet decryption passphrase. + 请提供当前钱包解密口令 + + + + The passphrase entered for the wallet decryption was incorrect. + 当前钱包解密口令不正确。 + + + + Status + 状态 + + + + Date + 日期 + + + + Description + 描述 + + + + Debit + 支出 + + + + Credit + 收入 + + + + Open for %d blocks + 开启 %d 个数据块 + + + + Open until %s + 至 %s 个数据块时开启 + + + + %d/offline? + %d/ 离线? + + + + %d/unconfirmed + %d/未确认 + + + + %d confirmations + %d 确认项 + + + + Generated + 生成 + + + + Generated (%s matures in %d more blocks) + (%s 成熟于 %d 以上数据块) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + 已生成 - 警告:此区块未被其他接收并可能不被接受 + + + + Generated (not accepted) + 已生成(未接受) + + + + From: + 从: + + + + Received with: + 接收于 + + + + Payment to yourself + 支付给自己 + + + + To: + 到: + + + + Generating + 生成中 + + + + (not connected) + (未连接) + + + + %d connections %d blocks %d transactions + %d 个连接 %d 个数据块 %d 笔交易 + + + + Wallet already encrypted. + 钱包已被加密。 + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + 请输入新的钱包密码. +密码须包含10个以上字符,或8个以上单词. + + + + Error: The supplied passphrase was too short. + 错误:提供的口令过短。 + + + + 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? + 警告:如果您在加密钱包后忘记密码, 你将会丢失钱包中所有的比特币! +您确定要对钱包进行加密吗? + + + + Please re-enter your new wallet passphrase. + 请重新输入您的新钱包口令 + + + + Error: the supplied passphrases didn't match. + 错误:提供的口令不匹配。 + + + + Wallet encryption failed. + 钱包加密失败。 + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + 钱包加密成功. +谨记:如果您的电脑感染病毒或木马,即使钱包已经加密,也不能保证您的比特币不被窃,请做好电脑防毒工作. + + + + Wallet is unencrypted, please encrypt it first. + 钱包未加密,请先加密. + + + + Enter the new passphrase for the wallet. + 为钱包输入新口令 + + + + Re-enter the new passphrase for the wallet. + 请再次输入新口令。 + + + + Wallet Passphrase Changed. + 钱包口令已改变 + + + + New Receiving Address + 新接收地址 + + + + You should use a new address for each payment you receive. + +Label + 你应该为每一笔支付使用一条新地址 + +标签 + + + + <b>Status:</b> + <b>状态:</b> + + + + , has not been successfully broadcast yet + ,还未被成功广播。 + + + + , broadcast through %d node + ,通过%d个节点广播 + + + + , broadcast through %d nodes + ,通过%d个节点组广播 + + + + <b>Date:</b> + <b>日期:</b> + + + + <b>Source:</b> Generated<br> + <b>来源:</b> 生成<br> + + + + <b>From:</b> + <b>从:</b> + + + + unknown + 未知 + + + + <b>To:</b> + <b>到:</b> + + + + (yours, label: + (您的,标签: + + + + (yours) + (你的) + + + + <b>Credit:</b> + <b>收入:</b> + + + + (%s matures in %d more blocks) + (%s 成熟于 %d 以上数据块) + + + + (not accepted) + (拒绝) + + + + <b>Debit:</b> + <b>支出:</b> + + + + <b>Transaction fee:</b> + <b>交易费:</b> + + + + <b>Net amount:</b> + <b>网络金额:</b> + + + + Message: + 消息: + + + + Comment: + 备注: + + + + 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. + 新生产的比特币必须等待120个数据块之后才能被使用. 当您生产出此数据块,它将被广播至比特币网络并添加至数据链. 如果添加到数据链失败, 它的状态将变成"不被接受",生产的比特币将不能使用. 在您生产新数据块的几秒钟内, 如果其它节点也生产出同样的数据块,有可能会发生这种情况. + + + + Cannot write autostart/bitcoin.desktop file + 无法写入 autostart/bitcoin.desktop 文件 + + + + Main + 主要的 + + + + &Start Bitcoin on window system startup + &系统启动时运行比特币 + + + + &Minimize on close + &关闭时最小化 + + + + version %s + 版本 %s + + + + Error in amount + 金额错误 + + + + Send Coins + 已发送的货币 + + + + Amount exceeds your balance + 余额不足 + + + + Total exceeds your balance when the + 总价超出您的余额: + + + + transaction fee is included + 已包含交易费 + + + + Payment sent + 支付已发送 + + + + Sending... + 正在发送... + + + + Invalid address + 地址不合法 + + + + Sending %s to %s + 正在发送 %s 到 %s + + + + CANCELLED + 已取消 + + + + Cancelled + 已取消 + + + + Transfer cancelled + 传输已取消 + + + + Error: + 错误: + + + + Insufficient funds + 金额不足 + + + + Connecting... + 正在连接... + + + + Unable to connect + 无法连接 + + + + Requesting public key... + 正在请求公钥... + + + + Received public key... + 公钥已接收... + + + + Recipient is not accepting transactions sent by IP address + 接收者拒绝接收该 IP 地址发送的交易 + + + + Transfer was not accepted + 传输被拒绝 + + + + Invalid response received + 收到非法应答 + + + + Creating transaction... + 创建交易... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + 由于交易量、复杂度或涉及新收到的比特币的原因,您需要为该笔交易支付至少 %s 个比特币的交易费. + + + + Transaction creation failed + 交易创建失败 + + + + Transaction aborted + 交易终止 + + + + Lost connection, transaction cancelled + 连接丢失,交易已被取消 + + + + Sending payment... + 发送支付... + + + + 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. + 交易被拒绝. 有时会发生这种错误, 愿因是您钱包中的一些钱已经被花掉了. 比如说您复制了钱包文件 wallet.dat, 然后用复制的钱包花掉了钱, 您现在所用的原始钱包中却没有该笔交易记录. + + + + Waiting for confirmation... + 等待确认... + + + + 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. + 已付款, 但是无法验证收款人. +这笔交易已经被记录了, 金额也会被记入至收款人的账户, +但附注信息将会是空白. + + + + Payment was sent, but an invalid response was received + 支付已发送,但收到了一个非法应答。 + + + + Payment completed + 支付已完成 + + + + Name + 姓名 + + + + Address + 地址 + + + + Label + 标签 + + + + Bitcoin Address + 比特币地址 + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + 这是一条您自己的用于接收支付的地址,不可以填入地址薄。 + + + + Edit Address + 编辑地址 + + + + Edit Address Label + 编辑地址标签 + + + + Add Address + 添加地址 + + + + Bitcoin + 比特币 + + + + Bitcoin - Generating + 比特币 - 生成中 + + + + Bitcoin - (not connected) + 比特币 - (未连接) + + + + &Open Bitcoin + &打开比特币 + + + + &Send Bitcoins + &发送比特币 + + + + O&ptions... + 选项 + + + + E&xit + 退出 + + + + Program has crashed and will terminate. + 程序崩溃,即将终止。 + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + 警告:请确定您当前计算机的日期和时间是正确的。比特币将无法在错误的时间下正常工作。 + + + + beta + 测试 + + + + main + + + Bitcoin Qt + 比特币 Qt + + + \ No newline at end of file diff --git a/src/qt/locale/bitcoin_zh_TW.ts b/src/qt/locale/bitcoin_zh_TW.ts new file mode 100644 index 0000000..fb5e533 --- /dev/null +++ b/src/qt/locale/bitcoin_zh_TW.ts @@ -0,0 +1,2333 @@ + +UTF-8 + + AboutDialog + + + About Bitcoin + 關於位元幣 + + + + <b>Bitcoin</b> version + <b>位元幣</b>版本 + + + + 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. + 版權為位元幣開發人員自公元 2009 至 2011 年起所有 + +這是個實驗性質的軟體. + +這個軟體在 MIT/X11 執照規範下發行散佈, 詳情請見附帶的 license.txt 檔案, 或網站 http://www.opensource.org/licenses/mit-license.php. + +這個產品中包含了 OpenSSL 專案所開發的 OpenSSL Toolkit 軟體 (http://www.openssl.org/), Eric Young (eay@cryptsoft.com) 所寫的加解密軟體, 以及 Thomas Bernard 所寫的 UPnP 軟體. + + + + AddressBookPage + + + Address Book + 位址簿 + + + + 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. + 這是你用來收款的位元幣位址. 你可以提供不同的位址給不同的付款人, 來追蹤是誰支付給你. + + + + Double-click to edit address or label + 點兩下來修改位址或標記 + + + + Create a new address + 產生新位址 + + + + &New Address... + 新位址... + + + + Copy the currently selected address to the system clipboard + 複製目前選取的位址到系統剪貼簿 + + + + &Copy to Clipboard + 複製到剪貼簿 + + + + Delete the currently selected address from the list. Only sending addresses can be deleted. + 從列表中刪除目前選取的位址. 只能夠刪除付款位址. + + + + &Delete + 刪除 + + + + Export Address Book Data + 匯出位址簿資料 + + + + Comma separated file (*.csv) + 逗號區隔資料檔 (*.csv) + + + + Error exporting + 資料匯出有誤 + + + + Could not write to file %1. + 無法寫入檔案 %1. + + + + AddressTableModel + + + Label + 標記 + + + + Address + 位址 + + + + (no label) + (沒有標記) + + + + AskPassphraseDialog + + + Dialog + 對話視窗 + + + + TextLabel + 文字標籤 + + + + Enter passphrase + 輸入密碼 + + + + New passphrase + 新的密碼 + + + + Repeat new passphrase + 重複新密碼 + + + + 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>. + 輸入錢包的新密碼.<br/>請用<b>10個以上的字元</b>, 或是<b>8個以上的字詞</b>. + + + + Encrypt wallet + 錢包加密 + + + + This operation needs your wallet passphrase to unlock the wallet. + 這個動作需要用你的錢包密碼來解鎖 + + + + Unlock wallet + 錢包解鎖 + + + + This operation needs your wallet passphrase to decrypt the wallet. + 這個動作需要用你的錢包密碼來解密 + + + + Decrypt wallet + 錢包解密 + + + + Change passphrase + 變更密碼 + + + + Enter the old and new passphrase to the wallet. + 輸入錢包的新舊密碼. + + + + Confirm wallet encryption + 錢包加密確認 + + + + WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>! +Are you sure you wish to encrypt your wallet? + 警告: 如果將錢包加密後忘記密碼, 你會<b>失去其中所有的位元幣</b>! +你確定要將錢包加密嗎? + + + + + Wallet encrypted + 錢包已加密 + + + + Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + 請記得, 即使將錢包加密, 也不能完全防止因惡意軟體入侵, 而導致位元幣被偷. + + + + + + + Wallet encryption failed + 錢包加密失敗 + + + + Wallet encryption failed due to an internal error. Your wallet was not encrypted. + 錢包加密因程式內部有誤而失敗. 你的錢包還是沒有加密. + + + + + The supplied passphrases do not match. + 提供的密碼不符. + + + + Wallet unlock failed + 錢包解鎖失敗 + + + + + + The passphrase entered for the wallet decryption was incorrect. + 用來解密錢包的密碼輸入錯誤. + + + + Wallet decryption failed + 錢包解密失敗 + + + + Wallet passphrase was succesfully changed. + 錢包密碼變更成功. + + + + BitcoinGUI + + + Bitcoin Wallet + 位元幣錢包 + + + + Synchronizing with network... + 網路同步中... + + + + Block chain synchronization in progress + 正在進行區塊鎖鏈的同步中 + + + + &Overview + 總覽 + + + + Show general overview of wallet + 顯示錢包一般總覽 + + + + &Transactions + 交易 + + + + Browse transaction history + 瀏覽交易紀錄 + + + + &Address Book + 位址簿 + + + + Edit the list of stored addresses and labels + 編輯儲存位址與標記的列表 + + + + &Receive coins + 收錢 + + + + Show the list of addresses for receiving payments + 顯示收款位址的列表 + + + + &Send coins + 付錢 + + + + Send coins to a bitcoin address + 付錢至某個位元幣位址 + + + + E&xit + 結束 + + + + Quit application + 結束應用程式 + + + + &About %1 + 關於%1 + + + + Show information about Bitcoin + 顯示位元幣相關資訊 + + + + &Options... + 選項... + + + + Modify configuration options for bitcoin + 修改位元幣的設定選項 + + + + Open &Bitcoin + 開啟位元幣 + + + + Show the Bitcoin window + 顯示位元幣主視窗 + + + + &Export... + 匯出... + + + + Export the current view to a file + 將目前版面匯出至檔案 + + + + &Encrypt Wallet + 錢包加密 + + + + Encrypt or decrypt wallet + 將錢包加解密 + + + + &Change Passphrase + 變更密碼 + + + + Change the passphrase used for wallet encryption + 變更錢包加密用的密碼 + + + + &File + 檔案 + + + + &Settings + 設定 + + + + &Help + 求助 + + + + Tabs toolbar + 分頁工具列 + + + + Actions toolbar + 動作工具列 + + + + [testnet] + [testnet] + + + + bitcoin-qt + bitcoin-qt + + + + %n active connection(s) to Bitcoin network + 與位元幣網路有 %n 個連線在使用中 + + + + Downloaded %1 of %2 blocks of transaction history. + 已下載了 %1/%2 個交易紀錄的區塊. + + + + Downloaded %1 blocks of transaction history. + 已下載了 %1 個交易紀錄的區塊. + + + + %n second(s) ago + %n 秒鐘前 + + + + %n minute(s) ago + %n 分鐘前 + + + + %n hour(s) ago + %n 小時前 + + + + %n day(s) ago + %n 天前 + + + + Up to date + 最新狀態 + + + + Catching up... + 進度追趕中... + + + + Last received block was generated %1. + 最近收到的區塊產生於 %1. + + + + 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? + 這筆交易的資料大小超過限制了. 你還是可以付出 %1 的費用來傳送. 這筆費用會付給處理該筆交易的節點, 並幫助維持整個網路. 你願意支付這項費用嗎? + + + + Sending... + 付出中... + + + + Sent transaction + 付款交易 + + + + Incoming transaction + 收款交易 + + + + Date: %1 +Amount: %2 +Type: %3 +Address: %4 + + 日期: %1 +金額: %2 +類別: %3 +位址: %4 + + + + Wallet is <b>encrypted</b> and currently <b>unlocked</b> + 錢包<b>已加密</b>並且正<b>解鎖中</b> + + + + Wallet is <b>encrypted</b> and currently <b>locked</b> + 錢包<b>已加密</b>並且正<b>上鎖中</b> + + + + DisplayOptionsPage + + + &Unit to show amounts in: + 金額顯示單位: + + + + Choose the default subdivision unit to show in the interface, and when sending coins + 選擇操作界面與付錢時預設顯示的細分單位 + + + + Display addresses in transaction list + 在交易列表中顯示位址 + + + + EditAddressDialog + + + Edit Address + 編輯位址 + + + + &Label + 標記 + + + + The label associated with this address book entry + 與這個位址簿項目關聯的標記 + + + + &Address + 位址 + + + + The address associated with this address book entry. This can only be modified for sending addresses. + 與這個位址簿項目關聯的位址. 只能修改付款位址. + + + + New receiving address + 新收款位址 + + + + New sending address + 新付款位址 + + + + Edit receiving address + 編輯收款位址 + + + + Edit sending address + 編輯付款位址 + + + + The entered address "%1" is already in the address book. + 輸入的位址"%1"已存在於位址簿中. + + + + The entered address "%1" is not a valid bitcoin address. + 輸入的位址"%1"並非有效的位元幣位址 + + + + Could not unlock wallet. + 無法將錢包解鎖. + + + + New key generation failed. + 新密鑰產生失敗. + + + + MainOptionsPage + + + &Start Bitcoin on window system startup + 視窗系統啓動時同時開啓位元幣 + + + + Automatically start Bitcoin after the computer is turned on + 電腦開啟後自動啟動位元幣 + + + + &Minimize to the tray instead of the taskbar + 最小化至通知區域而非工作列 + + + + Show only a tray icon after minimizing the window + 視窗最小化時只顯示圖示於通知區域 + + + + Map port using &UPnP + 用 &UPnP 設定通訊埠對應 + + + + Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled. + 自動在路由器上開啟位元幣的客戶端通訊埠. 只有在你的路由器支援 UPnP 且開啟時才有作用. + + + + M&inimize on close + 關閉時最小化 + + + + 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. + 當視窗關閉時將其最小化, 而非結束應用程式. 當勾選這個選項時, 應用程式只能用選單中的結束來停止執行. + + + + &Connect through SOCKS4 proxy: + 透過 SOCKS4 代理伺服器連線: + + + + Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor) + 透過 SOCKS4 代理伺服器連線至位元幣網路 (比如說透過 Tor) + + + + Proxy &IP: + 伺服器位址: + + + + IP address of the proxy (e.g. 127.0.0.1) + 代理伺服器的 IP 位址 (比如說 127.0.0.1) + + + + &Port: + 通訊埠: + + + + Port of the proxy (e.g. 1234) + 代理伺服器的通訊埠 (比如說 1234) + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + 非必要的交易手續費, 有助於縮短你的交易處理時間. 以 kB 為計費單位, 而大部份交易的大小是 1kB. 建議設定為 0.01 元. + + + + Pay transaction &fee + 付交易手續費 + + + + Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1kB. Fee 0.01 recommended. + 非必要的交易手續費, 有助於縮短你的交易處理時間. 以 kB 為計費單位, 而大部份交易的大小是 1kB. 建議設定為 0.01 元. + + + + OptionsDialog + + + Main + 主要 + + + + Display + 顯示 + + + + Options + 選項 + + + + OverviewPage + + + Form + 表單 + + + + Balance: + 餘額: + + + + 123.456 BTC + 123.456 BTC + + + + Number of transactions: + 交易次數: + + + + 0 + 0 + + + + Unconfirmed: + 未確認額: + + + + 0 BTC + 0 BTC + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Wallet</span></p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">錢包</span></p></body></html> + + + + <b>Recent transactions</b> + <b>最近交易</b> + + + + Your current balance + 目前餘額 + + + + Total of transactions that have yet to be confirmed, and do not yet count toward the current balance + 尚未確認之交易的總額, 不包含在目前餘額中 + + + + Total number of transactions in wallet + 錢包中紀錄的總交易次數 + + + + SendCoinsDialog + + + + + + + + + + Send Coins + 付錢 + + + + Send to multiple recipients at once + 一次付給多個人 + + + + &Add recipient... + 加收款人... + + + + Clear all + 全部清掉 + + + + Balance: + 餘額: + + + + 123.456 BTC + 123.456 BTC + + + + Confirm the send action + 確認付款動作 + + + + &Send + 付出 + + + + <b>%1</b> to %2 (%3) + <b>%1</b> 給 %2 (%3) + + + + Confirm send coins + 確認付出金額 + + + + Are you sure you want to send %1? + 確定要付出 %1 嗎? + + + + and + 和 + + + + The recepient address is not valid, please recheck. + 無效的收款位址, 請再檢查看看. + + + + The amount to pay must be larger than 0. + 付款金額必須大於 0. + + + + Amount exceeds your balance + 金額超過了你的餘額 + + + + Total exceeds your balance when the %1 transaction fee is included + 加上交易手續費 %1 後的總金額超過了你的餘額 + + + + Duplicate address found, can only send to each address once in one send operation + 發現了重複的位址; 在一次付款作業中, 只能付給每個位址一次 + + + + Error: Transaction creation failed + 錯誤: 交易產生失敗 + + + + 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. + 錯誤: 交易被拒絕. 有時候會發生這種錯誤, 是因為你錢包中的一些錢已經被花掉了. 比如說你複製了錢包檔 wallet.dat, 然後用複製的錢包花掉了錢, 你現在所用的原來的錢包中卻沒有該筆交易紀錄. + + + + SendCoinsEntry + + + Form + 表單 + + + + A&mount: + 金額: + + + + Pay &To: + 付給: + + + + + Enter a label for this address to add it to your address book + 給這個位址輸入一個標記, 並加到位址簿中 + + + + &Label: + 標記: + + + + The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + 付款的目標位址 (比如說 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + Choose address from address book + 從位址簿中選一個位址 + + + + Alt+A + Alt+A + + + + Paste address from clipboard + 從剪貼簿貼上位址 + + + + Alt+P + Alt+P + + + + Remove this recipient + 去掉這個收款人 + + + + Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + 輸入位元幣位址 (比如說 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) + + + + TransactionDesc + + + Open for %1 blocks + 在 %1 個區塊內未定 + + + + Open until %1 + 在 %1 前未定 + + + + %1/offline? + %1/離線中? + + + + %1/unconfirmed + %1/未確認 + + + + %1 confirmations + 經確認 %1 次 + + + + <b>Status:</b> + <b>狀態:</b> + + + + , has not been successfully broadcast yet + , 尚未成功公告出去 + + + + , broadcast through %1 node + , 已公告至 %1 個節點 + + + + , broadcast through %1 nodes + , 已公告至 %1 個節點 + + + + <b>Date:</b> + <b>日期:</b> + + + + <b>Source:</b> Generated<br> + <b>來源:</b> 生產所得<br> + + + + + <b>From:</b> + <b>來自:</b> + + + + unknown + 未知 + + + + + + <b>To:</b> + <b>目的:</b> + + + + (yours, label: + (你的, 標記為: + + + + (yours) + (你的) + + + + + + + <b>Credit:</b> + <b>入帳:</b> + + + + (%1 matures in %2 more blocks) + (%1 將在 %2 個區塊產出後熟成) + + + + (not accepted) + (不被接受) + + + + + + <b>Debit:</b> + <b>出帳:</b> + + + + <b>Transaction fee:</b> + <b>交易手續費:</b> + + + + <b>Net amount:</b> + <b>淨額:</b> + + + + Message: + 訊息: + + + + Comment: + 附註: + + + + 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. + 生產出來的錢要再等 120 個區塊產出之後, 才能夠花用. 當你產出區塊時, 它會被公布到網路上, 以被串連至區塊鎖鏈. 如果串連失敗了, 它的狀態就會變成"不被接受", 且不能被花用. 當你產出區塊的幾秒鐘內, 其他節點也產出了區塊的話, 有時候就會發生這種情形. + + + + TransactionDescDialog + + + Transaction details + 交易明細 + + + + This pane shows a detailed description of the transaction + 此版面顯示交易的詳細說明 + + + + TransactionTableModel + + + Date + 日期 + + + + Type + 種類 + + + + Address + 位址 + + + + Amount + 金額 + + + + Open for %n block(s) + 在 %n 個區塊內未定 + + + + Open until %1 + 在 %1 前未定 + + + + Offline (%1 confirmations) + 離線中 (經確認 %1 次) + + + + Unconfirmed (%1 of %2 confirmations) + 未確認 (經確認 %1 次, 應確認 %2 次) + + + + Confirmed (%1 confirmations) + 已確認 (經確認 %1 次) + + + + Mined balance will be available in %n more blocks + 生產金額將在 %n 個區塊產出後可用 + + + + This block was not received by any other nodes and will probably not be accepted! + 沒有其他節點收到這個區塊, 也許它不被接受! + + + + Generated but not accepted + 產出但不被接受 + + + + Received with + 收受於 + + + + Received from IP + 收受於網路位址 + + + + Sent to + 付出至 + + + + Sent to IP + 付出至網路位址 + + + + Payment to yourself + 付給自己 + + + + Mined + 開採所得 + + + + (n/a) + (不適用) + + + + Transaction status. Hover over this field to show number of confirmations. + 交易狀態. 移動游標至欄位上方來顯示確認次數. + + + + Date and time that the transaction was received. + 收到交易的日期與時間. + + + + Type of transaction. + 交易的種類. + + + + Destination address of transaction. + 交易的目標位址. + + + + Amount removed from or added to balance. + 減去或加入至餘額的金額 + + + + TransactionView + + + + All + 全部 + + + + Today + 今天 + + + + This week + 這週 + + + + This month + 這個月 + + + + Last month + 上個月 + + + + This year + 今年 + + + + Range... + 指定範圍... + + + + Received with + 收受於 + + + + Sent to + 付出至 + + + + To yourself + 給自己 + + + + Mined + 開採所得 + + + + Other + 其他 + + + + Enter address or label to search + 輸入位址或標記來搜尋 + + + + Min amount + 最小金額 + + + + Copy address + 複製位址 + + + + Copy label + 複製標記 + + + + Edit label + 編輯標記 + + + + Show details... + 顯示明細... + + + + Export Transaction Data + 匯出交易資料 + + + + Comma separated file (*.csv) + 逗號分隔資料檔 (*.csv) + + + + Confirmed + 已確認 + + + + Date + 日期 + + + + Type + 種類 + + + + Label + 標記 + + + + Address + 位址 + + + + Amount + 金額 + + + + ID + 識別碼 + + + + Error exporting + 匯出錯誤 + + + + Could not write to file %1. + 無法寫入至 %1 檔案. + + + + Range: + 範圍: + + + + to + 至 + + + + WalletModel + + + Sending... + 付出中... + + + + bitcoin-core + + + Bitcoin version + 位元幣版本 + + + + Usage: + 用法: + + + + Send command to -server or bitcoind + + 送指令至 -server 或 bitcoind + + + + + List commands + + 列出指令 + + + + + Get help for a command + + 取得指令說明 + + + + + Options: + + 選項: + + + + + Specify configuration file (default: bitcoin.conf) + + 指定設定檔 (預設: bitcoin.conf) + + + + + Specify pid file (default: bitcoind.pid) + + 指定行程識別碼檔案 (預設: bitcoind.pid) + + + + + Generate coins + + 生產位元幣 + + + + + Don't generate coins + + 不生產位元幣 + + + + + Start minimized + + 啓動時最小化 + + + + + Specify data directory + + 指定資料目錄 + + + + + Specify connection timeout (in milliseconds) + + 指定連線逾時時間 (毫秒) + + + + + Connect through socks4 proxy + + 透過 socks4 代理伺服器連線 + + + + + Allow DNS lookups for addnode and connect + + 允許 addnode 和 connect 時做域名解析 + + + + + Add a node to connect to + + 新增連線節點 + + + + + Connect only to the specified node + + 只連線至指定節點 + + + + + Don't accept connections from outside + + 不接受外來連線 + + + + + Don't attempt to use UPnP to map the listening port + + 不嘗試用 UPnP 來設定服務連接埠的對應 + + + + + Attempt to use UPnP to map the listening port + + 嘗試用 UPnP 來設定服務連接埠的對應 + + + + + Fee per kB to add to transactions you send + + 交易付款時每 kB 的交易手續費 + + + + + Accept command line and JSON-RPC commands + + 接受命令列與 JSON-RPC 指令 + + + + + Run in the background as a daemon and accept commands + + 以背景程式執行並接受指令 + + + + Use the test network + + 使用測試網路 + + + + + Username for JSON-RPC connections + + JSON-RPC 連線使用者名稱 + + + + Password for JSON-RPC connections + + JSON-RPC 連線密碼 + + + + Listen for JSON-RPC connections on <port> (default: 8332) + + 在通訊埠 <port> 聽候 JSON-RPC 連線 (預設: 8332) + + + + Allow JSON-RPC connections from specified IP address + + 只允許從指定網路位址來的 JSON-RPC 連線 + + + + Send commands to node running on <ip> (default: 127.0.0.1) + + 送指令給在 <ip> 的節點 (預設: 127.0.0.1) + + + + + Set key pool size to <n> (default: 100) + + 設定密鑰池大小為 <n> (預設: 100) + + + + + Rescan the block chain for missing wallet transactions + + 重新掃描區塊鎖鏈, 以尋找錢包所遺漏的交易. + + + + +SSL options: (see the Bitcoin Wiki for SSL setup instructions) + + +SSL 選項: (SSL 設定程序請見 Bitcoin Wiki) + + + + + Use OpenSSL (https) for JSON-RPC connections + + 使用 OpenSSL (https) 於JSON-RPC 連線 + + + + + Server certificate file (default: server.cert) + + 伺服器憑證檔 (預設: server.cert) + + + + + Server private key (default: server.pem) + + 伺服器密鑰檔 (預設: server.pem) + + + + + Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + 可以接受的加密法 (預設: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) + + + + + This help message + + 此協助訊息 + + + + + Cannot obtain a lock on data directory %s. Bitcoin is probably already running. + 無法鎖定資料目錄 %s. 也許位元幣已經在執行了. + + + + Loading addresses... + 載入位址中... + + + + Error loading addr.dat + + 載入 addr.dat 錯誤 + + + + + Loading block index... + 載入區塊索引中... + + + + Error loading blkindex.dat + + 載入 blkindex.dat 失敗 + + + + + Loading wallet... + 載入錢包中... + + + + Error loading wallet.dat: Wallet corrupted + + 載入 wallet.dat 失敗: 錢包壞掉了 + + + + + Error loading wallet.dat: Wallet requires newer version of Bitcoin + + 載入 wallet.dat 錯誤: 此錢包需要新版的 Bitcoin + + + + + Error loading wallet.dat + + 載入 wallet.dat 錯誤 + + + + + Rescanning... + 重新掃描中... + + + + Done loading + 載入完成 + + + + Invalid -proxy address + 無效的 -proxy 位址 + + + + Invalid amount for -paytxfee=<amount> + -paytxfee=<金額> 中的金額無效 + + + + Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction. + 警告: -paytxfee 設定得很高. 這是當你交易付款時所要支付的手續費. + + + + Error: CreateThread(StartNode) failed + 錯誤: CreateThread(StartNode) 失敗 + + + + Warning: Disk space is low + 警告: 磁碟空間很少 + + + + Unable to bind to port %d on this computer. Bitcoin is probably already running. + 無法與這台電腦上的通訊埠 %d 連結. 也許 Bitcoin 已經在執行了. + + + + 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? + 這筆交易的資料大小超過限制了. 你還是可以付出 %s 的費用來傳送. 這項費用會付給處理該筆交易的節點, 並幫助維持整個網路. 你願意支付這項費用嗎? + + + + Enter the current passphrase to the wallet. + 輸入錢包目前的密碼. + + + + Passphrase + 密碼 + + + + Please supply the current wallet decryption passphrase. + 請提供錢包目前的解密密碼 + + + + The passphrase entered for the wallet decryption was incorrect. + 輸入的錢包解密密碼不對 + + + + Status + 狀態 + + + + Date + 日期 + + + + Description + 說明 + + + + Debit + 出帳 + + + + Credit + 入帳 + + + + Open for %d blocks + 在 %d 個區塊內未定 + + + + Open until %s + 在 %s 前未定 + + + + %d/offline? + %d/斷線中? + + + + %d/unconfirmed + %d/未確認 + + + + %d confirmations + 經確認 %d 次 + + + + Generated + 已產出 + + + + Generated (%s matures in %d more blocks) + 已產出 (%s 將在 %d 個區塊產出後熟成) + + + + Generated - Warning: This block was not received by any other nodes and will probably not be accepted! + 已產出 - 警告: 沒有任何的其他節點收到此區塊, 也許不會被接受! + + + + Generated (not accepted) + 已產出 (不被接受) + + + + From: + 來自: + + + + Received with: + 收受於: + + + + Payment to yourself + 付給自己 + + + + To: + 目的: + + + + Generating + 生產中 + + + + (not connected) + (未連線) + + + + %d connections %d blocks %d transactions + %d 個連線 %d 個區塊 %d 次交易 + + + + Wallet already encrypted. + 錢包已經加密了. + + + + Enter the new passphrase to the wallet. +Please use a passphrase of 10 or more random characters, or eight or more words. + 輸入錢包的新密碼. +密碼請用 10 個以上的字元, 或是 8 個以上的字詞. + + + + Error: The supplied passphrase was too short. + 錯誤: 提供的密碼太短了. + + + + 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? + 警告: 如果將錢包加密後忘記密碼, 你會失去其中所有的位元幣! +你確定要將錢包加密嗎? + + + + Please re-enter your new wallet passphrase. + 請再輸入一次新密碼. + + + + Error: the supplied passphrases didn't match. + 錯誤: 提供的密碼不相符. + + + + Wallet encryption failed. + 錢包加密失敗. + + + + Wallet Encrypted. +Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer. + 錢包已加密. +請記得, 即使將錢包加密, 也不能完全防止因惡意軟體入侵, 而導致位元幣被偷. + + + + Wallet is unencrypted, please encrypt it first. + 錢包未加密, 請先加密. + + + + Enter the new passphrase for the wallet. + 輸入錢包的新密碼. + + + + Re-enter the new passphrase for the wallet. + 再輸入一次錢包的新密碼. + + + + Wallet Passphrase Changed. + 錢包密碼已變更. + + + + New Receiving Address + 新增收款位址 + + + + You should use a new address for each payment you receive. + +Label + 每次收款你都應該要用一個新的位址. + +標記 + + + + <b>Status:</b> + <b>狀態:</b> + + + + , has not been successfully broadcast yet + , 尚未成功公告出去 + + + + , broadcast through %d node + , 公告至 %d 個節點 + + + + , broadcast through %d nodes + , 公告至 %d 個節點 + + + + <b>Date:</b> + <b>日期:</b> + + + + <b>Source:</b> Generated<br> + <b>來源:</b> 生產所得<br> + + + + <b>From:</b> + <b>來自:</b> + + + + unknown + 不明 + + + + <b>To:</b> + <b>目的:</b> + + + + (yours, label: + (你的, 標記為: + + + + (yours) + (你的) + + + + <b>Credit:</b> + <b>入帳:</b> + + + + (%s matures in %d more blocks) + (%s 將在 %d 個區塊產出後熟成) + + + + (not accepted) + (不被接受) + + + + <b>Debit:</b> + <b>出帳:</b> + + + + <b>Transaction fee:</b> + <b>交易手續費:</b> + + + + <b>Net amount:</b> + <b>淨額:</b> + + + + Message: + 訊息: + + + + Comment: + 附註: + + + + 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. + 生產出來的錢要再等 120 個區塊產出之後, 才能夠花用. 當你產出區塊時, 它會被公布到網路上, 以被串連至區塊鎖鏈. 如果串連失敗了, 它的狀態就會變成"不被接受", 且不能被花用. 當你產出區塊的幾秒鐘內, 其他節點也產出了區塊的話, 有時候就會發生這種情形. + + + + Cannot write autostart/bitcoin.desktop file + 無法寫入 autostart/bitcoin.desktop 檔案 + + + + Main + 主要 + + + + &Start Bitcoin on window system startup + 視窗系統啓動時同時開啓位元幣 + + + + &Minimize on close + 關閉時最小化 + + + + version %s + %s 版 + + + + Error in amount + 金額有誤 + + + + Send Coins + 付錢 + + + + Amount exceeds your balance + 金額超過了餘額 + + + + Total exceeds your balance when the + 包含手續費 + + + + transaction fee is included + 後總額超過了餘額 + + + + Payment sent + 已付款 + + + + Sending... + 付出中... + + + + Invalid address + 無效的位址 + + + + Sending %s to %s + 付出 %s 給 %s + + + + CANCELLED + 已取消 + + + + Cancelled + 已取消 + + + + Transfer cancelled + 交易已取消 + + + + Error: + 錯誤: + + + + Insufficient funds + 累積金額不足 + + + + Connecting... + 連線中... + + + + Unable to connect + 無法連線 + + + + Requesting public key... + 請求公鑰中... + + + + Received public key... + 接收公鑰中... + + + + Recipient is not accepting transactions sent by IP address + 收款人不接受來自以下網路位址的交易: + + + + Transfer was not accepted + 轉帳不被接受 + + + + Invalid response received + 收到了無效的回應 + + + + Creating transaction... + 交易建立中... + + + + This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds + 這筆交易因為金額或複雜度或最近累積收款的關係, 需要至少 %s 的手續費 + + + + Transaction creation failed + 交易建立失敗 + + + + Transaction aborted + 交易取消 + + + + Lost connection, transaction cancelled + 斷線了, 交易已取消 + + + + Sending payment... + 付款中... + + + + 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. + 交易被拒絕了. 有時候會發生這種事, 是因為你錢包中的一些錢已經被花掉了. 比如說你複製了錢包檔 wallet.dat, 然後用複製的錢包花掉了錢, 你現在所用的原來的錢包中卻沒有該筆交易紀錄. + + + + Waiting for confirmation... + 等待確認中... + + + + 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. + 已付款, 但是無法驗證收款人. +這筆交易已經被紀錄了, 金額也會被記入至收款人的帳戶, +然而附註資訊將會是空白. + + + + Payment was sent, but an invalid response was received + 已付款, 但是收到無效的回應 + + + + Payment completed + 付款完成 + + + + Name + 名稱 + + + + Address + 位址 + + + + Label + 標記 + + + + Bitcoin Address + 位元幣位址 + + + + This is one of your own addresses for receiving payments and cannot be entered in the address book. + 這是你的一個收款位址, 因而無法輸入於位址簿中. + + + + Edit Address + 編輯位址 + + + + Edit Address Label + 編輯位址標記 + + + + Add Address + 新增位址 + + + + Bitcoin + 位元幣 + + + + Bitcoin - Generating + 位元幣 - 生產中 + + + + Bitcoin - (not connected) + 位元幣 - (未連線) + + + + &Open Bitcoin + 開啓位元幣 + + + + &Send Bitcoins + 付位元幣 + + + + O&ptions... + 選項... + + + + E&xit + 結束 + + + + Program has crashed and will terminate. + 程式已當掉且將被終止. + + + + Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly. + 警告: 請檢查電腦時間日期是否正確. 位元幣無法在時鐘不準的情況下正常運作. + + + + beta + 公測版 + + + + main + + + Bitcoin Qt + 位元幣Qt版 + + + \ No newline at end of file diff --git a/src/qt/macdockiconhandler.h b/src/qt/macdockiconhandler.h new file mode 100644 index 0000000..d02c148 --- /dev/null +++ b/src/qt/macdockiconhandler.h @@ -0,0 +1,39 @@ +#ifndef MACDOCKICONHANDLER_H +#define MACDOCKICONHANDLER_H + +#include + +class QMenu; +class QIcon; +class QWidget; +class objc_object; + +/** Macintosh-specific dock icon handler. + */ +class MacDockIconHandler : public QObject +{ + Q_OBJECT +public: + ~MacDockIconHandler(); + + QMenu *dockMenu(); + void setIcon(const QIcon &icon); + + static MacDockIconHandler *instance(); + + void handleDockIconClickEvent(); + +signals: + void dockIconClicked(); + +public slots: + +private: + MacDockIconHandler(); + + objc_object *m_dockIconClickEventHandler; + QWidget *m_dummyWidget; + QMenu *m_dockMenu; +}; + +#endif // MACDOCKICONCLICKHANDLER_H diff --git a/src/qt/macdockiconhandler.mm b/src/qt/macdockiconhandler.mm new file mode 100644 index 0000000..df56e69 --- /dev/null +++ b/src/qt/macdockiconhandler.mm @@ -0,0 +1,99 @@ + +#include "macdockiconhandler.h" + +#include +#include + +extern void qt_mac_set_dock_menu(QMenu*); + +#undef slots +#include + +@interface DockIconClickEventHandler : NSObject +{ + MacDockIconHandler* dockIconHandler; +} + +@end + +@implementation DockIconClickEventHandler + +- (id)initWithDockIconHandler:(MacDockIconHandler *)aDockIconHandler +{ + self = [super init]; + if (self) { + dockIconHandler = aDockIconHandler; + + [[NSAppleEventManager sharedAppleEventManager] + setEventHandler:self + andSelector:@selector(handleDockClickEvent:withReplyEvent:) + forEventClass:kCoreEventClass + andEventID:kAEReopenApplication]; + } + return self; +} + +- (void)handleDockClickEvent:(NSAppleEventDescriptor*)event withReplyEvent:(NSAppleEventDescriptor*)replyEvent +{ + Q_UNUSED(event) + Q_UNUSED(replyEvent) + + if (dockIconHandler) + dockIconHandler->handleDockIconClickEvent(); +} + +@end + +MacDockIconHandler::MacDockIconHandler() : QObject() +{ + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + this->m_dockIconClickEventHandler = [[DockIconClickEventHandler alloc] initWithDockIconHandler:this]; + + this->m_dummyWidget = new QWidget(); + this->m_dockMenu = new QMenu(this->m_dummyWidget); + qt_mac_set_dock_menu(this->m_dockMenu); + [pool release]; +} + +MacDockIconHandler::~MacDockIconHandler() +{ + [this->m_dockIconClickEventHandler release]; + delete this->m_dummyWidget; +} + +QMenu *MacDockIconHandler::dockMenu() +{ + return this->m_dockMenu; +} + +void MacDockIconHandler::setIcon(const QIcon &icon) +{ + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + NSImage *image; + if (icon.isNull()) + image = [[NSImage imageNamed:@"NSApplicationIcon"] retain]; + else { + QSize size = icon.actualSize(QSize(128, 128)); + QPixmap pixmap = icon.pixmap(size); + CGImageRef cgImage = pixmap.toMacCGImageRef(); + image = [[NSImage alloc] initWithCGImage:cgImage size:NSZeroSize]; + CFRelease(cgImage); + } + + [NSApp setApplicationIconImage:image]; + [image release]; + [pool release]; +} + +MacDockIconHandler *MacDockIconHandler::instance() +{ + static MacDockIconHandler *s_instance = NULL; + if (!s_instance) + s_instance = new MacDockIconHandler(); + return s_instance; +} + +void MacDockIconHandler::handleDockIconClickEvent() +{ + emit this->dockIconClicked(); +} diff --git a/src/qt/monitoreddatamapper.cpp b/src/qt/monitoreddatamapper.cpp new file mode 100644 index 0000000..88948d0 --- /dev/null +++ b/src/qt/monitoreddatamapper.cpp @@ -0,0 +1,36 @@ +#include "monitoreddatamapper.h" + +#include +#include +#include + +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 index 0000000..33a874e --- /dev/null +++ b/src/qt/monitoreddatamapper.h @@ -0,0 +1,31 @@ +#ifndef MONITOREDDATAMAPPER_H +#define MONITOREDDATAMAPPER_H + +#include + +QT_BEGIN_NAMESPACE +class QWidget; +QT_END_NAMESPACE + +/** Data to Widget mapper that watches for edits and notifies listeners when a field is edited. + This can be used, for example, to enable a commit/apply button in a configuration dialog. + */ +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 index 0000000..e668079 --- /dev/null +++ b/src/qt/notificator.cpp @@ -0,0 +1,302 @@ +#include "notificator.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef USE_DBUS +#include +#include +#endif + +#ifdef Q_WS_MAC +#include +extern bool qt_mac_execute_apple_script(const QString &script, AEDesc *ret); +#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 +#ifdef Q_WS_MAC + // Check if Growl is installed (based on Qt's tray icon implementation) + CFURLRef cfurl; + OSStatus status = LSGetApplicationForInfo(kLSUnknownType, kLSUnknownCreator, CFSTR("growlTicket"), kLSRolesAll, 0, &cfurl); + if (status != kLSApplicationNotFoundErr) { + CFBundleRef bundle = CFBundleCreate(0, cfurl); + if (CFStringCompare(CFBundleGetIdentifier(bundle), CFSTR("com.Growl.GrowlHelperApp"), kCFCompareCaseInsensitive | kCFCompareBackwards) == kCFCompareEqualTo) { + if (CFStringHasSuffix(CFURLGetString(cfurl), CFSTR("/Growl.app/"))) + mode = Growl13; + else + mode = Growl12; + } + CFRelease(cfurl); + CFRelease(bundle); + } +#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(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(); +} + +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 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); +} + +// Based on Qt's tray icon implementation +#ifdef Q_WS_MAC +void Notificator::notifyGrowl(Class cls, const QString &title, const QString &text, const QIcon &icon) +{ + const QString script( + "tell application \"%5\"\n" + " set the allNotificationsList to {\"Notification\"}\n" // -- Make a list of all the notification types (all) + " set the enabledNotificationsList to {\"Notification\"}\n" // -- Make a list of the notifications (enabled) + " register as application \"%1\" all notifications allNotificationsList default notifications enabledNotificationsList\n" // -- Register our script with Growl + " notify with name \"Notification\" title \"%2\" description \"%3\" application name \"%1\"%4\n" // -- Send a Notification + "end tell" + ); + + QString notificationApp(QApplication::applicationName()); + if (notificationApp.isEmpty()) + notificationApp = "Application"; + + QPixmap notificationIconPixmap; + if (icon.isNull()) { // If no icon specified, set icon based on class + 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; + } + notificationIconPixmap = QApplication::style()->standardPixmap(sicon); + } + else { + QSize size = icon.actualSize(QSize(48, 48)); + notificationIconPixmap = icon.pixmap(size); + } + + QString notificationIcon; + QTemporaryFile notificationIconFile; + if (!notificationIconPixmap.isNull() && notificationIconFile.open()) { + QImageWriter writer(¬ificationIconFile, "PNG"); + if (writer.write(notificationIconPixmap.toImage())) + notificationIcon = QString(" image from location \"file://%1\"").arg(notificationIconFile.fileName()); + } + + QString quotedTitle(title), quotedText(text); + quotedTitle.replace("\\", "\\\\").replace("\"", "\\"); + quotedText.replace("\\", "\\\\").replace("\"", "\\"); + QString growlApp(this->mode == Notificator::Growl13 ? "Growl" : "GrowlHelperApp"); + qt_mac_execute_apple_script(script.arg(notificationApp, quotedTitle, quotedText, notificationIcon, growlApp), 0); +} +#endif + +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; +#ifdef Q_WS_MAC + case Growl12: + case Growl13: + notifyGrowl(cls, title, text, icon); + break; +#endif + 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 index 0000000..0271c26 --- /dev/null +++ b/src/qt/notificator.h @@ -0,0 +1,69 @@ +#ifndef NOTIFICATOR_H +#define NOTIFICATOR_H + +#include +#include + +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. + @note 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, /**< Informational message */ + Warning, /**< Notify user of potential problem */ + Critical /**< An error occured */ + }; + +public slots: + + /** Show notification message. + @param[in] cls general message class + @param[in] title title shown with message + @param[in] text message content + @param[in] icon optional icon to show with message + @param[in] millisTimeout notification timeout in milliseconds (defaults to 10 seconds) + @note Platform implementations are free to ignore any of the provided fields except for \a text. + */ + void notify(Class cls, const QString &title, const QString &text, + const QIcon &icon = QIcon(), int millisTimeout = 10000); + +private: + QWidget *parent; + enum Mode { + None, /**< Ignore informational notifications, and show a modal pop-up dialog for Critical notifications. */ + Freedesktop, /**< Use DBus org.freedesktop.Notifications */ + QSystemTray, /**< Use QSystemTray::showMessage */ + Growl12, /**< Use the Growl 1.2 notification system (Mac only) */ + Growl13 /**< Use the Growl 1.3 notification system (Mac only) */ + }; + 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); +#ifdef Q_WS_MAC + void notifyGrowl(Class cls, const QString &title, const QString &text, const QIcon &icon); +#endif +}; + +#endif // NOTIFICATOR_H diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp new file mode 100644 index 0000000..0025337 --- /dev/null +++ b/src/qt/optionsdialog.cpp @@ -0,0 +1,294 @@ +#include "optionsdialog.h" +#include "optionsmodel.h" +#include "bitcoinamountfield.h" +#include "monitoreddatamapper.h" +#include "guiutil.h" +#include "bitcoinunits.h" +#include "qvaluecombobox.h" + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +/* 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; +#ifndef Q_WS_MAC + QCheckBox *minimize_to_tray; +#endif + QCheckBox *map_port_upnp; +#ifndef Q_WS_MAC + QCheckBox *minimize_on_close; +#endif + 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); + +#ifndef Q_WS_MAC + 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); +#endif + + 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); + +#ifndef Q_WS_MAC + 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); +#endif + + 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 1 kB. 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 1 kB. 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); +#ifndef Q_WS_MAC + mapper->addMapping(minimize_to_tray, OptionsModel::MinimizeToTray); +#endif + mapper->addMapping(map_port_upnp, OptionsModel::MapPortUPnP); +#ifndef Q_WS_MAC + mapper->addMapping(minimize_on_close, OptionsModel::MinimizeOnClose); +#endif + 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); + display_addresses->setToolTip(tr("Whether to show Bitcoin addresses in the transaction list")); + 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 index 0000000..9e1f87c --- /dev/null +++ b/src/qt/optionsdialog.h @@ -0,0 +1,53 @@ +#ifndef OPTIONSDIALOG_H +#define OPTIONSDIALOG_H + +#include + +QT_BEGIN_NAMESPACE +class QStackedWidget; +class QListWidget; +class QListWidgetItem; +class QPushButton; +QT_END_NAMESPACE +class OptionsModel; +class MainOptionsPage; +class DisplayOptionsPage; +class MonitoredDataMapper; + +/** Preferences dialog. */ +class OptionsDialog : public QDialog +{ + Q_OBJECT +public: + explicit OptionsDialog(QWidget *parent=0); + + void setModel(OptionsModel *model); + +signals: + +public slots: + /** Change the current page to \a index. */ + 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 index 0000000..02daef5 --- /dev/null +++ b/src/qt/optionsmodel.cpp @@ -0,0 +1,164 @@ +#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); + } + break; + case DisplayAddresses: { + bDisplayAddresses = value.toBool(); + walletdb.WriteSetting("bDisplayAddresses", bDisplayAddresses); + } + break; + 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 index 0000000..775362d --- /dev/null +++ b/src/qt/optionsmodel.h @@ -0,0 +1,56 @@ +#ifndef OPTIONSMODEL_H +#define OPTIONSMODEL_H + +#include + +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 index 0000000..5b5a8f5 --- /dev/null +++ b/src/qt/overviewpage.cpp @@ -0,0 +1,179 @@ +#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 +#include + +#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(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(value)) + { + foreground = qvariant_cast(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: + ui->labelBalance->setFont(QFont("Monospace", -1, QFont::Bold)); + ui->labelBalance->setToolTip(tr("Your current balance")); + ui->labelBalance->setTextInteractionFlags(Qt::TextSelectableByMouse|Qt::TextSelectableByKeyboard); + + // Unconfirmed 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("QListView { 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)); + ui->listTransactions->setAttribute(Qt::WA_MacShowFocusRect, false); + + 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; + if(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(!model || !model->getOptionsModel()) + return; + 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 index 0000000..1199227 --- /dev/null +++ b/src/qt/overviewpage.h @@ -0,0 +1,46 @@ +#ifndef OVERVIEWPAGE_H +#define OVERVIEWPAGE_H + +#include + +QT_BEGIN_NAMESPACE +class QModelIndex; +QT_END_NAMESPACE + +namespace Ui { + class OverviewPage; +} +class WalletModel; +class TxViewDelegate; + +/** Overview ("home") page widget */ +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 index 0000000..8ca230c --- /dev/null +++ b/src/qt/qvalidatedlineedit.cpp @@ -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 index 0000000..66e26be --- /dev/null +++ b/src/qt/qvalidatedlineedit.h @@ -0,0 +1,29 @@ +#ifndef QVALIDATEDLINEEDIT_H +#define QVALIDATEDLINEEDIT_H + +#include + +/** Line edit that can be marked as "invalid" to show input validation feedback. 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 index 0000000..c0ad8c1 --- /dev/null +++ b/src/qt/qvaluecombobox.cpp @@ -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 index 0000000..11f342d --- /dev/null +++ b/src/qt/qvaluecombobox.h @@ -0,0 +1,32 @@ +#ifndef QVALUECOMBOBOX_H +#define QVALUECOMBOBOX_H + +#include + +/* 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); + + /** Specify model role to use as ordinal 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 index 0000000..1a1ab53 --- /dev/null +++ b/src/qt/res/bitcoin-qt.rc @@ -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 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 index 0000000..d41dbe6 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 index 0000000..1df9c23 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 index 0000000..10ac0e1 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 index 0000000..ece0164 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 index 0000000..c566510 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 index 0000000..c98ca86 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 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 index 0000000..ee2511f 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 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 index 0000000..53ad1d1 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 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 index 0000000..ceb91ea 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 index 0000000..4d7e0e8 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 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 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 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 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 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 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 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 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 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 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 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 index 0000000..96f1017 --- /dev/null +++ b/src/qt/res/src/bitcoin.svg @@ -0,0 +1,115 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/qt/res/src/clock1.svg b/src/qt/res/src/clock1.svg new file mode 100644 index 0000000..793dc7f --- /dev/null +++ b/src/qt/res/src/clock1.svg @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/qt/res/src/clock2.svg b/src/qt/res/src/clock2.svg new file mode 100644 index 0000000..6a78adf --- /dev/null +++ b/src/qt/res/src/clock2.svg @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/qt/res/src/clock3.svg b/src/qt/res/src/clock3.svg new file mode 100644 index 0000000..09ccc25 --- /dev/null +++ b/src/qt/res/src/clock3.svg @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/qt/res/src/clock4.svg b/src/qt/res/src/clock4.svg new file mode 100644 index 0000000..7d9dc37 --- /dev/null +++ b/src/qt/res/src/clock4.svg @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/qt/res/src/clock5.svg b/src/qt/res/src/clock5.svg new file mode 100644 index 0000000..9fd58d9 --- /dev/null +++ b/src/qt/res/src/clock5.svg @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/qt/res/src/clock_green.svg b/src/qt/res/src/clock_green.svg new file mode 100644 index 0000000..e31f0e7 --- /dev/null +++ b/src/qt/res/src/clock_green.svg @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/qt/res/src/inout.svg b/src/qt/res/src/inout.svg new file mode 100644 index 0000000..bfab8ef --- /dev/null +++ b/src/qt/res/src/inout.svg @@ -0,0 +1,122 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/src/qt/res/src/questionmark.svg b/src/qt/res/src/questionmark.svg new file mode 100644 index 0000000..c03c159 --- /dev/null +++ b/src/qt/res/src/questionmark.svg @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + ? + ? + + + ? + + diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp new file mode 100644 index 0000000..4c58b38 --- /dev/null +++ b/src/qt/sendcoinsdialog.cpp @@ -0,0 +1,288 @@ +#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 +#include +#include +#include + +SendCoinsDialog::SendCoinsDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::SendCoinsDialog), + model(0) +{ + ui->setupUi(this); + +#ifdef Q_WS_MAC // Icons on push buttons are very uncommon on Mac + ui->addButton->setIcon(QIcon()); + ui->clearButton->setIcon(QIcon()); + ui->sendButton->setIcon(QIcon()); +#endif + + 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(ui->entries->itemAt(i)->widget()); + if(entry) + { + entry->setModel(model); + } + } + if(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 recipients; + bool valid = true; + + if(!model) + return; + + for(int i = 0; i < ui->entries->count(); ++i) + { + SendCoinsEntry *entry = qobject_cast(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("%1 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::Aborted: // User aborted, nothing to do + 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(); + entry->setFocus(); + ui->scrollAreaWidgetContents->resize(ui->scrollAreaWidgetContents->sizeHint()); + QCoreApplication::instance()->processEvents(); + QScrollBar* bar = ui->scrollArea->verticalScrollBar(); + if (bar) + bar->setSliderPosition(bar->maximum()); + 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(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(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(ui->entries->itemAt(0)->widget()); + if(first->isClear()) + { + entry = first; + } + } + if(!entry) + { + entry = addEntry(); + } + + entry->setValue(rv); +} + + +void SendCoinsDialog::handleURI(const QUrl *uri) +{ + SendCoinsRecipient rv; + if(!GUIUtil::parseBitcoinURI(uri, &rv)) + { + return; + } + pasteEntry(rv); +} + +void SendCoinsDialog::handleURI(const QString &uri) +{ + SendCoinsRecipient rv; + if(!GUIUtil::parseBitcoinURI(uri, &rv)) + { + return; + } + pasteEntry(rv); +} + +void SendCoinsDialog::setBalance(qint64 balance, qint64 unconfirmedBalance) +{ + Q_UNUSED(unconfirmedBalance); + if(!model || !model->getOptionsModel()) + return; + + 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 index 0000000..7912576 --- /dev/null +++ b/src/qt/sendcoinsdialog.h @@ -0,0 +1,54 @@ +#ifndef SENDCOINSDIALOG_H +#define SENDCOINSDIALOG_H + +#include + +namespace Ui { + class SendCoinsDialog; +} +class WalletModel; +class SendCoinsEntry; +class SendCoinsRecipient; + +QT_BEGIN_NAMESPACE +class QUrl; +QT_END_NAMESPACE + +/** Dialog for sending bitcoins */ +class SendCoinsDialog : public QDialog +{ + Q_OBJECT + +public: + explicit SendCoinsDialog(QWidget *parent = 0); + ~SendCoinsDialog(); + + void setModel(WalletModel *model); + + /** Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907). + */ + QWidget *setupTabChain(QWidget *prev); + + void pasteEntry(const SendCoinsRecipient &rv); + void handleURI(const QUrl *uri); + void handleURI(const QString &uri); + +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 index 0000000..c8242d8 --- /dev/null +++ b/src/qt/sendcoinsentry.cpp @@ -0,0 +1,162 @@ +#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 +#include + +SendCoinsEntry::SendCoinsEntry(QWidget *parent) : + QFrame(parent), + ui(new Ui::SendCoinsEntry), + model(0) +{ + ui->setupUi(this); + +#ifdef Q_WS_MAC + ui->payToLayout->setSpacing(4); +#endif + +#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() +{ + if(!model) + return; + 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) +{ + if(!model) + return; + // Fill in label from address book, if address has an associated label + QString associatedLabel = model->getAddressTableModel()->labelForAddress(address); + if(!associatedLabel.isEmpty()) + ui->addAsLabel->setText(associatedLabel); +} + +void SendCoinsEntry::setModel(WalletModel *model) +{ + this->model = model; + clear(); +} + +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 && model->getOptionsModel()) + { + 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(); +} + +void SendCoinsEntry::setFocus() +{ + ui->payTo->setFocus(); +} + diff --git a/src/qt/sendcoinsentry.h b/src/qt/sendcoinsentry.h new file mode 100644 index 0000000..cdbf893 --- /dev/null +++ b/src/qt/sendcoinsentry.h @@ -0,0 +1,54 @@ +#ifndef SENDCOINSENTRY_H +#define SENDCOINSENTRY_H + +#include + +namespace Ui { + class SendCoinsEntry; +} +class WalletModel; +class SendCoinsRecipient; + +/** A single entry in the dialog for sending bitcoins. */ +class SendCoinsEntry : public QFrame +{ + Q_OBJECT + +public: + explicit SendCoinsEntry(QWidget *parent = 0); + ~SendCoinsEntry(); + + void setModel(WalletModel *model); + bool validate(); + SendCoinsRecipient getValue(); + + /** Return whether the entry is still empty and unedited */ + bool isClear(); + + void setValue(const SendCoinsRecipient &value); + + /** Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907). + */ + QWidget *setupTabChain(QWidget *prev); + + void setFocus(); + +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 index 0000000..6ca3ac8 --- /dev/null +++ b/src/qt/transactiondesc.cpp @@ -0,0 +1,292 @@ +#include + +#include "guiutil.h" +#include "bitcoinunits.h" + +#include "headers.h" +#include "qtui.h" + +#include +#include // 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", "
\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 += ""; + + int64 nTime = wtx.GetTxTime(); + int64 nCredit = wtx.GetCredit(); + int64 nDebit = wtx.GetDebit(); + int64 nNet = nCredit - nDebit; + + strHTML += tr("Status: ") + 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 += "
"; + + strHTML += tr("Date: ") + (nTime ? GUIUtil::dateTimeStr(nTime) : QString("")) + "
"; + + // + // From + // + if (wtx.IsCoinBase()) + { + strHTML += tr("Source: Generated
"); + } + else if (!wtx.mapValue["from"].empty()) + { + // Online transaction + if (!wtx.mapValue["from"].empty()) + strHTML += tr("From: ") + HtmlEscape(wtx.mapValue["from"]) + "
"; + } + 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("From: ") + tr("unknown") + "
"; + strHTML += tr("To: "); + strHTML += HtmlEscape(address.ToString()); + if (!wallet->mapAddressBook[address].empty()) + strHTML += tr(" (yours, label: ") + HtmlEscape(wallet->mapAddressBook[address]) + ")"; + else + strHTML += tr(" (yours)"); + strHTML += "
"; + } + } + break; + } + } + } + } + + // + // To + // + string strAddress; + if (!wtx.mapValue["to"].empty()) + { + // Online transaction + strAddress = wtx.mapValue["to"]; + strHTML += tr("To: "); + if (wallet->mapAddressBook.count(strAddress) && !wallet->mapAddressBook[strAddress].empty()) + strHTML += HtmlEscape(wallet->mapAddressBook[strAddress]) + " "; + strHTML += HtmlEscape(strAddress) + "
"; + } + + // + // Amount + // + if (wtx.IsCoinBase() && nCredit == 0) + { + // + // Coinbase + // + int64 nUnmatured = 0; + BOOST_FOREACH(const CTxOut& txout, wtx.vout) + nUnmatured += wallet->GetCredit(txout); + strHTML += tr("Credit: "); + 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 += "
"; + } + else if (nNet > 0) + { + // + // Credit + // + strHTML += tr("Credit: ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nNet) + "
"; + } + 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("To: "); + if (wallet->mapAddressBook.count(address) && !wallet->mapAddressBook[address].empty()) + strHTML += HtmlEscape(wallet->mapAddressBook[address]) + " "; + strHTML += HtmlEscape(address.ToString()); + strHTML += "
"; + } + } + + strHTML += tr("Debit: ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, -txout.nValue) + "
"; + } + + if (fAllToMe) + { + // Payment to self + int64 nChange = wtx.GetChange(); + int64 nValue = nCredit - nChange; + strHTML += tr("Debit: ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, -nValue) + "
"; + strHTML += tr("Credit: ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nValue) + "
"; + } + + int64 nTxFee = nDebit - wtx.GetValueOut(); + if (nTxFee > 0) + strHTML += tr("Transaction fee: ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,-nTxFee) + "
"; + } + else + { + // + // Mixed debit transaction + // + BOOST_FOREACH(const CTxIn& txin, wtx.vin) + if (wallet->IsMine(txin)) + strHTML += tr("Debit: ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,-wallet->GetDebit(txin)) + "
"; + BOOST_FOREACH(const CTxOut& txout, wtx.vout) + if (wallet->IsMine(txout)) + strHTML += tr("Credit: ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,wallet->GetCredit(txout)) + "
"; + } + } + + strHTML += tr("Net amount: ") + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,nNet, true) + "
"; + + // + // Message + // + if (!wtx.mapValue["message"].empty()) + strHTML += QString("
") + tr("Message:") + "
" + HtmlEscape(wtx.mapValue["message"], true) + "
"; + if (!wtx.mapValue["comment"].empty()) + strHTML += QString("
") + tr("Comment:") + "
" + HtmlEscape(wtx.mapValue["comment"], true) + "
"; + + if (wtx.IsCoinBase()) + strHTML += QString("
") + 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.") + "
"; + + // + // Debug view + // + if (fDebug) + { + strHTML += "

Debug information

"; + BOOST_FOREACH(const CTxIn& txin, wtx.vin) + if(wallet->IsMine(txin)) + strHTML += "Debit: " + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,-wallet->GetDebit(txin)) + "
"; + BOOST_FOREACH(const CTxOut& txout, wtx.vout) + if(wallet->IsMine(txout)) + strHTML += "Credit: " + BitcoinUnits::formatWithUnit(BitcoinUnits::BTC,wallet->GetCredit(txout)) + "
"; + + strHTML += "
Transaction:
"; + strHTML += HtmlEscape(wtx.ToString(), true); + + CTxDB txdb("r"); // To fetch source txouts + + strHTML += "
Inputs:"; + strHTML += "
    "; + 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 += "
  • "; + 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") + "
  • "; + } + } + } + } + strHTML += "
"; + } + + strHTML += "
"; + } + return strHTML; +} diff --git a/src/qt/transactiondesc.h b/src/qt/transactiondesc.h new file mode 100644 index 0000000..55b9eaf --- /dev/null +++ b/src/qt/transactiondesc.h @@ -0,0 +1,26 @@ +#ifndef TRANSACTIONDESC_H +#define TRANSACTIONDESC_H + +#include +#include +#include + +class CWallet; +class CWalletTx; + +/** Provide a human-readable extended HTML description of a transaction. + */ +class TransactionDesc: public QObject +{ + Q_OBJECT +public: + 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 index 0000000..3bd4808 --- /dev/null +++ b/src/qt/transactiondescdialog.cpp @@ -0,0 +1,20 @@ +#include "transactiondescdialog.h" +#include "ui_transactiondescdialog.h" + +#include "transactiontablemodel.h" + +#include + +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 index 0000000..e86fb58 --- /dev/null +++ b/src/qt/transactiondescdialog.h @@ -0,0 +1,26 @@ +#ifndef TRANSACTIONDESCDIALOG_H +#define TRANSACTIONDESCDIALOG_H + +#include + +namespace Ui { + class TransactionDescDialog; +} +QT_BEGIN_NAMESPACE +class QModelIndex; +QT_END_NAMESPACE + +/** Dialog showing transaction details. */ +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 index 0000000..16fb4da --- /dev/null +++ b/src/qt/transactionfilterproxy.cpp @@ -0,0 +1,86 @@ +#include "transactionfilterproxy.h" +#include "transactiontablemodel.h" + +#include + +#include + +// 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.contains(addrPrefix, Qt::CaseInsensitive) && !label.contains(addrPrefix, Qt::CaseInsensitive)) + 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 index 0000000..8d6829d --- /dev/null +++ b/src/qt/transactionfilterproxy.h @@ -0,0 +1,52 @@ +#ifndef TRANSACTIONFILTERPROXY_H +#define TRANSACTIONFILTERPROXY_H + +#include +#include + +/** Filter the 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< TransactionRecord::decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx) +{ + QList 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 mapValue = wtx.mapValue; + + if (showTransaction(wtx)) + { + if (nNet > 0 || wtx.IsCoinBase()) + { + // + // Credit + // + BOOST_FOREACH(const CTxOut& txout, wtx.vout) + { + if(wallet->IsMine(txout)) + { + TransactionRecord sub(hash, nTime); + CBitcoinAddress address; + sub.idx = parts.size(); // sequence number + sub.credit = txout.nValue; + if (wtx.IsCoinBase()) + { + // Generated + sub.type = TransactionRecord::Generated; + } + else if (ExtractAddress(txout.scriptPubKey, wallet, address)) + { + // Received by Bitcoin Address + sub.type = TransactionRecord::RecvWithAddress; + sub.address = address.ToString(); + } + else + { + // Received by IP connection (deprecated features), or a multisignature or other non-simple transaction + sub.type = TransactionRecord::RecvFromOther; + sub.address = mapValue["from"]; + } + + 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; + } + + CBitcoinAddress address; + if (ExtractAddress(txout.scriptPubKey, 0, address)) + { + // Sent to Bitcoin Address + sub.type = TransactionRecord::SendToAddress; + sub.address = address.ToString(); + } + else + { + // Sent to IP, or other non-address transaction like OP_EVAL + sub.type = TransactionRecord::SendToOther; + sub.address = mapValue["to"]; + } + + 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::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 index 0000000..db06374 --- /dev/null +++ b/src/qt/transactionrecord.h @@ -0,0 +1,129 @@ +#ifndef TRANSACTIONRECORD_H +#define TRANSACTIONRECORD_H + +#include "uint256.h" + +#include + +class CWallet; +class CWalletTx; + +/** UI model for transaction status. The transaction status is the part of a transaction that will change over time. + */ +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, /**< Transaction will likely not mature because no nodes have confirmed */ + NotAccepted + }; + + enum Status { + OpenUntilDate, + OpenUntilBlock, + Offline, + Unconfirmed, + HaveConfirmations + }; + + bool confirmed; + std::string sortKey; + + /** @name Generated (mined) transactions + @{*/ + Maturity maturity; + int matures_in; + /**@}*/ + + /** @name 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; +}; + +/** UI model for a transaction. A core transaction can be represented by multiple UI transactions if it has + multiple outputs. + */ +class TransactionRecord +{ +public: + enum Type + { + Other, + Generated, + SendToAddress, + SendToOther, + RecvWithAddress, + RecvFromOther, + 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 decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx); + + /** @name Immutable transaction attributes + @{*/ + 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 core wallet tx. + */ + void updateStatus(const CWalletTx &wtx); + + /** Return whether a status update is needed. + */ + bool statusUpdateNeeded(); +}; + +#endif // TRANSACTIONRECORD_H diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp new file mode 100644 index 0000000..28620bf --- /dev/null +++ b/src/qt/transactiontablemodel.cpp @@ -0,0 +1,621 @@ +#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 +#include +#include +#include +#include +#include +#include + +// 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 +class TransactionTablePriv +{ +public: + 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 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::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 &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 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::iterator mi = wallet->mapWallet.find(hash); + bool inWallet = mi != wallet->mapWallet.end(); + // Find bounds of this transaction in model + QList::iterator lower = qLowerBound( + cachedWallet.begin(), cachedWallet.end(), hash, TxLessThan()); + QList::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 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::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::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 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) + { + switch(wtx->status.maturity) + { + case TransactionStatus::Immature: + status += "\n" + tr("Mined balance will be available in %n more blocks", "", + wtx->status.matures_in); + break; + case TransactionStatus::Mature: + break; + case TransactionStatus::MaturesWarning: + status += "\n" + tr("This block was not received by any other nodes and will probably not be accepted!"); + break; + case TransactionStatus::NotAccepted: + status += "\n" + 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::RecvFromOther: + return tr("Received from"); + case TransactionRecord::SendToAddress: + case TransactionRecord::SendToOther: + return tr("Sent to"); + 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::RecvFromOther: + return QIcon(":/icons/tx_input"); + case TransactionRecord::SendToAddress: + case TransactionRecord::SendToOther: + 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::RecvFromOther: + return QString::fromStdString(wtx->address); + case TransactionRecord::RecvWithAddress: + case TransactionRecord::SendToAddress: + return lookupAddress(wtx->address, tooltip); + case TransactionRecord::SendToOther: + 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::RecvFromOther || rec->type==TransactionRecord::SendToOther || + 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(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(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 index 0000000..db88a06 --- /dev/null +++ b/src/qt/transactiontablemodel.h @@ -0,0 +1,82 @@ +#ifndef TRANSACTIONTABLEMODEL_H +#define TRANSACTIONTABLEMODEL_H + +#include +#include + +class CWallet; +class TransactionTablePriv; +class TransactionRecord; +class WalletModel; + +/** UI model for the transaction table of a wallet. + */ +class TransactionTableModel : public QAbstractTableModel +{ + Q_OBJECT +public: + explicit TransactionTableModel(CWallet* wallet, WalletModel *parent = 0); + ~TransactionTableModel(); + + enum ColumnIndex { + Status = 0, + Date = 1, + Type = 2, + ToAddress = 3, + Amount = 4 + }; + + /** Roles to get specific information from a transaction row. + These are independent of column. + */ + enum RoleIndex { + /** 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 + }; + + 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 index 0000000..1dd4c7b --- /dev/null +++ b/src/qt/transactionview.cpp @@ -0,0 +1,426 @@ +#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 "guiutil.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +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); +#ifdef Q_WS_MAC + hlayout->setSpacing(5); + hlayout->addSpacing(26); +#else + hlayout->setSpacing(0); + hlayout->addSpacing(23); +#endif + + dateWidget = new QComboBox(this); +#ifdef Q_WS_MAC + dateWidget->setFixedWidth(121); +#else + dateWidget->setFixedWidth(120); +#endif + 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); +#ifdef Q_WS_MAC + typeWidget->setFixedWidth(121); +#else + typeWidget->setFixedWidth(120); +#endif + + typeWidget->addItem(tr("All"), TransactionFilterProxy::ALL_TYPES); + typeWidget->addItem(tr("Received with"), TransactionFilterProxy::TYPE(TransactionRecord::RecvWithAddress) | + TransactionFilterProxy::TYPE(TransactionRecord::RecvFromOther)); + typeWidget->addItem(tr("Sent to"), TransactionFilterProxy::TYPE(TransactionRecord::SendToAddress) | + TransactionFilterProxy::TYPE(TransactionRecord::SendToOther)); + 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 +#ifdef Q_WS_MAC + amountWidget->setFixedWidth(97); +#else + amountWidget->setFixedWidth(100); +#endif + 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 +#ifdef Q_WS_MAC + hlayout->addSpacing(width+2); +#else + hlayout->addSpacing(width); +#endif + // 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; + if(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) +{ + if(!transactionProxyModel) + return; + 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) +{ + if(!transactionProxyModel) + return; + transactionProxyModel->setTypeFilter( + typeWidget->itemData(idx).toInt()); +} + +void TransactionView::changedPrefix(const QString &prefix) +{ + if(!transactionProxyModel) + return; + transactionProxyModel->setAddressPrefix(prefix); +} + +void TransactionView::changedAmount(const QString &amount) +{ + if(!transactionProxyModel) + return; + 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 = GUIUtil::getSaveFileName( + this, + tr("Export Transaction Data"), QString(), + 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() +{ + if(!transactionView->selectionModel()) + return; + QModelIndexList selection = transactionView->selectionModel()->selectedRows(); + if(!selection.isEmpty()) + { + QApplication::clipboard()->setText(selection.at(0).data(TransactionTableModel::AddressRole).toString()); + } +} + +void TransactionView::copyLabel() +{ + if(!transactionView->selectionModel()) + return; + QModelIndexList selection = transactionView->selectionModel()->selectedRows(); + if(!selection.isEmpty()) + { + QApplication::clipboard()->setText(selection.at(0).data(TransactionTableModel::LabelRole).toString()); + } +} + +void TransactionView::editLabel() +{ + if(!transactionView->selectionModel() ||!model) + return; + QModelIndexList selection = transactionView->selectionModel()->selectedRows(); + if(!selection.isEmpty()) + { + AddressTableModel *addressBook = model->getAddressTableModel(); + if(!addressBook) + return; + QString address = selection.at(0).data(TransactionTableModel::AddressRole).toString(); + if(address.isEmpty()) + { + // If this transaction has no associated address, exit + return; + } + // Is address in address book? Address book can miss address when a transaction is + // sent from outside the UI. + 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.setModel(addressBook); + dlg.setAddress(address); + dlg.exec(); + } + } +} + +void TransactionView::showDetails() +{ + if(!transactionView->selectionModel()) + return; + 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() +{ + if(!transactionProxyModel) + return; + 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 index 0000000..67d0b46 --- /dev/null +++ b/src/qt/transactionview.h @@ -0,0 +1,80 @@ +#ifndef TRANSACTIONVIEW_H +#define TRANSACTIONVIEW_H + +#include + +class WalletModel; +class TransactionFilterProxy; + +QT_BEGIN_NAMESPACE +class QTableView; +class QComboBox; +class QLineEdit; +class QModelIndex; +class QMenu; +class QFrame; +class QDateTimeEdit; +QT_END_NAMESPACE + +/** Widget showing the transaction list for a wallet, including a filter row. + Using the filter row, the user can view or export a subset of the transactions. + */ +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 index 0000000..f028f10 --- /dev/null +++ b/src/qt/walletmodel.cpp @@ -0,0 +1,277 @@ +#include "walletmodel.h" +#include "guiconstants.h" +#include "optionsmodel.h" +#include "addresstablemodel.h" +#include "transactiontablemodel.h" + +#include "headers.h" + +#include +#include + +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 &recipients) +{ + qint64 total = 0; + QSet 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 > 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 SecureString &passphrase) +{ + if(encrypted) + { + // Encrypt + return wallet->EncryptWallet(passphrase); + } + else + { + // Decrypt -- TODO; not supported yet + return false; + } +} + +bool WalletModel::setWalletLocked(bool locked, const SecureString &passPhrase) +{ + if(locked) + { + // Lock + return wallet->Lock(); + } + else + { + // Unlock + return wallet->Unlock(passPhrase); + } +} + +bool WalletModel::changePassphrase(const SecureString &oldPass, const SecureString &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 index 0000000..a129808 --- /dev/null +++ b/src/qt/walletmodel.h @@ -0,0 +1,143 @@ +#ifndef WALLETMODEL_H +#define WALLETMODEL_H + +#include + +#include "util.h" + +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 + }; + + 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 &recipients); + + // Wallet encryption + bool setWalletEncrypted(bool encrypted, const SecureString &passphrase); + // Passphrase only needed when unlocking + bool setWalletLocked(bool locked, const SecureString &passPhrase=SecureString()); + bool changePassphrase(const SecureString &oldPass, const SecureString &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 index 0000000..193f849 --- /dev/null +++ b/src/qtui.h @@ -0,0 +1,51 @@ +// 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 +#include +#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 +// Force blocking, modal message box dialog (not just notification) +#define wxMODAL 0x00040000 + +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 fn); +extern void MainFrameRepaint(); +extern void InitMessage(const std::string &message); +extern std::string _(const char* psz); + +#endif diff --git a/src/script.cpp b/src/script.cpp index 377a7ab..a7e4d3e 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -1132,6 +1132,7 @@ bool static ExtractAddressInner(const CScript& scriptPubKey, const CKeyStore* ke if (keystore == NULL || keystore->HaveKey(addressRet)) return true; } + return false; } diff --git a/src/serialize.h b/src/serialize.h index 491169f..396e172 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -30,7 +30,8 @@ typedef unsigned long long uint64; #define for if (false) ; else for #endif -#ifdef __WXMSW__ +#ifdef WIN32 +#include // 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 = 40500; +static const int VERSION = 50400; 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 index 0000000..01e6691 --- /dev/null +++ b/src/test/DoS_tests.cpp @@ -0,0 +1,118 @@ +// +// Unit tests for denial-of-service detection/prevention code +// +#include // for 'map_list_of()' +#include +#include + +#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)); +} + +static bool CheckNBits(unsigned int nbits1, int64 time1, unsigned int nbits2, int64 time2) +{ + if (time1 > time2) + return CheckNBits(nbits2, time2, nbits1, time1); + int64 deltaTime = time2-time1; + + CBigNum required; + required.SetCompact(ComputeMinWork(nbits1, deltaTime)); + CBigNum have; + have.SetCompact(nbits2); + return (have <= required); +} + +BOOST_AUTO_TEST_CASE(DoS_checknbits) +{ + using namespace boost::assign; // for 'map_list_of()' + + // Timestamps,nBits from the bitcoin blockchain. + // These are the block-chain checkpoint blocks + typedef std::map BlockData; + BlockData chainData = + map_list_of(1239852051,486604799)(1262749024,486594666) + (1279305360,469854461)(1280200847,469830746)(1281678674,469809688) + (1296207707,453179945)(1302624061,453036989)(1309640330,437004818) + (1313172719,436789733); + + // Make sure CheckNBits considers every combination of block-chain-lock-in-points + // "sane": + BOOST_FOREACH(const BlockData::value_type& i, chainData) + { + BOOST_FOREACH(const BlockData::value_type& j, chainData) + { + BOOST_CHECK(CheckNBits(i.second, i.first, j.second, j.first)); + } + } + + // Test a couple of insane combinations: + BlockData::value_type firstcheck = *(chainData.begin()); + BlockData::value_type lastcheck = *(chainData.rbegin()); + + // First checkpoint difficulty at or a while after the last checkpoint time should fail when + // compared to last checkpoint + BOOST_CHECK(!CheckNBits(firstcheck.second, lastcheck.first+60*10, lastcheck.second, lastcheck.first)); + BOOST_CHECK(!CheckNBits(firstcheck.second, lastcheck.first+60*60*24*14, lastcheck.second, lastcheck.first)); + + // ... but OK if enough time passed for difficulty to adjust downward: + BOOST_CHECK(CheckNBits(firstcheck.second, lastcheck.first+60*60*24*365*4, lastcheck.second, lastcheck.first)); + +} + +BOOST_AUTO_TEST_SUITE_END() diff --git a/src/test/base58_tests.cpp b/src/test/base58_tests.cpp new file mode 100644 index 0000000..c7fa74e --- /dev/null +++ b/src/test/base58_tests.cpp @@ -0,0 +1,87 @@ +#include + +#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& vchPubKey) + // bool IsValid() const + // CBitcoinAddress() + // CBitcoinAddress(uint160 hash160In) + // CBitcoinAddress(const std::vector& vchPubKey) + // CBitcoinAddress(const std::string& strAddress) + // CBitcoinAddress(const char* pszAddress) + // uint160 GetHash160() const + +#define U(x) (reinterpret_cast(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 result; + for (int i=0; i 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 index 0000000..f30f7f8 --- /dev/null +++ b/src/test/base64_tests.cpp @@ -0,0 +1,20 @@ +#include + +#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 + +#include "../uint256.h" + +extern void SHA256Transform(void* pstate, void* pinput, const void* pinit); + +BOOST_AUTO_TEST_SUITE(miner_tests) + +BOOST_AUTO_TEST_CASE(sha256transform_equality) +{ + unsigned int pSHA256InitState[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19}; + + + unsigned char pstate[32]; + unsigned char pinput[64]; + + int i; + + for (i = 0; i < 32; i++) { + pinput[i] = i; + pinput[i+32] = 0; + } + + uint256 hash; + + SHA256Transform(&hash, pinput, pSHA256InitState); + + BOOST_TEST_MESSAGE(hash.GetHex()); + + uint256 hash_reference("0x2df5e1c65ef9f8cde240d23cae2ec036d31a15ec64bc68f64be242b1da6631f3"); + + BOOST_CHECK(hash == hash_reference); +} + +BOOST_AUTO_TEST_SUITE_END() diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 645d8a2..39a7c88 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -8,12 +8,16 @@ #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" +#include "miner_tests.cpp" #include "Checkpoints_tests.cpp" - CWallet* pwalletMain; void Shutdown(void* parg) { - exit(0); + exit(0); } diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp new file mode 100644 index 0000000..8c8b99e --- /dev/null +++ b/src/test/util_tests.cpp @@ -0,0 +1,233 @@ +#include +#include +#include + +#include "../util.h" + +using namespace std; + +BOOST_AUTO_TEST_SUITE(util_tests) + +BOOST_AUTO_TEST_CASE(util_criticalsection) +{ + CCriticalSection cs; + + do { + CRITICAL_BLOCK(cs) + break; + + BOOST_ERROR("break was swallowed!"); + } while(0); + + do { + TRY_CRITICAL_BLOCK(cs) + break; + + BOOST_ERROR("break was swallowed!"); + } while(0); +} + +BOOST_AUTO_TEST_CASE(util_MedianFilter) +{ + CMedianFilter 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 result; + std::vector 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 index bfb708b..0000000 --- a/src/ui.cpp +++ /dev/null @@ -1,3220 +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 -#include -#ifdef _MSC_VER -#include -#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 += "<"; - else if (*p == '>') str += ">"; - else if (*p == '&') str += "&"; - else if (*p == '"') str += """; - else if (*p == ' ' && p > psz && p[-1] == ' ' && p[1] == ' ') str += " "; - else if (*p == '\n' && fMultiLine) str += "
\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 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 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 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::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::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 > 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::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::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::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::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::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::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 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(fn)); - pframeMain->GetEventHandler()->AddPendingEvent(event); - } -} - -void CMainFrame::OnUIThreadCall(wxCommandEvent& event) -{ - boost::function0* pfn = (boost::function0*)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.\nBitcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer."), "Bitcoin"); - - Close(true); -} - -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 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::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 += ""; - - int64 nTime = wtx.GetTxTime(); - int64 nCredit = wtx.GetCredit(); - int64 nDebit = wtx.GetDebit(); - int64 nNet = nCredit - nDebit; - - - - strHTML += _("Status: ") + 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 += "
"; - - strHTML += _("Date: ") + (nTime ? DateTimeStr(nTime) : "") + "
"; - - - // - // From - // - if (wtx.IsCoinBase()) - { - strHTML += _("Source: Generated
"); - } - else if (!wtx.mapValue["from"].empty()) - { - // Online transaction - if (!wtx.mapValue["from"].empty()) - strHTML += _("From: ") + HtmlEscape(wtx.mapValue["from"]) + "
"; - } - 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() + _("From: ") + _("unknown") + "
"; - strHTML += _("To: "); - strHTML += HtmlEscape(address.ToString()); - if (!pwalletMain->mapAddressBook[address].empty()) - strHTML += _(" (yours, label: ") + pwalletMain->mapAddressBook[address] + ")"; - else - strHTML += _(" (yours)"); - strHTML += "
"; - } - } - break; - } - } - } - } - - - // - // To - // - string strAddress; - if (!wtx.mapValue["to"].empty()) - { - // Online transaction - strAddress = wtx.mapValue["to"]; - strHTML += _("To: "); - if (pwalletMain->mapAddressBook.count(strAddress) && !pwalletMain->mapAddressBook[strAddress].empty()) - strHTML += pwalletMain->mapAddressBook[strAddress] + " "; - strHTML += HtmlEscape(strAddress) + "
"; - } - - - // - // Amount - // - if (wtx.IsCoinBase() && nCredit == 0) - { - // - // Coinbase - // - int64 nUnmatured = 0; - BOOST_FOREACH(const CTxOut& txout, wtx.vout) - nUnmatured += pwalletMain->GetCredit(txout); - strHTML += _("Credit: "); - if (wtx.IsInMainChain()) - strHTML += strprintf(_("(%s matures in %d more blocks)"), FormatMoney(nUnmatured).c_str(), wtx.GetBlocksToMaturity()); - else - strHTML += _("(not accepted)"); - strHTML += "
"; - } - else if (nNet > 0) - { - // - // Credit - // - strHTML += _("Credit: ") + FormatMoney(nNet) + "
"; - } - 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 += _("To: "); - if (pwalletMain->mapAddressBook.count(address) && !pwalletMain->mapAddressBook[address].empty()) - strHTML += pwalletMain->mapAddressBook[address] + " "; - strHTML += strAddress; - strHTML += "
"; - } - } - - strHTML += _("Debit: ") + FormatMoney(-txout.nValue) + "
"; - } - - if (fAllToMe) - { - // Payment to self - int64 nChange = wtx.GetChange(); - int64 nValue = nCredit - nChange; - strHTML += _("Debit: ") + FormatMoney(-nValue) + "
"; - strHTML += _("Credit: ") + FormatMoney(nValue) + "
"; - } - - int64 nTxFee = nDebit - wtx.GetValueOut(); - if (nTxFee > 0) - strHTML += _("Transaction fee: ") + FormatMoney(-nTxFee) + "
"; - } - else - { - // - // Mixed debit transaction - // - BOOST_FOREACH(const CTxIn& txin, wtx.vin) - if (pwalletMain->IsMine(txin)) - strHTML += _("Debit: ") + FormatMoney(-pwalletMain->GetDebit(txin)) + "
"; - BOOST_FOREACH(const CTxOut& txout, wtx.vout) - if (pwalletMain->IsMine(txout)) - strHTML += _("Credit: ") + FormatMoney(pwalletMain->GetCredit(txout)) + "
"; - } - } - - strHTML += _("Net amount: ") + FormatMoney(nNet, true) + "
"; - - - // - // Message - // - if (!wtx.mapValue["message"].empty()) - strHTML += string() + "
" + _("Message:") + "
" + HtmlEscape(wtx.mapValue["message"], true) + "
"; - if (!wtx.mapValue["comment"].empty()) - strHTML += string() + "
" + _("Comment:") + "
" + HtmlEscape(wtx.mapValue["comment"], true) + "
"; - - if (wtx.IsCoinBase()) - strHTML += string() + "
" + _("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.") + "
"; - - - // - // Debug view - // - if (fDebug) - { - strHTML += "

debug print

"; - BOOST_FOREACH(const CTxIn& txin, wtx.vin) - if (pwalletMain->IsMine(txin)) - strHTML += "Debit: " + FormatMoney(-pwalletMain->GetDebit(txin)) + "
"; - BOOST_FOREACH(const CTxOut& txout, wtx.vout) - if (pwalletMain->IsMine(txout)) - strHTML += "Credit: " + FormatMoney(pwalletMain->GetCredit(txout)) + "
"; - - strHTML += "
Transaction:
"; - strHTML += HtmlEscape(wtx.ToString(), true); - - strHTML += "
Inputs:
"; - CRITICAL_BLOCK(pwalletMain->cs_wallet) - { - BOOST_FOREACH(const CTxIn& txin, wtx.vin) - { - COutPoint prevout = txin.prevout; - map::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 += "    " + FormatTxStatus(prev) + ", "; - strHTML = strHTML + "IsMine=" + (pwalletMain->IsMine(prev.vout[prevout.n]) ? "true" : "false") + "
"; - } - } - } - } - } - - - - strHTML += "
"; - 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(&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(&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 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//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 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 -#include "wallet.h" - -DECLARE_EVENT_TYPE(wxEVT_UITHREADCALL, -1) - - - -extern wxLocale g_locale; - - - -void HandleCtrlA(wxKeyEvent& event); -void UIThreadCall(boost::function0); -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 index 6d219ad..0000000 --- a/src/uibase.cpp +++ /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 index ca0730b..0000000 --- a/src/uibase.h +++ /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 - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/////////////////////////////////////////////////////////////////////////// - -#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__ diff --git a/src/util.cpp b/src/util.cpp index a45d191..211d1a0 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -75,7 +75,7 @@ public: ppmutexOpenSSL[i] = new boost::interprocess::interprocess_mutex(); CRYPTO_set_locking_callback(locking_callback); -#ifdef __WXMSW__ +#ifdef WIN32 // Seed random number generator with screen scrape and other hardware sources RAND_screen(); #endif @@ -119,7 +119,7 @@ void RandAddSeedPerfmon() return; nLastPerfmon = GetTime(); -#ifdef __WXMSW__ +#ifdef WIN32 // Don't need this on Linux, OpenSSL automatically uses /dev/urandom // Seed with the entire set of perfmon data unsigned char pdata[250000]; @@ -209,7 +209,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...) } } -#ifdef __WXMSW__ +#ifdef WIN32 if (fPrintToDebugger) { static CCriticalSection cs_OutputDebugStringF; @@ -275,8 +275,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; @@ -286,7 +285,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; @@ -303,14 +302,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) { @@ -456,7 +454,6 @@ vector ParseHex(const string& str) return ParseHex(str.c_str()); } - void ParseParameters(int argc, char* argv[]) { mapArgs.clear(); @@ -471,7 +468,7 @@ void ParseParameters(int argc, char* argv[]) pszValue = strchr(psz, '='); *pszValue++ = '\0'; } - #ifdef __WXMSW__ + #ifdef WIN32 _strlwr(psz); if (psz[0] == '/') psz[0] = '-'; @@ -500,39 +497,144 @@ bool SoftSetArg(const std::string& strArg, bool fValue) } +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> 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 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 vchRet; + vchRet.reserve(strlen(p)*3/4); + + int mode = 0; + int left = 0; + + while (1) { - // Look in cache - static map mapCache; - map::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[(unsigned char)*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[(unsigned char)p[2]] != -1) + *pfInvalid = true; + break; + + case 3: // 4n+3 base64 characters processed: require '=' + if (left || p[0] != '=' || decode64_table[(unsigned char)p[1]] != -1) + *pfInvalid = true; + break; + } + + return vchRet; +} + +string DecodeBase64(const string& str) +{ + vector vchRet = DecodeBase64(str.c_str()); + return string((const char*)&vchRet[0], vchRet.size()); } @@ -574,7 +676,7 @@ bool WildcardMatch(const string& str, const string& mask) void FormatException(char* pszMessage, std::exception* pex, const char* pszThread) { -#ifdef __WXMSW__ +#ifdef WIN32 char pszModule[MAX_PATH]; pszModule[0] = '\0'; GetModuleFileNameA(NULL, pszModule, sizeof(pszModule)); @@ -603,10 +705,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; } @@ -628,10 +726,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 } @@ -641,7 +735,7 @@ void PrintExceptionContinue(std::exception* pex, const char* pszThread) -#ifdef __WXMSW__ +#ifdef WIN32 typedef WINSHELLAPI BOOL (WINAPI *PSHGETSPECIALFOLDERPATHA)(HWND hwndOwner, LPSTR lpszPath, int nFolder, BOOL fCreate); string MyGetSpecialFolderPath(int nFolder, bool fCreate) @@ -691,7 +785,7 @@ string GetDefaultDataDir() // Windows: C:\Documents and Settings\username\Application Data\Bitcoin // Mac: ~/Library/Application Support/Bitcoin // Unix: ~/.bitcoin -#ifdef __WXMSW__ +#ifdef WIN32 // Windows return MyGetSpecialFolderPath(CSIDL_APPDATA, true) + "\\Bitcoin"; #else @@ -701,7 +795,7 @@ string GetDefaultDataDir() string strHome = pszHome; if (strHome[strHome.size()-1] != '/') strHome += '/'; -#ifdef __WXMAC_OSX__ +#ifdef MAC_OSX // Mac strHome += "Library/Application Support/"; filesystem::create_directory(strHome.c_str()); @@ -852,11 +946,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() diff --git a/src/util.h b/src/util.h index 4e4cbb9..45b1442 100644 --- a/src/util.h +++ b/src/util.h @@ -7,7 +7,7 @@ #include "uint256.h" -#ifndef __WXMSW__ +#ifndef WIN32 #include #include #include @@ -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 -#define PAIRTYPE(t1, t2) pair +#define PAIRTYPE(t1, t2) std::pair // Align by increasing pointer, must have extra space at end of buffer template @@ -81,7 +81,7 @@ T* alignup(T* p) return u.ptr; } -#ifdef __WXMSW__ +#ifdef WIN32 #define MSG_NOSIGNAL 0 #define MSG_DONTWAIT 0 #ifndef UINT64_MAX @@ -125,7 +125,7 @@ inline int myclosesocket(SOCKET& hSocket) { if (hSocket == INVALID_SOCKET) return WSAENOTSOCK; -#ifdef __WXMSW__ +#ifdef WIN32 int ret = closesocket(hSocket); #else int ret = close(hSocket); @@ -134,8 +134,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; @@ -150,7 +149,6 @@ inline const char* _(const char* psz) - extern std::map mapArgs; extern std::map > mapMultiArgs; extern bool fDebug; @@ -171,8 +169,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); @@ -182,6 +180,10 @@ bool ParseMoney(const std::string& str, int64& nRet); bool ParseMoney(const char* pszIn, int64& nRet); std::vector ParseHex(const char* psz); std::vector ParseHex(const std::string& str); +std::vector 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); @@ -192,7 +194,7 @@ std::string GetConfigFile(); std::string GetPidFile(); void CreatePidFile(std::string pidFile, pid_t pid); void ReadConfigFile(std::map& mapSettingsRet, std::map >& mapMultiSettingsRet); -#ifdef __WXMSW__ +#ifdef WIN32 std::string MyGetSpecialFolderPath(int nFolder, bool fCreate); #endif std::string GetDefaultDataDir(); @@ -201,6 +203,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(); @@ -242,19 +245,20 @@ public: pcs = &csIn; pcs->Enter(pszName, pszFile, nLine); } + + operator bool() const + { + return true; + } + ~CCriticalBlock() { pcs->Leave(); } }; -// WARNING: This will catch continue and break! -// break is caught with an assertion, but there's no way to detect continue. -// I'd rather be careful than suffer the other more error prone syntax. -// The compiler will optimise away all this loop junk. #define CRITICAL_BLOCK(cs) \ - for (bool fcriticalblockonce=true; fcriticalblockonce; assert(("break caught by CRITICAL_BLOCK!" && !fcriticalblockonce)), fcriticalblockonce=false) \ - for (CCriticalBlock criticalblock(cs, #cs, __FILE__, __LINE__); fcriticalblockonce; fcriticalblockonce=false) + if (CCriticalBlock criticalblock = CCriticalBlock(cs, #cs, __FILE__, __LINE__)) #define ENTER_CRITICAL_SECTION(cs) \ (cs).Enter(#cs, __FILE__, __LINE__) @@ -272,6 +276,12 @@ public: { pcs = (csIn.TryEnter(pszName, pszFile, nLine) ? &csIn : NULL); } + + operator bool() const + { + return Entered(); + } + ~CTryCriticalBlock() { if (pcs) @@ -279,17 +289,24 @@ public: pcs->Leave(); } } - bool Entered() { return pcs != NULL; } + bool Entered() const { return pcs != NULL; } }; #define TRY_CRITICAL_BLOCK(cs) \ - for (bool fcriticalblockonce=true; fcriticalblockonce; assert(("break caught by TRY_CRITICAL_BLOCK!" && !fcriticalblockonce)), fcriticalblockonce=false) \ - for (CTryCriticalBlock criticalblock(cs, #cs, __FILE__, __LINE__); fcriticalblockonce && (fcriticalblockonce = criticalblock.Entered()); fcriticalblockonce=false) + if (CTryCriticalBlock criticalblock = CTryCriticalBlock(cs, #cs, __FILE__, __LINE__)) + + +// This is exactly like std::string, but with a custom allocator. +// (secure_allocator<> is defined in serialize.h) +typedef std::basic_string, secure_allocator > SecureString; +// This is exactly like std::string, but with a custom allocator. +// (secure_allocator<> is defined in serialize.h) +typedef std::basic_string, secure_allocator > SecureString; @@ -395,7 +412,7 @@ inline void PrintHex(const std::vector& vch, const char* pszForma inline int64 GetPerformanceCounter() { int64 nCounter = 0; -#ifdef __WXMSW__ +#ifdef WIN32 QueryPerformanceCounter((LARGE_INTEGER*)&nCounter); #else timeval t; @@ -429,7 +446,7 @@ void skipspaces(T& it) inline bool IsSwitchChar(char c) { -#ifdef __WXMSW__ +#ifdef WIN32 return c == '-' || c == '/'; #else return c == '-'; @@ -489,7 +506,7 @@ bool SoftSetArg(const std::string& strArg, bool fValue); inline void heapchk() { -#ifdef __WXMSW__ +#ifdef WIN32 /// for debugging //if (_heapchk() != _HEAPOK) // DebugBreak(); @@ -592,6 +609,51 @@ inline uint160 Hash160(const std::vector& vch) } +// Median filter over a stream of values +// Returns the median of the last N numbers +template class CMedianFilter +{ +private: + std::vector vValues; + std::vector 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; + } + } +}; + @@ -603,7 +665,7 @@ inline uint160 Hash160(const std::vector& vch) // Note: It turns out we might have been able to use boost::thread // by using TerminateThread(boost::thread.native_handle(), 0); -#ifdef __WXMSW__ +#ifdef WIN32 typedef HANDLE pthread_t; inline pthread_t CreateThread(void(*pfn)(void*), void* parg, bool fWantHandle=false) @@ -685,7 +747,7 @@ inline void ExitThread(size_t nExitCode) inline bool AffinityBugWorkaround(void(*pfn)(void*)) { -#ifdef __WXMSW__ +#ifdef WIN32 // Sometimes after a few hours affinity gets stuck on one processor DWORD_PTR dwProcessAffinityMask = -1; DWORD_PTR dwSystemAffinityMask = -1; @@ -703,4 +765,10 @@ inline bool AffinityBugWorkaround(void(*pfn)(void*)) return false; } +inline uint32_t ByteReverse(uint32_t value) +{ + value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8); + return (value<<16) | (value>>16); +} + #endif diff --git a/src/wallet.cpp b/src/wallet.cpp index b3eb06a..7d1266e 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -5,7 +5,6 @@ #include "headers.h" #include "db.h" -#include "cryptopp/sha.h" #include "crypter.h" using namespace std; @@ -43,7 +42,7 @@ bool CWallet::AddCryptedKey(const vector &vchPubKey, const vector return false; } -bool CWallet::Unlock(const string& strWalletPassphrase) +bool CWallet::Unlock(const SecureString& strWalletPassphrase) { if (!IsLocked()) return false; @@ -64,7 +63,7 @@ bool CWallet::Unlock(const string& strWalletPassphrase) return false; } -bool CWallet::ChangeWalletPassphrase(const string& strOldWalletPassphrase, const string& strNewWalletPassphrase) +bool CWallet::ChangeWalletPassphrase(const SecureString& strOldWalletPassphrase, const SecureString& strNewWalletPassphrase) { bool fWasLocked = IsLocked(); @@ -123,7 +122,7 @@ public: ) }; -bool CWallet::EncryptWallet(const string& strWalletPassphrase) +bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase) { if (IsCrypted()) return false; @@ -268,7 +267,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); @@ -284,7 +283,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) } } } - +#endif // Notify UI vWalletUpdated.push_back(hash); @@ -297,6 +296,9 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) return true; } +// Add a transaction to the wallet, or update it. +// pblock is optional, but should be provided if the transaction is known to be in a block. +// If fUpdate is true, existing transactions will be updated. bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate) { uint256 hash = tx.GetHash(); @@ -561,6 +563,9 @@ bool CWalletTx::WriteToDisk() return CWalletDB(pwallet->strWalletFile).WriteTx(GetHash(), *this); } +// Scan the block chain (starting in pindexStart) for transactions +// from or to us. If fUpdate is true, found transactions that already +// exist in the wallet will be updated. int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate) { int ret = 0; @@ -738,6 +743,21 @@ int64 CWallet::GetBalance() const return nTotal; } +int64 CWallet::GetUnconfirmedBalance() const +{ + int64 nTotal = 0; + CRITICAL_BLOCK(cs_wallet) + { + for (map::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 >& setCoinsRet, int64& nValueRet) const { diff --git a/src/wallet.h b/src/wallet.h index e0f39b4..86c8bc8 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -13,6 +13,9 @@ class CWalletTx; class CReserveKey; class CWalletDB; +// A CWallet is an extension of a keystore, which also maintains a set of +// transactions and balances, and provides the ability to create new +// transactions class CWallet : public CCryptoKeyStore { private: @@ -57,14 +60,19 @@ public: std::vector vchDefaultKey; // keystore implementation + // Adds a key to the store, and saves it to disk. bool AddKey(const CKey& key); + // Adds a key to the store, without saving it to disk (used by LoadWallet) bool LoadKey(const CKey& key) { return CCryptoKeyStore::AddKey(key); } + + // Adds an encrypted key to the store, and saves it to disk. bool AddCryptedKey(const std::vector &vchPubKey, const std::vector &vchCryptedSecret); + // Adds an encrypted key to the store, without saving it to disk (used by LoadWallet) bool LoadCryptedKey(const std::vector &vchPubKey, const std::vector &vchCryptedSecret) { return CCryptoKeyStore::AddCryptedKey(vchPubKey, vchCryptedSecret); } - bool Unlock(const std::string& strWalletPassphrase); - bool ChangeWalletPassphrase(const std::string& strOldWalletPassphrase, const std::string& strNewWalletPassphrase); - bool EncryptWallet(const std::string& strWalletPassphrase); + bool Unlock(const SecureString& strWalletPassphrase); + bool ChangeWalletPassphrase(const SecureString& strOldWalletPassphrase, const SecureString& strNewWalletPassphrase); + bool EncryptWallet(const SecureString& strWalletPassphrase); bool AddToWallet(const CWalletTx& wtxIn); bool AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate = false); @@ -74,6 +82,7 @@ public: void ReacceptWalletTransactions(); void ResendWalletTransactions(); int64 GetBalance() const; + int64 GetUnconfirmedBalance() const; bool CreateTransaction(const std::vector >& 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); @@ -243,7 +252,7 @@ public: unsigned int nTimeReceived; // time received by this node char fFromMe; std::string strFromAccount; - std::vector vfSpent; + std::vector vfSpent; // which outputs are already spent // memory only mutable char fDebitCached; @@ -370,6 +379,7 @@ public: return fReturn; } + // make sure balances are recalculated void MarkDirty() { fCreditCached = false; diff --git a/src/xpm/about.xpm b/src/xpm/about.xpm deleted file mode 100644 index 3fa868c..0000000 --- a/src/xpm/about.xpm +++ /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<<<<<<<<<<<>>>>>>>>>>>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 index e00944e..0000000 --- a/src/xpm/addressbook16.xpm +++ /dev/null @@ -1,278 +0,0 @@ -/* XPM */ -static const char * addressbook16_xpm[] = { -/* columns rows colors chars-per-pixel */ -"16 16 256 2", -" c #FFFFFF", -". c #F7FFFF", -"X c #F7F7FF", -"o c #EFF7FF", -"O c #E6EFF7", -"+ c #E6E6F7", -"@ c #CEE6F7", -"# c #DEDEEF", -"$ c #D6DEEF", -"% c #D6DEE6", -"& c #CEDEF7", -"* c #CEDEEF", -"= c #EFF708", -"- c #C5DEF7", -"; c #CED6EF", -": c None", -"> c #C5D6E6", -", c #BDD6F7", -"< c #BDD6EF", -"1 c #D6CECE", -"2 c #BDCEE6", -"3 c #BDC5E6", -"4 c #B5C5DE", -"5 c #BDD631", -"6 c #ADBDDE", -"7 c #B5B5BD", -"8 c #A5B5D6", -"9 c #00FFFF", -"0 c #9CB5CE", -"q c #9CADD6", -"w c #94A5D6", -"e c #8CA5D6", -"r c #8CA5CE", -"t c #8CA5C5", -"y c #849CC5", -"u c #7B9CD6", -"i c #7B9CCE", -"p c #31BDCE", -"a c #6B9CD6", -"s c #00F708", -"d c #8494AD", -"f c #7B94B5", -"g c #6B94D6", -"h c #6B9C84", -"j c #7B8CAD", -"k c #738CAD", -"l c #638CC5", -"z c #10CE42", -"x c #638CBD", -"c c #7B849C", -"v c #73849C", -"b c #6B84A5", -"n c #7B7BA5", -"m c #6B849C", -"M c #7B8C42", -"N c #5A84C5", -"B c #29AD6B", -"V c #F74A4A", -"C c #6384A5", -"Z c #5284C5", -"A c #637BA5", -"S c #637B9C", -"D c #9C637B", -"F c #6B7B5A", -"G c #637394", -"H c #52739C", -"J c #5A7384", -"K c #526B94", -"L c #426B94", -"P c #52638C", -"I c #426B7B", -"U c #5A5A8C", -"Y c #524A7B", -"T c #425273", -"R c #21636B", -"E c #106394", -"W c #106B52", -"Q c #3A4273", -"! c #31426B", -"~ c #523163", -"^ c #29426B", -"/ c #293A63", -"( c #213A63", -") c #193A63", -"_ c #193163", -"` c #19315A", -"' c #212963", -"] c #10315A", -"[ c #082952", -"{ c #FFCC33", -"} c #33FF33", -"| c #66FF33", -" . c #99FF33", -".. c #CCFF33", -"X. c #FFFF33", -"o. c #000066", -"O. c #330066", -"+. c #660066", -"@. c #990066", -"#. c #CC0066", -"$. c #FF0066", -"%. c #003366", -"&. c #333366", -"*. c #663366", -"=. c #993366", -"-. c #CC3366", -";. c #FF3366", -":. c #006666", -">. c #336666", -",. c #666666", -"<. c #996666", -"1. c #CC6666", -"2. c #009966", -"3. c #339966", -"4. c #669966", -"5. c #999966", -"6. c #CC9966", -"7. c #FF9966", -"8. c #00CC66", -"9. c #33CC66", -"0. c #99CC66", -"q. c #CCCC66", -"w. c #FFCC66", -"e. c #00FF66", -"r. c #33FF66", -"t. c #99FF66", -"y. c #CCFF66", -"u. c #FF00CC", -"i. c #CC00FF", -"p. c #009999", -"a. c #993399", -"s. c #990099", -"d. c #CC0099", -"f. c #000099", -"g. c #333399", -"h. c #660099", -"j. c #CC3399", -"k. c #FF0099", -"l. c #006699", -"z. c #336699", -"x. c #663399", -"c. c #996699", -"v. c #CC6699", -"b. c #FF3399", -"n. c #339999", -"m. c #669999", -"M. c #999999", -"N. c #CC9999", -"B. c #FF9999", -"V. c #00CC99", -"C. c #33CC99", -"Z. c #66CC66", -"A. c #99CC99", -"S. c #CCCC99", -"D. c #FFCC99", -"F. c #00FF99", -"G. c #33FF99", -"H. c #66CC99", -"J. c #99FF99", -"K. c #CCFF99", -"L. c #FFFF99", -"P. c #0000CC", -"I. c #330099", -"U. c #6600CC", -"Y. c #9900CC", -"T. c #CC00CC", -"R. c #003399", -"E. c #3333CC", -"W. c #6633CC", -"Q. c #9933CC", -"!. c #CC33CC", -"~. c #FF33CC", -"^. c #0066CC", -"/. c #3366CC", -"(. c #666699", -"). c #9966CC", -"_. c #CC66CC", -"`. c #FF6699", -"'. c #0099CC", -"]. c #3399CC", -"[. c #6699CC", -"{. c #9999CC", -"}. c #CC99CC", -"|. c #FF99CC", -" X c #00CCCC", -".X c #33CCCC", -"XX c #66CCCC", -"oX c #99CCCC", -"OX c #CCCCCC", -"+X c #FFCCCC", -"@X c #00FFCC", -"#X c #33FFCC", -"$X c #66FF99", -"%X c #99FFCC", -"&X c #CCFFCC", -"*X c #FFFFCC", -"=X c #3300CC", -"-X c #6600FF", -";X c #9900FF", -":X c #0033CC", -">X c #3333FF", -",X c #6633FF", -" g , S z R : ", -"n * c * r r y g , 6 r q S s W : ", -"n * c X 4 N u + m B I : ", -"n * c X ; a - S 5 F : ", -"n * c * r r r g - S = M : ", -"n * c X 4 N - m h J : ", -"n * c X ; a - A 9 E : ", -"n * ( ] ` ^ P l y T / / ( p L : ", -"n O > 0 f ) ! t 8 % n : ", -"U U U U U U U ' Q U U U U U U : ", -": : : : : : : : : : : : : : : : " -}; diff --git a/src/xpm/addressbook20.xpm b/src/xpm/addressbook20.xpm deleted file mode 100644 index 7ebd73f..0000000 --- a/src/xpm/addressbook20.xpm +++ /dev/null @@ -1,282 +0,0 @@ -/* XPM */ -static const char * addressbook20_xpm[] = { -/* columns rows colors chars-per-pixel */ -"20 20 256 2", -" c #FFFFFF", -". c #F7FFFF", -"X c #F7F7FF", -"o c #EFF7FF", -"O c #EFF7F7", -"+ c #E6EFFF", -"@ c #E6EFF7", -"# c #DEEFFF", -"$ c #DEE6F7", -"% c #DEE6EF", -"& c #D6E6F7", -"* c #FFFF00", -"= c #DEDEE6", -"- c #D6DEE6", -"; c #D6D6DE", -": c #CED6E6", -"> c None", -", c #C5D6E6", -"< c #C5CEE6", -"1 c #B5CEEF", -"2 c #C5C5C5", -"3 c #C5DE31", -"4 c #B5C5DE", -"5 c #BDC5C5", -"6 c #ADC5EF", -"7 c #B5C5CE", -"8 c #BDBDBD", -"9 c #B5BDCE", -"0 c #ADBDDE", -"q c #ADBDD6", -"w c #B5CE52", -"e c #ADB5C5", -"r c #00FFFF", -"t c #A5B5C5", -"y c #9CB5CE", -"u c #94B5DE", -"i c #9CADD6", -"p c #A5ADB5", -"a c #94ADDE", -"s c #94ADD6", -"d c #9CADBD", -"f c #8CADDE", -"g c #BD9CA5", -"h c #9CA5BD", -"j c #9CA5B5", -"k c #29D6E6", -"l c #8CA5CE", -"z c #849CCE", -"x c #6BA5C5", -"c c #739CDE", -"v c #00FF00", -"b c #739CD6", -"n c #7B94CE", -"m c #8494AD", -"M c #7394CE", -"N c #7B94B5", -"B c #4AB584", -"V c #848CB5", -"C c #6B94CE", -"Z c #6394D6", -"A c #6394CE", -"S c #7B8CAD", -"D c #6B8CC5", -"F c #738CAD", -"G c #5294B5", -"H c #6B84C5", -"J c #7384A5", -"K c #73849C", -"L c #738494", -"P c #FF4A4A", -"I c #FF4A42", -"U c #737B8C", -"Y c #637BAD", -"T c #527BBD", -"R c #637394", -"E c #637352", -"W c #5A6B8C", -"Q c #526B9C", -"! c #63638C", -"~ c #5A734A", -"^ c #4A6B9C", -"/ c #526B63", -"( c #0884A5", -") c #526384", -"_ c #52637B", -"` c #4A6B5A", -"' c #52636B", -"] c #525A8C", -"[ c #525A7B", -"{ c #426363", -"} c #4A5A7B", -"| c #425A8C", -" . c #196B94", -".. c #3A5A8C", -"X. c #3A5A84", -"o. c #087B4A", -"O. c #21636B", -"+. c #634263", -"@. c #3A527B", -"#. c #424A84", -"$. c #315284", -"%. c #295284", -"&. c #3A4A6B", -"*. c #42427B", -"=. c #424273", -"-. c #294A84", -";. c #3A3A73", -":. c #194284", -">. c #104A63", -",. c #213A6B", -"<. c #31316B", -"1. c #21315A", -"2. c #212163", -"3. c #08295A", -"4. c #082152", -"5. c #101952", -"6. c #CC9966", -"7. c #FF9966", -"8. c #00CC66", -"9. c #33CC66", -"0. c #99CC66", -"q. c #CCCC66", -"w. c #FFCC66", -"e. c #00FF66", -"r. c #33FF66", -"t. c #99FF66", -"y. c #CCFF66", -"u. c #FF00CC", -"i. c #CC00FF", -"p. c #009999", -"a. c #993399", -"s. c #990099", -"d. c #CC0099", -"f. c #000099", -"g. c #333399", -"h. c #660099", -"j. c #CC3399", -"k. c #FF0099", -"l. c #006699", -"z. c #336699", -"x. c #663399", -"c. c #996699", -"v. c #CC6699", -"b. c #FF3399", -"n. c #339999", -"m. c #669999", -"M. c #999999", -"N. c #CC9999", -"B. c #FF9999", -"V. c #00CC99", -"C. c #33CC99", -"Z. c #66CC66", -"A. c #99CC99", -"S. c #CCCC99", -"D. c #FFCC99", -"F. c #00FF99", -"G. c #33FF99", -"H. c #66CC99", -"J. c #99FF99", -"K. c #CCFF99", -"L. c #FFFF99", -"P. c #0000CC", -"I. c #330099", -"U. c #6600CC", -"Y. c #9900CC", -"T. c #CC00CC", -"R. c #003399", -"E. c #3333CC", -"W. c #6633CC", -"Q. c #9933CC", -"!. c #CC33CC", -"~. c #FF33CC", -"^. c #0066CC", -"/. c #3366CC", -"(. c #666699", -"). c #9966CC", -"_. c #CC66CC", -"`. c #FF6699", -"'. c #0099CC", -"]. c #3399CC", -"[. c #6699CC", -"{. c #9999CC", -"}. c #CC99CC", -"|. c #FF99CC", -" X c #00CCCC", -".X c #33CCCC", -"XX c #66CCCC", -"oX c #99CCCC", -"OX c #CCCCCC", -"+X c #FFCCCC", -"@X c #00FFCC", -"#X c #33FFCC", -"$X c #66FF99", -"%X c #99FFCC", -"&X c #CCFFCC", -"*X c #FFFFCC", -"=X c #3300CC", -"-X c #6600FF", -";X c #9900FF", -":X c #0033CC", -">X c #3333FF", -",X c #6633FF", -" > > > > > > > > > > > > > > > > > > > ", -"> > > > > > > > > > > > > > > > > > > > ", -"> > U $.| | ^ S 2 > p W | | @.L > > > > ", -"8 5 R - < Y j S O - ) g e > > ", -"! V K - % a Q # - +.P <.> > ", -"! & K - 0 z n D C b f n n z q +.P <.> > ", -"! & K - % M A 1 - %.G #.> > ", -"! & K - % u b # - o.v >.> > ", -"! & K - 0 z n H M b 6 z n z q o.v >.> > ", -"! & K - X - M A a - O.B @.> > ", -"! & K - X % u b # - ` 3 / > > ", -"! & K - 0 l i 4 u b # - ~ * E > > ", -"! & K - X o $ s T b # - { w ' > > ", -"! & K - % f b # - .k -.> > ", -"! & K m d t 7 , u b # ; 9 9 h ( r :.> > ", -"! & h _ _ [ &.4.$.A ,.1.} _ _ F x ] > > ", -"! @ , y N _ 3._ N y , @ ! > > ", -"*.*.*.*.*.*.*.*.;.5.*.*.*.*.*.*.*.2.> > ", -"> > > > > > > > > > > > > > > > > > > > ", -"> > > > > > > > > > > > > > > > > > > > " -}; diff --git a/src/xpm/bitcoin16.xpm b/src/xpm/bitcoin16.xpm deleted file mode 100644 index f70fef0..0000000 --- a/src/xpm/bitcoin16.xpm +++ /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 index 3cc29ac..0000000 --- a/src/xpm/bitcoin20.xpm +++ /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/bitcoin48.xpm b/src/xpm/bitcoin48.xpm deleted file mode 100644 index 85a7711..0000000 --- a/src/xpm/bitcoin48.xpm +++ /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@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 2X5X5X5XX`.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=X4X4X4X5XX=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 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/check.xpm b/src/xpm/check.xpm deleted file mode 100644 index e62b656..0000000 --- a/src/xpm/check.xpm +++ /dev/null @@ -1,41 +0,0 @@ -/* XPM */ -static const char * check_xpm[] = { -/* columns rows colors chars-per-pixel */ -"32 32 3 1", -" c #008000", -". c #00FF00", -"X c None", -/* pixels */ -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXX XXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXX . XXXXXXXXXXX", -"XXXXXXXXXXXXXXXX .. XXXXXXXXXXXX", -"XXXXXXXXXXXXXXXX . XXXXXXXXXXXX", -"XXXXXXXXXXXXXXX .. XXXXXXXXXXXXX", -"XXXXXXXXXXX XX . XXXXXXXXXXXXX", -"XXXXXXXXXXX . .. XXXXXXXXXXXXXX", -"XXXXXXXXXXX .. . XXXXXXXXXXXXXX", -"XXXXXXXXXXXX ... XXXXXXXXXXXXXXX", -"XXXXXXXXXXXXX . XXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXX XXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -}; diff --git a/src/xpm/send16.xpm b/src/xpm/send16.xpm deleted file mode 100644 index 7da44d9..0000000 --- a/src/xpm/send16.xpm +++ /dev/null @@ -1,278 +0,0 @@ -/* XPM */ -static const char * send16_xpm[] = { -/* columns rows colors chars-per-pixel */ -"16 16 256 2", -" c #ADF7AD", -". c #9CFF9C", -"X c None", -"o c #ADEFAD", -"O c #94FF94", -"+ c #D6CECE", -"@ c #8CFF8C", -"# c #CECECE", -"$ c #CECEC5", -"% c #84FF84", -"& c #CEC5C5", -"* c #73FF73", -"= c #C5C5C5", -"- c #6BFF6B", -"; c #73F773", -": c #C5BDBD", -"> c #6BF76B", -", c #BDBDBD", -"< c #63F763", -"1 c #B5B5B5", -"2 c #52F752", -"3 c #42FF42", -"4 c #3AFF3A", -"5 c #ADADAD", -"6 c #ADADA5", -"7 c #4AEF4A", -"8 c #29FF29", -"9 c #A5A5A5", -"0 c #42E642", -"q c #9CA59C", -"w c #3AE63A", -"e c #10FF10", -"r c #08FF08", -"t c #949C94", -"y c #00FF00", -"u c #00F700", -"i c #8C948C", -"p c #00EF00", -"a c #08E608", -"s c #10DE10", -"d c #00E600", -"f c #00DE00", -"g c #19C519", -"h c #00CE00", -"j c #00C500", -"k c #008C00", -"l c #008400", -"z c #669900", -"x c #999900", -"c c #CC9900", -"v c #FF9900", -"b c #00CC00", -"n c #33CC00", -"m c #66CC00", -"M c #99CC00", -"N c #CCCC00", -"B c #FFCC00", -"V c #66FF00", -"C c #99FF00", -"Z c #CCFF00", -"A c #000033", -"S c #330033", -"D c #660033", -"F c #990033", -"G c #CC0033", -"H c #FF0033", -"J c #003333", -"K c #333333", -"L c #663333", -"P c #993333", -"I c #CC3333", -"U c #FF3333", -"Y c #006633", -"T c #336633", -"R c #666633", -"E c #996633", -"W c #CC6633", -"Q c #FF6633", -"! c #009933", -"~ c #339933", -"^ c #669933", -"/ c #999933", -"( c #CC9933", -") c #FF9933", -"_ c #00CC33", -"` c #33CC33", -"' c #66CC33", -"] c #99CC33", -"[ c #CCCC33", -"{ c #FFCC33", -"} c #33FF33", -"| c #66FF33", -" . c #99FF33", -".. c #CCFF33", -"X. c #FFFF33", -"o. c #000066", -"O. c #330066", -"+. c #660066", -"@. c #990066", -"#. c #CC0066", -"$. c #FF0066", -"%. c #003366", -"&. c #333366", -"*. c #663366", -"=. c #993366", -"-. c #CC3366", -";. c #FF3366", -":. c #006666", -">. c #336666", -",. c #666666", -"<. c #996666", -"1. c #CC6666", -"2. c #009966", -"3. c #339966", -"4. c #669966", -"5. c #999966", -"6. c #CC9966", -"7. c #FF9966", -"8. c #00CC66", -"9. c #33CC66", -"0. c #99CC66", -"q. c #CCCC66", -"w. c #FFCC66", -"e. c #00FF66", -"r. c #33FF66", -"t. c #99FF66", -"y. c #CCFF66", -"u. c #FF00CC", -"i. c #CC00FF", -"p. c #009999", -"a. c #993399", -"s. c #990099", -"d. c #CC0099", -"f. c #000099", -"g. c #333399", -"h. c #660099", -"j. c #CC3399", -"k. c #FF0099", -"l. c #006699", -"z. c #336699", -"x. c #663399", -"c. c #996699", -"v. c #CC6699", -"b. c #FF3399", -"n. c #339999", -"m. c #669999", -"M. c #999999", -"N. c #CC9999", -"B. c #FF9999", -"V. c #00CC99", -"C. c #33CC99", -"Z. c #66CC66", -"A. c #99CC99", -"S. c #CCCC99", -"D. c #FFCC99", -"F. c #00FF99", -"G. c #33FF99", -"H. c #66CC99", -"J. c #99FF99", -"K. c #CCFF99", -"L. c #FFFF99", -"P. c #0000CC", -"I. c #330099", -"U. c #6600CC", -"Y. c #9900CC", -"T. c #CC00CC", -"R. c #003399", -"E. c #3333CC", -"W. c #6633CC", -"Q. c #9933CC", -"!. c #CC33CC", -"~. c #FF33CC", -"^. c #0066CC", -"/. c #3366CC", -"(. c #666699", -"). c #9966CC", -"_. c #CC66CC", -"`. c #FF6699", -"'. c #0099CC", -"]. c #3399CC", -"[. c #6699CC", -"{. c #9999CC", -"}. c #CC99CC", -"|. c #FF99CC", -" X c #00CCCC", -".X c #33CCCC", -"XX c #66CCCC", -"oX c #99CCCC", -"OX c #CCCCCC", -"+X c #FFCCCC", -"@X c #00FFCC", -"#X c #33FFCC", -"$X c #66FF99", -"%X c #99FFCC", -"&X c #CCFFCC", -"*X c #FFFFCC", -"=X c #3300CC", -"-X c #6600FF", -";X c #9900FF", -":X c #0033CC", -">X c #3333FF", -",X c #6633FF", -" c #6BF76B", -", c #BDBDBD", -"< c #63F763", -"1 c #B5B5B5", -"2 c #52F752", -"3 c #42FF42", -"4 c #3AFF3A", -"5 c #ADADAD", -"6 c #ADADA5", -"7 c #4AEF4A", -"8 c #29FF29", -"9 c #A5A5A5", -"0 c #42E642", -"q c #9CA59C", -"w c #3AE63A", -"e c #10FF10", -"r c #08FF08", -"t c #949C94", -"y c #00FF00", -"u c #00F700", -"i c #8C948C", -"p c #00EF00", -"a c #08E608", -"s c #10DE10", -"d c #00E600", -"f c #00DE00", -"g c #19C519", -"h c #00CE00", -"j c #00C500", -"k c #008C00", -"l c #008400", -"z c #669900", -"x c #999900", -"c c #CC9900", -"v c #FF9900", -"b c #00CC00", -"n c #33CC00", -"m c #66CC00", -"M c #99CC00", -"N c #CCCC00", -"B c #FFCC00", -"V c #66FF00", -"C c #99FF00", -"Z c #CCFF00", -"A c #000033", -"S c #330033", -"D c #660033", -"F c #990033", -"G c #CC0033", -"H c #FF0033", -"J c #003333", -"K c #333333", -"L c #663333", -"P c #993333", -"I c #CC3333", -"U c #FF3333", -"Y c #006633", -"T c #336633", -"R c #666633", -"E c #996633", -"W c #CC6633", -"Q c #FF6633", -"! c #009933", -"~ c #339933", -"^ c #669933", -"/ c #999933", -"( c #CC9933", -") c #FF9933", -"_ c #00CC33", -"` c #33CC33", -"' c #66CC33", -"] c #99CC33", -"[ c #CCCC33", -"{ c #FFCC33", -"} c #33FF33", -"| c #66FF33", -" . c #99FF33", -".. c #CCFF33", -"X. c #FFFF33", -"o. c #000066", -"O. c #330066", -"+. c #660066", -"@. c #990066", -"#. c #CC0066", -"$. c #FF0066", -"%. c #003366", -"&. c #333366", -"*. c #663366", -"=. c #993366", -"-. c #CC3366", -";. c #FF3366", -":. c #006666", -">. c #336666", -",. c #666666", -"<. c #996666", -"1. c #CC6666", -"2. c #009966", -"3. c #339966", -"4. c #669966", -"5. c #999966", -"6. c #CC9966", -"7. c #FF9966", -"8. c #00CC66", -"9. c #33CC66", -"0. c #99CC66", -"q. c #CCCC66", -"w. c #FFCC66", -"e. c #00FF66", -"r. c #33FF66", -"t. c #99FF66", -"y. c #CCFF66", -"u. c #FF00CC", -"i. c #CC00FF", -"p. c #009999", -"a. c #993399", -"s. c #990099", -"d. c #CC0099", -"f. c #000099", -"g. c #333399", -"h. c #660099", -"j. c #CC3399", -"k. c #FF0099", -"l. c #006699", -"z. c #336699", -"x. c #663399", -"c. c #996699", -"v. c #CC6699", -"b. c #FF3399", -"n. c #339999", -"m. c #669999", -"M. c #999999", -"N. c #CC9999", -"B. c #FF9999", -"V. c #00CC99", -"C. c #33CC99", -"Z. c #66CC66", -"A. c #99CC99", -"S. c #CCCC99", -"D. c #FFCC99", -"F. c #00FF99", -"G. c #33FF99", -"H. c #66CC99", -"J. c #99FF99", -"K. c #CCFF99", -"L. c #FFFF99", -"P. c #0000CC", -"I. c #330099", -"U. c #6600CC", -"Y. c #9900CC", -"T. c #CC00CC", -"R. c #003399", -"E. c #3333CC", -"W. c #6633CC", -"Q. c #9933CC", -"!. c #CC33CC", -"~. c #FF33CC", -"^. c #0066CC", -"/. c #3366CC", -"(. c #666699", -"). c #9966CC", -"_. c #CC66CC", -"`. c #FF6699", -"'. c #0099CC", -"]. c #3399CC", -"[. c #6699CC", -"{. c #9999CC", -"}. c #CC99CC", -"|. c #FF99CC", -" X c #00CCCC", -".X c #33CCCC", -"XX c #66CCCC", -"oX c #99CCCC", -"OX c #CCCCCC", -"+X c #FFCCCC", -"@X c #00FFCC", -"#X c #33FFCC", -"$X c #66FF99", -"%X c #99FFCC", -"&X c #CCFFCC", -"*X c #FFFFCC", -"=X c #3300CC", -"-X c #6600FF", -";X c #9900FF", -":X c #0033CC", -">X c #3333FF", -",X c #6633FF", -" c #73FF73", -", c #C5C5C5", -"< c #C5C5BD", -"1 c #6BFF6B", -"2 c #BDC5B5", -"3 c #63FF63", -"4 c #6BF76B", -"5 c #BDBDBD", -"6 c #BDBDB5", -"7 c #5AFF5A", -"8 c #63F763", -"9 c #B5BDB5", -"0 c #B5BDAD", -"q c #52FF52", -"w c #BDB5B5", -"e c #5AF75A", -"r c #B5B5B5", -"t c #B5B5AD", -"y c #52F752", -"u c #42FF42", -"i c #52EF52", -"p c #ADADAD", -"a c #ADADA5", -"s c #4AEF4A", -"d c #31FF31", -"f c #29FF29", -"g c #A5A5A5", -"h c #21FF21", -"j c #5AD65A", -"k c #42E642", -"l c #94AD94", -"z c #4ADE4A", -"x c #3AE63A", -"c c #5ACE5A", -"v c #10FF10", -"b c #9C9C9C", -"n c #31E631", -"m c #08FF08", -"M c #949C94", -"N c #84A584", -"B c #00FF00", -"V c #3AD63A", -"C c #52C552", -"Z c #00F700", -"A c #8C948C", -"S c #849484", -"D c #00EF00", -"F c #739C73", -"G c #08E608", -"H c #4AB54A", -"J c #31C531", -"K c #00E600", -"L c #739473", -"P c #00DE00", -"I c #63945A", -"U c #6B8C6B", -"Y c #00D600", -"T c #42A542", -"R c #638C63", -"E c #00CE00", -"W c #21B521", -"Q c #5A8C5A", -"! c #00C500", -"~ c #528C52", -"^ c #3A9C3A", -"/ c #4A8C4A", -"( c #00BD00", -") c #319431", -"_ c #219C21", -"` c #318C31", -"' c #3A843A", -"] c #219421", -"[ c #298C29", -"{ c #318431", -"} c #218C21", -"| c #218C19", -" . c #198C19", -".. c #218421", -"X. c #297B29", -"o. c #198419", -"O. c #217B21", -"+. c #108410", -"@. c #197B19", -"#. c #CC0066", -"$. c #FF0066", -"%. c #003366", -"&. c #333366", -"*. c #663366", -"=. c #993366", -"-. c #CC3366", -";. c #FF3366", -":. c #006666", -">. c #336666", -",. c #666666", -"<. c #996666", -"1. c #CC6666", -"2. c #009966", -"3. c #339966", -"4. c #669966", -"5. c #999966", -"6. c #CC9966", -"7. c #FF9966", -"8. c #00CC66", -"9. c #33CC66", -"0. c #99CC66", -"q. c #CCCC66", -"w. c #FFCC66", -"e. c #00FF66", -"r. c #33FF66", -"t. c #99FF66", -"y. c #CCFF66", -"u. c #FF00CC", -"i. c #CC00FF", -"p. c #009999", -"a. c #993399", -"s. c #990099", -"d. c #CC0099", -"f. c #000099", -"g. c #333399", -"h. c #660099", -"j. c #CC3399", -"k. c #FF0099", -"l. c #006699", -"z. c #336699", -"x. c #663399", -"c. c #996699", -"v. c #CC6699", -"b. c #FF3399", -"n. c #339999", -"m. c #669999", -"M. c #999999", -"N. c #CC9999", -"B. c #FF9999", -"V. c #00CC99", -"C. c #33CC99", -"Z. c #66CC66", -"A. c #99CC99", -"S. c #CCCC99", -"D. c #FFCC99", -"F. c #00FF99", -"G. c #33FF99", -"H. c #66CC99", -"J. c #99FF99", -"K. c #CCFF99", -"L. c #FFFF99", -"P. c #0000CC", -"I. c #330099", -"U. c #6600CC", -"Y. c #9900CC", -"T. c #CC00CC", -"R. c #003399", -"E. c #3333CC", -"W. c #6633CC", -"Q. c #9933CC", -"!. c #CC33CC", -"~. c #FF33CC", -"^. c #0066CC", -"/. c #3366CC", -"(. c #666699", -"). c #9966CC", -"_. c #CC66CC", -"`. c #FF6699", -"'. c #0099CC", -"]. c #3399CC", -"[. c #6699CC", -"{. c #9999CC", -"}. c #CC99CC", -"|. c #FF99CC", -" X c #00CCCC", -".X c #33CCCC", -"XX c #66CCCC", -"oX c #99CCCC", -"OX c #CCCCCC", -"+X c #FFCCCC", -"@X c #00FFCC", -"#X c #33FFCC", -"$X c #66FF99", -"%X c #99FFCC", -"&X c #CCFFCC", -"*X c #FFFFCC", -"=X c #3300CC", -"-X c #6600FF", -";X c #9900FF", -":X c #0033CC", -">X c #3333FF", -",X c #6633FF", -"