10 #define UI_UAT_FRAME_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QFrame> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QHeaderView> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QToolButton> 21 #include <QtWidgets/QVBoxLayout> 22 #include "widgets/elided_label.h" 23 #include "widgets/tabnav_tree_view.h" 30 QVBoxLayout *verticalLayout;
33 QHBoxLayout *horizontalLayout;
34 QToolButton *newToolButton;
35 QToolButton *deleteToolButton;
36 QToolButton *copyToolButton;
37 QToolButton *moveUpToolButton;
38 QToolButton *moveDownToolButton;
39 QToolButton *clearToolButton;
44 if (UatFrame->objectName().isEmpty())
45 UatFrame->setObjectName(QStringLiteral(
"UatFrame"));
46 UatFrame->resize(513, 397);
47 UatFrame->setLineWidth(0);
48 verticalLayout =
new QVBoxLayout(UatFrame);
49 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
51 uatTreeView->setObjectName(QStringLiteral(
"uatTreeView"));
53 verticalLayout->addWidget(uatTreeView);
55 hintLabel =
new QLabel(UatFrame);
56 hintLabel->setObjectName(QStringLiteral(
"hintLabel"));
57 hintLabel->setStyleSheet(QStringLiteral(
"QLabel { color: red; }"));
58 hintLabel->setTextFormat(Qt::RichText);
59 hintLabel->setWordWrap(
true);
61 verticalLayout->addWidget(hintLabel);
63 horizontalLayout =
new QHBoxLayout();
64 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
65 newToolButton =
new QToolButton(UatFrame);
66 newToolButton->setObjectName(QStringLiteral(
"newToolButton"));
68 icon.addFile(QStringLiteral(
":/stock/plus-8.png"), QSize(), QIcon::Normal, QIcon::Off);
69 newToolButton->setIcon(icon);
71 horizontalLayout->addWidget(newToolButton);
73 deleteToolButton =
new QToolButton(UatFrame);
74 deleteToolButton->setObjectName(QStringLiteral(
"deleteToolButton"));
75 deleteToolButton->setEnabled(
false);
77 icon1.addFile(QStringLiteral(
":/stock/minus-8.png"), QSize(), QIcon::Normal, QIcon::Off);
78 deleteToolButton->setIcon(icon1);
80 horizontalLayout->addWidget(deleteToolButton);
82 copyToolButton =
new QToolButton(UatFrame);
83 copyToolButton->setObjectName(QStringLiteral(
"copyToolButton"));
84 copyToolButton->setEnabled(
false);
86 icon2.addFile(QStringLiteral(
":/stock/copy-8.png"), QSize(), QIcon::Normal, QIcon::Off);
87 copyToolButton->setIcon(icon2);
89 horizontalLayout->addWidget(copyToolButton);
91 moveUpToolButton =
new QToolButton(UatFrame);
92 moveUpToolButton->setObjectName(QStringLiteral(
"moveUpToolButton"));
94 icon3.addFile(QStringLiteral(
":/stock/arrow_up.png"), QSize(), QIcon::Normal, QIcon::Off);
95 moveUpToolButton->setIcon(icon3);
97 horizontalLayout->addWidget(moveUpToolButton);
99 moveDownToolButton =
new QToolButton(UatFrame);
100 moveDownToolButton->setObjectName(QStringLiteral(
"moveDownToolButton"));
102 icon4.addFile(QStringLiteral(
":/stock/arrow_down.png"), QSize(), QIcon::Normal, QIcon::Off);
103 moveDownToolButton->setIcon(icon4);
105 horizontalLayout->addWidget(moveDownToolButton);
107 clearToolButton =
new QToolButton(UatFrame);
108 clearToolButton->setObjectName(QStringLiteral(
"clearToolButton"));
110 icon5.addFile(QStringLiteral(
":/stock/delete_list.png"), QSize(), QIcon::Normal, QIcon::Off);
111 clearToolButton->setIcon(icon5);
113 horizontalLayout->addWidget(clearToolButton);
116 pathLabel->setObjectName(QStringLiteral(
"pathLabel"));
117 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
118 sizePolicy.setHorizontalStretch(1);
119 sizePolicy.setVerticalStretch(0);
120 sizePolicy.setHeightForWidth(pathLabel->sizePolicy().hasHeightForWidth());
121 pathLabel->setSizePolicy(sizePolicy);
122 pathLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
123 pathLabel->setOpenExternalLinks(
true);
125 horizontalLayout->addWidget(pathLabel);
127 horizontalLayout->setStretch(4, 1);
129 verticalLayout->addLayout(horizontalLayout);
132 retranslateUi(UatFrame);
134 QMetaObject::connectSlotsByName(UatFrame);
137 void retranslateUi(QFrame *UatFrame)
139 UatFrame->setWindowTitle(QApplication::translate(
"UatFrame",
"Frame", 0));
140 hintLabel->setText(QString());
141 #ifndef QT_NO_TOOLTIP 142 newToolButton->setToolTip(QApplication::translate(
"UatFrame",
"Create a new entry.", 0));
143 #endif // QT_NO_TOOLTIP 144 newToolButton->setText(QString());
145 #ifndef QT_NO_TOOLTIP 146 deleteToolButton->setToolTip(QApplication::translate(
"UatFrame",
"Remove this entry.", 0));
147 #endif // QT_NO_TOOLTIP 148 #ifndef QT_NO_TOOLTIP 149 copyToolButton->setToolTip(QApplication::translate(
"UatFrame",
"Copy this entry.", 0));
150 #endif // QT_NO_TOOLTIP 151 copyToolButton->setText(QString());
152 #ifndef QT_NO_TOOLTIP 153 moveUpToolButton->setToolTip(QApplication::translate(
"UatFrame",
"Move entry up.", 0));
154 #endif // QT_NO_TOOLTIP 155 moveUpToolButton->setText(QString());
156 #ifndef QT_NO_TOOLTIP 157 moveDownToolButton->setToolTip(QApplication::translate(
"UatFrame",
"Move entry down.", 0));
158 #endif // QT_NO_TOOLTIP 159 moveDownToolButton->setText(QString());
160 #ifndef QT_NO_TOOLTIP 161 clearToolButton->setToolTip(QApplication::translate(
"UatFrame",
"Clear all entries.", 0));
162 #endif // QT_NO_TOOLTIP 163 clearToolButton->setText(QString());
164 pathLabel->setText(QString());
175 #endif // UI_UAT_FRAME_H Definition: uat_frame.h:23
Definition: ui_about_dialog.h:291
Definition: ui_uat_frame.h:170
Definition: tabnav_tree_view.h:23
Definition: elided_label.h:15
Definition: ui_uat_frame.h:27