Warning, /education/marble/src/bindings/python/sip/RenderPlugin.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 RenderPlugin : QObject, Marble::RenderPluginInterface /Abstract/ 0025 { 0026 %TypeHeaderCode 0027 #include <RenderPlugin.h> 0028 %End 0029 0030 public: 0031 QAction* action () const; 0032 bool enabled () const; 0033 bool visible () const; 0034 void setEnabled (bool enabled); 0035 void setVisible (bool visible); 0036 0037 0038 protected: 0039 bool eventFilter (QObject*, QEvent*); 0040 0041 public: 0042 virtual ~RenderPlugin (); 0043 virtual QHash<QString,QVariant> settings () const; 0044 signals: 0045 void settingsChanged (QString nameId); 0046 void actionGroupsChanged (); 0047 public: 0048 const Marble::MarbleModel* marbleModel () const; 0049 void restoreDefaultSettings (); 0050 signals: 0051 void repaintNeeded (QRegion dirtyRegion = QRegion()); 0052 void enabledChanged (bool enable); 0053 public: 0054 RenderPlugin (const Marble::MarbleModel* marbleModel); 0055 virtual QString guiString () const=0; 0056 virtual Marble::RenderPlugin* newInstance (const Marble::MarbleModel* marbleModel) const=0; 0057 virtual void setSettings (const QHash<QString,QVariant>& settings); 0058 signals: 0059 void visibilityChanged (bool visible, const QString& nameId); 0060 public: 0061 virtual QString runtimeTrace () const; 0062 QStringList settingKeys (); 0063 bool setSetting (const QString& key, const QVariant& value); 0064 QVariant setting (const QString& key); 0065 enum RenderType 0066 { 0067 UnknownRenderType, 0068 TopLevelRenderType, 0069 PanelRenderType, 0070 OnlineRenderType, 0071 ThemeRenderType 0072 }; 0073 virtual const QList<QActionGroup*>* actionGroups () const; 0074 virtual const QList<QActionGroup*>* toolbarActionGroups () const; 0075 bool isUserCheckable () const; 0076 virtual Marble::RenderPlugin::RenderType renderType () const; 0077 void setUserCheckable (bool isUserCheckable); 0078 signals: 0079 void userCheckableChanged (bool isUserCheckable); 0080 }; 0081 // RenderPlugin 0082 0083 }; 0084 // Marble 0085 0086