aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.cpp
AgeCommit message (Collapse)Author
2014-07-20[Qt] Fix thin space in URICozz Lovan
2014-07-03Move fee policy out of coreGavin Andresen
2014-06-23[Qt] don't allow translation of our example btc addressPhilip Kaufmann
2014-06-06Type-safe CFeeRate classGavin Andresen
Use CFeeRate instead of an int64_t for quantities that are fee-per-size. Helps prevent unit-conversion mismatches between the wallet, relaying, and mining code.
2014-06-03[Qt] style police and small addition in rpcconsolePhilip Kaufmann
- fix spaces, indentation and coding style glitches
2014-06-03Merge pull request #4225Wladimir J. van der Laan
65f78a1 Qt: Add GUI view of peer information. #4133 (Ashley Holman)
2014-06-03Qt: Add GUI view of peer information. #4133Ashley Holman
2014-05-29[Qt] Fix Start bitcoin on system loginCozz Lovan
2014-05-24Qt: Fix monospace font in osx 10.9Cory Fields
The "Monospace" hint was added in Qt 4.8, and it works as intended as opposed to "TypeWriter" which fails to load a font.
2014-03-27[Qt] fix style, formating, comment and indentation problemsPhilip Kaufmann
- introduced by #3920
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-21[QT] Fixes feel when resizing the last column on tables (issue #2862)gubatron
Re-submitting this pull request with a single commit. This patch introduces a GUIUtil class that is used when setting up the 2 tables we have so far on the Qt-GUI. In the past you could only resize the last column, which has BTC amounts from the right border of the column header, something that was rather unnatural. If a new table were ever to be added to the interface, fixing the last columns resizing behavior is rather simple. Just look at how we initialize here a TableViewLastColumnResizingFixer object when setting up the table header's behavior, and then how we override the resize event of the component (can be the table, or the dialog) and we invoke columnResizingFixer->stretchColumnWidth(columnIndex);
2014-01-29[Qt] extend validate line edit and btc address validatorPhilip Kaufmann
- remove btc address length from address validator - add an optional btc address check in validated line edit that defaults to off and is used in GUIUtil::setupAddressWidget() - an isAcceptable() check is added to validated line edit on focus out which only kicks in, when a validator is used with that widget - remove an isAcceptable() check from sendcoinsentry.cpp - remove obsolete attributes from ui files, which are set by calling GUIUtil::setupAddressWidget() - move some more things to GUIUtil::setupAddressWidget() and remove them from normal code e.g. placeholder text
2014-01-28[Qt] fix bitcoin: URI strings (spelling fixes)Philip Kaufmann
2014-01-23qt: Fix richtext detection hang issue on very old Qt versionsWladimir J. van der Laan
Alternative implementation. Thanks to @awoland for the original. Fixes #3486.
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
2013-12-16some more small re-branding changes (Bitcoin Core)Philip Kaufmann
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-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-16[Qt] use GUIUtil::setClipboard() where possiblePhilip Kaufmann
2013-11-14Coin Control FeaturesCozz Lovan
2013-11-12qt: make URI scheme comparison case insensitiveWladimir J. van der Laan
Fixes ancient issue #1460.
2013-11-11qt: add Open URI dialogWladimir J. van der Laan
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-04qt: add license header to source filesWladimir J. van der Laan
Closes #839
2013-10-26GUIUtil: make getSaveFileName() use native OS path separatorsPhilip Kaufmann
2013-10-23qt: move bitcoin URI formatting to guiutilWladimir J. van der Laan
Follow the same pattern as the parseBitcoinURI function.
2013-10-23qt: add message field to SendCoinsRecipientWladimir J. van der Laan
Also update URI parsing to fill in this field. Note that the message is not currently used in any way with the client. It should be stored with the transaction.
2013-10-21Add separate bitcoin-rpc clientWladimir J. van der Laan
This adds an executable `bitcoin-rpc` that only serves as a Bitcoin RPC client. The commit does not remove RPC functionality from the `bitcoind` yet, this functionality should be deprecated but is left for a later version to give users some time to switch.
2013-08-22Reject dust amounts during validationGavin Andresen
Replaces the validation check for "amount == 0" with an isDust check, so very small output amounts are caught before the wallet is unlocked, a transaction is created, etc.
2013-08-05Merge pull request #2827 from Diapolo/rpccon_winposGavin Andresen
Bitcoin-Qt: save and restore position of debug window
2013-07-31Remove #define loop from util.hGavin Andresen
Replace the loop macro with while (true). The #define caused problems for Qt.
2013-07-29Bitcoin-Qt: save and restore position of debug windowPhilip Kaufmann
- move the code for saving and restoring window positions from BitcoinGUI to GUIUtil, make it more generic and also use it for saving/restoring debug window positions
2013-07-23Bitcoin-Qt: fix QApplication includes to match our include defaultsPhilip Kaufmann
- move all QApplication includes to top of included Qt headers - undef our loop macro where it would cause compilation errors otherwise
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.
2013-06-03Merge branch 'master' of git://github.com/bitcoin/bitcoin into prefsFixJonas Schnelli
Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch> Conflicts: bitcoin-qt.pro
2013-06-03MaxOSX: settings fixes (#2371)Jonas Schnelli
- Launch-At-Startup implementation for mac - Remove "Window" tab in settings Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch>
2013-06-01Qt5 compatibilityWladimir J. van der Laan
This commit squashes all the changes in the Qt5 branch relative to master. Backward compatibility with Qt4 is retained. Original authors: - Philip Kaufmann <phil.kaufmann@t-online.de> - Jonas Schnelli <jonas.schnelli@include7.ch>
2013-04-02Bitcoin-Qt: only use qApp for Q(Core)Application::instance()Philip Kaufmann
2013-04-02Bitcoin-Qt: fix copy via context-menu brokenPhilip Kaufmann
- as QClipboard::Selection isn't available on Windows ensure that the correct mode is called, but sill allow selection for e.g. X11 - start conversion from QCoreApplication::instance() to qApp in guiutil.cpp (I intend to harmonize this all over the source with my Qt5 compatibility pull)
2013-03-29Merge pull request #2350 from DavidGriffith/masterWladimir J. van der Laan
Also copy the address to the X11 clipboard (the one you middle-click to paste)
2013-03-17Bitcoin-Qt: massive header and cpp cleanupPhilip Kaufmann
- try to enforce the same style to all Qt related files - remove unneeded includes from the files - add missing Q_OBJECT, QT_BEGIN_NAMESPACE / QT_END_NAMESPACE - prepares for a pull-req to include Qt5 compatibility
2013-03-09Also copy the address to the X11 clipboard (the one you middle-click to paste)David Griffith
2013-01-21Bitcoin-Qt: extend parseBitcoinURI() pre-checkPhilip Kaufmann
- add check to verify if an URI is valid
2012-10-04Send --help message to stdout i.s.o stderrWladimir J. van der Laan
This allows fun stuff such as `bitcoin --help | less`, and more easy piping to files. Looking at other tools such as bash, gcc, they all send their help text to stdout.
2012-08-07Fix Qt test cases by moving address checks to parseBitcoinURIMatt Corallo
Makes sense in case bitcoin URIs eventually allow invalid addresses as a part of some larger future payment scheme.
2012-08-02fix further spelling errors / remove a tab in the sourcePhilip Kaufmann
2012-08-01Bugfix: Fix a variety of misspellingsLuke Dashjr
2012-07-19Update a linkfanquake
2012-06-14Show command line options as dialog when opened from debug windowWladimir J. van der Laan
On Linux/Mac the command-line options were printed to stderr when the button was pressed in the debug window, resulting in confusion. This is fixed in this commit by adding a separate method.