File indexing completed on 2024-04-21 04:20:21
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 "kminfo.h" 0030 0031 #include <kcmodule.h> 0032 #include <kaboutdata.h> 0033 #include <KLocalizedString> 0034 #include <kpluginfactory.h> 0035 0036 #include <oyranos.h> 0037 #include <sy_info.h> 0038 0039 // Code to provide KDE module functionality for color manager 0040 0041 K_PLUGIN_FACTORY( kminfoFactory, 0042 registerPlugin<kminfo>(); 0043 ) 0044 0045 0046 kminfo::kminfo(QWidget *parent, const QVariantList &args ) : 0047 KCModule( parent, args ) 0048 { 0049 const char * name = NULL; 0050 oyWidgetTitleGet( oyWIDGET_GROUP_INFORMATION, NULL, &name, 0051 NULL, NULL ); 0052 QString title = QString("KolorManager Oyranos %1").arg(name); 0053 KAboutData * about = new KAboutData("kminfo", 0054 title, "1.1.0", 0055 i18n("KDE version of Oyranos Synnefo"), 0056 KAboutLicense::BSDL, 0057 i18n("(c) 2008 Joseph Simon III"), 0058 "", 0059 "http://www.oyranos.org/kolormanager"); 0060 0061 about->addAuthor(i18n("Joseph Simon III"), i18n("developer"), "j.simon.iii@astound.net", "https://jsimon3.wordpress.com/"); 0062 about->addAuthor(i18n("Kai-Uwe Behrmann"), i18n("developer"), "ku.b@gmx.de", "http://www.behrmann.name/"); 0063 about->addAuthor(i18n("Jan Gruhlich"), i18n("developer"), "jgrulich@redhat.com", 0); 0064 0065 about->addAuthor(i18n("Albert Astals Cid"), i18n("developer"), "tsdgeos@terra.es", 0); 0066 about->addAuthor(i18n("Christoph Feck"), i18n("developer"), "christoph@maxiom.de", 0); 0067 about->addAuthor(i18n("Boudewijn Rempt "), i18n("developer"), "boud@valdyas.org", "http://www.valdyas.org/fading/index.cgi"); 0068 about->addAuthor(i18n("Pino Toscano"), i18n("developer"), "pino@kde.org", 0); 0069 about->addAuthor(i18n("Laurent Montel"), i18n("developer"), "montel@kde.org", 0); 0070 about->addAuthor(i18n("Cyrille Berger Skott"), i18n("developer"), "cberger@cberger.net", 0); 0071 about->addAuthor(i18n("Hal Van Engel"), i18n("developer"), "hvengel@gmail.com", 0); 0072 0073 setAboutData(about); 0074 0075 oyMessageFuncSet( oyGuiMessageFunc ); 0076 0077 module = new SyInfoModule(0); // "Synnefo Info" 0078 0079 QGridLayout *gridLayout; 0080 gridLayout = new QGridLayout(this); 0081 gridLayout->setObjectName(QString::fromUtf8("gridLayout")); 0082 gridLayout->addWidget(module, 0, 0, 0, 0); 0083 } 0084 0085 0086 kminfo::~kminfo() 0087 { 0088 delete module; 0089 } 0090 0091 #include "kminfo.moc"