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