summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-07-14 09:56:11 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-07-14 09:56:11 +0200
commite9aeb2a74cfb58ee0e4c90fcca032ebe9afbb977 (patch)
tree0ad6ddd76e4a538c33b4e93244099883cbf9d9ee /pdf-over-gui/src/main
parentf9fd33632d674062c1a6f675939eb4ddc0fee653 (diff)
downloadpdf-over-e9aeb2a74cfb58ee0e4c90fcca032ebe9afbb977.tar.gz
pdf-over-e9aeb2a74cfb58ee0e4c90fcca032ebe9afbb977.tar.bz2
pdf-over-e9aeb2a74cfb58ee0e4c90fcca032ebe9afbb977.zip
add "remember password" toggle box (no functionality yet)
Diffstat (limited to 'pdf-over-gui/src/main')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java6
-rw-r--r--pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties2
-rw-r--r--pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties2
3 files changed, 10 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java
index be20c05c..077099ff 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java
@@ -124,6 +124,7 @@ public class MobileBKUEnterNumberComposite extends StateComposite {
Button btn_ok;
Button btn_cancel;
+ Button btn_remember;
/**
* @return the errorMessage
@@ -206,6 +207,8 @@ public class MobileBKUEnterNumberComposite extends StateComposite {
this.lbl_error = new Label(containerComposite, SWT.WRAP | SWT.NATIVE );
StateComposite.anchor(lbl_error).top(87, -15).bottom(103, -20).left(5, 0).right(btn_cancel, -10).set();
+ this.btn_remember = new Button(containerComposite, SWT.CHECK);
+ StateComposite.anchor(btn_remember).right(100, -10).top(0, 5).set();
}
@Override
@@ -282,8 +285,11 @@ public class MobileBKUEnterNumberComposite extends StateComposite {
public void reloadResources() {
StateComposite.setLocalizedText(lbl_number, "mobileBKU.number");
StateComposite.setLocalizedText(lbl_password, "mobileBKU.password");
+ StateComposite.setLocalizedText(btn_remember, "mobileBKU.rememberPassword");
StateComposite.setLocalizedText(btn_ok, "common.Ok");
StateComposite.setLocalizedText(btn_cancel, "common.Cancel");
+
+ this.btn_remember.setToolTipText(Messages.getString("mobileBKU.rememberPasswordNote"));
}
}
diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
index 060023e0..2423d621 100644
--- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
+++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
@@ -211,6 +211,8 @@ mobileBKU.show=<a>Show signature data</a>
mobileBKU.show_tooltip=Shows the data to be signed
mobileBKU.tan_tries_exceeded=TAN tries exceeded, request a new TAN?
mobileBKU.wrong_tan=TAN not accepted
+mobileBKU.rememberPassword=Re&member
+mobileBKU.rememberPasswordNote=If you check this, you will not be prompted for your password again until you re-start PDF-Over
output.file_ask_overwrite=File %s already exists, do you want to overwrite it?
output.link_open_message=You can open the signed file <a>here</a>.
output.link_save_message=You can save the signed file
diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties
index 15b7f337..3ef421c0 100644
--- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties
+++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties
@@ -202,6 +202,8 @@ mobileBKU.show=<a>Signaturdaten anzeigen</a>
mobileBKU.show_tooltip=Zeigt die zu signierenden Daten an
mobileBKU.tan_tries_exceeded=Zu viele TAN-Versuche, neue TAN anfordern?
mobileBKU.wrong_tan=TAN nicht akzeptiert
+mobileBKU.rememberPassword=Daten &merken
+mobileBKU.rememberPasswordNote=Wählen Sie diese Box aus, um bis zum nächsten Start von PDF-Over nicht erneut gefragt zu werden
output.file_ask_overwrite=Datei %s existiert bereits, wollen Sie sie überschreiben?
output.link_open_message=Sie können das signierte Dokument <a>hier</a> öffnen.
output.link_save_message=Sie können das signierte Dokument speichern