9 #ifndef UI_METADATAQUERY_H 10 #define UI_METADATAQUERY_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QComboBox> 17 #include <QtWidgets/QDialog> 18 #include <QtWidgets/QDialogButtonBox> 19 #include <QtWidgets/QGridLayout> 20 #include <QtWidgets/QHBoxLayout> 21 #include <QtWidgets/QHeaderView> 22 #include <QtWidgets/QLabel> 23 #include <QtWidgets/QLineEdit> 24 #include <QtWidgets/QSpacerItem> 25 #include <QtWidgets/QVBoxLayout> 55 if (metadataQuery->objectName().isEmpty())
56 metadataQuery->setObjectName(QStringLiteral(
"metadataQuery"));
57 metadataQuery->resize(751, 309);
58 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
59 sizePolicy.setHorizontalStretch(0);
60 sizePolicy.setVerticalStretch(0);
61 sizePolicy.setHeightForWidth(metadataQuery->sizePolicy().hasHeightForWidth());
62 metadataQuery->setSizePolicy(sizePolicy);
63 metadataQuery->setMinimumSize(QSize(0, 0));
64 metadataQuery->setSizeGripEnabled(
true);
65 gridLayout =
new QGridLayout(metadataQuery);
66 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
67 verticalLayout =
new QVBoxLayout();
68 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
69 bottomButtonsBox =
new QDialogButtonBox(metadataQuery);
70 bottomButtonsBox->setObjectName(QStringLiteral(
"bottomButtonsBox"));
71 QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
72 sizePolicy1.setHorizontalStretch(0);
73 sizePolicy1.setVerticalStretch(0);
74 sizePolicy1.setHeightForWidth(bottomButtonsBox->sizePolicy().hasHeightForWidth());
75 bottomButtonsBox->setSizePolicy(sizePolicy1);
76 bottomButtonsBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
77 bottomButtonsBox->setCenterButtons(
false);
79 verticalLayout->addWidget(bottomButtonsBox);
82 gridLayout->addLayout(verticalLayout, 7, 0, 1, 1);
84 metadataLayout =
new QHBoxLayout();
85 metadataLayout->setObjectName(QStringLiteral(
"metadataLayout"));
86 metadataLayout->setContentsMargins(-1, 0, -1, -1);
87 fileNameLabel =
new QLabel(metadataQuery);
88 fileNameLabel->setObjectName(QStringLiteral(
"fileNameLabel"));
90 metadataLayout->addWidget(fileNameLabel);
92 fileNameEdit =
new QLineEdit(metadataQuery);
93 fileNameEdit->setObjectName(QStringLiteral(
"fileNameEdit"));
94 fileNameEdit->setEnabled(
false);
96 metadataLayout->addWidget(fileNameEdit);
99 gridLayout->addLayout(metadataLayout, 1, 0, 1, 1);
101 ownerLayout =
new QHBoxLayout();
102 ownerLayout->setObjectName(QStringLiteral(
"ownerLayout"));
103 ownerLayout->setContentsMargins(-1, -1, -1, 0);
104 ownerLabel =
new QLabel(metadataQuery);
105 ownerLabel->setObjectName(QStringLiteral(
"ownerLabel"));
107 ownerLayout->addWidget(ownerLabel);
109 ownerEdit =
new QLineEdit(metadataQuery);
110 ownerEdit->setObjectName(QStringLiteral(
"ownerEdit"));
112 ownerLayout->addWidget(ownerEdit);
115 gridLayout->addLayout(ownerLayout, 3, 0, 1, 1);
117 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
119 gridLayout->addItem(verticalSpacer, 6, 0, 1, 1);
121 licenseLayout =
new QHBoxLayout();
122 licenseLayout->setObjectName(QStringLiteral(
"licenseLayout"));
123 licenseLayout->setContentsMargins(-1, -1, -1, 0);
124 licenseLabel =
new QLabel(metadataQuery);
125 licenseLabel->setObjectName(QStringLiteral(
"licenseLabel"));
127 licenseLayout->addWidget(licenseLabel);
129 licenseComboBox =
new QComboBox(metadataQuery);
130 licenseComboBox->setObjectName(QStringLiteral(
"licenseComboBox"));
131 licenseComboBox->setEditable(
true);
133 licenseLayout->addWidget(licenseComboBox);
136 gridLayout->addLayout(licenseLayout, 5, 0, 1, 1);
138 mimetypeLayout =
new QHBoxLayout();
139 mimetypeLayout->setObjectName(QStringLiteral(
"mimetypeLayout"));
140 mimetypeLayout->setContentsMargins(-1, -1, -1, 0);
141 mimetypeLabel =
new QLabel(metadataQuery);
142 mimetypeLabel->setObjectName(QStringLiteral(
"mimetypeLabel"));
144 mimetypeLayout->addWidget(mimetypeLabel);
146 mimetypeEdit =
new QLineEdit(metadataQuery);
147 mimetypeEdit->setObjectName(QStringLiteral(
"mimetypeEdit"));
149 mimetypeLayout->addWidget(mimetypeEdit);
152 gridLayout->addLayout(mimetypeLayout, 4, 0, 1, 1);
154 descriptionLayout =
new QHBoxLayout();
155 descriptionLayout->setObjectName(QStringLiteral(
"descriptionLayout"));
156 descriptionLayout->setContentsMargins(-1, -1, -1, 0);
157 descriptionLabel =
new QLabel(metadataQuery);
158 descriptionLabel->setObjectName(QStringLiteral(
"descriptionLabel"));
160 descriptionLayout->addWidget(descriptionLabel);
162 descriptionEdit =
new QLineEdit(metadataQuery);
163 descriptionEdit->setObjectName(QStringLiteral(
"descriptionEdit"));
165 descriptionLayout->addWidget(descriptionEdit);
168 gridLayout->addLayout(descriptionLayout, 2, 0, 1, 1);
170 topDescriptionLabel =
new QLabel(metadataQuery);
171 topDescriptionLabel->setObjectName(QStringLiteral(
"topDescriptionLabel"));
173 font.setPointSize(13);
176 topDescriptionLabel->setFont(font);
178 gridLayout->addWidget(topDescriptionLabel, 0, 0, 1, 1);
180 QWidget::setTabOrder(fileNameEdit, bottomButtonsBox);
183 QObject::connect(bottomButtonsBox, SIGNAL(rejected()), metadataQuery, SLOT(reject()));
185 QMetaObject::connectSlotsByName(metadataQuery);
190 metadataQuery->setWindowTitle(QApplication::translate(
"metadataQuery",
"File information", Q_NULLPTR));
191 fileNameLabel->setText(QApplication::translate(
"metadataQuery",
"Name of the file:", Q_NULLPTR));
192 ownerLabel->setText(QApplication::translate(
"metadataQuery",
"Owner of file (name or SHA1 if CA operator):", Q_NULLPTR));
193 licenseLabel->setText(QApplication::translate(
"metadataQuery",
"License of use:", Q_NULLPTR));
194 licenseComboBox->clear();
195 licenseComboBox->insertItems(0, QStringList()
196 << QApplication::translate(
"metadataQuery",
"Public domain", Q_NULLPTR)
197 << QApplication::translate(
"metadataQuery",
"GPL", Q_NULLPTR)
198 << QApplication::translate(
"metadataQuery",
"LGPL", Q_NULLPTR)
199 << QApplication::translate(
"metadataQuery",
"BSD", Q_NULLPTR)
200 << QApplication::translate(
"metadataQuery",
"CC-BY", Q_NULLPTR)
201 << QApplication::translate(
"metadataQuery",
"CC-BY-SA", Q_NULLPTR)
202 << QApplication::translate(
"metadataQuery",
"CC-BY-ND", Q_NULLPTR)
203 << QApplication::translate(
"metadataQuery",
"CC-BY-NC", Q_NULLPTR)
204 << QApplication::translate(
"metadataQuery",
"CC-BY-NC-SA", Q_NULLPTR)
205 << QApplication::translate(
"metadataQuery",
"CC-BY-NC-ND", Q_NULLPTR)
207 mimetypeLabel->setText(QApplication::translate(
"metadataQuery",
"Mime-type:", Q_NULLPTR));
208 descriptionLabel->setText(QApplication::translate(
"metadataQuery",
"Description of file:", Q_NULLPTR));
209 topDescriptionLabel->setText(QApplication::translate(
"metadataQuery",
"Enter information regarding file before publish:", Q_NULLPTR));
220 #endif // UI_METADATAQUERY_H
Definition: ui_aboutDialog.h:161