changeset 412:340b8759d005

Wording und icons in TrustBridge Administration main window.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 16 Apr 2014 17:21:54 +0200
parents 3132ba0a305d
children 860affe19416
files ui/administratorwindow.cpp ui/icons.qrc
diffstat 2 files changed, 14 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ui/administratorwindow.cpp	Wed Apr 16 14:19:49 2014 +0000
+++ b/ui/administratorwindow.cpp	Wed Apr 16 17:21:54 2014 +0200
@@ -29,6 +29,7 @@
 #include "createcertlistdialog.h"
 
 AdministratorWindow::AdministratorWindow() {
+    setWindowTitle(tr("TrustBridge Administration"));
     QString path = QStandardPaths::locate(
         QStandardPaths::DataLocation, QString("certlist_last.txt"));
     certList.readList(path.toLocal8Bit());
@@ -76,7 +77,8 @@
     QHBoxLayout *bottomLayout = new QHBoxLayout;
 
     // The certificate list
-    QGroupBox *certBox = new QGroupBox(tr("Managed Certificates"));
+    QGroupBox *certBox = new QGroupBox(
+        tr("All managed root certificates of the certificate list:"));
     certificateView = new QTableView;
     certificateModel = new CertificateTabelModel();
     QSortFilterProxyModel *filterModel = new QSortFilterProxyModel(this);
@@ -99,8 +101,9 @@
     QLabel *logo = new QLabel;
     logo->setBackgroundRole(QPalette::Base);
     logo->setPixmap(QPixmap::fromImage(*logoImage));
-    QLabel *title = new QLabel("<h2>" + tr("Administrator Application") + "</h2>");
-    QLabel *subTitle = new QLabel("This Software creates a signed file containing certificates");
+    QLabel *title = new QLabel("<h2>" + tr("TrustBridge Adminstration") + "</h2>");
+    QLabel *subTitle = new QLabel(
+        tr("Management application of the BSI certificate installer"));
     headerTextLayout->addWidget(title);
     headerTextLayout->addWidget(subTitle);
     headerLayout->addWidget(logo);
@@ -110,13 +113,13 @@
 
     // The buttons.
     bottomLayout->setAlignment(Qt::AlignBottom);
-    saveButton = new QPushButton(tr("Save"));
+    saveButton = new QPushButton(QIcon(":/img/document-save.png"), tr("Save list"));
     connect(saveButton, SIGNAL(clicked()), this, SLOT(saveCertificateFile()));
-    loadButton = new QPushButton(tr("Load"));
+    loadButton = new QPushButton(QIcon(":/img/document-open.png"), tr("Load list"));
     connect(loadButton, SIGNAL(clicked()), this, SLOT(loadCertificateFile()));
-    addButton = new QPushButton(tr("Add"));
+    addButton = new QPushButton(QIcon(":/img/document-new.png"), tr("Add certificate"));
     connect(addButton, SIGNAL(clicked()), this, SLOT(addCertificates()));
-    removeButton = new QPushButton(tr("Remove"));
+    removeButton = new QPushButton(QIcon(":/img/document-close.png"), tr("Remove certificate"));
     removeButton->setEnabled(false);
     connect(removeButton, SIGNAL(clicked()), this, SLOT(removeCertificates()));
     bottomLayout->addWidget(saveButton);
--- a/ui/icons.qrc	Wed Apr 16 14:19:49 2014 +0000
+++ b/ui/icons.qrc	Wed Apr 16 17:21:54 2014 +0200
@@ -5,5 +5,9 @@
     <file>img/logo-small.png</file>
     <file>img/list-add.png</file>
     <file>img/list-remove.png</file>
+    <file>img/document-save.png</file>
+    <file>img/document-open.png</file>
+    <file>img/document-new.png</file>
+    <file>img/document-close.png</file>
 </qresource>
 </RCC>

http://wald.intevation.org/projects/trustbridge/