9 #ifndef UI_BLUETOOTH_DEVICE_DIALOG_H 10 #define UI_BLUETOOTH_DEVICE_DIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QHeaderView> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QTableWidget> 21 #include <QtWidgets/QVBoxLayout> 28 QAction *actionCopy_Cell;
29 QAction *actionCopy_Rows;
30 QAction *actionCopy_All;
31 QAction *actionSave_as_image;
32 QAction *actionMark_Unmark_Row;
33 QAction *actionMark_Unmark_Cell;
34 QVBoxLayout *verticalLayout;
35 QTableWidget *tableWidget;
37 QDialogButtonBox *buttonBox;
41 if (BluetoothDeviceDialog->objectName().isEmpty())
42 BluetoothDeviceDialog->setObjectName(QStringLiteral(
"BluetoothDeviceDialog"));
43 BluetoothDeviceDialog->resize(544, 679);
44 BluetoothDeviceDialog->setBaseSize(QSize(0, 0));
45 BluetoothDeviceDialog->setContextMenuPolicy(Qt::CustomContextMenu);
46 actionCopy_Cell =
new QAction(BluetoothDeviceDialog);
47 actionCopy_Cell->setObjectName(QStringLiteral(
"actionCopy_Cell"));
48 actionCopy_Rows =
new QAction(BluetoothDeviceDialog);
49 actionCopy_Rows->setObjectName(QStringLiteral(
"actionCopy_Rows"));
50 actionCopy_All =
new QAction(BluetoothDeviceDialog);
51 actionCopy_All->setObjectName(QStringLiteral(
"actionCopy_All"));
52 actionSave_as_image =
new QAction(BluetoothDeviceDialog);
53 actionSave_as_image->setObjectName(QStringLiteral(
"actionSave_as_image"));
54 actionMark_Unmark_Row =
new QAction(BluetoothDeviceDialog);
55 actionMark_Unmark_Row->setObjectName(QStringLiteral(
"actionMark_Unmark_Row"));
56 actionMark_Unmark_Cell =
new QAction(BluetoothDeviceDialog);
57 actionMark_Unmark_Cell->setObjectName(QStringLiteral(
"actionMark_Unmark_Cell"));
58 verticalLayout =
new QVBoxLayout(BluetoothDeviceDialog);
59 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
60 tableWidget =
new QTableWidget(BluetoothDeviceDialog);
61 if (tableWidget->columnCount() < 2)
62 tableWidget->setColumnCount(2);
63 QTableWidgetItem *__qtablewidgetitem =
new QTableWidgetItem();
64 tableWidget->setHorizontalHeaderItem(0, __qtablewidgetitem);
65 QTableWidgetItem *__qtablewidgetitem1 =
new QTableWidgetItem();
66 tableWidget->setHorizontalHeaderItem(1, __qtablewidgetitem1);
67 if (tableWidget->rowCount() < 22)
68 tableWidget->setRowCount(22);
69 QTableWidgetItem *__qtablewidgetitem2 =
new QTableWidgetItem();
70 tableWidget->setVerticalHeaderItem(0, __qtablewidgetitem2);
71 QTableWidgetItem *__qtablewidgetitem3 =
new QTableWidgetItem();
72 tableWidget->setVerticalHeaderItem(1, __qtablewidgetitem3);
73 QTableWidgetItem *__qtablewidgetitem4 =
new QTableWidgetItem();
74 tableWidget->setVerticalHeaderItem(2, __qtablewidgetitem4);
75 QTableWidgetItem *__qtablewidgetitem5 =
new QTableWidgetItem();
76 tableWidget->setVerticalHeaderItem(3, __qtablewidgetitem5);
77 QTableWidgetItem *__qtablewidgetitem6 =
new QTableWidgetItem();
78 tableWidget->setVerticalHeaderItem(4, __qtablewidgetitem6);
79 QTableWidgetItem *__qtablewidgetitem7 =
new QTableWidgetItem();
80 tableWidget->setVerticalHeaderItem(5, __qtablewidgetitem7);
81 QTableWidgetItem *__qtablewidgetitem8 =
new QTableWidgetItem();
82 tableWidget->setVerticalHeaderItem(6, __qtablewidgetitem8);
83 QTableWidgetItem *__qtablewidgetitem9 =
new QTableWidgetItem();
84 tableWidget->setVerticalHeaderItem(7, __qtablewidgetitem9);
85 QTableWidgetItem *__qtablewidgetitem10 =
new QTableWidgetItem();
86 tableWidget->setVerticalHeaderItem(8, __qtablewidgetitem10);
87 QTableWidgetItem *__qtablewidgetitem11 =
new QTableWidgetItem();
88 tableWidget->setVerticalHeaderItem(9, __qtablewidgetitem11);
89 QTableWidgetItem *__qtablewidgetitem12 =
new QTableWidgetItem();
90 tableWidget->setVerticalHeaderItem(10, __qtablewidgetitem12);
91 QTableWidgetItem *__qtablewidgetitem13 =
new QTableWidgetItem();
92 tableWidget->setVerticalHeaderItem(11, __qtablewidgetitem13);
93 QTableWidgetItem *__qtablewidgetitem14 =
new QTableWidgetItem();
94 tableWidget->setVerticalHeaderItem(12, __qtablewidgetitem14);
95 QTableWidgetItem *__qtablewidgetitem15 =
new QTableWidgetItem();
96 tableWidget->setVerticalHeaderItem(13, __qtablewidgetitem15);
97 QTableWidgetItem *__qtablewidgetitem16 =
new QTableWidgetItem();
98 tableWidget->setVerticalHeaderItem(14, __qtablewidgetitem16);
99 QTableWidgetItem *__qtablewidgetitem17 =
new QTableWidgetItem();
100 tableWidget->setVerticalHeaderItem(15, __qtablewidgetitem17);
101 QTableWidgetItem *__qtablewidgetitem18 =
new QTableWidgetItem();
102 tableWidget->setVerticalHeaderItem(16, __qtablewidgetitem18);
103 QTableWidgetItem *__qtablewidgetitem19 =
new QTableWidgetItem();
104 tableWidget->setVerticalHeaderItem(17, __qtablewidgetitem19);
105 QTableWidgetItem *__qtablewidgetitem20 =
new QTableWidgetItem();
106 tableWidget->setVerticalHeaderItem(18, __qtablewidgetitem20);
107 QTableWidgetItem *__qtablewidgetitem21 =
new QTableWidgetItem();
108 tableWidget->setVerticalHeaderItem(19, __qtablewidgetitem21);
109 QTableWidgetItem *__qtablewidgetitem22 =
new QTableWidgetItem();
110 tableWidget->setVerticalHeaderItem(20, __qtablewidgetitem22);
111 QTableWidgetItem *__qtablewidgetitem23 =
new QTableWidgetItem();
112 tableWidget->setVerticalHeaderItem(21, __qtablewidgetitem23);
113 QTableWidgetItem *__qtablewidgetitem24 =
new QTableWidgetItem();
114 tableWidget->setItem(0, 1, __qtablewidgetitem24);
115 tableWidget->setObjectName(QStringLiteral(
"tableWidget"));
116 tableWidget->setContextMenuPolicy(Qt::CustomContextMenu);
117 tableWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
118 tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
119 tableWidget->setDragDropOverwriteMode(
false);
120 tableWidget->setAlternatingRowColors(
true);
121 tableWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
122 tableWidget->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
123 tableWidget->setShowGrid(
true);
124 tableWidget->setGridStyle(Qt::SolidLine);
125 tableWidget->setSortingEnabled(
false);
126 tableWidget->horizontalHeader()->setDefaultSectionSize(100);
127 tableWidget->horizontalHeader()->setHighlightSections(
true);
128 tableWidget->horizontalHeader()->setProperty(
"showSortIndicator", QVariant(
false));
129 tableWidget->horizontalHeader()->setStretchLastSection(
false);
130 tableWidget->verticalHeader()->setCascadingSectionResizes(
false);
131 tableWidget->verticalHeader()->setStretchLastSection(
false);
133 verticalLayout->addWidget(tableWidget);
135 hintLabel =
new QLabel(BluetoothDeviceDialog);
136 hintLabel->setObjectName(QStringLiteral(
"hintLabel"));
138 verticalLayout->addWidget(hintLabel);
140 buttonBox =
new QDialogButtonBox(BluetoothDeviceDialog);
141 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
142 buttonBox->setOrientation(Qt::Horizontal);
143 buttonBox->setStandardButtons(QDialogButtonBox::Close);
145 verticalLayout->addWidget(buttonBox);
148 retranslateUi(BluetoothDeviceDialog);
149 QObject::connect(buttonBox, SIGNAL(accepted()), BluetoothDeviceDialog, SLOT(accept()));
150 QObject::connect(buttonBox, SIGNAL(rejected()), BluetoothDeviceDialog, SLOT(reject()));
152 QMetaObject::connectSlotsByName(BluetoothDeviceDialog);
155 void retranslateUi(QDialog *BluetoothDeviceDialog)
157 BluetoothDeviceDialog->setWindowTitle(QApplication::translate(
"BluetoothDeviceDialog",
"Bluetooth Device", 0));
158 actionCopy_Cell->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Copy Cell", 0));
159 actionCopy_Rows->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Copy Rows", 0));
160 actionCopy_All->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Copy All", 0));
161 actionSave_as_image->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Save as image", 0));
162 actionMark_Unmark_Row->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Mark/Unmark Row", 0));
163 #ifndef QT_NO_TOOLTIP 164 actionMark_Unmark_Row->setToolTip(QApplication::translate(
"BluetoothDeviceDialog",
"Mark/Unmark Row", 0));
165 #endif // QT_NO_TOOLTIP 166 actionMark_Unmark_Row->setShortcut(QApplication::translate(
"BluetoothDeviceDialog",
"CtrlM", 0));
167 actionMark_Unmark_Cell->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Mark/Unmark Cell", 0));
168 QTableWidgetItem *___qtablewidgetitem = tableWidget->horizontalHeaderItem(0);
169 ___qtablewidgetitem->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Value", 0));
170 QTableWidgetItem *___qtablewidgetitem1 = tableWidget->horizontalHeaderItem(1);
171 ___qtablewidgetitem1->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Changes", 0));
172 QTableWidgetItem *___qtablewidgetitem2 = tableWidget->verticalHeaderItem(0);
173 ___qtablewidgetitem2->setText(QApplication::translate(
"BluetoothDeviceDialog",
"BD_ADDR", 0));
174 QTableWidgetItem *___qtablewidgetitem3 = tableWidget->verticalHeaderItem(1);
175 ___qtablewidgetitem3->setText(QApplication::translate(
"BluetoothDeviceDialog",
"OUI", 0));
176 QTableWidgetItem *___qtablewidgetitem4 = tableWidget->verticalHeaderItem(2);
177 ___qtablewidgetitem4->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Name", 0));
178 QTableWidgetItem *___qtablewidgetitem5 = tableWidget->verticalHeaderItem(3);
179 ___qtablewidgetitem5->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Class of Device", 0));
180 QTableWidgetItem *___qtablewidgetitem6 = tableWidget->verticalHeaderItem(4);
181 ___qtablewidgetitem6->setText(QApplication::translate(
"BluetoothDeviceDialog",
"LMP Version", 0));
182 QTableWidgetItem *___qtablewidgetitem7 = tableWidget->verticalHeaderItem(5);
183 ___qtablewidgetitem7->setText(QApplication::translate(
"BluetoothDeviceDialog",
"LMP Subverion", 0));
184 QTableWidgetItem *___qtablewidgetitem8 = tableWidget->verticalHeaderItem(6);
185 ___qtablewidgetitem8->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Manufacturer", 0));
186 QTableWidgetItem *___qtablewidgetitem9 = tableWidget->verticalHeaderItem(7);
187 ___qtablewidgetitem9->setText(QApplication::translate(
"BluetoothDeviceDialog",
"HCI Version", 0));
188 QTableWidgetItem *___qtablewidgetitem10 = tableWidget->verticalHeaderItem(8);
189 ___qtablewidgetitem10->setText(QApplication::translate(
"BluetoothDeviceDialog",
"HCI Revision", 0));
190 QTableWidgetItem *___qtablewidgetitem11 = tableWidget->verticalHeaderItem(9);
191 ___qtablewidgetitem11->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Scan", 0));
192 QTableWidgetItem *___qtablewidgetitem12 = tableWidget->verticalHeaderItem(10);
193 ___qtablewidgetitem12->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Authentication", 0));
194 QTableWidgetItem *___qtablewidgetitem13 = tableWidget->verticalHeaderItem(11);
195 ___qtablewidgetitem13->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Encryption", 0));
196 QTableWidgetItem *___qtablewidgetitem14 = tableWidget->verticalHeaderItem(12);
197 ___qtablewidgetitem14->setText(QApplication::translate(
"BluetoothDeviceDialog",
"ACL MTU", 0));
198 QTableWidgetItem *___qtablewidgetitem15 = tableWidget->verticalHeaderItem(13);
199 ___qtablewidgetitem15->setText(QApplication::translate(
"BluetoothDeviceDialog",
"ACL Total Packets", 0));
200 QTableWidgetItem *___qtablewidgetitem16 = tableWidget->verticalHeaderItem(14);
201 ___qtablewidgetitem16->setText(QApplication::translate(
"BluetoothDeviceDialog",
"SCO MTU", 0));
202 QTableWidgetItem *___qtablewidgetitem17 = tableWidget->verticalHeaderItem(15);
203 ___qtablewidgetitem17->setText(QApplication::translate(
"BluetoothDeviceDialog",
"SCO Total Packets", 0));
204 QTableWidgetItem *___qtablewidgetitem18 = tableWidget->verticalHeaderItem(16);
205 ___qtablewidgetitem18->setText(QApplication::translate(
"BluetoothDeviceDialog",
"LE ACL MTU", 0));
206 QTableWidgetItem *___qtablewidgetitem19 = tableWidget->verticalHeaderItem(17);
207 ___qtablewidgetitem19->setText(QApplication::translate(
"BluetoothDeviceDialog",
"LE ACL Total Packets", 0));
208 QTableWidgetItem *___qtablewidgetitem20 = tableWidget->verticalHeaderItem(18);
209 ___qtablewidgetitem20->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Inquiry Mode", 0));
210 QTableWidgetItem *___qtablewidgetitem21 = tableWidget->verticalHeaderItem(19);
211 ___qtablewidgetitem21->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Page Timeout", 0));
212 QTableWidgetItem *___qtablewidgetitem22 = tableWidget->verticalHeaderItem(20);
213 ___qtablewidgetitem22->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Simple Pairing Mode", 0));
214 QTableWidgetItem *___qtablewidgetitem23 = tableWidget->verticalHeaderItem(21);
215 ___qtablewidgetitem23->setText(QApplication::translate(
"BluetoothDeviceDialog",
"Voice Setting", 0));
217 const bool __sortingEnabled = tableWidget->isSortingEnabled();
218 tableWidget->setSortingEnabled(
false);
219 tableWidget->setSortingEnabled(__sortingEnabled);
221 hintLabel->setText(QApplication::translate(
"BluetoothDeviceDialog",
"%1 changes", 0));
232 #endif // UI_BLUETOOTH_DEVICE_DIALOG_H Definition: ui_about_dialog.h:291
Definition: ui_bluetooth_device_dialog.h:227
Definition: ui_bluetooth_device_dialog.h:25
Definition: bluetooth_device_dialog.h:53