aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Qt] tweak new peers tab in console windowPhilip Kaufmann2014-08-041-96/+59
| | | | | | | | | | | | | | | | | | | - 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
* [Qt] Fix segfault when launched with -disablewalletCozz Lovan2014-07-131-5/+24
|
* remove unneded class CNodeCombinedStats; from rpcconsole.cppPhilip Kaufmann2014-06-231-1/+2
| | | | - also 2 small style fixes
* add NetworkIDString() to chainparamsPhilip Kaufmann2014-06-121-1/+1
| | | | | | - returns the BIP70 network string - use that new function in the core and GUI code and remove unused code and functions
* [Qt] Improve rpc console history behaviorCozz Lovan2014-06-071-2/+2
|
* Fix GUI build with `--disable-wallet`Wladimir J. van der Laan2014-06-051-0/+2
| | | | fe6bff2 and 65f78a1 broke it. Minor build changes.
* [Qt] add BerkeleyDB version info to RPCConsolePhilip Kaufmann2014-06-041-1/+9
| | | | - to match info function between debug.log and RPCConsole
* [Qt] style police and small addition in rpcconsolePhilip Kaufmann2014-06-031-7/+8
| | | | - fix spaces, indentation and coding style glitches
* Qt: Add GUI view of peer information. #4133Ashley Holman2014-06-031-11/+181
|
* Remove NumBlocksOfPeersWladimir J. van der Laan2014-05-061-5/+3
| | | | | | | | | | | | | Generally useless information. Only updates on connect time, not after that. Peers can easily lie and the median filter is not effective in preventing that. In the past it was used for progress display in the GUI but `CheckPoints::guessVerificationProgress` provides a better way that is now used. It was too easy to mislead it. Peers do lie about it in practice, see issue #4065. From the RPC, `getpeerinfo` gives the peer raw values, which are more useful.
* Qt: Fix ESC in disablewallet modeWladimir J. van der Laan2014-03-181-0/+7
| | | | Fixes issue #3854
* [Qt] show number of in/out connections in debug consolePhilip Kaufmann2014-03-031-1/+8
|
* Copyright header updates s/2013/2014 on files whose last git commit was done ↵gubatron2014-02-091-1/+1
| | | | | | 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.
* [Qt] move helpmessage from debug window to main menuPhilip Kaufmann2014-01-221-8/+0
| | | | | - the option to show our help message dialog resides now in main menu under help
* [Qt] add utilitydialog.cpp/h and helpmessage classPhilip Kaufmann2014-01-181-2/+3
| | | | | | | - 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
* qt: Treat regtest as testnetWladimir J. van der Laan2013-12-201-1/+1
| | | | | No need to do anything special in the GUI for regtest mode, but do treat it at testnet not mainnet to prevent confusion.
* Split up bitcoinrpc (code movement only)Wladimir J. van der Laan2013-11-271-1/+2
| | | | | | | | | | | | | | Split bitcoinrpc up into - rpcserver: bitcoind RPC server - rpcclient: bitcoin-cli RPC client - rpcprotocol: shared common HTTP/JSON-RPC protocol code One step towards making bitcoin-cli independent from the rest of the code, and thus a smaller executable that doesn't have to be linked against leveldb. This commit only does code movement, there are no functional changes.
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-6/+8
| | | | | | | | | 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.
* [Qt] rename rpcconsole windowPhilip Kaufmann2013-11-081-6/+2
| | | | | | | | | - rework window title to not include Bitcoin - in front, as no other dialog does this - favor a connect() call over an own function for clearing the traffic graph - write monospace lowercase (seems to be correct after some web search) and add a comment that we should avoid / remove fixed font sizes
* qt: add license header to source filesWladimir J. van der Laan2013-11-041-0/+4
| | | | Closes #839
* Revert "Switch to using raw_utf8"Jeff Garzik2013-10-221-2/+2
| | | | This reverts commit 2ecb7555a9df1e843fd25f588819e4ca1d94b266.
* Merge pull request #2740 from constantined/constantinedGavin Andresen2013-10-221-2/+2
|\ | | | | UTF-8 support for JSON-RPC
| * Switch to using raw_utf8constantined2013-07-231-2/+2
| |
* | Add network traffic graphScott Ellis2013-10-141-1/+54
| |
* | Bitcoin-Qt: save and restore position of debug windowPhilip Kaufmann2013-07-291-0/+2
| | | | | | | | | | | | - 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
* | Bitcoin-Qt: harmonize 2 setClientModel() functionsPhilip Kaufmann2013-06-031-2/+4
|/ | | | | | - harmonize BitcoinGUI::setClientModel() and RPCConsole::setClientModel() - now RPCConsole::setClientModel() also includes a direct call to setNumBlocks()
* Qt5 compatibilityWladimir J. van der Laan2013-06-011-0/+2
| | | | | | | | | | | | 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]>
* Bitcoin-Qt: small RPCConsole cleanupPhilip Kaufmann2013-04-021-9/+3
| | | | | - add missing initalisation for clientModel - remove unneded RPCExecutor::start() code
* Bitcoin-Qt: massive header and cpp cleanupPhilip Kaufmann2013-03-171-3/+3
| | | | | | | - 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
* Bitcoin-Qt: never display own block count > estimated block countPhilip Kaufmann2013-01-041-7/+2
| | | | | | | | | | | - some users reported it as weird, that the estimated block count could be lower than our own nodes block number (which is indeed true and not good) - this pull adds a new default behaviour, which displays our own block number as estimated block number, if own >= est. block count - the pull raises space for nodes block counts in cPeerBlockCounts to 8 to be more accurate - also removes a reduntant setNumBlocks() call in RPCConsole and moves initialisation of numBlocksAtStartup in ClientModel, where it belongs
* Merge pull request #1767 from Diapolo/RPCCon_clear_historyWladimir J. van der Laan2012-11-151-2/+3
|\ | | | | clear history when using clear button in RPC console
| * clear history when using clear button in RPC consolePhilip Kaufmann2012-09-021-2/+3
| | | | | | | | | | | | - current code does not clear history, when using the clear button, this is added - remove a currently unused variable but add a TODO comment
* | enhance Qt5 compatibilityPhilip Kaufmann2012-09-211-1/+1
| | | | | | | | | | - replace Q_WS_MAC (not supported anymore in Qt5) with Q_OS_MAC (supported in Qt4/5)
* | Improve RPC console key event behaviourWladimir J. van der Laan2012-09-091-6/+26
|/ | | | | - Paging using PageUp / PageDown now works when entry widget has focus - Typing or pasting while the messages widget has focus auto-selects entry widget
* RPC console: escaping within ' and " now handled differentlyWladimir J. van der Laan2012-09-011-16/+9
| | | | | Should now mimic bash quoting and escaping (see http://wiki.bash-hackers.org/syntax/quoting) exactly, leaving out argument expansion and obscure syntax like $''.
* In RPC console, attempt to format errorsWladimir J. van der Laan2012-08-311-2/+13
| | | | | Try to display a nicer message instead of dumping raw JSON object when possible. If the error somehow doesn't have the required 'code' and 'message' fields, fall back to printing raw JSON object.
* Fix RPC console parser to handle escaped arguments more like bashWladimir J. van der Laan2012-08-311-20/+98
| | | | - Fix issue #1750
* show used OpenSSL library version in debug windowPhilip Kaufmann2012-07-071-0/+4
|
* Cross-platform "Open debug logfile"Wladimir J. van der Laan2012-06-121-6/+0
| | | | | The option to open the debug logfile from the debug window was implemented only for windows. By using `QDesktopServices::openUrl` it now works on any platform.
* move class HelpMessageBox to guiutil.cpp/.h / add button to show Bitcoin ↵Philip Kaufmann2012-06-011-3/+12
| | | | 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
* add client startup time as an entry to debug.log (note: logged time in ↵Philip Kaufmann2012-05-231-1/+1
| | | | debug.log differs by a few seconds from the one displayed in the Debug window) / make ClientModel::formatClientStartupTime() return a QString
* Fine-grained UI updatesWladimir J. van der Laan2012-05-201-3/+4
| | | | | | | | | | | | | | | | | | | Gets rid of `MainFrameRepaint` in favor of specific update functions that tell the UI exactly what changed. This improves the efficiency of various handlers. Also fixes problems with mined transactions not showing up until restart. The following notifications were added: - `NotifyBlocksChanged`: Block chain changed - `NotifyKeyStoreStatusChanged`: Wallet status (encrypted, locked) changed. - `NotifyAddressBookChanged`: Address book entry changed. - `NotifyTransactionChanged`: Wallet transaction added, removed or updated. - `NotifyNumConnectionsChanged`: Number of connections changed. - `NotifyAlertChanged`: New, updated or cancelled alert. As this finally makes it possible for the UI to know when a new alert arrived, it can be shown as OS notification. These notifications could also be useful for RPC clients. However, currently, they are ignored in bitcoind (in noui.cpp). Also brings back polling with timer for numBlocks in ClientModel. This value updates so frequently during initial download that the number of signals clogs the UI thread and causes heavy CPU usage. And after initial block download, the value changes so rarely that a delay of half a second until the UI updates is unnoticable.
* Merge pull request #1323 from Diapolo/string_fixesWladimir J. van der Laan2012-05-201-3/+3
|\ | | | | translation updates / string updates
| * allow translation of "options" used in the --help message / split ↵Philip Kaufmann2012-05-171-3/+3
| | | | | | | | translation of RPC console welcome message and remove the need to take care of "<br>" / remove some spaces in strings and misc other stuff related to translations
* | add an icon for Debug logfile -> Open in the RPC console / add a missing ↵Philip Kaufmann2012-05-181-1/+3
|/ | | | comment in rpcconsole.h
* fix DebugLog file opens twice after clicking "Open" in RPC Console ↵Philip Kaufmann2012-05-141-1/+0
| | | | Information tab
* RPC console: scroll to the end when user enters a commandWladimir J. van der Laan2012-05-141-0/+9
| | | | - Ensures that the command and reply is visible
* RPC console: don't crash on invalid input exceptionWladimir J. van der Laan2012-05-121-10/+17
|
* Convert RPC console to QTextEdit instead of QTableViewWladimir J. van der Laan2012-05-121-70/+54
| | | | | | | * This allows copy/pasting whole or partial messages * Handle output more consistently in console * No more scrollbars-in-scrollbars: by setting per-pixel scrolling on the table, cells can have any height * Decorations for "request" and "reply" are changed to the txin and txout icons instead of colored squares
* add the client startup time to the debug window / rename Version label to ↵Philip Kaufmann2012-05-121-0/+1
| | | | Client, which is better suiting now / add IBeamCursor for selectable text on the information page / make ">" sign on RPC page untranslatable / re-order XML-file tags to match real GUI element order