Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: object names added for keycard controller el… #12583

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,23 @@ ColumnLayout {

StatusAction {
text: d.readerStateReaderUnplugged
objectName: "readerStateReaderUnpluggedAction"
onTriggered: {
root.selectedState = MockedKeycardReaderStateSelector.State.NoReader
}
}

StatusAction {
text: d.readerStateKeycardNotInserted
objectName: "readerStateKeycardNotInsertedAction"
onTriggered: {
root.selectedState = MockedKeycardReaderStateSelector.State.NoKeycard
}
}

StatusAction {
text: d.readerStateKeycardInserted
objectName: "readerStateKeycardInsertedAction"
onTriggered: {
root.selectedState = MockedKeycardReaderStateSelector.State.KeycardInserted
}
Expand Down
8 changes: 8 additions & 0 deletions ui/imports/shared/controls/MockedKeycardStateSelector.qml
Original file line number Diff line number Diff line change
Expand Up @@ -83,55 +83,63 @@ ColumnLayout {

StatusAction {
text: d.kcStateNotStatusKeycard
objectName: "notStatusKeycardAction"
onTriggered: {
root.selectedState = MockedKeycardStateSelector.State.NotStatusKeycard
}
}

StatusAction {
text: d.kcStateEmptyKeycard
objectName: "emptyKeycardAction"
onTriggered: {
root.selectedState = MockedKeycardStateSelector.State.EmptyKeycard
}
}

StatusAction {
text: d.kcStateMaxPairingSlotsReached
objectName: "maxPairingSlotsReachedAction"
onTriggered: {
root.selectedState = MockedKeycardStateSelector.State.MaxPairingSlotsReached
}
}

StatusAction {
text: d.kcStateMaxPINRetriesReached
objectName: "maxPINRetriesReachedAction"
onTriggered: {
root.selectedState = MockedKeycardStateSelector.State.MaxPINRetriesReached
}
}

StatusAction {
text: d.kcStateMaxPUKRetriesReached
objectName: "maxPUKRetriesReachedAction"
onTriggered: {
root.selectedState = MockedKeycardStateSelector.State.MaxPUKRetriesReached
}
}

StatusAction {
text: d.kcStateKeycardWithMnemonicOnly
objectName: "keycardWithMnemonicOnlyAction"
onTriggered: {
root.selectedState = MockedKeycardStateSelector.State.KeycardWithMnemonicOnly
}
}

StatusAction {
text: d.kcStateKeycardWithMnemonicAndMedatada
objectName: "keycardWithMnemonicAndMedatadaAction"
onTriggered: {
root.selectedState = MockedKeycardStateSelector.State.KeycardWithMnemonicAndMedatada
}
}

StatusAction {
text: d.kcStateCustomKeycard
objectName: "customKeycardAction"
onTriggered: {
root.selectedState = MockedKeycardStateSelector.State.CustomKeycard
}
Expand Down
10 changes: 10 additions & 0 deletions ui/imports/shared/panels/MockedKeycardLibControllerWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ ApplicationWindow {

StatusButton {
text: qsTr("Plugin Reader")
objectName: "pluginReaderButton"

onClicked: {
if (!!root.relatedModule) {
Expand All @@ -56,6 +57,7 @@ ApplicationWindow {

StatusButton {
text: qsTr("Unplug Reader")
objectName: "unplugReaderButton"

onClicked: {
if (!!root.relatedModule) {
Expand All @@ -66,6 +68,7 @@ ApplicationWindow {

StatusButton {
text: qsTr("Insert Keycard 1")
objectName: "insertKeycard1Button"

onClicked: {
if (!!root.relatedModule) {
Expand All @@ -76,6 +79,7 @@ ApplicationWindow {

StatusButton {
text: qsTr("Insert Keycard 2")
objectName: "insertKeycard2Button"

onClicked: {
if (!!root.relatedModule) {
Expand All @@ -86,6 +90,7 @@ ApplicationWindow {

StatusButton {
text: qsTr("Remove Keycard")
objectName: "removeKeycardButton"

onClicked: {
if (!!root.relatedModule) {
Expand Down Expand Up @@ -122,11 +127,13 @@ ApplicationWindow {
width: implicitWidth
leftPadding: 0
text: qsTr("Keycard-1")
objectName: "keycard1Button"
}

StatusTabButton {
width: implicitWidth
text: qsTr("Keycard-2")
objectName: "keycard2Button"
}
}

Expand Down Expand Up @@ -181,6 +188,7 @@ ApplicationWindow {

StatusInput {
id: mockedKeycard
objectName: "mockedKeycardInput"
label: qsTr("Mocked Keycard")
implicitWidth: 400
minimumHeight: 200
Expand All @@ -193,6 +201,7 @@ ApplicationWindow {

StatusInput {
id: mockedKeycardHelper
objectName: "specificKeycardDetailsInput"
label: qsTr("Specific keycard details")
implicitWidth: 400
minimumHeight: 200
Expand All @@ -206,6 +215,7 @@ ApplicationWindow {

StatusButton {
text: qsTr("Register Keycard")
objectName: "registerKeycardButton"
onClicked: {
if (customSection.visible) {
mockedKeycard.input.valid = true
Expand Down