rrenkert@211: #include "statusdialog.h"
rrenkert@211: #include <QDebug>
rrenkert@211: #include <QVBoxLayout>
rrenkert@211: #include <QTextEdit>
rrenkert@211: #include <QPushButton>
rrenkert@211: 
rrenkert@211: StatusDialog::StatusDialog(QMainWindow *parent) :
rrenkert@211:     QDialog(parent)
rrenkert@211: {
rrenkert@211:     setupGUI();
rrenkert@211: }
rrenkert@211: 
rrenkert@211: void StatusDialog::setupGUI()
rrenkert@211: {
rrenkert@211:     QVBoxLayout *mainLayout = new QVBoxLayout(this);
rrenkert@211:     QTextEdit *helpText = new QTextEdit;
rrenkert@211:     helpText->setReadOnly(true);
rrenkert@211:     QString dummyText = tr("The following certificates are successfully installed:\r");
rrenkert@211:     dummyText.append(tr("* Email CA 2013\r"));
rrenkert@211:     dummyText.append(tr("* Server CA 2010\r"));
rrenkert@211:     dummyText.append(tr("\rThe following certificates are successfully removed:\r"));
rrenkert@211:     dummyText.append(tr("* Email CA 2010\r"));
rrenkert@211:     dummyText.append(tr("\rErrors while processing certificates:\r"));
rrenkert@211:     dummyText.append(tr("* PCA-1-Verwaltung-08\r"));
rrenkert@211:     helpText->setPlainText(dummyText);
rrenkert@211: 
rrenkert@211:     QHBoxLayout *buttonLayout = new QHBoxLayout;
rrenkert@211:     QPushButton *closeButton = new QPushButton(tr("Close"));
rrenkert@211:     connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
rrenkert@211:     buttonLayout->insertStretch(0, 10);
rrenkert@211:     buttonLayout->addWidget(closeButton);
rrenkert@211: 
rrenkert@211:     mainLayout->addWidget(helpText);
rrenkert@211:     mainLayout->addLayout(buttonLayout);
rrenkert@211: }