added settings module for 'Navigation', that can be used by Konqueror

svn path=/trunk/KDE/kdebase/apps/; revision=913405
This commit is contained in:
Peter Penz 2009-01-19 10:39:11 +00:00
parent d522c6701d
commit 0772ebc3aa
8 changed files with 165 additions and 246 deletions

View file

@ -175,7 +175,7 @@ install(TARGETS dolphin ${INSTALL_TARGETS_DEFAULT_ARGS})
##########################################
set(kcm_dolphinviewmodes_PART_SRCS
kcmdolphinviewmodes.cpp
kcm/kcmdolphinviewmodes.cpp
settings/columnviewsettingspage.cpp
settings/detailsviewsettingspage.cpp
settings/dolphinfontrequester.cpp
@ -183,8 +183,12 @@ set(kcm_dolphinviewmodes_PART_SRCS
settings/iconsviewsettingspage.cpp
settings/viewsettingspagebase.cpp
pixmapviewer.cpp
zoomlevelinfo.cpp
)
zoomlevelinfo.cpp)
set(kcm_dolphinnavigation_PART_SRCS
kcm/kcmdolphinnavigation.cpp
settings/navigationsettingspage.cpp
settings/settingspagebase.cpp)
kde4_add_kcfg_files(kcm_dolphinviewmodes_PART_SRCS
settings/dolphin_columnmodesettings.kcfgc
@ -193,18 +197,26 @@ kde4_add_kcfg_files(kcm_dolphinviewmodes_PART_SRCS
settings/dolphin_iconsmodesettings.kcfgc
settings/dolphin_generalsettings.kcfgc)
kde4_add_kcfg_files(kcm_dolphinnavigation_PART_SRCS
settings/dolphin_generalsettings.kcfgc)
kde4_add_plugin(kcm_dolphinviewmodes ${kcm_dolphinviewmodes_PART_SRCS})
kde4_add_plugin(kcm_dolphinnavigation ${kcm_dolphinnavigation_PART_SRCS})
target_link_libraries(kcm_dolphinviewmodes ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} dolphinprivate)
target_link_libraries(kcm_dolphinnavigation ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} dolphinprivate)
if (Nepomuk_FOUND)
target_link_libraries(kcm_dolphinviewmodes ${NEPOMUK_LIBRARIES})
target_link_libraries(kcm_dolphinnavigation ${NEPOMUK_LIBRARIES})
endif (Nepomuk_FOUND)
install(TARGETS kcm_dolphinviewmodes DESTINATION ${PLUGIN_INSTALL_DIR} )
install(TARGETS kcm_dolphinnavigation DESTINATION ${PLUGIN_INSTALL_DIR} )
########### install files ###############
install( FILES dolphin.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES settings/dolphin_directoryviewpropertysettings.kcfg settings/dolphin_generalsettings.kcfg settings/dolphin_columnmodesettings.kcfg settings/dolphin_iconsmodesettings.kcfg settings/dolphin_detailsmodesettings.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install( FILES dolphinui.rc DESTINATION ${DATA_INSTALL_DIR}/dolphin )
install( FILES kcmdolphinviewmodes.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kcm/kcmdolphinviewmodes.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kcm/kcmdolphinnavigation.desktop DESTINATION ${SERVICES_INSTALL_DIR} )

View file

@ -0,0 +1,67 @@
/***************************************************************************
* Copyright (C) 2009 by Peter Penz <peter.penz@gmx.at> *
* *
* 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 *
***************************************************************************/
#include "kcmdolphinnavigation.h"
#include "settings/navigationsettingspage.h"
#include <ktabwidget.h>
#include <kdialog.h>
#include <klocale.h>
#include <kpluginfactory.h>
#include <kpluginloader.h>
#include <QVBoxLayout>
K_PLUGIN_FACTORY(KCMDolphinNavigationConfigFactory, registerPlugin<DolphinNavigationConfigModule>("dolphinnavigation");)
K_EXPORT_PLUGIN(KCMDolphinNavigationConfigFactory("kcmdolphinnavigation"))
DolphinNavigationConfigModule::DolphinNavigationConfigModule(QWidget* parent, const QVariantList& args) :
KCModule(KCMDolphinNavigationConfigFactory::componentData(), parent),
m_navigation(0)
{
Q_UNUSED(args);
KGlobal::locale()->insertCatalog("dolphinnavigation");
setButtons(KCModule::Default | KCModule::Help);
QVBoxLayout* topLayout = new QVBoxLayout(this);
topLayout->setMargin(0);
topLayout->setSpacing(KDialog::spacingHint());
m_navigation = new NavigationSettingsPage(this);
topLayout->addWidget(m_navigation, 0, 0);
}
DolphinNavigationConfigModule::~DolphinNavigationConfigModule()
{
}
void DolphinNavigationConfigModule::save()
{
m_navigation->applySettings();
}
void DolphinNavigationConfigModule::defaults()
{
m_navigation->applySettings();
}
#include "kcmdolphinnavigation.moc"

View file

@ -0,0 +1,16 @@
Name=Dolphin Navigation
Comment=This service allows configuration of the Dolphin navigation.
[Desktop Entry]
Icon=input-mouse
Type=Service
X-KDE-ServiceTypes=KCModule
Exec=kcmshell4 kcmdolphinnavigation
X-KDE-Library=kcm_dolphinnavigation
X-KDE-PluginKeyword=dolphinnavigation
X-KDE-ParentApp=kcontrol
Name=Navigation
Comment=Configure file manager navigation
X-KDE-Keywords=file manager

View file

@ -0,0 +1,45 @@
/***************************************************************************
* Copyright (C) 2009 by Peter Penz <peter.penz@gmx.at> *
* *
* 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 *
***************************************************************************/
#ifndef KCMDOLPHINNAVIGATION_H
#define KCMDOLPHINNAVIGATION_H
#include <kcmodule.h>
class NavigationSettingsPage;
/**
* @brief Allow to configure the Dolphin navigation.
*/
class DolphinNavigationConfigModule : public KCModule
{
Q_OBJECT
public:
DolphinNavigationConfigModule(QWidget* parent, const QVariantList& args);
virtual ~DolphinNavigationConfigModule();
virtual void save();
virtual void defaults();
private:
NavigationSettingsPage* m_navigation;
};
#endif

View file

@ -35,11 +35,11 @@
#include <QPushButton>
#include <QVBoxLayout>
K_PLUGIN_FACTORY(KCMDolphinConfigFactory, registerPlugin<DolphinViewModesConfigModule>("dolphinviewmodes");)
K_EXPORT_PLUGIN(KCMDolphinConfigFactory("kcmdolphinviewmodes"))
K_PLUGIN_FACTORY(KCMDolphinViewModesConfigFactory, registerPlugin<DolphinViewModesConfigModule>("dolphinviewmodes");)
K_EXPORT_PLUGIN(KCMDolphinViewModesConfigFactory("kcmdolphinviewmodes"))
DolphinViewModesConfigModule::DolphinViewModesConfigModule(QWidget* parent, const QVariantList& args) :
KCModule(KCMDolphinConfigFactory::componentData(), parent),
KCModule(KCMDolphinViewModesConfigFactory::componentData(), parent),
m_pages()
{
Q_UNUSED(args);

View file

@ -0,0 +1,16 @@
Name=Dolphin View Modes
Comment=This service allows configuration of the Dolphin view modes.
[Desktop Entry]
Icon=view-choose
Type=Service
X-KDE-ServiceTypes=KCModule
Exec=kcmshell4 kcmdolphinviewmodes
X-KDE-Library=kcm_dolphinviewmodes
X-KDE-PluginKeyword=dolphinviewmodes
X-KDE-ParentApp=kcontrol
Name=View Modes
Comment=Configure file manager view modes
X-KDE-Keywords=file manager

View file

@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#ifndef KCMDOLPHIN_H
#define KCMDOLPHIN_H
#ifndef KCMDOLPHINVIEWMODES_H
#define KCMDOLPHINVIEWMODES_H
#include <kcmodule.h>

View file

@ -1,237 +0,0 @@
Name=Dolphin
Name[ar]=دولفين
Name[bn]=ি
Name[fy]=Dolfyn
Name[gu]=િ
Name[hi]=ि
Name[km]=
Name[kn]=ಿ
Name[mk]=Делфин
Name[ml]=ി
Name[mr]=ि
Name[ne]=ि
Name[or]=ି
Name[pa]=ਿ
Name[sr]=Делфин
Name[ta]=ி
Name[te]=ి
Name[x-test]=xxDolphinxx
Comment=This service allows configuration of the Dolphin views.
Comment[af]=Hierdie diens konfigureer die Dolphin aansigte
Comment[ar]=هذه الخدمة تتيح التحكم بعروض الدولفين
Comment[as]= Dolphin ি
Comment[be@latin]=Hetaja słužba dazvalaje naładžvać vyhlad prahramy Dolphin.
Comment[bg]=Това ви позволява да настроите показването в Dolphin.
Comment[bn_IN]= ি Dolphin ি
Comment[ca]=Aquest servei permet la configuració de les vistes del Dolphin.
Comment[cs]=Tato služba umožňuje nastavení pohledů Dolphinu.
Comment[csb]=Na ùsłëżnota pòzwôlô na kònfigùracëjã wëzdrzatków Dolphina,
Comment[da]=Denne tjeneste tillader indstilling af Dolphin-visningerne.
Comment[de]=Mit diesem Dienst können Dolphin-Ansichten eingerichtet werden.
Comment[el]=Αυτή η υπηρεσία επιτρέπει τη ρύθμιση των προβολών του Dolphin.
Comment[eo]=Ĉi tiu servo permesas agordon de la Dolphin rigardoj.
Comment[es]=Este servicio le permite configurar las vistas de Dolphin.
Comment[et]=See teenus võimaldab seadistada Dolphini vaateid.
Comment[eu]=Zerbitzu honen bitartez Dolphin ikuspegiak konfigura ditzakezu.
Comment[fi]=Tämä palvelu sallii Dolphinin näkymien muokkauksen.
Comment[fr]=Ce service permet de configurer les vues de Dolphin
Comment[fy]=De tsjinst stiet it ynstellen fan de Dolfynwerjefte ta.
Comment[ga]=Leis an tseirbhís seo is féidir na hamhairc Dolphin a chumrú.
Comment[gl]=Este servizo permite configurar as vistas de Dolphin.
Comment[gu]= િ .
Comment[he]=שירות זה מאפשר תצורה של תצוגות עבור Dolphin
Comment[hi]= ि ि .
Comment[hsb]=Tutón serwis dowoli konfiguraciju napohladow Dolphina.
Comment[hu]=Ez a szolgáltatás a Dolphin nézeteinek beállítását teszi lehetővé.
Comment[is]=Þessi þjónusta leyfir stillingar á sýnum Dolphin.
Comment[it]=Questo servizio permette di configurare le viste di Dolphin.
Comment[ja]= Dolphin
Comment[kk]=Бұл Dolphin көрінісін баптауға мүмкіндік беретін қызмет.
Comment[km]= Dolphin 
Comment[kn]= ಿ ಿ.
Comment[ko]= Dolphin .
Comment[ku]=Ev servîs destûrê dide veavakirina xuyakirina Dolphinê.
Comment[lt]=Ši tarnyba leidžia konfigūruoti Dolphin peržiūros profilius.
Comment[lv]=Šis serviss atļauj konfigurēt Dolphin skatus.
Comment[mk]=Овој сервис овозможува конфигурација на прегледите на Делфин.
Comment[ml]=ി ി ി ി.
Comment[mr]= ि .
Comment[nb]=Denne tjenesten tillater konfigurasjon av Dolphin visninger
Comment[nds]=Mit dissen Deenst laat sik de Dolphin-Ansichten instellen.
Comment[nl]=Met deze dienst kunt u Dolphin-weergaven instellen.
Comment[nn]=Denne tenesta let seg setja opp Dolphin-visingar.
Comment[or]=ି ି ି ି ି
Comment[pa]= ਿ ਿ
Comment[pl]=Ta usługa umożliwia konfigurację widoków Dolphina.
Comment[pt]=Este serviço permite-lhe configurar as vistas do Dolphin.
Comment[pt_BR]=Este serviço permite configurar as visualizações do Dolphin.
Comment[ro]=Acest serviciu permite configurarea vizualizărilor Dolphin.
Comment[ru]=Эта служба позволяет настраивать виды Dolphin
Comment[sk]=Táto služba umožňuje konfiguráciu pohľadov v Dolphine.
Comment[sl]=Ta storitev omogoča nastavitev Dolphinovih prikazov.
Comment[sr]=Овај сервис омогућава подешавање Делфинових приказа.
Comment[sr@latin]=Ovaj servis omogućava podešavanje Dolphinovih prikaza.
Comment[sv]=Den här tjänsten låter dig anpassa vyer i Dolphin.
Comment[ta]=ி ி ி ி.
Comment[te]=ి ి ిి.
Comment[tg]=Ин хидмат танзимоти намоиши Dolphin-ро иҷозат медиҳад.
Comment[th]= Dolphin
Comment[tr]=Bu servis Dolphin görünümlerini yapılandırmanızı sağlar.
Comment[uk]=Ця служба дасть змогу налаштувати перегляди Dolphin.
Comment[wa]=Ci siervice permet l' apontiaedje des vuwes di Dolhpin.
Comment[x-test]=xxThis service allows configuration of the Dolphin views.xx
Comment[zh_CN]= Dolphin
Comment[zh_TW]= Dolphin
[Desktop Entry]
Icon=view-choose
Type=Service
X-KDE-ServiceTypes=KCModule
Exec=kcmshell4 kcmdolphin
X-KDE-Library=kcm_dolphin
X-KDE-PluginKeyword=dolphin
X-KDE-ParentApp=kcontrol
Name=Views
Name[af]=Aansigte
Name[ar]=العروض
Name[as]=
Name[be@latin]=Vyhlady
Name[bg]=Преглед
Name[bn]=ি
Name[bn_IN]=
Name[ca]=Vistes
Name[cs]=Pohledy
Name[csb]=Wëzdrzatczi
Name[da]=Visninger
Name[de]=Ansichten
Name[el]=Προβολές
Name[eo]=Rigardoj
Name[es]=Vistas
Name[et]=Vaated
Name[eu]=Ikuspegiak
Name[fi]=Näkymät
Name[fr]=Vues
Name[fy]=Werjeften
Name[ga]=Amhairc
Name[gl]=Vistas
Name[gu]=
Name[he]=תצוגות
Name[hi]=
Name[hr]=Prikazi
Name[hsb]=Napohlady
Name[hu]=Nézetek
Name[is]=Sjónarhorn
Name[it]=Viste
Name[ja]=
Name[kk]=Көріністер
Name[km]=
Name[kn]=
Name[ko]=
Name[ku]=Bergeh
Name[lt]=Profiliai
Name[lv]=Skati
Name[mk]=Прегледи
Name[ml]=ി
Name[mr]=
Name[ms]=Paparan
Name[nb]=Visninger
Name[nds]=Ansichten
Name[nl]=Weergaven
Name[nn]=Visingar
Name[or]=ି
Name[pa]=
Name[pl]=Widoki
Name[pt]=Janelas
Name[pt_BR]=Visualizações
Name[ro]=Vizualizări
Name[ru]=Представление папок
Name[sk]=Pohľady
Name[sl]=Prikazi
Name[sr]=Прикази
Name[sr@latin]=Prikazi
Name[sv]=Vyer
Name[ta]=ி
Name[te]=
Name[tg]=Намоиш
Name[th]=
Name[tr]=Görünümler
Name[uk]=Перегляди
Name[uz]=Koʻrinishlar
Name[uz@cyrillic]=Кўринишлар
Name[wa]=Vuwes
Name[x-test]=xxViewsxx
Name[zh_CN]=
Name[zh_TW]=
Comment=Configure file manager settings
Comment[af]=Konfigureer lêerbestuurder instellings
Comment[ar]=اضبط إعدادات مدير الملفات
Comment[as]=ি ি ি ি
Comment[be@latin]=Naładź kiraŭnika fajłaŭ
Comment[bg]=Настройване на файловия мениджър
Comment[bn]= ি ি
Comment[bn_IN]= ি ি ি
Comment[ca]=Configura les opcions del gestor de fitxers
Comment[cs]=Nastavení správce souborů
Comment[csb]=Kònfigùracëjô nastôwù menadżera lopków
Comment[da]=Opsætning af filhåndtering
Comment[de]=Einstellungen zum Dateimanager vornehmen
Comment[el]=Ρύθμιση επιλογών διαχείρισης αρχείων
Comment[eo]=Agordi la dosieradministrilon
Comment[es]=Configurar las preferencias gestor de archivos
Comment[et]=Failihalduri seadistuste seadistamine
Comment[eu]=Konfiguratu fitxategia arakatzailearen ezarpenak
Comment[fi]=Muokkaa tiedostonhallinnan asetuksia
Comment[fr]=Configuration du gestionnaire de fichiers
Comment[fy]=Hjir kinne jo de triembehear ynstellings fêststelle
Comment[ga]=Cumraigh socruithe bhainisteoir na gcomhad
Comment[gl]=Configura as opcións do xestor de ficheiros
Comment[gu]= િ
Comment[he]=הגדרות מנהל הקבצים
Comment[hi]= ि ि
Comment[hr]=Konfiguriranje postavki upravitelja datotekama
Comment[hsb]=Nastajenja datajoweho managera připrawić
Comment[hu]=A fájlkezelő beállításai
Comment[is]=Stilla skráastjóra
Comment[it]=Configura le impostazioni del gestore dei file
Comment[ja]=
Comment[kk]=Файл менеджер параметрлерін баптау
Comment[km]=
Comment[kn]= ಿ
Comment[ko]=
Comment[ku]=Mîhengên gerînendeyê pelan ava bike
Comment[lt]=Konfigūruokite failų tvarkyklės nustatymus
Comment[lv]=Konfigurē failu pārvaldnieka iestatījumus
Comment[mk]=Конфигурирајте ги поставувањата за менаџерот на датотеки
Comment[ml]= ി ി
Comment[mr]=
Comment[nb]=Tilpass filbehandler oppsettet
Comment[nds]=Den Dateipleger instellen
Comment[nl]=Bestandsbeheerder instellen
Comment[nn]=Set opp filhandsamar
Comment[or]= ି ି
Comment[pa]= ਿ
Comment[pl]=Konfiguracja ustawień menadżera plików
Comment[pt]=Configuração as opções do gestor de ficheiros
Comment[pt_BR]=Configurar opções do gerenciador de arquivos
Comment[ro]=Configurează gestionarul de fișiere
Comment[ru]=Настройка параметров менеджера файлов
Comment[sk]=Nastavenie správcu súborov
Comment[sl]=Nastavitve upravitelja datotek
Comment[sr]=Подешавање менаџера фајлова
Comment[sr@latin]=Podešavanje menadžera fajlova
Comment[sv]=Anpassa filhanteringsinställningar
Comment[ta]= ி
Comment[te]= ిి ి
Comment[tg]=Танзимоти мудири файлҳо
Comment[th]=
Comment[tr]=Dosya yöneticisi ayarlarını yapılandır
Comment[uk]=Налаштувати параметри менеджера файлів
Comment[uz]=Fayl boshqaruvchining moslamalarini moslash
Comment[uz@cyrillic]=Файл бошқарувчининг мосламаларини мослаш
Comment[wa]=Apontyî les tchuzes do manaedjeu di fitchîs
Comment[x-test]=xxConfigure file manager settingsxx
Comment[zh_CN]=
Comment[zh_TW]=
X-KDE-Keywords=file manager