status-desktop/ui/app/AppLayouts/Wallet/popups/AddNewAccountMenu.qml

61 lines
1.5 KiB
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
import shared 1.0
import shared.popups 1.0
import utils 1.0
// TODO: replace with StatusPopupMenu
PopupMenu {
id: newAccountMenu
width: 260
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
signal generateNewAccountTriggered();
signal addWatchAccountTriggered();
signal enterSeedPhraseTriggered();
signal enterPrivateKeyTriggered();
Action {
//% "Generate an account"
text: qsTrId("generate-a-new-account")
icon.source: Style.svg("generate_account")
icon.width: 19
icon.height: 19
onTriggered: {
newAccountMenu.generateNewAccountTriggered();
}
}
Action {
//% "Add a watch-only address"
text: qsTrId("add-a-watch-account")
icon.source: Style.svg("eye")
icon.width: 19
icon.height: 19
onTriggered: {
newAccountMenu.addWatchAccountTriggered();
}
}
Action {
//% "Enter a seed phrase"
text: qsTrId("enter-a-seed-phrase")
icon.source: Style.svg("enter_seed_phrase")
icon.width: 19
icon.height: 19
onTriggered: {
newAccountMenu.enterSeedPhraseTriggered();
}
}
Action {
//% "Enter a private key"
text: qsTrId("enter-a-private-key")
icon.source: Style.svg("enter_private_key")
icon.width: 19
icon.height: 19
onTriggered: {
newAccountMenu.enterPrivateKeyTriggered();
}
}
}