From 8b35ad9848dfe24741d37b771b7e2704a4c6f5d0 Mon Sep 17 00:00:00 2001 From: Kjell Tore Ullavik Date: Thu, 23 Nov 2017 06:38:36 +0100 Subject: Fix right click crash when qsudo is not installed. --- src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp index 453e9e61..d3b0ae2b 100644 --- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp +++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp @@ -289,7 +289,9 @@ void DirWidget::createMenus(){ cOpenMenu->addAction(LXDG::findIcon("utilities-terminal",""), tr("Open Current Dir in a Terminal"), this, SLOT(openTerminal()), kOpTerm->key()); cOpenMenu->addAction(LXDG::findIcon("media-slideshow",""), tr("SlideShow"), this, SLOT(openInSlideshow()), kOpSS->key()); cOpenMenu->addAction(LXDG::findIcon("media-playback-start-circled","media-playback-start"), tr("Multimedia Player"), this, SLOT(openMultimedia()), kOpMM->key()); - if(LUtils::isValidBinary("qsudo")){ cOpenMenu->addAction(LXDG::findIcon("", ""), tr("Open Current Dir as Root"), this, SLOT(openRootFM())); + if(LUtils::isValidBinary("qsudo")){ + cOpenMenu->addAction(LXDG::findIcon("", ""), tr("Open Current Dir as Root"), this, SLOT(openRootFM())); + } if(cArchiveMenu==0){ cArchiveMenu = new QMenu(this); } cArchiveMenu->setTitle(tr("Archive Options")); @@ -327,9 +329,6 @@ void DirWidget::createMenus(){ if(LUtils::isValidBinary("lumina-fileinfo")){ cFViewMenu->addAction(LXDG::findIcon("edit-find-replace",""), tr("Properties"), this, SLOT(fileProperties()) ); } - -} - } BrowserWidget* DirWidget::currentBrowser(){ -- cgit From 0f2302e6e527d951776386b585901443249f6ead Mon Sep 17 00:00:00 2001 From: Andreas Müller Date: Thu, 23 Nov 2017 17:22:58 +0100 Subject: lumina-desktop.pro: fix out of tree installation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: | cp: cannot stat 'defaults/desktop-background.jpg': No such file or directory Signed-off-by: Andreas Müller --- src-qt5/core/lumina-desktop/lumina-desktop.pro | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/core/lumina-desktop/lumina-desktop.pro b/src-qt5/core/lumina-desktop/lumina-desktop.pro index 82da892c..9c8272c8 100644 --- a/src-qt5/core/lumina-desktop/lumina-desktop.pro +++ b/src-qt5/core/lumina-desktop/lumina-desktop.pro @@ -92,17 +92,17 @@ conf.path = $${L_ETCDIR} message("Installing defaults settings for OS: $${DEFAULT_SETTINGS}") OS=$${DEFAULT_SETTINGS} } -exists("defaults/luminaDesktop-$${OS}.conf"){ +exists("$$PWD/defaults/luminaDesktop-$${OS}.conf"){ message(" -- Found OS-specific system config file: $${OS}"); - conf.extra = cp defaults/luminaDesktop-$${OS}.conf $(INSTALL_ROOT)$${L_ETCDIR}/luminaDesktop.conf.dist + conf.extra = cp $$PWD/defaults/luminaDesktop-$${OS}.conf $(INSTALL_ROOT)$${L_ETCDIR}/luminaDesktop.conf.dist }else{ - conf.extra = cp defaults/luminaDesktop.conf $(INSTALL_ROOT)$${L_ETCDIR}/luminaDesktop.conf.dist + conf.extra = cp $$PWD/defaults/luminaDesktop.conf $(INSTALL_ROOT)$${L_ETCDIR}/luminaDesktop.conf.dist } -exists("defaults/desktop-background-$${OS}.jpg"){ +exists("$$PWD/defaults/desktop-background-$${OS}.jpg"){ message(" -- Found OS-specific background image: $${OS}"); - defaults.extra = cp defaults/desktop-background-$${OS}.jpg $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/desktop-background.jpg + defaults.extra = cp $$PWD/defaults/desktop-background-$${OS}.jpg $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/desktop-background.jpg }else{ - defaults.extra = cp defaults/desktop-background.jpg $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/desktop-background.jpg + defaults.extra = cp $$PWD/defaults/desktop-background.jpg $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/desktop-background.jpg } TRANSLATIONS = i18n/lumina-desktop_af.ts \ -- cgit From 0ca39876f64f6d2813b70e4483a3bc82bd5b828c Mon Sep 17 00:00:00 2001 From: Serg Bormant Date: Fri, 24 Nov 2017 19:23:24 +0000 Subject: Translated using Weblate (Russian) Currently translated at 100.0% (33 of 33 strings) Translation: lumina/lumina-calculator Translate-URL: http://weblate.trueos.org/projects/lumina/lumina-calculator/ru/ --- .../lumina-calculator/i18n/l-calc_ru.ts | 66 +++++++++++----------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_ru.ts b/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_ru.ts index 3ec5b808..e14c13f2 100644 --- a/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_ru.ts +++ b/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_ru.ts @@ -6,67 +6,67 @@ Multimedia - + Мультимедиа Development - + Разработка Education - + Образование Games - + Игры Graphics - + Графика Network - + Сети Office - + Офис Science - + Наука Settings - + Настройки System - + Система Utility - + Инструменты Wine - + Вино Unsorted - + Разное @@ -75,102 +75,102 @@ Calculator - + Калькулятор Advanced Operations - + Расширенные операции Percentage %1 - + Процент %1 Power %1 - + Степень %1 Base-10 Exponential %1 - + 10 в степени %1 Exponential %1 - + Экспонента %1 Constant Pi %1 - + Число Пи %1 Square Root %1 - + Квадратный корень %1 Logarithm %1 - + Логарифм %1 Natural Log %1 - + Нат. логарифм %1 Sine %1 - + Синус %1 Cosine %1 - + Косинус %1 Tangent %1 - + Тангенс %1 Arc Sine %1 - + Арксинус %1 Arc Cosine %1 - + Арккосинус %1 Arc Tangent %1 - + Арктангес %1 Hyperbolic Sine %1 - + Гиперболический синус %1 Hyperbolic Cosine %1 - + Гиперболический косинус %1 Hyperbolic Tangent %1 - + Гиперболический тангенс %1 Save Calculator History - + Сохранить историю калькулятора -- cgit From 930e141075c5eb49e8952c8dd2b95602ebd3f924 Mon Sep 17 00:00:00 2001 From: Kardos László Date: Fri, 24 Nov 2017 12:44:03 +0000 Subject: Translated using Weblate (Hungarian) Currently translated at 12.1% (4 of 33 strings) Translation: lumina/lumina-calculator Translate-URL: http://weblate.trueos.org/projects/lumina/lumina-calculator/hu/ --- .../lumina-calculator/i18n/l-calc_hu.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_hu.ts b/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_hu.ts index 157dbda3..2cea5cfd 100644 --- a/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_hu.ts +++ b/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_hu.ts @@ -6,52 +6,52 @@ Multimedia - + Multimédia Development - + Fejlesztés Education - + Oktatás Games - + Játékok Graphics - + Grafika Network - + Hálózat Office - + Iroda Science - + Tudomány Settings - + Beállítások System - + Rendszer @@ -61,7 +61,7 @@ Wine - + Wine -- cgit From 5ae13b0ce91d22420d8369fc58c5c0511a3c5bc4 Mon Sep 17 00:00:00 2001 From: q5sys Date: Fri, 24 Nov 2017 15:02:19 -0500 Subject: add file menu shortcuts into lumina-textedit --- src-qt5/desktop-utils/lumina-textedit/MainUI.ui | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.ui b/src-qt5/desktop-utils/lumina-textedit/MainUI.ui index fec94a21..026521b3 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.ui +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.ui @@ -190,7 +190,7 @@ - File + &File @@ -204,7 +204,7 @@ - View + &View @@ -232,7 +232,7 @@ - Edit + &Edit -- cgit From e1ca1a6d0e962a8f81d6b9b29cc6bd1a60766067 Mon Sep 17 00:00:00 2001 From: q5sys Date: Fri, 24 Nov 2017 15:04:33 -0500 Subject: add file menu shortcuts into lumina-archiver --- src-qt5/desktop-utils/lumina-archiver/MainUI.ui | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-archiver/MainUI.ui b/src-qt5/desktop-utils/lumina-archiver/MainUI.ui index 7de273a1..878b817a 100644 --- a/src-qt5/desktop-utils/lumina-archiver/MainUI.ui +++ b/src-qt5/desktop-utils/lumina-archiver/MainUI.ui @@ -117,12 +117,12 @@ 0 0 403 - 20 + 28 - File + &File @@ -131,7 +131,7 @@ - Edit + &Edit @@ -142,7 +142,7 @@ - Burn to Disk + &Burn to Disk -- cgit From b6c833bfdd6d422bfd29d7d7a1ca77b58a6ca502 Mon Sep 17 00:00:00 2001 From: q5sys Date: Fri, 24 Nov 2017 15:07:54 -0500 Subject: add file menu shortcuts into lumina-fileinfo --- src-qt5/desktop-utils/lumina-fileinfo/MainUI.ui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-fileinfo/MainUI.ui b/src-qt5/desktop-utils/lumina-fileinfo/MainUI.ui index 5139bbf7..b9cde7c8 100644 --- a/src-qt5/desktop-utils/lumina-fileinfo/MainUI.ui +++ b/src-qt5/desktop-utils/lumina-fileinfo/MainUI.ui @@ -609,12 +609,12 @@ 0 0 800 - 39 + 28 - File + &File -- cgit From c6925a71a2165a29601e20c6bce7774d835a7891 Mon Sep 17 00:00:00 2001 From: q5sys Date: Fri, 24 Nov 2017 15:08:36 -0500 Subject: add file menu shortcuts into lumina-fm --- src-qt5/desktop-utils/lumina-fm/MainUI.ui | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-fm/MainUI.ui b/src-qt5/desktop-utils/lumina-fm/MainUI.ui index 8a635199..a15f91c9 100644 --- a/src-qt5/desktop-utils/lumina-fm/MainUI.ui +++ b/src-qt5/desktop-utils/lumina-fm/MainUI.ui @@ -111,7 +111,7 @@ - File + &File @@ -125,7 +125,7 @@ - View + &View @@ -142,7 +142,7 @@ - Bookmarks + &Bookmarks @@ -150,14 +150,14 @@ - External Devices + &External Devices - Git + &Git -- cgit From 23f7674a1e92b193fd0f052de3aa1b75b8677e26 Mon Sep 17 00:00:00 2001 From: q5sys Date: Fri, 24 Nov 2017 15:10:06 -0500 Subject: add file menu shortcuts into lumina-mediaplayer --- src-qt5/desktop-utils/lumina-mediaplayer/mainUI.ui | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.ui b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.ui index 57567e52..a07c0bb5 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.ui +++ b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.ui @@ -673,19 +673,19 @@ 0 0 405 - 19 + 28 - File + &File - View + &View -- cgit From 8cb0a016aa237866767bef2b559c3e8d13177931 Mon Sep 17 00:00:00 2001 From: q5sys Date: Fri, 24 Nov 2017 15:11:29 -0500 Subject: add file menu shortcuts into lumina-pdf --- src-qt5/desktop-utils/lumina-pdf/mainUI.ui | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-pdf/mainUI.ui b/src-qt5/desktop-utils/lumina-pdf/mainUI.ui index bbc76bab..7f555d01 100644 --- a/src-qt5/desktop-utils/lumina-pdf/mainUI.ui +++ b/src-qt5/desktop-utils/lumina-pdf/mainUI.ui @@ -20,12 +20,12 @@ 0 0 659 - 24 + 28 - File + &File @@ -35,7 +35,7 @@ - Presentation + &Presentation -- cgit From b0a97b73a56cc36e1e910e722b912b3bbe744afe Mon Sep 17 00:00:00 2001 From: q5sys Date: Fri, 24 Nov 2017 15:14:26 -0500 Subject: add file menu shortcuts into lumina-xdg --- src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui b/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui index 928ce30a..cbcd2f5b 100644 --- a/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui +++ b/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui @@ -315,12 +315,12 @@ 0 0 564 - 27 + 28 - Menu + &Menu -- cgit From 0069a052e1cbef588e8f93a31314965b0c2af68a Mon Sep 17 00:00:00 2001 From: q5sys Date: Fri, 24 Nov 2017 15:25:42 -0500 Subject: remove lumina-xdg-entry from build --- src-qt5/desktop-utils/desktop-utils.pro | 1 - src-qt5/desktop-utils/lumina-xdg-entry/README.md | 12 - .../lumina-xdg-entry/lumina-xdg-entry.1 | 20 -- .../lumina-xdg-entry/lumina-xdg-entry.desktop | 11 - .../lumina-xdg-entry/lumina-xdg-entry.pro | 31 -- src-qt5/desktop-utils/lumina-xdg-entry/main.cpp | 17 - .../desktop-utils/lumina-xdg-entry/mainwindow.cpp | 138 --------- .../desktop-utils/lumina-xdg-entry/mainwindow.h | 40 --- .../desktop-utils/lumina-xdg-entry/mainwindow.ui | 344 --------------------- 9 files changed, 614 deletions(-) delete mode 100644 src-qt5/desktop-utils/lumina-xdg-entry/README.md delete mode 100644 src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.1 delete mode 100644 src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.desktop delete mode 100644 src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.pro delete mode 100644 src-qt5/desktop-utils/lumina-xdg-entry/main.cpp delete mode 100644 src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.cpp delete mode 100644 src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.h delete mode 100644 src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/desktop-utils.pro b/src-qt5/desktop-utils/desktop-utils.pro index 5014a9f0..41601fd2 100644 --- a/src-qt5/desktop-utils/desktop-utils.pro +++ b/src-qt5/desktop-utils/desktop-utils.pro @@ -12,6 +12,5 @@ SUBDIRS+= lumina-fm \ lumina-archiver \ # lumina-notify \ lumina-mediaplayer \ - lumina-xdg-entry \ lumina-pdf # lumina-terminal diff --git a/src-qt5/desktop-utils/lumina-xdg-entry/README.md b/src-qt5/desktop-utils/lumina-xdg-entry/README.md deleted file mode 100644 index 32754215..00000000 --- a/src-qt5/desktop-utils/lumina-xdg-entry/README.md +++ /dev/null @@ -1,12 +0,0 @@ -## XDG Desktop Entry Creator for the Lumina Desktop - -This is a simple graphical utility to assist in creating XDG-compliant desktop entries. - -### Library Dependencies - -1. Qt 5.2+ (specific modules listed below) - * core - * gui - * widgets -2. Other Libraries - * libc diff --git a/src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.1 b/src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.1 deleted file mode 100644 index 174e57fa..00000000 --- a/src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.1 +++ /dev/null @@ -1,20 +0,0 @@ -.Dd October 23, 2017 -.Dt LUMINA-XDG-ENTRY 1 -.Os 1.3.3 - -.Sh NAME -.Nm lumina-xdg-entry -.Nd is a simple graphical tool for creating XDG desktop entries. - -.Sh SYNOPSIS -.Nm - -.Sh DESCRIPTION -The -.Nm -command brings up the graphical tool to create desktop entries. -The user can create an XDG desktop with a specified name and generic name. - -.Sh AUTHORS -.An Aaron St. John -.Aq aaron@ixsystems.com diff --git a/src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.desktop b/src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.desktop deleted file mode 100644 index a635eb7f..00000000 --- a/src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Type=Application -Version=1.0 -Name=Lumina-XDG-Entry -GenericName=.desktop file Creator -Comment= -Icon= -Terminal=false -Exec=/usr/local/bin/lumina-xdg-entry -Categories=Utility; -Keywords= diff --git a/src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.pro b/src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.pro deleted file mode 100644 index 7159eccb..00000000 --- a/src-qt5/desktop-utils/lumina-xdg-entry/lumina-xdg-entry.pro +++ /dev/null @@ -1,31 +0,0 @@ -#=========================================== -# Copyright (c) 2017, q5sys (JT) -# Available under the MIT license -# See the LICENSE file for full details -#=========================================== -include("$${PWD}/../../OS-detect.pri") - -QT += core gui - -greaterThan(QT_MAJOR_VERSION, 4): QT += widgets - -TARGET = lumina-xdg-entry -TEMPLATE = app -target.path = $${L_BINDIR} - -DEFINES += QT_DEPRECATED_WARNINGS - -SOURCES += main.cpp\ - mainwindow.cpp - -HEADERS += mainwindow.h - -FORMS += mainwindow.ui - -desktop.files=lumina-xdg-entry.desktop -desktop.path=$${L_SHAREDIR}/applications/ - -manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-xdg-entry.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-xdg-entry.1.gz" - -INSTALLS += target desktop manpage diff --git a/src-qt5/desktop-utils/lumina-xdg-entry/main.cpp b/src-qt5/desktop-utils/lumina-xdg-entry/main.cpp deleted file mode 100644 index 70ac8671..00000000 --- a/src-qt5/desktop-utils/lumina-xdg-entry/main.cpp +++ /dev/null @@ -1,17 +0,0 @@ -//=========================================== -// Copyright (c) 2017, q5sys (JT) -// Available under the MIT license -// See the LICENSE file for full details -//=========================================== -#include "mainwindow.h" -#include - -int main(int argc, char *argv[]) -{ - QApplication a(argc, argv); - MainWindow w; - w.setWindowTitle(".Desktop Creator"); - w.show(); - - return a.exec(); -} diff --git a/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.cpp b/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.cpp deleted file mode 100644 index 1ad6edcd..00000000 --- a/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.cpp +++ /dev/null @@ -1,138 +0,0 @@ -//=========================================== -// Copyright (c) 2017, q5sys (JT) -// Available under the MIT license -// See the LICENSE file for full details -//=========================================== - -#include "mainwindow.h" -#include "ui_mainwindow.h" -#include "QDir" -#include "QFile" -#include "QTextStream" -#include "QImageReader" -#include "QFileDialog" -#include "QMessageBox" - - -MainWindow::MainWindow(QWidget *parent) : - QMainWindow(parent), - ui(new Ui::MainWindow) -{ - ui->setupUi(this); - connect(ui->pushButton_executable, SIGNAL(clicked()), this, SLOT(setExec()) ); - connect(ui->pushButton_icon, SIGNAL(clicked()), this, SLOT(setIcon()) ); - connect(ui->pushButton_save, SIGNAL(clicked()), this, SLOT(save()) ); - connect(ui->actionSave, SIGNAL(triggered()), this, SLOT(save()) ); - connect(ui->actionClose, SIGNAL(triggered()), this, SLOT(close()) ); - -} - -MainWindow::~MainWindow() -{ - delete ui; -} - -void MainWindow::setIcon(){ - //Prompt for a new image file - QStringList imgformats; - QList fmts = QImageReader::supportedImageFormats(); - for(int i=0; ilineEdit_icon->setText(iconpath); - icon = ui->lineEdit_icon->text(); - } - - -void MainWindow::setExec(){ - //Prompt for a new executable file - QString execpath = QFileDialog::getOpenFileName(this, tr("Select File"), QDir::homePath(), tr("All Files (*)") ); - ui->lineEdit_executable->setText(execpath); - executable = ui->lineEdit_executable->text(); - } - -void MainWindow::setCategories(){ -if(ui->checkBox_audio->isChecked()){ -catList = catList + "Audio;";} -if(ui->checkBox_video->isChecked()){ -catList = catList + "Video;";} -if(ui->checkBox_development->isChecked()){ -catList = catList + "Development;";} -if(ui->checkBox_education->isChecked()){ -catList = catList + "Education;";} -if(ui->checkBox_game->isChecked()){ -catList = catList + "Game;";} -if(ui->checkBox_graphics->isChecked()){ -catList = catList + "Graphics;";} -if(ui->checkBox_network->isChecked()){ -catList = catList + "Network;";} -if(ui->checkBox_office->isChecked()){ -catList = catList + "Office;";} -if(ui->checkBox_science->isChecked()){ -catList = catList + "Science;";} -if(ui->checkBox_settings->isChecked()){ -catList = catList + "Settings;";} -if(ui->checkBox_system->isChecked()){ -catList = catList + "System;";} -if(ui->checkBox_utility->isChecked()){ -catList = catList + "Utility;";} -categories = catList; -} - -void MainWindow::setOtherValues(){ -name = ui->lineEdit_name->text(); -genericname = ui->lineEdit_genericname->text(); -keywords = ui->lineEdit_keywords->text(); -comment = ui->lineEdit_comment->text(); -if(ui->checkBox_terminal->isChecked()){ -terminal = "true";} else{terminal = "false";}; -} - -void MainWindow::setDesktopFields(){ -setCategories(); -setOtherValues(); -namefield = "Name=" + name; -genericnamefield = "GenericName=" + genericname; -commentfield = "Comment=" + comment; -iconfield = "Icon=" + icon; -terminalfield = "Terminal=" + terminal; -execfield = "Exec=" + executable; -categoriesfield = "Categories=" + categories; -keywordfield = "Keywords=" + keywords; -} - -void MainWindow::save(){ -setDesktopFields(); -QString path = QDir::homePath(); -QString filename; -filename = path + "/" + name + ".desktop"; - -QFile file(filename); -file.open(QIODevice::WriteOnly | QIODevice::Text); -QTextStream stream(&file); -stream << "[Desktop Entry]" << endl; -stream << "Type=Application" << endl; -stream << "Version=1.0" << endl; -stream << namefield << endl; -stream << genericnamefield << endl; -stream << commentfield << endl; -stream << iconfield << endl; -stream << terminalfield << endl; -stream << execfield << endl; -stream << categoriesfield << endl; -stream << keywordfield << endl; -if(file.isOpen()){ - QMessageBox *messageBox = new QMessageBox; - messageBox->setText(tr("File Saved")); - QPushButton *pushButtonOk = messageBox->addButton(tr("Ok"), QMessageBox::YesRole); - messageBox->QDialog::setWindowTitle(tr("Successful")); - messageBox->show();} -else{ QMessageBox *messageBox = new QMessageBox; - messageBox->setText(tr("File Not Saved")); - QPushButton *pushButtonOk = messageBox->addButton(tr("Ok"), QMessageBox::YesRole); - messageBox->QDialog::setWindowTitle(tr("Unsuccessful")); -messageBox->show();} -file.close(); -} diff --git a/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.h b/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.h deleted file mode 100644 index 1aad8325..00000000 --- a/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.h +++ /dev/null @@ -1,40 +0,0 @@ -//=========================================== -// Copyright (c) 2017, q5sys (JT) -// Available under the MIT license -// See the LICENSE file for full details -//=========================================== - -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include - -namespace Ui { -class MainWindow; -} - -class MainWindow : public QMainWindow -{ - Q_OBJECT - -public: - explicit MainWindow(QWidget *parent = 0); - ~MainWindow(); - - QString name, genericname, comment, icon, executable, terminal, keywords, catList, categories, iconpath, execpath; - QString namefield, genericnamefield, commentfield, iconfield, terminalfield,execfield, categoriesfield, keywordfield; - -public slots: - void setIcon(); - void setExec(); - void setCategories(); - void setOtherValues(); - void setDesktopFields(); - void save(); - - -private: - Ui::MainWindow *ui; -}; - -#endif // MAINWINDOW_H diff --git a/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui b/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui deleted file mode 100644 index cbcd2f5b..00000000 --- a/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui +++ /dev/null @@ -1,344 +0,0 @@ - - - MainWindow - - - - 0 - 0 - 564 - 492 - - - - MainWindow - - - - - - - - - Name - - - lineEdit_name - - - - - - - - - - - - - - Generic Name - - - lineEdit_genericname - - - - - - - - - - - - - - - - - Comment - - - lineEdit_comment - - - - - - - - - - - - - - - - Values seperated by semicolon (no spaces) - - - 3 - - - Keywords - - - lineEdit_keywords - - - - - - - Keywords separated by semicolons with no spaces - - - - - - - - - - - - - Executable - - - lineEdit_executable - - - - - - - - - - Select - - - - - - - - - - - Icon - - - lineEdit_icon - - - - - - - - - - Select - - - - - - - - - Qt::Horizontal - - - - - - - - - Categories - - - - - - - - - Audio - - - - - - - Video - - - - - - - Development - - - - - - - - - - - Education - - - - - - - Game - - - - - - - Graphics - - - - - - - - - - - Network - - - - - - - Office - - - - - - - Science - - - - - - - - - - - Settings - - - - - - - System - - - - - - - Utility - - - - - - - - - - - Qt::Horizontal - - - - - - - - - Qt::RightToLeft - - - Run in Terminal - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Save - - - - - - - - - - - 0 - 0 - 564 - 28 - - - - - &Menu - - - - - - - - - Close - - - - - Save - - - - - - - -- cgit From 6b1a38389925839278b2735041e088224b4a7be2 Mon Sep 17 00:00:00 2001 From: q5sys Date: Mon, 27 Nov 2017 01:34:28 -0500 Subject: remove file manager dev folder --- src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.cpp | 75 -- src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.h | 44 - src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.ui | 101 -- src-qt5/desktop-utils/lumina-fm-dev/Browser.cpp | 161 --- src-qt5/desktop-utils/lumina-fm-dev/Browser.h | 75 -- .../desktop-utils/lumina-fm-dev/BrowserWidget.cpp | 424 ------- .../desktop-utils/lumina-fm-dev/BrowserWidget.h | 94 -- src-qt5/desktop-utils/lumina-fm-dev/DirData.h | 194 --- src-qt5/desktop-utils/lumina-fm-dev/FODialog.cpp | 387 ------ src-qt5/desktop-utils/lumina-fm-dev/FODialog.h | 87 -- src-qt5/desktop-utils/lumina-fm-dev/FODialog.ui | 84 -- .../lumina-fm-dev/Insight-FileManager.png | Bin 2829 -> 0 bytes src-qt5/desktop-utils/lumina-fm-dev/MainUI.cpp | 964 --------------- src-qt5/desktop-utils/lumina-fm-dev/MainUI.h | 193 --- src-qt5/desktop-utils/lumina-fm-dev/MainUI.ui | 440 ------- src-qt5/desktop-utils/lumina-fm-dev/OPWidget.cpp | 117 -- src-qt5/desktop-utils/lumina-fm-dev/OPWidget.h | 64 - src-qt5/desktop-utils/lumina-fm-dev/OPWidget.ui | 71 -- src-qt5/desktop-utils/lumina-fm-dev/README.md | 44 - src-qt5/desktop-utils/lumina-fm-dev/ScrollDialog.h | 55 - src-qt5/desktop-utils/lumina-fm-dev/TrayUI.cpp | 93 -- src-qt5/desktop-utils/lumina-fm-dev/TrayUI.h | 47 - src-qt5/desktop-utils/lumina-fm-dev/gitCompat.cpp | 45 - src-qt5/desktop-utils/lumina-fm-dev/gitCompat.h | 88 -- src-qt5/desktop-utils/lumina-fm-dev/gitWizard.cpp | 138 --- src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h | 68 - src-qt5/desktop-utils/lumina-fm-dev/gitWizard.ui | 252 ---- .../lumina-fm-dev/i18n/lumina-fm_af.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ar.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_az.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_bg.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_bn.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_bs.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ca.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_cs.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_cy.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_da.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_de.ts | 1283 ------------------- .../lumina-fm-dev/i18n/lumina-fm_el.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_en_AU.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_en_GB.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_en_ZA.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_es.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_et.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_eu.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_fa.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_fi.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_fr.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_fr_CA.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_fur.ts | 981 --------------- .../lumina-fm-dev/i18n/lumina-fm_gl.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_he.ts | 1280 ------------------- .../lumina-fm-dev/i18n/lumina-fm_hi.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_hr.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_hu.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_id.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_is.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_it.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ja.ts | 1299 -------------------- .../lumina-fm-dev/i18n/lumina-fm_ka.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ko.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_lt.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_lv.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_mk.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_mn.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ms.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_mt.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_nb.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ne.ts | 981 --------------- .../lumina-fm-dev/i18n/lumina-fm_nl.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_pa.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_pl.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_pt.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_pt_BR.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ro.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ru.ts | 1281 ------------------- .../lumina-fm-dev/i18n/lumina-fm_sa.ts | 981 --------------- .../lumina-fm-dev/i18n/lumina-fm_sk.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_sl.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_sr.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_sv.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_sw.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ta.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_tg.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_th.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_tr.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_uk.ts | 1282 ------------------- .../lumina-fm-dev/i18n/lumina-fm_ur.ts | 981 --------------- .../lumina-fm-dev/i18n/lumina-fm_uz.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_vi.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_zh_CN.ts | 1292 ------------------- .../lumina-fm-dev/i18n/lumina-fm_zh_HK.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_zh_TW.ts | 1279 ------------------- .../lumina-fm-dev/i18n/lumina-fm_zu.ts | 1279 ------------------- .../desktop-utils/lumina-fm-dev/lumina-fm.desktop | 18 - src-qt5/desktop-utils/lumina-fm-dev/lumina-fm.pro | 136 -- src-qt5/desktop-utils/lumina-fm-dev/main.cpp | 48 - .../lumina-fm-dev/widgets/DDListWidgets.h | 329 ----- .../lumina-fm-dev/widgets/DirWidget2.cpp | 911 -------------- .../lumina-fm-dev/widgets/DirWidget2.h | 193 --- .../lumina-fm-dev/widgets/DirWidget2.ui | 261 ---- .../lumina-fm-dev/widgets/MultimediaWidget.cpp | 222 ---- .../lumina-fm-dev/widgets/MultimediaWidget.h | 71 -- .../lumina-fm-dev/widgets/MultimediaWidget.ui | 181 --- .../lumina-fm-dev/widgets/SlideshowWidget.cpp | 169 --- .../lumina-fm-dev/widgets/SlideshowWidget.h | 57 - .../lumina-fm-dev/widgets/SlideshowWidget.ui | 346 ------ 107 files changed, 91951 deletions(-) delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.ui delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/Browser.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/Browser.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/BrowserWidget.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/BrowserWidget.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/DirData.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/FODialog.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/FODialog.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/FODialog.ui delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/Insight-FileManager.png delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/MainUI.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/MainUI.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/MainUI.ui delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/OPWidget.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/OPWidget.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/OPWidget.ui delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/README.md delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/ScrollDialog.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/TrayUI.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/TrayUI.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/gitCompat.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/gitCompat.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/gitWizard.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/gitWizard.ui delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_af.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ar.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_az.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_bg.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_bn.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_bs.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ca.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_cs.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_cy.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_da.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_de.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_el.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_en_AU.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_en_GB.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_en_ZA.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_es.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_et.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_eu.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_fa.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_fi.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_fr.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_fr_CA.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_fur.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_gl.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_he.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_hi.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_hr.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_hu.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_id.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_is.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_it.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ja.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ka.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ko.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_lt.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_lv.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_mk.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_mn.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ms.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_mt.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_nb.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ne.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_nl.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_pa.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_pl.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_pt.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_pt_BR.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ro.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ru.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_sa.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_sk.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_sl.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_sr.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_sv.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_sw.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ta.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_tg.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_th.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_tr.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_uk.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_ur.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_uz.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_vi.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_zh_CN.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_zh_HK.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_zh_TW.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/i18n/lumina-fm_zu.ts delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/lumina-fm.desktop delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/lumina-fm.pro delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/main.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/DDListWidgets.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/DirWidget2.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/DirWidget2.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/DirWidget2.ui delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/MultimediaWidget.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/MultimediaWidget.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/MultimediaWidget.ui delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/SlideshowWidget.cpp delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/SlideshowWidget.h delete mode 100644 src-qt5/desktop-utils/lumina-fm-dev/widgets/SlideshowWidget.ui (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.cpp b/src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.cpp deleted file mode 100644 index 5125a48e..00000000 --- a/src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.cpp +++ /dev/null @@ -1,75 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2014, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "BMMDialog.h" -#include "ui_BMMDialog.h" - -BMMDialog::BMMDialog(QWidget *parent) : QDialog(parent), ui(new Ui::BMMDialog){ - ui->setupUi(this); //load the designer file - this->setWindowIcon( LXDG::findIcon("bookmarks-organize","") ); - ui->tool_remove->setIcon( LXDG::findIcon("edit-delete","") ); - ui->tool_rename->setIcon( LXDG::findIcon("edit-rename","") ); - ui->push_done->setIcon( LXDG::findIcon("dialog-ok","") ); - connect(ui->tool_remove, SIGNAL(clicked()), this, SLOT(RemoveItem()) ); - connect(ui->tool_rename, SIGNAL(clicked()), this, SLOT(RenameItem()) ); - connect(ui->push_done, SIGNAL(clicked()), this, SLOT(close()) ); -} - -BMMDialog::~BMMDialog(){ -} - -void BMMDialog::loadSettings(QSettings *set){ - settings = set; //save this pointer for later - //Now fill the tree with the items - QStringList BM = settings->value("bookmarks", QStringList()).toStringList(); - ui->treeWidget->clear(); - for(int i=0; itreeWidget->addTopLevelItem( new QTreeWidgetItem(BM[i].split("::::")) ); - } - //Now expand to encompass all the items - ui->treeWidget->resizeColumnToContents(0); - ui->treeWidget->resizeColumnToContents(1); -} -// ==== PRIVATE ==== - -// ==== PRIVATE SLOTS ==== -void BMMDialog::RemoveItem(){ - //Get the currently selected item - if(ui->treeWidget->currentItem()==0){ return; } //nothing selected - QString item = ui->treeWidget->currentItem()->text(0)+"::::"+ui->treeWidget->currentItem()->text(1); - //Remove it from the widget - delete ui->treeWidget->takeTopLevelItem( ui->treeWidget->indexOfTopLevelItem( ui->treeWidget->currentItem() ) ); - //Remove it from the saved bookmarks - QStringList BM = settings->value("bookmarks",QStringList()).toStringList(); - BM.removeAll(item); - settings->setValue("bookmarks",BM); - settings->sync(); -} - -void BMMDialog::RenameItem(){ - //Get the currently selected item - if(ui->treeWidget->currentItem()==0){ return; } //nothing selected - QString olditem = ui->treeWidget->currentItem()->text(0)+"::::"+ui->treeWidget->currentItem()->text(1); - //Prompt for the new name - bool ok = false; - QString name = QInputDialog::getText(this, tr("Rename Bookmark"), tr("Name:"), QLineEdit::Normal, olditem.section("::::",0,0), \ - &ok, 0, Qt::ImhFormattedNumbersOnly | Qt::ImhUppercaseOnly | Qt::ImhLowercaseOnly); - if(!ok || name.isEmpty()){ return; } //cancelled - //Check if this name already exists - QStringList BM = settings->value("bookmarks",QStringList()).toStringList(); - if(BM.filter(name+"::::").length() >0){ - QMessageBox::warning(this, tr("Invalid Name"), tr("This bookmark name already exists. Please choose another.") ); - QTimer::singleShot(0,this, SLOT(RenameItem())); - return; - } - //Rename it in the widget - ui->treeWidget->currentItem()->setText(0,name); - //Replace it in the saved bookmarks - BM.removeAll(olditem); - BM.append(name+"::::"+olditem.section("::::",1,3)); - settings->setValue("bookmarks",BM); - settings->sync(); -} \ No newline at end of file diff --git a/src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.h b/src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.h deleted file mode 100644 index d421446c..00000000 --- a/src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.h +++ /dev/null @@ -1,44 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2014, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -// This is the dialog for managing bookmarks (BookMark Manager) -//=========================================== -#ifndef _LUMINA_FILE_MANAGER_BOOKMARK_MANAGER_DIALOG_H -#define _LUMINA_FILE_MANAGER_BOOKMARK_MANAGER_DIALOG_H - -// Qt includes -#include -#include -#include -#include -#include -#include - -// libLumina includes -#include - -namespace Ui{ - class BMMDialog; -}; - -class BMMDialog : public QDialog{ - Q_OBJECT -public: - BMMDialog(QWidget *parent = 0); - ~BMMDialog(); - - void loadSettings(QSettings *); - -private: - Ui::BMMDialog *ui; - QSettings *settings; - -private slots: - void RemoveItem(); - void RenameItem(); -}; - -#endif diff --git a/src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.ui b/src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.ui deleted file mode 100644 index fbadb61e..00000000 --- a/src-qt5/desktop-utils/lumina-fm-dev/BMMDialog.ui +++ /dev/null @@ -1,101 +0,0 @@ - - - BMMDialog - - - - 0 - 0 - 466 - 238 - - - - Manage Bookmarks - - - - - - - - 5 - - - false - - - true - - - 130 - - - - Name - - - - - Path - - - - - - - - - - - - Remove Bookmark - - - Remove - - - Qt::ToolButtonTextBesideIcon - - - - - - - Rename BookMark - - - Rename - - - Qt::ToolButtonTextBesideIcon - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Finished - - - - - - - - - - diff --git a/src-qt5/desktop-utils/lumina-fm-dev/Browser.cpp b/src-qt5/desktop-utils/lumina-fm-dev/Browser.cpp deleted file mode 100644 index 36cae5f4..00000000 --- a/src-qt5/desktop-utils/lumina-fm-dev/Browser.cpp +++ /dev/null @@ -1,161 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2016, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "Browser.h" - -#include -#include -#include -#include - -#include - -Browser::Browser(QObject *parent) : QObject(parent){ - watcher = new QFileSystemWatcher(this); - connect(watcher, SIGNAL(fileChanged(const QString&)), this, SLOT(fileChanged(QString)) ); - connect(watcher, SIGNAL(directoryChanged(const QString&)), this, SLOT(dirChanged(QString)) ); - showHidden = false; - showThumbs = false; - imageFormats = LUtils::imageExtensions(false); //lowercase suffixes - connect(this, SIGNAL(threadDone(QString, QImage)), this, SLOT(futureFinished(QString, QImage))); //will always be between different threads -} - -Browser::~Browser(){ - //watcher->deleteLater(); -} - -QString Browser::currentDirectory(){ return currentDir; } - -void Browser::showHiddenFiles(bool show){ - if(show !=showHidden){ - showHidden = show; - if(!currentDir.isEmpty()){ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); } - } -} -bool Browser::showingHiddenFiles(){ - return showHidden; -} - -void Browser::showThumbnails(bool show){ - if(show != showThumbs){ - showThumbs = show; - if(!currentDir.isEmpty()){ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); } - } -} - -bool Browser::showingThumbnails(){ - return showThumbs; -} - -// PRIVATE -void Browser::loadItem(QString info, Browser *obj){ - QImage pix; - if(imageFormats.contains(info.section(".",-1).toLower()) ){ - QFile file(info); - if(file.open(QIODevice::ReadOnly)){ - QByteArray bytes = file.readAll(); - file.close(); - pix.loadFromData(bytes); - if(pix.width() > 256 || pix.height() > 256 ){ - pix = pix.scaled(256,256, Qt::KeepAspectRatio, Qt::FastTransformation); - } - } - } - - //qDebug() << " - done with item:" << info; - obj->emit threadDone(info, pix); -} - -QIcon Browser::loadIcon(QString icon){ - if(!mimeIcons.contains(icon)){ - mimeIcons.insert(icon, LXDG::findIcon(icon, "unknown")); - } - - return mimeIcons[icon]; -} - - -// PRIVATE SLOTS -void Browser::fileChanged(QString file){ - if(file.startsWith(currentDir+"/") ){ - if(QFile::exists(file) ){ QtConcurrent::run(this, &Browser::loadItem, file, this); } //file modified but not removed - else{ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); } //file removed - need to update entire dir - }else if(file==currentDir){ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); } -} - -void Browser::dirChanged(QString dir){ - - if(dir==currentDir){ QTimer::singleShot(500, this, SLOT(loadDirectory()) ); } - else if(dir.startsWith(currentDir)){ QtConcurrent::run(this, &Browser::loadItem, dir, this ); } -} - -void Browser::futureFinished(QString name, QImage icon){ - //Note: this will be called once for every item that loads - QIcon ico; - //LFileInfo info(name); - LFileInfo *info = new LFileInfo(name); - if(!icon.isNull() && showThumbs){ - //qDebug() << " -- Data:"; - QPixmap pix = QPixmap::fromImage(icon); - ico.addPixmap(pix); - //}else if(info->isDir()){ - //qDebug() << " -- Folder:"; - //ico = loadIcon("folder"); - } - if(ico.isNull()){ - //qDebug() << " -- MimeType:" << info.fileName() << info.mimetype(); - ico = loadIcon(info->iconfile()); - } - this->emit itemDataAvailable( ico, info); - //qDebug() << " -- done:" << name; -} - -// PUBLIC SLOTS -void Browser::loadDirectory(QString dir){ - if(dir.isEmpty()){ dir = currentDir; } //reload current directory - if(dir.isEmpty()){ return; } //nothing to do - nothing previously loaded - //qDebug() << "Load Directory" << dir; - if(currentDir != dir){ //let the main widget know to clear all current items (completely different dir) - oldFiles.clear(); - emit clearItems(); - } - currentDir = dir; //save this for later - //clean up the watcher first - QStringList watched; watched << watcher->files() << watcher->directories(); - if(!watched.isEmpty()){ watcher->removePaths(watched); } - QStringList old = oldFiles; //copy this over for the moment (both lists will change in a moment) - oldFiles.clear(); //get ready for re-creating this list - // read the given directory - QDir directory(dir); - if(directory.exists()){ - QStringList files; - if(showHidden){ files = directory.entryList( QDir::Dirs | QDir::Files | QDir::Hidden | QDir::NoDotAndDotDot, QDir::NoSort); } - else{ files = directory.entryList( QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot, QDir::NoSort); } - emit itemsLoading(files.length()); - for(int i=0; iaddPath(directory.absoluteFilePath(files[i])); - //qDebug() << "Future Starting:" << files[i]; - QString path = directory.absoluteFilePath(files[i]); - if(old.contains(path)){ old.removeAll(path); } - oldFiles << path; //add to list for next time - //if(showThumbs && imageFormats.contains(path.section(".",-1).toLower())){ - QtConcurrent::run(this, &Browser::loadItem, path, this); - /*}else{ - //No special icon loading - just skip the file read step - futureFinished(path, QImage()); //loadItem(path, this); - }*/ - } - watcher->addPath(directory.absolutePath()); - if(!old.isEmpty()){ - old.removeAll(directory.absolutePath()); - for(int i=0; i -#include -#include -#include -//#include - -#include -/*class FileItem{ -public: - QString name; - QByteArray icon; - - FileItem(){} - ~FileItem(){}; -};*/ - -class Browser : public QObject{ - Q_OBJECT -public: - Browser(QObject *parent = 0); - ~Browser(); - - QString currentDirectory(); - void showHiddenFiles(bool); - bool showingHiddenFiles(); - - void showThumbnails(bool); - bool showingThumbnails(); - - //FileItem loadItem(QString info); //this is the main loader class - multiple instances each run in a separate thread - -private: - QString currentDir; - QFileSystemWatcher *watcher; - bool showHidden, showThumbs; - QStringList imageFormats, oldFiles; - QHash mimeIcons; //cache for quickly re-using QIcons - - void loadItem(QString info, Browser *obj); //this is the main loader class - multiple instances each run in a separate thread - QIcon loadIcon(QString icon); //simplification for using/populating the mimIcons cache - -private slots: - void fileChanged(QString); //tied into the watcher - for file change notifications - void dirChanged(QString); // tied into the watcher - for new/removed files in the current dir - - void futureFinished(QString, QImage); - -public slots: - void loadDirectory(QString dir = ""); - -signals: - //Main Signals - void itemRemoved(QString item); //emitted if a file was removed from the underlying - void clearItems(); //emitted when dirs change for example - void itemDataAvailable(QIcon, LFileInfo*); - - //Start/Stop signals for loading of data - void itemsLoading(int); //number of items which are getting loaded - - //Internal signal for the alternate threads - void threadDone(QString, QImage); -}; - -#endif diff --git a/src-qt5/desktop-utils/lumina-fm-dev/BrowserWidget.cpp b/src-qt5/desktop-utils/lumina-fm-dev/BrowserWidget.cpp deleted file mode 100644 index d5f219bb..00000000 --- a/src-qt5/desktop-utils/lumina-fm-dev/BrowserWidget.cpp +++ /dev/null @@ -1,424 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2016, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "BrowserWidget.h" - -#include -#include -#include - -#include -#include - -BrowserWidget::BrowserWidget(QString objID, QWidget *parent) : QWidget(parent){ - //Setup the Widget/UI - this->setLayout( new QVBoxLayout(this) ); - ID = objID; - //BROWSER = 0; - //Setup the backend browser object - BROWSER = new Browser(this); - connect(BROWSER, SIGNAL(clearItems()), this, SLOT(clearItems()) ); - connect(BROWSER, SIGNAL(itemRemoved(QString)), this, SLOT(itemRemoved(QString)) ); - connect(BROWSER, SIGNAL(itemDataAvailable(QIcon, LFileInfo*)), this, SLOT(itemDataAvailable(QIcon, LFileInfo*)) ); - connect(BROWSER, SIGNAL(itemsLoading(int)), this, SLOT(itemsLoading(int)) ); - connect(this, SIGNAL(dirChange(QString)), BROWSER, SLOT(loadDirectory(QString)) ); - listWidget = 0; - treeWidget = 0; - readDateFormat(); - freshload = true; //nothing loaded yet - numItems = 0; - this->setMouseTracking(true); -} - -BrowserWidget::~BrowserWidget(){ - BROWSER->deleteLater(); -} - -void BrowserWidget::changeDirectory(QString dir){ - if(BROWSER->currentDirectory()==dir){ return; } //already on this directory - //qDebug() << "Change Directory:" << dir << historyList; - - if( !dir.contains("/.zfs/snapshot/") ){ - if(historyList.isEmpty() || !dir.isEmpty()){ historyList << dir; } - }else{ - //Need to remove the zfs snapshot first and ensure that it is not the same dir (just a diff snapshot) - QString cleaned = dir; - cleaned = cleaned.replace( QRegExp("/\\.zfs/snapshot/(.)+/"), "/" ); - if( (historyList.isEmpty() || historyList.last()!=cleaned) && !cleaned.isEmpty() ){ historyList << cleaned; } - } - //qDebug() << "History:" << historyList; - emit dirChange(dir); -} - -void BrowserWidget::showDetails(bool show){ - //Clean up widgets first - QSize iconsize; - if(show && listWidget!=0){ - //Clean up list widget - iconsize = listWidget->iconSize(); - this->layout()->removeWidget(listWidget); - listWidget->deleteLater(); - listWidget = 0; - }else if(!show && treeWidget!=0){ - iconsize = treeWidget->iconSize(); - this->layout()->removeWidget(treeWidget); - treeWidget->deleteLater(); - treeWidget = 0; - } - // qDebug() << "Create Widget: details:" << show; - //Now create any new widgets - if(show && treeWidget == 0){ - treeWidget = new DDTreeWidget(this); - treeWidget->setContextMenuPolicy(Qt::CustomContextMenu); - if(!iconsize.isNull()){ treeWidget->setIconSize(iconsize); } - this->layout()->addWidget(treeWidget); - connect(treeWidget, SIGNAL(itemActivated(QTreeWidgetItem*,int)), this, SIGNAL(itemsActivated()) ); - connect(treeWidget, SIGNAL(customContextMenuRequested(const QPoint&)), this, SIGNAL(contextMenuRequested()) ); - connect(treeWidget, SIGNAL(DataDropped(QString, QStringList)), this, SIGNAL(DataDropped(QString, QStringList)) ); - connect(treeWidget, SIGNAL(GotFocus()), this, SLOT(selectionChanged()) ); - retranslate(); - treeWidget->sortItems(0, Qt::AscendingOrder); - if(!BROWSER->currentDirectory().isEmpty()){ emit dirChange(""); } - }else if(!show && listWidget==0){ - listWidget = new DDListWidget(this); - listWidget->setContextMenuPolicy(Qt::CustomContextMenu); - if(!iconsize.isNull()){ listWidget->setIconSize(iconsize); } - this->layout()->addWidget(listWidget); - connect(listWidget, SIGNAL(itemActivated(QListWidgetItem*)), this, SIGNAL(itemsActivated()) ); - connect(listWidget, SIGNAL(customContextMenuRequested(const QPoint&)), this, SIGNAL(contextMenuRequested()) ); - connect(listWidget, SIGNAL(DataDropped(QString, QStringList)), this, SIGNAL(DataDropped(QString, QStringList)) ); - connect(listWidget, SIGNAL(GotFocus()), this, SLOT(selectionChanged()) ); - if(!BROWSER->currentDirectory().isEmpty()){ emit dirChange(""); } - } - //qDebug() << " Done making widget"; -} - -bool BrowserWidget::hasDetails(){ - return (treeWidget!=0); -} - -void BrowserWidget::showHiddenFiles(bool show){ - BROWSER->showHiddenFiles(show); -} - -bool BrowserWidget::hasHiddenFiles(){ - return BROWSER->showingHiddenFiles(); -} - -void BrowserWidget::showThumbnails(bool show){ - BROWSER->showThumbnails(show); -} - -bool BrowserWidget::hasThumbnails(){ - return BROWSER->showingThumbnails(); -} - -void BrowserWidget::setThumbnailSize(int px){ - bool larger = true; - if(listWidget!=0){ - larger = listWidget->iconSize().height() < px; - listWidget->setIconSize(QSize(px,px)); - }else if(treeWidget!=0){ - larger = treeWidget->iconSize().height() < px; - treeWidget->setIconSize(QSize(px,px)); - } - //qDebug() << "Changing Icon Size:" << px << larger; - if(BROWSER->currentDirectory().isEmpty() || !larger ){ return; } //don't need to reload icons unless the new size is larger - emit dirChange(""); -} - -int BrowserWidget::thumbnailSize(){ - if(listWidget!=0){ return listWidget->iconSize().height(); } - else if(treeWidget!=0){ return treeWidget->iconSize().height(); } - return 0; -} - -void BrowserWidget::setHistory(QStringList paths){ - //NOTE: later items are used first - historyList = paths; -} - -QStringList BrowserWidget::history(){ - return historyList; -} - -void BrowserWidget::setShowActive(bool show){ - QString base = "";//"QListWidget::item,QTreeWidget::item{ border: 1px solid transparent; background-color: red; } QListWidget::item:hover,QTreeWidget::item:hover{ border: 1px solid black; background-color: blue; }"; - if(!show){ base.prepend("QAbstractScrollArea{ background-color: rgba(10,10,10,10); } QHeaderView{ background-color: lightgrey; } "); } - this->setStyleSheet(base); -} - -// This function is only called if user changes sessionsettings. By doing so, operations like sorting by date -// are faster because the date format is already stored in DirWidget::date_format static variable -void BrowserWidget::readDateFormat() { - if(!date_format.isEmpty()) - date_format.clear(); - QSettings settings("lumina-desktop","sessionsettings"); - // If value doesn't exist or is not setted, empty string is returned - date_format << settings.value("DateFormat").toString(); - date_format << settings.value("TimeFormat").toString(); -} - - -QStringList BrowserWidget::currentSelection(){ - QStringList out; - if(listWidget!=0){ - QList sel = listWidget->selectedItems(); - //qDebug() << "Selection number:" << sel.length(); - //if(sel.isEmpty() && listWidget->currentItem()!=0){ sel << listWidget->currentItem(); } - //qDebug() << "Selection number:" << sel.length(); - for(int i=0; iwhatsThis(); qDebug() << "Selection:" << sel[i]->text() << sel[i]->whatsThis(); } - }else if(treeWidget!=0){ - QList sel = treeWidget->selectedItems(); - //if(sel.isEmpty() && treeWidget->currentItem()!=0){ sel << treeWidget->currentItem(); } - for(int i=0; iwhatsThis(0); } - } - out.removeDuplicates(); //just in case - tree widgets sometimes "select" each column as an individual item - return out; -} - -QStringList BrowserWidget::currentItems(int type){ - //type: 0=all, -1=files, +1=dirs - QStringList paths; - if(listWidget!=0){ - for(int i=0; icount(); i++){ - if(i<0 && (listWidget->item(i)->data(Qt::UserRole).toString()=="file") ){ //FILES - paths << listWidget->item(i)->whatsThis(); - }else if(i>0 && (listWidget->item(i)->data(Qt::UserRole).toString()=="dir")){ //DIRS - paths << listWidget->item(i)->whatsThis(); - }else if(i==0){ //ALL - paths << listWidget->item(i)->whatsThis(); - } - } - }else if(treeWidget!=0){ - for(int i=0; itopLevelItemCount(); i++){ - if(i<0 && !treeWidget->topLevelItem(i)->text(1).isEmpty()){ //FILES - paths << treeWidget->topLevelItem(i)->whatsThis(0); - }else if(i>0 && treeWidget->topLevelItem(i)->text(1).isEmpty()){ //DIRS - paths << treeWidget->topLevelItem(i)->whatsThis(0); - }else if(i==0){ //ALL - paths << treeWidget->topLevelItem(i)->whatsThis(0); - } - } - } - return paths; -} - -// ================= -// PUBLIC SLOTS -// ================= -void BrowserWidget::retranslate(){ - if(listWidget!=0){ - - }else if(treeWidget!=0){ - QTreeWidgetItem *it = new QTreeWidgetItem(); - it->setText(0,tr("Name")); - it->setText(1,tr("Size")); - it->setText(2, tr("Type")); - it->setText(3, tr("Date Modified") ); - it->setText(4, tr("Date Created") ); - treeWidget->setHeaderItem(it); - //Now reset the sorting (alphabetically, dirs first) - treeWidget->sortItems(0, Qt::AscendingOrder); // sort by name - treeWidget->sortItems(1, Qt::AscendingOrder); //sort by type - } -} - -// ================= -// PRIVATE -// ================= -QString BrowserWidget::DTtoString(QDateTime dt){ - QStringList fmt = date_format; - if(fmt.isEmpty() || fmt.length()!=2 || (fmt[0].isEmpty() && fmt[1].isEmpty()) ){ - //Default formatting - return dt.toString(Qt::DefaultLocaleShortDate); - }else if(fmt[0].isEmpty()){ - //Time format only - return (dt.date().toString(Qt::DefaultLocaleShortDate)+" "+dt.time().toString(fmt[1])); - }else if(fmt[1].isEmpty()){ - //Date format only - return (dt.date().toString(fmt[0])+" "+dt.time().toString(Qt::DefaultLocaleShortDate)); - }else{ - //both date/time formats set - return dt.toString(fmt.join(" ")); - } -} - -// ================= -// PRIVATE SLOTS -// ================= -void BrowserWidget::clearItems(){ - //qDebug() << "Clear Items"; - if(listWidget!=0){ listWidget->clear(); } - else if(treeWidget!=0){ treeWidget->clear(); } - freshload = true; -} - -void BrowserWidget::itemRemoved(QString item){ - //qDebug() << "item removed" << item; - if(treeWidget!=0){ - QList found = treeWidget->findItems(item.section("/",-1), Qt::MatchExactly, 0); //look for exact name match - if(found.isEmpty()){ return; } //no match - delete found[0]; - }else if(listWidget!=0){ - QList found = listWidget->findItems(item.section("/",-1), Qt::MatchExactly); //look for exact name match - if(found.isEmpty()){ return; } - delete found[0]; - } -} - -void BrowserWidget::itemDataAvailable(QIcon ico, LFileInfo *info){ - //qDebug() << "Item Data Available:" << info->fileName(); - int num = 0; - if(listWidget!=0){ - //LIST WIDGET - name and icon only - if(info->isDesktopFile() && info->XDG()->isValid()){ - QList items = listWidget->findItems(info->XDG()->name, Qt::MatchExactly); - //Could be multiple items with the same text in this case - check paths as well - bool found = false; - for(int i=0; iwhatsThis()==info->absoluteFilePath()){ - found = true; - items[i]->setText(info->XDG()->name); - items[i]->setIcon(ico); - } - } - if(!found){ - //New Item - QListWidgetItem *it = new CQListWidgetItem(ico, info->XDG()->name, listWidget); - it->setWhatsThis(info->absoluteFilePath()); - it->setData(Qt::UserRole, (info->isDir() ? "dir" : "file")); //used for sorting - listWidget->addItem(it); - } - }else{ - //non-desktop entry - if(!listWidget->findItems(info->fileName(), Qt::MatchExactly).isEmpty()){ - //Update existing item - QListWidgetItem *it = listWidget->findItems(info->fileName(), Qt::MatchExactly).first(); - it->setText(info->fileName()); - it->setWhatsThis(info->absoluteFilePath()); - it->setIcon(ico); - - }else{ - //New item - QListWidgetItem *it = new CQListWidgetItem(ico, info->fileName(), listWidget); - it->setWhatsThis(info->absoluteFilePath()); - it->setData(Qt::UserRole, (info->isDir() ? "dir" : "file")); //used for sorting - listWidget->addItem(it); - } - num = listWidget->count(); - } //end non-desktop entry - }else if(treeWidget!=0){ - QTreeWidgetItem *it = 0; - if(info->isDesktopFile()){ - QList items = treeWidget->findItems(info->XDG()->name, Qt::MatchExactly, 0); - for(int i=0; iwhatsThis(0)==info->absoluteFilePath()){ it = items[i]; } - } - if(it==0){ - //New item - it = new CQTreeWidgetItem(treeWidget); - it->setText(0, info->XDG()->name ); //name (0) - treeWidget->addTopLevelItem(it); - } - }else{ - if( ! treeWidget->findItems(info->fileName(), Qt::MatchExactly, 0).isEmpty() ){ it = treeWidget->findItems(info->fileName(), Qt::MatchExactly, 0).first(); } - else{ - it = new CQTreeWidgetItem(treeWidget); - it->setText(0, info->fileName() ); //name (0) - treeWidget->addTopLevelItem(it); - } - } - //Now set/update all the data - it->setIcon(0, ico); - it->setText(1, info->isDir() ? "" : LUtils::BytesToDisplaySize(info->size()) ); //size (1) - it->setText(2, info->mimetype() ); //type (2) - it->setText(3, DTtoString(info->lastModified() )); //modification date (3) - it->setText(4, DTtoString(info->created()) ); //creation date (4) - //Now all the hidden data - it->setWhatsThis(0, info->absoluteFilePath()); - it->setWhatsThis(3, info->lastModified().toString("yyyyMMddhhmmsszzz") ); //sorts by this actually - it->setWhatsThis(4, info->created().toString("yyyyMMddhhmmsszzz") ); //sorts by this actually - num = treeWidget->topLevelItemCount(); - } - - if(num < numItems){ - //Still loading items - //this->setEnabled(false); - }else{ - if(freshload && treeWidget!=0){ - //qDebug() << "Resize Tree Widget Contents"; - for(int i=0; icolumnCount(); i++){ treeWidget->resizeColumnToContents(i); } - } - freshload = false; //any further changes are updates - not a fresh load of a dir - //Done loading items - //this->setEnabled(true); - //Assemble any status message - QString stats = QString(tr("Capacity: %1")).arg(LOS::FileSystemCapacity(BROWSER->currentDirectory())); - int nF, nD; - double bytes = 0; - nF = nD = 0; - if(listWidget!=0){ - bytes = -1; //not supported for this widget - for(int i=0; icount(); i++){ - if(listWidget->item(i)->data(Qt::UserRole).toString()=="dir"){ nD++; } //directory - else{ nF++; } //file - } - }else if(treeWidget!=0){ - for(int i=0; itopLevelItemCount(); i++){ - if(treeWidget->topLevelItem(i)->text(1).isEmpty()){ - nD++; //directory - }else{ - nF++; //file - bytes+=LUtils::DisplaySizeToBytes(treeWidget->topLevelItem(i)->text(1)); - } - } - } - if( (nF+nD) >0){ - stats.prepend("\t"); - if(nF>0){ - //Has Files - if(bytes>0){ - stats.prepend( QString(tr("Files: %1 (%2)")).arg(QString::number(nF), LUtils::BytesToDisplaySize(bytes)) ); - }else{ - stats.prepend( QString(tr("Files: %1")).arg(QString::number(nF)) ); - } - } - if(nD > 0){ - //Has Dirs - if(nF>0){ stats.prepend(" / "); }//has files output already - stats.prepend( QString(tr("Dirs: %1")).arg(QString::number(nD)) ); - } - } - emit updateDirectoryStatus( stats.simplified() ); - statustip = stats.simplified(); //save for later - }//end check for finished loading items -} - -void BrowserWidget::itemsLoading(int total){ - //qDebug() << "Got number of items loading:" << total; - if(listWidget!=0){ listWidget->setWhatsThis( BROWSER->currentDirectory() ); } - if(treeWidget!=0){ treeWidget->setWhatsThis(BROWSER->currentDirectory() ); } - numItems = total; //save this for later - if(total<1){ - emit updateDirectoryStatus( tr("No Directory Contents") ); - this->setEnabled(true); - } -} - -void BrowserWidget::selectionChanged(){ - emit hasFocus(ID); //let the parent know the widget is "active" with the user -} - -void BrowserWidget::resizeEvent(QResizeEvent *ev){ - QWidget::resizeEvent(ev); //do the normal processing first - //The list widget needs to be poked to rearrange the items to fit the new size - // tree widget does this fine at the moment. - if(listWidget!=0){ - listWidget->sortItems(Qt::AscendingOrder); - } -} diff --git a/src-qt5/desktop-utils/lumina-fm-dev/BrowserWidget.h b/src-qt5/desktop-utils/lumina-fm-dev/BrowserWidget.h deleted file mode 100644 index fafb3746..00000000 --- a/src-qt5/desktop-utils/lumina-fm-dev/BrowserWidget.h +++ /dev/null @@ -1,94 +0,0 @@ -// Lumina-DE source code -// Copyright (c) 2016, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -// This is the main browsing frontend for the file manager -//=========================================== -#ifndef _LUMINA_FM_BROWSE_FRONTEND_H -#define _LUMINA_FM_BROWSE_FRONTEND_H - -#include -#include -#include - -#include "Browser.h" -#include "widgets/DDListWidgets.h" - -class BrowserWidget : public QWidget{ - Q_OBJECT -private: - Browser *BROWSER; - //QThread *bThread; //browserThread - int numItems; //used for checking if all the items have loaded yet - QString ID, statustip; - QStringList date_format, historyList; - bool freshload; - - //The drag and drop brower widgets - DDListWidget *listWidget; - DDTreeWidget *treeWidget; - - QString DTtoString(QDateTime dt); //QDateTime to string simplification routine - -public: - BrowserWidget(QString objID, QWidget *parent = 0); - ~BrowserWidget(); - - QString id(){ return ID; } - - void changeDirectory(QString dir); - QString currentDirectory(){ return BROWSER->currentDirectory(); } - - void showDetails(bool show); - bool hasDetails(); - - void showHiddenFiles(bool show); - bool hasHiddenFiles(); - - void showThumbnails(bool show); - bool hasThumbnails(); - void setThumbnailSize(int px); - int thumbnailSize(); - - void setHistory(QStringList); - QStringList history(); - - void setShowActive(bool show); //used for accenting if the widget is "active" - - QString status(){ return statustip; } - - //Date format for show items - void readDateFormat(); - - //Return all the items which are currently selected - QStringList currentSelection(); - QStringList currentItems(int type = 0); //type: 0=all, -1=files, +1=dirs - -public slots: - void retranslate(); - -private slots: - //Browser connections - void clearItems(); - void itemRemoved(QString); - void itemDataAvailable(QIcon, LFileInfo*); - void itemsLoading(int total); - void selectionChanged(); - -protected: - void resizeEvent(QResizeEvent *ev); - -signals: - //External signals - void itemsActivated(); - void updateDirectoryStatus(QString); - void contextMenuRequested(); - void DataDropped(QString, QStringList); - void hasFocus(QString); //ID output - - //Internal signal - void dirChange(QString); //current dir path - -}; -#endif diff --git a/src-qt5/desktop-utils/lumina-fm-dev/DirData.h b/src-qt5/desktop-utils/lumina-fm-dev/DirData.h deleted file mode 100644 index 528a82d6..00000000 --- a/src-qt5/desktop-utils/lumina-fm-dev/DirData.h +++ /dev/null @@ -1,194 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -// This is the backend classes for fetching directory information/contents -//=========================================== -#ifndef _LUMINA_FM_BACKGROUND_DATA_CLASSES_H -#define _LUMINA_FM_BACKGROUND_DATA_CLASSES_H - -#include -#include -#include -#include -#include - -#include -#include - -#define ZSNAPDIR QString("/.zfs/snapshot/") - -#define DIR_DEBUG 0 - -//Class used for keeping track of directory information in the HASH -class LDirInfoList{ -public: - //Internal variables - QDateTime lastcheck; - QList list; - QStringList fileNames; //list of filenames for comparison/checking sorting - QString dirpath; //directory this structure was reading - QString snapdir; //base snapshot directory (if one was requested/found) - bool hashidden; - QStringList mntpoints; - - //Access Functions - LDirInfoList(QString path = ""){ - dirpath = path; - list.clear(); - fileNames.clear(); - hashidden = false; - //Generate the list of all mountpoints if possible - if(LUtils::isValidBinary("zfs")){ - mntpoints = LUtils::getCmdOutput("zfs list -H -o mountpoint").filter("/"); - mntpoints.removeDuplicates(); - } - } - ~LDirInfoList(){} - - //(re)Load a directory contents - void update(bool showhidden = false){ - if(dirpath.isEmpty()){ return; } //nothing to do - //Assemble the structures - QDir dir(dirpath); - hashidden = showhidden; - if(!dir.exists()){ - list.clear(); - fileNames.clear(); - dirpath.clear(); //invalid directory now - return; - } - if(dirpath.contains(ZSNAPDIR) && snapdir.isEmpty()){ - snapdir = dirpath.section(ZSNAPDIR,0,0)+ZSNAPDIR; //no need to go looking for it later - } - QFileInfoList dirlist; - //Fill the structure - list.clear(); - fileNames.clear(); - lastcheck = QDateTime::currentDateTime().addMSecs(-500); //prevent missing any simultaneous dir changes - if(showhidden){ dirlist = dir.entryInfoList(QDir::AllEntries | QDir::NoDotAndDotDot | QDir::Hidden , QDir::Name | QDir::DirsFirst); } - else{ dirlist = dir.entryInfoList(QDir::AllEntries | QDir::NoDotAndDotDot , QDir::Name | QDir::DirsFirst); } - //Simple add routine - can make it more dynamic/selective about updating individual items later - for(int i=0; imnt.length()){ mnt = mntpoints[i]; } - } - if(QFile::exists(mnt+ZSNAPDIR)){ snapdir = mnt+ZSNAPDIR; } - else{ snapdir.clear(); } //none found - } - } - -}; - -//This class is designed to be run in a background thread and get all the necessary info for a directory listing -class DirData : public QObject{ - Q_OBJECT -private: - QHash HASH; //Where we cache any info for rapid access later - -signals: - void DirDataAvailable(QString, QString, LFileInfoList); //[ID, Dirpath, DATA] - void SnapshotDataAvailable(QString, QString, QStringList); //[ID, BaseSnapDir, SnapNames] - -public: - //Variables - bool showHidden; //Whether hidden files/dirs should be output - bool zfsavailable; //Whether it should even bother looking for ZFS snapshots - bool pauseData; //When paused - this will ignore any requests for information (need to manually refresh browsers after unpause) - - //Functions - DirData(){ - showHidden = false; - zfsavailable = false; - pauseData = false; - } - ~DirData(){} - -public slots: - void GetDirData(QString ID, QString dirpath){ - return; - if(pauseData){ return; } - if(DIR_DEBUG){ qDebug() << "GetDirData:" << ID << dirpath; } - //The ID is used when returning the info in a moment - //Make sure to use the canonical path in the HASH search - don't use - QString canon = QFileInfo(dirpath).canonicalFilePath(); - if(!HASH.contains(canon)){ - //New directory (not previously loaded) - LDirInfoList info(canon); - info.update(showHidden); - HASH.insert(canon, info); - }else{ - //See if the saved info needs to be updated - //if( (HASH.value(canon).hashidden != showHidden) || (QFileInfo(canon).lastModified() > HASH.value(canon).lastcheck) ){ - HASH[canon].update(showHidden); - //} - } - if(DIR_DEBUG){ qDebug() << " -- Dir Data Found:" << ID << dirpath << HASH.value(canon).list.length(); } - emit DirDataAvailable(ID, dirpath, HASH.value(canon).list); - } - - void GetSnapshotData(QString ID, QString dirpath){ - if(pauseData){ return; } - if(DIR_DEBUG){ qDebug() << "GetSnapshotData:" << ID << dirpath; } - QString base; QStringList snaps; - //Only check if ZFS is flagged as available - if(zfsavailable){ - //First find if the hash already has an entry for this directory - if(!HASH.contains(dirpath)){ - LDirInfoList info(dirpath); - HASH.insert(dirpath,info); - } - //Now see if a snapshot directory has already been located - if(HASH.value(dirpath).snapdir.isEmpty()){ - HASH[dirpath].findSnapDir(); - } - //Now read off all the available snapshots - if(HASH.value(dirpath).snapdir != "-" && !HASH.value(dirpath).snapdir.isEmpty()){ - //Good snapshot directory found - read off the current snapshots (can change regularly - don't cache this) - base = HASH.value(dirpath).snapdir; - QDir dir(base); - QString canon = QFileInfo(dirpath).canonicalFilePath(); - QString dcanon = QString(dir.canonicalPath()+"/").section(ZSNAPDIR,0,0); - QString relpath = canon.section( dcanon+"/" ,-1); - //qDebug() << "Snapshot Dir:" << base << dcanon << "Dir:" << dirpath << canon << "Relpath:" << relpath; - snaps = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Time |QDir::Reversed ); - //Also remove any "empty" snapshots (might be leftover by tools like "zfsnap") - for(int i=0; i newest - } - - } - //if(DIR_DEBUG){ qDebug() << " -- Snap Data Found:" << ID << base << snaps; } - if(!base.isEmpty() && !snaps.isEmpty()){ - emit SnapshotDataAvailable(ID, base, snaps); - } - } - -}; - -#endif diff --git a/src-qt5/desktop-utils/lumina-fm-dev/FODialog.cpp b/src-qt5/desktop-utils/lumina-fm-dev/FODialog.cpp deleted file mode 100644 index 0d04b912..00000000 --- a/src-qt5/desktop-utils/lumina-fm-dev/FODialog.cpp +++ /dev/null @@ -1,387 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2014, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "FODialog.h" -#include "ui_FODialog.h" - -#include -#include - -#include - -#define DEBUG 0 - -FODialog::FODialog(QWidget *parent) : QDialog(parent), ui(new Ui::FODialog){ - ui->setupUi(this); //load the designer file - ui->label->setText(tr("Calculating")); - ui->progressBar->setVisible(false); - ui->push_stop->setIcon( LXDG::findIcon("edit-delete","") ); - WorkThread = new QThread(); - Worker = new FOWorker(); - connect(Worker, SIGNAL(startingItem(int,int,QString,QString)), this, SLOT(UpdateItem(int,int,QString,QString)) ); - connect(Worker, SIGNAL(finished(QStringList)), this, SLOT(WorkDone(QStringList)) ); - Worker->moveToThread(WorkThread); - WorkThread->start(); - - //Make sure this dialog is centered on the parent - if(parent!=0){ - QPoint ctr = parent->mapToGlobal(parent->geometry().center()); - this->move( ctr.x()-(this->width()/2), ctr.y()-(this->height()/2) ); - } - this->show(); -} - -FODialog::~FODialog(){ - Worker->stopped = true; //just in case it might still be running when closed - WorkThread->quit(); - WorkThread->wait(); - delete Worker; - //delete WorkThread; -} - -void FODialog::setOverwrite(bool ovw){ - if(ovw){ Worker->overwrite = 1; } - else{ Worker->overwrite = 0; } -} - -//Public "start" functions -bool FODialog::RemoveFiles(QStringList paths){ - Worker->ofiles = paths; - Worker->isRM = true; - if(CheckOverwrite()){ - QTimer::singleShot(10,Worker, SLOT(slotStartOperations())); - return true; - }else{ - this->close(); - return false; - } -} - -bool FODialog::CopyFiles(QStringList oldPaths, QStringList newPaths){ - //same permissions as old files - if(oldPaths.length() == newPaths.length()){ - Worker->ofiles = oldPaths; - Worker->nfiles = newPaths; - } - Worker->isCP=true; - if(CheckOverwrite()){ - QTimer::singleShot(10,Worker, SLOT(slotStartOperations())); - return true; - }else{ - this->close(); - return false; - } -} - -bool FODialog::RestoreFiles(QStringList oldPaths, QStringList newPaths){ - //user/group rw permissions - if(oldPaths.length() == newPaths.length()){ - Worker->ofiles = oldPaths; - Worker->nfiles = newPaths; - } - Worker->isRESTORE = true; - if(CheckOverwrite()){ - QTimer::singleShot(10,Worker, SLOT(slotStartOperations())); - return true; - }else{ - this->close(); - return false; - } -} - -bool FODialog::MoveFiles(QStringList oldPaths, QStringList newPaths){ - //no change in permissions - if(oldPaths.length() == newPaths.length()){ - Worker->ofiles = oldPaths; - Worker->nfiles = newPaths; - } - Worker->isMV=true; - if(CheckOverwrite()){ - QTimer::singleShot(10,Worker, SLOT(slotStartOperations())); - return true; - }else{ - this->close(); - return false; - } -} - -bool FODialog::CheckOverwrite(){ - bool ok = true; - //Quick check that a file is not supposed to be moved/copied/restored onto itself - if(!Worker->isRM){ - for(int i=0; infiles.length(); i++){ - if(Worker->nfiles[i] == Worker->ofiles[i]){ - //duplicate - remove it from the queue - Worker->nfiles.removeAt(i); Worker->ofiles.removeAt(i); - i--; - } - } - } - if(!Worker->isRM && Worker->overwrite==-1){ - //Check if the new files already exist, and prompt for action - QStringList existing; - for(int i=0; infiles.length(); i++){ - if(QFile::exists(Worker->nfiles[i])){ existing << Worker->nfiles[i].section("/",-1); } - } - if(!existing.isEmpty()){ - //Prompt for whether to overwrite, not overwrite, or cancel - QMessageBox dialog(QMessageBox::Question, tr("Overwrite Files?"), tr("Do you want to overwrite the existing files?")+"\n"+tr("Note: It will just add a number to the filename otherwise.")+"\n\n"+existing.join(", "), QMessageBox::YesToAll | QMessageBox::NoToAll | QMessageBox::Cancel, this); - - dialog.setButtonText(QMessageBox::YesToAll, tr("YesToAll")); - dialog.setButtonText(QMessageBox::NoToAll, tr("NoToAll")); - dialog.setButtonText(QMessageBox::Cancel, tr("Cancel")); - dialog.setDefaultButton(QMessageBox::NoToAll); - const int ans = dialog.exec(); - if(ans==QMessageBox::NoToAll){ Worker->overwrite = 0; } //don't overwrite - else if(ans==QMessageBox::YesToAll){ Worker->overwrite = 1; } //overwrite - else{ qDebug() << " - Cancelled"; Worker->overwrite = -1; ok = false; } //cancel operations - if(DEBUG){ qDebug() << " - Overwrite:" << Worker->overwrite; } - } - } - QApplication::processEvents(); - QApplication::processEvents(); - return ok; -} - -void FODialog::UpdateItem(int cur, int tot, QString oitem, QString nitem){ - ui->progressBar->setRange(0,tot); - ui->progressBar->setValue(cur); - ui->progressBar->setVisible(true); - QString msg; - if(Worker->isRM){ msg = tr("Removing: %1"); } - else if(Worker->isCP){ msg = tr("Copying: %1 to %2"); } - else if(Worker->isRESTORE){ msg = tr("Restoring: %1 as %2"); } - else if(Worker->isMV){ msg = tr("Moving: %1 to %2"); } - if(msg.contains("%2")){ - msg = msg.arg(oitem.section("/",-1), nitem.section("/",-1)); - }else{ - msg = msg.arg(oitem.section("/",-1)); - } - msg = ui->label->fontMetrics().elidedText(msg, Qt::ElideRight, ui->label->width()); - ui->label->setText( msg ); -} - -void FODialog::WorkDone(QStringList errlist){ - if(!errlist.isEmpty()){ - QString msg; - if(Worker->isRM){ msg = tr("Could not remove these files:"); } - else if(Worker->isCP){ msg = tr("Could not copy these files:"); } - else if(Worker->isRESTORE){ msg = tr("Could not restore these files:"); } - else if(Worker->isMV){ msg = tr("Could not move these files:"); } - ScrollDialog dlg(this); - dlg.setWindowTitle(tr("File Errors")); - dlg.setText( msg+"\n\n"+errlist.join("\n") ); - dlg.exec(); - } - noerrors = errlist.isEmpty(); - this->close(); -} - -void FODialog::on_push_stop_clicked(){ - Worker->stopped = true; -} - -// =================== -// ==== FOWorker Class ==== -// =================== -QStringList FOWorker::subfiles(QString dirpath, bool dirsfirst){ - //NOTE: dirpath (input) is always the first/last item in the output as well! - QStringList out; - if(dirsfirst){ out << dirpath; } - if( QFileInfo(dirpath).isDir() ){ - QDir dir(dirpath); - if(dirsfirst){ - //Now recursively add any subdirectories and their contents - QStringList subdirs = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot | QDir::Hidden, QDir::NoSort); - for(int i=0; i Edit - + Szerkeszt Burn to Disk - + Kiírás lemezre &Open Archive - + Archívum mengnyitás Open archive - + Archívum megnyitás &New Archive - + Új archívum New archive - + Új archívum &Quit - + Kilépés Add File(s) - + Fájl(ok) hozzáadás Add files to archive - + Fájlok hozzáadása az archívumhoz Remove File(s) - + Fájl(ok) eltávolítása Remove selection from archive - + Kiválasztottak eltávolítása az archívumból Extract All - + Összes kibontása @@ -106,27 +106,27 @@ Add Directory - + Új könyvtár Add directory to archive - + Könyvtár hozzáadás az archívumhoz Extract Selection - + Kiválasztottak kibontása Extract Selected Items - + Kiválasztott elemek kibontása USB Image - + USB lemezkép @@ -136,127 +136,127 @@ Archive Manager - + Archívumkezelő Admin Mode - + Adminisztráció CTRL+N - + CTRL+N CTRL+O - + CTRL+O CTRL+Q - + CTRL+Q CTRL+E - + CTRL+E MimeType - + Mime típus Size - + Méret Opening Archive... - + Archívum megnyitása... All Types %1 - + Összes %1 típus Uncompressed Archive (*.tar) - + Kitömörítetlen archívum (*.tar) GZip Compressed Archive (*.tar.gz *.tgz) - + GZip tömörített archívum (*.tar.gz *.tgz) BZip Compressed Archive (*.tar.bz *.tbz) - + BZip tömörített archívum (*.tar.bz *.tbz) BZip2 Compressed Archive (*.tar.bz2 *.tbz2) - + BZip2 tömörített archívum (*.tar.bz2 *.tbz2) LMZA Compressed Archive (*.tar.lzma *.tlz) - + LMZA tömörített archívum (*.tar.lzma *.tlz) XZ Compressed Archive (*.tar.xz *.txz) - + XZ tömörített archívum (*.tar.xz *.txz) CPIO Archive (*.cpio) - + CPIO archívum (*.cpio) PAX Archive (*.pax) - + PAX archívum (*.pax) AR Archive (*.ar) - + AR archívum (*.ar) SHAR Archive (*.shar) - + SHAR archívum (*.shar) Zip Archive (*.zip) - + Zip archívum (*.zip) 7-Zip Archive (*.7z) - + 7-Zip archívum (*.7z) @@ -350,52 +350,52 @@ Multimedia - + Multimédia Development - + Fejlesztés Education - + Oktatás Games - + Játékok Graphics - + Grafika Network - + Hálózat Office - + Iroda Science - + Tudomány Settings - + Beállítások System - + Rendszer @@ -405,7 +405,7 @@ Wine - + Wine -- cgit From 96b105aa5e1bc5473056eab1ec37910f1eb015a7 Mon Sep 17 00:00:00 2001 From: Serg Bormant Date: Fri, 24 Nov 2017 19:38:35 +0000 Subject: Translated using Weblate (Russian) Currently translated at 13.8% (14 of 101 strings) Translation: lumina/lumina-archiver Translate-URL: http://weblate.trueos.org/projects/lumina/lumina-archiver/ru/ --- .../lumina-archiver/i18n/l-archiver_ru.ts | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_ru.ts b/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_ru.ts index 2ff06bea..753be548 100644 --- a/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_ru.ts +++ b/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_ru.ts @@ -36,7 +36,7 @@ File - + Файл @@ -350,67 +350,67 @@ Multimedia - + Мультимедиа Development - + Разработка Education - + Образование Games - + Игры Graphics - + Графика Network - + Сети Office - + Офис Science - + Наука Settings - + Настройки System - + Система Utility - + Инструменты Wine - + Вино Unsorted - + Разное -- cgit From 1e488a40854c62e247d389dcb7f52687e6496598 Mon Sep 17 00:00:00 2001 From: Adolfo Date: Fri, 24 Nov 2017 01:37:32 +0000 Subject: Translated using Weblate (Spanish) Currently translated at 7.9% (8 of 101 strings) Translation: lumina/lumina-archiver Translate-URL: http://weblate.trueos.org/projects/lumina/lumina-archiver/es/ --- src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_es.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5') diff --git a/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_es.ts b/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_es.ts index fa3059fb..6c13d137 100644 --- a/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_es.ts +++ b/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_es.ts @@ -161,7 +161,7 @@ CTRL+E - + Ctrl+E -- cgit From a00b2a73d918c80645a51a57a1cb40c3ff3f09e1 Mon Sep 17 00:00:00 2001 From: Andreas Müller Date: Mon, 27 Nov 2017 17:18:29 +0100 Subject: manpages: fix out of tree install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes e.g: | gzip: lumina-info.1: No such file or directory Signed-off-by: Andreas Müller --- src-qt5/core-utils/lumina-config/lumina-config.pro | 2 +- src-qt5/core-utils/lumina-search/lumina-search.pro | 2 +- src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro | 2 +- src-qt5/core/lumina-desktop/lumina-desktop.pro | 2 +- src-qt5/core/lumina-info/lumina-info.pro | 2 +- src-qt5/core/lumina-open/lumina-open.pro | 2 +- src-qt5/core/lumina-session/lumina-session.pro | 2 +- src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro | 2 +- src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro | 2 +- src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro | 2 +- src-qt5/desktop-utils/lumina-fm/lumina-fm.pro | 2 +- src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro | 2 +- src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro | 2 +- src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/core-utils/lumina-config/lumina-config.pro b/src-qt5/core-utils/lumina-config/lumina-config.pro index 35f4b981..78bcb251 100644 --- a/src-qt5/core-utils/lumina-config/lumina-config.pro +++ b/src-qt5/core-utils/lumina-config/lumina-config.pro @@ -121,7 +121,7 @@ desktop.files=lumina-config.desktop desktop.path=$${L_SHAREDIR}/applications/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-config.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-config.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-config.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-config.1.gz" INSTALLS += target desktop manpage diff --git a/src-qt5/core-utils/lumina-search/lumina-search.pro b/src-qt5/core-utils/lumina-search/lumina-search.pro index a8ea4060..458e2904 100644 --- a/src-qt5/core-utils/lumina-search/lumina-search.pro +++ b/src-qt5/core-utils/lumina-search/lumina-search.pro @@ -99,7 +99,7 @@ desktop.files=lumina-search.desktop desktop.path=$${L_SHAREDIR}/applications/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-search.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-search.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-search.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-search.1.gz" INSTALLS += target desktop manpage diff --git a/src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro b/src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro index 73399ee7..fa3284ff 100644 --- a/src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro +++ b/src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro @@ -95,7 +95,7 @@ desktop.files=lumina-xconfig.desktop desktop.path=$${L_SHAREDIR}/applications/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-xconfig.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-xconfig.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-xconfig.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-xconfig.1.gz" INSTALLS += target desktop manpage diff --git a/src-qt5/core/lumina-desktop/lumina-desktop.pro b/src-qt5/core/lumina-desktop/lumina-desktop.pro index 9c8272c8..5e4beb3b 100644 --- a/src-qt5/core/lumina-desktop/lumina-desktop.pro +++ b/src-qt5/core/lumina-desktop/lumina-desktop.pro @@ -173,7 +173,7 @@ dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-desktop.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-desktop.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-desktop.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-desktop.1.gz" INSTALLS += target desktop icons defaults conf fluxconf manpage diff --git a/src-qt5/core/lumina-info/lumina-info.pro b/src-qt5/core/lumina-info/lumina-info.pro index 0c8693a0..0a7d2dd4 100644 --- a/src-qt5/core/lumina-info/lumina-info.pro +++ b/src-qt5/core/lumina-info/lumina-info.pro @@ -98,7 +98,7 @@ desktop.files=lumina-info.desktop lumina-support.desktop desktop.path=$${L_SHAREDIR}/applications/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-info.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-info.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-info.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-info.1.gz" INSTALLS += target desktop manpage diff --git a/src-qt5/core/lumina-open/lumina-open.pro b/src-qt5/core/lumina-open/lumina-open.pro index b31c7a0e..eba3f716 100644 --- a/src-qt5/core/lumina-open/lumina-open.pro +++ b/src-qt5/core/lumina-open/lumina-open.pro @@ -90,7 +90,7 @@ dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-open.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-open.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-open.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-open.1.gz" INSTALLS += target manpage diff --git a/src-qt5/core/lumina-session/lumina-session.pro b/src-qt5/core/lumina-session/lumina-session.pro index 797547db..9d8e8f87 100644 --- a/src-qt5/core/lumina-session/lumina-session.pro +++ b/src-qt5/core/lumina-session/lumina-session.pro @@ -16,6 +16,6 @@ SOURCES += main.cpp \ HEADERS += session.h manpage.path=$${L_MANDIR}/man8/ -manpage.extra="$${MAN_ZIP} start-lumina-desktop.8 > $(INSTALL_ROOT)$${L_MANDIR}/man8/start-lumina-desktop.8.gz" +manpage.extra="$${MAN_ZIP} $$PWD/start-lumina-desktop.8 > $(INSTALL_ROOT)$${L_MANDIR}/man8/start-lumina-desktop.8.gz" INSTALLS += target manpage diff --git a/src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro b/src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro index 763407b9..e3b8d2c7 100644 --- a/src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro +++ b/src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro @@ -96,7 +96,7 @@ desktop.path=$${L_SHAREDIR}/applications/ #link.extra=ln -sf lumina-archiver $(INSTALL_ROOT)$${L_BINDIR}/lpac manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-archiver.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-archiver.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-archiver.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-archiver.1.gz" INSTALLS += target desktop manpage diff --git a/src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro b/src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro index c2314545..cf2e07b4 100644 --- a/src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro +++ b/src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro @@ -90,7 +90,7 @@ desktop.files=lumina-calculator.desktop desktop.path=$${L_SHAREDIR}/applications/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-calculator.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-calculator.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-calculator.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-calculator.1.gz" INSTALLS += target desktop manpage diff --git a/src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro b/src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro index 8a850a1c..aa9eb0fa 100644 --- a/src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro +++ b/src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro @@ -95,7 +95,7 @@ desktop.files=lumina-fileinfo.desktop desktop.path=$${L_SHAREDIR}/applications/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-fileinfo.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-fileinfo.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-fileinfo.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-fileinfo.1.gz" INSTALLS += target desktop manpage diff --git a/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro b/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro index 4f66ce0a..13ce9441 100644 --- a/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro +++ b/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro @@ -132,7 +132,7 @@ desktop.files=lumina-fm.desktop desktop.path=$${L_SHAREDIR}/applications/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-fm.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-fm.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-fm.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-fm.1.gz" INSTALLS += target desktop icons manpage diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro b/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro index c9ea6a5b..b05df015 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro +++ b/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro @@ -99,7 +99,7 @@ desktop.path=$${L_SHAREDIR}/applications/ #link.extra=ln -sf lumina-mediaplayer $(INSTALL_ROOT)$${L_BINDIR}/lplay manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-mediaplayer.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-mediaplayer.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-mediaplayer.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-mediaplayer.1.gz" INSTALLS += target desktop manpage diff --git a/src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro b/src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro index d0cce451..259e8f7a 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro +++ b/src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro @@ -96,7 +96,7 @@ desktop.files=lumina-screenshot.desktop desktop.path=$${L_SHAREDIR}/applications/ manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-screenshot.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-screenshot.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-screenshot.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-screenshot.1.gz" INSTALLS += target desktop manpage diff --git a/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro b/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro index a9c16a0c..c5733ee7 100644 --- a/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro +++ b/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro @@ -103,7 +103,7 @@ syntax.path=$${L_SHAREDIR}/lumina-desktop/syntax_rules syntax.files=syntax_rules/* manpage.path=$${L_MANDIR}/man1/ -manpage.extra="$${MAN_ZIP} lumina-textedit.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-textedit.1.gz" +manpage.extra="$${MAN_ZIP} $$PWD/lumina-textedit.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-textedit.1.gz" INSTALLS += target desktop link syntax manpage -- cgit From d574947799c0a38b88a05387e04e1cf98c06fa89 Mon Sep 17 00:00:00 2001 From: Andreas Müller Date: Mon, 27 Nov 2017 17:37:59 +0100 Subject: i18n: fix out of tree build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes e.g: | /bin/sh: line 0: cd: i18n: No such file or directory | Makefile:955: recipe for target 'install_dotrans' failed | make[3]: *** [install_dotrans] Error 1 Signed-off-by: Andreas Müller --- src-qt5/core-utils/lumina-config/lumina-config.pro | 2 +- src-qt5/core-utils/lumina-search/lumina-search.pro | 2 +- src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro | 2 +- src-qt5/core/lumina-desktop-unified/lumina-desktop.pro | 2 +- src-qt5/core/lumina-desktop/lumina-desktop.pro | 2 +- src-qt5/core/lumina-info/lumina-info.pro | 2 +- src-qt5/core/lumina-open/lumina-open.pro | 2 +- src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro | 2 +- src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro | 2 +- src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro | 2 +- src-qt5/desktop-utils/lumina-fm/lumina-fm.pro | 2 +- src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro | 2 +- src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro | 2 +- src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro | 2 +- src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro | 2 +- src-qt5/experimental/lumina-screencast/lumina-screencast.pro | 2 +- src-qt5/experimental/lumina-terminal/lumina-terminal.pro | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src-qt5') diff --git a/src-qt5/core-utils/lumina-config/lumina-config.pro b/src-qt5/core-utils/lumina-config/lumina-config.pro index 78bcb251..f36f67d6 100644 --- a/src-qt5/core-utils/lumina-config/lumina-config.pro +++ b/src-qt5/core-utils/lumina-config/lumina-config.pro @@ -115,7 +115,7 @@ TRANSLATIONS = i18n/lumina-config_af.ts \ i18n/lumina-config_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-config.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/core-utils/lumina-search/lumina-search.pro b/src-qt5/core-utils/lumina-search/lumina-search.pro index 458e2904..42014c69 100644 --- a/src-qt5/core-utils/lumina-search/lumina-search.pro +++ b/src-qt5/core-utils/lumina-search/lumina-search.pro @@ -93,7 +93,7 @@ TRANSLATIONS = i18n/lumina-search_af.ts \ i18n/lumina-search_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-search.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro b/src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro index fa3284ff..c6af2c3f 100644 --- a/src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro +++ b/src-qt5/core-utils/lumina-xconfig/lumina-xconfig.pro @@ -89,7 +89,7 @@ TRANSLATIONS = i18n/lumina-xconfig_af.ts \ i18n/lumina-xconfig_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-xconfig.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/core/lumina-desktop-unified/lumina-desktop.pro b/src-qt5/core/lumina-desktop-unified/lumina-desktop.pro index 21e46b22..ebc13b6f 100644 --- a/src-qt5/core/lumina-desktop-unified/lumina-desktop.pro +++ b/src-qt5/core/lumina-desktop-unified/lumina-desktop.pro @@ -124,7 +124,7 @@ TRANSLATIONS = i18n/lumina-desktop_af.ts \ i18n/lumina-desktop_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ INSTALLS += target desktop defaults extrafiles diff --git a/src-qt5/core/lumina-desktop/lumina-desktop.pro b/src-qt5/core/lumina-desktop/lumina-desktop.pro index 5e4beb3b..e36d11a2 100644 --- a/src-qt5/core/lumina-desktop/lumina-desktop.pro +++ b/src-qt5/core/lumina-desktop/lumina-desktop.pro @@ -170,7 +170,7 @@ TRANSLATIONS = i18n/lumina-desktop_af.ts \ i18n/lumina-desktop_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ manpage.path=$${L_MANDIR}/man1/ manpage.extra="$${MAN_ZIP} $$PWD/lumina-desktop.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-desktop.1.gz" diff --git a/src-qt5/core/lumina-info/lumina-info.pro b/src-qt5/core/lumina-info/lumina-info.pro index 0a7d2dd4..dc07c08e 100644 --- a/src-qt5/core/lumina-info/lumina-info.pro +++ b/src-qt5/core/lumina-info/lumina-info.pro @@ -92,7 +92,7 @@ TRANSLATIONS = i18n/lumina-info_af.ts \ i18n/lumina-info_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-info.desktop lumina-support.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/core/lumina-open/lumina-open.pro b/src-qt5/core/lumina-open/lumina-open.pro index eba3f716..3bc7e9bf 100644 --- a/src-qt5/core/lumina-open/lumina-open.pro +++ b/src-qt5/core/lumina-open/lumina-open.pro @@ -87,7 +87,7 @@ TRANSLATIONS = i18n/lumina-open_af.ts \ i18n/lumina-open_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ manpage.path=$${L_MANDIR}/man1/ manpage.extra="$${MAN_ZIP} $$PWD/lumina-open.1 > $(INSTALL_ROOT)$${L_MANDIR}/man1/lumina-open.1.gz" diff --git a/src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro b/src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro index e3b8d2c7..a1b10109 100644 --- a/src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro +++ b/src-qt5/desktop-utils/lumina-archiver/lumina-archiver.pro @@ -87,7 +87,7 @@ TRANSLATIONS = i18n/l-archiver_af.ts \ i18n/l-archiver_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-archiver.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro b/src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro index cf2e07b4..07490634 100644 --- a/src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro +++ b/src-qt5/desktop-utils/lumina-calculator/lumina-calculator.pro @@ -84,7 +84,7 @@ TRANSLATIONS = i18n/l-calc_af.ts \ i18n/l-calc_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-calculator.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro b/src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro index aa9eb0fa..dcfee470 100644 --- a/src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro +++ b/src-qt5/desktop-utils/lumina-fileinfo/lumina-fileinfo.pro @@ -89,7 +89,7 @@ TRANSLATIONS = i18n/l-fileinfo_af.ts \ i18n/l-fileinfo_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-fileinfo.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro b/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro index 13ce9441..b59aface 100644 --- a/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro +++ b/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro @@ -126,7 +126,7 @@ TRANSLATIONS = i18n/lumina-fm_af.ts \ i18n/lumina-fm_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-fm.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro b/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro index b05df015..d7423485 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro +++ b/src-qt5/desktop-utils/lumina-mediaplayer/lumina-mediaplayer.pro @@ -90,7 +90,7 @@ TRANSLATIONS = i18n/l-mediap_af.ts \ i18n/l-mediap_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-mediaplayer.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro b/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro index e17e59c5..672196ea 100644 --- a/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro +++ b/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro @@ -95,7 +95,7 @@ TRANSLATIONS = i18n/l-pdf_af.ts \ i18n/l-pdf_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-pdf.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro b/src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro index 259e8f7a..f5118db7 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro +++ b/src-qt5/desktop-utils/lumina-screenshot/lumina-screenshot.pro @@ -90,7 +90,7 @@ TRANSLATIONS = i18n/l-screenshot_af.ts \ i18n/l-screenshot_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-screenshot.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro b/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro index c5733ee7..77cd8798 100644 --- a/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro +++ b/src-qt5/desktop-utils/lumina-textedit/lumina-textedit.pro @@ -91,7 +91,7 @@ TRANSLATIONS = i18n/l-te_af.ts \ i18n/l-te_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-textedit.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/experimental/lumina-screencast/lumina-screencast.pro b/src-qt5/experimental/lumina-screencast/lumina-screencast.pro index 5cfe89ef..5c6a1e76 100644 --- a/src-qt5/experimental/lumina-screencast/lumina-screencast.pro +++ b/src-qt5/experimental/lumina-screencast/lumina-screencast.pro @@ -87,7 +87,7 @@ TRANSLATIONS = i18n/l-screencast_af.ts \ i18n/l-screencast_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-screencast.desktop desktop.path=$${L_SHAREDIR}/applications/ diff --git a/src-qt5/experimental/lumina-terminal/lumina-terminal.pro b/src-qt5/experimental/lumina-terminal/lumina-terminal.pro index 7f5d979c..668a8741 100644 --- a/src-qt5/experimental/lumina-terminal/lumina-terminal.pro +++ b/src-qt5/experimental/lumina-terminal/lumina-terminal.pro @@ -91,7 +91,7 @@ TRANSLATIONS = i18n/l-terminal_af.ts \ i18n/l-terminal_zu.ts dotrans.path=$${L_SHAREDIR}/lumina-desktop/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ +dotrans.extra=cd $$PWD/i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/lumina-desktop/i18n/ desktop.files=lumina-terminal.desktop desktop.path=$${L_SHAREDIR}/applications/ -- cgit