| 271 | } |
| 272 | |
| 273 | void PropertiesDialog::createPublishingBox() |
| 274 | { |
| 275 | publishingBox = new QWidget; |
| 276 | |
| 277 | auto publishingLayout = new QFormLayout; |
| 278 | |
| 279 | publishingLayout->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow); |
| 280 | |
| 281 | auto date = new QHBoxLayout; |
| 282 | date->addWidget(new QLabel(tr("Day:"))); |
| 283 | date->addWidget(dayEdit = new YACReaderFieldEdit()); |
| 284 | dayValidator.setRange(1, 31); |
| 285 | dayEdit->setValidator(&dayValidator); |
| 286 | date->addWidget(new QLabel(tr("Month:"))); |
| 287 | date->addWidget(monthEdit = new YACReaderFieldEdit()); |
| 288 | monthValidator.setRange(1, 12); |
| 289 | monthEdit->setValidator(&monthValidator); |
| 290 | date->addWidget(new QLabel(tr("Year:"))); |
| 291 | date->addWidget(yearEdit = new YACReaderFieldEdit()); |
| 292 | yearValidator.setRange(1, 9999); |
| 293 | yearEdit->setValidator(&yearValidator); |
| 294 | date->addStretch(1); |
| 295 | |
| 296 | publishingLayout->setRowWrapPolicy(QFormLayout::WrapAllRows); |
| 297 | publishingLayout->addRow(date); |
| 298 | publishingLayout->addRow(tr("Publisher:"), publisherEdit = new YACReaderFieldEdit()); |
| 299 | publishingLayout->addRow(tr("Format:"), formatEdit = new YACReaderFieldEdit()); |
| 300 | publishingLayout->addRow(tr("Color/BW:"), colorCheck = new QCheckBox()); |
| 301 | publishingLayout->addRow(tr("Age rating:"), ageRatingEdit = new YACReaderFieldEdit()); |
| 302 | publishingLayout->addRow(tr("Type:"), typeCombo = new QComboBox()); |
| 303 | publishingLayout->addRow(tr("Language (ISO):"), languageEdit = new YACReaderFieldEdit()); |
| 304 | |
| 305 | typeCombo->addItem("Comic"); |
| 306 | typeCombo->addItem("Manga"); |
| 307 | typeCombo->addItem("Western Manga"); |
| 308 | typeCombo->addItem("Web Comic"); |
| 309 | typeCombo->addItem("4koma"); |
| 310 | |
| 311 | typeCombo->setCurrentIndex(-1); |
| 312 | |
| 313 | publishingBox->setLayout(publishingLayout); |
| 314 | } |
| 315 | |
| 316 | void PropertiesDialog::createPlotBox() |
| 317 | { |
nothing calls this directly
no test coverage detected