From fc6447d51e58419abb7177aad426771f03eb35b2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 15 Feb 2020 10:08:58 +0900 Subject: Added GUI in TCC -> TDE Components -> Default Applications for selection of default file manager. Subsequent commits will ensure this option is used throughout TDE. This refers to bug 1904. Signed-off-by: Michele Calgaro (cherry picked from commit 98addc546eb8a399479a0a4f928fc363ff264b7f) --- kcontrol/componentchooser/CMakeLists.txt | 5 +- kcontrol/componentchooser/Makefile.am | 2 +- kcontrol/componentchooser/componentchooser.cpp | 83 ++++++++- kcontrol/componentchooser/componentchooser.desktop | 88 +++++----- kcontrol/componentchooser/componentchooser.h | 21 ++- .../componentservices/CMakeLists.txt | 2 +- .../componentchooser/componentservices/Makefile.am | 4 +- .../componentservices/kcm_filemanager.desktop | 96 ++++++++++ kcontrol/componentchooser/filemanagerconfig_ui.ui | 194 +++++++++++++++++++++ 9 files changed, 440 insertions(+), 55 deletions(-) create mode 100644 kcontrol/componentchooser/componentservices/kcm_filemanager.desktop create mode 100644 kcontrol/componentchooser/filemanagerconfig_ui.ui (limited to 'kcontrol') diff --git a/kcontrol/componentchooser/CMakeLists.txt b/kcontrol/componentchooser/CMakeLists.txt index 53a77b2a1..76d31162d 100644 --- a/kcontrol/componentchooser/CMakeLists.txt +++ b/kcontrol/componentchooser/CMakeLists.txt @@ -30,9 +30,8 @@ install( FILES componentchooser.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) tde_add_kpart( kcm_componentchooser AUTOMOC SOURCES - componentchooser_ui.ui componentconfig_ui.ui - emailclientconfig_ui.ui terminalemulatorconfig_ui.ui - browserconfig_ui.ui componentchooser.cpp kcm_componentchooser.cpp + componentchooser_ui.ui componentconfig_ui.ui emailclientconfig_ui.ui terminalemulatorconfig_ui.ui + browserconfig_ui.ui filemanagerconfig_ui.ui componentchooser.cpp kcm_componentchooser.cpp LINK tdeio-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/kcontrol/componentchooser/Makefile.am b/kcontrol/componentchooser/Makefile.am index 3280ace2b..c761d0810 100644 --- a/kcontrol/componentchooser/Makefile.am +++ b/kcontrol/componentchooser/Makefile.am @@ -5,7 +5,7 @@ METASOURCES = AUTO kde_module_LTLIBRARIES = kcm_componentchooser.la -kcm_componentchooser_la_SOURCES = componentchooser_ui.ui componentconfig_ui.ui emailclientconfig_ui.ui terminalemulatorconfig_ui.ui browserconfig_ui.ui componentchooser.cpp kcm_componentchooser.cpp +kcm_componentchooser_la_SOURCES = componentchooser_ui.ui componentconfig_ui.ui emailclientconfig_ui.ui terminalemulatorconfig_ui.ui browserconfig_ui.ui filemanagerconfig_ui.ui componentchooser.cpp kcm_componentchooser.cpp kcm_componentchooser_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined kcm_componentchooser_la_LIBADD = $(LIB_TDEIO) diff --git a/kcontrol/componentchooser/componentchooser.cpp b/kcontrol/componentchooser/componentchooser.cpp index 9de1a1a7b..bee7797e1 100644 --- a/kcontrol/componentchooser/componentchooser.cpp +++ b/kcontrol/componentchooser/componentchooser.cpp @@ -207,10 +207,80 @@ void CfgEmailClient::save(TDEConfig *) emit changed(false); } - //END Email client config +//BEGIN File Manager Configuration + +CfgFileManager::CfgFileManager(TQWidget *parent) : FileManagerConfig_UI(parent), CfgPlugin() { + connect(filemanagerLE, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(configChanged())); + connect(filemanagerCB, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(configChanged())); + connect(otherCB, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(configChanged())); +} + +CfgFileManager::~CfgFileManager() { +} + +void CfgFileManager::configChanged() +{ + emit changed(true); +} + +void CfgFileManager::defaults() +{ + load(0L); +} + + +void CfgFileManager::load(TDEConfig *) { + TDEConfig *config = new TDEConfig("kdeglobals", true); + config->setGroup("General"); + TQString filemanager = config->readPathEntry("FileManagerApplication","konqueror"); + if (filemanager == "konqueror") + { + filemanagerLE->setText(""); + filemanagerCB->setChecked(true); + } + else + { + filemanagerLE->setText(filemanager); + otherCB->setChecked(true); + } + delete config; + + emit changed(false); +} + +void CfgFileManager::save(TDEConfig *) { + TDEConfig *config = new TDEConfig("kdeglobals"); + config->setGroup("General"); + config->writePathEntry("FileManagerApplication", filemanagerCB->isChecked() ? "konqueror" : filemanagerLE->text(), + true, true); + config->sync(); + delete config; + + KIPC::sendMessageAll(KIPC::SettingsChanged); + kapp->dcopClient()->send("tdelauncher", "tdelauncher","reparseConfiguration()", TQString::null); + + emit changed(false); +} + +void CfgFileManager::selectFileManagerApp() +{ + KURL::List urlList; + KOpenWithDlg dlg(urlList, i18n("Select preferred file manager application:"), TQString::null, this); + // hide "Run in &terminal" here, we don't need it for a File Manager Application + dlg.hideRunInTerminal(); + if (dlg.exec() != TQDialog::Accepted) return; + TQString client = dlg.text(); + + if (!client.isEmpty()) + { + filemanagerLE->setText(client); + } +} + +//END File Manager Configuration //BEGIN Terminal Emulator Configuration @@ -233,14 +303,13 @@ void CfgTerminalEmulator::defaults() load(0L); } - void CfgTerminalEmulator::load(TDEConfig *) { TDEConfig *config = new TDEConfig("kdeglobals", true); config->setGroup("General"); TQString terminal = config->readPathEntry("TerminalApplication","konsole"); if (terminal == "konsole") { - terminalLE->setText("xterm"); + terminalLE->setText(""); terminalCB->setChecked(true); } else @@ -435,6 +504,14 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) { newConfigWidget = new CfgEmailClient(configContainer); } + } + else if (cfgType=="internal_filemanager") + { + if (!(configWidget && configWidget->tqt_cast("CfgFileManager"))) + { + newConfigWidget = new CfgFileManager(configContainer); + } + } else if (cfgType=="internal_terminal") { diff --git a/kcontrol/componentchooser/componentchooser.desktop b/kcontrol/componentchooser/componentchooser.desktop index 63a0adad8..c8f842bfb 100644 --- a/kcontrol/componentchooser/componentchooser.desktop +++ b/kcontrol/componentchooser/componentchooser.desktop @@ -185,60 +185,60 @@ Comment[x-test]=xxChoose the default components for various servicesxx Comment[zh_CN]=选择各种服务的默认组件 Comment[zh_TW]=選擇各種服務的預設元件 -Keywords=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; -Keywords[bg]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;програми по подразбиране;подразбиране;е-поща;съобщения;моментни съобщения;терминал; конзола;браузър;уеб-браузър; -Keywords[bn]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; -Keywords[bs]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; podrazumijevani programi; komponente; izbor komponenti; resursi; elektronska pošta; instant poruke; -Keywords[ca]=aplicacions per defecte;components;selector de components;recursos;e-mail;client de correu electrònic;editor de text;missatgeria instantània;emulador de terminal;navegador web;URL;hiperenllaços; +Keywords=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;file manager;URL;hyperlinks; +Keywords[bg]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;програми по подразбиране;подразбиране;е-поща;съобщения;моментни съобщения;терминал; конзола;браузър;уеб-браузър;Файлов браузър; +Keywords[bn]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;file manager;URL;hyperlinks; +Keywords[bs]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; podrazumijevani programi; komponente; izbor komponenti; resursi; elektronska pošta; instant poruke;upravitelj datotekama; +Keywords[ca]=aplicacions per defecte;components;selector de components;recursos;e-mail;client de correu electrònic;editor de text;missatgeria instantània;emulador de terminal;navegador web;gestor de fitxers;URL;hiperenllaços; Keywords[ca@valencia]=aplicacions per defecte;components;selector de components;recursos;e-mail;client de correu electrònic;editor de text;missatgeria instantània;emulador de terminal;navegador web;URL;hiperenllaços; -Keywords[cs]=výchozí aplikace;komponenty;výběr komponent;zdroje;e-mail;emailový klient;editor textu;komunikátor;emulátor terminálů;webový prohlížeč;URL;odkazy; -Keywords[da]=standardprogrammer;komponenter;komponentvælger;ressourcer;e-mail;email klient;tekst-editor;instant messenger;terminal-emulator;webbrowser;URL;hyperlinks; -Keywords[de]=Standardprogramme;Standard-Komponenten;Komponenten;Ressourcen;E-Mail;E-Mail-Programm;Terminal-Emulation;Programme;Anwendungen;Internet;Navigator;URL; -Keywords[el]=προκαθορισμένες εφαρμογές;συστατικά;επιλογέας συστατικών;πόροι;αλληλογραφία;εφαρμογή αλληλογραφίας;επεξεργαστής κειμένου;εφαρμογή στιγμιαίων μηνυμάτων;εξομοιωτής τερματικού;περιηγητής ιστού;URL;υπερσύνδεσμοι; -Keywords[eo]=aprioraj aplikaĵoj;komponantoj;elektilo de komponantoj;risurcoj;retpoŝto;kliento de retpoŝto;tekstredaktilo;tujmesaĝilo;terminalo;retumilo;URL;hiperligilo; -Keywords[es]=aplicaciones predeterminadas;componentes;selector de componente;recursos;correo electrónico;cliente de correo electrónico;editor de texto;cliente de mensajería instantánea;emulador de terminal;navegador web;URL;hiperenlaces; -Keywords[et]=vaikimisi rakendused;komponendid;komponentide valija;ressursid;e-post;e-posti klient;tekstiredaktor;kiirsuhtlus;terminaliemulaator;veebibrauser;URL;hüperlingid; -Keywords[eu]=lehenetsitako aplikazioak;osagaiak;osagai hautatzaile;baliabideak;e-posta;eposta bezero;testu editore;berehalako mezulari;terminal emulatzaile;web arakatzaile;URL; hiperestekak; +Keywords[cs]=výchozí aplikace;komponenty;výběr komponent;zdroje;e-mail;emailový klient;editor textu;komunikátor;emulátor terminálů;webový prohlížeč;správce souborů;URL;odkazy; +Keywords[da]=standardprogrammer;komponenter;komponentvælger;ressourcer;e-mail;email klient;tekst-editor;instant messenger;terminal-emulator;webbrowser;filhåndtering;URL;hyperlinks; +Keywords[de]=Standardprogramme;Standard-Komponenten;Komponenten;Ressourcen;E-Mail;E-Mail-Programm;Terminal-Emulation;Programme;Anwendungen;Internet;Navigator;dateiverwaltung;URL; +Keywords[el]=προκαθορισμένες εφαρμογές;συστατικά;επιλογέας συστατικών;πόροι;αλληλογραφία;εφαρμογή αλληλογραφίας;επεξεργαστής κειμένου;εφαρμογή στιγμιαίων μηνυμάτων;εξομοιωτής τερματικού;περιηγητής ιστού;Διαχειριστής αρχείων;URL;υπερσύνδεσμοι; +Keywords[eo]=aprioraj aplikaĵoj;komponantoj;elektilo de komponantoj;risurcoj;retpoŝto;kliento de retpoŝto;tekstredaktilo;tujmesaĝilo;terminalo;retumilo;dosieradministrilo;URL;hiperligilo; +Keywords[es]=aplicaciones predeterminadas;componentes;selector de componente;recursos;correo electrónico;cliente de correo electrónico;editor de texto;cliente de mensajería instantánea;emulador de terminal;navegador web;gestor de archivos;URL;hiperenlaces; +Keywords[et]=vaikimisi rakendused;komponendid;komponentide valija;ressursid;e-post;e-posti klient;tekstiredaktor;kiirsuhtlus;terminaliemulaator;veebibrauser;failihaldur;URL;hüperlingid; +Keywords[eu]=lehenetsitako aplikazioak;osagaiak;osagai hautatzaile;baliabideak;e-posta;eposta bezero;testu editore;berehalako mezulari;terminal emulatzaile;web arakatzaile;fitxategi kudeatzailea;URL;hiperestekak; Keywords[fa]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; Keywords[fi]=oletussovellukset;komponentit;komponenttivalitsin;resurssit;e-mail;email;sähköposti;sähköpostiohjelma;tekstimuokkain;tekstieditori;pikaviestin;pikaviestiohjelma;pääte-emulaattori;WWW-selain;web-selain;verkkoselain;osoite;linkit; -Keywords[fr]=applications par défaut; composants; sélecteur de composants; ressources; courriel; client de courrier électronique; éditeur de texte; messagerie instantanée; émulateur de terminal; navigateur Web; URL; liens hypertexte; -Keywords[ga]=feidhmchlár réamhshocraithe;comhpháirteanna;roghnóir comhpháirte;acmhainní;ríomhphost;cliant ríomhphoist;eagarthóir téacs;cur teachtaireachtaí meandaracha;aithriseoir teirminéil;brabhsálaí;URL;hipearnaisc; -Keywords[gl]=predeterminado; programas; aplicación; aplicativo; compoñente; recursos; correo; email; cliente; axente; editor de texto; mensaxería; emulador de terminal; navegador; URL; hiperligazón; +Keywords[fr]=applications par défaut; composants; sélecteur de composants; ressources; courriel; client de courrier électronique; éditeur de texte; messagerie instantanée; émulateur de terminal; navigateur Web; gestionnaire de fichiers; URL; liens hypertexte; +Keywords[ga]=feidhmchlár réamhshocraithe;comhpháirteanna;roghnóir comhpháirte;acmhainní;ríomhphost;cliant ríomhphoist;eagarthóir téacs;cur teachtaireachtaí meandaracha;aithriseoir teirminéil;brabhsálaí;bainisteoir comhad;URL;hipearnaisc; +Keywords[gl]=predeterminado; programas; aplicación; aplicativo; compoñente; recursos; correo; email; cliente; axente; editor de texto; mensaxería; emulador de terminal; navegador;gestor de ficheiros; URL; hiperligazón; Keywords[he]=יישומים ברירת מחדל;רכיבים; בוחר;משאבים;אימייל;דוא"ל;דואל;דואר;לקוח;עורך טקסט;מסרים מיידיים;מדמה מסוף;מסוף;דפדפן;כתובת;default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; Keywords[hi]=डिफ़ॉल्ट अनुप्रयोगों; घटक; घटक चयनकर्ता; संसाधनों; ई - मेल; ई - मेलग्राहक; पाठ संपादक; इंसटैंट मैसेंजर; टर्मिनल एमुलेटर; वेब ब्राउज़र; यूआरएल;हाइपरलिंक्स; -Keywords[hu]=alapértelmezett alkalmazások;komponensek;komponensválasztó;erőforrások;e-mail;e-mail kliens;szövegszerkesztő;azonnali üzenetküldő;terminálemulátor;webböngésző;URL;hiperhivatkozás; +Keywords[hu]=alapértelmezett alkalmazások;komponensek;komponensválasztó;erőforrások;e-mail;e-mail kliens;szövegszerkesztő;azonnali üzenetküldő;terminálemulátor;webböngésző;fájlkezelő;URL;hiperhivatkozás; Keywords[ia]=applicationes predefinite;componentes;selector de componente;ressources;e-posta;cliente de e-posta; editor de texto;messagero instantanee;emulator de terminal;navigator web;hyperligamines de URL; -Keywords[is]=sjálfgefin forrit;einingar;einingaval;aðföng;tölvupóstur;tölvupóstforrit;textaritill;skyndiskilaboð;skjáhermir;vafri;URL;slóð;veftengill; -Keywords[it]=applicazioni predefinite;componenti;selettore componenti;risorse;email;posta elettronica;client di posta elettronica;editor di testo;messaggistica istantanea;emulatore di terminale;browser web;URL;collegamento ipertestuale; -Keywords[ja]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; -Keywords[kk]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; +Keywords[is]=sjálfgefin forrit;einingar;einingaval;aðföng;tölvupóstur;tölvupóstforrit;textaritill;skyndiskilaboð;skjáhermir;vafri;skráastjóri;URL;slóð;veftengill; +Keywords[it]=applicazioni predefinite;componenti;selettore componenti;risorse;email;posta elettronica;client di posta elettronica;editor di testo;messaggistica istantanea;emulatore di terminale;browser web;file manager;URL;collegamento ipertestuale; +Keywords[ja]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;file manager;URL;hyperlinks; +Keywords[kk]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;file manager;URL;hyperlinks; Keywords[km]=កម្មវិធី​លំនាំដើម សមសធាតុ កម្មវិធី​ជ្រើស​សមាសធាតុ ធនធាន អ៊ីមែល កម្មវិធី​អ៊ីមែល កម្មវិធី​កែសម្រួល​អត្ថបទ កម្មវិធី​ផ្ញើសារ​បន្ទាន់ កម្មវិធី​ត្រាប់​តាម​ស្ថានីយ៍ កម្មវិធី​រុករក​បណ្ដាញ URL តំណ​ខ្ពស់; -Keywords[ko]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;기본 프로그램;구성 요소;컴포넌트;자원;이메일;이메일;이메일 클라이언트;이메일 클라이언트;텍스트 편집기;편집기;메신저;터미널;터미널 에뮬레이터;웹 브라우저;하이퍼링크; -Keywords[lv]=noklusētās programmas;komponentes;komponenšu atlasītājs;resursi;e-pasts;e-pasta klients;teksta redaktors;tūlītējā ziņojumapmaiņa;termināļa emulators;tīmekļa pārlūks;URL;saites; +Keywords[ko]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;file manager;URL;hyperlinks;기본 프로그램;구성 요소;컴포넌트;자원;이메일;이메일;이메일 클라이언트;이메일 클라이언트;텍스트 편집기;편집기;메신저;터미널;터미널 에뮬레이터;웹 브라우저;하이퍼링크; +Keywords[lv]=noklusētās programmas;komponentes;komponenšu atlasītājs;resursi;e-pasts;e-pasta klients;teksta redaktors;tūlītējā ziņojumapmaiņa;termināļa emulators;tīmekļa pārlūks;failu menedžeris;URL;saites; Keywords[mr]=मूलभूत अनुप्रयोग; भाग; भाग निवडणे; संसाधन; इमेल; इमेल ग्राहक; पाठ्य संपादक; त्वरित संदेशवाहक; टर्मिनल एम्युलेटर; वेब ब्राऊजर; URL; हायपरलिंक्स; -Keywords[nb]=standardprogrammer;komponenter;komponentvelger;ressurser;e-post;e-postklient;tekstprogram;lynmelding;terminalemulator;nettleser;URL;hyperlenker; -Keywords[nds]=Standardprogrammen;Komponenten;Komponentköör;Ressourcen;Nettpost;Nettpostprogramm;Texteditor;Kortnarichtenprogramm;Konsool;Terminal;Nettkieker;URL;Hyperlinks; -Keywords[nl]=standaard toepassingen;componenten;componentenkiezer;hulpbronnen;e-mail-client;tekstbewerker;instant-messenger;terminal-emulator;webbrowser;url-adres;hyperlinks; -Keywords[nn]=standardprogram;komponentar;komponentveljar;ressursar;resursar;e-post;e-postklient;e-postprogram;lynmeldingar;terminalemulator;nettlesar;weblesar;URL;adresse;lenkjer;hyperlenkjer; +Keywords[nb]=standardprogrammer;komponenter;komponentvelger;ressurser;e-post;e-postklient;tekstprogram;lynmelding;terminalemulator;nettleser;filbehandler;URL;hyperlenker; +Keywords[nds]=Standardprogrammen;Komponenten;Komponentköör;Ressourcen;Nettpost;Nettpostprogramm;Texteditor;Kortnarichtenprogramm;Konsool;Terminal;Nettkieker;dateipleger;URL;Hyperlinks; +Keywords[nl]=standaard toepassingen;componenten;componentenkiezer;hulpbronnen;e-mail-client;tekstbewerker;instant-messenger;terminal-emulator;webbrowser;bestandsbeheerder;url-adres;hyperlinks; +Keywords[nn]=standardprogram;komponentar;komponentveljar;ressursar;resursar;e-post;e-postklient;e-postprogram;lynmeldingar;terminalemulator;nettlesar;weblesar;filhandsamar;URL;adresse;lenkjer;hyperlenkjer; Keywords[pa]=ਡਿਫਾਲਟ ਐਪੀਲਕੇਸ਼ਨ;ਐਪਲੀਕੇਸ਼ਨ;ਭਾਗ;ਭਾਗ ਚੋਣਕਾਰ;ਸਰੋਤ;ਈਮੇਲ;ਈ-ਮੇਲ;ਈਮੇਲ ਕਲਾਇਟ;ਟੈਕਸਟ ਐਡੀਟਰ; ਤੁਰੰਤ ਸੁਨੇਹੇ;ਮੈਸੈਂਜਰ;ਟਰਮੀਨਲ ਈਮੂਲੇਟਰ;ਵੈੱਬ ਬਰਾਊਜ਼ਰ;URL;ਹਾਈਪਰਲਿੰਕ; -Keywords[pl]=domyślne programy;domyślne aplikacje;składniki;komponenty;wybór składników;zasoby;e-mail;poczta;klient pocztowy;edytor teksu;komunikator internetowy;emulator terminala;przeglądarka internetowa;URL;hiperodnośniki; -Keywords[pt]=aplicações predefinidas;componentes;selector de componentes;recursos;e-mail;cliente de e-mail;editor de texto;mensageiro instantâneo;emulador de terminal;navegador Web;URL;hiperligações; -Keywords[pt_BR]=aplicativos padrão;componentes;seletor de componentes;recursos;e-mail;cliente de e-mail;editor de texto;mensageiro instantâneo;emulador de terminal;navegador web;URL;hiperligações; -Keywords[ro]=aplicații implicite;componente;alege componente;resurse;e-mail;email;client;editor text;mesager instant;emulator terminal; browser web;URL;link-uri; -Keywords[ru]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;приложения по умолчанию;компоненты;ресурсы;электронная почта;контакт электронной почты;текстовый редактор;обмен мгновенными сообщениями;эмулятор терминала;веб-браузер;гиперссылка; -Keywords[sk]=predvolené aplikácie;komponenty;výber komponentu;zdroje;e-mail;emailový klient;textový editor;instant messenger;emulátor terminálu;webový prehliadač;URL;hyperlinky; -Keywords[sl]=privzeti programi;komponente;komponenta;izbirnik komponent;viri;e-pošta;epošta;urejevalnik besedila;hipno sporočanje;hipni sporočilnik;posnemovalnik terminala;spletni brskalnik;URL;hiperpovezave;hiper-povezave; -Keywords[sr]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;подразумевани програми;компонента;бирач компоненти;ресурс;е‑пошта;клијент е‑поште;уређивач текста;брзи гласник;емулатор терминала;веб прегледач;УРЛ;хипервеза; +Keywords[pl]=domyślne programy;domyślne aplikacje;składniki;komponenty;wybór składników;zasoby;e-mail;poczta;klient pocztowy;edytor teksu;komunikator internetowy;emulator terminala;przeglądarka internetowa;menedżer plików;URL;hiperodnośniki; +Keywords[pt]=aplicações predefinidas;componentes;selector de componentes;recursos;e-mail;cliente de e-mail;editor de texto;mensageiro instantâneo;emulador de terminal;navegador Web;gestor de ficheiros;URL;hiperligações; +Keywords[pt_BR]=aplicativos padrão;componentes;seletor de componentes;recursos;e-mail;cliente de e-mail;editor de texto;mensageiro instantâneo;emulador de terminal;navegador web;gerenciador de arquivos;URL;hiperligações; +Keywords[ro]=aplicații implicite;componente;alege componente;resurse;e-mail;email;client;editor text;mesager instant;emulator terminal; browser web;manager de fișiere;URL;link-uri; +Keywords[ru]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;приложения по умолчанию;компоненты;ресурсы;электронная почта;контакт электронной почты;текстовый редактор;обмен мгновенными сообщениями;эмулятор терминала;Файловый менеджер;веб-браузер;гиперссылка; +Keywords[sk]=predvolené aplikácie;komponenty;výber komponentu;zdroje;e-mail;emailový klient;textový editor;instant messenger;emulátor terminálu;webový prehliadač;správca súborov;URL;hyperlinky; +Keywords[sl]=privzeti programi;komponente;komponenta;izbirnik komponent;viri;e-pošta;epošta;urejevalnik besedila;hipno sporočanje;hipni sporočilnik;posnemovalnik terminala;spletni brskalnik;upravitelj datotek;URL;hiperpovezave;hiper-povezave; +Keywords[sr]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;Менаџер фајловаURL;hyperlinks;подразумевани програми;компонента;бирач компоненти;ресурс;е‑пошта;клијент е‑поште;уређивач текста;брзи гласник;емулатор терминала;веб прегледач;УРЛ;хипервеза; Keywords[sr@ijekavian]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;подразумевани програми;компонента;бирач компоненти;ресурс;е‑пошта;клијент е‑поште;уређивач текста;брзи гласник;емулатор терминала;веб прегледач;УРЛ;хипервеза; Keywords[sr@ijekavianlatin]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;podrazumevani programi;komponenta;birač komponenti;resurs;e‑pošta;klijent e‑pošte;uređivač teksta;brzi glasnik;emulator terminala;veb pregledač;URL;hiperveza; -Keywords[sr@latin]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;podrazumevani programi;komponenta;birač komponenti;resurs;e‑pošta;klijent e‑pošte;uređivač teksta;brzi glasnik;emulator terminala;veb pregledač;URL;hiperveza; -Keywords[sv]=standardprogram;komponenter;komponentväljare;resurser;e-post;e-postprogram;texteditor;direktmeddelanden;terminalemulator;webbläsare;webbadress;hyperlänkar; -Keywords[tg]=барномаҳои стандартӣ;қисмҳо;интихобкунандаи қисмҳо;манбаъҳо;почтаи электронӣ;мизоҷи почта;таҳриргари матнӣ;паёмнависии фаврӣ;эмулятори терминал;веб-браузер;URL;пайвандҳои интернетӣ; -Keywords[tr]=öntanımlı uygulamalar;bileşenler;bileşen seçici;kaynaklar;e-posta;e-posta istemcisi;metin düzenleyici;hızlı mesajlaşma uygulaması;uçbirim;web tarayıcı;URL; +Keywords[sr@latin]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;file manager;URL;hyperlinks;podrazumevani programi;komponenta;birač komponenti;resurs;e‑pošta;klijent e‑pošte;uređivač teksta;brzi glasnik;emulator terminala;veb pregledač;Menadžer fajlova;URL;hiperveza; +Keywords[sv]=standardprogram;komponenter;komponentväljare;resurser;e-post;e-postprogram;texteditor;direktmeddelanden;terminalemulator;webbläsare;filhanterare;webbadress;hyperlänkar; +Keywords[tg]=барномаҳои стандартӣ;қисмҳо;интихобкунандаи қисмҳо;манбаъҳо;почтаи электронӣ;мизоҷи почта;таҳриргари матнӣ;паёмнависии фаврӣ;эмулятори терминал;веб-браузер;Мудири файл;URL;пайвандҳои интернетӣ; +Keywords[tr]=öntanımlı uygulamalar;bileşenler;bileşen seçici;kaynaklar;e-posta;e-posta istemcisi;metin düzenleyici;hızlı mesajlaşma uygulaması;uçbirim;web tarayıcı;dosya yöneticisi;URL; Keywords[ug]=كۆڭۈلدىكى پروگراممىلار، بۆلەكلەر، بۆلەك تاللىغۇچ، مەنبەلەر، ئېلخەت، ئېلخەت خېرىدارى، تېكىست تەھرىرلىگۈچ، مۇڭداشقۇ، تېرمىنال تەقلىدلىگۈچ، توركۆرگۈ، URL، hyperlinks; -Keywords[uk]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;програма;додаток;типовий;типова;вибір;компонент;ресурс;пошта;поштовий;повідомлення;редактор;текст;текстовий редактор;спілкування;обмін повідомленнями;емулятор;термінал;переглядач;перегляд;інтернет;сторінка;сторінки;посилання;адреси;адреса; -Keywords[vi]=thành phần;bộ chọn thành phần;tài nguyên;thư điện tử;trình thư;mô phỏng thiết bị cuối;ứng dụng;default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; -Keywords[wa]=programes prémetou;componints;tchoezixheu d' componint;tchoezixheu di componint;rissource;emile;e-mail;cliyint;aspougneu di tecse;aspougneu d' tecse;messaedjî sol mounmint;messaedjreye sol moumint;MSM;terminå;emulateu d' terminå;emulateu di terminå;betchteu waibe;URL;adresse;hårdêyes;hårdêye; +Keywords[uk]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;програма;додаток;типовий;типова;вибір;компонент;ресурс;пошта;поштовий;повідомлення;редактор;текст;текстовий редактор;спілкування;обмін повідомленнями;емулятор;термінал;переглядач;перегляд;інтернет;сторінка;сторінки;посилання;адреси;адреса;Менеджер файлів +Keywords[vi]=thành phần;bộ chọn thành phần;tài nguyên;thư điện tử;trình thư;mô phỏng thiết bị cuối;ứng dụng;default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;Trình quản lí tập tin;URL;hyperlinks; +Keywords[wa]=programes prémetou;componints;tchoezixheu d' componint;tchoezixheu di componint;rissource;emile;e-mail;cliyint;aspougneu di tecse;aspougneu d' tecse;messaedjî sol mounmint;messaedjreye sol moumint;MSM;terminå;emulateu d' terminå;emulateu di terminå;betchteu waibe;manaedjeu di fitchîs;URL;adresse;hårdêyes;hårdêye; Keywords[x-test]=xxdefault applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinksxx; -Keywords[zh_CN]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;默认程序;组件;组件选择器;资源;电子邮件;邮件客户端;文本编辑器;即时通信;终端模拟器;网页浏览器;地址; -Keywords[zh_TW]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks; +Keywords[zh_CN]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;URL;hyperlinks;默认程序;组件;组件选择器;资源;电子邮件;邮件客户端;文本编辑器;即时通信;终端模拟器;网页浏览器;地址;文件管理器; +Keywords[zh_TW]=default applications;components;component chooser;resources;e-mail;email client;text editor;instant messenger;terminal emulator;web browser;file manager;URL;hyperlinks; diff --git a/kcontrol/componentchooser/componentchooser.h b/kcontrol/componentchooser/componentchooser.h index 0407989cf..0407a9295 100644 --- a/kcontrol/componentchooser/componentchooser.h +++ b/kcontrol/componentchooser/componentchooser.h @@ -16,11 +16,12 @@ #ifndef _COMPONENTCHOOSER_H_ #define _COMPONENTCHOOSER_H_ +#include "browserconfig_ui.h" #include "componentchooser_ui.h" #include "componentconfig_ui.h" #include "emailclientconfig_ui.h" +#include "filemanagerconfig_ui.h" #include "terminalemulatorconfig_ui.h" -#include "browserconfig_ui.h" #include #include @@ -84,6 +85,24 @@ signals: void changed(bool); }; +class CfgFileManager: public FileManagerConfig_UI,public CfgPlugin +{ +Q_OBJECT +public: + CfgFileManager(TQWidget *parent); + virtual ~CfgFileManager(); + virtual void load(TDEConfig *cfg); + virtual void save(TDEConfig *cfg); + virtual void defaults(); + +protected slots: + void selectFileManagerApp(); + void configChanged(); + +signals: + void changed(bool); +}; + class CfgTerminalEmulator: public TerminalEmulatorConfig_UI,public CfgPlugin { Q_OBJECT diff --git a/kcontrol/componentchooser/componentservices/CMakeLists.txt b/kcontrol/componentchooser/componentservices/CMakeLists.txt index f8da91cf5..5bc5a3c65 100644 --- a/kcontrol/componentchooser/componentservices/CMakeLists.txt +++ b/kcontrol/componentchooser/componentservices/CMakeLists.txt @@ -10,5 +10,5 @@ ################################################# install( FILES - kcm_kemail.desktop kcm_terminal.desktop kcm_browser.desktop + kcm_kemail.desktop kcm_terminal.desktop kcm_browser.desktop kcm_filemanager.desktop DESTINATION ${DATA_INSTALL_DIR}/kcm_componentchooser ) diff --git a/kcontrol/componentchooser/componentservices/Makefile.am b/kcontrol/componentchooser/componentservices/Makefile.am index 3ba55cc0c..cb2adc404 100644 --- a/kcontrol/componentchooser/componentservices/Makefile.am +++ b/kcontrol/componentchooser/componentservices/Makefile.am @@ -1,3 +1,3 @@ -kcm_tdetexteditor_DATA = kcm_kemail.desktop kcm_terminal.desktop kcm_browser.desktop -kcm_tdetexteditordir = $(kde_datadir)/kcm_componentchooser +kcm_componentchooser_DATA = kcm_kemail.desktop kcm_terminal.desktop kcm_browser.desktop kcm_filemanager.desktop +kcm_componentchooserdir = $(kde_datadir)/kcm_componentchooser diff --git a/kcontrol/componentchooser/componentservices/kcm_filemanager.desktop b/kcontrol/componentchooser/componentservices/kcm_filemanager.desktop new file mode 100644 index 000000000..344e9d01d --- /dev/null +++ b/kcontrol/componentchooser/componentservices/kcm_filemanager.desktop @@ -0,0 +1,96 @@ +Name=File Manager +Name[af]=Lêer Bestuurder +Name[ar]=مدبّر الملفات +Name[az]=Fayl İdarəcisi +Name[be]=Кіраўнік файлаў +Name[bg]=Файлов браузър +Name[bn]=ফাইল ম্যানেজার +Name[br]=Merour restroù +Name[bs]=Upravitelj datotekama +Name[ca]=Gestor de fitxers +Name[cs]=Správce souborů +Name[csb]=Menedżer lopków +Name[cy]=Rheolydd Ffeiliau +Name[da]=Filhåndtering +Name[de]=Dateiverwaltung +Name[el]=Διαχειριστής αρχείων +Name[eo]=Dosieradministrilo +Name[es]=Gestor de archivos +Name[et]=Failihaldur +Name[eu]=Fitxategi kudeatzailea +Name[fa]=مدیر پرونده +Name[fi]=Tiedostonhallinta +Name[fo]=Fíluhandfarari +Name[fr]=Gestionnaire de fichiers +Name[fy]=Triembehearder +Name[ga]=Bainisteoir Comhad +Name[gl]=Xestor de Ficheiros +Name[he]=מנהל הקבצים +Name[hi]=फ़ाइल प्रबंधक +Name[hr]=Upravitelj datotekama +Name[hsb]=Datajowy manager +Name[hu]=Fájlkezelő +Name[id]=Manajer File +Name[is]=Skráastjóri +Name[it]=File manager +Name[ja]=ファイルマネージャ +Name[ka]=ფაილთა მენჯერი +Name[kk]=Файл менеджері +Name[km]=កម្មវិធី​គ្រប់គ្រង​ឯកសារ +Name[ko]=파일 관리자 +Name[lo]=ເຄື່ອງມືການຈັດການແຟ້ມ +Name[lt]=Bylų tvarkyklė +Name[lv]=Failu Menedžeris +Name[mk]=Менаџер на датотеки +Name[mn]=Файл удирдагч +Name[ms]=Pengurus Fail +Name[mt]=Manager tal-Fajls +Name[nb]=Filbehandler +Name[nds]=Dateipleger +Name[ne]=फाइल प्रबन्धक +Name[nl]=Bestandsbeheerder +Name[nn]=Filhandsamar +Name[nso]=Molaodi wa Faele +Name[oc]=Gestionari de fiquièrs +Name[pa]=ਫਾਇਲ ਮੈਨੇਜਰ +Name[pl]=Menedżer plików +Name[pt]=Gestor de Ficheiros +Name[pt_BR]=Gerenciador de Arquivos +Name[ro]=Manager de fișiere +Name[ru]=Файловый менеджер +Name[rw]= Mucungamadosiye +Name[se]=Fiilagieđahalli +Name[sk]=Správca súborov +Name[sl]=Upravitelj datotek +Name[sr]=Менаџер фајлова +Name[sr@Latn]=Menadžer fajlova +Name[ss]=Siphatsi selifayela +Name[sv]=Filhanterare +Name[ta]=கோப்பு மேலாளர் +Name[te]=దస్త్రాల అభికర్త +Name[tg]=Мудири файл +Name[th]=เครื่องมือจัดการแฟ้ม +Name[tr]=Dosya Yöneticisi +Name[tt]=Birem İdäräçe +Name[uk]=Менеджер файлів +Name[uz]=Fayl boshqaruvchisi +Name[uz@cyrillic]=Файл бошқарувчиси +Name[ven]=Mulanguli wa faela +Name[vi]=Trình quản lí tập tin +Name[wa]=Manaedjeu di fitchîs +Name[xh]=Umphathi Wefayile +Name[zh_CN]=文件管理器 +Name[zh_TW]=檔案管理程式 +Name[zu]=imenenja yamafayela + +Comment=This service allows you to configure your default file manager. All TDE applications which invoke a file manager application should honor this setting. +Comment[cs]=Tato služba umožňuje nastavit si výchozího správce souborů. Všechny TDE aplikace, které spouští správce souborů, by měly používat toto nastavení. +Comment[de]=Hier können Sie die voreingestellte Dateiverwaltung einrichten. Alle TDE-Programme, die Zugriff auf ein solches Programm benötigen, sollten diese Einstellungen verwenden. +Comment[es]=Este servicio le permite configurar su gestor de archivos predefinido. Todas las aplicaciones TDE que invoquen un gestor de archivos deberían reconocer esta opción. +Comment[fr]=Ce service vous permet de configurer votre gestionnaire de fichiers par défaut. Toutes les applications TDE qui appellent une application de gestionnaire de fichiers doivent accepter ce réglage. +Comment[it]= Questo servizio ti permette di configurare il tuo file manager preferito. Tutte le applicazioni di TDE che avranno bisogno di aprire un file manager dovrebbero rispettare questa impostazione. +Comment[pt]=Este serviço permite-lhe configurar o seu gestor de Ficheiros por omissão. Todas as aplicações do TDE que invoquem um gestor de Ficheiros devem respeitar esta configuração. +Comment[pt_BR]=Este serviço permite a você configurar o seu gerenciador de arquivos padrão. Todos os aplicativos do TDE que precisarem acessar um gerenciador de arquivos devem seguir esta configuração. +Comment[ru]=Эта служба позволяет настроить Файловый менеджер по умолчанию. Все приложения TDE, которые вызывают Файловый менеджер, должны следовать этому параметру. + +configurationType=internal_filemanager diff --git a/kcontrol/componentchooser/filemanagerconfig_ui.ui b/kcontrol/componentchooser/filemanagerconfig_ui.ui new file mode 100644 index 000000000..a5845f283 --- /dev/null +++ b/kcontrol/componentchooser/filemanagerconfig_ui.ui @@ -0,0 +1,194 @@ + +FileManagerConfig_UI + + + FileManagerConfig_UI + + + + 0 + 0 + 263 + 188 + + + + + 3 + 3 + 0 + 0 + + + + + unnamed + + + 0 + + + + ButtonGroup1 + + + NoFrame + + + 0 + + + + + + + unnamed + + + 0 + + + + Spacer4 + + + Vertical + + + Expanding + + + + 0 + 87 + + + + + + otherCB + + + Use a different &file manager program: + + + + + Spacer15 + + + Horizontal + + + Fixed + + + + 31 + 20 + + + + + + filemanagerCB + + + &Use Konqueror as file manager application + + + + + Layout4 + + + + unnamed + + + + filemanagerLE + + + false + + + + 1 + 0 + 1 + 0 + + + + + 0 + 0 + + + + Press this button to select your favorite file manager client. Please note that the file you select has to have the executable attribute set in order to be accepted.<br> + + + + + btnSelectFileManager + + + false + + + + 1 + 1 + 0 + 0 + + + + ... + + + Click here to browse for a file manager program. + + + + + + + + + + + otherCB + toggled(bool) + filemanagerLE + setEnabled(bool) + + + otherCB + toggled(bool) + btnSelectFileManager + setEnabled(bool) + + + btnSelectFileManager + clicked() + FileManagerConfig_UI + selectFileManagerApp() + + + + filemanagerCB + otherCB + filemanagerLE + + + kdialog.h + + + selectFileManagerApp() + + + + -- cgit v1.2.1