Classified ads
ui_settingsDialog.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'settingsDialog.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.9.1
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef UI_SETTINGSDIALOG_H
10 #define UI_SETTINGSDIALOG_H
11 
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QComboBox>
17 #include <QtWidgets/QDialog>
18 #include <QtWidgets/QDialogButtonBox>
19 #include <QtWidgets/QGridLayout>
20 #include <QtWidgets/QHBoxLayout>
21 #include <QtWidgets/QHeaderView>
22 #include <QtWidgets/QLabel>
23 #include <QtWidgets/QLineEdit>
24 #include <QtWidgets/QSpinBox>
25 #include <QtWidgets/QVBoxLayout>
26 
27 QT_BEGIN_NAMESPACE
28 
30 {
31 public:
32  QGridLayout *gridLayout;
33  QVBoxLayout *verticalLayout;
34  QHBoxLayout *subjectLayout;
35  QLabel *portLabel;
36  QSpinBox *portEdit;
37  QHBoxLayout *contactEditLayout;
38  QLabel *dnsNameLabel;
39  QLineEdit *dnsNameEdit;
40  QLabel *label;
41  QHBoxLayout *nrProfilesLayout;
43  QSpinBox *nrProfilesEdit;
44  QHBoxLayout *nrMessagesLayout;
45  QLabel *nrMessageLabel;
46  QSpinBox *nrMessagesEdit;
47  QHBoxLayout *nrBinaryFilesLayout;
49  QSpinBox *nrBinaryFilesEdit;
50  QHBoxLayout *nrAdsLayout;
51  QLabel *nrAdsLabel;
52  QSpinBox *nrAdsEdit;
53  QHBoxLayout *nrCommenstLayout;
54  QLabel *nrCommentsLabel;
55  QSpinBox *nrCommenstEdit;
56  QHBoxLayout *nrOfDbRecordsLayout;
58  QSpinBox *nrDbRecordsEdit;
59  QHBoxLayout *horizontalLayout;
60  QLabel *ringtoneLabel;
61  QComboBox *ringtoneComboBox;
62  QHBoxLayout *callAcceptanceLayout;
65  QDialogButtonBox *bottomButtonsBox;
66 
67  void setupUi(QDialog *settingsDialog)
68  {
69  if (settingsDialog->objectName().isEmpty())
70  settingsDialog->setObjectName(QStringLiteral("settingsDialog"));
71  settingsDialog->resize(400, 536);
72  QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::MinimumExpanding);
73  sizePolicy.setHorizontalStretch(0);
74  sizePolicy.setVerticalStretch(0);
75  sizePolicy.setHeightForWidth(settingsDialog->sizePolicy().hasHeightForWidth());
76  settingsDialog->setSizePolicy(sizePolicy);
77  settingsDialog->setMinimumSize(QSize(0, 0));
78  settingsDialog->setSizeGripEnabled(true);
79  gridLayout = new QGridLayout(settingsDialog);
80  gridLayout->setObjectName(QStringLiteral("gridLayout"));
81  verticalLayout = new QVBoxLayout();
82  verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
83  subjectLayout = new QHBoxLayout();
84  subjectLayout->setObjectName(QStringLiteral("subjectLayout"));
85  portLabel = new QLabel(settingsDialog);
86  portLabel->setObjectName(QStringLiteral("portLabel"));
87 
88  subjectLayout->addWidget(portLabel);
89 
90  portEdit = new QSpinBox(settingsDialog);
91  portEdit->setObjectName(QStringLiteral("portEdit"));
92  portEdit->setMinimumSize(QSize(100, 0));
93  portEdit->setMaximumSize(QSize(100, 16777215));
94  portEdit->setLayoutDirection(Qt::LeftToRight);
95  portEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
96  portEdit->setMinimum(1);
97  portEdit->setMaximum(65535);
98  portEdit->setValue(30000);
99 
100  subjectLayout->addWidget(portEdit);
101 
102 
103  verticalLayout->addLayout(subjectLayout);
104 
105  contactEditLayout = new QHBoxLayout();
106  contactEditLayout->setObjectName(QStringLiteral("contactEditLayout"));
107  dnsNameLabel = new QLabel(settingsDialog);
108  dnsNameLabel->setObjectName(QStringLiteral("dnsNameLabel"));
109 
110  contactEditLayout->addWidget(dnsNameLabel);
111 
112  dnsNameEdit = new QLineEdit(settingsDialog);
113  dnsNameEdit->setObjectName(QStringLiteral("dnsNameEdit"));
114  dnsNameEdit->setMaxLength(255);
115 
116  contactEditLayout->addWidget(dnsNameEdit);
117 
118 
119  verticalLayout->addLayout(contactEditLayout);
120 
121  label = new QLabel(settingsDialog);
122  label->setObjectName(QStringLiteral("label"));
123 
124  verticalLayout->addWidget(label);
125 
126  nrProfilesLayout = new QHBoxLayout();
127  nrProfilesLayout->setObjectName(QStringLiteral("nrProfilesLayout"));
128  nrProfilesLayout->setContentsMargins(-1, 0, -1, -1);
129  nrProfileToKeepLabel = new QLabel(settingsDialog);
130  nrProfileToKeepLabel->setObjectName(QStringLiteral("nrProfileToKeepLabel"));
131 
132  nrProfilesLayout->addWidget(nrProfileToKeepLabel);
133 
134  nrProfilesEdit = new QSpinBox(settingsDialog);
135  nrProfilesEdit->setObjectName(QStringLiteral("nrProfilesEdit"));
136  nrProfilesEdit->setMinimumSize(QSize(100, 0));
137  nrProfilesEdit->setMaximumSize(QSize(100, 16777215));
138  nrProfilesEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
139  nrProfilesEdit->setMinimum(1000);
140  nrProfilesEdit->setMaximum(1000000);
141  nrProfilesEdit->setSingleStep(1000);
142 
143  nrProfilesLayout->addWidget(nrProfilesEdit);
144 
145 
146  verticalLayout->addLayout(nrProfilesLayout);
147 
148  nrMessagesLayout = new QHBoxLayout();
149  nrMessagesLayout->setObjectName(QStringLiteral("nrMessagesLayout"));
150  nrMessageLabel = new QLabel(settingsDialog);
151  nrMessageLabel->setObjectName(QStringLiteral("nrMessageLabel"));
152 
153  nrMessagesLayout->addWidget(nrMessageLabel);
154 
155  nrMessagesEdit = new QSpinBox(settingsDialog);
156  nrMessagesEdit->setObjectName(QStringLiteral("nrMessagesEdit"));
157  nrMessagesEdit->setMinimumSize(QSize(100, 0));
158  nrMessagesEdit->setMaximumSize(QSize(100, 16777215));
159  nrMessagesEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
160  nrMessagesEdit->setMinimum(1000);
161  nrMessagesEdit->setMaximum(1000000);
162  nrMessagesEdit->setSingleStep(1000);
163 
164  nrMessagesLayout->addWidget(nrMessagesEdit);
165 
166 
167  verticalLayout->addLayout(nrMessagesLayout);
168 
169  nrBinaryFilesLayout = new QHBoxLayout();
170  nrBinaryFilesLayout->setObjectName(QStringLiteral("nrBinaryFilesLayout"));
171  nrBinaryFilesLabel = new QLabel(settingsDialog);
172  nrBinaryFilesLabel->setObjectName(QStringLiteral("nrBinaryFilesLabel"));
173 
174  nrBinaryFilesLayout->addWidget(nrBinaryFilesLabel);
175 
176  nrBinaryFilesEdit = new QSpinBox(settingsDialog);
177  nrBinaryFilesEdit->setObjectName(QStringLiteral("nrBinaryFilesEdit"));
178  nrBinaryFilesEdit->setMinimumSize(QSize(100, 0));
179  nrBinaryFilesEdit->setMaximumSize(QSize(100, 16777215));
180  nrBinaryFilesEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
181  nrBinaryFilesEdit->setMinimum(1000);
182  nrBinaryFilesEdit->setMaximum(100000);
183  nrBinaryFilesEdit->setSingleStep(1000);
184 
185  nrBinaryFilesLayout->addWidget(nrBinaryFilesEdit);
186 
187 
188  verticalLayout->addLayout(nrBinaryFilesLayout);
189 
190  nrAdsLayout = new QHBoxLayout();
191  nrAdsLayout->setObjectName(QStringLiteral("nrAdsLayout"));
192  nrAdsLabel = new QLabel(settingsDialog);
193  nrAdsLabel->setObjectName(QStringLiteral("nrAdsLabel"));
194 
195  nrAdsLayout->addWidget(nrAdsLabel);
196 
197  nrAdsEdit = new QSpinBox(settingsDialog);
198  nrAdsEdit->setObjectName(QStringLiteral("nrAdsEdit"));
199  nrAdsEdit->setMinimumSize(QSize(100, 0));
200  nrAdsEdit->setMaximumSize(QSize(100, 16777215));
201  nrAdsEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
202  nrAdsEdit->setMinimum(1000);
203  nrAdsEdit->setMaximum(100000);
204  nrAdsEdit->setSingleStep(1000);
205 
206  nrAdsLayout->addWidget(nrAdsEdit);
207 
208 
209  verticalLayout->addLayout(nrAdsLayout);
210 
211  nrCommenstLayout = new QHBoxLayout();
212  nrCommenstLayout->setObjectName(QStringLiteral("nrCommenstLayout"));
213  nrCommentsLabel = new QLabel(settingsDialog);
214  nrCommentsLabel->setObjectName(QStringLiteral("nrCommentsLabel"));
215 
216  nrCommenstLayout->addWidget(nrCommentsLabel);
217 
218  nrCommenstEdit = new QSpinBox(settingsDialog);
219  nrCommenstEdit->setObjectName(QStringLiteral("nrCommenstEdit"));
220  nrCommenstEdit->setMinimumSize(QSize(100, 0));
221  nrCommenstEdit->setMaximumSize(QSize(100, 16777215));
222  nrCommenstEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
223  nrCommenstEdit->setMinimum(1000);
224  nrCommenstEdit->setMaximum(100000);
225  nrCommenstEdit->setSingleStep(1000);
226 
227  nrCommenstLayout->addWidget(nrCommenstEdit);
228 
229 
230  verticalLayout->addLayout(nrCommenstLayout);
231 
232  nrOfDbRecordsLayout = new QHBoxLayout();
233  nrOfDbRecordsLayout->setObjectName(QStringLiteral("nrOfDbRecordsLayout"));
234  nrDbRecordsToKeepLabel = new QLabel(settingsDialog);
235  nrDbRecordsToKeepLabel->setObjectName(QStringLiteral("nrDbRecordsToKeepLabel"));
236 
237  nrOfDbRecordsLayout->addWidget(nrDbRecordsToKeepLabel);
238 
239  nrDbRecordsEdit = new QSpinBox(settingsDialog);
240  nrDbRecordsEdit->setObjectName(QStringLiteral("nrDbRecordsEdit"));
241  nrDbRecordsEdit->setMaximumSize(QSize(100, 16777215));
242  nrDbRecordsEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
243  nrDbRecordsEdit->setMinimum(1000);
244  nrDbRecordsEdit->setMaximum(1000000);
245  nrDbRecordsEdit->setSingleStep(1000);
246 
247  nrOfDbRecordsLayout->addWidget(nrDbRecordsEdit);
248 
249 
250  verticalLayout->addLayout(nrOfDbRecordsLayout);
251 
252  horizontalLayout = new QHBoxLayout();
253  horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
254  horizontalLayout->setContentsMargins(-1, 0, -1, -1);
255  ringtoneLabel = new QLabel(settingsDialog);
256  ringtoneLabel->setObjectName(QStringLiteral("ringtoneLabel"));
257 
258  horizontalLayout->addWidget(ringtoneLabel);
259 
260  ringtoneComboBox = new QComboBox(settingsDialog);
261  ringtoneComboBox->setObjectName(QStringLiteral("ringtoneComboBox"));
262 
263  horizontalLayout->addWidget(ringtoneComboBox);
264 
265 
266  verticalLayout->addLayout(horizontalLayout);
267 
268  callAcceptanceLayout = new QHBoxLayout();
269  callAcceptanceLayout->setObjectName(QStringLiteral("callAcceptanceLayout"));
270  callAcceptanceLabel = new QLabel(settingsDialog);
271  callAcceptanceLabel->setObjectName(QStringLiteral("callAcceptanceLabel"));
272 
273  callAcceptanceLayout->addWidget(callAcceptanceLabel);
274 
275  callAcceptanceComboBox = new QComboBox(settingsDialog);
276  callAcceptanceComboBox->setObjectName(QStringLiteral("callAcceptanceComboBox"));
277 
278  callAcceptanceLayout->addWidget(callAcceptanceComboBox);
279 
280 
281  verticalLayout->addLayout(callAcceptanceLayout);
282 
283  bottomButtonsBox = new QDialogButtonBox(settingsDialog);
284  bottomButtonsBox->setObjectName(QStringLiteral("bottomButtonsBox"));
285  QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
286  sizePolicy1.setHorizontalStretch(0);
287  sizePolicy1.setVerticalStretch(0);
288  sizePolicy1.setHeightForWidth(bottomButtonsBox->sizePolicy().hasHeightForWidth());
289  bottomButtonsBox->setSizePolicy(sizePolicy1);
290  bottomButtonsBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
291 
292  verticalLayout->addWidget(bottomButtonsBox);
293 
294 
295  gridLayout->addLayout(verticalLayout, 0, 0, 1, 1);
296 
297 
298  retranslateUi(settingsDialog);
299 
300  QMetaObject::connectSlotsByName(settingsDialog);
301  } // setupUi
302 
303  void retranslateUi(QDialog *settingsDialog)
304  {
305  settingsDialog->setWindowTitle(QApplication::translate("settingsDialog", "Node settings", Q_NULLPTR));
306  portLabel->setText(QApplication::translate("settingsDialog", "TCP listen port", Q_NULLPTR));
307 #ifndef QT_NO_TOOLTIP
308  portEdit->setToolTip(QApplication::translate("settingsDialog", "Incoming TCP listen port. Change requires node restart. ", Q_NULLPTR));
309 #endif // QT_NO_TOOLTIP
310  dnsNameLabel->setText(QApplication::translate("settingsDialog", "DNS name of node", Q_NULLPTR));
311 #ifndef QT_NO_TOOLTIP
312  dnsNameEdit->setToolTip(QApplication::translate("settingsDialog", "If you have permanent DNS name for your machine, you may type it here to be used to reference your node", Q_NULLPTR));
313 #endif // QT_NO_TOOLTIP
314  label->setText(QApplication::translate("settingsDialog", "Data store limits:", Q_NULLPTR));
315  nrProfileToKeepLabel->setText(QApplication::translate("settingsDialog", "Nr of profiles to keep", Q_NULLPTR));
316  nrMessageLabel->setText(QApplication::translate("settingsDialog", "Nr of private messages to keep", Q_NULLPTR));
317  nrBinaryFilesLabel->setText(QApplication::translate("settingsDialog", "Nr of binary blobs to keep", Q_NULLPTR));
318  nrAdsLabel->setText(QApplication::translate("settingsDialog", "Nr of CAs to keep", Q_NULLPTR));
319 #ifndef QT_NO_TOOLTIP
320  nrAdsEdit->setToolTip(QApplication::translate("settingsDialog", "Number of classified ads to keep in storage, total, including all classifications. Oldest referenced will be deleted first.", Q_NULLPTR));
321 #endif // QT_NO_TOOLTIP
322  nrCommentsLabel->setText(QApplication::translate("settingsDialog", "Nr of profile comments to keep", Q_NULLPTR));
323  nrDbRecordsToKeepLabel->setText(QApplication::translate("settingsDialog", "Nr of db records to keep", Q_NULLPTR));
324  ringtoneLabel->setText(QApplication::translate("settingsDialog", "Ringtone", Q_NULLPTR));
325  ringtoneComboBox->clear();
326  ringtoneComboBox->insertItems(0, QStringList()
327  << QApplication::translate("settingsDialog", "Bow", Q_NULLPTR)
328  << QApplication::translate("settingsDialog", "Electrical", Q_NULLPTR)
329  << QApplication::translate("settingsDialog", "Acoustic", Q_NULLPTR)
330  << QApplication::translate("settingsDialog", "Beep", Q_NULLPTR)
331  << QApplication::translate("settingsDialog", "Silence", Q_NULLPTR)
332  );
333  callAcceptanceLabel->setText(QApplication::translate("settingsDialog", "Accept voice calls", Q_NULLPTR));
334  callAcceptanceComboBox->clear();
335  callAcceptanceComboBox->insertItems(0, QStringList()
336  << QApplication::translate("settingsDialog", "All", Q_NULLPTR)
337  << QApplication::translate("settingsDialog", "From trusted operators", Q_NULLPTR)
338  << QApplication::translate("settingsDialog", "Accept no voice calls", Q_NULLPTR)
339  );
340  } // retranslateUi
341 
342 };
343 
344 namespace Ui {
346 } // namespace Ui
347 
348 QT_END_NAMESPACE
349 
350 #endif // UI_SETTINGSDIALOG_H
QLineEdit * dnsNameEdit
Definition: ui_settingsDialog.h:39
QHBoxLayout * callAcceptanceLayout
Definition: ui_settingsDialog.h:62
QLabel * nrCommentsLabel
Definition: ui_settingsDialog.h:54
QHBoxLayout * nrMessagesLayout
Definition: ui_settingsDialog.h:44
QSpinBox * nrDbRecordsEdit
Definition: ui_settingsDialog.h:58
QGridLayout * gridLayout
Definition: ui_settingsDialog.h:32
Definition: ui_settingsDialog.h:29
QHBoxLayout * nrOfDbRecordsLayout
Definition: ui_settingsDialog.h:56
Definition: ui_aboutDialog.h:161
void setupUi(QDialog *settingsDialog)
Definition: ui_settingsDialog.h:67
QHBoxLayout * subjectLayout
Definition: ui_settingsDialog.h:34
QSpinBox * nrAdsEdit
Definition: ui_settingsDialog.h:52
QLabel * portLabel
Definition: ui_settingsDialog.h:35
QHBoxLayout * contactEditLayout
Definition: ui_settingsDialog.h:37
QDialogButtonBox * bottomButtonsBox
Definition: ui_settingsDialog.h:65
QLabel * dnsNameLabel
Definition: ui_settingsDialog.h:38
QLabel * label
Definition: ui_settingsDialog.h:40
QHBoxLayout * nrCommenstLayout
Definition: ui_settingsDialog.h:53
QComboBox * ringtoneComboBox
Definition: ui_settingsDialog.h:61
QHBoxLayout * nrAdsLayout
Definition: ui_settingsDialog.h:50
QLabel * nrAdsLabel
Definition: ui_settingsDialog.h:51
QLabel * ringtoneLabel
Definition: ui_settingsDialog.h:60
QLabel * nrDbRecordsToKeepLabel
Definition: ui_settingsDialog.h:57
QSpinBox * nrBinaryFilesEdit
Definition: ui_settingsDialog.h:49
Definition: ui_settingsDialog.h:345
QHBoxLayout * horizontalLayout
Definition: ui_settingsDialog.h:59
QVBoxLayout * verticalLayout
Definition: ui_settingsDialog.h:33
QSpinBox * portEdit
Definition: ui_settingsDialog.h:36
QLabel * callAcceptanceLabel
Definition: ui_settingsDialog.h:63
QHBoxLayout * nrBinaryFilesLayout
Definition: ui_settingsDialog.h:47
QSpinBox * nrCommenstEdit
Definition: ui_settingsDialog.h:55
QComboBox * callAcceptanceComboBox
Definition: ui_settingsDialog.h:64
QLabel * nrMessageLabel
Definition: ui_settingsDialog.h:45
QSpinBox * nrProfilesEdit
Definition: ui_settingsDialog.h:43
QLabel * nrProfileToKeepLabel
Definition: ui_settingsDialog.h:42
QSpinBox * nrMessagesEdit
Definition: ui_settingsDialog.h:46
void retranslateUi(QDialog *settingsDialog)
Definition: ui_settingsDialog.h:303
QLabel * nrBinaryFilesLabel
Definition: ui_settingsDialog.h:48
QHBoxLayout * nrProfilesLayout
Definition: ui_settingsDialog.h:41