aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
AgeCommit message (Collapse)Author
2014-08-07qt: fix unicode character display on osx when building with 10.7 sdkCory Fields
2014-08-04more Bitcoin -> Bitcoin Core string changesPhilip Kaufmann
2014-07-20qt: Move SplashFinished to after ClientModel/WalletModel creationWladimir J. van der Laan
With a large wallet there was a noticable gap between hiding of the splash and showing the main window.
2014-07-17build: allow linux and osx to build against static qt5Cory Fields
This is the first part of a huge effort to rework the handling of dependencies. To start, this change allows all supported platforms to build against a static Qt. 5.2.1 and 5.3 have been successfully tested against osx64, win32, win64, linux32, and linux64. It also makes a small change to the windows config, to allow linking against qt builds with or without built-in libjpeg/libpng/libpcre/libz. The actual build processes to take advantage of these changes (for gitian and pull-tester) are coming soon. Until then, this should be a no-op.
2014-07-15qt: Start core thread only when neededWladimir J. van der Laan
Start the core thread only when needed for initialization or shutdown. Avoids a bit of overhead, and also avoids spamming two log messages before logging is properly initialized.
2014-07-15ui: Replace some LogPrintfs with qDebug()Wladimir J. van der Laan
These are relatively unimportant messages, so don't need to be logged without -debug=ui.
2014-07-02Fix the Qt5 build after d95ba75Wladimir J. van der Laan
Sorry, my own fault this time.
2014-07-01qt: Log messages with type>QtDebugMsg as non-debugWladimir J. van der Laan
More important messages should end up in the log no matter if -debug=qt is set.
2014-06-25Remove unnecessary dependencies for bitcoin-cliWladimir J. van der Laan
This commit removes all the unnecessary dependencies (key, core, netbase, sync, ...) from bitcoin-cli. To do this it shards the chain parameters into BaseParams, which contains just the RPC port and data directory (as used by utils and bitcoin-cli) and Params, with the rest.
2014-06-23build: fix build weirdness after 54372482.Cory Fields
bitcoin-config.h moved, but the old file is likely to still exist when reconfiguring or switching branches. This would've caused files to not rebuild correctly, and other strange problems. Make the path explicit so that the old one cannot be found. Core libs use config/bitcoin-config.h. Libs (like crypto) which don't want access to bitcoin's headers continue to use -Iconfig and #include bitcoin-config.h.
2014-06-11Add `-version` option to get just the versionWladimir J. van der Laan
Adds a `-version` or `--version` option to print just the version of the program for bitcoind, bitcoin-cli and bitcoin-qt. Also make it that `-help` can be used to display the help (as well as existing `--help`). Up to now, `-help` was the only option that didn't work with either one or two dashes.
2014-06-10build: qt: split locale resources. Fixes non-deterministic distcheckCory Fields
The rcc tool is quirky and only honors files in the same directory as the qrc. When doing an out-of-tree build (as 'make distcheck' does), the generated translation files end up in a different path, so rcc can't find them. Split them up so that rcc is run twice: once for static source files and once for generated files.
2014-05-13SetupEnvironment() - clean commitStuart Cardall
2014-05-07[Qt] fix ugly typo in bitcoin.cppPhilip Kaufmann
Closes #4145. Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 1e4b083
2014-04-15[Qt] catch Windows shutdown events while client is runningPhilip Kaufmann
- prevents unsafe shutdowns on Windows, which is known to be able to cause problems with wallet.dat - if a users ends a Windows session, this will initiate a client shutdown and show a Windows dialog, that tells the user what is going on (for Windows Vista and higher it will even show a reason for blocking the Windows session end)
2014-04-07Show error message if ReadConfigFile failsWladimir J. van der Laan
A runaway exception was raised if ReadConfigFile fails (usually due to a parse error in bitcoin.conf). Show an error message instead. Fixes #4013.
2014-03-31qt: Don't require db_cxx.h when wallet disabledWladimir J. van der Laan
Fix #3978.
2014-03-11qt: Make it possible again to specify -testnet in config fileWladimir J. van der Laan
Changes for the datadir chooser have made it impossible to specify the network (testnet/regtest) in the configuration file for the GUI. Reorganize the initialization sequence to make this possible again. - Moves the "datadir" QSetting so that is no longer dependent on the network-specific application name (doing otherwise would create a chicken-and-egg problem). - Re-initialize translations after choosing network. There may be a different language configured in network-specific settings (slim chance, but handle it for sanity). Fixes point 1 of #3840.
2014-03-07MainNet is the special case for the GUIjtimon
2014-02-16Merge pull request #3646Wladimir J. van der Laan
5770254 Copyright header updates s/2013/2014 on files whose last git commit was done in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does. (gubatron)
2014-02-09Copyright header updates s/2013/2014 on files whose last git commit was done ↵gubatron
in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does.
2014-02-07[Qt] remove broken OptionsModel::Upgrade()Cozz Lovan
2014-01-23Remove redundant .c_str()sWladimir J. van der Laan
After the tinyformat switch sprintf() family functions support passing actual std::string objects. Remove unnecessary c_str calls (236 of them) in logging and formatting.
2014-01-23Merge pull request #3553Wladimir J. van der Laan
a8db31c qt: allow `walletpassphrase` in debug console without -server (Wladimir J. van der Laan)
2014-01-18[Qt] add utilitydialog.cpp/h and helpmessage classPhilip Kaufmann
- adds a nice and well formated dialog, which displays our -? help message (all options/paramaters) - moves aboutdialog.cpp/h to the new utilitydialog - move GUI shutdown window to utilitydialog
2014-01-17qt: allow `walletpassphrase` in debug console without -serverWladimir J. van der Laan
Currently it is only possible to use `walletpassphrase` to unlock the wallet when bitcoin is started in server mode. Almost everything that manipulates the wallet in the RPC console needs the wallet to be unlocked and is thus unusable without -server. This is pretty unintuitive to me, and I'm sure it's even more confusing to users. Solve this with a very minimal change: by making the GUI start a dummy RPC thread just to handle timeouts.
2014-01-17Merge pull request #3512Wladimir J. van der Laan
04aa828 [Qt] don't regenerate autostart link on every client startup (Philip Kaufmann)
2014-01-14[Qt] 2 minor translation changesPhilip Kaufmann
2014-01-11[Qt] don't regenerate autostart link on every client startupPhilip Kaufmann
- allows users to add additional paramaters via the autostart link - related to #2197
2014-01-11[Qt] guard bitcoin-config.h and remove dublicated help message codePhilip Kaufmann
2014-01-11GUI for --disable-wallet compiles and -disablewallet modeWladimir J. van der Laan
There is not much in the GUI to be done without wallet, though it's possible to change options, watch the sync process, and use the debug console. So embed the debug console in the main window.
2014-01-11qt: Stop shutdown detection timer during shutdownWladimir J. van der Laan
Stop the shutdown timer from exiting the main loop when shutdown is already in progress. Fixes seeming hanging window after typing 'stop' in debug console. Also hide the debug console during shutdown as it is useless without a core to connect to.
2014-01-11qt: Remove global references in bitcoin.cppWladimir J. van der Laan
Remove the need for global references `guiref` and `splashref` by making the BitcoinGUI and SplashScreen classes register for the UI interface signals themselves.
2014-01-11qt: Show window while shutting downWladimir J. van der Laan
Makes it clear to the user that the application is still wrapping up and the computer should not be turned off until it is finished.
2014-01-11qt: Move initialization/shutdown to a threadWladimir J. van der Laan
Move AppInit2 and Shutdown to a thread. This allows a more responsive splash screen, prevents 'process does not respond' messages from the window system and will allow for showing a user friendly window while shutting down.
2014-01-10qt5: Use the info gleaned from configure for plugin importingCory Fields
2014-01-10Merge pull request #3488Wladimir J. van der Laan
2102ab9 ui: Fix GUI initialization order (Wladimir J. van der Laan)
2014-01-05ui: Fix GUI initialization orderWladimir J. van der Laan
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.
2013-12-20Allow `-noserver` with bitcoindWladimir J. van der Laan
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
2013-12-20Merge pull request #3437Wladimir J. van der Laan
2ea980a qt: Treat regtest as testnet (Wladimir J. van der Laan)
2013-12-20qt: Treat regtest as testnetWladimir J. van der Laan
No need to do anything special in the GUI for regtest mode, but do treat it at testnet not mainnet to prevent confusion.
2013-12-19Merge pull request #3412Wladimir J. van der Laan
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)
2013-12-18Merge pull request #3415Wladimir J. van der Laan
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)
2013-12-14Remove unused ThreadSafeAskFee from ui_interfaceWladimir J. van der Laan
ThreadSafeAskFee is effectively unused. It is only called when the fAskFee parameter on SendMoney or SendMoneyToDestination is true, which never happens. Remove it.
2013-12-13Move `nTransactionFee` from main.cpp to wallet.cppWladimir J. van der Laan
Transaction fee is only used by the wallet. No need for it to be in main.cpp.
2013-12-13Rebrand to `Bitcoin Core`Wladimir J. van der Laan
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.
2013-12-09[Qt] misc small Mac related changes/cleanupsPhilip Kaufmann
- 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
2013-12-03[Qt] small notificator and style changesPhilip Kaufmann
- remove default arguments for notificator - re-order some calls to use same ordering in Qt files - style police changes (spaces, comments and such)
2013-11-13qt: GUI support for -disablewallet modeWladimir J. van der Laan
2013-11-11Merge pull request #3187 from Diapolo/netManagerWladimir J. van der Laan
[Qt] paymentserver: start netManager in uiReady()