| 1 |
/******************************************************************************** |
| 2 |
** Form generated from reading UI file 'wateringconfigdialog.ui' |
| 3 |
** |
| 4 |
** Created by: Qt User Interface Compiler version 5.12.0 |
| 5 |
** |
| 6 |
** WARNING! All changes made in this file will be lost when recompiling UI file! |
| 7 |
********************************************************************************/ |
| 8 |
|
| 9 |
#ifndef WATERINGCONFIGDIALOG_H |
| 10 |
#define WATERINGCONFIGDIALOG_H |
| 11 |
|
| 12 |
#include <QtCore/QVariant> |
| 13 |
#include <QtWidgets/QApplication> |
| 14 |
#include <QtWidgets/QCheckBox> |
| 15 |
#include <QtWidgets/QComboBox> |
| 16 |
#include <QtWidgets/QDialog> |
| 17 |
#include <QtWidgets/QDialogButtonBox> |
| 18 |
#include <QtWidgets/QFrame> |
| 19 |
#include <QtWidgets/QGridLayout> |
| 20 |
#include <QtWidgets/QLabel> |
| 21 |
#include <QtWidgets/QSpacerItem> |
| 22 |
#include <QtWidgets/QSpinBox> |
| 23 |
#include <QtWidgets/QTimeEdit> |
| 24 |
#include <QtWidgets/QVBoxLayout> |
| 25 |
#include "helpbrowser.h" |
| 26 |
|
| 27 |
QT_BEGIN_NAMESPACE |
| 28 |
|
| 29 |
class Ui_WateringConfigDialog |
| 30 |
{ |
| 31 |
public: |
| 32 |
QVBoxLayout *vboxLayout; |
| 33 |
QGridLayout *gridLayout; |
| 34 |
QLabel *label_3; |
| 35 |
QComboBox *plantComboBox; |
| 36 |
QSpacerItem *spacerItem; |
| 37 |
QLabel *label_2; |
| 38 |
QCheckBox *temperatureCheckBox; |
| 39 |
QSpacerItem *spacerItem1; |
| 40 |
QSpinBox *temperatureSpinBox; |
| 41 |
QSpacerItem *spacerItem2; |
| 42 |
QCheckBox *rainCheckBox; |
| 43 |
QSpacerItem *spacerItem3; |
| 44 |
QSpinBox *rainSpinBox; |
| 45 |
QSpacerItem *spacerItem4; |
| 46 |
QSpacerItem *spacerItem5; |
| 47 |
QLabel *label; |
| 48 |
QTimeEdit *startTimeEdit; |
| 49 |
QLabel *label_4; |
| 50 |
QSpinBox *amountSpinBox; |
| 51 |
QLabel *label_5; |
| 52 |
QComboBox *sourceComboBox; |
| 53 |
QLabel *label_6; |
| 54 |
QCheckBox *filterCheckBox; |
| 55 |
QSpacerItem *spacerItem6; |
| 56 |
QSpacerItem *spacerItem7; |
| 57 |
QGridLayout *gridLayout1; |
| 58 |
QSpacerItem *spacerItem8; |
| 59 |
HelpBrowser *helpBrowser; |
| 60 |
QLabel *helpLabel; |
| 61 |
QFrame *line; |
| 62 |
QDialogButtonBox *buttonBox; |
| 63 |
|
| 64 |
void setupUi(QDialog *WateringConfigDialog) |
| 65 |
{ |
| 66 |
if (WateringConfigDialog->objectName().isEmpty()) |
| 67 |
WateringConfigDialog->setObjectName(QString::fromUtf8("WateringConfigDialog")); |
| 68 |
WateringConfigDialog->resize(334, 550); |
| 69 |
vboxLayout = new QVBoxLayout(WateringConfigDialog); |
| 70 |
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); |
| 71 |
gridLayout = new QGridLayout(); |
| 72 |
gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
| 73 |
label_3 = new QLabel(WateringConfigDialog); |
| 74 |
label_3->setObjectName(QString::fromUtf8("label_3")); |
| 75 |
|
| 76 |
gridLayout->addWidget(label_3, 0, 0, 1, 1); |
| 77 |
|
| 78 |
plantComboBox = new QComboBox(WateringConfigDialog); |
| 79 |
plantComboBox->addItem(QString()); |
| 80 |
plantComboBox->addItem(QString()); |
| 81 |
plantComboBox->addItem(QString()); |
| 82 |
plantComboBox->addItem(QString()); |
| 83 |
plantComboBox->addItem(QString()); |
| 84 |
plantComboBox->addItem(QString()); |
| 85 |
plantComboBox->setObjectName(QString::fromUtf8("plantComboBox")); |
| 86 |
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); |
| 87 |
sizePolicy.setHorizontalStretch(0); |
| 88 |
sizePolicy.setVerticalStretch(0); |
| 89 |
sizePolicy.setHeightForWidth(plantComboBox->sizePolicy().hasHeightForWidth()); |
| 90 |
plantComboBox->setSizePolicy(sizePolicy); |
| 91 |
|
| 92 |
gridLayout->addWidget(plantComboBox, 0, 1, 1, 3); |
| 93 |
|
| 94 |
spacerItem = new QSpacerItem(67, 16, QSizePolicy::Minimum, QSizePolicy::Fixed); |
| 95 |
|
| 96 |
gridLayout->addItem(spacerItem, 1, 0, 1, 1); |
| 97 |
|
| 98 |
label_2 = new QLabel(WateringConfigDialog); |
| 99 |
label_2->setObjectName(QString::fromUtf8("label_2")); |
| 100 |
|
| 101 |
gridLayout->addWidget(label_2, 2, 0, 1, 1); |
| 102 |
|
| 103 |
temperatureCheckBox = new QCheckBox(WateringConfigDialog); |
| 104 |
temperatureCheckBox->setObjectName(QString::fromUtf8("temperatureCheckBox")); |
| 105 |
|
| 106 |
gridLayout->addWidget(temperatureCheckBox, 3, 1, 1, 3); |
| 107 |
|
| 108 |
spacerItem1 = new QSpacerItem(16, 20, QSizePolicy::Fixed, QSizePolicy::Minimum); |
| 109 |
|
| 110 |
gridLayout->addItem(spacerItem1, 4, 1, 1, 1); |
| 111 |
|
| 112 |
temperatureSpinBox = new QSpinBox(WateringConfigDialog); |
| 113 |
temperatureSpinBox->setObjectName(QString::fromUtf8("temperatureSpinBox")); |
| 114 |
temperatureSpinBox->setEnabled(false); |
| 115 |
temperatureSpinBox->setMinimum(10); |
| 116 |
temperatureSpinBox->setMaximum(60); |
| 117 |
temperatureSpinBox->setValue(20); |
| 118 |
|
| 119 |
gridLayout->addWidget(temperatureSpinBox, 4, 2, 1, 1); |
| 120 |
|
| 121 |
spacerItem2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
| 122 |
|
| 123 |
gridLayout->addItem(spacerItem2, 4, 3, 1, 1); |
| 124 |
|
| 125 |
rainCheckBox = new QCheckBox(WateringConfigDialog); |
| 126 |
rainCheckBox->setObjectName(QString::fromUtf8("rainCheckBox")); |
| 127 |
|
| 128 |
gridLayout->addWidget(rainCheckBox, 5, 1, 1, 3); |
| 129 |
|
| 130 |
spacerItem3 = new QSpacerItem(16, 20, QSizePolicy::Fixed, QSizePolicy::Minimum); |
| 131 |
|
| 132 |
gridLayout->addItem(spacerItem3, 6, 1, 1, 1); |
| 133 |
|
| 134 |
rainSpinBox = new QSpinBox(WateringConfigDialog); |
| 135 |
rainSpinBox->setObjectName(QString::fromUtf8("rainSpinBox")); |
| 136 |
rainSpinBox->setEnabled(false); |
| 137 |
rainSpinBox->setMinimum(1); |
| 138 |
|
| 139 |
gridLayout->addWidget(rainSpinBox, 6, 2, 1, 1); |
| 140 |
|
| 141 |
spacerItem4 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
| 142 |
|
| 143 |
gridLayout->addItem(spacerItem4, 6, 3, 1, 1); |
| 144 |
|
| 145 |
spacerItem5 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed); |
| 146 |
|
| 147 |
gridLayout->addItem(spacerItem5, 7, 2, 1, 1); |
| 148 |
|
| 149 |
label = new QLabel(WateringConfigDialog); |
| 150 |
label->setObjectName(QString::fromUtf8("label")); |
| 151 |
|
| 152 |
gridLayout->addWidget(label, 8, 0, 1, 1); |
| 153 |
|
| 154 |
startTimeEdit = new QTimeEdit(WateringConfigDialog); |
| 155 |
startTimeEdit->setObjectName(QString::fromUtf8("startTimeEdit")); |
| 156 |
|
| 157 |
gridLayout->addWidget(startTimeEdit, 8, 1, 1, 3); |
| 158 |
|
| 159 |
label_4 = new QLabel(WateringConfigDialog); |
| 160 |
label_4->setObjectName(QString::fromUtf8("label_4")); |
| 161 |
|
| 162 |
gridLayout->addWidget(label_4, 9, 0, 1, 1); |
| 163 |
|
| 164 |
amountSpinBox = new QSpinBox(WateringConfigDialog); |
| 165 |
amountSpinBox->setObjectName(QString::fromUtf8("amountSpinBox")); |
| 166 |
amountSpinBox->setMinimum(100); |
| 167 |
amountSpinBox->setMaximum(10000); |
| 168 |
amountSpinBox->setSingleStep(100); |
| 169 |
amountSpinBox->setValue(1000); |
| 170 |
|
| 171 |
gridLayout->addWidget(amountSpinBox, 9, 1, 1, 3); |
| 172 |
|
| 173 |
label_5 = new QLabel(WateringConfigDialog); |
| 174 |
label_5->setObjectName(QString::fromUtf8("label_5")); |
| 175 |
|
| 176 |
gridLayout->addWidget(label_5, 10, 0, 1, 1); |
| 177 |
|
| 178 |
sourceComboBox = new QComboBox(WateringConfigDialog); |
| 179 |
sourceComboBox->addItem(QString()); |
| 180 |
sourceComboBox->addItem(QString()); |
| 181 |
sourceComboBox->addItem(QString()); |
| 182 |
sourceComboBox->addItem(QString()); |
| 183 |
sourceComboBox->setObjectName(QString::fromUtf8("sourceComboBox")); |
| 184 |
|
| 185 |
gridLayout->addWidget(sourceComboBox, 10, 1, 1, 3); |
| 186 |
|
| 187 |
label_6 = new QLabel(WateringConfigDialog); |
| 188 |
label_6->setObjectName(QString::fromUtf8("label_6")); |
| 189 |
|
| 190 |
gridLayout->addWidget(label_6, 11, 0, 1, 1); |
| 191 |
|
| 192 |
filterCheckBox = new QCheckBox(WateringConfigDialog); |
| 193 |
filterCheckBox->setObjectName(QString::fromUtf8("filterCheckBox")); |
| 194 |
|
| 195 |
gridLayout->addWidget(filterCheckBox, 11, 1, 1, 2); |
| 196 |
|
| 197 |
spacerItem6 = new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Fixed); |
| 198 |
|
| 199 |
gridLayout->addItem(spacerItem6, 12, 0, 1, 1); |
| 200 |
|
| 201 |
spacerItem7 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
| 202 |
|
| 203 |
gridLayout->addItem(spacerItem7, 4, 4, 1, 1); |
| 204 |
|
| 205 |
|
| 206 |
vboxLayout->addLayout(gridLayout); |
| 207 |
|
| 208 |
gridLayout1 = new QGridLayout(); |
| 209 |
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1")); |
| 210 |
spacerItem8 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
| 211 |
|
| 212 |
gridLayout1->addItem(spacerItem8, 0, 1, 1, 1); |
| 213 |
|
| 214 |
helpBrowser = new HelpBrowser(WateringConfigDialog); |
| 215 |
helpBrowser->setObjectName(QString::fromUtf8("helpBrowser")); |
| 216 |
|
| 217 |
gridLayout1->addWidget(helpBrowser, 1, 0, 1, 2); |
| 218 |
|
| 219 |
helpLabel = new QLabel(WateringConfigDialog); |
| 220 |
helpLabel->setObjectName(QString::fromUtf8("helpLabel")); |
| 221 |
|
| 222 |
gridLayout1->addWidget(helpLabel, 0, 0, 1, 1); |
| 223 |
|
| 224 |
|
| 225 |
vboxLayout->addLayout(gridLayout1); |
| 226 |
|
| 227 |
line = new QFrame(WateringConfigDialog); |
| 228 |
line->setObjectName(QString::fromUtf8("line")); |
| 229 |
line->setFrameShape(QFrame::HLine); |
| 230 |
line->setFrameShadow(QFrame::Sunken); |
| 231 |
|
| 232 |
vboxLayout->addWidget(line); |
| 233 |
|
| 234 |
buttonBox = new QDialogButtonBox(WateringConfigDialog); |
| 235 |
buttonBox->setObjectName(QString::fromUtf8("buttonBox")); |
| 236 |
buttonBox->setOrientation(Qt::Horizontal); |
| 237 |
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok); |
| 238 |
|
| 239 |
vboxLayout->addWidget(buttonBox); |
| 240 |
|
| 241 |
|
| 242 |
retranslateUi(WateringConfigDialog); |
| 243 |
QObject::connect(buttonBox, SIGNAL(accepted()), WateringConfigDialog, SLOT(accept())); |
| 244 |
QObject::connect(buttonBox, SIGNAL(rejected()), WateringConfigDialog, SLOT(reject())); |
| 245 |
QObject::connect(temperatureCheckBox, SIGNAL(toggled(bool)), temperatureSpinBox, SLOT(setEnabled(bool))); |
| 246 |
QObject::connect(rainCheckBox, SIGNAL(toggled(bool)), rainSpinBox, SLOT(setEnabled(bool))); |
| 247 |
|
| 248 |
QMetaObject::connectSlotsByName(WateringConfigDialog); |
| 249 |
} // setupUi |
| 250 |
|
| 251 |
void retranslateUi(QDialog *WateringConfigDialog) |
| 252 |
{ |
| 253 |
WateringConfigDialog->setWindowTitle(QCoreApplication::translate("WateringConfigDialog", "Watering Configuration", nullptr)); |
| 254 |
label_3->setText(QCoreApplication::translate("WateringConfigDialog", "Plant:", nullptr)); |
| 255 |
plantComboBox->setItemText(0, QCoreApplication::translate("WateringConfigDialog", "Squash", nullptr)); |
| 256 |
plantComboBox->setItemText(1, QCoreApplication::translate("WateringConfigDialog", "Bean", nullptr)); |
| 257 |
plantComboBox->setItemText(2, QCoreApplication::translate("WateringConfigDialog", "Carrot", nullptr)); |
| 258 |
plantComboBox->setItemText(3, QCoreApplication::translate("WateringConfigDialog", "Strawberry", nullptr)); |
| 259 |
plantComboBox->setItemText(4, QCoreApplication::translate("WateringConfigDialog", "Raspberry", nullptr)); |
| 260 |
plantComboBox->setItemText(5, QCoreApplication::translate("WateringConfigDialog", "Blueberry", nullptr)); |
| 261 |
|
| 262 |
label_2->setText(QCoreApplication::translate("WateringConfigDialog", "Water when:", nullptr)); |
| 263 |
temperatureCheckBox->setText(QCoreApplication::translate("WateringConfigDialog", "Temperature is higher than:", nullptr)); |
| 264 |
temperatureSpinBox->setSpecialValueText(QString()); |
| 265 |
temperatureSpinBox->setSuffix(QCoreApplication::translate("WateringConfigDialog", "C", nullptr)); |
| 266 |
rainCheckBox->setText(QCoreApplication::translate("WateringConfigDialog", "Rain less than:", nullptr)); |
| 267 |
rainSpinBox->setSpecialValueText(QString()); |
| 268 |
rainSpinBox->setSuffix(QCoreApplication::translate("WateringConfigDialog", "mm", nullptr)); |
| 269 |
label->setText(QCoreApplication::translate("WateringConfigDialog", "Starting Time:", nullptr)); |
| 270 |
label_4->setText(QCoreApplication::translate("WateringConfigDialog", "Amount:", nullptr)); |
| 271 |
amountSpinBox->setSuffix(QCoreApplication::translate("WateringConfigDialog", "l", nullptr)); |
| 272 |
label_5->setText(QCoreApplication::translate("WateringConfigDialog", "Source:", nullptr)); |
| 273 |
sourceComboBox->setItemText(0, QCoreApplication::translate("WateringConfigDialog", "Foundain", nullptr)); |
| 274 |
sourceComboBox->setItemText(1, QCoreApplication::translate("WateringConfigDialog", "River", nullptr)); |
| 275 |
sourceComboBox->setItemText(2, QCoreApplication::translate("WateringConfigDialog", "Lake", nullptr)); |
| 276 |
sourceComboBox->setItemText(3, QCoreApplication::translate("WateringConfigDialog", "Public Water System", nullptr)); |
| 277 |
|
| 278 |
label_6->setText(QCoreApplication::translate("WateringConfigDialog", "Filter:", nullptr)); |
| 279 |
filterCheckBox->setText(QString()); |
| 280 |
helpLabel->setText(QCoreApplication::translate("WateringConfigDialog", "<a href=\"test\">Show Details</a>", nullptr)); |
| 281 |
} // retranslateUi |
| 282 |
|
| 283 |
}; |
| 284 |
|
| 285 |
namespace Ui { |
| 286 |
class WateringConfigDialog: public Ui_WateringConfigDialog {}; |
| 287 |
} // namespace Ui |
| 288 |
|
| 289 |
QT_END_NAMESPACE |
| 290 |
|
| 291 |
#endif // WATERINGCONFIGDIALOG_H |