9 #ifndef UI_PQABOUTDIALOG_H 10 #define UI_PQABOUTDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QDialogButtonBox> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QPushButton> 20 #include <QtWidgets/QTabWidget> 21 #include <QtWidgets/QTreeWidget> 22 #include <QtWidgets/QVBoxLayout> 23 #include <QtWidgets/QWidget> 50 if (pqAboutDialog->objectName().isEmpty())
51 pqAboutDialog->setObjectName(QString::fromUtf8(
"pqAboutDialog"));
52 pqAboutDialog->resize(528, 726);
53 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
54 sizePolicy.setHorizontalStretch(0);
55 sizePolicy.setVerticalStretch(0);
56 sizePolicy.setHeightForWidth(pqAboutDialog->sizePolicy().hasHeightForWidth());
57 pqAboutDialog->setSizePolicy(sizePolicy);
58 pqAboutDialog->setModal(
true);
59 gridLayout =
new QGridLayout(pqAboutDialog);
60 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
61 buttonBox =
new QDialogButtonBox(pqAboutDialog);
62 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
63 buttonBox->setStandardButtons(QDialogButtonBox::Close);
64 buttonBox->setCenterButtons(
false);
66 gridLayout->addWidget(buttonBox, 3, 2, 1, 1);
68 tabWidget =
new QTabWidget(pqAboutDialog);
69 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
70 tabClient =
new QWidget();
71 tabClient->setObjectName(QString::fromUtf8(
"tabClient"));
72 vboxLayout =
new QVBoxLayout(tabClient);
73 vboxLayout->setSpacing(6);
74 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
75 vboxLayout->setContentsMargins(9, 9, 9, 9);
76 ClientInformation =
new QTreeWidget(tabClient);
77 ClientInformation->setObjectName(QString::fromUtf8(
"ClientInformation"));
78 ClientInformation->setAlternatingRowColors(
true);
79 ClientInformation->setRootIsDecorated(
false);
81 vboxLayout->addWidget(ClientInformation);
83 tabWidget->addTab(tabClient, QString());
84 tabServer =
new QWidget();
85 tabServer->setObjectName(QString::fromUtf8(
"tabServer"));
86 gridLayout1 =
new QGridLayout(tabServer);
87 gridLayout1->setSpacing(6);
88 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
89 gridLayout1->setContentsMargins(9, 9, 9, 9);
90 ServerInformation =
new QTreeWidget(tabServer);
91 ServerInformation->setObjectName(QString::fromUtf8(
"ServerInformation"));
92 ServerInformation->setAlternatingRowColors(
true);
93 ServerInformation->setRootIsDecorated(
false);
95 gridLayout1->addWidget(ServerInformation, 0, 0, 1, 1);
97 tabWidget->addTab(tabServer, QString());
99 gridLayout->addWidget(tabWidget, 2, 0, 1, 3);
101 Image =
new QLabel(pqAboutDialog);
102 Image->setObjectName(QString::fromUtf8(
"Image"));
103 Image->setPixmap(QPixmap(QString::fromUtf8(
":/pqWidgets/Icons/PVSplashScreen.png")));
104 Image->setAlignment(Qt::AlignCenter);
106 gridLayout->addWidget(Image, 0, 0, 1, 3);
108 horizontalLayout =
new QHBoxLayout();
109 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
110 ParaViewLinkLabel =
new QLabel(pqAboutDialog);
111 ParaViewLinkLabel->setObjectName(QString::fromUtf8(
"ParaViewLinkLabel"));
112 ParaViewLinkLabel->setOpenExternalLinks(
true);
114 horizontalLayout->addWidget(ParaViewLinkLabel);
116 VersionLabel =
new QLabel(pqAboutDialog);
117 VersionLabel->setObjectName(QString::fromUtf8(
"VersionLabel"));
118 VersionLabel->setTextFormat(Qt::AutoText);
119 VersionLabel->setAlignment(Qt::AlignCenter);
121 horizontalLayout->addWidget(VersionLabel);
123 KitwareLinkLabel =
new QLabel(pqAboutDialog);
124 KitwareLinkLabel->setObjectName(QString::fromUtf8(
"KitwareLinkLabel"));
125 KitwareLinkLabel->setTextFormat(Qt::RichText);
126 KitwareLinkLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
127 KitwareLinkLabel->setOpenExternalLinks(
true);
129 horizontalLayout->addWidget(KitwareLinkLabel);
131 horizontalLayout->setStretch(1, 1);
133 gridLayout->addLayout(horizontalLayout, 1, 0, 1, 3);
135 copyToClipBoardButton =
new QPushButton(pqAboutDialog);
136 copyToClipBoardButton->setObjectName(QString::fromUtf8(
"copyToClipBoardButton"));
138 gridLayout->addWidget(copyToClipBoardButton, 3, 0, 1, 1);
140 saveToFileButton =
new QPushButton(pqAboutDialog);
141 saveToFileButton->setObjectName(QString::fromUtf8(
"saveToFileButton"));
143 gridLayout->addWidget(saveToFileButton, 3, 1, 1, 1);
147 QObject::connect(buttonBox, SIGNAL(rejected()), pqAboutDialog, SLOT(accept()));
148 QObject::connect(saveToFileButton, SIGNAL(clicked()), pqAboutDialog, SLOT(saveToFile()));
149 QObject::connect(copyToClipBoardButton, SIGNAL(clicked()), pqAboutDialog, SLOT(copyToClipboard()));
151 tabWidget->setCurrentIndex(0);
154 QMetaObject::connectSlotsByName(pqAboutDialog);
159 pqAboutDialog->setWindowTitle(QCoreApplication::translate(
"pqAboutDialog",
"About ParaView",
nullptr));
160 QTreeWidgetItem *___qtreewidgetitem = ClientInformation->headerItem();
161 ___qtreewidgetitem->setText(1, QCoreApplication::translate(
"pqAboutDialog",
"Description",
nullptr));
162 ___qtreewidgetitem->setText(0, QCoreApplication::translate(
"pqAboutDialog",
"Item",
nullptr));
163 tabWidget->setTabText(tabWidget->indexOf(tabClient), QCoreApplication::translate(
"pqAboutDialog",
"Client Information",
nullptr));
164 QTreeWidgetItem *___qtreewidgetitem1 = ServerInformation->headerItem();
165 ___qtreewidgetitem1->setText(1, QCoreApplication::translate(
"pqAboutDialog",
"Description",
nullptr));
166 ___qtreewidgetitem1->setText(0, QCoreApplication::translate(
"pqAboutDialog",
"Item",
nullptr));
167 tabWidget->setTabText(tabWidget->indexOf(tabServer), QCoreApplication::translate(
"pqAboutDialog",
"Connection Information",
nullptr));
168 Image->setText(QString());
169 ParaViewLinkLabel->setText(QCoreApplication::translate(
"pqAboutDialog",
"<html><head/><body><p><a href=\"http://www.kitware.com/\"><span style=\" text-decoration: underline; color:palette(link);\">www.kitware.com</span></a></p></body></html>",
nullptr));
170 VersionLabel->setText(QCoreApplication::translate(
"pqAboutDialog",
"<html><b>Version: <i>3.x.x</i></b></html>",
nullptr));
171 KitwareLinkLabel->setText(QCoreApplication::translate(
"pqAboutDialog",
"<html><head/><body><p><a href=\"http://www.paraview.org/\"><span style=\" text-decoration: underline; color:palette(link);\">www.paraview.org</span></a></p></body></html>",
nullptr));
172 copyToClipBoardButton->setText(QCoreApplication::translate(
"pqAboutDialog",
"Copy to Clipboard",
nullptr));
173 saveToFileButton->setText(QCoreApplication::translate(
"pqAboutDialog",
"Save to File...",
nullptr));
184 #endif // UI_PQABOUTDIALOG_H
QTreeWidget * ClientInformation
QDialogButtonBox * buttonBox
QPushButton * saveToFileButton
QHBoxLayout * horizontalLayout
QPushButton * copyToClipBoardButton
QTreeWidget * ServerInformation
QLabel * KitwareLinkLabel
QGridLayout * gridLayout1
pqAboutDialog is the about dialog used by ParaView.
void retranslateUi(pqAboutDialog *pqAboutDialog)
QLabel * ParaViewLinkLabel
void setupUi(pqAboutDialog *pqAboutDialog)