9 #ifndef UI_PQPROPERTIESPANEL_H 10 #define UI_PQPROPERTIESPANEL_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QFrame> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QPushButton> 18 #include <QtWidgets/QScrollArea> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QVBoxLayout> 21 #include <QtWidgets/QWidget> 69 if (propertiesPanel->objectName().isEmpty())
70 propertiesPanel->setObjectName(QString::fromUtf8(
"propertiesPanel"));
71 propertiesPanel->resize(350, 750);
72 verticalLayout =
new QVBoxLayout(propertiesPanel);
73 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
74 ButtonLayout =
new QHBoxLayout();
75 ButtonLayout->setSpacing(2);
76 ButtonLayout->setObjectName(QString::fromUtf8(
"ButtonLayout"));
77 Accept =
new QPushButton(propertiesPanel);
78 Accept->setObjectName(QString::fromUtf8(
"Accept"));
80 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqApply.svg"), QSize(), QIcon::Normal, QIcon::Off);
81 Accept->setIcon(icon);
83 ButtonLayout->addWidget(Accept);
85 Reset =
new QPushButton(propertiesPanel);
86 Reset->setObjectName(QString::fromUtf8(
"Reset"));
88 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqCancel.svg"), QSize(), QIcon::Normal, QIcon::Off);
89 Reset->setIcon(icon1);
91 ButtonLayout->addWidget(Reset);
93 Delete =
new QPushButton(propertiesPanel);
94 Delete->setObjectName(QString::fromUtf8(
"Delete"));
96 icon2.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqDelete.svg"), QSize(), QIcon::Normal, QIcon::Off);
97 Delete->setIcon(icon2);
99 ButtonLayout->addWidget(Delete);
101 Help =
new QPushButton(propertiesPanel);
102 Help->setObjectName(QString::fromUtf8(
"Help"));
104 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqHelp.svg"), QSize(), QIcon::Normal, QIcon::Off);
105 Help->setIcon(icon3);
107 ButtonLayout->addWidget(Help);
110 verticalLayout->addLayout(ButtonLayout);
112 SearchBoxLayout =
new QHBoxLayout();
113 SearchBoxLayout->setSpacing(2);
114 SearchBoxLayout->setObjectName(QString::fromUtf8(
"SearchBoxLayout"));
116 SearchBox->setObjectName(QString::fromUtf8(
"SearchBox"));
117 SearchBox->setProperty(
"settingKey", QVariant(QString::fromUtf8(
"showAdvancedProperties")));
118 SearchBox->setProperty(
"advancedSearchEnabled", QVariant(
true));
120 SearchBoxLayout->addWidget(SearchBox);
123 verticalLayout->addLayout(SearchBoxLayout);
125 scrollArea =
new QScrollArea(propertiesPanel);
126 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
127 scrollArea->setFrameShape(QFrame::NoFrame);
128 scrollArea->setFrameShadow(QFrame::Plain);
129 scrollArea->setWidgetResizable(
true);
130 scrollAreaWidgetContents =
new QWidget();
131 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
132 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 332, 689));
133 ScrollAreaLayout =
new QVBoxLayout(scrollAreaWidgetContents);
134 ScrollAreaLayout->setContentsMargins(0, 0, 0, 0);
135 ScrollAreaLayout->setObjectName(QString::fromUtf8(
"ScrollAreaLayout"));
136 PropertiesButtons =
new QWidget(scrollAreaWidgetContents);
137 PropertiesButtons->setObjectName(QString::fromUtf8(
"PropertiesButtons"));
138 horizontalLayout =
new QHBoxLayout(PropertiesButtons);
140 horizontalLayout->setSpacing(6);
142 horizontalLayout->setContentsMargins(0, 0, 0, 0);
143 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
145 PropertiesButton->setObjectName(QString::fromUtf8(
"PropertiesButton"));
146 PropertiesButton->setProperty(
"checked", QVariant(
true));
148 horizontalLayout->addWidget(PropertiesButton);
150 PropertiesCopy =
new QPushButton(PropertiesButtons);
151 PropertiesCopy->setObjectName(QString::fromUtf8(
"PropertiesCopy"));
152 PropertiesCopy->setEnabled(
false);
153 PropertiesCopy->setMaximumSize(QSize(50, 16777215));
155 icon4.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqCopy.svg"), QSize(), QIcon::Normal, QIcon::Off);
156 PropertiesCopy->setIcon(icon4);
158 horizontalLayout->addWidget(PropertiesCopy);
160 PropertiesPaste =
new QPushButton(PropertiesButtons);
161 PropertiesPaste->setObjectName(QString::fromUtf8(
"PropertiesPaste"));
162 PropertiesPaste->setEnabled(
false);
163 PropertiesPaste->setMaximumSize(QSize(50, 16777215));
165 icon5.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqPaste.svg"), QSize(), QIcon::Normal, QIcon::Off);
166 PropertiesPaste->setIcon(icon5);
168 horizontalLayout->addWidget(PropertiesPaste);
170 PropertiesRestoreDefaults =
new QPushButton(PropertiesButtons);
171 PropertiesRestoreDefaults->setObjectName(QString::fromUtf8(
"PropertiesRestoreDefaults"));
172 PropertiesRestoreDefaults->setMaximumSize(QSize(50, 16777215));
174 icon6.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqReset.svg"), QSize(), QIcon::Normal, QIcon::Off);
175 PropertiesRestoreDefaults->setIcon(icon6);
177 horizontalLayout->addWidget(PropertiesRestoreDefaults);
179 PropertiesSaveAsDefaults =
new QPushButton(PropertiesButtons);
180 PropertiesSaveAsDefaults->setObjectName(QString::fromUtf8(
"PropertiesSaveAsDefaults"));
181 PropertiesSaveAsDefaults->setMaximumSize(QSize(50, 16777215));
183 horizontalLayout->addWidget(PropertiesSaveAsDefaults);
186 ScrollAreaLayout->addWidget(PropertiesButtons);
188 PropertiesFrame =
new QFrame(scrollAreaWidgetContents);
189 PropertiesFrame->setObjectName(QString::fromUtf8(
"PropertiesFrame"));
190 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
191 sizePolicy.setHorizontalStretch(0);
192 sizePolicy.setVerticalStretch(0);
193 sizePolicy.setHeightForWidth(PropertiesFrame->sizePolicy().hasHeightForWidth());
194 PropertiesFrame->setSizePolicy(sizePolicy);
195 PropertiesFrame->setFrameShape(QFrame::NoFrame);
196 PropertiesFrame->setFrameShadow(QFrame::Plain);
198 ScrollAreaLayout->addWidget(PropertiesFrame);
200 DisplayButtons =
new QWidget(scrollAreaWidgetContents);
201 DisplayButtons->setObjectName(QString::fromUtf8(
"DisplayButtons"));
202 horizontalLayout_2 =
new QHBoxLayout(DisplayButtons);
204 horizontalLayout_2->setSpacing(6);
206 horizontalLayout_2->setContentsMargins(0, 0, 0, 0);
207 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
209 DisplayButton->setObjectName(QString::fromUtf8(
"DisplayButton"));
210 DisplayButton->setProperty(
"checked", QVariant(
true));
212 horizontalLayout_2->addWidget(DisplayButton);
214 DisplayCopy =
new QPushButton(DisplayButtons);
215 DisplayCopy->setObjectName(QString::fromUtf8(
"DisplayCopy"));
216 DisplayCopy->setEnabled(
false);
217 DisplayCopy->setMaximumSize(QSize(50, 16777215));
218 DisplayCopy->setIcon(icon4);
220 horizontalLayout_2->addWidget(DisplayCopy);
222 DisplayPaste =
new QPushButton(DisplayButtons);
223 DisplayPaste->setObjectName(QString::fromUtf8(
"DisplayPaste"));
224 DisplayPaste->setEnabled(
false);
225 DisplayPaste->setMaximumSize(QSize(50, 16777215));
226 DisplayPaste->setIcon(icon5);
228 horizontalLayout_2->addWidget(DisplayPaste);
230 DisplayRestoreDefaults =
new QPushButton(DisplayButtons);
231 DisplayRestoreDefaults->setObjectName(QString::fromUtf8(
"DisplayRestoreDefaults"));
232 DisplayRestoreDefaults->setMaximumSize(QSize(50, 16777215));
233 DisplayRestoreDefaults->setIcon(icon6);
235 horizontalLayout_2->addWidget(DisplayRestoreDefaults);
237 DisplaySaveAsDefaults =
new QPushButton(DisplayButtons);
238 DisplaySaveAsDefaults->setObjectName(QString::fromUtf8(
"DisplaySaveAsDefaults"));
239 DisplaySaveAsDefaults->setMaximumSize(QSize(50, 16777215));
241 horizontalLayout_2->addWidget(DisplaySaveAsDefaults);
244 ScrollAreaLayout->addWidget(DisplayButtons);
246 DisplayFrame =
new QFrame(scrollAreaWidgetContents);
247 DisplayFrame->setObjectName(QString::fromUtf8(
"DisplayFrame"));
248 sizePolicy.setHeightForWidth(DisplayFrame->sizePolicy().hasHeightForWidth());
249 DisplayFrame->setSizePolicy(sizePolicy);
250 DisplayFrame->setFrameShape(QFrame::NoFrame);
251 DisplayFrame->setFrameShadow(QFrame::Plain);
253 ScrollAreaLayout->addWidget(DisplayFrame);
255 ViewButtons =
new QWidget(scrollAreaWidgetContents);
256 ViewButtons->setObjectName(QString::fromUtf8(
"ViewButtons"));
257 horizontalLayout_3 =
new QHBoxLayout(ViewButtons);
259 horizontalLayout_3->setSpacing(6);
261 horizontalLayout_3->setContentsMargins(0, 0, 0, 0);
262 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
264 ViewButton->setObjectName(QString::fromUtf8(
"ViewButton"));
265 ViewButton->setProperty(
"checked", QVariant(
true));
267 horizontalLayout_3->addWidget(ViewButton);
269 ViewCopy =
new QPushButton(ViewButtons);
270 ViewCopy->setObjectName(QString::fromUtf8(
"ViewCopy"));
271 ViewCopy->setEnabled(
false);
272 ViewCopy->setMaximumSize(QSize(50, 16777215));
273 ViewCopy->setIcon(icon4);
275 horizontalLayout_3->addWidget(ViewCopy);
277 ViewPaste =
new QPushButton(ViewButtons);
278 ViewPaste->setObjectName(QString::fromUtf8(
"ViewPaste"));
279 ViewPaste->setEnabled(
false);
280 ViewPaste->setMaximumSize(QSize(50, 16777215));
281 ViewPaste->setIcon(icon5);
283 horizontalLayout_3->addWidget(ViewPaste);
285 ViewRestoreDefaults =
new QPushButton(ViewButtons);
286 ViewRestoreDefaults->setObjectName(QString::fromUtf8(
"ViewRestoreDefaults"));
287 ViewRestoreDefaults->setMaximumSize(QSize(50, 16777215));
288 ViewRestoreDefaults->setIcon(icon6);
290 horizontalLayout_3->addWidget(ViewRestoreDefaults);
292 ViewSaveAsDefaults =
new QPushButton(ViewButtons);
293 ViewSaveAsDefaults->setObjectName(QString::fromUtf8(
"ViewSaveAsDefaults"));
294 ViewSaveAsDefaults->setMaximumSize(QSize(50, 16777215));
296 horizontalLayout_3->addWidget(ViewSaveAsDefaults);
299 ScrollAreaLayout->addWidget(ViewButtons);
301 ViewFrame =
new QFrame(scrollAreaWidgetContents);
302 ViewFrame->setObjectName(QString::fromUtf8(
"ViewFrame"));
303 ViewFrame->setFrameShape(QFrame::NoFrame);
304 ViewFrame->setFrameShadow(QFrame::Plain);
306 ScrollAreaLayout->addWidget(ViewFrame);
308 verticalSpacer =
new QSpacerItem(0, 9, QSizePolicy::Minimum, QSizePolicy::Expanding);
310 ScrollAreaLayout->addItem(verticalSpacer);
312 ScrollAreaLayout->setStretch(6, 1);
313 scrollArea->setWidget(scrollAreaWidgetContents);
315 verticalLayout->addWidget(scrollArea);
320 Accept->setDefault(
true);
323 QMetaObject::connectSlotsByName(propertiesPanel);
328 propertiesPanel->setWindowTitle(QCoreApplication::translate(
"propertiesPanel",
"Properties Panel",
nullptr));
329 Accept->setText(QCoreApplication::translate(
"propertiesPanel",
"Apply",
nullptr));
330 #if QT_CONFIG(tooltip) 331 Reset->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Resets any changed properties to their values from the last time 'Apply' was clicked.",
nullptr));
332 #endif // QT_CONFIG(tooltip) 333 Reset->setText(QCoreApplication::translate(
"propertiesPanel",
"Reset",
nullptr));
334 Delete->setText(QCoreApplication::translate(
"propertiesPanel",
"Delete",
nullptr));
335 Help->setText(QString());
336 #if QT_CONFIG(shortcut) 337 Help->setShortcut(QCoreApplication::translate(
"propertiesPanel",
"Ctrl+H",
nullptr));
338 #endif // QT_CONFIG(shortcut) 339 PropertiesButton->setProperty(
"text", QVariant(QCoreApplication::translate(
"propertiesPanel",
"Properties",
nullptr)));
340 #if QT_CONFIG(tooltip) 341 PropertiesCopy->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Copy properties",
nullptr));
342 #endif // QT_CONFIG(tooltip) 343 PropertiesCopy->
setText(QString());
344 #if QT_CONFIG(tooltip) 345 PropertiesPaste->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Paste copied properties",
nullptr));
346 #endif // QT_CONFIG(tooltip) 347 PropertiesPaste->setText(QString());
348 #if QT_CONFIG(tooltip) 349 PropertiesRestoreDefaults->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Restore application default setting values",
nullptr));
350 #endif // QT_CONFIG(tooltip) 351 PropertiesRestoreDefaults->setText(QString());
352 #if QT_CONFIG(tooltip) 353 PropertiesSaveAsDefaults->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Save current settings values as default",
nullptr));
354 #endif // QT_CONFIG(tooltip) 355 PropertiesSaveAsDefaults->setText(QString());
356 DisplayButton->setProperty(
"text", QVariant(QCoreApplication::translate(
"propertiesPanel",
"Display",
nullptr)));
357 #if QT_CONFIG(tooltip) 358 DisplayCopy->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Copy display properties",
nullptr));
359 #endif // QT_CONFIG(tooltip) 360 DisplayCopy->
setText(QString());
361 #if QT_CONFIG(tooltip) 362 DisplayPaste->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Paste copied display properties",
nullptr));
363 #endif // QT_CONFIG(tooltip) 364 DisplayPaste->setText(QString());
365 #if QT_CONFIG(tooltip) 366 DisplayRestoreDefaults->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Restore application default setting values for display",
nullptr));
367 #endif // QT_CONFIG(tooltip) 368 DisplayRestoreDefaults->setText(QString());
369 #if QT_CONFIG(tooltip) 370 DisplaySaveAsDefaults->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Save current display settings values as default",
nullptr));
371 #endif // QT_CONFIG(tooltip) 372 DisplaySaveAsDefaults->setText(QString());
373 ViewButton->setProperty(
"text", QVariant(QCoreApplication::translate(
"propertiesPanel",
"View",
nullptr)));
374 #if QT_CONFIG(tooltip) 375 ViewCopy->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Copy view properties",
nullptr));
376 #endif // QT_CONFIG(tooltip) 378 #if QT_CONFIG(tooltip) 379 ViewPaste->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Paste view properties",
nullptr));
380 #endif // QT_CONFIG(tooltip) 381 ViewPaste->setText(QString());
382 #if QT_CONFIG(tooltip) 383 ViewRestoreDefaults->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Restore application default setting values for view",
nullptr));
384 #endif // QT_CONFIG(tooltip) 385 ViewRestoreDefaults->setText(QString());
386 #if QT_CONFIG(tooltip) 387 ViewSaveAsDefaults->setToolTip(QCoreApplication::translate(
"propertiesPanel",
"Save current view settings values as default",
nullptr));
388 #endif // QT_CONFIG(tooltip) 389 ViewSaveAsDefaults->setText(QString());
400 #endif // UI_PQPROPERTIESPANEL_H
QPushButton * PropertiesCopy
QPushButton * PropertiesPaste
QHBoxLayout * horizontalLayout
pqExpanderButton * DisplayButton
QVBoxLayout * verticalLayout
QHBoxLayout * horizontalLayout_2
QPushButton * DisplayCopy
QWidget * PropertiesButtons
pqExpanderButton * PropertiesButton
pqSearchBox is a line edit and an advanced tool button in the same layout.
QSpacerItem * verticalSpacer
QPushButton * PropertiesSaveAsDefaults
QHBoxLayout * ButtonLayout
QPushButton * ViewRestoreDefaults
pqExpanderButton * ViewButton
QWidget * scrollAreaWidgetContents
void retranslateUi(QWidget *propertiesPanel)
QVBoxLayout * ScrollAreaLayout
QPushButton * DisplayRestoreDefaults
QHBoxLayout * horizontalLayout_3
QPushButton * ViewSaveAsDefaults
QPushButton * DisplaySaveAsDefaults
QHBoxLayout * SearchBoxLayout
QPushButton * PropertiesRestoreDefaults
QPushButton * DisplayPaste
void setupUi(QWidget *propertiesPanel)