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

omgpluginmessenger.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Tim Sutton   *
00003  *   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 
00022 //QT Includes
00023 #include "omgpluginmessenger.h"
00024 //needed to be able to do qDebug() << 
00025 #include <QtDebug>
00026 #include <QCoreApplication>
00027 
00028 
00029 OmgPluginMessenger::OmgPluginMessenger(QObject *parent)
00030 {
00031 
00032 }
00033 OmgPluginMessenger::~OmgPluginMessenger()
00034 {
00035 
00036 }
00037 
00038 void OmgPluginMessenger::emitError(QString theError)
00039 {
00040   //qDebug() << "OmgPluginMessenger::emitError " 
00041   //         << theError;
00042   emit error(theError); 
00043 }
00044 void OmgPluginMessenger::emitMessage(QString theMessage)
00045 {
00046   //qDebug() << "OmgPluginMessenger::emitMessage " 
00047   //         << theMessage;
00048   emit message(theMessage);
00049 }
00050 void OmgPluginMessenger::emitModelError(QString theModelGuid,QString theMessage)
00051 {
00052   //qDebug() << "OmgPluginMessenger::emitModelError " 
00053   //         << theModelGuid << " " << theMessage;
00054   emit modelError(theModelGuid,theMessage);
00055 }
00056 void OmgPluginMessenger::emitModelMessage(QString theModelGuid,QString theMessage)
00057 {
00058   //qDebug() << "OmgPluginMessenger::emitModelMessage " 
00059   //         << theModelGuid << " " << theMessage;
00060   emit modelMessage(theModelGuid,theMessage);
00061   QCoreApplication::processEvents();
00062 }
00063 void OmgPluginMessenger::emitModelDone(QString theModelGuid)
00064 {
00065   //qDebug() << "OmgPluginMessenger::emitModelDone " 
00066   //         << theModelGuid ;
00067   emit modelDone(theModelGuid);
00068 }
00069 void OmgPluginMessenger::emitModelCreationProgress(QString theModelGuid,int theProgress)
00070 {
00071   //qDebug() << "OmgPluginMessenger::emitModelCreationProgress " 
00072   //         << theModelGuid << " " << theProgress;
00073   emit modelCreationProgress(theModelGuid,theProgress);
00074 }
00075 void OmgPluginMessenger::emitModelProjectionProgress(QString theModelGuid,int theProgress)
00076 {
00077   //qDebug() << "OmgPluginMessenger::emitModelProjectionProgress " 
00078   //         << theModelGuid << " " << theProgress;
00079   emit modelProjectionProgress(theModelGuid,theProgress);
00080 }
00081 void OmgPluginMessenger::emitRefresh()
00082 {
00083   //qDebug() << "OmgPluginMessenger::emitRefresh" ;
00084   emit refresh();
00085 
00086 }
00087 
00088 // Next methods are plugin messenger related
00089 
00090 void OmgPluginMessenger::emitFileWritten(QString theShapeFile, QString theTextFile,QString theTaxonName,int theCount)
00091 {
00092   emit fileWritten(theShapeFile,theTextFile,theTaxonName,theCount);
00093 }
00094 void OmgPluginMessenger::emitFileNotWritten(QString theTaxonName)
00095 {
00096   emit fileNotWritten(theTaxonName);
00097 }

Generated on Mon Apr 28 15:09:01 2008 for openModellerDesktop by  doxygen 1.4.1-20050210