00001 /*************************************************************************** 00002 * Copyright (C) 2007 by Tim Sutton tim@linfiniti.com * 00003 * * 00004 * This program is free software; you can redistribute it and/or modify * 00005 * it under the terms of the GNU General Public License as published by * 00006 * the Free Software Foundation; either version 2 of the License, or * 00007 * (at your option) any later version. * 00008 * * 00009 * This program is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00012 * GNU General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU General Public License * 00015 * along with this program; if not, write to the * 00016 * Free Software Foundation, Inc., * 00017 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00018 ***************************************************************************/ 00019 00020 #include <omgui.h> //ancilliary helper functions 00021 #include <omgscraperpluginregistry.h> 00022 #include <omgdatafetcherwizardlicensewidget.h> 00023 OmgDataFetcherWizardLicenseWidget::OmgDataFetcherWizardLicenseWidget(QWidget* parent , Qt::WFlags fl ) 00024 { 00025 setupUi(this); 00026 //populate the license text browser 00027 QMap <QString,QString> myMap = OmgScraperPluginRegistry::instance()->licenses(); 00028 QMapIterator<QString, QString > myIterator(myMap); 00029 while (myIterator.hasNext()) 00030 { 00031 myIterator.next(); 00032 tbLicenses->append(myIterator.key()); 00033 tbLicenses->append("--------------------------------------"); 00034 tbLicenses->append(myIterator.value()) ; 00035 } 00036 tbLicenses->moveCursor(QTextCursor::Start); 00037 00038 } 00039 OmgDataFetcherWizardLicenseWidget::~OmgDataFetcherWizardLicenseWidget() 00040 { 00041 00042 } 00043 QCheckBox * OmgDataFetcherWizardLicenseWidget::licenseCheckBox() 00044 { 00045 return cbxTermsAgreement; 00046 } 00047 00048