diff --git a/fuel.pro b/fuel.pro index 2c70a44..05b1c75 100644 --- a/fuel.pro +++ b/fuel.pro @@ -68,6 +68,9 @@ CODECFORTR = UTF-8 TRANSLATIONS += \ intl/en_US.ts \ - intl/el_GR.ts + intl/el_GR.ts \ + intl/de_DE.ts \ + intl/es_ES.ts + diff --git a/intl/es_ES.ts b/intl/es_ES.ts new file mode 100644 index 0000000..30e79b6 --- /dev/null +++ b/intl/es_ES.ts @@ -0,0 +1,1237 @@ + +UTF-8 + + CloneDialog + + + Clone Repository + Clonar depósito + + + + URL + URL + + + + The URL of the source repository + La URL del depósito de código + + + + User Name + Nombre de Usuario + + + + The user name used to access the remote repository. Leave blank if not required + El nombre de usuario utilizado para acceder el depósito remoto. Deje en blanco si no es requerido. + + + + Password + Contraseña + + + + The password used to access the remote repository. Leave blank if not required + La contraseña usada para acceder al depósito remoto. Deje en blanco si no es requerida. + + + + Repository + Depósito + + + + Path to the local repository file + Ruta al archivo del depósito local + + + + ... + ... + + + + + + Error + Error + + + + Invalid URL. + URL inválida + + + + Invalid Repository File. + Archivo de depósito inválido + + + + Fossil Repository (*.fossil) + Depósito de Fossil (*.fossil) + + + + Select Fossil Repository + Seleccione el depósito de Fossil + + + + This repository file already exists. + Este archivo de depósito ya existe + + + + CommitDialog + + + Commit + Entregar + + + + FileActionDialog + + + File Action + Acción con Archivos + + + + MainWindow + + + Fuel + Fuel + + + + &File + &Archivo + + + + &Help + A&yuda + + + + &View + &Ver + + + + Main Toolbar + Barra principal de herramientas + + + + Refresh + Refrescar + + + + + Refresh the views + Refrescar las vistas + + + + F5 + F5 + + + + Commit + Entregar + + + + + Commit modifications + Entregar modificaciones + + + + Ctrl+M + Ctrl+M + + + + Diff + Diferencias + + + + + Display the differences between the current and last committed version + Muestre las diferencias entre la versión actual y la última entregada + + + + Ctrl+D + Ctrl+D + + + + Add + Añadir + + + + + Add files to the repository + Añadir archivos al depósito + + + + Ctrl++ + Ctrl++ + + + + Delete + Eliminar + + + + + Delete files from the repository + Eliminar archivos del depósito + + + + Ctrl+- + Ctrl+- + + + + &New... + &Nuevo + + + + + Make a new Fossil repository + Hacer un nuevo depósito de Fossil + + + + Ctrl+N + Ctrl+N + + + + &Open... + A&brir + + + + + Open a Fossil repository or workspace folder + Abrir un depósito de Fossil o una carpeta de trabajo + + + + Ctrl+O + Ctrl+O + + + + &Close + &Cerrar + + + + + Close the current workspace + Cerrar el área de trabajo acatual + + + + Clone... + Clonar... + + + + Push + Empujar + + + + + Push changes to the remote repository + Empujar cambios al depósito remoto + + + + Ctrl+P + Ctrl+P + + + + Pull + Halar + + + + + Pull changes from the remote repository + Halar cambios del depósito remoto + + + + Ctrl+L + Ctrl+L + + + + + Rename + Renombrar + + + + + Rename the selected file + Renombrar el archivo seleccionado + + + + Ctrl+R + Ctrl+R + + + + &Quit + &Terminar + + + + Quit + Terminar + + + + Ctrl+Q + Ctrl+Q + + + + History + Historia + + + + + Display the version history of a file via the Fossil UI + Mostrar las versiones de un archivo con la IU de Fossil + + + + Ctrl+H + Ctrl+H + + + + Fossil UI + IU de Fossil + + + + + Starts the Fosill UI in the Web Browser + Iniciar la IU de Fossil en el explorador web + + + + Revert + Revertir + + + + + Revert files to the last commited version + Revertir los archivos a la última versión entregada + + + + Clear Log + Limpiar la bitácora + + + + Clears the log + Limpia la bitácora + + + + Ctrl+K + Ctrl+K + + + + Timeline + Cronología + + + + + Display the change history of the Fossil repository + Mostrar la historia de cambios del depósito de Fossil + + + + Open file + Abrir archivo + + + + + Open the selected file + Abrir el archivo seleccionado + + + + Ctrl+Return + Ctrl+Intro + + + + Open Containing + Abra Conteniendo + + + + + Open the folder containing the selected file + Abra la carpeta conteniendo el archivo seleccionado + + + + Alt+Return + Alt+Intro + + + + + Undo + Deshacer + + + + + Undo the last Fossil action + Deshacer la última acción de Fossil + + + + Ctrl+Z + Ctrl+Z + + + + &About... + &Sobre + + + + About Fuel + Sobre Fuel + + + + + Update + Actualizar + + + + + Update the workspace to the latest version + Actualizar el área de trabajo a la última versión + + + + Ctrl+U + Ctrl+U + + + + &Preferences... + &Preferencias + + + + + Fuel Preferences + Preferencias de Fuel + + + + &Modified + &Modificado + + + + Show modifed files + Mostrar archivos modificados + + + + &Unchanged + &Inalterado + + + + Show unchanged files + Mostrar archivos sin cambios + + + + Un&known + &Desconocido + + + + Show unknown files + Mostrar archivos desconocidos + + + + &Ignored + &Ignorar + + + + Show ignored files + Mostrar archivos ignorados + + + + File &List + &Lista de archivos + + + + + View as files as a list + Ver archivos como lista + + + + View the workspace as a list of files + Ver el área de trabajo como lista de archivos + + + + Open Folder + Abrir carpeta + + + + + Open the selected folder + Abrir la carpeta seleccionada + + + + + + Rename Folder + Renombrar carpeta + + + + + Rename the selected folder + Renombrar la carpeta seleccionada + + + + Stash changes + Apartar cambios + + + + Show the stash + Mostrar lo apartado + + + + + Apply Stash + Aplicar lo apartado + + + + + Apply stashed changes + Aplicar cambios apartados + + + + &Stashed Changes + Cambios apartado&s + + + + View the Stash + Ver lo apartado + + + + Show the list of stashed changes + Mostrar la lista de cambios apartados + + + + Delete Stash + Eliminar lo apartado + + + + Diff Stash + Diferencias en lo apartado + + + + + + + + + + + + + + + + + + + + + + + + + + Error + Error + + + + Could not change current directory to '%0' + No se pudo cambiar el directorio actual a %0 + + + + Open Workspace + Abrir área de trabajo + + + + A workspace does not exist in this folder. +Would you like to create one here? + No existe un área de trabajo en esta carpeta. +¿Le gustaría crear una aquí? + + + + + Select Workspace Folder + Carpeta del área de trabajo seleccionada + + + + + Could not change current directory + No pude cambiar el directorio actual + + + + + Could not open repository. + No puedo abrir el depósito + + + + Fossil Files (*.fossil _FOSSIL_ .fslckout) + Archivos de Fossil (*.fossil _FOSSIL_.fslckout) + + + + Open Fossil Repository + Abrir depósito de Fossil + + + + Fossil Repositories (*.fossil) + Depósitos de Fossil (*.fossil) + + + + New Fossil Repository + Nuevo depósito de Fossil + + + + A repository file already exists. +Repository creation aborted. + El archivo del depósito ya existe. +Se ha abortado la creación del depósito. + + + + Create Workspace + Crear área de trabajo + + + + Would you like to create a workspace in the same folder? + ¿Le gustaría crear un área de trabajo en la misma carpeta? + + + + Could not create repository. + No se ha podido crear un depósito. + + + + Close Workspace + Cerrar área de trabajo. + + + + Are you sure want to close this workspace? + ¿Está seguro que quiere cerrar el área de trabajo? + + + + Cannot close the workspace. +Are there still uncommitted changes available? + No puedo cerrar el área de trabajo. +¿Hay aún disponibles cambios sin entregar? + + + + Could not clone the repository + No se pudo clonar el depósito + + + + No workspace detected. + No se detectó área de trabajo + + + + Old repository schema detected. Consider running 'fossil rebuild' + Se detectó el esquema viejo del depósito. Considere ejecutar 'fossil rebuild' + + + + Scanning Workspace... + Explorando el área de trabajo + + + + Updating... + Actualizando... + + + + Folders + Carpetas + + + + S + S + + + + File + Archivo + + + + Ext + Extensión + + + + Modified + Modificado + + + + Path + Ruta + + + + Stashes + Apartados + + + + Running Fossil + Ejecutando Fossil + + + + + Could not start Fossil executable '%s' + No se pudo iniciar el ejecutable de Fossil %s + + + + Terminated + Terminado + + + + Fossil UI is already running + La IU de Fossil ya está funcionando + + + + Starting Fossil browser UI. Please wait. + Iniciando el explorador de la IU de Fossil. Espere por favor. + + + + + A remote repository has not been specified. +Use the preferences window to set the remote repostory location + No se ha especificado un depósito remoto. +Use la ventana de preferencias para establecer la ubicación del depósito remoto. + + + + Commit Changes + Entregar Cambios + + + + + Could not generate comment file + No se pudo generar el archivo de comentarios + + + + Add files + Añadir archivos + + + + The following files will be added. + Los siguientes archivos serán añadidos + + + + + + + + + + + Are you sure? + ¿Está usted seguro? + + + + Remove files + Quitar archivos + + + + The following files will be removed from the repository. + Se quitarán los siguientes archivos del depósito + + + + Also delete the local files + También elimine los archivos locales + + + + Revert files + Revertir archivos + + + + The following files will be reverted. + Se revertirán los siguientes archivos + + + + + New name + Nuevo nombre + + + + File '%0' already exists. +Rename aborted. + El archivo '%0' ya existe. +Se abortó el renombrado. + + + + The following actions will be undone. + Se desharán las siguientes acciones. + + + + Fossil version %0 + La versión de Fossil es %0 + + + + About Fuel... + Sobre Fuel... + + + + a GUI frontend to the Fossil SCM +by Kostas Karanikolas +Released under the GNU GPL + una interface gráfica para el administrador de código fuente Fossil +por Kostas Karanikolas +Liberado bajo la licencia GNU GPL + + + + Icons by Deleket - Jojo Mendoza +Available under the CC Attribution Noncommercial No Derivative 3.0 License + Íconos por Deleket - Jojo Mendoza +Disponbile bajo la Licencia de Reconocimiento de Creación Colectiva 3.0 CC sin derivados comerciales + + + + Translations with the help of: + Traducciones con la ayuda de: + + + + The following files will be updated. + Se actualizarán los siguientes archivos + + + + + Cannot rename folder. + No puedo renombrar la carpeta + + + + Folder name contains invalid characters. + El nombre de la carpeta contiene caracteres inválidos + + + + This folder exists already. + Esta carpeta ya existía + + + + Renaming folder '%0' to '%1' +The following files will be moved in the repository. + Renombrando carpeta '%0' a '%1'. +Los siguientes archivos serán movidos al depósito. + + + + Also move the workspace files + También mueva los archivos del área de trabajo + + + + Move aborted due to errors + Movida abortada por errores + + + + Creating folder '%0' + Creando la carpeta '%0' + + + + Cannot make target folder '%0' + No puedo hacer la carpeta destino '%0' + + + + Target file '%0' exists already + El archivo destino '%0' ya existe + + + + Copying file '%0' to '%1' + Copiando archivo '%0' a '%1' + + + + Cannot copy file '%0' to '%1' + No puedo copiar el archivo '%0' a '%1' + + + + Removing old file '%0' + Removiendo el archivo anterior '%0' + + + + Source file '%0' does not exist + Archivo de código '%0' no existe + + + + Cannot remove file '%0' + No se puede remover el archivo '%0' + + + + Folder renamed completed. Don't forget to commit! + Completado el renombrado de la carpeta. ¡No olvide entregar! + + + + Revert stashed files + Revertir archivos apartados + + + + Stash Changes + Apartar cambios + + + + Invalid stash name + Nombre de apartado inválido + + + + This stash already exists + Este apartado ya existe + + + + The following stashes will be applied. + Serán aplicados los siguientes apartados + + + + Delete after applying + Borrar después de aplicar + + + + Stash application aborted due to errors + Aplicación de cambios apartados fue abortada debido a errores + + + + + Stash deletion aborted due to errors + Abortada la eliminación de apartados debido a errores + + + + Delete Stashes + Borrar apartados + + + + The following stashes will be deleted. + Serán borrados los siguientes cambios apartados + + + + SettingsDialog + + + Settings + Ajustes + + + + Application + Aplicación + + + + Fossil Path + Ruta a Fossil + + + + Path to the Fossil executable. Leave blank to use the default Fossil + Ruta al ejecutable de Fossil. Deje en blanco para usar el Fossil establecido. + + + + + + ... + ... + + + + Graphical Diff + Diferencia gráfica + + + + Path to graphical diff tool + Ruta a la herramienta de diferencias gráficas + + + + Graphical Merge + Fusión gráfica + + + + Path to the graphical merge tool + Ruta a la herramienta de fusión gráfica + + + + Commit Messages + Mensajes de entrega + + + + Clear the commit message history + Limpiar la historia de mensajes de entrega + + + + Clear + Limpiar + + + + Double-click Action + Acción del doble clic + + + + Action to perfom when double-clicking a file + Acción a realizar cuando cliquea dos veces en un archivo + + + + Language + Idioma + + + + Language for the user interface + Idioma para la interfaz de usuario + + + + Repository + Depósito + + + + Remote Url + URL remota + + + + The remote url used to push/pull changes. +URL style user names and passwords are also supported. +For example http://username:password@server.com/fossil + La URL remota usada para empujar/halar los cambios. +También se admiten nombres de usuario y contraseña en estilo URL. +Por ejemplo http://nombreusuario:contraseña@servidor.com/fossil + + + + Ignore List + Lista de ignorados + + + + A comma separated list of glob-style file/path patterns ignored in Fossil file operations + Una lista separada por comas de pegotes de patrones de archivos/rutas, a ser ignoradas por Fossil en operaciones con archivos + + + + Ignore CR/NL + Ignore CR/NL + + + + A comma separated list of glob-style file patterns to exclude from Fossil's CR/NL consistency checking + Una lista separada por comas de pegotes de patrones de archivos a ser excluidos de la revisión de consistencia de CR/NL de Fossil + + + + Applications + Aplicaciones + + + + Diff File + Archivo de diferencias + + + + Open File + Abrir Archivo + + + + Open Containing Folder + Abrir Carpeta Conteniendo + + + + Restart required + Se requiere reinicio + + + + The language change will take effect after restarting the application + El cambio de idioma se implementará después de reiniciar la aplicación + + + + Select Fossil executable + Seleccione el ejecutable de Fossil + + + + Select Graphical Diff application + Seleccione la aplicación de diferencias gráficas + + + + Select Graphical Merge application + Seleccione la aplicación de fusión gráfica + + + + Clear Commit Message History + Limpie la historia de mensajes de entrega + + + + Are you sure want to clear the commit message history? + ¿Está seguro que quiere limpiar la historia de mensajes de entrega? + + + \ No newline at end of file diff --git a/manifest b/manifest index 83e6dad..cf461e9 100644 --- a/manifest +++ b/manifest @@ -1,15 +1,16 @@ -C Added\sGerman\stranslation\n -D 2012-12-10T12:05:23.342 +C Added\sSpanish\stranslation\nChanged\sthe\shandling\sof\sFileView\scolumns\nFileView\scolumn\sorder\sand\ssizes\sis\snow\spersisted\sin\sthe\ssettings\n\n\n\n\n +D 2012-12-15T10:50:34.083 F dist/arch/PKGBUILD dd21073c035af4e6a4ecb3842c1fd7ae45c5e93d F dist/win/fuel.iss ef3558dbba409eb194938b930377fc9ee27d319e F doc/Building.txt 7c0f1060d4a08ed330058d4a3a68905c05228381 F doc/Changes.txt f2999c99053d2bf2aeaaba5504eb96e228dbac58 F doc/License.txt 4cc77b90af91e615a64ae04893fdffa7939db84c -F fuel.pro e90e7f9bfba35668673bc45bd226f39225170282 +F fuel.pro 3374e40d77a366de63f35f0c3bf48eb61ecbc979 F intl/convert.sh 5694496585ff5f4363c90ff8b6f48e19e0b6b4aa x F intl/de_DE.ts 82873d85b3df5b204d6c41aa666ef88dd60583aa F intl/el_GR.ts e7ba75d373804b715d23b86d289fb7b556079889 F intl/en_US.ts f403c29d85d104a3c64f8194bed4d995fcb458f2 +F intl/es_ES.ts cbecdafbcfbb02dfd0ec72147347b496bab84d91 F intl/update.sh b5312e108eec47f9c8cb7d6790c57335e6b52829 x F rsrc/fuel.desktop 43145556bc61f5a91b497c38a16aec44af271d29 F rsrc/fuel.rc 8e9ac966f283102c11a77cd7f936cdc09e09bd79 @@ -168,7 +169,7 @@ F rsrc/icons/Zoom-01.png 67ca532922e9166325c5c75fce1ca3fbb0d2b6a6 F rsrc/icons/fuel.icns 81e535004b62db801a02f3e15d0a33afc9d4070b F rsrc/icons/fuel.ico eb529ab3332a17b9302ef3e851db5b9ebce2a038 F rsrc/icons/fuel.png 40daf53b7f6bdcdd0d6aa5ef433d078ec5ea4342 -F rsrc/resources.qrc 8fd65286d8d50bcaf392c92badc9faadb474ee86 +F rsrc/resources.qrc 64f1e9ab75d3631ad65fac5c0653839e0cdda979 F src/CloneDialog.cpp 85bc6473d1e3a47d0f981e96357a376be63ab0bc F src/CloneDialog.h 1c63da4346ca20b67d52016b7b64875b9c5b477f F src/CommitDialog.cpp c62ce7fb234e43ca8641c16522c750e6419bf947 @@ -179,9 +180,9 @@ F src/FileTableView.cpp 5ddf8c391c9a3ac449ec61fb1db837b577afeec2 F src/FileTableView.h 03e56d87c2d46411b9762b87f4d301619aaf18df F src/LoggedProcess.cpp 2a1e5c94bc1e57c8984563e66c210e43a14dc60c F src/LoggedProcess.h 85df7c635c807a5a0e8c4763f17a0752aaff7261 -F src/MainWindow.cpp 1bf137068f79d3a1845c2911d4b6fab83dc8fb9c +F src/MainWindow.cpp e46c31b692b3d072a5f80aab9b910ab4524257f8 F src/MainWindow.h 3f3825cab25058666b6706b36f51269ad5f65f3e -F src/SettingsDialog.cpp 77f658e84f078a0155f33c260d0d0b15ed7360cb +F src/SettingsDialog.cpp 66e8ad0a01c58cd29f397d74f46274021abe34b8 F src/SettingsDialog.h d37dde23f698fbe6182b2e14234104a15468be3d F src/Utils.cpp caca5268e3194abe77211040bf9511a82909d2e6 F src/Utils.h 5af911147390879176e587fc60fb662490bb9e97 @@ -192,7 +193,7 @@ F ui/CommitDialog.ui 6200f6cabdcf40a20812e811be28e0793f82516f F ui/FileActionDialog.ui 89bb4dc2d0b8adcd41adcb11ec65f2028a09a12d F ui/MainWindow.ui 998f26c6fe75bd655cf3d4f0073e67dc0bf3b3d7 F ui/SettingsDialog.ui 7f578450cf01d6786ff2d91a2142505192446e3f -P f12aab3a403d0a1cab42eec7ddb476dd47cb5da3 -R 7bd397fc75c54f40319d22d40f72d194 +P 33305fed1383ad01dd5d66ef4cf379956508b0c8 +R a1ac056afe9f31b4aa8bb64f43ff42ac U kostas -Z b56973c86d77fcf3f468ad1873c85149 +Z 520d9618aa62a70c2f7ef5b438253c9f diff --git a/manifest.uuid b/manifest.uuid index 3fa5f27..4a4c710 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -33305fed1383ad01dd5d66ef4cf379956508b0c8 \ No newline at end of file +87b7bd70eec27bd136f17432d98dd313282fc3d1 \ No newline at end of file diff --git a/rsrc/resources.qrc b/rsrc/resources.qrc index 3f82763..2ababfc 100644 --- a/rsrc/resources.qrc +++ b/rsrc/resources.qrc @@ -155,5 +155,6 @@ intl/el_GR.qm intl/de_DE.qm + intl/es_ES.qm diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d0d4efa..719272c 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -133,6 +133,16 @@ MainWindow::MainWindow(Settings &_settings, QWidget *parent, QString *workspaceP SLOT( onFileViewDragOut() ), Qt::DirectConnection ); + QStringList header; + header << tr("Status") << tr("File") << tr("Ext") << tr("Modified") << tr("Path"); + repoFileModel.setHorizontalHeaderLabels(header); + repoFileModel.horizontalHeaderItem(COLUMN_STATUS)->setTextAlignment(Qt::AlignCenter); + + // Needed on OSX as the preset value from the GUI editor is not always reflected + ui->tableView->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); + ui->tableView->horizontalHeader()->setMovable(true); + ui->tableView->horizontalHeader()->setStretchLastSection(true); + // TreeView ui->treeView->setModel(&repoDirModel); connect( ui->treeView->selectionModel(), @@ -851,31 +861,18 @@ void MainWindow::updateDirView() //------------------------------------------------------------------------------ void MainWindow::updateFileView() { - // File View - repoFileModel.clear(); + // Clear content except headers + repoFileModel.removeRows(1, repoFileModel.rowCount()-1); - QStringList header; - header << tr("S") << tr("File") << tr("Ext") << tr("Modified"); - - bool multiple_dirs = selectedDirs.count()>1; - - bool show_path = viewMode==VIEWMODE_LIST || multiple_dirs; - - if(show_path) - header << tr("Path"); - - repoFileModel.setHorizontalHeaderLabels(header); - repoFileModel.horizontalHeaderItem(COLUMN_STATUS)->setTextAlignment(Qt::AlignCenter); - - struct { RepoFile::EntryType type; const char *tag; const char *tooltip; const char *icon; } + struct { RepoFile::EntryType type; QString text; const char *icon; } stats[] = { - { RepoFile::TYPE_EDITTED, "E", "Edited", ":icons/icons/Button Blank Yellow-01.png" }, - { RepoFile::TYPE_UNCHANGED, "U", "Unchanged", ":icons/icons/Button Blank Green-01.png" }, - { RepoFile::TYPE_ADDED, "A", "Added", ":icons/icons/Button Add-01.png" }, - { RepoFile::TYPE_DELETED, "D", "Deleted", ":icons/icons/Button Close-01.png" }, - { RepoFile::TYPE_RENAMED, "R", "Renamed", ":icons/icons/Button Reload-01.png" }, - { RepoFile::TYPE_MISSING, "M", "Missing", ":icons/icons/Button Help-01.png" }, + { RepoFile::TYPE_EDITTED, tr("Edited"), ":icons/icons/Button Blank Yellow-01.png" }, + { RepoFile::TYPE_UNCHANGED, tr("Unchanged"), ":icons/icons/Button Blank Green-01.png" }, + { RepoFile::TYPE_ADDED, tr("Added"), ":icons/icons/Button Add-01.png" }, + { RepoFile::TYPE_DELETED, tr("Deleted"), ":icons/icons/Button Close-01.png" }, + { RepoFile::TYPE_RENAMED, tr("Renamed"), ":icons/icons/Button Reload-01.png" }, + { RepoFile::TYPE_MISSING, tr("Missing"), ":icons/icons/Button Help-01.png" }, }; QFileIconProvider icon_provider; @@ -891,36 +888,29 @@ void MainWindow::updateFileView() continue; // Status Column - const char *tag = "?"; // Default Tag - const char *tooltip = "Unknown"; - const char *status_icon= ":icons/icons/Button Blank Gray-01.png"; // Default icon + QString status_text = QString(tr("Unknown")); + const char *status_icon_path= ":icons/icons/Button Blank Gray-01.png"; // Default icon for(size_t t=0; tsetToolTip(tooltip); + QStandardItem *status = new QStandardItem(QIcon(status_icon_path), status_text); + status->setToolTip(status_text); repoFileModel.setItem(item_id, COLUMN_STATUS, status); QFileInfo finfo = e.getFileInfo(); QIcon icon = icon_provider.icon(finfo); QStandardItem *filename_item = 0; - if(show_path) - { - repoFileModel.setItem(item_id, COLUMN_PATH, new QStandardItem(path)); - filename_item = new QStandardItem(icon, QDir::toNativeSeparators(e.getFilePath())); - } - else // In Tree mode the path is implicit so the file name is enough - filename_item = new QStandardItem(icon, e.getFilename()); + repoFileModel.setItem(item_id, COLUMN_PATH, new QStandardItem(path)); + filename_item = new QStandardItem(icon, QDir::toNativeSeparators(e.getFilePath())); Q_ASSERT(filename_item); // Keep the path in the user data @@ -933,12 +923,7 @@ void MainWindow::updateFileView() ++item_id; } - ui->tableView->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); - ui->tableView->resizeColumnsToContents(); - ui->tableView->horizontalHeader()->setMovable(true); ui->tableView->resizeRowsToContents(); - // Needed on OSX as the preset value from the GUI editor is not always reflected - ui->tableView->horizontalHeader()->setStretchLastSection(true); } //------------------------------------------------------------------------------ @@ -1303,6 +1288,27 @@ void MainWindow::applySettings() } store->endArray(); + store->beginReadArray("FileColumns"); + for(int i=0; isetArrayIndex(i); + if(store->contains("Width")) + { + int width = store->value("Width").toInt(); + ui->tableView->setColumnWidth(i, width); + } + + if(store->contains("Index")) + { + int index = store->value("Index").toInt(); + int cur_index = ui->tableView->horizontalHeader()->visualIndex(i); + ui->tableView->horizontalHeader()->moveSection(cur_index, index); + } + + } + store->endArray(); + + if(store->contains("WindowX") && store->contains("WindowY")) { QPoint _pos; @@ -1357,6 +1363,16 @@ void MainWindow::updateSettings() } store->endArray(); + store->beginWriteArray("FileColumns", repoFileModel.columnCount()); + for(int i=0; isetArrayIndex(i); + store->setValue("Width", ui->tableView->columnWidth(i)); + int index = ui->tableView->horizontalHeader()->visualIndex(i); + store->setValue("Index", index); + } + store->endArray(); + store->setValue("WindowX", x()); store->setValue("WindowY", y()); store->setValue("WindowWidth", width()); @@ -1941,7 +1957,9 @@ void MainWindow::on_actionAbout_triggered() tr("Icons by Deleket - Jojo Mendoza\n" "Available under the CC Attribution Noncommercial No Derivative 3.0 License") + "\n\n" + tr("Translations with the help of:") + "\n" - "stayawake (German de_DE)\n" ); + "stayawake (German de_DE)\n" + "djnavas (Spanish es_ES)\n" + ); } //------------------------------------------------------------------------------ diff --git a/src/SettingsDialog.cpp b/src/SettingsDialog.cpp index bf769a9..73fa309 100644 --- a/src/SettingsDialog.cpp +++ b/src/SettingsDialog.cpp @@ -142,6 +142,7 @@ void SettingsDialog::on_btnClearMessageHistory_clicked() void SettingsDialog::CreateLangMap() { langMap.append(LangMap("en_US", "English (US)")); + langMap.append(LangMap("es_ES", "Spanish (ES)")); langMap.append(LangMap("de_DE", "German (DE)")); langMap.append(LangMap("el_GR", "Greek")); }