9 #ifndef UI_PQSCALARVALUELISTPROPERTYWIDGET_H 10 #define UI_PQSCALARVALUELISTPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QHeaderView> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QSpacerItem> 19 #include <QtWidgets/QToolButton> 20 #include <QtWidgets/QVBoxLayout> 21 #include <QtWidgets/QWidget> 40 void setupUi(QWidget *ScalarValueListPropertyWidget)
42 if (ScalarValueListPropertyWidget->objectName().isEmpty())
43 ScalarValueListPropertyWidget->setObjectName(QString::fromUtf8(
"ScalarValueListPropertyWidget"));
44 ScalarValueListPropertyWidget->resize(212, 215);
45 gridLayout =
new QGridLayout(ScalarValueListPropertyWidget);
46 gridLayout->setContentsMargins(0, 0, 0, 0);
47 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
48 gridLayout->setHorizontalSpacing(0);
50 Table->setObjectName(QString::fromUtf8(
"Table"));
51 Table->setDragDropMode(QAbstractItemView::InternalMove);
52 Table->setDefaultDropAction(Qt::MoveAction);
53 Table->setAlternatingRowColors(
true);
54 Table->setSelectionBehavior(QAbstractItemView::SelectRows);
55 Table->setProperty(
"maximumRowCountBeforeScrolling", QVariant(10));
57 gridLayout->addWidget(Table, 1, 0, 1, 1);
59 verticalLayout =
new QVBoxLayout();
60 verticalLayout->setSpacing(1);
61 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
62 Add =
new QToolButton(ScalarValueListPropertyWidget);
63 Add->setObjectName(QString::fromUtf8(
"Add"));
65 icon.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
68 verticalLayout->addWidget(Add);
70 Remove =
new QToolButton(ScalarValueListPropertyWidget);
71 Remove->setObjectName(QString::fromUtf8(
"Remove"));
73 icon1.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
74 Remove->setIcon(icon1);
76 verticalLayout->addWidget(Remove);
78 AddRange =
new QToolButton(ScalarValueListPropertyWidget);
79 AddRange->setObjectName(QString::fromUtf8(
"AddRange"));
81 icon2.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqRulerScale16.png"), QSize(), QIcon::Normal, QIcon::Off);
82 AddRange->setIcon(icon2);
84 verticalLayout->addWidget(AddRange);
86 verticalSpacer =
new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
88 verticalLayout->addItem(verticalSpacer);
90 RestoreDefaults =
new QToolButton(ScalarValueListPropertyWidget);
91 RestoreDefaults->setObjectName(QString::fromUtf8(
"RestoreDefaults"));
93 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqReset.svg"), QSize(), QIcon::Normal, QIcon::Off);
94 RestoreDefaults->setIcon(icon3);
96 verticalLayout->addWidget(RestoreDefaults);
98 RemoveAll =
new QToolButton(ScalarValueListPropertyWidget);
99 RemoveAll->setObjectName(QString::fromUtf8(
"RemoveAll"));
101 icon4.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqDelete.svg"), QSize(), QIcon::Normal, QIcon::Off);
102 RemoveAll->setIcon(icon4);
104 verticalLayout->addWidget(RemoveAll);
107 gridLayout->addLayout(verticalLayout, 1, 1, 1, 1);
109 ScalarRangeLabel =
new QLabel(ScalarValueListPropertyWidget);
110 ScalarRangeLabel->setObjectName(QString::fromUtf8(
"ScalarRangeLabel"));
112 gridLayout->addWidget(ScalarRangeLabel, 0, 0, 1, 2);
117 QMetaObject::connectSlotsByName(ScalarValueListPropertyWidget);
122 ScalarValueListPropertyWidget->setWindowTitle(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"Form",
nullptr));
123 #if QT_CONFIG(tooltip) 124 Add->setToolTip(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"Add new entry",
nullptr));
125 #endif // QT_CONFIG(tooltip) 126 Add->setText(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"...",
nullptr));
127 #if QT_CONFIG(tooltip) 128 Remove->setToolTip(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"Remove current entry",
nullptr));
129 #endif // QT_CONFIG(tooltip) 130 Remove->setText(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"...",
nullptr));
131 #if QT_CONFIG(tooltip) 132 AddRange->setToolTip(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"Add a range of values",
nullptr));
133 #endif // QT_CONFIG(tooltip) 134 AddRange->setText(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"...",
nullptr));
135 #if QT_CONFIG(tooltip) 136 RestoreDefaults->setToolTip(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"Restore default values of the property",
nullptr));
137 #endif // QT_CONFIG(tooltip) 138 RestoreDefaults->setText(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"...",
nullptr));
139 #if QT_CONFIG(tooltip) 140 RemoveAll->setToolTip(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"Remove all entries",
nullptr));
141 #endif // QT_CONFIG(tooltip) 142 RemoveAll->setText(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"...",
nullptr));
143 ScalarRangeLabel->setText(QCoreApplication::translate(
"ScalarValueListPropertyWidget",
"<html><head/><body><p><span style=\" font-weight:600;\">Value Range:</span> [%1, %2]</p></body></html>",
nullptr));
154 #endif // UI_PQSCALARVALUELISTPROPERTYWIDGET_H
pqExpandableTableView extends pqTableView to add support for the following features: ...