diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /kview/modules/presenter/config | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.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/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kview/modules/presenter/config')
4 files changed, 255 insertions, 0 deletions
diff --git a/kview/modules/presenter/config/Makefile.am b/kview/modules/presenter/config/Makefile.am new file mode 100644 index 00000000..8c212e7f --- /dev/null +++ b/kview/modules/presenter/config/Makefile.am @@ -0,0 +1,17 @@ +INCLUDES = $(all_includes) + +kde_module_LTLIBRARIES = kcm_kviewpresenterconfig.la + +noinst_HEADERS = kviewpresenterconfig.h + +kcm_kviewpresenterconfig_la_SOURCES = kviewpresenterconfig.cpp +kcm_kviewpresenterconfig_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) +kcm_kviewpresenterconfig_la_LIBADD = $(LIB_KUTILS) + +kcm_kviewpresenterconfig_DATA = kviewpresenterconfig.desktop +kcm_kviewpresenterconfigdir = $(kde_servicesdir)/kconfiguredialog + +METASOURCES = AUTO + +messages: rc.cpp + $(XGETTEXT) *.cpp *.h -o $(podir)/kcm_kviewpresenterconfig.pot diff --git a/kview/modules/presenter/config/kviewpresenterconfig.cpp b/kview/modules/presenter/config/kviewpresenterconfig.cpp new file mode 100644 index 00000000..92dd8627 --- /dev/null +++ b/kview/modules/presenter/config/kviewpresenterconfig.cpp @@ -0,0 +1,72 @@ +/* This file is part of the KDE project + Copyright (C) 2002-2003 Matthias Kretz <kretz@kde.org> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 + as published by the Free Software Foundation. + + 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 "kviewpresenterconfig.h" + +#include <qlayout.h> +#include <qcheckbox.h> +#include <qframe.h> + +#include <klocale.h> +#include <kdialog.h> +#include <kglobal.h> +#include <kconfig.h> +#include <kgenericfactory.h> + +typedef KGenericFactory<KViewPresenterConfig, QWidget> KViewPresenterConfigFactory; +K_EXPORT_COMPONENT_FACTORY( kcm_kviewpresenterconfig, KViewPresenterConfigFactory( "kcm_kviewpresenterconfig" ) ) + +KViewPresenterConfig::KViewPresenterConfig( QWidget * parent, const char *, const QStringList & args ) + : KCModule( KViewPresenterConfigFactory::instance(), parent, args ) +{ + QBoxLayout * layout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() ); + layout->setAutoAdd( true ); + + m_pCheckBox = new QCheckBox( "This is only for testing...", this ); + connect( m_pCheckBox, SIGNAL( clicked() ), this, SLOT( checkChanged() ) ); +} + +KViewPresenterConfig::~KViewPresenterConfig() +{ +} + +void KViewPresenterConfig::checkChanged() +{ + if( m_pCheckBox->isChecked() ) + emit changed( true ); + else + emit changed( false ); +} + +void KViewPresenterConfig::load() +{ + emit changed( false ); +} + +void KViewPresenterConfig::save() +{ + emit changed( false ); +} + +void KViewPresenterConfig::defaults() +{ +} + +// vim:sw=4:ts=4 + +#include "kviewpresenterconfig.moc" diff --git a/kview/modules/presenter/config/kviewpresenterconfig.desktop b/kview/modules/presenter/config/kviewpresenterconfig.desktop new file mode 100644 index 00000000..77bb3481 --- /dev/null +++ b/kview/modules/presenter/config/kviewpresenterconfig.desktop @@ -0,0 +1,120 @@ +[Desktop Entry] +Icon=kpresenter +Type=Service +ServiceTypes=KCModule + +X-KDE-ModuleType=Library +X-KDE-Library=kviewpresenterconfig +X-KDE-FactoryName=KViewPresenterConfigFactory +X-KDE-ParentComponents=kviewpresenter + +Name=Name +Name[ar]=اسم +Name[bg]=Име +Name[br]=Anv +Name[bs]=Ime +Name[ca]=Nom +Name[cy]=Enw +Name[da]=Navn +Name[el]=Όνομα +Name[eo]=Nomo +Name[es]=Nombre +Name[et]=Nimi +Name[eu]=Izena +Name[fa]=نام +Name[fi]=Nimi +Name[fr]=Nom +Name[ga]=Ainm +Name[gl]=Nome +Name[he]=שם +Name[hi]=नाम +Name[hu]=Név +Name[is]=Heiti +Name[it]=Nome +Name[ja]=名前 +Name[kk]=Атауы +Name[km]=ឈ្មោះ +Name[lt]=Pavadinimas +Name[ms]=Nama +Name[nb]=Navn +Name[nds]=Naam +Name[ne]=नाम +Name[nl]=Naam +Name[nn]=Namn +Name[pa]=ਨਾਂ +Name[pl]=Nazwa +Name[pt]=Nome +Name[pt_BR]=Nome +Name[ro]=Nume +Name[ru]=Имя +Name[se]=Namma +Name[sk]=Meno +Name[sl]=Ime +Name[sr]=Име +Name[sr@Latn]=Ime +Name[sv]=Namn +Name[ta]=பெயர் +Name[tg]=Ном +Name[uk]=Назва +Name[uz]=Nomi +Name[uz@cyrillic]=Номи +Name[wa]=No +Name[zh_CN]=名称 +Name[zh_HK]=名稱 +Name[zh_TW]=名稱 +Comment=Comment +Comment[ar]=تعليق +Comment[bg]=Коментар +Comment[br]=Askelenn +Comment[bs]=Komentar +Comment[ca]=Comentari +Comment[cy]=Sylwad +Comment[da]=Kommentar +Comment[de]=Kommentar +Comment[el]=Σχόλιο +Comment[eo]=Komento +Comment[es]=Comentario +Comment[et]=Kommentaar +Comment[eu]=Iruzkina +Comment[fa]=توضیح +Comment[fi]=Kommentti +Comment[fr]=Commentaire +Comment[ga]=Nóta +Comment[gl]=Comentario +Comment[he]=הערה +Comment[hi]=टिप्पणी +Comment[hu]=Megjegyzés +Comment[is]=Athugasemd +Comment[it]=Commento +Comment[ja]=コメント +Comment[kk]=Түсініктемесі +Comment[km]=សេចក្ដីអធិប្បាយ +Comment[lt]=Komentaras +Comment[ms]=Komen +Comment[nb]=Kommentar +Comment[nds]=Kommentar +Comment[ne]=टिप्पणी +Comment[nl]=Omschrijving +Comment[nn]=Kommentar +Comment[pa]=ਟਿੱਪਣੀ +Comment[pl]=Komentarz +Comment[pt]=Comentário +Comment[pt_BR]=Comentário +Comment[ro]=Comentariu +Comment[ru]=Комментарий +Comment[se]=Kommeanta +Comment[sk]=Komentár +Comment[sl]=Komentar +Comment[sr]=Коментар +Comment[sr@Latn]=Komentar +Comment[sv]=Kommentar +Comment[ta]=குறிப்பு +Comment[tg]=Эзоҳ +Comment[tr]=Açıklama +Comment[uk]=Коментар +Comment[uz]=Izoh +Comment[uz@cyrillic]=Изоҳ +Comment[wa]=Rawete +Comment[zh_CN]=注释 +Comment[zh_HK]=註解 +Comment[zh_TW]=註解 diff --git a/kview/modules/presenter/config/kviewpresenterconfig.h b/kview/modules/presenter/config/kviewpresenterconfig.h new file mode 100644 index 00000000..c839690a --- /dev/null +++ b/kview/modules/presenter/config/kviewpresenterconfig.h @@ -0,0 +1,46 @@ +/* This file is part of the KDE project + Copyright (C) 2002-2003 Matthias Kretz <kretz@kde.org> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 + as published by the Free Software Foundation. + + 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 KVIEWPRESENTERCONFIG_H +#define KVIEWPRESENTERCONFIG_H + +#include <kcmodule.h> + +class QCheckBox; + +class KViewPresenterConfig : public KCModule +{ + Q_OBJECT + public: + KViewPresenterConfig( QWidget * parent, const char * name = 0, const QStringList & args = QStringList() ); + ~KViewPresenterConfig(); + + virtual void load(); + virtual void save(); + virtual void defaults(); + + private slots: + void checkChanged(); + + private: + QCheckBox * m_pCheckBox; +}; + +// vim:sw=4:ts=4 + +#endif // KVIEWPRESENTERCONFIG_H |