9 #ifndef UI_BLUETOOTH_DEVICES_DIALOG_H 10 #define UI_BLUETOOTH_DEVICES_DIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QComboBox> 18 #include <QtWidgets/QDialog> 19 #include <QtWidgets/QDialogButtonBox> 20 #include <QtWidgets/QHBoxLayout> 21 #include <QtWidgets/QHeaderView> 22 #include <QtWidgets/QLabel> 23 #include <QtWidgets/QTreeWidget> 24 #include <QtWidgets/QVBoxLayout> 31 QAction *actionCopy_Cell;
32 QAction *actionCopy_Rows;
33 QAction *actionCopy_All;
34 QAction *actionSave_as_image;
35 QAction *actionMark_Unmark_Row;
36 QAction *actionMark_Unmark_Cell;
37 QVBoxLayout *verticalLayout;
38 QTreeWidget *tableTreeWidget;
39 QHBoxLayout *horizontalLayout;
40 QComboBox *interfaceComboBox;
41 QCheckBox *showInformationStepsCheckBox;
43 QDialogButtonBox *buttonBox;
47 if (BluetoothDevicesDialog->objectName().isEmpty())
48 BluetoothDevicesDialog->setObjectName(QStringLiteral(
"BluetoothDevicesDialog"));
49 BluetoothDevicesDialog->resize(880, 477);
50 BluetoothDevicesDialog->setBaseSize(QSize(0, 0));
51 actionCopy_Cell =
new QAction(BluetoothDevicesDialog);
52 actionCopy_Cell->setObjectName(QStringLiteral(
"actionCopy_Cell"));
53 actionCopy_Rows =
new QAction(BluetoothDevicesDialog);
54 actionCopy_Rows->setObjectName(QStringLiteral(
"actionCopy_Rows"));
55 actionCopy_All =
new QAction(BluetoothDevicesDialog);
56 actionCopy_All->setObjectName(QStringLiteral(
"actionCopy_All"));
57 actionSave_as_image =
new QAction(BluetoothDevicesDialog);
58 actionSave_as_image->setObjectName(QStringLiteral(
"actionSave_as_image"));
59 actionMark_Unmark_Row =
new QAction(BluetoothDevicesDialog);
60 actionMark_Unmark_Row->setObjectName(QStringLiteral(
"actionMark_Unmark_Row"));
61 actionMark_Unmark_Cell =
new QAction(BluetoothDevicesDialog);
62 actionMark_Unmark_Cell->setObjectName(QStringLiteral(
"actionMark_Unmark_Cell"));
63 verticalLayout =
new QVBoxLayout(BluetoothDevicesDialog);
64 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
65 tableTreeWidget =
new QTreeWidget(BluetoothDevicesDialog);
66 tableTreeWidget->setObjectName(QStringLiteral(
"tableTreeWidget"));
67 tableTreeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
68 tableTreeWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);
69 tableTreeWidget->setTextElideMode(Qt::ElideMiddle);
70 tableTreeWidget->setRootIsDecorated(
false);
71 tableTreeWidget->setItemsExpandable(
false);
72 tableTreeWidget->setSortingEnabled(
true);
73 tableTreeWidget->header()->setCascadingSectionResizes(
false);
74 tableTreeWidget->header()->setHighlightSections(
false);
75 tableTreeWidget->header()->setProperty(
"showSortIndicator", QVariant(
true));
77 verticalLayout->addWidget(tableTreeWidget);
79 horizontalLayout =
new QHBoxLayout();
81 horizontalLayout->setSpacing(-1);
83 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
84 horizontalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
85 horizontalLayout->setContentsMargins(-1, -1, -1, 0);
86 interfaceComboBox =
new QComboBox(BluetoothDevicesDialog);
87 interfaceComboBox->setObjectName(QStringLiteral(
"interfaceComboBox"));
88 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
89 sizePolicy.setHorizontalStretch(0);
90 sizePolicy.setVerticalStretch(0);
91 sizePolicy.setHeightForWidth(interfaceComboBox->sizePolicy().hasHeightForWidth());
92 interfaceComboBox->setSizePolicy(sizePolicy);
93 interfaceComboBox->setMinimumSize(QSize(350, 0));
95 horizontalLayout->addWidget(interfaceComboBox);
97 showInformationStepsCheckBox =
new QCheckBox(BluetoothDevicesDialog);
98 showInformationStepsCheckBox->setObjectName(QStringLiteral(
"showInformationStepsCheckBox"));
99 showInformationStepsCheckBox->setChecked(
false);
101 horizontalLayout->addWidget(showInformationStepsCheckBox);
104 verticalLayout->addLayout(horizontalLayout);
106 hintLabel =
new QLabel(BluetoothDevicesDialog);
107 hintLabel->setObjectName(QStringLiteral(
"hintLabel"));
109 verticalLayout->addWidget(hintLabel);
111 buttonBox =
new QDialogButtonBox(BluetoothDevicesDialog);
112 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
113 buttonBox->setOrientation(Qt::Horizontal);
114 buttonBox->setStandardButtons(QDialogButtonBox::Close);
116 verticalLayout->addWidget(buttonBox);
119 retranslateUi(BluetoothDevicesDialog);
120 QObject::connect(buttonBox, SIGNAL(accepted()), BluetoothDevicesDialog, SLOT(accept()));
121 QObject::connect(buttonBox, SIGNAL(rejected()), BluetoothDevicesDialog, SLOT(reject()));
123 QMetaObject::connectSlotsByName(BluetoothDevicesDialog);
126 void retranslateUi(QDialog *BluetoothDevicesDialog)
128 BluetoothDevicesDialog->setWindowTitle(QApplication::translate(
"BluetoothDevicesDialog",
"Bluetooth Devices", 0));
129 actionCopy_Cell->setText(QApplication::translate(
"BluetoothDevicesDialog",
"Copy Cell", 0));
130 actionCopy_Rows->setText(QApplication::translate(
"BluetoothDevicesDialog",
"Copy Rows", 0));
131 actionCopy_All->setText(QApplication::translate(
"BluetoothDevicesDialog",
"Copy All", 0));
132 actionSave_as_image->setText(QApplication::translate(
"BluetoothDevicesDialog",
"Save as image", 0));
133 actionMark_Unmark_Row->setText(QApplication::translate(
"BluetoothDevicesDialog",
"Mark/Unmark Row", 0));
134 #ifndef QT_NO_TOOLTIP 135 actionMark_Unmark_Row->setToolTip(QApplication::translate(
"BluetoothDevicesDialog",
"Mark/Unmark Row", 0));
136 #endif // QT_NO_TOOLTIP 137 actionMark_Unmark_Row->setShortcut(QApplication::translate(
"BluetoothDevicesDialog",
"CtrlM", 0));
138 actionMark_Unmark_Cell->setText(QApplication::translate(
"BluetoothDevicesDialog",
"Mark/Unmark Cell", 0));
139 QTreeWidgetItem *___qtreewidgetitem = tableTreeWidget->headerItem();
140 ___qtreewidgetitem->setText(8, QApplication::translate(
"BluetoothDevicesDialog",
"Is Local Adapter", 0));
141 ___qtreewidgetitem->setText(7, QApplication::translate(
"BluetoothDevicesDialog",
"HCI Revision", 0));
142 ___qtreewidgetitem->setText(6, QApplication::translate(
"BluetoothDevicesDialog",
"HCI Version", 0));
143 ___qtreewidgetitem->setText(5, QApplication::translate(
"BluetoothDevicesDialog",
"Manufacturer", 0));
144 ___qtreewidgetitem->setText(4, QApplication::translate(
"BluetoothDevicesDialog",
"LMP Subversion", 0));
145 ___qtreewidgetitem->setText(3, QApplication::translate(
"BluetoothDevicesDialog",
"LMP Version", 0));
146 ___qtreewidgetitem->setText(2, QApplication::translate(
"BluetoothDevicesDialog",
"Name", 0));
147 ___qtreewidgetitem->setText(1, QApplication::translate(
"BluetoothDevicesDialog",
"OUI", 0));
148 ___qtreewidgetitem->setText(0, QApplication::translate(
"BluetoothDevicesDialog",
"BD_ADDR", 0));
149 interfaceComboBox->clear();
150 interfaceComboBox->insertItems(0, QStringList()
151 << QApplication::translate(
"BluetoothDevicesDialog",
"All Interfaces", 0)
153 showInformationStepsCheckBox->setText(QApplication::translate(
"BluetoothDevicesDialog",
"Show information steps", 0));
154 hintLabel->setText(QApplication::translate(
"BluetoothDevicesDialog",
"%1 items; Right click for more option; Double click for device details", 0));
165 #endif // UI_BLUETOOTH_DEVICES_DIALOG_H Definition: ui_about_dialog.h:291
Definition: ui_bluetooth_devices_dialog.h:28
Definition: ui_bluetooth_devices_dialog.h:160
Definition: bluetooth_devices_dialog.h:39