File indexing completed on 2024-04-14 04:16:23
0001 /* 0002 0003 Copyright (C) 2008 Joseph Simon III <j.simon.iii@astound.net> 0004 0005 Redistribution and use in source and binary forms, with or without 0006 modification, are permitted provided that the following conditions 0007 are met: 0008 0009 1. Redistributions of source code must retain the above copyright 0010 notice, this list of conditions and the following disclaimer. 0011 2. Redistributions in binary form must reproduce the above copyright 0012 notice, this list of conditions and the following disclaimer in the 0013 documentation and/or other materials provided with the distribution. 0014 0015 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 0016 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 0017 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 0018 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 0019 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 0020 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 0021 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 0022 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0023 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 0024 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0025 0026 */ 0027 0028 0029 #include "kmsettings.h" 0030 0031 #include <kcmodule.h> 0032 #include <kaboutdata.h> 0033 #include <KLocalizedString> 0034 #include <kpluginfactory.h> 0035 0036 0037 // Code to provide KDE module functionality for Kolor Management. 0038 K_PLUGIN_FACTORY( kmsettingsFactory, 0039 registerPlugin<kmsettings>(); 0040 ) 0041 0042 0043 // Register the panel and initialise fro Oyranos. 0044 kmsettings::kmsettings(QWidget *parent, const QVariantList &args ) : 0045 KCModule( parent, args ) 0046 { 0047 const char * name = NULL; 0048 oyWidgetTitleGet( oyWIDGET_GROUP_ALL, NULL, &name, 0049 NULL, NULL ); 0050 QString title = QString("KolorManager Oyranos %1").arg(name); 0051 KAboutData * about = new KAboutData("kmsettings", 0052 title, "1.1.0", 0053 i18n("KDE version of Oyranos Synnefo"), 0054 KAboutLicense::BSDL, 0055 i18n("(c) 2008 Joseph Simon III"), 0056 "", 0057 "http://www.oyranos.org/kolormanager"); 0058 0059 about->addAuthor(i18n("Joseph Simon III"), i18n("developer"), "j.simon.iii@astound.net", "https://jsimon3.wordpress.com/"); 0060 about->addAuthor(i18n("Kai-Uwe Behrmann"), i18n("developer"), "ku.b@gmx.de", "http://www.behrmann.name/"); 0061 about->addAuthor(i18n("Jan Gruhlich"), i18n("developer"), "jgrulich@redhat.com", 0); 0062 0063 about->addAuthor(i18n("Albert Astals Cid"), i18n("developer"), "tsdgeos@terra.es", 0); 0064 about->addAuthor(i18n("Christoph Feck"), i18n("developer"), "christoph@maxiom.de", 0); 0065 about->addAuthor(i18n("Boudewijn Rempt "), i18n("developer"), "boud@valdyas.org", "http://www.valdyas.org/fading/index.cgi"); 0066 about->addAuthor(i18n("Pino Toscano"), i18n("developer"), "pino@kde.org", 0); 0067 about->addAuthor(i18n("Laurent Montel"), i18n("developer"), "montel@kde.org", 0); 0068 about->addAuthor(i18n("Cyrille Berger Skott"), i18n("developer"), "cberger@cberger.net", 0); 0069 about->addAuthor(i18n("Hal Van Engel"), i18n("developer"), "hvengel@gmail.com", 0); 0070 0071 //QList<KAboutPerson> people = about->authors(); 0072 //about->addCredit(people[0].name(), people[0].task()); 0073 0074 setAboutData(about); 0075 setButtons( Help ); 0076 0077 oyMessageFuncSet( oyGuiMessageFunc ); 0078 0079 module = new SySettingsModule(0); // "Synnefo Settings" 0080 0081 QGridLayout *gridLayout; 0082 gridLayout = new QGridLayout(this); 0083 gridLayout->setObjectName(QString::fromUtf8("gridLayout")); 0084 gridLayout->addWidget(module, 0, 0, 0, 0); 0085 } 0086 0087 kmsettings::~kmsettings() 0088 { 0089 delete module; 0090 } 0091 0092 #include "kmsettings.moc"