ui_pqViewResolutionPropertyWidget.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'pqViewResolutionPropertyWidget.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.15.2
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef UI_PQVIEWRESOLUTIONPROPERTYWIDGET_H
10 #define UI_PQVIEWRESOLUTIONPROPERTYWIDGET_H
11 
12 #include <QtCore/QVariant>
13 #include <QtGui/QIcon>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QHBoxLayout>
16 #include <QtWidgets/QLabel>
17 #include <QtWidgets/QToolButton>
18 #include <QtWidgets/QWidget>
20 #include "pqLineEdit.h"
21 #include "pqScaleByButton.h"
22 
23 QT_BEGIN_NAMESPACE
24 
26 {
27 public:
28  QHBoxLayout *horizontalLayout;
30  QLabel *label;
32  QToolButton *presetResolution;
33  QToolButton *recentResolution;
35  QToolButton *lockAspectRatio;
37 
38  void setupUi(QWidget *ViewResolutionPropertyWidget)
39  {
40  if (ViewResolutionPropertyWidget->objectName().isEmpty())
41  ViewResolutionPropertyWidget->setObjectName(QString::fromUtf8("ViewResolutionPropertyWidget"));
42  ViewResolutionPropertyWidget->resize(277, 27);
43  horizontalLayout = new QHBoxLayout(ViewResolutionPropertyWidget);
44  horizontalLayout->setSpacing(2);
45  horizontalLayout->setContentsMargins(0, 0, 0, 0);
46  horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
47  width = new pqLineEdit(ViewResolutionPropertyWidget);
48  width->setObjectName(QString::fromUtf8("width"));
49 
50  horizontalLayout->addWidget(width);
51 
52  label = new QLabel(ViewResolutionPropertyWidget);
53  label->setObjectName(QString::fromUtf8("label"));
54 
55  horizontalLayout->addWidget(label);
56 
57  height = new pqLineEdit(ViewResolutionPropertyWidget);
58  height->setObjectName(QString::fromUtf8("height"));
59 
60  horizontalLayout->addWidget(height);
61 
62  presetResolution = new QToolButton(ViewResolutionPropertyWidget);
63  presetResolution->setObjectName(QString::fromUtf8("presetResolution"));
64  QIcon icon;
65  icon.addFile(QString::fromUtf8(":/pqWidgets/Icons/pqCaptureScreenshot.svg"), QSize(), QIcon::Normal, QIcon::Off);
66  presetResolution->setIcon(icon);
67 
68  horizontalLayout->addWidget(presetResolution);
69 
70  recentResolution = new QToolButton(ViewResolutionPropertyWidget);
71  recentResolution->setObjectName(QString::fromUtf8("recentResolution"));
72  QIcon icon1;
73  icon1.addFile(QString::fromUtf8(":/pqWidgets/Icons/pqRecentFile.svg"), QSize(), QIcon::Normal, QIcon::Off);
74  recentResolution->setIcon(icon1);
75  recentResolution->setIconSize(QSize(16, 16));
76 
77  horizontalLayout->addWidget(recentResolution);
78 
79  scaleBy = new pqScaleByButton(ViewResolutionPropertyWidget);
80  scaleBy->setObjectName(QString::fromUtf8("scaleBy"));
81 
82  horizontalLayout->addWidget(scaleBy);
83 
84  lockAspectRatio = new QToolButton(ViewResolutionPropertyWidget);
85  lockAspectRatio->setObjectName(QString::fromUtf8("lockAspectRatio"));
86  QIcon icon2;
87  icon2.addFile(QString::fromUtf8(":/pqWidgets/Icons/pqLock24.png"), QSize(), QIcon::Normal, QIcon::Off);
88  lockAspectRatio->setIcon(icon2);
89  lockAspectRatio->setCheckable(true);
90  lockAspectRatio->setChecked(false);
91 
92  horizontalLayout->addWidget(lockAspectRatio);
93 
94  reset = new pqHighlightableToolButton(ViewResolutionPropertyWidget);
95  reset->setObjectName(QString::fromUtf8("reset"));
96  QIcon icon3;
97  icon3.addFile(QString::fromUtf8(":/pqWidgets/Icons/pqReset.svg"), QSize(), QIcon::Normal, QIcon::Off);
98  reset->setIcon(icon3);
99 
100  horizontalLayout->addWidget(reset);
101 
102  horizontalLayout->setStretch(0, 1);
103  horizontalLayout->setStretch(2, 1);
104 
105  retranslateUi(ViewResolutionPropertyWidget);
106 
107  QMetaObject::connectSlotsByName(ViewResolutionPropertyWidget);
108  } // setupUi
109 
110  void retranslateUi(QWidget *ViewResolutionPropertyWidget)
111  {
112  ViewResolutionPropertyWidget->setWindowTitle(QCoreApplication::translate("ViewResolutionPropertyWidget", "Form", nullptr));
113  width->setPlaceholderText(QCoreApplication::translate("ViewResolutionPropertyWidget", "width", nullptr));
114  label->setText(QCoreApplication::translate("ViewResolutionPropertyWidget", "x", nullptr));
115  height->setPlaceholderText(QCoreApplication::translate("ViewResolutionPropertyWidget", "height", nullptr));
116 #if QT_CONFIG(tooltip)
117  presetResolution->setToolTip(QCoreApplication::translate("ViewResolutionPropertyWidget", "Select resolution from presets", nullptr));
118 #endif // QT_CONFIG(tooltip)
119  presetResolution->setText(QCoreApplication::translate("ViewResolutionPropertyWidget", "Presets", nullptr));
120 #if QT_CONFIG(tooltip)
121  recentResolution->setToolTip(QCoreApplication::translate("ViewResolutionPropertyWidget", "Use previous resolution", nullptr));
122 #endif // QT_CONFIG(tooltip)
123  recentResolution->setText(QString());
124 #if QT_CONFIG(tooltip)
125  lockAspectRatio->setToolTip(QCoreApplication::translate("ViewResolutionPropertyWidget", "Lock aspect ratio", nullptr));
126 #endif // QT_CONFIG(tooltip)
127  lockAspectRatio->setText(QString());
128 #if QT_CONFIG(tooltip)
129  reset->setToolTip(QCoreApplication::translate("ViewResolutionPropertyWidget", "Reset to default based on current values", nullptr));
130 #endif // QT_CONFIG(tooltip)
131  reset->setText(QString());
132  } // retranslateUi
133 
134 };
135 
136 namespace Ui {
138 } // namespace Ui
139 
140 QT_END_NAMESPACE
141 
142 #endif // UI_PQVIEWRESOLUTIONPROPERTYWIDGET_H
QToolButton with ability to highlight the button.
pqLineEdit is a specialization of QLineEdit which provide a new property &#39;text2&#39;. ...
Definition: pqLineEdit.h:25
void retranslateUi(QWidget *ViewResolutionPropertyWidget)
void setupUi(QWidget *ViewResolutionPropertyWidget)
Custom QToolButton that adds a menu to key user scale by a factor.