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.
1// Copyright (c) 2011-present The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5#ifndef BITCOIN_QT_ADDRESSBOOKPAGE_H6#define BITCOIN_QT_ADDRESSBOOKPAGE_H8#include <QDialog>10class AddressBookSortFilterProxyModel;11class AddressTableModel;12class PlatformStyle;14namespace Ui {15class AddressBookPage;16}18QT_BEGIN_NAMESPACE19class QItemSelection;20class QMenu;21class QModelIndex;22QT_END_NAMESPACE24/** Widget that shows a list of sending or receiving addresses.25*/26class AddressBookPage : public QDialog27{28Q_OBJECT30public:31enum Tabs {32SendingTab = 0,33ReceivingTab = 134};36enum Mode {37ForSelection, /**< Open address book to pick address */38ForEditing /**< Open address book for editing */39};41explicit AddressBookPage(const PlatformStyle *platformStyle, Mode mode, Tabs tab, QWidget *parent = nullptr);42~AddressBookPage();44void setModel(AddressTableModel *model);45const QString &getReturnValue() const { return returnValue; }47public Q_SLOTS:48void done(int retval) override;50private:51Ui::AddressBookPage *ui;52AddressTableModel* model{nullptr};53Mode mode;54Tabs tab;55QString returnValue;56AddressBookSortFilterProxyModel *proxyModel;57QMenu *contextMenu;58QString newAddressToSelect;59void updateWindowsTitleWithWalletName();61private Q_SLOTS:62/** Delete currently selected address entry */63void on_deleteAddress_clicked();64/** Create a new address for receiving coins and / or add a new address book entry */65void on_newAddress_clicked();66/** Copy address of currently selected address entry to clipboard */67void on_copyAddress_clicked();68/** Copy label of currently selected address entry to clipboard (no button) */69void onCopyLabelAction();70/** Edit currently selected address entry (no button) */71void onEditAction();72/** Export button clicked */73void on_exportButton_clicked();75/** Set button states based on selected tab and selection */76void selectionChanged();77/** Spawn contextual menu (right mouse menu) for address book entry */78void contextualMenu(const QPoint &point);79/** New entry/entries were added to address table */80void selectNewAddress(const QModelIndex &parent, int begin, int /*end*/);82Q_SIGNALS:83void sendCoins(QString addr);84};86#endif // BITCOIN_QT_ADDRESSBOOKPAGE_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.