aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
AgeCommit message (Collapse)Author
2015-12-13Bump copyright headers to 2015MarcoFalke
2015-10-29[qt] Use fixed pitch font for the rpc consoleMarcoFalke
Also: * Preserve white space * Make fixed font as large as default font
2015-07-15qt: define QT_NO_KEYWORDSWladimir J. van der Laan
QT_NO_KEYWORDS prevents Qt from defining the `foreach`, `signals`, `slots` and `emit` macros. Avoid overlap between Qt macros and boost - for example #undef hackiness in #6421.
2015-06-02[Qt] disconnect peers from peers tab via context menuPhilip Kaufmann
- It is now allowed to disconnect peers from peers tab via right-click context menu. Peers are not permanently banned!
2015-01-16qt: fonts: allow SubstituteFonts to filter based on user's languageCory Fields
SubstituteFonts() has been moved to after app identification so that QSettings are accessible.
2015-01-02Merge pull request #5476Wladimir J. van der Laan
73caf47 Display time offset in the debug window's Peers tab (Pavel Janík) 26a6bae Add time offset to getpeerinfo output (Pavel Janík)
2014-12-19Added "Core" to copyright headerssandakersmann
Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
2014-12-16Remove references to X11 licenceMichael Ford
2014-12-15Display time offset in the debug window's Peers tabPavel Janík
2014-11-24[Qt, OSX] fix Qt4.8 compatibility with QProgressBar issueJonas Schnelli
Rebased-From: 7f33d2cebfde99ded12c711ef6bd77c91725cfb8 Github-Issue: #5344
2014-11-19[Qt, OSX] move QProgressBarMac to guiutil.hJonas Schnelli
2014-11-03Fix all header definesPavel Janík
2014-09-26Use a typedef for monetary valuesMark Friedenbach
2014-08-18qt: Use quint64 for formatServicesStrWladimir J. van der Laan
`uint64_t` was causing a build error on some systems, as that type is not known after including just the Qt headers.
2014-08-08[Qt] move SubstituteFonts() above ToolTipToRichTextFilterPhilip Kaufmann
- doesn't belong to the ToolTipToRichTextFilter class so move it up
2014-08-07qt: fix unicode character display on osx when building with 10.7 sdkCory Fields
2014-08-04[Qt] tweak new peers tab in console windowPhilip Kaufmann
- remove starting height as table header and replace with ping time - remove columnResizingFixer - add local address (if available) in detailed node view (on top of the right view below the remote address) - remove some .c_str() by using QString::fromStdString() - rename Address to Address/Hostname - rename secs to just s for ping time - use MODEL_UPDATE_DELAY from guiconstants.h for the peer refresh time - make PeerTableModel::columnCount() return no hard-coded value - remove and cleanup dup private: section in RPCConsole header - add new defaults for column sizes - remove behaviour which keeps disconnected peers selected and also remove code which keeps track of last selected peer stats - add sync height to detail view - add some additional NULL pointer checks for clientModel in rpcconsole.cpp
2014-06-03[Qt] style police and small addition in rpcconsolePhilip Kaufmann
- fix spaces, indentation and coding style glitches
2014-06-03Qt: Add GUI view of peer information. #4133Ashley Holman
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-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-11-14Coin Control FeaturesCozz Lovan
2013-11-11[Qt] remove GUIUtil::getSaveFileName() default argumentsPhilip Kaufmann
- harmonize function with GUIUtil::getOpenFileName() - also make PNG Image singular (grammar)
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-23qt: move bitcoin URI formatting to guiutilWladimir J. van der Laan
Follow the same pattern as the parseBitcoinURI function.
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-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-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
2012-08-01Bugfix: Fix a variety of misspellingsLuke Dashjr
2012-07-23Typofanquake
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.
2012-06-01move class HelpMessageBox to guiutil.cpp/.h / add button to show Bitcoin ↵Philip Kaufmann
command-line options (in RPC Console -> Information) / resize Debug window a little to allow for a non-breaking display of the welcome message with non-english translation
2012-05-18change strings to Bitcoin (uppercase), where it is used as a noun and update ↵Philip Kaufmann
strings to use "Qt" (and not qt or QT) / update initialisation of notificator to use qApp->applicationName() instead of a static string
2012-05-13Move GetStartOnSystemStartup and SetStartOnSystemStartup to GUI codeWladimir J. van der Laan
2012-05-11guiutil.cpp/.h: fix a -Wreorder compiler warning and make constructor for ↵Philip Kaufmann
ToolTipToRichTextFilter explicit
2012-05-11add code to open (display) debug.log on Windows with the associated ↵Philip Kaufmann
application and add a button to the Information page in the Debug console
2012-05-05Allow Qt to wrap long tooltips (fixes #1063)Wladimir J. van der Laan
Implemented without having to touch any translation: by listening for QEvent::ToolTipChange events, then rewriting the tooltips to prefix `<qt/>` if it is not yet rich text.
2012-04-11Toggle main window hide on tray icon clicksje397
- converted openBictoinAction to toggleHideAction - put GUIUtil functions into a namespace instead of a class - put window-related functions together in optionsdialog Reasoning: - toggle is more typical behaviour - it's more functional - better UX The typical issue with toggling visibility is that when a window is obscured by other windows but in the 'shown' state, hiding it isn't what you want. I've added an 'isObscured' function to GUIUtil that checks several pixels in the window to see if they are visible on the desktop so that an obscured but shown window can be raised. Conflicts: src/qt/guiutil.cpp src/qt/guiutil.h
2012-04-06Bugfix: Replace "URL" with "URI" where we aren't actually working with URLsLuke Dashjr
2012-04-04Code deduplication: make function in GUIUtil to get connection type to call ↵Wladimir J. van der Laan
object slot in GUI thread with invokeMethod.
2012-02-22Merge branch '201202_guiaddsuffix' of https://github.com/laanwj/bitcoinGavin Andresen
2012-02-17Restructure IPC URL handling (fixes #851)Wladimir J. van der Laan
2012-02-15fix default suffixes in save dialog in GNOME, make it more clear that PNG is ↵Wladimir J. van der Laan
used (solves #833)
2011-12-23Copy amount to clipboard (implements #657)Wladimir J. van der Laan
- Also, unify similar code related to copying transaction fields to clipboard
2011-12-23Move HtmlEscape (escape for qt rich text controls) to qt gui utilitiesWladimir J. van der Laan