Commit 4a743fe0 authored by Lucio Zambon's avatar Lucio Zambon
Browse files

Initial import

parent 5136b0cc
/********************************************************************************
** Form generated from reading UI file 'vacuumcond.ui'
**
** Created: Thu Jan 3 10:21:53 2019
** by: Qt User Interface Compiler version 4.8.4
** Created by: Qt User Interface Compiler version 5.11.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
......@@ -11,15 +10,13 @@
#define UI_VACUUMCOND_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDialog>
#include <QtGui/QGridLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QIcon>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include "ELabel"
#include "MyPlot.h"
#include "TLabel"
......@@ -65,7 +62,7 @@ public:
void setupUi(QDialog *vacuumcond)
{
if (vacuumcond->objectName().isEmpty())
vacuumcond->setObjectName(QString::fromUtf8("vacuumcond"));
vacuumcond->setObjectName(QStringLiteral("vacuumcond"));
vacuumcond->resize(900, 600);
QPalette palette;
QBrush brush(QColor(255, 255, 255, 255));
......@@ -82,9 +79,9 @@ public:
gridLayout = new QGridLayout(vacuumcond);
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(11, 11, 11, 11);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
gridLayout->setObjectName(QStringLiteral("gridLayout"));
label_logo = new QLabel(vacuumcond);
label_logo->setObjectName(QString::fromUtf8("label_logo"));
label_logo->setObjectName(QStringLiteral("label_logo"));
QFont font;
font.setPointSize(12);
font.setBold(true);
......@@ -95,7 +92,7 @@ public:
gridLayout->addWidget(label_logo, 0, 0, 1, 2);
MDK_Label = new QLabel(vacuumcond);
MDK_Label->setObjectName(QString::fromUtf8("MDK_Label"));
MDK_Label->setObjectName(QStringLiteral("MDK_Label"));
QPalette palette1;
QBrush brush2(QColor(0, 65, 136, 255));
brush2.setStyle(Qt::SolidPattern);
......@@ -106,7 +103,7 @@ public:
palette1.setBrush(QPalette::Disabled, QPalette::WindowText, brush3);
MDK_Label->setPalette(palette1);
QFont font1;
font1.setFamily(QString::fromUtf8("Sans Serif"));
font1.setFamily(QStringLiteral("Sans Serif"));
font1.setPointSize(20);
font1.setBold(true);
font1.setItalic(false);
......@@ -119,12 +116,12 @@ public:
gridLayout->addWidget(MDK_Label, 0, 2, 1, 1);
mainplot = new MyPlot(vacuumcond);
mainplot->setObjectName(QString::fromUtf8("mainplot"));
mainplot->setObjectName(QStringLiteral("mainplot"));
gridLayout->addWidget(mainplot, 0, 3, 16, 1);
section_label = new TSimpleLabel(vacuumcond);
section_label->setObjectName(QString::fromUtf8("section_label"));
section_label->setObjectName(QStringLiteral("section_label"));
section_label->setMinimumSize(QSize(0, 20));
section_label->setFont(font);
section_label->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
......@@ -132,7 +129,7 @@ public:
gridLayout->addWidget(section_label, 1, 0, 1, 2);
label_pressure_2 = new TSimpleLabel(vacuumcond);
label_pressure_2->setObjectName(QString::fromUtf8("label_pressure_2"));
label_pressure_2->setObjectName(QStringLiteral("label_pressure_2"));
label_pressure_2->setMinimumSize(QSize(0, 20));
QFont font2;
font2.setPointSize(12);
......@@ -144,7 +141,7 @@ public:
gridLayout->addWidget(label_pressure_2, 2, 0, 1, 2);
label_1 = new TSimpleLabel(vacuumcond);
label_1->setObjectName(QString::fromUtf8("label_1"));
label_1->setObjectName(QStringLiteral("label_1"));
label_1->setMinimumSize(QSize(0, 35));
QFont font3;
font3.setPointSize(15);
......@@ -156,7 +153,7 @@ public:
gridLayout->addWidget(label_1, 3, 0, 1, 3);
color_1 = new QLabel(vacuumcond);
color_1->setObjectName(QString::fromUtf8("color_1"));
color_1->setObjectName(QStringLiteral("color_1"));
color_1->setMinimumSize(QSize(25, 0));
color_1->setMaximumSize(QSize(50, 16777215));
QPalette palette2;
......@@ -174,7 +171,7 @@ public:
gridLayout->addWidget(color_1, 4, 0, 1, 1);
value_1 = new TLabel(vacuumcond);
value_1->setObjectName(QString::fromUtf8("value_1"));
value_1->setObjectName(QStringLiteral("value_1"));
value_1->setMinimumSize(QSize(120, 28));
value_1->setFont(font3);
value_1->setProperty("forceNoUnit", QVariant(true));
......@@ -182,18 +179,18 @@ public:
gridLayout->addWidget(value_1, 4, 1, 1, 1);
InfoButton_1 = new QPushButton(vacuumcond);
InfoButton_1->setObjectName(QString::fromUtf8("InfoButton_1"));
InfoButton_1->setObjectName(QStringLiteral("InfoButton_1"));
InfoButton_1->setMinimumSize(QSize(20, 21));
InfoButton_1->setMaximumSize(QSize(20, 21));
QIcon icon;
icon.addFile(QString::fromUtf8("../../../../../../../../../../accesscontrol/acs/img/info.png"), QSize(), QIcon::Normal, QIcon::Off);
icon.addFile(QStringLiteral("../../../../../../../../../../accesscontrol/acs/img/info.png"), QSize(), QIcon::Normal, QIcon::Off);
InfoButton_1->setIcon(icon);
InfoButton_1->setIconSize(QSize(20, 21));
gridLayout->addWidget(InfoButton_1, 4, 2, 1, 1);
label_2 = new TSimpleLabel(vacuumcond);
label_2->setObjectName(QString::fromUtf8("label_2"));
label_2->setObjectName(QStringLiteral("label_2"));
label_2->setMinimumSize(QSize(0, 35));
label_2->setFont(font3);
label_2->setAlignment(Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing);
......@@ -201,7 +198,7 @@ public:
gridLayout->addWidget(label_2, 5, 0, 1, 3);
color_2 = new QLabel(vacuumcond);
color_2->setObjectName(QString::fromUtf8("color_2"));
color_2->setObjectName(QStringLiteral("color_2"));
color_2->setMinimumSize(QSize(25, 0));
color_2->setMaximumSize(QSize(60, 16777215));
QPalette palette3;
......@@ -219,7 +216,7 @@ public:
gridLayout->addWidget(color_2, 6, 0, 1, 1);
value_2 = new TLabel(vacuumcond);
value_2->setObjectName(QString::fromUtf8("value_2"));
value_2->setObjectName(QStringLiteral("value_2"));
value_2->setMinimumSize(QSize(120, 28));
value_2->setFont(font3);
value_2->setProperty("forceNoUnit", QVariant(true));
......@@ -227,7 +224,7 @@ public:
gridLayout->addWidget(value_2, 6, 1, 1, 1);
InfoButton_2 = new QPushButton(vacuumcond);
InfoButton_2->setObjectName(QString::fromUtf8("InfoButton_2"));
InfoButton_2->setObjectName(QStringLiteral("InfoButton_2"));
InfoButton_2->setMinimumSize(QSize(20, 21));
InfoButton_2->setMaximumSize(QSize(20, 21));
InfoButton_2->setIcon(icon);
......@@ -236,7 +233,7 @@ public:
gridLayout->addWidget(InfoButton_2, 6, 2, 1, 1);
label_3 = new TSimpleLabel(vacuumcond);
label_3->setObjectName(QString::fromUtf8("label_3"));
label_3->setObjectName(QStringLiteral("label_3"));
label_3->setMinimumSize(QSize(0, 35));
label_3->setFont(font3);
label_3->setAlignment(Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing);
......@@ -244,7 +241,7 @@ public:
gridLayout->addWidget(label_3, 7, 0, 1, 3);
color_3 = new QLabel(vacuumcond);
color_3->setObjectName(QString::fromUtf8("color_3"));
color_3->setObjectName(QStringLiteral("color_3"));
color_3->setMinimumSize(QSize(25, 0));
color_3->setMaximumSize(QSize(60, 16777215));
QPalette palette4;
......@@ -262,7 +259,7 @@ public:
gridLayout->addWidget(color_3, 8, 0, 1, 1);
value_3 = new TLabel(vacuumcond);
value_3->setObjectName(QString::fromUtf8("value_3"));
value_3->setObjectName(QStringLiteral("value_3"));
value_3->setMinimumSize(QSize(120, 28));
value_3->setFont(font3);
value_3->setProperty("forceNoUnit", QVariant(true));
......@@ -270,7 +267,7 @@ public:
gridLayout->addWidget(value_3, 8, 1, 1, 1);
InfoButton_3 = new QPushButton(vacuumcond);
InfoButton_3->setObjectName(QString::fromUtf8("InfoButton_3"));
InfoButton_3->setObjectName(QStringLiteral("InfoButton_3"));
InfoButton_3->setMinimumSize(QSize(20, 21));
InfoButton_3->setMaximumSize(QSize(20, 21));
InfoButton_3->setIcon(icon);
......@@ -279,7 +276,7 @@ public:
gridLayout->addWidget(InfoButton_3, 8, 2, 1, 1);
label_4 = new TSimpleLabel(vacuumcond);
label_4->setObjectName(QString::fromUtf8("label_4"));
label_4->setObjectName(QStringLiteral("label_4"));
label_4->setMinimumSize(QSize(0, 35));
label_4->setFont(font3);
label_4->setAlignment(Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing);
......@@ -287,7 +284,7 @@ public:
gridLayout->addWidget(label_4, 9, 0, 1, 3);
color_4 = new QLabel(vacuumcond);
color_4->setObjectName(QString::fromUtf8("color_4"));
color_4->setObjectName(QStringLiteral("color_4"));
color_4->setMinimumSize(QSize(25, 0));
color_4->setMaximumSize(QSize(60, 16777215));
QPalette palette5;
......@@ -305,7 +302,7 @@ public:
gridLayout->addWidget(color_4, 10, 0, 1, 1);
value_4 = new TLabel(vacuumcond);
value_4->setObjectName(QString::fromUtf8("value_4"));
value_4->setObjectName(QStringLiteral("value_4"));
value_4->setMinimumSize(QSize(120, 28));
value_4->setFont(font3);
value_4->setProperty("forceNoUnit", QVariant(true));
......@@ -313,7 +310,7 @@ public:
gridLayout->addWidget(value_4, 10, 1, 1, 1);
InfoButton_4 = new QPushButton(vacuumcond);
InfoButton_4->setObjectName(QString::fromUtf8("InfoButton_4"));
InfoButton_4->setObjectName(QStringLiteral("InfoButton_4"));
InfoButton_4->setMinimumSize(QSize(20, 21));
InfoButton_4->setMaximumSize(QSize(20, 21));
InfoButton_4->setIcon(icon);
......@@ -322,7 +319,7 @@ public:
gridLayout->addWidget(InfoButton_4, 10, 2, 1, 1);
label_5 = new TSimpleLabel(vacuumcond);
label_5->setObjectName(QString::fromUtf8("label_5"));
label_5->setObjectName(QStringLiteral("label_5"));
label_5->setMinimumSize(QSize(0, 35));
label_5->setFont(font3);
label_5->setAlignment(Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing);
......@@ -330,7 +327,7 @@ public:
gridLayout->addWidget(label_5, 11, 0, 1, 3);
color_5 = new QLabel(vacuumcond);
color_5->setObjectName(QString::fromUtf8("color_5"));
color_5->setObjectName(QStringLiteral("color_5"));
color_5->setMinimumSize(QSize(25, 0));
color_5->setMaximumSize(QSize(60, 16777215));
QPalette palette6;
......@@ -348,7 +345,7 @@ public:
gridLayout->addWidget(color_5, 12, 0, 1, 1);
value_5 = new TLabel(vacuumcond);
value_5->setObjectName(QString::fromUtf8("value_5"));
value_5->setObjectName(QStringLiteral("value_5"));
value_5->setMinimumSize(QSize(120, 28));
value_5->setFont(font3);
value_5->setProperty("forceNoUnit", QVariant(true));
......@@ -356,7 +353,7 @@ public:
gridLayout->addWidget(value_5, 12, 1, 1, 1);
InfoButton_5 = new QPushButton(vacuumcond);
InfoButton_5->setObjectName(QString::fromUtf8("InfoButton_5"));
InfoButton_5->setObjectName(QStringLiteral("InfoButton_5"));
InfoButton_5->setMinimumSize(QSize(20, 21));
InfoButton_5->setMaximumSize(QSize(20, 21));
InfoButton_5->setIcon(icon);
......@@ -365,7 +362,7 @@ public:
gridLayout->addWidget(InfoButton_5, 12, 2, 1, 1);
label_6 = new TSimpleLabel(vacuumcond);
label_6->setObjectName(QString::fromUtf8("label_6"));
label_6->setObjectName(QStringLiteral("label_6"));
label_6->setMinimumSize(QSize(0, 35));
label_6->setFont(font3);
label_6->setAlignment(Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing);
......@@ -373,7 +370,7 @@ public:
gridLayout->addWidget(label_6, 13, 0, 1, 3);
color_6 = new QLabel(vacuumcond);
color_6->setObjectName(QString::fromUtf8("color_6"));
color_6->setObjectName(QStringLiteral("color_6"));
color_6->setMinimumSize(QSize(25, 0));
color_6->setMaximumSize(QSize(60, 16777215));
QPalette palette7;
......@@ -391,7 +388,7 @@ public:
gridLayout->addWidget(color_6, 14, 0, 1, 1);
value_6 = new TLabel(vacuumcond);
value_6->setObjectName(QString::fromUtf8("value_6"));
value_6->setObjectName(QStringLiteral("value_6"));
value_6->setMinimumSize(QSize(120, 28));
value_6->setFont(font3);
value_6->setProperty("forceNoUnit", QVariant(true));
......@@ -399,7 +396,7 @@ public:
gridLayout->addWidget(value_6, 14, 1, 1, 1);
InfoButton_6 = new QPushButton(vacuumcond);
InfoButton_6->setObjectName(QString::fromUtf8("InfoButton_6"));
InfoButton_6->setObjectName(QStringLiteral("InfoButton_6"));
InfoButton_6->setMinimumSize(QSize(20, 21));
InfoButton_6->setMaximumSize(QSize(20, 21));
InfoButton_6->setIcon(icon);
......@@ -419,9 +416,9 @@ public:
void retranslateUi(QDialog *vacuumcond)
{
vacuumcond->setWindowTitle(QApplication::translate("vacuumcond", "Vacuum Pumps", 0, QApplication::UnicodeUTF8));
MDK_Label->setText(QApplication::translate("vacuumcond", "K ", 0, QApplication::UnicodeUTF8));
label_pressure_2->setText(QApplication::translate("vacuumcond", " pressures [mbar]", 0, QApplication::UnicodeUTF8));
vacuumcond->setWindowTitle(QApplication::translate("vacuumcond", "Vacuum Pumps", nullptr));
MDK_Label->setText(QApplication::translate("vacuumcond", "K ", nullptr));
label_pressure_2->setText(QApplication::translate("vacuumcond", " pressures [mbar]", nullptr));
color_1->setText(QString());
color_2->setText(QString());
color_3->setText(QString());
......
......@@ -251,9 +251,11 @@ vacuumcond::vacuumcond(QWidget *parent) : QDialog(parent)
// connect to database
// QString host = "srv-log-srf-01.fcs";
QString host = "srv-log-srf-02.fcs";
QString user = "hdbpprw";
QString pass = "passwd_hdbpprw";
// QString host = "srv-log-srf-02.fcs";
// QString host = "fcslog-replica-01.elettra.eu";
QString host = "srv-db-srf-01";
QString user = "hdbppro";
QString pass = "hdbppro";
QString db = "hdbpp";
unsigned short port = 3306;
hdbxp->connect(dbt, host, db, user, pass, port);
......@@ -342,6 +344,7 @@ void vacuumcond::onDatabaseError(const QString &message)
void vacuumcond::fetchHistoricalData(bool connected)
{
/*
QHdbextractorProxy *hdbxp = findChild<QHdbextractorProxy *>();
if(connected) {
// start date
......@@ -354,6 +357,7 @@ void vacuumcond::fetchHistoricalData(bool connected)
}
else
perr("vacuumcond::fetchHistoricalData: database connection failed: %s", hdbxp->getHdbExtractor()->getErrorMessage());
*/
}
// ====== hdbpp extraction end ======
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment