9 #ifndef UI_PQCUSTOMVIEWPOINTBUTTONDIALOG_H 10 #define UI_PQCUSTOMVIEWPOINTBUTTONDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QDialog> 16 #include <QtWidgets/QDialogButtonBox> 17 #include <QtWidgets/QGridLayout> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QPushButton> 21 #include <QtWidgets/QScrollArea> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 50 if (pqCustomViewpointButtonDialog->objectName().isEmpty())
51 pqCustomViewpointButtonDialog->setObjectName(QString::fromUtf8(
"pqCustomViewpointButtonDialog"));
52 pqCustomViewpointButtonDialog->resize(437, 433);
53 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
54 sizePolicy.setHorizontalStretch(0);
55 sizePolicy.setVerticalStretch(0);
56 sizePolicy.setHeightForWidth(pqCustomViewpointButtonDialog->sizePolicy().hasHeightForWidth());
57 pqCustomViewpointButtonDialog->setSizePolicy(sizePolicy);
58 verticalLayout =
new QVBoxLayout(pqCustomViewpointButtonDialog);
59 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
60 scrollArea =
new QScrollArea(pqCustomViewpointButtonDialog);
61 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
62 scrollArea->setWidgetResizable(
true);
63 scrollAreaWidgetContents_2 =
new QWidget();
64 scrollAreaWidgetContents_2->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents_2"));
65 scrollAreaWidgetContents_2->setGeometry(QRect(0, 0, 419, 388));
66 verticalLayout_4 =
new QVBoxLayout(scrollAreaWidgetContents_2);
67 verticalLayout_4->setObjectName(QString::fromUtf8(
"verticalLayout_4"));
68 gridLayout =
new QGridLayout();
69 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
70 label_8 =
new QLabel(scrollAreaWidgetContents_2);
71 label_8->setObjectName(QString::fromUtf8(
"label_8"));
74 font.setUnderline(
true);
76 label_8->setFont(font);
77 label_8->setAlignment(Qt::AlignCenter);
79 gridLayout->addWidget(label_8, 0, 1, 1, 1);
81 label_9 =
new QLabel(scrollAreaWidgetContents_2);
82 label_9->setObjectName(QString::fromUtf8(
"label_9"));
83 label_9->setFont(font);
84 label_9->setAlignment(Qt::AlignCenter);
86 gridLayout->addWidget(label_9, 0, 2, 1, 1);
88 label_7 =
new QLabel(scrollAreaWidgetContents_2);
89 label_7->setObjectName(QString::fromUtf8(
"label_7"));
90 label_7->setFont(font);
91 label_7->setAlignment(Qt::AlignCenter);
93 gridLayout->addWidget(label_7, 0, 0, 1, 1);
96 verticalLayout_4->addLayout(gridLayout);
98 verticalSpacer =
new QSpacerItem(20, 17, QSizePolicy::Minimum, QSizePolicy::Expanding);
100 verticalLayout_4->addItem(verticalSpacer);
102 scrollArea->setWidget(scrollAreaWidgetContents_2);
104 verticalLayout->addWidget(scrollArea);
106 horizontalLayout =
new QHBoxLayout();
107 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
108 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
110 horizontalLayout->addItem(horizontalSpacer);
112 add =
new QPushButton(pqCustomViewpointButtonDialog);
113 add->setObjectName(QString::fromUtf8(
"add"));
115 icon.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
118 horizontalLayout->addWidget(add);
120 clearAll =
new QPushButton(pqCustomViewpointButtonDialog);
121 clearAll->setObjectName(QString::fromUtf8(
"clearAll"));
123 horizontalLayout->addWidget(clearAll);
125 importAll =
new QPushButton(pqCustomViewpointButtonDialog);
126 importAll->setObjectName(QString::fromUtf8(
"importAll"));
128 horizontalLayout->addWidget(importAll);
130 exportAll =
new QPushButton(pqCustomViewpointButtonDialog);
131 exportAll->setObjectName(QString::fromUtf8(
"exportAll"));
133 horizontalLayout->addWidget(exportAll);
136 verticalLayout->addLayout(horizontalLayout);
138 buttonBox =
new QDialogButtonBox(pqCustomViewpointButtonDialog);
139 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
140 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
142 verticalLayout->addWidget(buttonBox);
146 QObject::connect(buttonBox, SIGNAL(accepted()), pqCustomViewpointButtonDialog, SLOT(accept()));
147 QObject::connect(buttonBox, SIGNAL(rejected()), pqCustomViewpointButtonDialog, SLOT(reject()));
149 QMetaObject::connectSlotsByName(pqCustomViewpointButtonDialog);
154 pqCustomViewpointButtonDialog->setWindowTitle(QCoreApplication::translate(
"pqCustomViewpointButtonDialog",
"Configure Custom Viewpoints",
nullptr));
155 label_8->setText(QCoreApplication::translate(
"pqCustomViewpointButtonDialog",
"Viewpoint Name",
nullptr));
156 label_9->setText(QCoreApplication::translate(
"pqCustomViewpointButtonDialog",
"Assign",
nullptr));
157 label_7->setText(QCoreApplication::translate(
"pqCustomViewpointButtonDialog",
"Button",
nullptr));
158 #if QT_CONFIG(tooltip) 159 add->setToolTip(QCoreApplication::translate(
"pqCustomViewpointButtonDialog",
"Add new custom viewpoint",
nullptr));
160 #endif // QT_CONFIG(tooltip) 161 add->setText(QString());
162 clearAll->setText(QCoreApplication::translate(
"pqCustomViewpointButtonDialog",
"Clear All",
nullptr));
163 importAll->setText(QCoreApplication::translate(
"pqCustomViewpointButtonDialog",
"Import...",
nullptr));
164 exportAll->setText(QCoreApplication::translate(
"pqCustomViewpointButtonDialog",
"Export...",
nullptr));
175 #endif // UI_PQCUSTOMVIEWPOINTBUTTONDIALOG_H