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> 47 if (pqSpreadSheetViewDecorator->objectName().isEmpty())
48 pqSpreadSheetViewDecorator->setObjectName(QString::fromUtf8(
"pqSpreadSheetViewDecorator"));
49 pqSpreadSheetViewDecorator->resize(627, 32);
50 actionExport =
new QAction(pqSpreadSheetViewDecorator);
51 actionExport->setObjectName(QString::fromUtf8(
"actionExport"));
53 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqSaveTable32.png"), QSize(), QIcon::Normal, QIcon::Off);
54 actionExport->setIcon(icon);
55 hboxLayout =
new QHBoxLayout(pqSpreadSheetViewDecorator);
56 hboxLayout->setSpacing(1);
57 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
58 hboxLayout->setContentsMargins(0, 0, 0, 0);
59 label =
new QLabel(pqSpreadSheetViewDecorator);
60 label->setObjectName(QString::fromUtf8(
"label"));
62 hboxLayout->addWidget(label);
65 Source->setObjectName(QString::fromUtf8(
"Source"));
66 Source->setSizeAdjustPolicy(QComboBox::AdjustToContents);
68 hboxLayout->addWidget(Source);
70 label_2 =
new QLabel(pqSpreadSheetViewDecorator);
71 label_2->setObjectName(QString::fromUtf8(
"label_2"));
73 hboxLayout->addWidget(label_2);
75 Attribute =
new QComboBox(pqSpreadSheetViewDecorator);
76 Attribute->setObjectName(QString::fromUtf8(
"Attribute"));
77 Attribute->setSizeAdjustPolicy(QComboBox::AdjustToContents);
79 hboxLayout->addWidget(Attribute);
81 label_Precision =
new QLabel(pqSpreadSheetViewDecorator);
82 label_Precision->setObjectName(QString::fromUtf8(
"label_Precision"));
86 label_Precision->setFont(font);
88 hboxLayout->addWidget(label_Precision);
90 spinBoxPrecision =
new QSpinBox(pqSpreadSheetViewDecorator);
91 spinBoxPrecision->setObjectName(QString::fromUtf8(
"spinBoxPrecision"));
92 spinBoxPrecision->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
93 spinBoxPrecision->setMaximum(32);
95 hboxLayout->addWidget(spinBoxPrecision);
97 ToggleFixed =
new QToolButton(pqSpreadSheetViewDecorator);
98 ToggleFixed->setObjectName(QString::fromUtf8(
"ToggleFixed"));
100 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqFixedRepr32.png"), QSize(), QIcon::Normal, QIcon::Off);
101 ToggleFixed->setIcon(icon1);
102 ToggleFixed->setCheckable(
true);
104 hboxLayout->addWidget(ToggleFixed);
106 SelectionOnly =
new QToolButton(pqSpreadSheetViewDecorator);
107 SelectionOnly->setObjectName(QString::fromUtf8(
"SelectionOnly"));
109 icon2.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqSelect16.png"), QSize(), QIcon::Normal, QIcon::Off);
110 SelectionOnly->setIcon(icon2);
111 SelectionOnly->setCheckable(
true);
112 SelectionOnly->setToolButtonStyle(Qt::ToolButtonIconOnly);
114 hboxLayout->addWidget(SelectionOnly);
116 ToggleColumnVisibility =
new QToolButton(pqSpreadSheetViewDecorator);
117 ToggleColumnVisibility->setObjectName(QString::fromUtf8(
"ToggleColumnVisibility"));
119 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqRectilinearGrid16.png"), QSize(), QIcon::Normal, QIcon::Off);
120 ToggleColumnVisibility->setIcon(icon3);
121 ToggleColumnVisibility->setPopupMode(QToolButton::InstantPopup);
123 hboxLayout->addWidget(ToggleColumnVisibility);
125 ToggleCellConnectivity =
new QToolButton(pqSpreadSheetViewDecorator);
126 ToggleCellConnectivity->setObjectName(QString::fromUtf8(
"ToggleCellConnectivity"));
128 icon4.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqProgrammableFilter.svg"), QSize(), QIcon::Normal, QIcon::Off);
129 ToggleCellConnectivity->setIcon(icon4);
130 ToggleCellConnectivity->setCheckable(
true);
132 hboxLayout->addWidget(ToggleCellConnectivity);
134 ExportSpreadsheet =
new QToolButton(pqSpreadSheetViewDecorator);
135 ExportSpreadsheet->setObjectName(QString::fromUtf8(
"ExportSpreadsheet"));
137 hboxLayout->addWidget(ExportSpreadsheet);
139 spacerItem =
new QSpacerItem(58, 23, QSizePolicy::Expanding, QSizePolicy::Minimum);
141 hboxLayout->addItem(spacerItem);
146 QMetaObject::connectSlotsByName(pqSpreadSheetViewDecorator);
151 pqSpreadSheetViewDecorator->setWindowTitle(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Form",
nullptr));
152 #if QT_CONFIG(tooltip) 153 actionExport->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Export Spreadsheet",
nullptr));
154 #endif // QT_CONFIG(tooltip) 155 label->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"<b>Showing </b>",
nullptr));
156 label_2->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"<b> Attribute:</b>",
nullptr));
157 label_Precision->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Precision:",
nullptr));
158 #if QT_CONFIG(tooltip) 159 ToggleFixed->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Switches between scientific and fixed-point representation",
nullptr));
160 #endif // QT_CONFIG(tooltip) 161 #if QT_CONFIG(statustip) 162 ToggleFixed->setStatusTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle fixed-point representation (always show #Precision digits)",
nullptr));
163 #endif // QT_CONFIG(statustip) 164 #if QT_CONFIG(whatsthis) 165 ToggleFixed->setWhatsThis(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle fixed-point representation (always show #Precision digits)",
nullptr));
166 #endif // QT_CONFIG(whatsthis) 167 ToggleFixed->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"FixedRep",
nullptr));
168 #if QT_CONFIG(tooltip) 169 SelectionOnly->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Show only selected elements.",
nullptr));
170 #endif // QT_CONFIG(tooltip) 171 #if QT_CONFIG(statustip) 172 SelectionOnly->setStatusTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Show only selected elements.",
nullptr));
173 #endif // QT_CONFIG(statustip) 174 #if QT_CONFIG(whatsthis) 175 SelectionOnly->setWhatsThis(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Show only selected elements.",
nullptr));
176 #endif // QT_CONFIG(whatsthis) 177 SelectionOnly->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Selected",
nullptr));
178 #if QT_CONFIG(tooltip) 179 ToggleColumnVisibility->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle column visibility",
nullptr));
180 #endif // QT_CONFIG(tooltip) 181 #if QT_CONFIG(statustip) 182 ToggleColumnVisibility->setStatusTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle column visibility",
nullptr));
183 #endif // QT_CONFIG(statustip) 184 #if QT_CONFIG(whatsthis) 185 ToggleColumnVisibility->setWhatsThis(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle column visibility",
nullptr));
186 #endif // QT_CONFIG(whatsthis) 187 ToggleColumnVisibility->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle column visibility",
nullptr));
188 #if QT_CONFIG(tooltip) 189 ToggleCellConnectivity->setToolTip(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"Toggle cell connectivity visibility",
nullptr));
190 #endif // QT_CONFIG(tooltip) 191 ToggleCellConnectivity->setText(QCoreApplication::translate(
"pqSpreadSheetViewDecorator",
"...",
nullptr));
202 #endif // UI_PQSPREADSHEETVIEWDECORATOR_H
QToolButton * ToggleCellConnectivity
QToolButton * ToggleFixed
void setupUi(QWidget *pqSpreadSheetViewDecorator)
QToolButton * SelectionOnly
QToolButton * ToggleColumnVisibility
QSpinBox * spinBoxPrecision
pqOutputPortComboBox * Source
QToolButton * ExportSpreadsheet
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.