Logo Search packages:      
Sourcecode: kboincspy-cvs version File versions  Download package

kbspredictormoleculelog.h

/***************************************************************************
 *   Copyright (C) 2005 by Roberto Virga                                   *
 *   rvirga@users.sf.net                                                   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef KBSPREDICTORMOLECULELOG_H
#define KBSPREDICTORMOLECULELOG_H

#include <qobject.h>
#include <qsize.h>

#include <kurl.h>

#include <predictordata.h>

#include <kbspredictormoleculeview.h>

struct KBSPredictorMoleculeLogPreferences {
  enum Filter {Workunit=1, Result};
  
  KBSPredictorMoleculeView::Style style;
  KBSPredictorMoleculeView::Coloring coloring;
  struct {
    unsigned filter;
    QString format;
  } picture, model;
  KURL url;
};

class KBSPredictorProjectMonitor;

class KBSPredictorMoleculeLog : public QObject
{
  Q_OBJECT
  public:
    static KBSPredictorMoleculeLog *self();
    
    virtual const KBSPredictorMoleculeLogPreferences &preferences(PredictorAppType type) const;
    virtual void setPreferences(PredictorAppType type,
                                const KBSPredictorMoleculeLogPreferences &preferences);
    
    virtual void logWorkunit(const QString &name, const PredictorResult *data);
    virtual void logResult(const QString &name, const PredictorResult *data);
  
  protected:
    KBSPredictorMoleculeLog(QObject *parent=0, const char *name=0);
    
  protected:
    KBSPredictorMoleculeLogPreferences m_preferences[CHARMM+1];
    
  private:
    static KBSPredictorMoleculeLog *s_self;
};

#endif

Generated by  Doxygen 1.6.0   Back to index