9 #ifndef UI_BLUETOOTH_ATT_SERVER_ATTRIBUTES_DIALOG_H 10 #define UI_BLUETOOTH_ATT_SERVER_ATTRIBUTES_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/QTreeWidget> 23 #include <QtWidgets/QVBoxLayout> 30 QAction *actionCopy_Cell;
31 QAction *actionCopy_Rows;
32 QAction *actionCopy_All;
33 QAction *actionSave_as_image;
34 QAction *actionMark_Unmark_Row;
35 QAction *actionMark_Unmark_Cell;
36 QVBoxLayout *verticalLayout;
37 QTreeWidget *tableTreeWidget;
38 QHBoxLayout *horizontalLayout;
39 QComboBox *interfaceComboBox;
40 QComboBox *deviceComboBox;
41 QCheckBox *removeDuplicatesCheckBox;
42 QDialogButtonBox *buttonBox;
46 if (BluetoothAttServerAttributesDialog->objectName().isEmpty())
47 BluetoothAttServerAttributesDialog->setObjectName(QStringLiteral(
"BluetoothAttServerAttributesDialog"));
48 BluetoothAttServerAttributesDialog->resize(880, 477);
49 BluetoothAttServerAttributesDialog->setBaseSize(QSize(0, 0));
50 actionCopy_Cell =
new QAction(BluetoothAttServerAttributesDialog);
51 actionCopy_Cell->setObjectName(QStringLiteral(
"actionCopy_Cell"));
52 actionCopy_Rows =
new QAction(BluetoothAttServerAttributesDialog);
53 actionCopy_Rows->setObjectName(QStringLiteral(
"actionCopy_Rows"));
54 actionCopy_All =
new QAction(BluetoothAttServerAttributesDialog);
55 actionCopy_All->setObjectName(QStringLiteral(
"actionCopy_All"));
56 actionSave_as_image =
new QAction(BluetoothAttServerAttributesDialog);
57 actionSave_as_image->setObjectName(QStringLiteral(
"actionSave_as_image"));
58 actionMark_Unmark_Row =
new QAction(BluetoothAttServerAttributesDialog);
59 actionMark_Unmark_Row->setObjectName(QStringLiteral(
"actionMark_Unmark_Row"));
60 actionMark_Unmark_Cell =
new QAction(BluetoothAttServerAttributesDialog);
61 actionMark_Unmark_Cell->setObjectName(QStringLiteral(
"actionMark_Unmark_Cell"));
62 verticalLayout =
new QVBoxLayout(BluetoothAttServerAttributesDialog);
63 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
64 tableTreeWidget =
new QTreeWidget(BluetoothAttServerAttributesDialog);
65 tableTreeWidget->setObjectName(QStringLiteral(
"tableTreeWidget"));
66 tableTreeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
67 tableTreeWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);
68 tableTreeWidget->setTextElideMode(Qt::ElideMiddle);
69 tableTreeWidget->setRootIsDecorated(
false);
70 tableTreeWidget->setItemsExpandable(
false);
71 tableTreeWidget->setSortingEnabled(
true);
72 tableTreeWidget->header()->setCascadingSectionResizes(
false);
73 tableTreeWidget->header()->setHighlightSections(
false);
74 tableTreeWidget->header()->setProperty(
"showSortIndicator", QVariant(
true));
76 verticalLayout->addWidget(tableTreeWidget);
78 horizontalLayout =
new QHBoxLayout();
80 horizontalLayout->setSpacing(-1);
82 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
83 horizontalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
84 horizontalLayout->setContentsMargins(-1, -1, -1, 0);
85 interfaceComboBox =
new QComboBox(BluetoothAttServerAttributesDialog);
86 interfaceComboBox->setObjectName(QStringLiteral(
"interfaceComboBox"));
87 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
88 sizePolicy.setHorizontalStretch(0);
89 sizePolicy.setVerticalStretch(0);
90 sizePolicy.setHeightForWidth(interfaceComboBox->sizePolicy().hasHeightForWidth());
91 interfaceComboBox->setSizePolicy(sizePolicy);
92 interfaceComboBox->setMinimumSize(QSize(350, 0));
94 horizontalLayout->addWidget(interfaceComboBox);
96 deviceComboBox =
new QComboBox(BluetoothAttServerAttributesDialog);
97 deviceComboBox->setObjectName(QStringLiteral(
"deviceComboBox"));
98 deviceComboBox->setEnabled(
true);
99 sizePolicy.setHeightForWidth(deviceComboBox->sizePolicy().hasHeightForWidth());
100 deviceComboBox->setSizePolicy(sizePolicy);
101 deviceComboBox->setMinimumSize(QSize(325, 0));
102 deviceComboBox->setBaseSize(QSize(0, 0));
103 deviceComboBox->setMouseTracking(
false);
104 deviceComboBox->setFocusPolicy(Qt::WheelFocus);
105 deviceComboBox->setAcceptDrops(
false);
106 deviceComboBox->setLayoutDirection(Qt::LeftToRight);
107 deviceComboBox->setDuplicatesEnabled(
false);
108 deviceComboBox->setFrame(
true);
109 deviceComboBox->setModelColumn(0);
111 horizontalLayout->addWidget(deviceComboBox);
113 removeDuplicatesCheckBox =
new QCheckBox(BluetoothAttServerAttributesDialog);
114 removeDuplicatesCheckBox->setObjectName(QStringLiteral(
"removeDuplicatesCheckBox"));
115 removeDuplicatesCheckBox->setChecked(
true);
117 horizontalLayout->addWidget(removeDuplicatesCheckBox);
120 verticalLayout->addLayout(horizontalLayout);
122 buttonBox =
new QDialogButtonBox(BluetoothAttServerAttributesDialog);
123 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
124 buttonBox->setOrientation(Qt::Horizontal);
125 buttonBox->setStandardButtons(QDialogButtonBox::Close);
127 verticalLayout->addWidget(buttonBox);
130 retranslateUi(BluetoothAttServerAttributesDialog);
131 QObject::connect(buttonBox, SIGNAL(accepted()), BluetoothAttServerAttributesDialog, SLOT(accept()));
132 QObject::connect(buttonBox, SIGNAL(rejected()), BluetoothAttServerAttributesDialog, SLOT(reject()));
134 deviceComboBox->setCurrentIndex(0);
137 QMetaObject::connectSlotsByName(BluetoothAttServerAttributesDialog);
140 void retranslateUi(QDialog *BluetoothAttServerAttributesDialog)
142 BluetoothAttServerAttributesDialog->setWindowTitle(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Bluetooth ATT Server Attributes", 0));
143 actionCopy_Cell->setText(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Copy Cell", 0));
144 actionCopy_Rows->setText(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Copy Rows", 0));
145 actionCopy_All->setText(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Copy All", 0));
146 actionSave_as_image->setText(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Save as image", 0));
147 actionMark_Unmark_Row->setText(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Mark/Unmark Row", 0));
148 #ifndef QT_NO_TOOLTIP 149 actionMark_Unmark_Row->setToolTip(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Mark/Unmark Row", 0));
150 #endif // QT_NO_TOOLTIP 151 actionMark_Unmark_Row->setShortcut(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"CtrlM", 0));
152 actionMark_Unmark_Cell->setText(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Mark/Unmark Cell", 0));
153 QTreeWidgetItem *___qtreewidgetitem = tableTreeWidget->headerItem();
154 ___qtreewidgetitem->setText(2, QApplication::translate(
"BluetoothAttServerAttributesDialog",
"UUID Name", 0));
155 ___qtreewidgetitem->setText(1, QApplication::translate(
"BluetoothAttServerAttributesDialog",
"UUID", 0));
156 ___qtreewidgetitem->setText(0, QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Handle", 0));
157 interfaceComboBox->clear();
158 interfaceComboBox->insertItems(0, QStringList()
159 << QApplication::translate(
"BluetoothAttServerAttributesDialog",
"All Interfaces", 0)
161 deviceComboBox->clear();
162 deviceComboBox->insertItems(0, QStringList()
163 << QApplication::translate(
"BluetoothAttServerAttributesDialog",
"All Devices", 0)
165 removeDuplicatesCheckBox->setText(QApplication::translate(
"BluetoothAttServerAttributesDialog",
"Remove duplicates", 0));
176 #endif // UI_BLUETOOTH_ATT_SERVER_ATTRIBUTES_DIALOG_H Definition: ui_about_dialog.h:291
Definition: ui_bluetooth_att_server_attributes_dialog.h:171
Definition: bluetooth_att_server_attributes_dialog.h:39
Definition: ui_bluetooth_att_server_attributes_dialog.h:27