diff --git a/resources/translations/qcma_es.ts b/resources/translations/qcma_es.ts index 28edd18..652f427 100644 --- a/resources/translations/qcma_es.ts +++ b/resources/translations/qcma_es.ts @@ -4,17 +4,27 @@ BackupItem - - <html><head/><body><p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p><p><span style=" font-size:10pt;">0.00 GiB</span></p></body></html> - + + <p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p> + + <p><span style=" font-size:10pt;">0.00 GiB</span></p> + + + + + <html><head/><body><p><span style=" font-size:9pt;">[APP] [SAVE] [UPDATE] [DLC]</span></p></body></html> + + + + Delete entry Borrar entrada - + Open folder Abrir directorio @@ -73,7 +83,7 @@ - + Filter Filtro @@ -93,9 +103,28 @@ Uso de disco en respaldos: %1 - + + [GAME] + + + + + [SAVE] + + + + + [UPDATE] + + + + + [DLC] + + + - (Launcher only) - - (Solo lanzador LiveArea) + - (Solo lanzador LiveArea) diff --git a/resources/translations/qcma_ja.ts b/resources/translations/qcma_ja.ts index c8b871d..c1168b0 100644 --- a/resources/translations/qcma_ja.ts +++ b/resources/translations/qcma_ja.ts @@ -4,17 +4,31 @@ BackupItem - <html><head/><body><p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p><p><span style=" font-size:10pt;">0.00 GiB</span></p></body></html> - <html><head/><body><p><span style=" font-size:12pt; font-weight:600;">ゲーム名</span></p><p><span style=" font-size:10pt;">0.00 GiB</span></p></body></html> + <html><head/><body><p><span style=" font-size:12pt; font-weight:600;">ゲーム名</span></p><p><span style=" font-size:10pt;">0.00 GiB</span></p></body></html> + + + + <p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p> + + <p><span style=" font-size:10pt;">0.00 GiB</span></p> + + + + + <html><head/><body><p><span style=" font-size:9pt;">[APP] [SAVE] [UPDATE] [DLC]</span></p></body></html> + + + + Delete entry 項目を削除する - + Open folder フォルダを開く @@ -73,7 +87,7 @@ - + Filter @@ -93,9 +107,28 @@ バックアップディスク使用容量: %1 - + + [GAME] + + + + + [SAVE] + + + + + [UPDATE] + + + + + [DLC] + + + - (Launcher only) - - (LiveArea専用) + - (LiveArea専用) diff --git a/src/forms/backupitem.cpp b/src/forms/backupitem.cpp index 0e14981..3cb6198 100644 --- a/src/forms/backupitem.cpp +++ b/src/forms/backupitem.cpp @@ -25,9 +25,16 @@ #include #include -const QString BackupItem::nameTemplate = "" - "

%1

" - "

%2

" +const QString BackupItem::gameTemplate = "" + "

%1

" + ""; + +const QString BackupItem::sizeTemplate = "" + "

%1

" + ""; + +const QString BackupItem::infoTemplate = "" + "

 %1

" ""; BackupItem::BackupItem(QWidget *parent) : @@ -60,14 +67,16 @@ const QPixmap *BackupItem::getIconPixmap() return ui->itemPicture->pixmap(); } -void BackupItem::setDirectory(const QString path) +void BackupItem::setDirectory(const QString &path) { this->path = path; } -void BackupItem::setItemInfo(const QString name, const QString size) +void BackupItem::setItemInfo(const QString &name, const QString &size, const QString &extra) { - ui->itemName->setText(nameTemplate.arg(name, size)); + ui->gameLabel->setText(gameTemplate.arg(name)); + ui->sizeLabel->setText(sizeTemplate.arg(size)); + ui->infoLabel->setText(infoTemplate.arg(extra)); } int BackupItem::getIconWidth() @@ -75,7 +84,7 @@ int BackupItem::getIconWidth() return ui->itemPicture->width(); } -void BackupItem::setItemIcon(const QString path, int width, bool try_dds) +void BackupItem::setItemIcon(const QString &path, int width, bool try_dds) { ui->itemPicture->setMinimumWidth(width); QPixmap pixmap(path); diff --git a/src/forms/backupitem.h b/src/forms/backupitem.h index 4ef11eb..1cb873f 100644 --- a/src/forms/backupitem.h +++ b/src/forms/backupitem.h @@ -34,9 +34,9 @@ public: explicit BackupItem(QWidget *parent = 0); ~BackupItem(); - void setItemInfo(const QString name, const QString size); - void setItemIcon(const QString path, int width = 48, bool try_dds = false); - void setDirectory(const QString path); + void setItemInfo(const QString &name, const QString &size, const QString &extra); + void setItemIcon(const QString &path, int width = 48, bool try_dds = false); + void setDirectory(const QString &path); const QPixmap *getIconPixmap(); int getIconWidth(); @@ -48,7 +48,9 @@ public: private: QString path; Ui::BackupItem *ui; - static const QString nameTemplate; + static const QString gameTemplate; + static const QString sizeTemplate; + static const QString infoTemplate; signals: void deleteEntry(BackupItem *entry); diff --git a/src/forms/backupitem.ui b/src/forms/backupitem.ui index 28d89db..aa87741 100644 --- a/src/forms/backupitem.ui +++ b/src/forms/backupitem.ui @@ -6,10 +6,16 @@ 0 0 - 634 - 86 + 638 + 75 + + + 0 + 0 + + @@ -42,11 +48,57 @@ - - - <html><head/><body><p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p><p><span style=" font-size:10pt;">0.00 GiB</span></p></body></html> + + + 5 - + + + + <p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p> + + + + + + + + + + 0 + 0 + + + + + 90 + 0 + + + + <p><span style=" font-size:10pt;">0.00 GiB</span></p> + + + + + + + + 0 + 0 + + + + <html><head/><body><p><span style=" font-size:9pt;">[APP] [SAVE] [UPDATE] [DLC]</span></p></body></html> + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + diff --git a/src/forms/backupmanagerform.cpp b/src/forms/backupmanagerform.cpp index 9f6e353..c5fb9ab 100644 --- a/src/forms/backupmanagerform.cpp +++ b/src/forms/backupmanagerform.cpp @@ -193,15 +193,28 @@ void BackupManagerForm::loadBackupListing(int index) connect(item, SIGNAL(deleteEntry(BackupItem*)), this, SLOT(removeEntry(BackupItem*))); QString size = readable_size(meta->size); - // check if the game data is present, else is just a LiveArea launcher - if(sys_dir && !(QDir(base_path + QDir::separator() + "app").exists() || QDir(base_path + QDir::separator() + "game").exists())) { - size.append(tr(" - (Launcher only)")); + QString info; + + // check if is listing PS Vita games + if(index == 0) { + if(QDir(base_path + QDir::separator() + "app").exists()) { + info.append(tr(" [GAME]")); + } + if(QDir(base_path + QDir::separator() + "savedata").exists()) { + info.append(tr(" [SAVE]")); + } + if(QDir(base_path + QDir::separator() + "patch").exists()) { + info.append(tr(" [UPDATE]")); + } + if(QDir(base_path + QDir::separator() + "addcont").exists()) { + info.append(tr(" [DLC]")); + } } - item->setItemInfo(game_name, size); + item->setItemInfo(game_name, size, info); item->setItemIcon(QDir(parent_path).absoluteFilePath(sys_dir ? "icon0.png" : "ICON0.PNG"), img_width, ohfi == VITA_OHFI_PSMAPP); item->setDirectory(obj->path + QDir::separator() + meta->name); - item->resize(646, 75); + item->resize(646, 68); item_list << item; meta = meta->next_metadata; @@ -216,7 +229,7 @@ void BackupManagerForm::loadBackupListing(int index) // insert the sorted items into the table for(it = item_list.begin(), row = 0; it != item_list.end(); ++it, ++row) { ui->tableWidget->setCellWidget(row, 0, *it); - vert_header->resizeSection(row, 75); + vert_header->resizeSection(row, 68); } vert_header->setUpdatesEnabled(true);