From ffb643d3f667ad36de60afac732b66eb400a68bc Mon Sep 17 00:00:00 2001 From: oepen Date: Tue, 20 Jul 2010 18:21:22 +0000 Subject: [PATCH] Added helptexts for some access rights of the eID-function git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@228 96b47cad-a561-4643-ad3b-153ac7d7599c --- pace-gui/src/pace-gui.py | 12 +++++++----- pace-gui/src/pace_gui_globals.py.in | 22 +++++++++++----------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/pace-gui/src/pace-gui.py b/pace-gui/src/pace-gui.py index bf96254..c7d13ff 100644 --- a/pace-gui/src/pace-gui.py +++ b/pace-gui/src/pace-gui.py @@ -38,7 +38,7 @@ class MokoWindow(gtk.Window): self.connect("destroy", gtk.main_quit) #Display resolution of OpenMoko minus height of the SHR toolbar - self.set_size_request(480, 640) + self.set_size_request(480, 586) #self.set_resizable(False) #Main VBox, which consists of the title, the body, and the buttons @@ -111,7 +111,9 @@ class MsgBox(gtk.Dialog): super(MsgBox, self).__init__(title="Foo", parent=parent, flags=flags) - self.set_size_request(240, 120) + #Dialog will be resized to screen width no matter what. Therefore we + #use the whole width from the beginning to avoid being resized + self.set_size_request(480, 160) hbox_top = gtk.HBox() lbl = gtk.Label(msg) @@ -124,12 +126,12 @@ class MsgBox(gtk.Dialog): hbox_top.pack_start(img, False, False) hbox_top.pack_start(lbl, True, True) self.vbox.pack_start(hbox_top) - self.vbox.pack_start(gtk.HSeparator()) + #self.vbox.pack_start(gtk.HSeparator()) hbox_bottom = gtk.HBox() spacer = gtk.Label("") - spacer.set_size_request(170, 20) + spacer.set_size_request(380, 25) hbox_bottom.pack_start(spacer, False, False) - hbox_bottom.pack_start(btn) + hbox_bottom.pack_start(btn, True, True) self.vbox.pack_start(hbox_bottom) #hbox.pack_start(vbox) #self.add(hbox) diff --git a/pace-gui/src/pace_gui_globals.py.in b/pace-gui/src/pace_gui_globals.py.in index 55258ec..3d5a57f 100644 --- a/pace-gui/src/pace_gui_globals.py.in +++ b/pace-gui/src/pace_gui_globals.py.in @@ -16,17 +16,17 @@ FILE_CARD_FOUND = image_dir + "/apply.png" ePA_ATR = "3b:84:80:01:00:00:90:00:95" #The following strings are used as help texts for eID access rights -DOC_AGE_VERIFICATION = "foo" -DOC_COMMUNITY_ID_VERIFICATION = "foo" -DOC_RESTRICTED_ID = "foo" -DOC_PRIVILEGED_TERMINAL = "foo" -DOC_CAN_ALLOWED = "foo" -DOC_PIN_MANAGMENT = "foo" -DOC_INSTALL_CERTIFICATE = "foo" -DOC_INSTALL_QC = "foo" -DOC_DOCUMENT_TYPE = "foo" -DOC_STATE = "foo" -DOC_EXPIRY_DATE = "foo" +DOC_AGE_VERIFICATION = u"Die Altersverifikation erlaubt die Überprüfung, ob ein Nutzer alt genug ist um einen Dienst zu nutzen, ohne sein Geburtsdatum zu übertragen" +DOC_COMMUNITY_ID_VERIFICATION = u"Die Wohnort Verifikation erlaubt die Überprüfung, ob ein Nutzer in einem bestimmten Gebiet wohnt, ohne seine tatsächliche Adresse zu übertragen" +DOC_RESTRICTED_ID = u"Die Pseudonymfunktion macht einen Nutzer für den Dienstanbieter wiedererkennbar, ohne weitere Daten von ihm zu erfassen" +DOC_PRIVILEGED_TERMINAL = u"Ein privilegiertes Terminal darf auf den Kartenindividuellen Schlüssel des Ausweis zugreifen" +DOC_CAN_ALLOWED = u"Das Terminal darf die Funktionen des Ausweises mit der CAN nutzen" +DOC_PIN_MANAGMENT = u"Das Terminal darf die eID-Funktion (de-)aktivieren und eine neue eID-PIN setzen" +DOC_INSTALL_CERTIFICATE = u"Der Dienstanbieter darf ein Zertifikat im Ausweis installieren" +DOC_INSTALL_QC = u"Der Dienstanbieter darf ein qualifiziertes Zertifikat im Ausweis installieren" +DOC_DOCUMENT_TYPE = u"Der Dienstanbieter darf den Dokumenttyp (z.B. Personalausweis oder Aufenthaltstitel) auslesen" +DOC_STATE = u"Der Dienstanbieter darf die Staatzugehörigkeit des Ausweisinhabers lesen" +DOC_EXPIRY_DATE = u"Der Dienstanbieter darf das Ablaufdatum des Ausweises auslesen" IMAGES = { "apply": image_dir + "/apply.png",