aboutsummaryrefslogtreecommitdiff
path: root/src/qt/intro.cpp
AgeCommit message (Collapse)Author
2014-03-31Wrap create_directory calls in try...catch blocks.Brandon Dahler
Ignores any exceptions thrown if directory exists, otherwise re-throws exception. Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-03-25qt: Only override -datadir if different from the defaultWladimir J. van der Laan
Fixes #3905.
2014-03-25qt: Do proper boost::path conversionWladimir J. van der Laan
Convert from QString unicode from/to the OS-dependent locale as used by boost::filesystem::path as needed. Solves #3916.
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-10qt: Adjust BLOCK_CHAIN_SIZE to 20GBWladimir J. van der Laan
This increases the space requirement for selecting a data directory in the UI. As suggested by @bardiharborow, fixes #3830.
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-01-10[Qt] display native dir separators in select dadatir dialogPhilip Kaufmann
- fixes display on Windows now \ instead of / before
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-11-10Cleanup code using forward declarations.Brandon Dahler
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.
2013-11-05[Qt] use tr() instead of QObject::tr() in intro.cppPhilip Kaufmann
2013-11-04qt: add license header to source filesWladimir J. van der Laan
Closes #839
2013-08-24Bitcoin-Qt: add testnet check and icon to intro dialogPhilip Kaufmann
2013-08-05Merge pull request #2865 from Diapolo/fix_intro_translationGavin Andresen
fix string in intro.cpp, which is untranslatable on Transifex
2013-07-29fix string in intro.cpp, which is untranslatable on TransifexPhilip Kaufmann
- seems the code tags in the original string cause errors, when using the Transifex site for translation
2013-07-26fix possible infinite loop in intro.cpp threadPhilip Kaufmann
- it was possible to trigger an infinite loop in FreespaceChecker::check() by simply removing the drive letter on Windows (which leads to an infinite loop in the FreespaceChecker thread) - this was caused by not checking if we make progress with parentDir.parent_path()
2013-06-16qt: allow user to choose data directoryWladimir J. van der Laan
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.