diff options
31 files changed, 32 insertions, 704 deletions
diff --git a/port-files/FreeBSD/deskutils/lumina-archiver/Makefile b/port-files/FreeBSD/deskutils/lumina-archiver/Makefile index d6efa3a7..97657f2d 100644 --- a/port-files/FreeBSD/deskutils/lumina-archiver/Makefile +++ b/port-files/FreeBSD/deskutils/lumina-archiver/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-archiver @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= deskutils -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Archive manager from the Lumina Desktop LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/deskutils/lumina-calculator/Makefile b/port-files/FreeBSD/deskutils/lumina-calculator/Makefile index 3e85119f..782a9679 100644 --- a/port-files/FreeBSD/deskutils/lumina-calculator/Makefile +++ b/port-files/FreeBSD/deskutils/lumina-calculator/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-calculator @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= deskutils -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Scientific calculator from the Lumina Desktop LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/deskutils/lumina-fileinfo/Makefile b/port-files/FreeBSD/deskutils/lumina-fileinfo/Makefile index 1bf569ba..88888925 100644 --- a/port-files/FreeBSD/deskutils/lumina-fileinfo/Makefile +++ b/port-files/FreeBSD/deskutils/lumina-fileinfo/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-fileinfo @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= deskutils -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= File properties utility from the Lumina Desktop LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/deskutils/lumina-fm/Makefile b/port-files/FreeBSD/deskutils/lumina-fm/Makefile index bb2ab4a7..172411e3 100644 --- a/port-files/FreeBSD/deskutils/lumina-fm/Makefile +++ b/port-files/FreeBSD/deskutils/lumina-fm/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-fm @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= deskutils -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Insight file manager from the Lumina Desktop LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/deskutils/lumina-mediaplayer/Makefile b/port-files/FreeBSD/deskutils/lumina-mediaplayer/Makefile index 1bc0c455..203600a4 100644 --- a/port-files/FreeBSD/deskutils/lumina-mediaplayer/Makefile +++ b/port-files/FreeBSD/deskutils/lumina-mediaplayer/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-mediaplayer @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= deskutils -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Streaming media player from the Lumina Desktop LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/deskutils/lumina-notify/Makefile b/port-files/FreeBSD/deskutils/lumina-notify/Makefile index c0e8243c..b9c28382 100644 --- a/port-files/FreeBSD/deskutils/lumina-notify/Makefile +++ b/port-files/FreeBSD/deskutils/lumina-notify/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-notify @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= deskutils -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Alarm/notification utility from the Lumina Desktop LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/deskutils/lumina-pdf/Makefile b/port-files/FreeBSD/deskutils/lumina-pdf/Makefile index 65bb03c5..d6789389 100644 --- a/port-files/FreeBSD/deskutils/lumina-pdf/Makefile +++ b/port-files/FreeBSD/deskutils/lumina-pdf/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-pdf @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= deskutils -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= PDF viewer from the Lumina Desktop LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/deskutils/lumina-screenshot/Makefile b/port-files/FreeBSD/deskutils/lumina-screenshot/Makefile index b66f0cad..84bc1e39 100644 --- a/port-files/FreeBSD/deskutils/lumina-screenshot/Makefile +++ b/port-files/FreeBSD/deskutils/lumina-screenshot/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-screenshot @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= deskutils -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Screenshot utility from the Lumina Desktop LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/deskutils/lumina-textedit/Makefile b/port-files/FreeBSD/deskutils/lumina-textedit/Makefile index fccf5f1b..472d0069 100644 --- a/port-files/FreeBSD/deskutils/lumina-textedit/Makefile +++ b/port-files/FreeBSD/deskutils/lumina-textedit/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-textedit @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= deskutils -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Plaintext editor from the Lumina Desktop LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/deskutils/lumina-xdg-entry/Makefile b/port-files/FreeBSD/deskutils/lumina-xdg-entry/Makefile deleted file mode 100644 index ac04b4c3..00000000 --- a/port-files/FreeBSD/deskutils/lumina-xdg-entry/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# Created by: Ken Moore <ken@pcbsd.org> -# $FreeBSD$ - -PORTNAME= lumina-xdg-entry -PORTVERSION= %%CHGVERSION%% -PORTREVISION= %%CHGREVISION%% -CATEGORIES= deskutils - -MAINTAINER= kmoore@FreeBSD.org -COMMENT= XDG desktop entry creator from the Lumina Desktop - -LICENSE= BSD3CLAUSE - -OPTIONS_DEFINE= I18N -OPTIONS_DEFAULT= I18N -I18N_DESC= Install localization files - -.include <bsd.port.options.mk> - -MAKE_JOBS_UNSAFE=yes - -USE_QT5= core gui widgets network svg \ - buildtools_build x11extras concurrent multimedia -USES= qmake -USE_GITHUB= yes -GH_ACCOUNT= trueos -GH_PROJECT= lumina -GH_TAGNAME= %%GHTAG%% -WRKSRC_SUBDIR= src-qt5/desktop-utils/${PORTNAME} - -.if${PORT_OPTIONS:MI18N} -USE_QT5+= linguist_build -QMAKE_ARGS+=CONFIG+=WITH_I18N -.endif - -.include <bsd.port.mk> diff --git a/port-files/FreeBSD/deskutils/lumina-xdg-entry/distinfo b/port-files/FreeBSD/deskutils/lumina-xdg-entry/distinfo deleted file mode 100644 index 9570700a..00000000 --- a/port-files/FreeBSD/deskutils/lumina-xdg-entry/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1467137694 -SHA256 (trueos-lumina-v0.9.1-Release_GH0.tar.gz) = f62d033b585d46815089a3dce5703c626af23c50db1281a3f1c662fc39cf6006 -SIZE (trueos-lumina-v0.9.1-Release_GH0.tar.gz) = 54665105 diff --git a/port-files/FreeBSD/deskutils/lumina-xdg-entry/pkg-descr b/port-files/FreeBSD/deskutils/lumina-xdg-entry/pkg-descr deleted file mode 100644 index b726446a..00000000 --- a/port-files/FreeBSD/deskutils/lumina-xdg-entry/pkg-descr +++ /dev/null @@ -1,3 +0,0 @@ -XDG desktop entry creator from the Lumina Desktop. - -WWW: http://lumina-desktop.org diff --git a/port-files/FreeBSD/deskutils/lumina-xdg-entry/pkg-plist b/port-files/FreeBSD/deskutils/lumina-xdg-entry/pkg-plist deleted file mode 100644 index 020847e0..00000000 --- a/port-files/FreeBSD/deskutils/lumina-xdg-entry/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/lumina-xdg-entry -man/man1/lumina-xdg-entry.1.gz -share/applications/lumina-xdg-entry.desktop diff --git a/port-files/FreeBSD/x11/lumina-core/Makefile b/port-files/FreeBSD/x11/lumina-core/Makefile index f1d50652..ea477b2f 100644 --- a/port-files/FreeBSD/x11/lumina-core/Makefile +++ b/port-files/FreeBSD/x11/lumina-core/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-core @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= x11 -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Lumina Desktop Environment LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/x11/lumina-coreutils/Makefile b/port-files/FreeBSD/x11/lumina-coreutils/Makefile index 3637b265..649d660f 100644 --- a/port-files/FreeBSD/x11/lumina-coreutils/Makefile +++ b/port-files/FreeBSD/x11/lumina-coreutils/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina-coreutils @@ -6,7 +5,7 @@ PORTVERSION= %%CHGVERSION%% PORTREVISION= %%CHGREVISION%% CATEGORIES= x11 -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Lumina Desktop Environment LICENSE= BSD3CLAUSE diff --git a/port-files/FreeBSD/x11/lumina/Makefile b/port-files/FreeBSD/x11/lumina/Makefile index 00580d73..0231102c 100644 --- a/port-files/FreeBSD/x11/lumina/Makefile +++ b/port-files/FreeBSD/x11/lumina/Makefile @@ -1,4 +1,3 @@ -# Created by: Ken Moore <ken@pcbsd.org> # $FreeBSD$ PORTNAME= lumina @@ -7,7 +6,7 @@ PORTREVISION= %%CHGREVISION%% PORTEPOCH= 3 CATEGORIES= x11 -MAINTAINER= kmoore@FreeBSD.org +MAINTAINER= jt@ixsystems.com COMMENT= Lumina Desktop Environment (meta-port) LICENSE= BSD3CLAUSE @@ -22,7 +21,6 @@ RUN_DEPENDS= lumina-core>=0:x11/lumina-core \ lumina-pdf>=0:deskutils/lumina-pdf \ lumina-screenshot>=0:deskutils/lumina-screenshot \ lumina-textedit>=0:deskutils/lumina-textedit \ - lumina-xdg-entry>=0:deskutils/lumina-xdg-entry \ lumina-themes>=0:x11-themes/lumina-themes CONFLICTS_INSTALL= lumina-1.2.* 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-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 @@ <x>0</x> <y>0</y> <width>403</width> - <height>20</height> + <height>28</height> </rect> </property> <widget class="QMenu" name="menuFile"> <property name="title"> - <string>File</string> + <string>&File</string> </property> <addaction name="action_New"/> <addaction name="action_Open"/> @@ -131,7 +131,7 @@ </widget> <widget class="QMenu" name="menuEdit"> <property name="title"> - <string>Edit</string> + <string>&Edit</string> </property> <addaction name="actionAdd_File"/> <addaction name="actionAdd_Dirs"/> @@ -142,7 +142,7 @@ </widget> <widget class="QMenu" name="menuBurn_toDisk"> <property name="title"> - <string>Burn to Disk</string> + <string>&Burn to Disk</string> </property> <addaction name="actionUSB_Image"/> </widget> 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 @@ <x>0</x> <y>0</y> <width>800</width> - <height>39</height> + <height>28</height> </rect> </property> <widget class="QMenu" name="menuFile"> <property name="title"> - <string>File</string> + <string>&File</string> </property> <widget class="QMenu" name="menuSave_As"> <property name="title"> 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 @@ </property> <widget class="QMenu" name="menuFile"> <property name="title"> - <string>File</string> + <string>&File</string> </property> <addaction name="actionNew_Window"/> <addaction name="actionNew_Tab"/> @@ -125,7 +125,7 @@ </widget> <widget class="QMenu" name="menuView"> <property name="title"> - <string>View</string> + <string>&View</string> </property> <widget class="QMenu" name="menuView_Mode"> <property name="title"> @@ -142,7 +142,7 @@ </widget> <widget class="QMenu" name="menuBookmarks"> <property name="title"> - <string>Bookmarks</string> + <string>&Bookmarks</string> </property> <addaction name="actionManage_Bookmarks"/> <addaction name="actionAdd_Bookmark"/> @@ -150,14 +150,14 @@ </widget> <widget class="QMenu" name="menuExternal_Devices"> <property name="title"> - <string>External Devices</string> + <string>&External Devices</string> </property> <addaction name="actionScan"/> <addaction name="separator"/> </widget> <widget class="QMenu" name="menuGit"> <property name="title"> - <string>Git</string> + <string>&Git</string> </property> <addaction name="actionRepo_Status"/> <addaction name="actionClone_Repository"/> 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 @@ <x>0</x> <y>0</y> <width>405</width> - <height>19</height> + <height>28</height> </rect> </property> <widget class="QMenu" name="menuFile"> <property name="title"> - <string>File</string> + <string>&File</string> </property> <addaction name="separator"/> <addaction name="actionClose"/> </widget> <widget class="QMenu" name="menuView"> <property name="title"> - <string>View</string> + <string>&View</string> </property> <addaction name="action_closeToTray"/> <addaction name="action_showNotifications"/> 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 @@ <x>0</x> <y>0</y> <width>659</width> - <height>24</height> + <height>28</height> </rect> </property> <widget class="QMenu" name="menuFile"> <property name="title"> - <string>File</string> + <string>&File</string> </property> <addaction name="actionPrint"/> <addaction name="separator"/> @@ -35,7 +35,7 @@ </widget> <widget class="QMenu" name="menuPresentation"> <property name="title"> - <string>Presentation</string> + <string>&Presentation</string> </property> <widget class="QMenu" name="menuStart_Presentation"> <property name="title"> 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 @@ </property> <widget class="QMenu" name="menuFile"> <property name="title"> - <string>File</string> + <string>&File</string> </property> <addaction name="actionNew_File"/> <addaction name="actionOpen_File"/> @@ -204,7 +204,7 @@ </widget> <widget class="QMenu" name="menuView"> <property name="title"> - <string>View</string> + <string>&View</string> </property> <widget class="QMenu" name="menuSyntax_Highlighting"> <property name="title"> @@ -232,7 +232,7 @@ </widget> <widget class="QMenu" name="menuEdit"> <property name="title"> - <string>Edit</string> + <string>&Edit</string> </property> <addaction name="actionFind"/> <addaction name="actionReplace"/> 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 <QApplication> - -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<QByteArray> fmts = QImageReader::supportedImageFormats(); - for(int i=0; i<fmts.length(); i++){ - imgformats << "*."+QString(fmts[i]); - } - QString iconpath = QFileDialog::getOpenFileName(this, tr("Select an image"), QDir::homePath(), \ - tr("Images")+" ("+imgformats.join(" ")+")"); - ui->lineEdit_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 <QMainWindow> - -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 928ce30a..00000000 --- a/src-qt5/desktop-utils/lumina-xdg-entry/mainwindow.ui +++ /dev/null @@ -1,344 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>MainWindow</class> - <widget class="QMainWindow" name="MainWindow"> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>564</width> - <height>492</height> - </rect> - </property> - <property name="windowTitle"> - <string>MainWindow</string> - </property> - <widget class="QWidget" name="centralWidget"> - <layout class="QVBoxLayout" name="verticalLayout_6"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_3"> - <item> - <widget class="QLabel" name="label_name"> - <property name="text"> - <string>Name</string> - </property> - <property name="buddy"> - <cstring>lineEdit_name</cstring> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_name"/> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_4"> - <item> - <widget class="QLabel" name="label_genericname"> - <property name="text"> - <string>Generic Name</string> - </property> - <property name="buddy"> - <cstring>lineEdit_genericname</cstring> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_genericname"/> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_5"> - <item> - <widget class="QLabel" name="label_comment"> - <property name="toolTip"> - <string/> - </property> - <property name="text"> - <string>Comment</string> - </property> - <property name="buddy"> - <cstring>lineEdit_comment</cstring> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_comment"/> - </item> - </layout> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_7"> - <item> - <widget class="QLabel" name="label_keywords"> - <property name="toolTip"> - <string>Values seperated by semicolon (no spaces) </string> - </property> - <property name="toolTipDuration"> - <number>3</number> - </property> - <property name="text"> - <string>Keywords</string> - </property> - <property name="buddy"> - <cstring>lineEdit_keywords</cstring> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_keywords"> - <property name="placeholderText"> - <string>Keywords separated by semicolons with no spaces</string> - </property> - </widget> - </item> - </layout> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_6"> - <item> - <widget class="QLabel" name="label_executable"> - <property name="text"> - <string>Executable</string> - </property> - <property name="buddy"> - <cstring>lineEdit_executable</cstring> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_executable"/> - </item> - <item> - <widget class="QPushButton" name="pushButton_executable"> - <property name="text"> - <string>Select</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_2"> - <item> - <widget class="QLabel" name="label_icon"> - <property name="text"> - <string>Icon</string> - </property> - <property name="buddy"> - <cstring>lineEdit_icon</cstring> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_icon"/> - </item> - <item> - <widget class="QPushButton" name="pushButton_icon"> - <property name="text"> - <string>Select</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <widget class="Line" name="line"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QLabel" name="label__categories"> - <property name="text"> - <string>Categories</string> - </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_2"> - <item> - <widget class="QCheckBox" name="checkBox_audio"> - <property name="text"> - <string>Audio</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox_video"> - <property name="text"> - <string>Video</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox_development"> - <property name="text"> - <string>Development</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_3"> - <item> - <widget class="QCheckBox" name="checkBox_education"> - <property name="text"> - <string>Education</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox_game"> - <property name="text"> - <string>Game</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox_graphics"> - <property name="text"> - <string>Graphics</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_4"> - <item> - <widget class="QCheckBox" name="checkBox_network"> - <property name="text"> - <string>Network</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox_office"> - <property name="text"> - <string>Office</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox_science"> - <property name="text"> - <string>Science</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_5"> - <item> - <widget class="QCheckBox" name="checkBox_settings"> - <property name="text"> - <string>Settings</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox_system"> - <property name="text"> - <string>System</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="checkBox_utility"> - <property name="text"> - <string>Utility</string> - </property> - </widget> - </item> - </layout> - </item> - </layout> - </item> - <item> - <widget class="Line" name="line_2"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_8"> - <item> - <widget class="QCheckBox" name="checkBox_terminal"> - <property name="layoutDirection"> - <enum>Qt::RightToLeft</enum> - </property> - <property name="text"> - <string>Run in Terminal</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="pushButton_save"> - <property name="text"> - <string>Save</string> - </property> - </widget> - </item> - </layout> - </item> - </layout> - </widget> - <widget class="QMenuBar" name="menuBar"> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>564</width> - <height>27</height> - </rect> - </property> - <widget class="QMenu" name="menuMenu"> - <property name="title"> - <string>Menu</string> - </property> - <addaction name="actionSave"/> - <addaction name="actionClose"/> - </widget> - <addaction name="menuMenu"/> - </widget> - <action name="actionClose"> - <property name="text"> - <string>Close</string> - </property> - </action> - <action name="actionSave"> - <property name="text"> - <string>Save</string> - </property> - </action> - </widget> - <layoutdefault spacing="6" margin="11"/> - <resources/> - <connections/> -</ui> |