/*************************************************************************** * Copyright (C) 2006 by Carsten Niehaus * Copyright (C) 2007-2008 by Marcus D. Hanwell ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef KALZIUMGLPART_H #define KALZIUMGLPART_H #include #include #include class KalziumGLWidget : public Avogadro::GLWidget { Q_OBJECT public: KalziumGLWidget(QWidget *parent = 0); virtual ~KalziumGLWidget(); public slots: void setStyle(int style); void setStyle2(int style); void setLabels(int style); void setQuality(int quality); protected: QString lc_numeric; int m_lastEngine1, m_lastEngine2; }; class KalziumGLPart : public KParts::ReadOnlyPart { Q_OBJECT public: KalziumGLPart(QWidget*, QObject*, const QStringList&); virtual ~KalziumGLPart(); static KAboutData* createAboutData(); protected: bool openFile(); KalziumGLWidget* m_widget; }; #endif // KALZIUMGLPART_H