aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #3488Wladimir J. van der Laan2014-01-101-36/+46
|\ | | | | | | 2102ab9 ui: Fix GUI initialization order (Wladimir J. van der Laan)
| * ui: Fix GUI initialization orderWladimir J. van der Laan2014-01-051-36/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes at least #3478. Splits and documents the phases: 1. Parse command-line options. These take precedence over anything else. 2. Basic Qt initialization (not dependent on parameters or configuration) 3. Application identification 4. Initialization of translations 5. Now that settings and translations are available, ask user for data directory 6. Determine availability of data directory and parse bitcoin.conf 7. URI IPC sending 8. Main GUI initialization Splits command line parsing logic from ipcSendCommandLine into ipcParseCommandLine, as isTestNet() can only be overridden in the early stages before choosing a data directory. Sending however needs to happen after choosing a data directory.
* | Allow `-noserver` with bitcoindWladimir J. van der Laan2013-12-201-1/+1
|/ | | | | | | | Allow running bitcoind without server. - Default to -server mode (of course) for bitcoind with SoftSetBoolArg - Remove fForceServer argument from AppInit2 - Move fDaemon to a static variable in bitcoind
* Merge pull request #3437Wladimir J. van der Laan2013-12-201-4/+5
|\ | | | | | | 2ea980a qt: Treat regtest as testnet (Wladimir J. van der Laan)
| * qt: Treat regtest as testnetWladimir J. van der Laan2013-12-201-4/+5
| | | | | | | | | | No need to do anything special in the GUI for regtest mode, but do treat it at testnet not mainnet to prevent confusion.
* | Merge pull request #3412Wladimir J. van der Laan2013-12-191-0/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | c3a7f51 Move `verifymessage` from rpcwallet to rpcmisc (Wladimir J. van der Laan) 723a03d Move `createmultisig` from rpcwallet to rpcmisc (Wladimir J. van der Laan) 452955f Move `validateaddress` from rpcwallet to rpcmisc (Wladimir J. van der Laan) cd7fa8b Move `nTransactionFee` from main.cpp to wallet.cpp (Wladimir J. van der Laan) a943bde Move `settxfee` from rpcblockchain to rpcwallet (Wladimir J. van der Laan) 16bc9aa Move `getinfo` from rpcnet to rpcmisc (Wladimir J. van der Laan) 652e156 add new RPC implementation file `rpcmisc.cpp` (Wladimir J. van der Laan)
| * Move `nTransactionFee` from main.cpp to wallet.cppWladimir J. van der Laan2013-12-131-0/+1
| | | | | | | | | | Transaction fee is only used by the wallet. No need for it to be in main.cpp.
* | Merge pull request #3415Wladimir J. van der Laan2013-12-181-17/+0
|\ \ | | | | | | | | | | | | | | | 4a61c39 qt: status WalletModel::Aborted is no longer used (Wladimir J. van der Laan) ca2c83d Remove unused ThreadSafeAskFee from ui_interface (Wladimir J. van der Laan) 37e67d3 Remove unused ThreadSafeHandleURI from ui_interface (Wladimir J. van der Laan)
| * | Remove unused ThreadSafeAskFee from ui_interfaceWladimir J. van der Laan2013-12-141-17/+0
| |/ | | | | | | | | | | ThreadSafeAskFee is effectively unused. It is only called when the fAskFee parameter on SendMoney or SendMoneyToDestination is true, which never happens. Remove it.
* / Rebrand to `Bitcoin Core`Wladimir J. van der Laan2013-12-131-3/+3
|/ | | | | | | | | | | | Only messages for now, executable names and other file names can be changed later if necessary and safe. Do not do an all-sweeping change. Some occurences of Bitcoin-Qt need to be kept: - Applicationname: this is used to determine the registry entry names, we don't want to lose settings over a silly name change. - Where it refers to the executable name instead of the product name.
* [Qt] misc small Mac related changes/cleanupsPhilip Kaufmann2013-12-091-0/+7
| | | | | | | | | - cleanup Info.plist.in and specify high DPI mode enable command as per http://blog.qt.digia.com/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/ - move setting of QApplication::setAttribute() to bitcoin.cpp and add attribute for enabling use of high DPI pixmaps for Qt >= 5.1 - add missing setWindowTitle() on Mac - cleanup Mac / non-Mac setup in bitcoingui.cpp
* [Qt] small notificator and style changesPhilip Kaufmann2013-12-031-3/+3
| | | | | | - remove default arguments for notificator - re-order some calls to use same ordering in Qt files - style police changes (spaces, comments and such)
* qt: GUI support for -disablewallet modeWladimir J. van der Laan2013-11-131-5/+14
|
* Merge pull request #3187 from Diapolo/netManagerWladimir J. van der Laan2013-11-111-1/+0
|\ | | | | [Qt] paymentserver: start netManager in uiReady()
| * [Qt] paymentserver: start netManager in uiReady()Philip Kaufmann2013-11-111-1/+0
| | | | | | | | | | | | | | | | | | | | - remove explicit init of netManager as this is done in the constructor anyway - move initNetManager() call to uiReady(), which removes an assert() and allows us to use message() in initNetManager() (currently unused but could be necessary because of proxy related messages) - make initNetManager() private - update paymentservertests.cpp
* | qt: add Open URI dialogWladimir J. van der Laan2013-11-111-0/+2
|/
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-13/+20
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Merge pull request #3196 from laanwj/2013_11_nohaveguiWladimir J. van der Laan2013-11-051-3/+1
|\ | | | | No more fHaveGUI
| * No more fHaveGUIWladimir J. van der Laan2013-11-041-3/+1
| | | | | | | | | | | | No more specific handling of GUI in bitcoin core. Replace the last usage of fHaveGUI with a fForceServer parameter on AppInit2.
* | qt: add license header to source filesWladimir J. van der Laan2013-11-041-3/+3
|/ | | | Closes #839
* Qt: move paymentACK handling to paymentserverPhilip Kaufmann2013-10-241-2/+0
| | | | | | | | | - add new slot handlePaymentACK() to paymentserver, which handles paymentACK messages (currently we just display them) - make paymentACK message a modal information dialog - change some QObject::tr() to just tr() - clarify the processPaymentRequest() error, when IsDust() - small string change to prevent a tripple + usage with QString
* paymentserver: style fixes / cleanupPhilip Kaufmann2013-10-191-2/+2
| | | | | | | | - rename reportError() into message() to be in line with our default message() signal/slot naming (and can be used for all types of messages) - rename some QStrings to not collide with message() function - add a missing message for malformed URIs that IS also used in BitcoinGUI - fix / extend some comments and misc style fixes
* several small Qt-related fixesPhilip Kaufmann2013-09-281-0/+3
| | | | | | | | | - make BitcoinGUI::showPaymentACK() use a reference for msg and use our own GUIUtil::HtmlEscape() function - ensure QTimer usage in clientmodel is the same as in walletmodel - remove an unneeded debug message in walletframe - flag some parameters as unused in DebugMessageHandler() - small code formatting changes
* Replace printf with LogPrintf / LogPrintGavin Andresen2013-09-181-2/+2
|
* Refactor: OutputDebugStringF -> LogPrint(category, ...)Gavin Andresen2013-09-181-2/+2
|
* Bitcoin-Qt: allow to differentiate Qt log entries from corePhilip Kaufmann2013-08-311-9/+8
| | | | | | - prepend "Bitcoin-Qt" in front of debug.log entries, which come from Qt - move DebugMessageHandler installation upwards to the event handler installation, which fits much better
* Bitcoin-Qt: fixes for using display unit from optionsPhilip Kaufmann2013-08-291-1/+2
| | | | | | | - extend PaymentServer with setOptionsModel() and rework initNetManager() to make use of that - fix all other places in the code to use display unit from options and no hard-coded unit
* Bitcoin-Qt: add testnet check and icon to intro dialogPhilip Kaufmann2013-08-241-1/+1
|
* Payment Protocol: X509-validated payment requestsGavin Andresen2013-08-221-3/+13
| | | | | | | | Add support for a Payment Protocol to Bitcoin-Qt. Payment messages are protocol-buffer encoded and communicated over http(s), so this adds a dependency on the Google protocol buffer library, and requires Qt with OpenSSL support.
* Route qDebug() messages to debug.logGavin Andresen2013-08-221-0/+20
|
* Rework when payment server is startedGavin Andresen2013-08-221-6/+10
|
* update SelectParamsFromCommandLine() handling/orderPhilip Kaufmann2013-08-221-12/+27
| | | | | | | | | - move SelectParamsFromCommandLine() from init.cpp to bitcoin.cpp to allow to use TestNet() for Bitcoin-Qt instead of GetBoolArg("-testnet", false) - change order in bitcoind.cpp to match bitcoin.cpp functionality - hamonize error message strings for missing datadir and failing SelectParamsFromCommandLine() in bitcoin.cpp and bitcoind.cpp - use TestNet() call in splashscreen.cpp
* Remove #define loop from util.hGavin Andresen2013-07-311-1/+0
| | | | | Replace the loop macro with while (true). The #define caused problems for Qt.
* Bitcoin-Qt: fix QApplication includes to match our include defaultsPhilip Kaufmann2013-07-231-2/+2
| | | | | - move all QApplication includes to top of included Qt headers - undef our loop macro where it would cause compilation errors otherwise
* qt: allow user to choose data directoryWladimir J. van der Laan2013-06-161-40/+60
| | | | | | | | | | | | | | | | | | This adds an introduction screen that is shown when the client is first started in which the user can choose a data directory. It is also possible to force the intro screen to appear using command line argument `-choosedatadir`. The user is warned that the client will download and store 10Gb of data. The intro screen shows how much space is available on the device that contains the chosen directory and warns if this is less than the 10Gb. To make it possible to translate the introduction dialog, the initialization sequence is changed so that translations are loaded before the data directory. This has the by-effect that it is no longer possible to specify a language in bitcoin.conf inside the data directory.
* build: add global var for whether or not the gui is enabledCory Fields2013-06-041-0/+2
|
* Merge branch 'master' of git://github.com/bitcoin/bitcoin into prefsFixJonas Schnelli2013-06-031-5/+12
|\ | | | | | | | | | | | | Signed-off-by: Jonas Schnelli <[email protected]> Conflicts: bitcoin-qt.pro
| * Bitcoin-Qt: setup testnet GUI directlyPhilip Kaufmann2013-06-021-12/+1
| | | | | | | | | | | | | | - this directly sets up all GUI elements that have testnet special-casing without first setting up main net stuff and changing afterwards (titles, icons etc.) - also fixes 2 wrong icons shown during testnet usage on our toolbar
| * Merge pull request #2588 from Diapolo/GetBoolArgWladimir J. van der Laan2013-06-021-8/+8
| |\ | | | | | | remove GetBoolArg() fDefault parameter defaulting to false
| | * remove GetBoolArg() fDefault parameter defaulting to falsePhilip Kaufmann2013-06-011-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | - explicitly set the default of all GetBoolArg() calls - rework getarg_test.cpp and util_tests.cpp to cover this change - some indentation fixes - move macdockiconhandler.h include in bitcoin.cpp to the "our headers" section
| * | Qt5 compatibilityWladimir J. van der Laan2013-06-011-0/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | This commit squashes all the changes in the Qt5 branch relative to master. Backward compatibility with Qt4 is retained. Original authors: - Philip Kaufmann <[email protected]> - Jonas Schnelli <[email protected]>
| * Merge pull request #2577 from gavinandresen/fee_bandaidGavin Andresen2013-05-041-1/+1
| |\ | | | | | | Treat dust outputs as non-standard, un-hardcode TX_FEE constants
| | * Un-hardcode TX_FEE constantsGavin Andresen2013-05-031-1/+1
| | | | | | | | | | | | | | | | | | | | | Allow setting of MIN_TX_FEE / MIN_RELAY_TX_FEE with -mintxfee / -mintxrelayfee Default values are the same (0.0001 BTC).
| * | Merge pull request #2606 from gavinandresen/threadfixPieter Wuille2013-05-041-0/+3
| |\ \ | | | | | | | | Exit cleanly if AppInit2 returns false
| | * | Exit cleanly if AppInit2 returns falseGavin Andresen2013-05-021-0/+3
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bitcoin-Qt could core dump if application initialization failed in certain ways. I double-fixed this: 1) qt/bitcoin.cpp now shuts down core threads cleanly if AppInit2 returns false 2) init.cpp now exits before StartNode() if strErrors is set (no reason to StartNode if we're just going to exit immediately anyway). Tested by triggering all of the various ways AppInit2 can fail, either by passing bogus command-line arguments or just recompiling tweaked code to simulate failure. This is a partial fix for #2480
| * / osx: show testnet icon in dock as early as possibleJonas Schnelli2013-05-031-0/+11
| |/ | | | | | | | | | | A green testnet splashscreen with a normal, orange dock icon looks strange and can confuse users. Signed-off-by: Jonas Schnelli <[email protected]>
* / MaxOSX: settings fixes (#2371)Jonas Schnelli2013-06-031-0/+3
|/ | | | | | | - Launch-At-Startup implementation for mac - Remove "Window" tab in settings Signed-off-by: Jonas Schnelli <[email protected]>
* Merge pull request #2526 from Diapolo/Qt_miscWladimir J. van der Laan2013-04-231-5/+4
|\ | | | | Bitcoin-Qt: misc small changes
| * bitcoin: use static QApplication:: instead of app.Philip Kaufmann2013-04-141-5/+4
| |
* | Merge pull request #2525 from laanwj/2013_04_metatypeboolWladimir J. van der Laan2013-04-181-0/+6
|\ \ | | | | | | qt: register metatype for bool*