9 #ifndef UI_PQCOLLABORATIONPANEL_H 10 #define UI_PQCOLLABORATIONPANEL_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QGroupBox> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QLineEdit> 20 #include <QtWidgets/QSpinBox> 21 #include <QtWidgets/QTableWidget> 22 #include <QtWidgets/QTextBrowser> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 48 if (pqCollaborationPanel->objectName().isEmpty())
49 pqCollaborationPanel->setObjectName(QString::fromUtf8(
"pqCollaborationPanel"));
50 pqCollaborationPanel->resize(279, 356);
51 verticalLayout_3 =
new QVBoxLayout(pqCollaborationPanel);
52 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
53 verticalLayout_2 =
new QVBoxLayout();
54 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
55 members =
new QTableWidget(pqCollaborationPanel);
56 if (members->columnCount() < 2)
57 members->setColumnCount(2);
58 QTableWidgetItem *__qtablewidgetitem =
new QTableWidgetItem();
59 __qtablewidgetitem->setTextAlignment(Qt::AlignHCenter|Qt::AlignVCenter|Qt::AlignCenter);
60 members->setHorizontalHeaderItem(0, __qtablewidgetitem);
62 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqEyeballClosed.svg"), QSize(), QIcon::Normal, QIcon::Off);
64 font.setKerning(
true);
65 QTableWidgetItem *__qtablewidgetitem1 =
new QTableWidgetItem();
66 __qtablewidgetitem1->setTextAlignment(Qt::AlignHCenter|Qt::AlignVCenter|Qt::AlignCenter);
67 __qtablewidgetitem1->setFont(font);
68 __qtablewidgetitem1->setIcon(icon);
69 members->setHorizontalHeaderItem(1, __qtablewidgetitem1);
70 if (members->rowCount() < 1)
71 members->setRowCount(1);
72 QTableWidgetItem *__qtablewidgetitem2 =
new QTableWidgetItem();
73 members->setVerticalHeaderItem(0, __qtablewidgetitem2);
74 QTableWidgetItem *__qtablewidgetitem3 =
new QTableWidgetItem();
75 __qtablewidgetitem3->setFlags(Qt::ItemIsEnabled);
76 members->setItem(0, 0, __qtablewidgetitem3);
77 members->setObjectName(QString::fromUtf8(
"members"));
78 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
79 sizePolicy.setHorizontalStretch(0);
80 sizePolicy.setVerticalStretch(0);
81 sizePolicy.setHeightForWidth(members->sizePolicy().hasHeightForWidth());
82 members->setSizePolicy(sizePolicy);
83 members->setLayoutDirection(Qt::LeftToRight);
84 members->setAlternatingRowColors(
true);
85 members->setSelectionMode(QAbstractItemView::NoSelection);
86 members->setSelectionBehavior(QAbstractItemView::SelectRows);
87 members->setCornerButtonEnabled(
false);
88 members->setRowCount(1);
89 members->setColumnCount(2);
90 members->horizontalHeader()->setVisible(
true);
91 members->horizontalHeader()->setCascadingSectionResizes(
false);
92 members->horizontalHeader()->setMinimumSectionSize(27);
93 members->horizontalHeader()->setDefaultSectionSize(17);
94 members->horizontalHeader()->setHighlightSections(
false);
95 members->horizontalHeader()->setStretchLastSection(
false);
96 members->verticalHeader()->setVisible(
false);
97 members->verticalHeader()->setCascadingSectionResizes(
false);
98 members->verticalHeader()->setHighlightSections(
false);
100 verticalLayout_2->addWidget(members);
102 shareMousePointer =
new QCheckBox(pqCollaborationPanel);
103 shareMousePointer->setObjectName(QString::fromUtf8(
"shareMousePointer"));
105 font1.setPointSize(10);
106 shareMousePointer->setFont(font1);
107 shareMousePointer->setLayoutDirection(Qt::RightToLeft);
109 verticalLayout_2->addWidget(shareMousePointer);
111 masterControl =
new QWidget(pqCollaborationPanel);
112 masterControl->setObjectName(QString::fromUtf8(
"masterControl"));
113 verticalLayout_4 =
new QVBoxLayout(masterControl);
114 verticalLayout_4->setObjectName(QString::fromUtf8(
"verticalLayout_4"));
115 verticalLayout_4->setContentsMargins(0, 0, 0, 0);
116 disableFurtherConnections =
new QCheckBox(masterControl);
117 disableFurtherConnections->setObjectName(QString::fromUtf8(
"disableFurtherConnections"));
118 disableFurtherConnections->setFont(font1);
119 disableFurtherConnections->setLayoutDirection(Qt::RightToLeft);
121 verticalLayout_4->addWidget(disableFurtherConnections);
123 horizontalLayout_2 =
new QHBoxLayout();
124 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
125 connectIdLabel =
new QLabel(masterControl);
126 connectIdLabel->setObjectName(QString::fromUtf8(
"connectIdLabel"));
127 connectIdLabel->setLayoutDirection(Qt::RightToLeft);
128 connectIdLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
130 horizontalLayout_2->addWidget(connectIdLabel);
132 connectId =
new QSpinBox(masterControl);
133 connectId->setObjectName(QString::fromUtf8(
"connectId"));
134 connectId->setLayoutDirection(Qt::LeftToRight);
135 connectId->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
137 horizontalLayout_2->addWidget(connectId);
140 verticalLayout_4->addLayout(horizontalLayout_2);
143 verticalLayout_2->addWidget(masterControl);
145 groupBox =
new QGroupBox(pqCollaborationPanel);
146 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
147 sizePolicy.setHeightForWidth(groupBox->sizePolicy().hasHeightForWidth());
148 groupBox->setSizePolicy(sizePolicy);
149 verticalLayout =
new QVBoxLayout(groupBox);
150 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
151 content =
new QTextBrowser(groupBox);
152 content->setObjectName(QString::fromUtf8(
"content"));
154 verticalLayout->addWidget(content);
156 message =
new QLineEdit(groupBox);
157 message->setObjectName(QString::fromUtf8(
"message"));
159 verticalLayout->addWidget(message);
162 verticalLayout_2->addWidget(groupBox);
165 verticalLayout_3->addLayout(verticalLayout_2);
170 QMetaObject::connectSlotsByName(pqCollaborationPanel);
175 pqCollaborationPanel->setWindowTitle(QCoreApplication::translate(
"pqCollaborationPanel",
"Form",
nullptr));
176 QTableWidgetItem *___qtablewidgetitem = members->horizontalHeaderItem(0);
177 ___qtablewidgetitem->setText(QCoreApplication::translate(
"pqCollaborationPanel",
"Participant",
nullptr));
178 QTableWidgetItem *___qtablewidgetitem1 = members->verticalHeaderItem(0);
179 ___qtablewidgetitem1->setText(QCoreApplication::translate(
"pqCollaborationPanel",
"1",
nullptr));
181 const bool __sortingEnabled = members->isSortingEnabled();
182 members->setSortingEnabled(
false);
183 QTableWidgetItem *___qtablewidgetitem2 = members->item(0, 0);
184 ___qtablewidgetitem2->setText(QCoreApplication::translate(
"pqCollaborationPanel",
"I'm alone",
nullptr));
185 members->setSortingEnabled(__sortingEnabled);
187 shareMousePointer->setText(QCoreApplication::translate(
"pqCollaborationPanel",
"Share mouse pointer",
nullptr));
188 disableFurtherConnections->setText(QCoreApplication::translate(
"pqCollaborationPanel",
"Disable further connections",
nullptr));
189 connectIdLabel->setText(QCoreApplication::translate(
"pqCollaborationPanel",
"Server Connect ID ",
nullptr));
190 groupBox->setTitle(QCoreApplication::translate(
"pqCollaborationPanel",
"Chat room",
nullptr));
201 #endif // UI_PQCOLLABORATIONPANEL_H
QVBoxLayout * verticalLayout_4
QVBoxLayout * verticalLayout
void retranslateUi(QWidget *pqCollaborationPanel)
QCheckBox * shareMousePointer
QHBoxLayout * horizontalLayout_2
QVBoxLayout * verticalLayout_3
void setupUi(QWidget *pqCollaborationPanel)
QVBoxLayout * verticalLayout_2
pqCollaborationPanel is a properties page for the collaborative session.
QCheckBox * disableFurtherConnections