[PATCH 1 of 7] Wording und icons in TrustBridge Administration main window

Wald Commits scm-commit at wald.intevation.org
Thu Apr 17 09:30:15 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1397661714 -7200
# Node ID 340b8759d005f9f95d17dd10c28d48eaa4172b20
# Parent  3132ba0a305df9a6d9928fd81a8afe089c2ca5d9
Wording und icons in TrustBridge Administration main window.

diff -r 3132ba0a305d -r 340b8759d005 ui/administratorwindow.cpp
--- 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);
diff -r 3132ba0a305d -r 340b8759d005 ui/icons.qrc
--- 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>


More information about the Trustbridge-commits mailing list