9 #ifndef UI_PQTEXTLOCATIONWIDGET_H 10 #define UI_PQTEXTLOCATIONWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QFrame> 17 #include <QtWidgets/QGridLayout> 18 #include <QtWidgets/QRadioButton> 19 #include <QtWidgets/QToolButton> 20 #include <QtWidgets/QWidget> 48 if (TextLocationWidget->objectName().isEmpty())
49 TextLocationWidget->setObjectName(QString::fromUtf8(
"TextLocationWidget"));
50 TextLocationWidget->resize(242, 198);
51 gridLayout =
new QGridLayout(TextLocationWidget);
52 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
53 radioButtonPosition =
new QRadioButton(TextLocationWidget);
54 buttonGroup =
new QButtonGroup(TextLocationWidget);
55 buttonGroup->setObjectName(QString::fromUtf8(
"buttonGroup"));
56 buttonGroup->addButton(radioButtonPosition);
57 radioButtonPosition->setObjectName(QString::fromUtf8(
"radioButtonPosition"));
59 gridLayout->addWidget(radioButtonPosition, 4, 0, 1, 1);
61 frameLocation =
new QFrame(TextLocationWidget);
62 frameLocation->setObjectName(QString::fromUtf8(
"frameLocation"));
63 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
64 sizePolicy.setHorizontalStretch(0);
65 sizePolicy.setVerticalStretch(0);
66 sizePolicy.setHeightForWidth(frameLocation->sizePolicy().hasHeightForWidth());
67 frameLocation->setSizePolicy(sizePolicy);
68 gridLayout1 =
new QGridLayout(frameLocation);
69 gridLayout1->setSpacing(2);
70 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
71 gridLayout1->setContentsMargins(9, 9, 9, 9);
72 toolButtonUL =
new QToolButton(frameLocation);
73 buttonGroupLocation =
new QButtonGroup(TextLocationWidget);
74 buttonGroupLocation->setObjectName(QString::fromUtf8(
"buttonGroupLocation"));
75 buttonGroupLocation->addButton(toolButtonUL);
76 toolButtonUL->setObjectName(QString::fromUtf8(
"toolButtonUL"));
77 QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Fixed);
78 sizePolicy1.setHorizontalStretch(0);
79 sizePolicy1.setVerticalStretch(0);
80 sizePolicy1.setHeightForWidth(toolButtonUL->sizePolicy().hasHeightForWidth());
81 toolButtonUL->setSizePolicy(sizePolicy1);
83 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqTopLeftCorner32.png"), QSize(), QIcon::Normal, QIcon::Off);
84 toolButtonUL->setIcon(icon);
85 toolButtonUL->setIconSize(QSize(24, 24));
86 toolButtonUL->setCheckable(
true);
87 toolButtonUL->setChecked(
false);
88 toolButtonUL->setAutoExclusive(
true);
90 gridLayout1->addWidget(toolButtonUL, 1, 0, 1, 1);
92 toolButtonLR =
new QToolButton(frameLocation);
93 buttonGroupLocation->addButton(toolButtonLR);
94 toolButtonLR->setObjectName(QString::fromUtf8(
"toolButtonLR"));
95 sizePolicy1.setHeightForWidth(toolButtonLR->sizePolicy().hasHeightForWidth());
96 toolButtonLR->setSizePolicy(sizePolicy1);
98 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqBottomRightCorner32.png"), QSize(), QIcon::Normal, QIcon::Off);
99 toolButtonLR->setIcon(icon1);
100 toolButtonLR->setIconSize(QSize(24, 24));
101 toolButtonLR->setCheckable(
true);
102 toolButtonLR->setAutoExclusive(
true);
104 gridLayout1->addWidget(toolButtonLR, 2, 2, 1, 1);
106 toolButtonLL =
new QToolButton(frameLocation);
107 buttonGroupLocation->addButton(toolButtonLL);
108 toolButtonLL->setObjectName(QString::fromUtf8(
"toolButtonLL"));
109 sizePolicy1.setHeightForWidth(toolButtonLL->sizePolicy().hasHeightForWidth());
110 toolButtonLL->setSizePolicy(sizePolicy1);
112 icon2.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqBottomLeftCorner32.png"), QSize(), QIcon::Normal, QIcon::Off);
113 toolButtonLL->setIcon(icon2);
114 toolButtonLL->setIconSize(QSize(24, 24));
115 toolButtonLL->setCheckable(
true);
116 toolButtonLL->setAutoExclusive(
true);
118 gridLayout1->addWidget(toolButtonLL, 2, 0, 1, 1);
120 toolButtonUR =
new QToolButton(frameLocation);
121 buttonGroupLocation->addButton(toolButtonUR);
122 toolButtonUR->setObjectName(QString::fromUtf8(
"toolButtonUR"));
123 sizePolicy1.setHeightForWidth(toolButtonUR->sizePolicy().hasHeightForWidth());
124 toolButtonUR->setSizePolicy(sizePolicy1);
126 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqTopRightCorner32.png"), QSize(), QIcon::Normal, QIcon::Off);
127 toolButtonUR->setIcon(icon3);
128 toolButtonUR->setIconSize(QSize(24, 24));
129 toolButtonUR->setCheckable(
true);
130 toolButtonUR->setAutoExclusive(
true);
132 gridLayout1->addWidget(toolButtonUR, 1, 2, 1, 1);
134 toolButtonUC =
new QToolButton(frameLocation);
135 buttonGroupLocation->addButton(toolButtonUC);
136 toolButtonUC->setObjectName(QString::fromUtf8(
"toolButtonUC"));
137 sizePolicy1.setHeightForWidth(toolButtonUC->sizePolicy().hasHeightForWidth());
138 toolButtonUC->setSizePolicy(sizePolicy1);
140 icon4.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqTopCenter32.png"), QSize(), QIcon::Normal, QIcon::Off);
141 toolButtonUC->setIcon(icon4);
142 toolButtonUC->setIconSize(QSize(24, 24));
143 toolButtonUC->setCheckable(
true);
144 toolButtonUC->setAutoExclusive(
true);
146 gridLayout1->addWidget(toolButtonUC, 1, 1, 1, 1);
148 toolButtonLC =
new QToolButton(frameLocation);
149 buttonGroupLocation->addButton(toolButtonLC);
150 toolButtonLC->setObjectName(QString::fromUtf8(
"toolButtonLC"));
151 sizePolicy1.setHeightForWidth(toolButtonLC->sizePolicy().hasHeightForWidth());
152 toolButtonLC->setSizePolicy(sizePolicy1);
154 icon5.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqBottomCenter32.png"), QSize(), QIcon::Normal, QIcon::Off);
155 toolButtonLC->setIcon(icon5);
156 toolButtonLC->setIconSize(QSize(24, 24));
157 toolButtonLC->setCheckable(
true);
158 toolButtonLC->setChecked(
false);
159 toolButtonLC->setAutoExclusive(
true);
161 gridLayout1->addWidget(toolButtonLC, 2, 1, 1, 1);
164 gridLayout->addWidget(frameLocation, 2, 0, 2, 1);
166 framePosition =
new QFrame(TextLocationWidget);
167 framePosition->setObjectName(QString::fromUtf8(
"framePosition"));
168 framePosition->setEnabled(
false);
169 gridLayout_2 =
new QGridLayout(framePosition);
170 gridLayout_2->setSpacing(2);
171 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
172 gridLayout_2->setContentsMargins(0, 0, 0, 0);
174 pos1X->setObjectName(QString::fromUtf8(
"pos1X"));
176 gridLayout_2->addWidget(pos1X, 1, 0, 1, 1);
179 pos1Y->setObjectName(QString::fromUtf8(
"pos1Y"));
181 gridLayout_2->addWidget(pos1Y, 1, 1, 1, 1);
184 gridLayout->addWidget(framePosition, 5, 0, 1, 1);
186 radioButtonLocation =
new QRadioButton(TextLocationWidget);
187 buttonGroup->addButton(radioButtonLocation);
188 radioButtonLocation->setObjectName(QString::fromUtf8(
"radioButtonLocation"));
189 radioButtonLocation->setChecked(
true);
191 gridLayout->addWidget(radioButtonLocation, 0, 0, 1, 1);
193 QWidget::setTabOrder(frameLocation, framePosition);
194 QWidget::setTabOrder(framePosition, toolButtonUC);
195 QWidget::setTabOrder(toolButtonUC, toolButtonUR);
196 QWidget::setTabOrder(toolButtonUR, toolButtonUL);
197 QWidget::setTabOrder(toolButtonUL, toolButtonLR);
198 QWidget::setTabOrder(toolButtonLR, toolButtonLL);
199 QWidget::setTabOrder(toolButtonLL, toolButtonLC);
200 QWidget::setTabOrder(toolButtonLC, pos1X);
201 QWidget::setTabOrder(pos1X, pos1Y);
204 QObject::connect(radioButtonLocation, SIGNAL(toggled(
bool)), framePosition, SLOT(setDisabled(
bool)));
205 QObject::connect(radioButtonLocation, SIGNAL(toggled(
bool)), frameLocation, SLOT(setEnabled(
bool)));
207 QMetaObject::connectSlotsByName(TextLocationWidget);
212 TextLocationWidget->setWindowTitle(QCoreApplication::translate(
"TextLocationWidget",
"Form",
nullptr));
213 #if QT_CONFIG(tooltip) 214 radioButtonPosition->setToolTip(QCoreApplication::translate(
"TextLocationWidget",
"Coordinates of the bottom left corner of the text object",
nullptr));
215 #endif // QT_CONFIG(tooltip) 216 radioButtonPosition->setText(QCoreApplication::translate(
"TextLocationWidget",
"Use Coordinates",
nullptr));
217 #if QT_CONFIG(tooltip) 218 toolButtonUL->setToolTip(QCoreApplication::translate(
"TextLocationWidget",
"Top Left Corner",
nullptr));
219 #endif // QT_CONFIG(tooltip) 220 toolButtonUL->setText(QString());
221 #if QT_CONFIG(tooltip) 222 toolButtonLR->setToolTip(QCoreApplication::translate(
"TextLocationWidget",
"Bottom Right Corner",
nullptr));
223 #endif // QT_CONFIG(tooltip) 224 toolButtonLR->setText(QString());
225 #if QT_CONFIG(tooltip) 226 toolButtonLL->setToolTip(QCoreApplication::translate(
"TextLocationWidget",
"Bottom Left Corner",
nullptr));
227 #endif // QT_CONFIG(tooltip) 228 toolButtonLL->setText(QString());
229 #if QT_CONFIG(tooltip) 230 toolButtonUR->setToolTip(QCoreApplication::translate(
"TextLocationWidget",
"Top Right Corner",
nullptr));
231 #endif // QT_CONFIG(tooltip) 232 toolButtonUR->setText(QString());
233 #if QT_CONFIG(tooltip) 234 toolButtonUC->setToolTip(QCoreApplication::translate(
"TextLocationWidget",
"Top Center",
nullptr));
235 #endif // QT_CONFIG(tooltip) 236 toolButtonUC->setText(QString());
237 #if QT_CONFIG(tooltip) 238 toolButtonLC->setToolTip(QCoreApplication::translate(
"TextLocationWidget",
"Bottom Center",
nullptr));
239 #endif // QT_CONFIG(tooltip) 240 toolButtonLC->setText(QString());
241 #if QT_CONFIG(tooltip) 242 framePosition->setToolTip(QCoreApplication::translate(
"TextLocationWidget",
"Coordinates of the lower left corner of the text object",
nullptr));
243 #endif // QT_CONFIG(tooltip) 244 radioButtonLocation->setText(QCoreApplication::translate(
"TextLocationWidget",
"Use Window Location",
nullptr));
255 #endif // UI_PQTEXTLOCATIONWIDGET_H QRadioButton * radioButtonPosition
QToolButton * toolButtonLC
void retranslateUi(QWidget *TextLocationWidget)
void setupUi(QWidget *TextLocationWidget)
QGridLayout * gridLayout_2
QButtonGroup * buttonGroupLocation
QToolButton * toolButtonUR
QButtonGroup * buttonGroup
QToolButton * toolButtonUL
pqLineEdit subclass that supports a low precision view when inactive
QToolButton * toolButtonUC
QRadioButton * radioButtonLocation
QGridLayout * gridLayout1
QToolButton * toolButtonLR
QToolButton * toolButtonLL