Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

omgabout.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006 Peter Brewer, Tim Sutton   *
00003  *   peter@pembshideaway.co.uk, tim@linfiniti.com   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 //local includes
00022 #include "omgabout.h"
00023 #include "omgui.h"
00024 #include <omgmodellerpluginregistry.h>
00025 #include <omgscraperpluginregistry.h>
00026 #include <qgsproviderregistry.h>
00027 #include <omgui.h>  // for version
00028 #include <QString>
00029 #include <QUrl>
00030 
00031 OmgAbout::OmgAbout(QWidget* parent, Qt::WFlags fl)
00032     : QDialog(parent,fl)
00033 {
00034   //required by Qt4 to initialise the ui
00035   setupUi(this);
00036   //provide general info about omg
00037   QString myOmgVersion = Omgui::version();
00038   lblVersion->setText(myOmgVersion + tr(" using Qt ") + QT_VERSION_STR);
00039 
00040   QString myString;
00041   //provide info about the plugins available
00042   myString += "<b>" + tr("Available Modelling Plugins") + "</b><br>";
00043   myString += "<ol>\n<li>\n";
00044   QStringList myModellerList = OmgModellerPluginRegistry::instance()->names();
00045   myString += myModellerList.join("</li>\n<li>");
00046   myString += "</li>\n</ol>\n";
00047   myString += "<b>" + tr("Available Data Retrieval Plugins") + "</b><br>";
00048   myString += "<ol>\n<li>\n";
00049   QStringList myScraperList = OmgScraperPluginRegistry::instance()->names();
00050   myString += myScraperList.join("</li>\n<li>");
00051   myString += "</li>\n</ol>\n";
00052   myString += "<b>" + tr("Available QGIS Data Provider Plugins") + "</b><br>";
00053   myString += QgsProviderRegistry::instance()->pluginList(true);
00054   tbPlugins->insertHtml(myString);
00055   tbPlugins->moveCursor(QTextCursor::Start);
00056   // Set the changelog info
00057   // a clever shortcut way to load it from the resource file
00058   tbChangeLog->setSearchPaths(QStringList(":/"));
00059   tbChangeLog->setSource(QUrl("CHANGELOG.html"));
00060   tbContributors->setSearchPaths(QStringList(":/"));
00061   tbContributors->setSource(QUrl("CONTRIBUTORS.html"));
00062 
00063 }
00064 
00065 OmgAbout::~OmgAbout()
00066 {}
00067 
00068 void OmgAbout::on_btnOk_clicked()
00069 {
00070     QDialog::accept();
00071 }
00072 

Generated on Mon Apr 28 15:07:03 2008 for openModellerDesktop by  doxygen 1.4.1-20050210