From cb7ac8c92b68b2229e8d1759bbce3d0e2b597c17 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 5 Nov 2014 13:16:58 -0500 Subject: Add a new utility: lumina-search This utility provides quick searching for applications (the default), or for searching the entire user's home directory. The file search also supports the "*" wildcard for the search terms. --- lumina-desktop/LDesktop.cpp | 45 +------ .../desktopview/DesktopViewPlugin.cpp | 4 +- .../desktop-plugins/notepad/NotepadPlugin.cpp | 2 +- lumina-desktop/fluxboxconf/fluxbox-keys | 2 +- lumina-desktop/main.cpp | 2 +- lumina-fm/MainUI.ui | 4 +- lumina-search/MainUI.cpp | 131 ++++++++++++++++++++ lumina-search/MainUI.h | 64 ++++++++++ lumina-search/MainUI.ui | 137 +++++++++++++++++++++ lumina-search/Worker.cpp | 102 +++++++++++++++ lumina-search/Worker.h | 42 +++++++ lumina-search/i18n/lumina-search_af.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_ar.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_az.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_bg.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_bn.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_bs.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_ca.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_cs.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_cy.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_da.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_de.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_el.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_en_GB.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_en_ZA.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_es.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_et.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_eu.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_fa.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_fi.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_fr.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_fr_CA.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_gl.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_he.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_hi.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_hr.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_hu.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_id.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_is.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_it.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_ja.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_ka.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_ko.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_lt.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_lv.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_mk.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_mn.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_ms.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_mt.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_nb.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_nl.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_pa.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_pl.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_pt.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_pt_BR.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_ro.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_ru.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_sk.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_sl.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_sr.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_sv.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_sw.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_ta.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_tg.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_th.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_tr.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_uk.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_uz.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_vi.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_zh_CN.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_zh_HK.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_zh_TW.ts | 92 ++++++++++++++ lumina-search/i18n/lumina-search_zu.ts | 92 ++++++++++++++ lumina-search/lumina-search.desktop | 9 ++ lumina-search/lumina-search.pro | 106 ++++++++++++++++ lumina-search/main.cpp | 29 +++++ lumina.pro | 3 +- port-files/pkg-plist | 64 ++++++++++ 78 files changed, 6401 insertions(+), 49 deletions(-) create mode 100644 lumina-search/MainUI.cpp create mode 100644 lumina-search/MainUI.h create mode 100644 lumina-search/MainUI.ui create mode 100644 lumina-search/Worker.cpp create mode 100644 lumina-search/Worker.h create mode 100644 lumina-search/i18n/lumina-search_af.ts create mode 100644 lumina-search/i18n/lumina-search_ar.ts create mode 100644 lumina-search/i18n/lumina-search_az.ts create mode 100644 lumina-search/i18n/lumina-search_bg.ts create mode 100644 lumina-search/i18n/lumina-search_bn.ts create mode 100644 lumina-search/i18n/lumina-search_bs.ts create mode 100644 lumina-search/i18n/lumina-search_ca.ts create mode 100644 lumina-search/i18n/lumina-search_cs.ts create mode 100644 lumina-search/i18n/lumina-search_cy.ts create mode 100644 lumina-search/i18n/lumina-search_da.ts create mode 100644 lumina-search/i18n/lumina-search_de.ts create mode 100644 lumina-search/i18n/lumina-search_el.ts create mode 100644 lumina-search/i18n/lumina-search_en_GB.ts create mode 100644 lumina-search/i18n/lumina-search_en_ZA.ts create mode 100644 lumina-search/i18n/lumina-search_es.ts create mode 100644 lumina-search/i18n/lumina-search_et.ts create mode 100644 lumina-search/i18n/lumina-search_eu.ts create mode 100644 lumina-search/i18n/lumina-search_fa.ts create mode 100644 lumina-search/i18n/lumina-search_fi.ts create mode 100644 lumina-search/i18n/lumina-search_fr.ts create mode 100644 lumina-search/i18n/lumina-search_fr_CA.ts create mode 100644 lumina-search/i18n/lumina-search_gl.ts create mode 100644 lumina-search/i18n/lumina-search_he.ts create mode 100644 lumina-search/i18n/lumina-search_hi.ts create mode 100644 lumina-search/i18n/lumina-search_hr.ts create mode 100644 lumina-search/i18n/lumina-search_hu.ts create mode 100644 lumina-search/i18n/lumina-search_id.ts create mode 100644 lumina-search/i18n/lumina-search_is.ts create mode 100644 lumina-search/i18n/lumina-search_it.ts create mode 100644 lumina-search/i18n/lumina-search_ja.ts create mode 100644 lumina-search/i18n/lumina-search_ka.ts create mode 100644 lumina-search/i18n/lumina-search_ko.ts create mode 100644 lumina-search/i18n/lumina-search_lt.ts create mode 100644 lumina-search/i18n/lumina-search_lv.ts create mode 100644 lumina-search/i18n/lumina-search_mk.ts create mode 100644 lumina-search/i18n/lumina-search_mn.ts create mode 100644 lumina-search/i18n/lumina-search_ms.ts create mode 100644 lumina-search/i18n/lumina-search_mt.ts create mode 100644 lumina-search/i18n/lumina-search_nb.ts create mode 100644 lumina-search/i18n/lumina-search_nl.ts create mode 100644 lumina-search/i18n/lumina-search_pa.ts create mode 100644 lumina-search/i18n/lumina-search_pl.ts create mode 100644 lumina-search/i18n/lumina-search_pt.ts create mode 100644 lumina-search/i18n/lumina-search_pt_BR.ts create mode 100644 lumina-search/i18n/lumina-search_ro.ts create mode 100644 lumina-search/i18n/lumina-search_ru.ts create mode 100644 lumina-search/i18n/lumina-search_sk.ts create mode 100644 lumina-search/i18n/lumina-search_sl.ts create mode 100644 lumina-search/i18n/lumina-search_sr.ts create mode 100644 lumina-search/i18n/lumina-search_sv.ts create mode 100644 lumina-search/i18n/lumina-search_sw.ts create mode 100644 lumina-search/i18n/lumina-search_ta.ts create mode 100644 lumina-search/i18n/lumina-search_tg.ts create mode 100644 lumina-search/i18n/lumina-search_th.ts create mode 100644 lumina-search/i18n/lumina-search_tr.ts create mode 100644 lumina-search/i18n/lumina-search_uk.ts create mode 100644 lumina-search/i18n/lumina-search_uz.ts create mode 100644 lumina-search/i18n/lumina-search_vi.ts create mode 100644 lumina-search/i18n/lumina-search_zh_CN.ts create mode 100644 lumina-search/i18n/lumina-search_zh_HK.ts create mode 100644 lumina-search/i18n/lumina-search_zh_TW.ts create mode 100644 lumina-search/i18n/lumina-search_zu.ts create mode 100644 lumina-search/lumina-search.desktop create mode 100644 lumina-search/lumina-search.pro create mode 100644 lumina-search/main.cpp diff --git a/lumina-desktop/LDesktop.cpp b/lumina-desktop/LDesktop.cpp index 556b4560..d51e423a 100644 --- a/lumina-desktop/LDesktop.cpp +++ b/lumina-desktop/LDesktop.cpp @@ -16,54 +16,17 @@ LDesktop::LDesktop(int deskNum) : QObject(){ DPREFIX = "desktop-"+QString::number(deskNum)+"/"; desktopnumber = deskNum; desktop = QApplication::desktop(); - //connect(desktop, SIGNAL(resized(int)), this, SLOT(UpdateGeometry(int))); defaultdesktop = (desktop->screenGeometry(desktopnumber).x()==0); desktoplocked = true; issyncing = bgupdating = deskupdating = false; - /*qDebug() << "Desktop #"< "<< desktop->screenGeometry(desktopnumber).x() << desktop->screenGeometry(desktopnumber).y() << desktop->screenGeometry(desktopnumber).width() << desktop->screenGeometry(desktopnumber).height(); - deskMenu = new QMenu(0); - connect(deskMenu, SIGNAL(triggered(QAction*)), this, SLOT(SystemApplication(QAction*)) ); - winMenu = new QMenu(0); - winMenu->setTitle(tr("Window List")); - winMenu->setIcon( LXDG::findIcon("preferences-system-windows","") );*/ usewinmenu=false; - //connect(winMenu, SIGNAL(triggered(QAction*)), this, SLOT(winClicked(QAction*)) ); - //appmenu = new AppMenu(0); - /*workspacelabel = new QLabel(0); - workspacelabel->setAlignment(Qt::AlignCenter); - wkspaceact = new QWidgetAction(0); - wkspaceact->setDefaultWidget(workspacelabel);*/ + //Setup the internal variables settings = new QSettings(QSettings::UserScope, "LuminaDE","desktopsettings", this); //qDebug() << " - Desktop Settings File:" << settings->fileName(); if(!QFile::exists(settings->fileName())){ settings->setValue(DPREFIX+"background/filelist",QStringList()<<"default"); settings->sync(); } bgWindow = 0; bgDesktop = 0; - - /*bgtimer = new QTimer(this); - bgtimer->setSingleShot(true); - connect(bgtimer, SIGNAL(timeout()), this, SLOT(UpdateBackground()) ); - watcher = new QFileSystemWatcher(this); - //connect(LSession::instance(), SIGNAL(DesktopConfigChanged()), this, SLOT(SettingsChanged()) ); - watcher->addPath(settings->fileName()); - connect(watcher, SIGNAL(fileChanged(QString)), this, SLOT(SettingsChanged()) ); - - bgWindow = new QWidget(0); - bgWindow->setObjectName("bgWindow"); - bgWindow->setContextMenuPolicy(Qt::CustomContextMenu); - LX11::SetAsDesktop(bgWindow->winId()); - bgWindow->setGeometry(desktop->screenGeometry(desktopnumber)); - connect(bgWindow, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(ShowMenu()) ); - bgDesktop = new QMdiArea(bgWindow); - //Make sure the desktop area is transparent to show the background - bgDesktop->setBackground( QBrush(Qt::NoBrush) ); - bgDesktop->setStyleSheet( "QMdiArea{ border: none; background: transparent;}" ); - - //Start the update processes - QTimer::singleShot(1,this, SLOT(UpdateMenu()) ); - QTimer::singleShot(1,this, SLOT(UpdateBackground()) ); - QTimer::singleShot(1,this, SLOT(UpdateDesktop()) ); - QTimer::singleShot(10,this, SLOT(UpdatePanels()) );*/ QTimer::singleShot(1,this, SLOT(InitDesktop()) ); } @@ -168,10 +131,10 @@ void LDesktop::InitDesktop(){ bgDesktop->setStyleSheet( "QMdiArea{ border: none; background: transparent;}" ); qDebug() << " - Desktop Init Done:" << desktopnumber; //Start the update processes - QTimer::singleShot(1,this, SLOT(UpdateMenu()) ); - QTimer::singleShot(1,this, SLOT(UpdateBackground()) ); + QTimer::singleShot(10,this, SLOT(UpdateMenu()) ); + QTimer::singleShot(0,this, SLOT(UpdateBackground()) ); QTimer::singleShot(1,this, SLOT(UpdateDesktop()) ); - QTimer::singleShot(10,this, SLOT(UpdatePanels()) ); + QTimer::singleShot(2,this, SLOT(UpdatePanels()) ); } void LDesktop::SettingsChanged(){ diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp index 98d132ac..54727a36 100644 --- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp +++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp @@ -18,9 +18,8 @@ DesktopViewPlugin::DesktopViewPlugin(QWidget* parent, QString ID) : LDPlugin(par list->setSpacing(2); list->setSelectionBehavior(QAbstractItemView::SelectItems); list->setSelectionMode(QAbstractItemView::NoSelection); - list->setStyleSheet( "QListWidget{ background: transparent; }" ); + list->setStyleSheet( "QListWidget{ background: rgba(255,255,255,100); border: none; border-radius: 3px;}" ); list->setIconSize(QSize(64,64)); - list->setGridSize(QSize(80,80)); this->layout()->addWidget(list); this->setInitialSize(200,300); watcher = new QFileSystemWatcher(this); @@ -41,6 +40,7 @@ void DesktopViewPlugin::runItem(QListWidgetItem *item){ void DesktopViewPlugin::updateContents(){ list->clear(); + list->setGridSize(QSize(80,70+this->fontMetrics().height())); QDir dir(QDir::homePath()+"/Desktop"); QFileInfoList files = dir.entryInfoList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name | QDir::Type | QDir::DirsFirst); for(int i=0; ilayout()->setContentsMargins(0,0,0,0); vlay->setContentsMargins(3,3,3,3); frame = new QFrame(this); - frame->setStyleSheet("QFrame{border-size: 1px; background: rgba(255,255,255,100);}"); + frame->setStyleSheet("QFrame{border-size: 1px; background: rgba(255,255,255,100); color: black;}"); this->layout()->addWidget(frame); frame->setLayout(vlay); diff --git a/lumina-desktop/fluxboxconf/fluxbox-keys b/lumina-desktop/fluxboxconf/fluxbox-keys index 958a48c7..4d78efcb 100644 --- a/lumina-desktop/fluxboxconf/fluxbox-keys +++ b/lumina-desktop/fluxboxconf/fluxbox-keys @@ -73,7 +73,7 @@ Mod4 9 :Tab 9 Mod1 F1 :Exec xterm # open a dialog to run programs -Mod1 F2 :Exec fbrun +Mod1 F2 :Exec lumina-search # current window commands Mod1 F4 :Close diff --git a/lumina-desktop/main.cpp b/lumina-desktop/main.cpp index 8c99a902..884e9441 100644 --- a/lumina-desktop/main.cpp +++ b/lumina-desktop/main.cpp @@ -82,7 +82,7 @@ int main(int argc, char ** argv) if(DEBUG){ qDebug() << "Load Locale:" << timer->elapsed(); } a.LoadLocale(QLocale().name()); //Start launching external applications - QTimer::singleShot(2000, &a, SLOT(launchStartupApps()) ); //wait a second first + QTimer::singleShot(2000, &a, SLOT(launchStartupApps()) ); //wait a couple seconds first if(DEBUG){ qDebug() << "Exec Time:" << timer->elapsed(); delete timer;} int retCode = a.exec(); //qDebug() << "Stopping the window manager"; diff --git a/lumina-fm/MainUI.ui b/lumina-fm/MainUI.ui index 160a271d..3102915a 100644 --- a/lumina-fm/MainUI.ui +++ b/lumina-fm/MainUI.ui @@ -66,7 +66,7 @@ QListView::Adjust - QListView::Batched + QListView::SinglePass 1 @@ -75,7 +75,7 @@ true - 30 + 10 true diff --git a/lumina-search/MainUI.cpp b/lumina-search/MainUI.cpp new file mode 100644 index 00000000..df247324 --- /dev/null +++ b/lumina-search/MainUI.cpp @@ -0,0 +1,131 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2014, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#include "MainUI.h" +#include "ui_MainUI.h" + +MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ + ui->setupUi(this); //load the designer file + setupIcons(); + ui->radio_apps->setChecked(true); //always default to starting here + ui->tool_stop->setVisible(false); //no search running initially + + livetime = new QTimer(this); + livetime->setInterval(300); //1/2 second for live searches + livetime->setSingleShot(true); + + workthread = new QThread(this); + workthread->setObjectName("Lumina Search Process"); + + searcher = new Worker(); + searcher->moveToThread(workthread); + + //Setup the connections + connect(livetime, SIGNAL(timeout()), this, SLOT(startSearch()) ); + connect(this, SIGNAL(SearchTerm(QString, bool)), searcher, SLOT(StartSearch(QString, bool)) ); + connect(searcher, SIGNAL(FoundItem(QString)), this, SLOT(foundSearchItem(QString)) ); + connect(searcher, SIGNAL(SearchUpdate(QString)), this, SLOT(searchMessage(QString)) ); + connect(searcher, SIGNAL(SearchDone()), this, SLOT(searchFinished()) ); + connect(ui->tool_stop, SIGNAL(clicked()), this, SLOT(stopSearch()) ); + connect(ui->push_done, SIGNAL(clicked()), this, SLOT(closeApplication()) ); + connect(ui->push_launch, SIGNAL(clicked()), this, SLOT(LaunchItem()) ); + connect(ui->line_search, SIGNAL(textEdited(QString)), this, SLOT(searchChanged()) ); + connect(ui->line_search, SIGNAL(returnPressed()), this, SLOT(LaunchItem()) ); + connect(ui->radio_apps, SIGNAL(toggled(bool)), this, SLOT(searchTypeChanged()) ); + connect(ui->listWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(LaunchItem(QListWidgetItem*)) ); + connect(ui->listWidget, SIGNAL(itemActivated(QListWidgetItem*)), this, SLOT(LaunchItem(QListWidgetItem*)) ); + + //Setup the settings file (not used at the moment) + //QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina"); + //settings = new QSettings("LuminaDE", "lumina-search",this); + + this->show(); + workthread->start(); +} + +MainUI::~MainUI(){ + workthread->quit(); + workthread->wait(); +} + +void MainUI::setupIcons(){ + //Setup the icons + this->setWindowIcon( LXDG::findIcon("edit-find","") ); + ui->push_launch->setIcon( LXDG::findIcon("quickopen","") ); + ui->push_done->setIcon( LXDG::findIcon("window-close","") ); + ui->tool_stop->setIcon( LXDG::findIcon("dialog-cancel","") ); +} + +//============== +// PRIVATE SLOTS +//============== +void MainUI::LaunchItem(){ +int index = ui->listWidget->currentRow(); +if(index<0 && ui->listWidget->count()>0){ index = 0; } //grab the first item instead +else if(index<0){ return; } //no items available/selected +QString item = ui->listWidget->item(index)->whatsThis(); +QProcess::startDetached("lumina-open \""+item+"\""); +//Close the search utility if an application was launched (quick launch functionality) +if(ui->radio_apps->isChecked()){ this->close(); } +} + +void MainUI::LaunchItem(QListWidgetItem *item){ + QProcess::startDetached("lumina-open \""+item->whatsThis()+"\""); +} + +void MainUI::searchTypeChanged(){ + startSearch(); +} + +void MainUI::searchChanged(){ + if(livetime->isActive()){ livetime->stop(); } + livetime->start(); +} + +//Worker Interaction +void MainUI::startSearch(){ + ui->listWidget->clear(); + stopSearch(); //just in case a search is still running + if(ui->line_search->text().isEmpty()){ return; } //nothing to search for + + //emit the proper signal for the worker + if(!workthread->isRunning()){ workthread->start(); } //make sure the thread is running + emit SearchTerm(ui->line_search->text(), ui->radio_apps->isChecked()); + ui->tool_stop->setVisible(true); +} + +void MainUI::foundSearchItem(QString path){ + //To get the worker's results + QListWidgetItem *it = new QListWidgetItem; + it->setWhatsThis(path); + it->setToolTip(path); + //Now setup the visuals + if(path.endsWith(".desktop")){ + bool ok = false; + XDGDesktop desk = LXDG::loadDesktopFile(path,ok); + if(!ok){delete it; return; } //invalid file + it->setText(desk.name); + it->setIcon( LXDG::findIcon(desk.icon, "application-x-desktop") ); + }else{ + it->setText( path.section("/",-1) ); + it->setIcon( LXDG::findMimeIcon(path.section(".",-1)) ); + } + //Now add it to the widget + ui->listWidget->addItem(it); +} + +void MainUI::stopSearch(){ + searcher->StopSearch(); + ui->tool_stop->setVisible(false); +} + +void MainUI::searchMessage(QString msg){ + ui->statusbar->showMessage(msg,2000); +} + +void MainUI::searchFinished(){ + ui->tool_stop->setVisible(false); +} diff --git a/lumina-search/MainUI.h b/lumina-search/MainUI.h new file mode 100644 index 00000000..77a5de0f --- /dev/null +++ b/lumina-search/MainUI.h @@ -0,0 +1,64 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2014, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#ifndef _LUMINA_SEARCH_DIALOG_H +#define _LUMINA_SEARCH_DIALOG_H + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "Worker.h" + +namespace Ui{ + class MainUI; +}; + +class MainUI : public QMainWindow{ + Q_OBJECT +public: + MainUI(); + ~MainUI(); + +public slots: + void setupIcons(); + +private: + Ui::MainUI *ui; + QThread *workthread; + QTimer *livetime; + Worker *searcher; + //QSettings *settings; //not needed at the moment + +private slots: + //Button Slots + void closeApplication(){ + this->close(); + } + void LaunchItem(); + void LaunchItem(QListWidgetItem*); + void searchTypeChanged(); + + void searchChanged(); //for active searching while typing + + //Worker Interaction + void startSearch(); //emit the proper signal for the worker + void foundSearchItem(QString path); //To get the worker's results + void stopSearch(); + void searchMessage(QString); + void searchFinished(); + +signals: + void SearchTerm(QString term, bool isApp); //to connect to the worker's slot +}; + +#endif diff --git a/lumina-search/MainUI.ui b/lumina-search/MainUI.ui new file mode 100644 index 00000000..91cee1ce --- /dev/null +++ b/lumina-search/MainUI.ui @@ -0,0 +1,137 @@ + + + MainUI + + + + 0 + 0 + 288 + 247 + + + + Search For... + + + + + + + + + Type to search + + + + + + + Stop Active Search + + + + + + + + + + + + + + Applications + + + true + + + + + + + Files or Directories + + + + + + + + + + 32 + 32 + + + + + + + + + + Close + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Launch Item + + + + + + + + + + + Save + + + Save Screenshot + + + Save Screenshot + + + Ctrl+S + + + + + Quit + + + Quit + + + + + Snap + + + Take new snapshot + + + + + + diff --git a/lumina-search/Worker.cpp b/lumina-search/Worker.cpp new file mode 100644 index 00000000..6dc750cb --- /dev/null +++ b/lumina-search/Worker.cpp @@ -0,0 +1,102 @@ +#include "Worker.h" + +#include +#include + +Worker::Worker(QObject *parent) : QObject(parent){ + //Get the list of all applications and save them in an easily-searchable form + QList apps = LXDG::systemDesktopFiles(); + for(int i=0; i +#include +#include + + +class Worker : public QObject{ + Q_OBJECT +public: + Worker(QObject *parent = 0); + ~Worker(); + +public slots: + void StartSearch(QString term, bool isApp); + void StopSearch(); + +private: + QStringList applist; + bool stopsearch; + QString sterm; + bool sapp; + + bool searchDir(QString); + +private slots: + void beginsearch(); + +signals: + void FoundItem(QString path); + void SearchUpdate(QString); + void SearchDone(); +}; + +#endif \ No newline at end of file diff --git a/lumina-search/i18n/lumina-search_af.ts b/lumina-search/i18n/lumina-search_af.ts new file mode 100644 index 00000000..dc7d7dc8 --- /dev/null +++ b/lumina-search/i18n/lumina-search_af.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_ar.ts b/lumina-search/i18n/lumina-search_ar.ts new file mode 100644 index 00000000..bdff4deb --- /dev/null +++ b/lumina-search/i18n/lumina-search_ar.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_az.ts b/lumina-search/i18n/lumina-search_az.ts new file mode 100644 index 00000000..90d96464 --- /dev/null +++ b/lumina-search/i18n/lumina-search_az.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_bg.ts b/lumina-search/i18n/lumina-search_bg.ts new file mode 100644 index 00000000..fb949130 --- /dev/null +++ b/lumina-search/i18n/lumina-search_bg.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_bn.ts b/lumina-search/i18n/lumina-search_bn.ts new file mode 100644 index 00000000..e3ea9ee2 --- /dev/null +++ b/lumina-search/i18n/lumina-search_bn.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_bs.ts b/lumina-search/i18n/lumina-search_bs.ts new file mode 100644 index 00000000..af2897cb --- /dev/null +++ b/lumina-search/i18n/lumina-search_bs.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_ca.ts b/lumina-search/i18n/lumina-search_ca.ts new file mode 100644 index 00000000..dfbd8cc1 --- /dev/null +++ b/lumina-search/i18n/lumina-search_ca.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_cs.ts b/lumina-search/i18n/lumina-search_cs.ts new file mode 100644 index 00000000..b989958b --- /dev/null +++ b/lumina-search/i18n/lumina-search_cs.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_cy.ts b/lumina-search/i18n/lumina-search_cy.ts new file mode 100644 index 00000000..ea632db4 --- /dev/null +++ b/lumina-search/i18n/lumina-search_cy.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_da.ts b/lumina-search/i18n/lumina-search_da.ts new file mode 100644 index 00000000..893f61ac --- /dev/null +++ b/lumina-search/i18n/lumina-search_da.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_de.ts b/lumina-search/i18n/lumina-search_de.ts new file mode 100644 index 00000000..5d2e14eb --- /dev/null +++ b/lumina-search/i18n/lumina-search_de.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_el.ts b/lumina-search/i18n/lumina-search_el.ts new file mode 100644 index 00000000..54f0b7de --- /dev/null +++ b/lumina-search/i18n/lumina-search_el.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_en_GB.ts b/lumina-search/i18n/lumina-search_en_GB.ts new file mode 100644 index 00000000..dd170257 --- /dev/null +++ b/lumina-search/i18n/lumina-search_en_GB.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_en_ZA.ts b/lumina-search/i18n/lumina-search_en_ZA.ts new file mode 100644 index 00000000..1444e283 --- /dev/null +++ b/lumina-search/i18n/lumina-search_en_ZA.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_es.ts b/lumina-search/i18n/lumina-search_es.ts new file mode 100644 index 00000000..c63aeb94 --- /dev/null +++ b/lumina-search/i18n/lumina-search_es.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_et.ts b/lumina-search/i18n/lumina-search_et.ts new file mode 100644 index 00000000..80daf3f2 --- /dev/null +++ b/lumina-search/i18n/lumina-search_et.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_eu.ts b/lumina-search/i18n/lumina-search_eu.ts new file mode 100644 index 00000000..f743ac7f --- /dev/null +++ b/lumina-search/i18n/lumina-search_eu.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_fa.ts b/lumina-search/i18n/lumina-search_fa.ts new file mode 100644 index 00000000..ca82e6a6 --- /dev/null +++ b/lumina-search/i18n/lumina-search_fa.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_fi.ts b/lumina-search/i18n/lumina-search_fi.ts new file mode 100644 index 00000000..a8de9354 --- /dev/null +++ b/lumina-search/i18n/lumina-search_fi.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_fr.ts b/lumina-search/i18n/lumina-search_fr.ts new file mode 100644 index 00000000..74aeb5d8 --- /dev/null +++ b/lumina-search/i18n/lumina-search_fr.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_fr_CA.ts b/lumina-search/i18n/lumina-search_fr_CA.ts new file mode 100644 index 00000000..a19970aa --- /dev/null +++ b/lumina-search/i18n/lumina-search_fr_CA.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_gl.ts b/lumina-search/i18n/lumina-search_gl.ts new file mode 100644 index 00000000..dc1490f3 --- /dev/null +++ b/lumina-search/i18n/lumina-search_gl.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_he.ts b/lumina-search/i18n/lumina-search_he.ts new file mode 100644 index 00000000..e754cc48 --- /dev/null +++ b/lumina-search/i18n/lumina-search_he.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_hi.ts b/lumina-search/i18n/lumina-search_hi.ts new file mode 100644 index 00000000..04545b54 --- /dev/null +++ b/lumina-search/i18n/lumina-search_hi.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_hr.ts b/lumina-search/i18n/lumina-search_hr.ts new file mode 100644 index 00000000..75ff7b2f --- /dev/null +++ b/lumina-search/i18n/lumina-search_hr.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_hu.ts b/lumina-search/i18n/lumina-search_hu.ts new file mode 100644 index 00000000..8a02fe31 --- /dev/null +++ b/lumina-search/i18n/lumina-search_hu.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_id.ts b/lumina-search/i18n/lumina-search_id.ts new file mode 100644 index 00000000..aa5e628a --- /dev/null +++ b/lumina-search/i18n/lumina-search_id.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_is.ts b/lumina-search/i18n/lumina-search_is.ts new file mode 100644 index 00000000..d97659c3 --- /dev/null +++ b/lumina-search/i18n/lumina-search_is.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_it.ts b/lumina-search/i18n/lumina-search_it.ts new file mode 100644 index 00000000..b6a82b5b --- /dev/null +++ b/lumina-search/i18n/lumina-search_it.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_ja.ts b/lumina-search/i18n/lumina-search_ja.ts new file mode 100644 index 00000000..c22eea8e --- /dev/null +++ b/lumina-search/i18n/lumina-search_ja.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_ka.ts b/lumina-search/i18n/lumina-search_ka.ts new file mode 100644 index 00000000..856e8923 --- /dev/null +++ b/lumina-search/i18n/lumina-search_ka.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_ko.ts b/lumina-search/i18n/lumina-search_ko.ts new file mode 100644 index 00000000..c963db3f --- /dev/null +++ b/lumina-search/i18n/lumina-search_ko.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_lt.ts b/lumina-search/i18n/lumina-search_lt.ts new file mode 100644 index 00000000..8c82fd68 --- /dev/null +++ b/lumina-search/i18n/lumina-search_lt.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_lv.ts b/lumina-search/i18n/lumina-search_lv.ts new file mode 100644 index 00000000..0c59727b --- /dev/null +++ b/lumina-search/i18n/lumina-search_lv.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_mk.ts b/lumina-search/i18n/lumina-search_mk.ts new file mode 100644 index 00000000..25f6f2f9 --- /dev/null +++ b/lumina-search/i18n/lumina-search_mk.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_mn.ts b/lumina-search/i18n/lumina-search_mn.ts new file mode 100644 index 00000000..a8241f2e --- /dev/null +++ b/lumina-search/i18n/lumina-search_mn.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_ms.ts b/lumina-search/i18n/lumina-search_ms.ts new file mode 100644 index 00000000..7ba72843 --- /dev/null +++ b/lumina-search/i18n/lumina-search_ms.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_mt.ts b/lumina-search/i18n/lumina-search_mt.ts new file mode 100644 index 00000000..dd81f563 --- /dev/null +++ b/lumina-search/i18n/lumina-search_mt.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_nb.ts b/lumina-search/i18n/lumina-search_nb.ts new file mode 100644 index 00000000..ee33adb1 --- /dev/null +++ b/lumina-search/i18n/lumina-search_nb.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_nl.ts b/lumina-search/i18n/lumina-search_nl.ts new file mode 100644 index 00000000..0b299bbd --- /dev/null +++ b/lumina-search/i18n/lumina-search_nl.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_pa.ts b/lumina-search/i18n/lumina-search_pa.ts new file mode 100644 index 00000000..2aef6942 --- /dev/null +++ b/lumina-search/i18n/lumina-search_pa.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_pl.ts b/lumina-search/i18n/lumina-search_pl.ts new file mode 100644 index 00000000..bcac549c --- /dev/null +++ b/lumina-search/i18n/lumina-search_pl.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_pt.ts b/lumina-search/i18n/lumina-search_pt.ts new file mode 100644 index 00000000..a73bc684 --- /dev/null +++ b/lumina-search/i18n/lumina-search_pt.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_pt_BR.ts b/lumina-search/i18n/lumina-search_pt_BR.ts new file mode 100644 index 00000000..a5df0f57 --- /dev/null +++ b/lumina-search/i18n/lumina-search_pt_BR.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_ro.ts b/lumina-search/i18n/lumina-search_ro.ts new file mode 100644 index 00000000..2f9c01c1 --- /dev/null +++ b/lumina-search/i18n/lumina-search_ro.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_ru.ts b/lumina-search/i18n/lumina-search_ru.ts new file mode 100644 index 00000000..85385f6e --- /dev/null +++ b/lumina-search/i18n/lumina-search_ru.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_sk.ts b/lumina-search/i18n/lumina-search_sk.ts new file mode 100644 index 00000000..9149dc8f --- /dev/null +++ b/lumina-search/i18n/lumina-search_sk.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_sl.ts b/lumina-search/i18n/lumina-search_sl.ts new file mode 100644 index 00000000..52ba1131 --- /dev/null +++ b/lumina-search/i18n/lumina-search_sl.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_sr.ts b/lumina-search/i18n/lumina-search_sr.ts new file mode 100644 index 00000000..6323d2db --- /dev/null +++ b/lumina-search/i18n/lumina-search_sr.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_sv.ts b/lumina-search/i18n/lumina-search_sv.ts new file mode 100644 index 00000000..2f450fc1 --- /dev/null +++ b/lumina-search/i18n/lumina-search_sv.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_sw.ts b/lumina-search/i18n/lumina-search_sw.ts new file mode 100644 index 00000000..32562d46 --- /dev/null +++ b/lumina-search/i18n/lumina-search_sw.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_ta.ts b/lumina-search/i18n/lumina-search_ta.ts new file mode 100644 index 00000000..2c8ba2a1 --- /dev/null +++ b/lumina-search/i18n/lumina-search_ta.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_tg.ts b/lumina-search/i18n/lumina-search_tg.ts new file mode 100644 index 00000000..564291c0 --- /dev/null +++ b/lumina-search/i18n/lumina-search_tg.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_th.ts b/lumina-search/i18n/lumina-search_th.ts new file mode 100644 index 00000000..66eb6eca --- /dev/null +++ b/lumina-search/i18n/lumina-search_th.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_tr.ts b/lumina-search/i18n/lumina-search_tr.ts new file mode 100644 index 00000000..da732c6e --- /dev/null +++ b/lumina-search/i18n/lumina-search_tr.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_uk.ts b/lumina-search/i18n/lumina-search_uk.ts new file mode 100644 index 00000000..c702839f --- /dev/null +++ b/lumina-search/i18n/lumina-search_uk.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_uz.ts b/lumina-search/i18n/lumina-search_uz.ts new file mode 100644 index 00000000..e1f2d901 --- /dev/null +++ b/lumina-search/i18n/lumina-search_uz.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_vi.ts b/lumina-search/i18n/lumina-search_vi.ts new file mode 100644 index 00000000..a3d6f49b --- /dev/null +++ b/lumina-search/i18n/lumina-search_vi.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_zh_CN.ts b/lumina-search/i18n/lumina-search_zh_CN.ts new file mode 100644 index 00000000..28d842fa --- /dev/null +++ b/lumina-search/i18n/lumina-search_zh_CN.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_zh_HK.ts b/lumina-search/i18n/lumina-search_zh_HK.ts new file mode 100644 index 00000000..12f1de82 --- /dev/null +++ b/lumina-search/i18n/lumina-search_zh_HK.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_zh_TW.ts b/lumina-search/i18n/lumina-search_zh_TW.ts new file mode 100644 index 00000000..e236f858 --- /dev/null +++ b/lumina-search/i18n/lumina-search_zh_TW.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/i18n/lumina-search_zu.ts b/lumina-search/i18n/lumina-search_zu.ts new file mode 100644 index 00000000..2d7b289d --- /dev/null +++ b/lumina-search/i18n/lumina-search_zu.ts @@ -0,0 +1,92 @@ + + + + + MainUI + + + Search For... + + + + + Type to search + + + + + Stop Active Search + + + + + Applications + + + + + Files or Directories + + + + + Close + + + + + Launch Item + + + + + Save + + + + + + Save Screenshot + + + + + Ctrl+S + + + + + + Quit + + + + + Snap + + + + + Take new snapshot + + + + + Worker + + + Searching: %1 + + + + + Starting Search: %1 + + + + + Search Finished + + + + diff --git a/lumina-search/lumina-search.desktop b/lumina-search/lumina-search.desktop new file mode 100644 index 00000000..b002047b --- /dev/null +++ b/lumina-search/lumina-search.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Exec=lumina-search +Icon=edit-find +Terminal=false +Type=Application +StartupNotify=true +Categories=Utility; +Name=Lumina Search +Comment=Search for files or applications diff --git a/lumina-search/lumina-search.pro b/lumina-search/lumina-search.pro new file mode 100644 index 00000000..3f428c6a --- /dev/null +++ b/lumina-search/lumina-search.pro @@ -0,0 +1,106 @@ + +QT += core gui + +TARGET = lumina-search +isEmpty(PREFIX) { + PREFIX = /usr/local +} +target.path = $$PREFIX/bin + +TEMPLATE = app + +SOURCES += main.cpp \ + MainUI.cpp \ + Worker.cpp + +HEADERS += MainUI.h \ + Worker.h + +FORMS += MainUI.ui + +INCLUDEPATH += ../libLumina $$PREFIX/include + + LIBS += -L../libLumina -lLuminaUtils +freebsd-* { + LIBS += -lQtSolutions_SingleApplication-head +} + +openbsd-g++4 { + LRELEASE = lrelease4 +} else { + LRELEASE = lrelease-qt4 +} + +QMAKE_LIBDIR = ../libLumina +DEPENDPATH += ../libLumina + +TRANSLATIONS = i18n/lumina-search_af.ts \ + i18n/lumina-search_ar.ts \ + i18n/lumina-search_az.ts \ + i18n/lumina-search_bg.ts \ + i18n/lumina-search_bn.ts \ + i18n/lumina-search_bs.ts \ + i18n/lumina-search_ca.ts \ + i18n/lumina-search_cs.ts \ + i18n/lumina-search_cy.ts \ + i18n/lumina-search_da.ts \ + i18n/lumina-search_de.ts \ + i18n/lumina-search_el.ts \ + i18n/lumina-search_en_GB.ts \ + i18n/lumina-search_en_ZA.ts \ + i18n/lumina-search_es.ts \ + i18n/lumina-search_et.ts \ + i18n/lumina-search_eu.ts \ + i18n/lumina-search_fa.ts \ + i18n/lumina-search_fi.ts \ + i18n/lumina-search_fr.ts \ + i18n/lumina-search_fr_CA.ts \ + i18n/lumina-search_gl.ts \ + i18n/lumina-search_he.ts \ + i18n/lumina-search_hi.ts \ + i18n/lumina-search_hr.ts \ + i18n/lumina-search_hu.ts \ + i18n/lumina-search_id.ts \ + i18n/lumina-search_is.ts \ + i18n/lumina-search_it.ts \ + i18n/lumina-search_ja.ts \ + i18n/lumina-search_ka.ts \ + i18n/lumina-search_ko.ts \ + i18n/lumina-search_lt.ts \ + i18n/lumina-search_lv.ts \ + i18n/lumina-search_mk.ts \ + i18n/lumina-search_mn.ts \ + i18n/lumina-search_ms.ts \ + i18n/lumina-search_mt.ts \ + i18n/lumina-search_nb.ts \ + i18n/lumina-search_nl.ts \ + i18n/lumina-search_pa.ts \ + i18n/lumina-search_pl.ts \ + i18n/lumina-search_pt.ts \ + i18n/lumina-search_pt_BR.ts \ + i18n/lumina-search_ro.ts \ + i18n/lumina-search_ru.ts \ + i18n/lumina-search_sk.ts \ + i18n/lumina-search_sl.ts \ + i18n/lumina-search_sr.ts \ + i18n/lumina-search_sv.ts \ + i18n/lumina-search_sw.ts \ + i18n/lumina-search_ta.ts \ + i18n/lumina-search_tg.ts \ + i18n/lumina-search_th.ts \ + i18n/lumina-search_tr.ts \ + i18n/lumina-search_uk.ts \ + i18n/lumina-search_uz.ts \ + i18n/lumina-search_vi.ts \ + i18n/lumina-search_zh_CN.ts \ + i18n/lumina-search_zh_HK.ts \ + i18n/lumina-search_zh_TW.ts \ + i18n/lumina-search_zu.ts + +dotrans.path=$$PREFIX/share/Lumina-DE/i18n/ +dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$$PREFIX/share/Lumina-DE/i18n/ + +desktop.files=lumina-search.desktop +desktop.path=$$PREFIX/share/applications/ + +INSTALLS += target dotrans desktop diff --git a/lumina-search/main.cpp b/lumina-search/main.cpp new file mode 100644 index 00000000..886884d5 --- /dev/null +++ b/lumina-search/main.cpp @@ -0,0 +1,29 @@ +#include +#include +#include +#include + +#include "MainUI.h" +#include +#include + +int main(int argc, char ** argv) +{ + QApplication a(argc, argv); + LuminaThemeEngine theme(&a); + a.setApplicationName("Search for..."); + QTranslator translator; + QLocale mylocale; + QString langCode = mylocale.name(); + + if ( ! QFile::exists(LOS::LuminaShare()+"i18n/lumina-search_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_")); + translator.load( QString("lumina-search_") + langCode, LOS::LuminaShare()+"i18n/" ); + a.installTranslator( &translator ); + qDebug() << "Locale:" << langCode; + + MainUI w; + QObject::connect(&theme,SIGNAL(updateIcons()), &w, SLOT(setupIcons()) ); + w.show(); + + return a.exec(); +} diff --git a/lumina.pro b/lumina.pro index 011a8f9c..2649b28e 100644 --- a/lumina.pro +++ b/lumina.pro @@ -5,5 +5,6 @@ SUBDIRS+= libLumina \ lumina-open \ lumina-config \ lumina-fm \ - lumina-screenshot + lumina-screenshot \ + lumina-search diff --git a/port-files/pkg-plist b/port-files/pkg-plist index a7682383..aa10dc06 100644 --- a/port-files/pkg-plist +++ b/port-files/pkg-plist @@ -3,6 +3,7 @@ bin/lumina-open bin/lumina-config bin/lumina-fm bin/lumina-screenshot +bin/lumina-search lib/libLuminaUtils.so lib/libLuminaUtils.so.1 lib/libLuminaUtils.so.1.0 @@ -14,6 +15,7 @@ include/LuminaThemes.h include/LuminaOS.h share/applications/lumina-fm.desktop share/applications/lumina-screenshot.desktop +share/applications/lumina-search.desktop share/pixmaps/Lumina-DE.png share/pixmaps/Insight-FileManager.png share/xsessions/Lumina-DE.desktop @@ -340,6 +342,68 @@ share/Lumina-DE/i18n/lumina-screenshot_zh_CN.qm share/Lumina-DE/i18n/lumina-screenshot_zh_HK.qm share/Lumina-DE/i18n/lumina-screenshot_zh_TW.qm share/Lumina-DE/i18n/lumina-screenshot_zu.qm +share/Lumina-DE/i18n/lumina-search_af.qm +share/Lumina-DE/i18n/lumina-search_ar.qm +share/Lumina-DE/i18n/lumina-search_az.qm +share/Lumina-DE/i18n/lumina-search_bg.qm +share/Lumina-DE/i18n/lumina-search_bn.qm +share/Lumina-DE/i18n/lumina-search_bs.qm +share/Lumina-DE/i18n/lumina-search_ca.qm +share/Lumina-DE/i18n/lumina-search_cs.qm +share/Lumina-DE/i18n/lumina-search_cy.qm +share/Lumina-DE/i18n/lumina-search_da.qm +share/Lumina-DE/i18n/lumina-search_de.qm +share/Lumina-DE/i18n/lumina-search_el.qm +share/Lumina-DE/i18n/lumina-search_en_GB.qm +share/Lumina-DE/i18n/lumina-search_en_ZA.qm +share/Lumina-DE/i18n/lumina-search_es.qm +share/Lumina-DE/i18n/lumina-search_et.qm +share/Lumina-DE/i18n/lumina-search_eu.qm +share/Lumina-DE/i18n/lumina-search_fa.qm +share/Lumina-DE/i18n/lumina-search_fi.qm +share/Lumina-DE/i18n/lumina-search_fr.qm +share/Lumina-DE/i18n/lumina-search_fr_CA.qm +share/Lumina-DE/i18n/lumina-search_gl.qm +share/Lumina-DE/i18n/lumina-search_he.qm +share/Lumina-DE/i18n/lumina-search_hi.qm +share/Lumina-DE/i18n/lumina-search_hr.qm +share/Lumina-DE/i18n/lumina-search_hu.qm +share/Lumina-DE/i18n/lumina-search_id.qm +share/Lumina-DE/i18n/lumina-search_is.qm +share/Lumina-DE/i18n/lumina-search_it.qm +share/Lumina-DE/i18n/lumina-search_ja.qm +share/Lumina-DE/i18n/lumina-search_ka.qm +share/Lumina-DE/i18n/lumina-search_ko.qm +share/Lumina-DE/i18n/lumina-search_lt.qm +share/Lumina-DE/i18n/lumina-search_lv.qm +share/Lumina-DE/i18n/lumina-search_mk.qm +share/Lumina-DE/i18n/lumina-search_mn.qm +share/Lumina-DE/i18n/lumina-search_ms.qm +share/Lumina-DE/i18n/lumina-search_mt.qm +share/Lumina-DE/i18n/lumina-search_nb.qm +share/Lumina-DE/i18n/lumina-search_nl.qm +share/Lumina-DE/i18n/lumina-search_pa.qm +share/Lumina-DE/i18n/lumina-search_pl.qm +share/Lumina-DE/i18n/lumina-search_pt.qm +share/Lumina-DE/i18n/lumina-search_pt_BR.qm +share/Lumina-DE/i18n/lumina-search_ro.qm +share/Lumina-DE/i18n/lumina-search_ru.qm +share/Lumina-DE/i18n/lumina-search_sk.qm +share/Lumina-DE/i18n/lumina-search_sl.qm +share/Lumina-DE/i18n/lumina-search_sr.qm +share/Lumina-DE/i18n/lumina-search_sv.qm +share/Lumina-DE/i18n/lumina-search_sw.qm +share/Lumina-DE/i18n/lumina-search_ta.qm +share/Lumina-DE/i18n/lumina-search_tg.qm +share/Lumina-DE/i18n/lumina-search_th.qm +share/Lumina-DE/i18n/lumina-search_tr.qm +share/Lumina-DE/i18n/lumina-search_uk.qm +share/Lumina-DE/i18n/lumina-search_uz.qm +share/Lumina-DE/i18n/lumina-search_vi.qm +share/Lumina-DE/i18n/lumina-search_zh_CN.qm +share/Lumina-DE/i18n/lumina-search_zh_HK.qm +share/Lumina-DE/i18n/lumina-search_zh_TW.qm +share/Lumina-DE/i18n/lumina-search_zu.qm @dirrm share/Lumina-DE/i18n @dirrmtry share/Lumina-DE/colors @dirrmtry share/Lumina-DE -- cgit