9 #ifndef UI_SETTINGSDIALOG_H 10 #define UI_SETTINGSDIALOG_H 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> 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"));
88 subjectLayout->addWidget(portLabel);
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);
100 subjectLayout->addWidget(portEdit);
103 verticalLayout->addLayout(subjectLayout);
105 contactEditLayout =
new QHBoxLayout();
106 contactEditLayout->setObjectName(QStringLiteral(
"contactEditLayout"));
107 dnsNameLabel =
new QLabel(settingsDialog);
108 dnsNameLabel->setObjectName(QStringLiteral(
"dnsNameLabel"));
110 contactEditLayout->addWidget(dnsNameLabel);
112 dnsNameEdit =
new QLineEdit(settingsDialog);
113 dnsNameEdit->setObjectName(QStringLiteral(
"dnsNameEdit"));
114 dnsNameEdit->setMaxLength(255);
116 contactEditLayout->addWidget(dnsNameEdit);
119 verticalLayout->addLayout(contactEditLayout);
121 label =
new QLabel(settingsDialog);
122 label->setObjectName(QStringLiteral(
"label"));
124 verticalLayout->addWidget(label);
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"));
132 nrProfilesLayout->addWidget(nrProfileToKeepLabel);
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);
143 nrProfilesLayout->addWidget(nrProfilesEdit);
146 verticalLayout->addLayout(nrProfilesLayout);
148 nrMessagesLayout =
new QHBoxLayout();
149 nrMessagesLayout->setObjectName(QStringLiteral(
"nrMessagesLayout"));
150 nrMessageLabel =
new QLabel(settingsDialog);
151 nrMessageLabel->setObjectName(QStringLiteral(
"nrMessageLabel"));
153 nrMessagesLayout->addWidget(nrMessageLabel);
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);
164 nrMessagesLayout->addWidget(nrMessagesEdit);
167 verticalLayout->addLayout(nrMessagesLayout);
169 nrBinaryFilesLayout =
new QHBoxLayout();
170 nrBinaryFilesLayout->setObjectName(QStringLiteral(
"nrBinaryFilesLayout"));
171 nrBinaryFilesLabel =
new QLabel(settingsDialog);
172 nrBinaryFilesLabel->setObjectName(QStringLiteral(
"nrBinaryFilesLabel"));
174 nrBinaryFilesLayout->addWidget(nrBinaryFilesLabel);
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);
185 nrBinaryFilesLayout->addWidget(nrBinaryFilesEdit);
188 verticalLayout->addLayout(nrBinaryFilesLayout);
190 nrAdsLayout =
new QHBoxLayout();
191 nrAdsLayout->setObjectName(QStringLiteral(
"nrAdsLayout"));
192 nrAdsLabel =
new QLabel(settingsDialog);
193 nrAdsLabel->setObjectName(QStringLiteral(
"nrAdsLabel"));
195 nrAdsLayout->addWidget(nrAdsLabel);
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);
206 nrAdsLayout->addWidget(nrAdsEdit);
209 verticalLayout->addLayout(nrAdsLayout);
211 nrCommenstLayout =
new QHBoxLayout();
212 nrCommenstLayout->setObjectName(QStringLiteral(
"nrCommenstLayout"));
213 nrCommentsLabel =
new QLabel(settingsDialog);
214 nrCommentsLabel->setObjectName(QStringLiteral(
"nrCommentsLabel"));
216 nrCommenstLayout->addWidget(nrCommentsLabel);
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);
227 nrCommenstLayout->addWidget(nrCommenstEdit);
230 verticalLayout->addLayout(nrCommenstLayout);
232 nrOfDbRecordsLayout =
new QHBoxLayout();
233 nrOfDbRecordsLayout->setObjectName(QStringLiteral(
"nrOfDbRecordsLayout"));
234 nrDbRecordsToKeepLabel =
new QLabel(settingsDialog);
235 nrDbRecordsToKeepLabel->setObjectName(QStringLiteral(
"nrDbRecordsToKeepLabel"));
237 nrOfDbRecordsLayout->addWidget(nrDbRecordsToKeepLabel);
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);
247 nrOfDbRecordsLayout->addWidget(nrDbRecordsEdit);
250 verticalLayout->addLayout(nrOfDbRecordsLayout);
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"));
258 horizontalLayout->addWidget(ringtoneLabel);
260 ringtoneComboBox =
new QComboBox(settingsDialog);
261 ringtoneComboBox->setObjectName(QStringLiteral(
"ringtoneComboBox"));
263 horizontalLayout->addWidget(ringtoneComboBox);
266 verticalLayout->addLayout(horizontalLayout);
268 callAcceptanceLayout =
new QHBoxLayout();
269 callAcceptanceLayout->setObjectName(QStringLiteral(
"callAcceptanceLayout"));
270 callAcceptanceLabel =
new QLabel(settingsDialog);
271 callAcceptanceLabel->setObjectName(QStringLiteral(
"callAcceptanceLabel"));
273 callAcceptanceLayout->addWidget(callAcceptanceLabel);
275 callAcceptanceComboBox =
new QComboBox(settingsDialog);
276 callAcceptanceComboBox->setObjectName(QStringLiteral(
"callAcceptanceComboBox"));
278 callAcceptanceLayout->addWidget(callAcceptanceComboBox);
281 verticalLayout->addLayout(callAcceptanceLayout);
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);
292 verticalLayout->addWidget(bottomButtonsBox);
295 gridLayout->addLayout(verticalLayout, 0, 0, 1, 1);
300 QMetaObject::connectSlotsByName(settingsDialog);
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)
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)
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