9 #ifndef UI_PQSESAMECONVERSIONSPANELWIDGET_H 10 #define UI_PQSESAMECONVERSIONSPANELWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QRadioButton> 20 #include <QtWidgets/QScrollArea> 21 #include <QtWidgets/QToolButton> 22 #include <QtWidgets/QWidget> 46 void setupUi(QWidget *SESAMEConversionsPanelWidget)
48 if (SESAMEConversionsPanelWidget->objectName().isEmpty())
49 SESAMEConversionsPanelWidget->setObjectName(QString::fromUtf8(
"SESAMEConversionsPanelWidget"));
50 SESAMEConversionsPanelWidget->resize(402, 187);
51 gridLayout_5 =
new QGridLayout(SESAMEConversionsPanelWidget);
52 gridLayout_5->setObjectName(QString::fromUtf8(
"gridLayout_5"));
53 scrollArea =
new QScrollArea(SESAMEConversionsPanelWidget);
54 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
55 scrollArea->setFrameShape(QFrame::NoFrame);
56 scrollArea->setFrameShadow(QFrame::Plain);
57 scrollArea->setWidgetResizable(
true);
58 scrollAreaWidgetContents =
new QWidget();
59 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
60 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 384, 107));
61 horizontalLayout =
new QHBoxLayout(scrollAreaWidgetContents);
62 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
63 horizontalLayout->setContentsMargins(0, 0, 0, 0);
65 PropertiesView->setObjectName(QString::fromUtf8(
"PropertiesView"));
67 horizontalLayout->addWidget(PropertiesView);
69 scrollArea->setWidget(scrollAreaWidgetContents);
71 gridLayout_5->addWidget(scrollArea, 3, 0, 1, 1);
73 horizontalLayout_3 =
new QHBoxLayout();
74 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
75 SESAME =
new QRadioButton(SESAMEConversionsPanelWidget);
76 SESAME->setObjectName(QString::fromUtf8(
"SESAME"));
78 horizontalLayout_3->addWidget(SESAME);
80 SI =
new QRadioButton(SESAMEConversionsPanelWidget);
81 SI->setObjectName(QString::fromUtf8(
"SI"));
84 horizontalLayout_3->addWidget(SI);
86 CGS =
new QRadioButton(SESAMEConversionsPanelWidget);
87 CGS->setObjectName(QString::fromUtf8(
"CGS"));
89 horizontalLayout_3->addWidget(CGS);
91 Custom =
new QRadioButton(SESAMEConversionsPanelWidget);
92 Custom->setObjectName(QString::fromUtf8(
"Custom"));
94 horizontalLayout_3->addWidget(Custom);
97 gridLayout_5->addLayout(horizontalLayout_3, 2, 0, 1, 1);
99 horizontalLayout_2 =
new QHBoxLayout();
100 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
101 ConversionFileLabel =
new QLabel(SESAMEConversionsPanelWidget);
102 ConversionFileLabel->setObjectName(QString::fromUtf8(
"ConversionFileLabel"));
103 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
104 sizePolicy.setHorizontalStretch(0);
105 sizePolicy.setVerticalStretch(0);
106 sizePolicy.setHeightForWidth(ConversionFileLabel->sizePolicy().hasHeightForWidth());
107 ConversionFileLabel->setSizePolicy(sizePolicy);
109 horizontalLayout_2->addWidget(ConversionFileLabel);
111 ConversionFile =
new QLabel(SESAMEConversionsPanelWidget);
112 ConversionFile->setObjectName(QString::fromUtf8(
"ConversionFile"));
113 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Preferred);
114 sizePolicy1.setHorizontalStretch(0);
115 sizePolicy1.setVerticalStretch(0);
116 sizePolicy1.setHeightForWidth(ConversionFile->sizePolicy().hasHeightForWidth());
117 ConversionFile->setSizePolicy(sizePolicy1);
118 ConversionFile->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
120 horizontalLayout_2->addWidget(ConversionFile);
122 RestoreDefaultConversionsFile =
new QToolButton(SESAMEConversionsPanelWidget);
123 RestoreDefaultConversionsFile->setObjectName(QString::fromUtf8(
"RestoreDefaultConversionsFile"));
125 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqReset.svg"), QSize(), QIcon::Normal, QIcon::Off);
126 RestoreDefaultConversionsFile->setIcon(icon);
128 horizontalLayout_2->addWidget(RestoreDefaultConversionsFile);
130 ConversionFileButton =
new QToolButton(SESAMEConversionsPanelWidget);
131 ConversionFileButton->setObjectName(QString::fromUtf8(
"ConversionFileButton"));
133 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqOpen.svg"), QSize(), QIcon::Normal, QIcon::Off);
134 ConversionFileButton->setIcon(icon1);
136 horizontalLayout_2->addWidget(ConversionFileButton);
139 gridLayout_5->addLayout(horizontalLayout_2, 0, 0, 1, 1);
144 QMetaObject::connectSlotsByName(SESAMEConversionsPanelWidget);
149 SESAMEConversionsPanelWidget->setWindowTitle(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Form",
nullptr));
150 #if QT_CONFIG(tooltip) 151 SESAME->setToolTip(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Set factors based on SESAME default",
nullptr));
152 #endif // QT_CONFIG(tooltip) 153 SESAME->setText(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"SESAME",
nullptr));
154 #if QT_CONFIG(tooltip) 155 SI->setToolTip(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Set factors based on SI",
nullptr));
156 #endif // QT_CONFIG(tooltip) 157 SI->setText(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"SI",
nullptr));
158 #if QT_CONFIG(tooltip) 159 CGS->setToolTip(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Set factors based on CGS",
nullptr));
160 #endif // QT_CONFIG(tooltip) 161 CGS->setText(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"CGS",
nullptr));
162 #if QT_CONFIG(tooltip) 163 Custom->setToolTip(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Set custom factors",
nullptr));
164 #endif // QT_CONFIG(tooltip) 165 Custom->setText(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Custom",
nullptr));
166 #if QT_CONFIG(tooltip) 167 ConversionFileLabel->setToolTip(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Filename of Conversions File",
nullptr));
168 #endif // QT_CONFIG(tooltip) 169 ConversionFileLabel->setText(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"File Name:",
nullptr));
170 #if QT_CONFIG(tooltip) 171 ConversionFile->setToolTip(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Filename of Conversions File",
nullptr));
172 #endif // QT_CONFIG(tooltip) 173 ConversionFile->setText(QString());
174 #if QT_CONFIG(tooltip) 175 RestoreDefaultConversionsFile->setToolTip(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Restore default conversion file",
nullptr));
176 #endif // QT_CONFIG(tooltip) 177 RestoreDefaultConversionsFile->setText(QString());
178 #if QT_CONFIG(tooltip) 179 ConversionFileButton->setToolTip(QCoreApplication::translate(
"SESAMEConversionsPanelWidget",
"Load Conversions file",
nullptr));
180 #endif // QT_CONFIG(tooltip) 181 ConversionFileButton->setText(QString());
192 #endif // UI_PQSESAMECONVERSIONSPANELWIDGET_H
pqExpandableTableView extends pqTableView to add support for the following features: ...