diff --git a/resources/translations/qcma_es.ts b/resources/translations/qcma_es.ts index 652f427..2259ce7 100644 --- a/resources/translations/qcma_es.ts +++ b/resources/translations/qcma_es.ts @@ -83,12 +83,12 @@ - + Filter Filtro - + Default account Cuenta por defecto @@ -98,7 +98,7 @@ ¿Estas seguro de borrar la siguiente entrada? - + Backup disk usage: %1 Uso de disco en respaldos: %1 @@ -134,32 +134,31 @@ Agregadas %1 entradas a la base de datos - + Added %1 items to the database Agregadas %1 entradas a la base de datos - + Database indexing aborted by user Actualización de la base de datos cancelada por el usuario - + Cannot initialize VitaMTP library No se pudo inicializar VitaMTP - + You must enable at least USB or Wireless monitoring Debe habilitar por lo menos el monitoreo USB o inalámbrico - Cannot refresh the database while is in use - No se puede actualizar la base de datos mientras se encuentre en uso + No se puede actualizar la base de datos mientras se encuentre en uso - + No PS Vita system has been registered Nigún sistema PS Vita ha sido registrado @@ -171,8 +170,8 @@ Conectado a - - + + Connected to %1 (PS Vita) Conectado a %1 (PS Vita) @@ -287,6 +286,26 @@ Update database automatically when files on the PC are changed Actualizar la base de datos automaticamente + + + SQLite + + + + + Skip photo scanning + Omitir el escaneo de fotos + + + + Skip video scanning + Omitir el escaneo de vídeos + + + + Skip music scanning + Omitir el escaneo de música + Disable USB monitoring @@ -308,27 +327,27 @@ En memoria - + Select the folder to be used as a photo source Seleccione el directorio a ser utilizado como origen de fotos - + Select the folder to be used as a music source Seleccione el directorio a ser utilizado como origen de música - + Select the folder to be used as a video source Seleccione el directorio a ser utilizado como origen de videos - + Select the folder to be used to save PS Vita games and backups Seleccione el directorio a ser utilizado para guardar juegos y respaldos - + Select the folder to be used to fetch software updates Seleccione el directorio a ser utilizado para extraer actualizaciones de software @@ -350,8 +369,8 @@ FilterLineEdit - - + + Filter Filtro @@ -359,7 +378,7 @@ HTTPDownloader - + Network error: %1 Error de red: %1 @@ -367,7 +386,7 @@ MainWidget - + Shutting down... Cerrando... @@ -376,49 +395,64 @@ Deteniendo QCMA... - + Stopping QCMA (disconnect your PS Vita) Deteniendo QCMA (desconecte su PS Vita) - - + + Disconnected Desconectado - + The device has been disconnected El dispositivo se ha desconectado - + About QCMA Acerca de QCMA - - Copyright (C) 2013 Codestation - Copyright (C) 2013 Codestation + + Copyright (C) 2014 Codestation + Copyright (C) 2013 Codestation {2014 ?} + + + + Copyright (C) 2014 Codestation + +build hash: %1 +build branch: %2 + Copyright (C) 2013 Codestation + +Hash de compilación: %1 +Rama de compilación: %2 {2014 ?} {1 +?} + + + Copyright (C) 2013 Codestation + Copyright (C) 2013 Codestation - Copyright (C) 2013 Codestation build hash: %1 build branch: %2 - Copyright (C) 2013 Codestation + Copyright (C) 2013 Codestation Hash de compilación: %1 Rama de compilación: %2 - + &About QCMA &Acerca de QCMA - + Qcma - Information Qcma - Información @@ -428,7 +462,7 @@ Rama de compilación: %2 Copyright (C) 2013 Codestation\n - + &Backup Manager &Gestor de Respaldos @@ -437,7 +471,7 @@ Rama de compilación: %2 &Acerca de - + Abou&t Qt A&cerca de Qt @@ -446,12 +480,12 @@ Rama de compilación: %2 PIN recibido: %1 - + &Settings &Ajustes - + &Refresh database &Refrescar base de datos @@ -460,17 +494,17 @@ Rama de compilación: %2 Gestor de Respaldos - + &Quit &Salir - + Qcma status Estado de Qcma - + Information Información @@ -573,7 +607,8 @@ Rama de compilación: %2 QObject - + + A instance of QCMA is already running Otra instancia de QCMA ya se encuentra en ejecución diff --git a/resources/translations/qcma_ja.ts b/resources/translations/qcma_ja.ts index c1168b0..13b203c 100644 --- a/resources/translations/qcma_ja.ts +++ b/resources/translations/qcma_ja.ts @@ -87,12 +87,12 @@ - + Filter - + Default account 標準アカウント @@ -102,7 +102,7 @@ 次の項目のバックアップを削除してもよろしいですか? - + Backup disk usage: %1 バックアップディスク使用容量: %1 @@ -138,32 +138,31 @@ %1個の項目をデータベースに追加しました - + Added %1 items to the database %1個の項目をデータベースに追加しました - + Database indexing aborted by user データベース構築がユーザーにより中止されました - + Cannot initialize VitaMTP library - + You must enable at least USB or Wireless monitoring - Cannot refresh the database while is in use - 使用中にはデータベースを更新できません + 使用中にはデータベースを更新できません - + No PS Vita system has been registered @@ -175,8 +174,8 @@ 次のデバイスに接続しました - - + + Connected to %1 (PS Vita) @@ -291,6 +290,26 @@ Update database automatically when files on the PC are changed PCのファイルが変更された際にデータベースを自動的に更新する + + + SQLite + + + + + Skip photo scanning + + + + + Skip video scanning + + + + + Skip music scanning + + Disable USB monitoring @@ -312,27 +331,27 @@ メモリ内 - + Select the folder to be used as a photo source フォトの参照先として使用されるフォルダを選択してください - + Select the folder to be used as a music source ミュージックの参照先として使用されるフォルダを選択してください - + Select the folder to be used as a video source ビデオの参照先として使用されるフォルダを選択してください - + Select the folder to be used to save PS Vita games and backups PS Vitaのゲームとバックアップの保存に使用されるフォルダを選択してください - + Select the folder to be used to fetch software updates ソフトウェアアップデートの取得に使用されるフォルダを選択してください @@ -355,8 +374,8 @@ FilterLineEdit - - + + Filter @@ -364,7 +383,7 @@ HTTPDownloader - + Network error: %1 @@ -372,7 +391,7 @@ MainWidget - + Shutting down... 終了しています... @@ -381,56 +400,56 @@ QCMAを停止しています... - + Stopping QCMA (disconnect your PS Vita) - - + + Disconnected 切断されました - + The device has been disconnected デバイスが切断されました - + About QCMA - - Copyright (C) 2013 Codestation + + Copyright (C) 2014 Codestation - - Copyright (C) 2013 Codestation + + Copyright (C) 2014 Codestation build hash: %1 build branch: %2 - + &Backup Manager - + &About QCMA - + Abou&t Qt - + Qcma - Information @@ -439,12 +458,12 @@ build branch: %2 受信したPIN: %1 - + &Settings &設定 - + &Refresh database &データベースを更新する @@ -453,17 +472,17 @@ build branch: %2 バックアップマネージャー - + &Quit &終了 - + Qcma status - + Information 情報 @@ -566,7 +585,8 @@ build branch: %2 QObject - + + A instance of QCMA is already running QCMAのプロセスがすでに実行しています diff --git a/src/forms/configwidget.cpp b/src/forms/configwidget.cpp index 6f5b14a..006db55 100644 --- a/src/forms/configwidget.cpp +++ b/src/forms/configwidget.cpp @@ -84,6 +84,10 @@ void ConfigWidget::setDefaultData() ui->usbCheck->setChecked(settings.value("disableUSB", false).toBool()); ui->wifiCheck->setChecked(settings.value("disableWireless", false).toBool()); ui->databaseSelect->setCurrentIndex(settings.value("useMemoryStorage", true).toBool() ? 0 : 1); + + ui->photoSkipCheck->setChecked(settings.value("photoSkip", false).toBool()); + ui->videoSkipCheck->setChecked(settings.value("videoSkip", false).toBool()); + ui->musicSkipCheck->setChecked(settings.value("musicSkip", false).toBool()); } ConfigWidget::~ConfigWidget() @@ -156,6 +160,9 @@ void ConfigWidget::accept() settings.setValue("disableUSB", ui->usbCheck->isChecked()); settings.setValue("disableWireless", ui->wifiCheck->isChecked()); settings.setValue("useMemoryStorage", ui->databaseSelect->currentIndex() == 0); + settings.setValue("photoSkip", ui->photoSkipCheck->isChecked()); + settings.setValue("videoSkip", ui->videoSkipCheck->isChecked()); + settings.setValue("musicSkip", ui->musicSkipCheck->isChecked()); settings.sync(); done(Accepted); diff --git a/src/forms/configwidget.ui b/src/forms/configwidget.ui index 3e3d5fd..725967d 100644 --- a/src/forms/configwidget.ui +++ b/src/forms/configwidget.ui @@ -300,6 +300,27 @@ + + + + Skip photo scanning + + + + + + + Skip video scanning + + + + + + + Skip music scanning + + + diff --git a/src/qlistdb.cpp b/src/qlistdb.cpp index 538354a..1d0303c 100644 --- a/src/qlistdb.cpp +++ b/src/qlistdb.cpp @@ -103,18 +103,23 @@ int QListDB::create() for(int i = 0, max = sizeof(ohfi_array) / sizeof(int); i < max; i++) { CMARootObject *obj = new CMARootObject(ohfi_array[i]); + bool skipCurrent = false; + int dir_count; switch(ohfi_array[i]) { case VITA_OHFI_MUSIC: obj->initObject(settings.value("musicPath").toString()); + skipCurrent = settings.value("musicSkip", false).toBool(); break; case VITA_OHFI_PHOTO: obj->initObject(settings.value("photoPath").toString()); + skipCurrent = settings.value("photoSkip", false).toBool(); break; case VITA_OHFI_VIDEO: obj->initObject(settings.value("videoPath").toString()); + skipCurrent = settings.value("videoSkip", false).toBool(); break; case VITA_OHFI_BACKUP: @@ -129,7 +134,12 @@ int QListDB::create() root_list list; list << obj; emit directoryAdded(obj->path); - int dir_count = recursiveScanRootDirectory(list, obj, ohfi_array[i]); + + if(!skipCurrent) { + dir_count = recursiveScanRootDirectory(list, obj, ohfi_array[i]); + } else { + dir_count = 0; + } if(dir_count < 0) { return -1;