aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletview.h
diff options
context:
space:
mode:
authorchromatic <[email protected]>2021-04-21 16:35:06 -0700
committerchromatic <[email protected]>2021-05-23 19:37:09 -0700
commit0565a85c7cd8df3ea3cfee2a5a9f252b870408ad (patch)
tree4006f4d38b76df9d9f5c49e3563c730478889db5 /src/qt/walletview.h
parentMerge pull request #1976 from langerhans/1.14.4-travis-pgsql (diff)
downloaddiscoin-0565a85c7cd8df3ea3cfee2a5a9f252b870408ad.tar.xz
discoin-0565a85c7cd8df3ea3cfee2a5a9f252b870408ad.zip
Add GUI to import private keys
Addresses GH #1808. There are several possible future improvements: * add a new icon for key import * reduce duplication of code between the RPC private key importer and the GUI private key importer * improving error messages for various error states
Diffstat (limited to 'src/qt/walletview.h')
-rw-r--r--src/qt/walletview.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qt/walletview.h b/src/qt/walletview.h
index 67d163fa0..bd581e124 100644
--- a/src/qt/walletview.h
+++ b/src/qt/walletview.h
@@ -19,6 +19,7 @@ class SendCoinsRecipient;
class TransactionView;
class WalletModel;
class AddressBookPage;
+class ImportKeysDialog;
QT_BEGIN_NAMESPACE
class QModelIndex;
@@ -64,6 +65,7 @@ private:
SendCoinsDialog *sendCoinsPage;
AddressBookPage *usedSendingAddressesPage;
AddressBookPage *usedReceivingAddressesPage;
+ ImportKeysDialog *importKeysDialog;
TransactionView *transactionView;
@@ -75,6 +77,8 @@ public Q_SLOTS:
void gotoOverviewPage();
/** Switch to history (transactions) page */
void gotoHistoryPage();
+ /** Switch to import keys dialog */
+ void gotoImportKeysDialog();
/** Switch to receive coins page */
void gotoReceiveCoinsPage();
/** Switch to send coins page */
@@ -106,6 +110,9 @@ public Q_SLOTS:
/** Show used receiving addresses */
void usedReceivingAddresses();
+ /** Import a private key */
+ void importPrivateKey();
+
/** Re-emit encryption status signal */
void updateEncryptionStatus();