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

kbspredictorfoldingpanelnode.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 KBSPREDICTORFOLDINGPANELNODE_H
#define KBSPREDICTORFOLDINGPANELNODE_H

#include <kbspanelnode.h>

#include <predictordata.h>

class KBSBOINCMonitor;
class KBSPredictorCharmmContent;
class KBSPredictorProjectMonitor;
class KBSPredictorMFoldContent;
class KBSPredictorMoleculesWindow;

class KBSPredictorFoldingPanelNode : public KBSPanelNode
{
  Q_OBJECT
  public:
    KBSPredictorFoldingPanelNode(KBSTreeNode *parent, const char *name, const QStringList &args);
    
    virtual QString name() const;
    virtual QStringList icons() const;

    virtual KBSPanel *createPanel(QWidget *parent=0);
  
  protected:
    PredictorAppType appType() const;
    KBSPredictorProjectMonitor *projectMonitor() const;

    KURL targetURL(unsigned casp, unsigned target) const;
    
    static unsigned parseCASP(unsigned target);
    static unsigned parseTarget(const QString& workunt);
  
  private:
    void setupMonitor();
    void setupContent(KBSPredictorMFoldContent *panel);
    void setupContent(KBSPredictorCharmmContent *panel);
  
  private slots:
    void updateContent();
    void updateContent(const QString &workunit);
    
    void showMolecules();
  
  private:
    PredictorAppType m_appType;
    QString m_project, m_workunit;
    KBSPredictorProjectMonitor *m_projectMonitor;
    KBSPredictorMoleculesWindow *m_molecules;
};

#endif

Generated by  Doxygen 1.6.0   Back to index