1// 2// Copyright 2009 Simon Edwards <simon@simonzone.com> 3 4// Generated by twine 5 6// This file is part of PyKDE4. 7 8// PyKDE4 is free software; you can redistribute it and/or modify 9// it under the terms of the GNU Lesser General Public License as 10// published by the Free Software Foundation; either version 2.1 of 11// the License, or (at your option) any later version. 12 13// PyKDE4 is distributed in the hope that it will be useful, 14// but WITHOUT ANY WARRANTY; without even the implied warranty of 15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16// GNU General Public License for more details. 17 18// You should have received a copy of the GNU General Public License 19// along with this program. If not, see <http://www.gnu.org/licenses/>. 20 21namespace Marble 22{ 23 24class AbstractFloatItem : Marble::RenderPlugin /Abstract/ 25{ 26%TypeHeaderCode 27#include <AbstractFloatItem.h> 28%End 29 30public: 31 QPen pen () const; 32 void setPen (const QPen& pen); 33 QFont font () const; 34 void setFont (const QFont& font); 35 void setPositionLocked (bool lock); 36 virtual QString renderPolicy () const; 37 virtual QStringList renderPosition () const; 38 39protected: 40 bool eventFilter (QObject* object, QEvent* e); 41 42public: 43 virtual ~AbstractFloatItem (); 44 bool render (Marble::GeoPainter* painter, Marble::ViewportParams* viewport, const QString& renderPos = "FLOAT_ITEM", Marble::GeoSceneLayer* layer = 0); 45 void setVisible (bool visible); 46 bool visible () const; 47 void show (); 48 void hide (); 49protected: 50 virtual void contextMenuEvent (QWidget* w, QContextMenuEvent* e); 51 virtual void toolTipEvent (QHelpEvent* e); 52 QMenu* contextMenu (); 53public: 54 explicit AbstractFloatItem (const Marble::MarbleModel* marbleModel, const QPointF& point = QPointF(10.0,10.0), const QSizeF& size = QSizeF(150.0,50.0)); 55protected: 56 virtual void changeViewport (Marble::ViewportParams* viewport); 57public: 58 virtual QHash<QString,QVariant> settings () const; 59 virtual void setSettings (const QHash<QString,QVariant>& settings); 60 virtual Marble::RenderPlugin::RenderType renderType () const; 61 bool positionLocked () const; 62}; 63// AbstractFloatItem 64 65}; 66// Marble 67 68 69