9 #ifndef UI_PQSPREADSHEETVIEWDECORATOR_H 10 #define UI_PQSPREADSHEETVIEWDECORATOR_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QAction> 15 #include <QtWidgets/QApplication> 16 #include <QtWidgets/QComboBox> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QSpinBox> 21 #include <QtWidgets/QToolButton> 22 #include <QtWidgets/QWidget> 48 if (pqSpreadSheetViewDecorator->objectName().isEmpty())
49 pqSpreadSheetViewDecorator->setObjectName(QString::fromUtf8(
"pqSpreadSheetViewDecorator"));
50 pqSpreadSheetViewDecorator->resize(627, 32);
51 actionExport =
new QAction(pqSpreadSheetViewDecorator);
52 actionExport->setObjectName(QString::fromUtf8(
"actionExport"));
54 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqSaveTable32.png"), QSize(), QIcon::Normal, QIcon::Off);
55 actionExport->setIcon(icon);
56 hboxLayout =
new QHBoxLayout(pqSpreadSheetViewDecorator);
57 hboxLayout->setSpacing(1);
58 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
59 hboxLayout->setContentsMargins(0, 0, 0, 0);
60 label =
new QLabel(pqSpreadSheetViewDecorator);
61 label->setObjectName(QString::fromUtf8(
"label"));
63 hboxLayout->addWidget(label);
66 Source->setObjectName(QString::fromUtf8(
"Source"));
67 Source->setSizeAdjustPolicy(QComboBox::AdjustToContents);
69 hboxLayout->addWidget(Source);
71 label_2 =
new QLabel(pqSpreadSheetViewDecorator);
72 label_2->setObjectName(QString::fromUtf8(
"label_2"));
74 hboxLayout->addWidget(label_2);
76 Attribute =
new QComboBox(pqSpreadSheetViewDecorator);
77 Attribute->setObjectName(QString::fromUtf8(
"Attribute"));
78 Attribute->setSizeAdjustPolicy(QComboBox::AdjustToContents);
80 hboxLayout->addWidget(Attribute);
82 label_Precision =
new QLabel(pqSpreadSheetViewDecorator);
83 label_Precision->setObjectName(QString::fromUtf8(
"label_Precision"));
87 label_Precision->setFont(font);
89 hboxLayout->addWidget(label_Precision);
91 spinBoxPrecision =
new QSpinBox(pqSpreadSheetViewDecorator);
92 spinBoxPrecision->setObjectName(QString::fromUtf8(
"spinBoxPrecision"));
93 spinBoxPrecision->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
94 spinBoxPrecision->setMaximum(32);
96 hboxLayout->addWidget(spinBoxPrecision);
98 ToggleFixed =
new QToolButton(pqSpreadSheetViewDecorator);
99 ToggleFixed->setObjectName(QString::fromUtf8(
"ToggleFixed"));
101 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqFixedRepr32.png"), QSize(), QIcon::Normal, QIcon::Off);
102 ToggleFixed->setIcon(icon1);
103 ToggleFixed->setCheckable(
true);
105 hboxLayout->addWidget(ToggleFixed);
107 SelectionOnly =
new QToolButton(pqSpreadSheetViewDecorator);
108 SelectionOnly->setObjectName(QString::fromUtf8(
"SelectionOnly"));
110 icon2.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqSelect16.png"), QSize(), QIcon::Normal, QIcon::Off);
111 SelectionOnly->setIcon(icon2);
112 SelectionOnly->setCheckable(
true);
113 SelectionOnly->setToolButtonStyle(Qt::ToolButtonIconOnly);
115 hboxLayout->addWidget(SelectionOnly);
117 ToggleColumnVisibility =
new QToolButton(pqSpreadSheetViewDecorator);
118 ToggleColumnVisibility->setObjectName(QString::fromUtf8(
"ToggleColumnVisibility"));
120 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqRectilinearGrid16.png"), QSize(), QIcon::Normal, QIcon::Off);
121 ToggleColumnVisibility->setIcon(icon3);
122 ToggleColumnVisibility->setPopupMode(QToolButton::InstantPopup);
124 hboxLayout->addWidget(ToggleColumnVisibility);
126 ToggleCellConnectivity =
new QToolButton(pqSpreadSheetViewDecorator);
127 ToggleCellConnectivity->setObjectName(QString::fromUtf8(
"ToggleCellConnectivity"));
129 icon4.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqProgrammableFilter.svg"), QSize(), QIcon::Normal, QIcon::Off);
130 ToggleCellConnectivity->setIcon(icon4);
131 ToggleCellConnectivity->setCheckable(
true);
133 hboxLayout->addWidget(ToggleCellConnectivity);
135 ToggleFieldData =
new QToolButton(pqSpreadSheetViewDecorator);
136 ToggleFieldData->setObjectName(QString::fromUtf8(
"ToggleFieldData"));
138 icon5.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqGlobalData.svg"), QSize(), QIcon::Normal, QIcon::Off);
139 ToggleFieldData->setIcon(icon5);
140 ToggleFieldData->setCheckable(
true);
142 hboxLayout->addWidget(ToggleFieldData);
144 ExportSpreadsheet =
new QToolButton(pqSpreadSheetViewDecorator);
145 ExportSpreadsheet->setObjectName(QString::fromUtf8(
"ExportSpreadsheet"));
147 hboxLayout->addWidget(ExportSpreadsheet);
149 spacerItem =
new QSpacerItem(58, 23, QSizePolicy::Expanding, QSizePolicy::Minimum);
151 hboxLayout->addItem(spacerItem);
156 QMetaObject::connectSlotsByName(pqSpreadSheetViewDecorator);
161 pqSpreadSheetViewDecorator->setWindowTitle(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Form",
nullptr));
162 #if QT_CONFIG(tooltip) 163 actionExport->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Export Spreadsheet",
nullptr));
164 #endif // QT_CONFIG(tooltip) 165 label->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"<b>Showing </b>",
nullptr));
166 label_2->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"<b> Attribute:</b>",
nullptr));
167 label_Precision->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Precision:",
nullptr));
168 #if QT_CONFIG(tooltip) 169 ToggleFixed->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Switches between scientific and fixed-point representation",
nullptr));
170 #endif // QT_CONFIG(tooltip) 171 #if QT_CONFIG(statustip) 172 ToggleFixed->setStatusTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle fixed-point representation (always show #Precision digits)",
nullptr));
173 #endif // QT_CONFIG(statustip) 174 ToggleFixed->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"FixedRep",
nullptr));
175 #if QT_CONFIG(tooltip) 176 SelectionOnly->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Show only selected elements.",
nullptr));
177 #endif // QT_CONFIG(tooltip) 178 #if QT_CONFIG(statustip) 179 SelectionOnly->setStatusTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Show only selected elements.",
nullptr));
180 #endif // QT_CONFIG(statustip) 181 SelectionOnly->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Selected",
nullptr));
182 #if QT_CONFIG(tooltip) 183 ToggleColumnVisibility->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle column visibility",
nullptr));
184 #endif // QT_CONFIG(tooltip) 185 #if QT_CONFIG(statustip) 186 ToggleColumnVisibility->setStatusTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle column visibility",
nullptr));
187 #endif // QT_CONFIG(statustip) 188 ToggleColumnVisibility->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle column visibility",
nullptr));
189 #if QT_CONFIG(tooltip) 190 ToggleCellConnectivity->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle cell connectivity visibility",
nullptr));
191 #endif // QT_CONFIG(tooltip) 192 ToggleCellConnectivity->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"...",
nullptr));
193 #if QT_CONFIG(tooltip) 194 ToggleFieldData->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle field data visibility",
nullptr));
195 #endif // QT_CONFIG(tooltip) 196 ToggleFieldData->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"...",
nullptr));
207 #endif // UI_PQSPREADSHEETVIEWDECORATOR_H
QToolButton * ToggleCellConnectivity
QToolButton * ToggleFixed
void setupUi(QWidget *pqSpreadSheetViewDecorator)
QToolButton * SelectionOnly
QToolButton * ToggleColumnVisibility
QSpinBox * spinBoxPrecision
pqOutputPortComboBox * Source
QToolButton * ExportSpreadsheet
QToolButton * ToggleFieldData
pqSpreadSheetViewDecorator adds decoration to a spread-sheet view.
void retranslateUi(QWidget *pqSpreadSheetViewDecorator)
pqOutputPortComboBox is a combo-box that shows all outputports for all sources/filters.