From 9229d3523e0216e1b0d9e7abf50f72edc7747dd8 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Fri, 3 Feb 2023 01:04:48 +0100 Subject: [PATCH] debug --- README_FR.md | 5 ++ RsyncUI.pro | 10 ++++ RsyncUI.spec | 72 ++++++++++++++++++++++++ languages/fr_FR/RsyncUI_fr_FR.qm | Bin 5258 -> 5961 bytes languages/fr_FR/RsyncUI_fr_FR.ts | 93 ++++++++++++++++++------------- mainwindow.cpp | 2 +- 6 files changed, 142 insertions(+), 40 deletions(-) create mode 100644 README_FR.md create mode 100644 RsyncUI.spec diff --git a/README_FR.md b/README_FR.md new file mode 100644 index 0000000..6b8bc0d --- /dev/null +++ b/README_FR.md @@ -0,0 +1,5 @@ +# RsyncUI + +client Rsync - QT5 - KDE + +#Compilation: diff --git a/RsyncUI.pro b/RsyncUI.pro index 186ba3b..f05b0a0 100644 --- a/RsyncUI.pro +++ b/RsyncUI.pro @@ -44,8 +44,18 @@ else: unix:!android: target.path = /usr/bin/ lang.path = /languages/fr_FR/ lang.files = languages/fr_FR/* INSTALLS += lang +INSTALLS += documentation +INSTALLS += desktopfile +INSTALLS += icon RESOURCES += DISTFILES += \ RsyncUI.desktop + +documentation.path = /usr/share/doc/RsyncUI +documentation.files = README* +desktopfile.path = /usr/share/applications +desktopfile.files = RsyncUI.desktop +icon.path = /usr/share/icons/ +icon.files = RsyncUI.png diff --git a/RsyncUI.spec b/RsyncUI.spec new file mode 100644 index 0000000..ad17c2d --- /dev/null +++ b/RsyncUI.spec @@ -0,0 +1,72 @@ +%define oname RsyncUI + +Name: rsyncui +Summary: Client for rsync server +Version: 1.8.5 +Release: %mkrel 1 +License: GPLv3 +Group: Networking/Remote access +Source0: %{oname}-%{version}.tar.gz +Packager: dtux@free.fr +Distribution: Mageia +Url: https://www.librepc.fr +Vendor: DTux +BuildRequires: qmake +BuildRequires: make +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Concurrent) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5Xml) +BuildRequires: pkgconfig(libmagic) +BuildRequires: cmake(KF5Completion) +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5DBusAddons) +BuildRequires: cmake(KF5Config) +BuildRequires: cmake(KF5ItemViews) +BuildRequires: pstreams-devel +BuildRequires: boost-devel + +#Requires: kitemviews +#Requires: kcompletion +#Requires: kcoreaddons +#Requires: kdbusaddons +Requires: rsync +Requires: bind-utils + +%global debug_package %{nil} + +%description +RsyncUI can connect to an rsync server, get the list of services, +and download files. + +%prep +%setup -q -n %{oname} + +%build +%make_build + +%install +#INSTALL_ROOT=%{BUILDROOT} make install + +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_datadir}/applications/ +mkdir -p %{buildroot}%{_datadir}/icons/ +install -p -m 755 %{oname} %{buildroot}%{_bindir}/%{oname} +install -p -m 644 %{oname}.desktop %{buildroot}%{_datadir}/applications/ +install -p -m 644 %{oname}.png %{buildroot}%{_datadir}/icons/ + +pushd languages +for locale in *; +do + mkdir -p %{buildroot}%{_datadir}/locale/$locale/LC_MESSAGES + install -m 644 $locale/*.qm "%{buildroot}%{_datadir}/locale/$locale/LC_MESSAGES/" +done +popd +%find_lang %{oname} --with-qt + +%files -f %{oname}.lang +%{_bindir}/%{oname} +%{_datadir}/applications/%{oname}.desktop +%{_datadir}/icons/%{oname}.png diff --git a/languages/fr_FR/RsyncUI_fr_FR.qm b/languages/fr_FR/RsyncUI_fr_FR.qm index 9a35396d28dab5a509d3b9e116b341aa50723edc..25b9eefae64d3c73fbb19658ed1c85c56df39217 100644 GIT binary patch delta 1245 zcmZuvU1%It6#izjGdr98NweAh1R-9Hr39joRH%p;Y{X(p!KyD+sLbx%B%_m=b!K*3 z1F}#MMOIT-DF}(wKd28PxCOz6D5WZ`2=&DW73o8Z2$iZRMX5jEy_;-AWSD#Iz31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$8E~4VB@f=VZMYebu2woTY{2W;l4C@suKFHM?YyirT1GuxcG{@7?5X1~2189(?{Re&PypKI~Ubym$SwDLU!tdrd0b0`w>S!EJTpP z2!=4s6UP}?c0q667Ds}|!pV&qyEb|g=;K?Q_g?$B(%^1^$KI)g0%Plw)CQ;xV#Lnr zp}Jw#hLEf%0~IBLecF0Nh0jqtY<5Ty=e*e_)oAFh437SnBarre d'outils - - Menu - Menu + + Download + Télécharger - - + + Click on menu button to download the entire folder + Cliquer sur le bouton droit de la souris pour télécharger le dossier entier + + + + Change save folder Changer le dossier de destination - + About À propos - + About Qt À propos de Qt - + Settings Paramètres - + Byte Octet - + KB Ko - + MB Mo - + GB Go - + TB To - - + + PB Po - + Client for rsync server You click on file to enqueue it, and RyncUI Download one file a time @@ -193,81 +198,91 @@ You click on file to enqueue it, and RyncUI Download one file a time Cliquez sur un fichier pour l'ajouter dans la file de téléchargement - + Path Chemin - + Size Taille - + Type Type - - Exiting will stop downloading, and will clear the download queue. - Do you want to exit ? - Cela stoppera le téléchargement et effacera la file des téléchargements. -Voulez-vous vraiment arrêter le programme ? - - - + server does not exists Le serveur n'existe pas - - + + Dir Dir - - + + File - + Version Version - + Licence License - + Author Auteur - + EMail Courriel - + Source code Code source - + Choose directory to save file Choisissez le dossier où enregistrer - + Do you want to stop downloading and delete this file from download queue ? Voulez-vous arrêter le téléchargement et enlever ce fichier de la file de téléchargement ? - + + A list of interrupted downloads exists, do you want to continue downloading ? or you can delete the list + Voulez-vous reprendre les téléchargements interrompus la fois précédente? ou vous pouvez supprimer la liste + + + + Remove + Supprimer + + + + Exiting will stop downloading, and will clear the download queue. +You can save the list of downloads +Do you want to exit ? + Si vous sortez, les téléchargements seront arrêter, mais vous pouvez enregistrer la liste pour la prochaine fois + + + Do you want to delete this file from download queue ? Voulez-vous enlever ce fichier de la file de téléchargement ? diff --git a/mainwindow.cpp b/mainwindow.cpp index 8cf01b7..d5ce810 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -19,9 +19,9 @@ MainWindow::MainWindow(QWidget *parent) QCoreApplication::setOrganizationName("RsyncUI"); QCoreApplication::setApplicationName("RsyncUI"); + // context menu for treewidget ui->treeWidget->addAction(ui->actionDownload); - // init shortcut loadSettings(); config.setupUi(&Configuration);