Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251void setCurrentWalletBySelectorIndex(int index);252/** Set the UI status indicators based on the currently selected wallet.253*/254void updateWalletStatus();256private:257/** Set the encryption status as shown in the UI.258@param[in] status current encryption status259@see WalletModel::EncryptionStatus260*/261void setEncryptionStatus(int status);263/** Set the hd-enabled status as shown in the UI.264@param[in] hdEnabled current hd enabled status265@see WalletModel::EncryptionStatus266*/267void setHDStatus(bool privkeyDisabled, int hdEnabled);269public Q_SLOTS:270bool handlePaymentRequest(const SendCoinsRecipient& recipient);272/** Show incoming transaction notification for new transactions. */273void incomingTransaction(const QString& date, BitcoinUnit unit, const CAmount& amount, const QString& type, const QString& address, const QString& label, const QString& walletName);274#endif // ENABLE_WALLET276private:277/** Set the proxy-enabled icon as shown in the UI. */278void updateProxyIcon();279void updateWindowTitle();281public Q_SLOTS:282#ifdef ENABLE_WALLET283/** Switch to overview (home) page */284void gotoOverviewPage();285/** Switch to history (transactions) page */286void gotoHistoryPage();287/** Switch to receive coins page */288void gotoReceiveCoinsPage();289/** Switch to send coins page */290void gotoSendCoinsPage(QString addr = "");292/** Show Sign/Verify Message dialog and switch to sign message tab */293void gotoSignMessageTab(QString addr = "");294/** Show Sign/Verify Message dialog and switch to verify message tab */295void gotoVerifyMessageTab(QString addr = "");296/** Load Partially Signed Bitcoin Transaction from file or clipboard */297void gotoLoadPSBT(bool from_clipboard = false);298/** Enable history action when privacy is changed */299void enableHistoryAction(bool privacy);301/** Show open dialog */302void openClicked();303#endif // ENABLE_WALLET304/** Show configuration dialog */305void optionsClicked();306/** Show about dialog */307void aboutClicked();308/** Show debug window */309void showDebugWindow();310/** Show debug window and set focus to the console */311void showDebugWindowActivateConsole();312/** Show help message dialog */313void showHelpMessageClicked();315/** Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true */316void showNormalIfMinimized() { showNormalIfMinimized(false); }317void showNormalIfMinimized(bool fToggleHidden);318/** Simply calls showNormalIfMinimized(true) */319void toggleHidden();321/** called by a timer to check if shutdown has been requested */322void detectShutdown();324/** Show progress dialog e.g. for verifychain */325void showProgress(const QString &title, int nProgress);327void showModalOverlay();328};330class UnitDisplayStatusBarControl : public QLabel331{332Q_OBJECT334public:335explicit UnitDisplayStatusBarControl(const PlatformStyle *platformStyle);336/** Lets the control know about the Options Model (and its signals) */337void setOptionsModel(OptionsModel *optionsModel);339protected:340/** So that it responds to left-button clicks */341void mousePressEvent(QMouseEvent *event) override;342void changeEvent(QEvent* e) override;344private:345OptionsModel* optionsModel{nullptr};346QMenu* menu{nullptr};347const PlatformStyle* m_platform_style;349/** Shows context menu with Display Unit options by the mouse coordinates */350void onDisplayUnitsClicked(const QPoint& point);351/** Creates context menu, its actions, and wires up all the relevant signals for mouse events. */352void createContextMenu();354private Q_SLOTS:355/** When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar */356void updateDisplayUnit(BitcoinUnit newUnits);357/** Tells underlying optionsModel to update its current display unit. */358void onMenuSelection(QAction* action);359};361#endif // BITCOIN_QT_BITCOINGUI_H
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.