summaryrefslogtreecommitdiffstats
path: root/kicker/menuext/find
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kicker/menuext/find
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/menuext/find')
-rw-r--r--kicker/menuext/find/Makefile.am18
-rw-r--r--kicker/menuext/find/find.desktop133
-rw-r--r--kicker/menuext/find/findmenu.cpp84
-rw-r--r--kicker/menuext/find/findmenu.h47
-rw-r--r--kicker/menuext/find/kfind.desktop89
-rw-r--r--kicker/menuext/find/websearch.desktop80
6 files changed, 451 insertions, 0 deletions
diff --git a/kicker/menuext/find/Makefile.am b/kicker/menuext/find/Makefile.am
new file mode 100644
index 000000000..223781dcf
--- /dev/null
+++ b/kicker/menuext/find/Makefile.am
@@ -0,0 +1,18 @@
+INCLUDES = $(all_includes)
+
+kde_module_LTLIBRARIES = kickermenu_find.la
+
+kickermenu_find_la_SOURCES = findmenu.cpp
+kickermenu_find_la_LDFLAGS = $(all_libraries) -module -avoid-version
+kickermenu_find_la_LIBADD = $(LIB_KDEUI)
+
+kickermenu_find_la_METASOURCES = AUTO
+
+desktopmenu_DATA = find.desktop
+desktopmenudir = $(kde_datadir)/kicker/menuext
+
+findmenu_data_DATA = kfind.desktop websearch.desktop
+findmenu_datadir = $(kde_datadir)/kicker/menuext/find
+
+messages:
+ $(XGETTEXT) *.cpp -o $(podir)/libkickermenu_find.pot
diff --git a/kicker/menuext/find/find.desktop b/kicker/menuext/find/find.desktop
new file mode 100644
index 000000000..c4dd2258e
--- /dev/null
+++ b/kicker/menuext/find/find.desktop
@@ -0,0 +1,133 @@
+[Desktop Entry]
+Name=Find
+Name[af]=Soek
+Name[ar]=إبحث
+Name[az]=Tap
+Name[be]=Шукаць
+Name[bg]=Търсене
+Name[bn]=অনুসন্ধান
+Name[br]=Klask
+Name[bs]=Traži
+Name[ca]=Cerca
+Name[cs]=Najít
+Name[csb]=Szëkba
+Name[cy]=Canfod
+Name[de]=Suchen
+Name[el]=Αναζήτηση
+Name[eo]=Trovi
+Name[es]=Buscar
+Name[et]=Otsing
+Name[eu]=Bilatu
+Name[fa]=یافتن
+Name[fi]=Etsi
+Name[fr]=Recherche
+Name[fy]=Sykje
+Name[ga]=Aimsigh
+Name[gl]=Procurar
+Name[he]=מצא
+Name[hi]=ढूंढें
+Name[hr]=Traži
+Name[hu]=Keresés
+Name[is]=Leita
+Name[it]=Trova
+Name[ja]=検索
+Name[ka]=ძიება
+Name[kk]=Іздеп табу
+Name[km]=រក
+Name[lt]=Rasti
+Name[lv]=Meklēt
+Name[mk]=Најди
+Name[mn]=Олох
+Name[ms]=Cari
+Name[mt]=Fittex
+Name[nb]=Finn
+Name[nds]=Söken
+Name[ne]=फेला पार्नुहोस्
+Name[nl]=Zoeken
+Name[nn]=Finn
+Name[pa]=ਖੋਜ
+Name[pl]=Wyszukiwanie
+Name[pt]=Procurar
+Name[pt_BR]=Procurar
+Name[ro]=Caută
+Name[ru]=Поиск
+Name[rw]=Gushaka
+Name[se]=Oza
+Name[sk]=Nájsť
+Name[sl]=Najdi
+Name[sr]=Нађи
+Name[sr@Latn]=Nađi
+Name[sv]=Sök
+Name[ta]=தேடு
+Name[te]=వెతుకు
+Name[tg]=Кофтан
+Name[th]=ค้นหา
+Name[tr]=Bul
+Name[tt]=Ezläw
+Name[uk]=Пошук
+Name[uz]=Qidirish
+Name[uz@cyrillic]=Қидириш
+Name[vi]=Tìm kiếm
+Name[wa]=Trover
+Name[zh_CN]=查找
+Name[zh_TW]=尋找
+Comment=Menu for starting a file or web search
+Comment[af]=Kieslys om 'n lêer of web bladsy te soek
+Comment[ar]=قائمة لتشغيل ملف أو للبحث في الشبكة
+Comment[be]=Меню для запуску пошуку файлаў ці ў Сеціве
+Comment[bg]=Меню за стартиране на файл или търсене в Интернет
+Comment[bn]=ফাইল বা ওয়েব অনুসন্ধান করার জন্য মেনু
+Comment[bs]=Meni za pokretanje datoteke ili pretrage weba
+Comment[ca]=Menú per iniciar una cerca de fitxers o web
+Comment[cs]=Nabídka pro spuštění souboru nebo hledání na webu
+Comment[csb]=Menu naczãca szëkbë w sécë abò lopków
+Comment[da]=Menu for hurtigt at starte en fil- eller netsøgning
+Comment[de]=Menü zur Datei- oder Websuche
+Comment[el]=Μενού για την εκκίνηση ενός αρχείου ή αναζήτηση στον ιστό
+Comment[eo]=Menuo por lanĉi dosier- aŭ TTT-serĉadon
+Comment[es]=Menú para comenzar la búsqueda de un archivo o página web
+Comment[et]=Menüü faili- või veebiotsingu käivitamiseks
+Comment[eu]=Fitxategiak edo interneten bilaketak abiarazteko menua
+Comment[fa]=گزینگان برای آغاز جستجوی پرونده یا وب
+Comment[fi]=Valikko tiedoston käynnistämiseen tai verkkohakuun
+Comment[fr]=Menu permettant d'effectuer une recherche de fichiers ou sur Internet
+Comment[fy]=Menu foar it sykjen nei triemmen of op't ynternet
+Comment[gl]=Menú para abrir un ficheiro ou buscar na web
+Comment[he]=תפריט לחיפוש קובץ, או ביצוע חיפוש ברשת
+Comment[hr]=Izbornik za pokretanje pretraživanja datoteka ili Interneta
+Comment[hu]=Menü webes vagy fájlkereséshez
+Comment[is]=Einföld leið til að ræsa skrár eða hefja vefleit
+Comment[it]=Menu per avviare una ricerca web o di file
+Comment[ja]=ファイルまたはウェブ検索を開始するためのメニュー
+Comment[ka]=ფაილში ან ვებში ძიების დაწყების მენიუ
+Comment[kk]=Файңлды жегу не вебте іздеу мәзірі
+Comment[km]=ម៉ឺនុយ​សម្រាប់​ចាប់ផ្តើម​ស្វែងរក​ឯកសារ ឬ ទំព័រ​បណ្តាញ
+Comment[lt]=Bylų ar žiniatinklio paieškos meniu
+Comment[mk]=Мени за пребарување на датотека или пребарување на мрежа
+Comment[nb]=Meny for å starte en fil eller et nettsøk
+Comment[nds]=Menü för dat Söken na Dateien oder binnen dat Nett
+Comment[ne]=फाइल सुरुआत गर्ने वा वेब खोज्नका लागि मेनु
+Comment[nl]=Menu voor het zoeken naar bestanden of op internet
+Comment[nn]=Meny for å starta ei fil eller eit nettsøk
+Comment[pa]=ਇੱਕ ਫਾਇਲ ਜਾਂ ਵੈੱਬ ਖੋਜ ਸ਼ੁਰੂ ਕਰਨ ਲਈ ਮੇਨੂ
+Comment[pl]=Menu rozpoczęcia przeszukiwania sieci lub plików
+Comment[pt]=Um menu para iniciar uma pesquisa de ficheiros ou na Web
+Comment[pt_BR]=Menu para iniciar um arquivo ou uma busca web
+Comment[ro]=Meniu pentru pornirea unei căutări de fișiere sau pe web
+Comment[ru]=Быстрый доступ к поиску файлов и страниц в Интернете
+Comment[se]=Fállu mas álggahat fiila- dahje fierpmádatohcama
+Comment[sk]=Menu pre vyhľadávanie súborov alebo webu
+Comment[sl]=Meni za začetek iskanja datotek in iskanja po spletu
+Comment[sr]=Мени за започињање претраге фајлова или Веба
+Comment[sr@Latn]=Meni za započinjanje pretrage fajlova ili Veba
+Comment[sv]=Meny för att snabbt starta en fil- eller webbsökning
+Comment[th]=เมนูสำหรับเริ่มการค้นหาแฟ้ม หรือเว็บ
+Comment[tr]=Bir dosya ya da web araması başlatmak için menü
+Comment[uk]=Меню для пошуку файлів або пошуку в Тенетах
+Comment[vi]=Thực đơn giúp tìm tập tin hay tìm trên mạng
+Comment[wa]=Menu po-z enonder on cweraedje d' on fitchî ou sol daegntoele
+Comment[zh_CN]=启动文件或 Web 搜索的菜单
+Comment[zh_TW]=開始檔案或網頁搜尋的選單
+Icon=kfind
+
+X-KDE-Library=kickermenu_find
diff --git a/kicker/menuext/find/findmenu.cpp b/kicker/menuext/find/findmenu.cpp
new file mode 100644
index 000000000..fc3ae12a6
--- /dev/null
+++ b/kicker/menuext/find/findmenu.cpp
@@ -0,0 +1,84 @@
+/*
+ This file is part of Kicker.
+ Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+ As a special exception, permission is given to link this program
+ with any edition of Qt, and distribute the resulting executable,
+ without including the source code for Qt in the source distribution.
+*/
+
+#include <kapplication.h>
+#include <kiconloader.h>
+#include <ksimpleconfig.h>
+#include <kstandarddirs.h>
+
+#include "findmenu.h"
+
+K_EXPORT_KICKER_MENUEXT( find, FindMenu )
+
+
+FindMenu::FindMenu( QWidget *parent, const char *name,
+ const QStringList &/*args*/)
+ : KPanelMenu( "", parent, name )
+{
+}
+
+FindMenu::~FindMenu()
+{
+ mConfigList.clear();
+}
+
+void FindMenu::initialize()
+{
+ QStringList list = KGlobal::dirs()->findAllResources( "data", "kicker/menuext/find/*.desktop", false, true );
+
+ list.sort();
+
+ int id = 0;
+
+ mConfigList.clear();
+ for ( QStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
+ KSimpleConfig config( *it, true );
+ config.setDesktopGroup();
+
+ mConfigList.append( *it );
+ QString text = config.readEntry( "Name" );
+
+ insertItem( SmallIconSet( config.readEntry( "Icon" ) ), text, id );
+ id++;
+ }
+}
+
+void FindMenu::slotExec( int pos )
+{
+ QString app = mConfigList[ pos ];
+
+ kapp->propagateSessionManager();
+
+ KSimpleConfig config(app, true);
+ config.setDesktopGroup();
+ if (kapp && config.readEntry("Type") == "Link")
+ {
+ kapp->invokeBrowser(config.readEntry("URL"));
+ }
+ else
+ {
+ KApplication::startServiceByDesktopPath( app );
+ }
+}
+
+#include "findmenu.moc"
diff --git a/kicker/menuext/find/findmenu.h b/kicker/menuext/find/findmenu.h
new file mode 100644
index 000000000..2297c4dff
--- /dev/null
+++ b/kicker/menuext/find/findmenu.h
@@ -0,0 +1,47 @@
+/*
+ This file is part of Kicker.
+ Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+ As a special exception, permission is given to link this program
+ with any edition of Qt, and distribute the resulting executable,
+ without including the source code for Qt in the source distribution.
+*/
+
+#ifndef FINDMENU_H
+#define FINDMENU_H
+
+#include <kpanelmenu.h>
+
+class QStringList;
+
+class FindMenu : public KPanelMenu
+{
+ Q_OBJECT
+
+ public:
+ FindMenu( QWidget* parent, const char* name, const QStringList &/*args*/ );
+ ~FindMenu();
+
+ protected slots:
+ void initialize();
+ void slotExec( int );
+
+ private:
+ QStringList mConfigList;
+};
+
+#endif
diff --git a/kicker/menuext/find/kfind.desktop b/kicker/menuext/find/kfind.desktop
new file mode 100644
index 000000000..fff29f223
--- /dev/null
+++ b/kicker/menuext/find/kfind.desktop
@@ -0,0 +1,89 @@
+[Desktop Entry]
+Exec=kfind %f
+Icon=kfind
+DocPath=kfind/index.html
+Path=
+Type=Application
+Terminal=false
+Name=Find Files
+Name[af]=Soek Lêers
+Name[ar]=ابحث عن ملفات
+Name[be]=Шукаць файлы
+Name[bg]=Търсене на файлове
+Name[bn]=ফাইল অনুসন্ধান
+Name[br]=Klask restroù
+Name[bs]=Pronađi datoteke
+Name[ca]=Cerca fitxers
+Name[cs]=Najít soubory
+Name[csb]=Nalezë lopczi
+Name[cy]=Canfod Ffeiliau
+Name[da]=Find filer
+Name[de]=Dateien suchen
+Name[el]=Αναζήτηση αρχείων
+Name[eo]=Trovi dosierojn
+Name[es]=KFind
+Name[et]=Failide otsimine
+Name[eu]=Bilatu fitxategiak
+Name[fa]=یافتن پرونده‌ها
+Name[fi]=Etsi tiedostoja
+Name[fr]=Recherche de fichiers
+Name[fy]=Triemmen sykje
+Name[ga]=Aimsigh Comhaid
+Name[gl]=Buscar Ficheiros
+Name[he]=חפש קבצים
+Name[hi]=फ़ाइलें ढूंढें
+Name[hr]=Traži datoteke
+Name[hu]=Fájlkereső
+Name[id]=Cari Berkas
+Name[is]=Finna skrár
+Name[it]=Trova file
+Name[ja]=ファイルを検索
+Name[ka]=ფაილთა ძიება
+Name[kk]=Файлдарды табу
+Name[km]=រក​ឯកសារ
+Name[ko]=글꼴 파일
+Name[lo]=ຄົ້ນຫາແຟ້ມ
+Name[lt]=Rasti bylas
+Name[lv]=Meklēt Failus
+Name[mk]=Пронајди датотеки
+Name[mn]=Файл хайх
+Name[ms]=Cari Fail
+Name[mt]=Sib Fajls
+Name[nb]=Finn filer
+Name[nds]=Dateien söken
+Name[ne]=फाइल फेला पार्नुहोस्
+Name[nl]=Bestanden zoeken
+Name[nn]=Finn filer
+Name[nso]=Hwetsa Difaele
+Name[oc]=Cerca fiquièrs
+Name[pa]=ਫਾਇਲ ਖੋਜ
+Name[pl]=Znajdź pliki
+Name[pt]=Procurar Ficheiros
+Name[pt_BR]=Procurar arquivos
+Name[ro]=Caută fișiere
+Name[ru]=Поиск файлов
+Name[rw]=Gushaka Amadosiye
+Name[se]=Oza fiillaid
+Name[sk]=Hľadať súbory
+Name[sl]=Najdi datoteke
+Name[sr]=Претрага фајлова
+Name[sr@Latn]=Pretraga fajlova
+Name[sv]=Hitta filer
+Name[ta]=கோப்புகளைக் கண்டுபிடி
+Name[te]=దస్త్రాలను వెతుకు
+Name[tg]=Ёфтани файлҳо
+Name[th]=ค้นหาแฟ้ม
+Name[tr]=Dosyalarda Bul
+Name[tt]=Birem Ezläw
+Name[uk]=Пошук файлів
+Name[uz]=Fayllarni qidirish
+Name[uz@cyrillic]=Файлларни қидириш
+Name[ven]=Todani faela
+Name[vi]=Tìm Tập tin
+Name[wa]=Trover des fitchîs
+Name[xh]=Fumana Iifayile
+Name[zh_CN]=查找文件
+Name[zh_TW]=尋找檔案
+Name[zu]=Thola Amafayela
+X-KDE-StartupNotify=true
+Categories=Qt;KDE;Find;
diff --git a/kicker/menuext/find/websearch.desktop b/kicker/menuext/find/websearch.desktop
new file mode 100644
index 000000000..b3d2a0254
--- /dev/null
+++ b/kicker/menuext/find/websearch.desktop
@@ -0,0 +1,80 @@
+# KDE Config File
+[Desktop Entry]
+Type=Link
+URL=http://www.google.com
+Icon=enhanced_browsing
+Terminal=false
+Name=Web Search
+Name[af]=Web Soektog
+Name[ar]=بحث في الشبكة
+Name[az]=Vebdə Axtrarış
+Name[be]=Шукаць у Сеціве
+Name[bg]=Търсене в Интернет
+Name[bn]=ওয়েব অনুসন্ধান
+Name[br]=Klask ar gwiad
+Name[bs]=Web pretraga
+Name[ca]=Recerca web
+Name[cs]=Vyhledávání na webu
+Name[csb]=Szëkba w sécë WWW
+Name[cy]=Chwiliad Gwê
+Name[da]=Internetsøgning
+Name[de]=Web-Suche
+Name[el]=Αναζήτηση στο διαδίκτυο
+Name[eo]=TTT-serĉo
+Name[es]=Búsqueda web
+Name[et]=Veebiotsing
+Name[eu]=Web arakaketa
+Name[fa]=جستجوی وب
+Name[fi]=Verkkohaku
+Name[fr]=Recherche web
+Name[fy]=Web-sykje-opdracht
+Name[ga]=Cuardach Lín
+Name[gl]=Procura na Web
+Name[he]=חיפוש ברשת
+Name[hi]=वेब खोज
+Name[hr]=Web pretraživanje
+Name[hu]=Keresés a weben
+Name[is]=Vefleit
+Name[it]=Ricerca sul web
+Name[ja]=ウェブ検索
+Name[ka]=ვებ ძიება
+Name[kk]=Вебте табу
+Name[km]=ស្វែងរក​តាម​បណ្ដាញ
+Name[lt]=Žiniatinklio paieška
+Name[lv]=Meklēt tīklā
+Name[mk]=Веб-пребарување
+Name[mn]=Вэб хайлт
+Name[ms]=Carian Web
+Name[mt]=Fittex fuq il-web
+Name[nb]=Søk på nettsteder
+Name[nds]=In't Nett söken
+Name[ne]=वेब खोजी
+Name[nl]=Web-zoekopdracht
+Name[nn]=Søk på nettstader
+Name[pa]=ਵੈੱਬ ਖੋਜ
+Name[pl]=Wyszukiwanie w sieci WWW
+Name[pt]=Pesquisa na Web
+Name[pt_BR]=Busca na Web
+Name[ro]=Căutare Web
+Name[ru]=Поиск в Интернете
+Name[rw]=Ishakisha ry'Urubugamakuru
+Name[se]=Web-ohcan
+Name[sk]=Hľadanie na WWW
+Name[sl]=Spletno iskanje
+Name[sr]=Претраживање Веба
+Name[sr@Latn]=Pretraživanje Veba
+Name[sv]=Webbsökning
+Name[ta]=வலை தேடு
+Name[te]=వెబ్ అన్వెషణ
+Name[tg]=Ҷустуҷӯи Вэб
+Name[th]=ค้นหาจากเว็บ
+Name[tr]=Web Arama
+Name[tt]=Web-Ezläw
+Name[uk]=Пошук в Тенетах
+Name[uz]=Internetda qidirish
+Name[uz@cyrillic]=Интернетда қидириш
+Name[vi]=Tìm kiếm trên mạng
+Name[wa]=Cweraedje sol daegntoele
+Name[zh_CN]=Web 搜索
+Name[zh_TW]=網頁搜尋
+Categories=Qt;KDE;Find;