Reinserts original comments
This commit is contained in:
112 files changed
+7113
-5131
No files matched your search
@@ -1,15 +1,15 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// **************************************************************************
|
||||
//
|
||||
// (C) Copyright 2009 Swiss SIMTEC AG
|
||||
//
|
||||
// **************************************************************************
|
||||
//
|
||||
// $HeadURL$
|
||||
// $LastChangedBy$
|
||||
// $LastChangedDate$
|
||||
// $LastChangedRevision$
|
||||
//
|
||||
// **************************************************************************
|
||||
|
||||
#include "LogViewOptionDialog.hpp"
|
||||
#include <QtCore/QCoreApplication>
|
||||
@@ -28,7 +28,7 @@
|
||||
namespace N_LogView
|
||||
{
|
||||
|
||||
|
||||
// static member initialization
|
||||
const QString LogViewOptionDialog::SPEC_FILES = tr("Spezifikations-Dateien (*.x)");
|
||||
const QString LogViewOptionDialog::KRLOG_FILES = tr("Log-Dateien (*.krlog)");
|
||||
const QLatin1String LogViewOptionDialog::SPEC_FILES_GROUP("SpecFiles");
|
||||
@@ -44,13 +44,13 @@ const QLatin1String LogViewOptionDialog::INJECTION_HOSTNAME("InjectionHostname")
|
||||
const QLatin1String LogViewOptionDialog::INJECTION_PORT("InjectionPort");
|
||||
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
LogViewOptionDialog::LogViewOptionDialog(QWidget* a_parent)
|
||||
: QDialog(a_parent)
|
||||
{
|
||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||
|
||||
|
||||
// telegram specification files
|
||||
m_Settings.beginGroup(LogViewOptionDialog::SPEC_FILES_GROUP);
|
||||
QGroupBox* groupBox = new QGroupBox(tr("Telegramm-Spezifikations-Dateien"), this);
|
||||
layout->addWidget(groupBox);
|
||||
@@ -81,7 +81,7 @@ LogViewOptionDialog::LogViewOptionDialog(QWidget* a_parent)
|
||||
groupBox->setLayout(groupLayout);
|
||||
m_Settings.endGroup();
|
||||
|
||||
|
||||
// injection
|
||||
m_Settings.beginGroup(LogViewOptionDialog::INJECTION_GROUP);
|
||||
groupBox = new QGroupBox(tr("Telegram Injection Server"), this);
|
||||
layout->addWidget(groupBox);
|
||||
@@ -102,18 +102,18 @@ LogViewOptionDialog::LogViewOptionDialog(QWidget* a_parent)
|
||||
groupBox->setLayout(injectLayout);
|
||||
m_Settings.endGroup();
|
||||
|
||||
|
||||
// buttons
|
||||
layout->addStretch();
|
||||
QDialogButtonBox* buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
connect(buttonBox, &QDialogButtonBox::accepted, this, &LogViewOptionDialog::save);
|
||||
connect(buttonBox, &QDialogButtonBox::rejected, this, &LogViewOptionDialog::reject);
|
||||
layout->addWidget(buttonBox);
|
||||
|
||||
|
||||
//setLayout(layout);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
void LogViewOptionDialog::browseP0File()
|
||||
{
|
||||
QString newFilename = QFileDialog::getOpenFileName(this,
|
||||
@@ -131,7 +131,7 @@ void LogViewOptionDialog::browseP0File()
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
void LogViewOptionDialog::browseP5File()
|
||||
{
|
||||
QString newFilename = QFileDialog::getOpenFileName(this, tr("Protokollkonverter - TETRA Spezifikations-Datei"), m_Settings.value(DIR).toString(), SPEC_FILES);
|
||||
@@ -145,13 +145,13 @@ void LogViewOptionDialog::browseP5File()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
void LogViewOptionDialog::save()
|
||||
{
|
||||
uint32_t changedFlags = 0;
|
||||
|
||||
|
||||
|
||||
// check group wise for changes
|
||||
// specification files
|
||||
m_Settings.beginGroup(LogViewOptionDialog::SPEC_FILES_GROUP);
|
||||
QString string = m_Settings.value(P0_FILENAME).toString();
|
||||
if ((string != m_P0Edit->text()) ||
|
||||
@@ -163,7 +163,7 @@ void LogViewOptionDialog::save()
|
||||
}
|
||||
m_Settings.endGroup();
|
||||
|
||||
|
||||
// injection settings
|
||||
m_Settings.beginGroup(LogViewOptionDialog::INJECTION_GROUP);
|
||||
if ((m_Settings.value(INJECTION_HOSTNAME).toString() != m_InjectHostnameEdit->text()) ||
|
||||
(m_Settings.value(INJECTION_PORT).toString() != m_InjectPortEdit->text()))
|
||||
@@ -179,4 +179,4 @@ void LogViewOptionDialog::save()
|
||||
accept();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace N_LogView
|
||||
Reference in new issue
Block a user