Warning, /education/marble/src/bindings/python/sip/AbstractFloatItem.sip is written in an unsupported language. File is not indexed.
0001 // 0002 // Copyright 2009 Simon Edwards <simon@simonzone.com> 0003 0004 // Generated by twine 0005 0006 // This file is part of PyKDE4. 0007 0008 // PyKDE4 is free software; you can redistribute it and/or modify 0009 // it under the terms of the GNU Lesser General Public License as 0010 // published by the Free Software Foundation; either version 2.1 of 0011 // the License, or (at your option) any later version. 0012 0013 // PyKDE4 is distributed in the hope that it will be useful, 0014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0016 // GNU General Public License for more details. 0017 0018 // You should have received a copy of the GNU General Public License 0019 // along with this program. If not, see <http://www.gnu.org/licenses/>. 0020 0021 namespace Marble 0022 { 0023 0024 class AbstractFloatItem : Marble::RenderPlugin /Abstract/ 0025 { 0026 %TypeHeaderCode 0027 #include <AbstractFloatItem.h> 0028 %End 0029 0030 public: 0031 QPen pen () const; 0032 void setPen (const QPen& pen); 0033 QFont font () const; 0034 void setFont (const QFont& font); 0035 void setPositionLocked (bool lock); 0036 virtual QString renderPolicy () const; 0037 virtual QStringList renderPosition () const; 0038 0039 protected: 0040 bool eventFilter (QObject* object, QEvent* e); 0041 0042 public: 0043 virtual ~AbstractFloatItem (); 0044 bool render (Marble::GeoPainter* painter, Marble::ViewportParams* viewport, const QString& renderPos = "FLOAT_ITEM", Marble::GeoSceneLayer* layer = 0); 0045 void setVisible (bool visible); 0046 bool visible () const; 0047 void show (); 0048 void hide (); 0049 protected: 0050 virtual void contextMenuEvent (QWidget* w, QContextMenuEvent* e); 0051 virtual void toolTipEvent (QHelpEvent* e); 0052 QMenu* contextMenu (); 0053 public: 0054 explicit AbstractFloatItem (const Marble::MarbleModel* marbleModel, const QPointF& point = QPointF(10.0,10.0), const QSizeF& size = QSizeF(150.0,50.0)); 0055 protected: 0056 virtual void changeViewport (Marble::ViewportParams* viewport); 0057 public: 0058 virtual QHash<QString,QVariant> settings () const; 0059 virtual void setSettings (const QHash<QString,QVariant>& settings); 0060 virtual Marble::RenderPlugin::RenderType renderType () const; 0061 bool positionLocked () const; 0062 }; 0063 // AbstractFloatItem 0064 0065 }; 0066 // Marble 0067 0068