[Qt] optionally show debug window as main tab #3941

pull cozz wants to merge 1 commits into bitcoin:master from cozz:cozz9 changing 11 files +144 −55
  1. cozz commented at 10:33 PM on March 22, 2014: contributor

    I would find it more convenient, if the debug window could be shown as main tab. Changing the option needs client restart.

    debugtab2

    debugtab1

  2. laanwj commented at 9:54 AM on March 23, 2014: member

    Hmm... I like the idea of being able to call the debug window from the main screen, but I'm not sure this is the right way. I think some restructuring would be needed to accomedate this.

    The tab pages are 'wallet tabs', internally part of the wallet view. The debug window is not supposed to have anything to do with a particular wallet(view) but with the P2P client itself. Apart from being inconsistent this would give problems in case multiple wallets could be loaded, for example (there would be multiple walletviews, each containing the debug window?)

    Also in no-wallet mode the tabs don't appear at all. This complicates the code between 'debug window as window', 'debug window as wallet tab', and 'debug window as main widget'.

    The Debug window could be a 'wallet' at the level of WalletFrame not WalletView. This reduces the amount of cases to two again: 'debug window as walletframe child' and 'debug window as window' in the case of no-wallet mode the debug window would be the only 'wallet'.

    ie

    BitcoinGUI
        WalletFrame (could be renamed to something else if it can contain other children as well...)
            WalletView [Wallet 1]
            WalletView [Wallet 2...]
            RPCConsole [Debug window]
    
  3. [Qt] optionally show debug window as main tab a7d0d70207
  4. cozz commented at 7:59 PM on March 23, 2014: contributor

    update:

    • there is now always a walletframe, even in nowallet-mode
    • walletframe has 2 stacks, walletstack and widgetstack, either one is visible
  5. BitcoinPullTester commented at 8:36 PM on March 23, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/a7d0d70207cec729a06854422d709faac8e4b385 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  6. luke-jr commented at 8:45 PM on March 23, 2014: member

    It makes zero sense to have the debug window (which should only ever be used by power users, since it exposes dangerous commands that affect wallet internals) promoted to a tab, yet forcefully stop people from choosing to have the sign/receive (which is common use for any kind of user) available as a tab...

  7. leofidus commented at 8:53 PM on March 23, 2014: none

    What is the reasoning behind stopping those other windows from being used as tabs?

  8. cozz commented at 4:50 PM on March 24, 2014: contributor

    I still like the idea, but agreed with @luke-jr that this should probably be solved in a more general way, letting people configure windows/tabs as they like. I think being able to right-click the toolbar, which opens a checkbox list would be great. Bonus if you could reorder the tabs. So closing for now, until someone has a better idea.

  9. cozz closed this on Mar 24, 2014

  10. laanwj commented at 5:22 PM on March 24, 2014: member

    I'm not married to the idea of tabs.

    Keeping the number of tabs down was a motivation in the past to not make the software appear too daunting.

    But we'll have to redesign the interface a bit if we want to support multiple wallets, which makes the navigation more like a kind of two-level structure:

    - Wallet 1
      - Overview
      - Send
      - Receive
      - possibly Sign message
      - possibly Verify message
    - Wallet 2
        ....
    - Debug
    ....
    

    The current use of tabs becomes really strange in that case (how the signals are connected and the tab signals need to pass down the WalletView hierarchy is already telling).

    Also in general I'm against having a lot of options/configurability as this makes testing exponentially more work intensive, so it would be nice if we could come up with something that simply works.

  11. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me