9 #ifndef UI_UAT_DIALOG_H 10 #define UI_UAT_DIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QToolButton> 22 #include <QtWidgets/QVBoxLayout> 23 #include "widgets/elided_label.h" 24 #include "widgets/tabnav_tree_view.h" 31 QVBoxLayout *verticalLayout;
34 QHBoxLayout *horizontalLayout;
35 QToolButton *newToolButton;
36 QToolButton *deleteToolButton;
37 QToolButton *copyToolButton;
38 QToolButton *moveUpToolButton;
39 QToolButton *moveDownToolButton;
40 QToolButton *clearToolButton;
42 QDialogButtonBox *buttonBox;
46 if (UatDialog->objectName().isEmpty())
47 UatDialog->setObjectName(QStringLiteral(
"UatDialog"));
48 UatDialog->resize(566, 403);
49 verticalLayout =
new QVBoxLayout(UatDialog);
50 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
52 uatTreeView->setObjectName(QStringLiteral(
"uatTreeView"));
54 verticalLayout->addWidget(uatTreeView);
56 hintLabel =
new QLabel(UatDialog);
57 hintLabel->setObjectName(QStringLiteral(
"hintLabel"));
58 hintLabel->setStyleSheet(QStringLiteral(
"QLabel { color: red; }"));
59 hintLabel->setTextFormat(Qt::RichText);
60 hintLabel->setWordWrap(
true);
62 verticalLayout->addWidget(hintLabel);
64 horizontalLayout =
new QHBoxLayout();
65 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
66 newToolButton =
new QToolButton(UatDialog);
67 newToolButton->setObjectName(QStringLiteral(
"newToolButton"));
69 icon.addFile(QStringLiteral(
":/stock/plus-8.png"), QSize(), QIcon::Normal, QIcon::Off);
70 newToolButton->setIcon(icon);
72 horizontalLayout->addWidget(newToolButton);
74 deleteToolButton =
new QToolButton(UatDialog);
75 deleteToolButton->setObjectName(QStringLiteral(
"deleteToolButton"));
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(UatDialog);
83 copyToolButton->setObjectName(QStringLiteral(
"copyToolButton"));
85 icon2.addFile(QStringLiteral(
":/stock/copy-8.png"), QSize(), QIcon::Normal, QIcon::Off);
86 copyToolButton->setIcon(icon2);
88 horizontalLayout->addWidget(copyToolButton);
90 moveUpToolButton =
new QToolButton(UatDialog);
91 moveUpToolButton->setObjectName(QStringLiteral(
"moveUpToolButton"));
93 icon3.addFile(QStringLiteral(
":/stock/arrow_up.png"), QSize(), QIcon::Normal, QIcon::Off);
94 moveUpToolButton->setIcon(icon3);
96 horizontalLayout->addWidget(moveUpToolButton);
98 moveDownToolButton =
new QToolButton(UatDialog);
99 moveDownToolButton->setObjectName(QStringLiteral(
"moveDownToolButton"));
101 icon4.addFile(QStringLiteral(
":/stock/arrow_down.png"), QSize(), QIcon::Normal, QIcon::Off);
102 moveDownToolButton->setIcon(icon4);
104 horizontalLayout->addWidget(moveDownToolButton);
106 clearToolButton =
new QToolButton(UatDialog);
107 clearToolButton->setObjectName(QStringLiteral(
"clearToolButton"));
109 icon5.addFile(QStringLiteral(
":/stock/delete_list.png"), QSize(), QIcon::Normal, QIcon::Off);
110 clearToolButton->setIcon(icon5);
112 horizontalLayout->addWidget(clearToolButton);
115 pathLabel->setObjectName(QStringLiteral(
"pathLabel"));
116 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
117 sizePolicy.setHorizontalStretch(1);
118 sizePolicy.setVerticalStretch(0);
119 sizePolicy.setHeightForWidth(pathLabel->sizePolicy().hasHeightForWidth());
120 pathLabel->setSizePolicy(sizePolicy);
121 pathLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
122 pathLabel->setOpenExternalLinks(
true);
124 horizontalLayout->addWidget(pathLabel);
126 horizontalLayout->setStretch(4, 1);
128 verticalLayout->addLayout(horizontalLayout);
130 buttonBox =
new QDialogButtonBox(UatDialog);
131 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
132 buttonBox->setOrientation(Qt::Horizontal);
133 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok);
135 verticalLayout->addWidget(buttonBox);
138 retranslateUi(UatDialog);
139 QObject::connect(buttonBox, SIGNAL(accepted()), UatDialog, SLOT(accept()));
140 QObject::connect(buttonBox, SIGNAL(rejected()), UatDialog, SLOT(reject()));
142 QMetaObject::connectSlotsByName(UatDialog);
145 void retranslateUi(QDialog *UatDialog)
147 hintLabel->setText(QString());
148 #ifndef QT_NO_TOOLTIP 149 newToolButton->setToolTip(QApplication::translate(
"UatDialog",
"Create a new entry.", 0));
150 #endif // QT_NO_TOOLTIP 151 newToolButton->setText(QString());
152 #ifndef QT_NO_TOOLTIP 153 deleteToolButton->setToolTip(QApplication::translate(
"UatDialog",
"Remove this entry.", 0));
154 #endif // QT_NO_TOOLTIP 155 #ifndef QT_NO_TOOLTIP 156 copyToolButton->setToolTip(QApplication::translate(
"UatDialog",
"Copy this entry.", 0));
157 #endif // QT_NO_TOOLTIP 158 copyToolButton->setText(QString());
159 #ifndef QT_NO_TOOLTIP 160 moveUpToolButton->setToolTip(QApplication::translate(
"UatDialog",
"Move entry up.", 0));
161 #endif // QT_NO_TOOLTIP 162 moveUpToolButton->setText(QString());
163 #ifndef QT_NO_TOOLTIP 164 moveDownToolButton->setToolTip(QApplication::translate(
"UatDialog",
"Move entry down.", 0));
165 #endif // QT_NO_TOOLTIP 166 moveDownToolButton->setText(QString());
167 #ifndef QT_NO_TOOLTIP 168 clearToolButton->setToolTip(QApplication::translate(
"UatDialog",
"Clear all entries.", 0));
169 #endif // QT_NO_TOOLTIP 170 clearToolButton->setText(QString());
171 pathLabel->setText(QString());
183 #endif // UI_UAT_DIALOG_H Definition: ui_about_dialog.h:291
Definition: ui_uat_dialog.h:28
Definition: tabnav_tree_view.h:23
Definition: uat_dialog.h:30
Definition: ui_uat_dialog.h:178
Definition: elided_label.h:15