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