pykde4: fixup

This commit is contained in:
Ivailo Monev 2015-07-12 15:29:39 +03:00
parent 8e6239e2d7
commit b765275f3b
7 changed files with 1 additions and 385 deletions

View file

@ -1,300 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Plasma.GLApplet</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="../common/doxygen.css" />
<link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../common/kde.css" />
</head>
<body>
<div id="container">
<div id="header">
<div id="header_top">
<div>
<div>
<img alt ="" src="../common/top-kde.jpg"/>
KDE 4.9 PyKDE API Reference
</div>
</div>
</div>
<div id="header_bottom">
<div id="location">
<ul>
<li>KDE's Python API</li>
</ul>
</div>
<div id="menu">
<ul>
<li><a href="../modules.html">Overview</a></li>
<li><a href="http://techbase.kde.org/Development/Languages/Python">PyKDE Home</a></li>
<li><a href="http://kde.org/family/">Sitemap</a></li>
<li><a href="http://kde.org/contact/">Contact Us</a></li>
</ul>
</div>
</div>
</div>
<div id="body_wrapper">
<div id="body">
<div id="right">
<div class="content">
<div id="main">
<div class="clearer">&nbsp;</div>
<h1>GLApplet Class Reference</h1>
<code>from PyKDE4.plasma import *</code>
<p>
Inherits: <a href="../plasma/Plasma.Applet.html">Plasma.Applet</a> &#x2192; QGraphicsWidget &#x2192; QObject<br />
Namespace: <a href="../plasma/Plasma.html">Plasma</a><br />
<h2>Detailed Description</h2>
<p>GLApplet plasma/glapplet.h &lt;Plasma/GLApplet&gt;
</p>
<p>
Plasma Applet that is fully rendered using OpengGL
</p>
<table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><br><h2>Methods</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#GLApplet">__init__</a> (self, QGraphicsItem parent, QString serviceId, int appletId)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#GLApplet">__init__</a> (self, QObject parent, [QVariant] args)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#bindTexture">bindTexture</a> (self, QImage image, long target=GL_TEXTURE_2D)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#deleteTexture">deleteTexture</a> (self, long texture_id)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#makeCurrent">makeCurrent</a> (self)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#paintGLInterface">paintGLInterface</a> (self, QPainter painter, QStyleOptionGraphicsItem option)</td></tr>
</table>
<hr><h2>Method Documentation</h2><a class="anchor" name="GLApplet"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">__init__</td>
<td>(</td>
<td class="paramtype">&nbsp;<em>self</em>, </td>
<td class="paramname"></td>
</tr><tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">QGraphicsItem&nbsp;</td>
<td class="paramname"><em>parent</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">QString&nbsp;</td>
<td class="paramname"><em>serviceId</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"><em>appletId</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"><p></p><dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign="top"><em>parent</em>&nbsp;</td><td> the QGraphicsItem this applet is parented to
<tr><td></td><td valign="top"><em>serviceId</em>&nbsp;</td><td> the name of the .desktop file containing the
information about the widget
<tr><td></td><td valign="top"><em>appletId</em>&nbsp;</td><td> a unique id used to differentiate between multiple
instances of the same Applet type
</td></tr>
</table></dl>
<p>
</p></div></div><a class="anchor" name="GLApplet"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">__init__</td>
<td>(</td>
<td class="paramtype">&nbsp;<em>self</em>, </td>
<td class="paramname"></td>
</tr><tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">QObject&nbsp;</td>
<td class="paramname"><em>parent</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">[QVariant]&nbsp;</td>
<td class="paramname"><em>args</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"><p>This constructor is to be used with the plugin loading systems
found in KPluginInfo and KService. The argument list is expected
to have two elements: the KService service ID for the desktop entry
and an applet ID which must be a base 10 number.
</p>
<p>
</p><dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign="top"><em>parent</em>&nbsp;</td><td> a QObject parent; you probably want to pass in 0
<tr><td></td><td valign="top"><em>args</em>&nbsp;</td><td> a list of strings containing two entries: the service id
and the applet id
</td></tr>
</table></dl>
<p>
</p></div></div><a class="anchor" name="bindTexture"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">long bindTexture</td>
<td>(</td>
<td class="paramtype">&nbsp;<em>self</em>, </td>
<td class="paramname"></td>
</tr><tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">QImage&nbsp;</td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">long&nbsp;</td>
<td class="paramname"><em>target=GL_TEXTURE_2D</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"></div></div><a class="anchor" name="deleteTexture"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"> deleteTexture</td>
<td>(</td>
<td class="paramtype">&nbsp;<em>self</em>, </td>
<td class="paramname"></td>
</tr><tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">long&nbsp;</td>
<td class="paramname"><em>texture_id</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"></div></div><a class="anchor" name="makeCurrent"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"> makeCurrent</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname"><em>self</em>&nbsp;)</td>
<td width="100%"> </td>
</tr>
</table>
</div>
<div class="memdoc"></div></div><a class="anchor" name="paintGLInterface"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"> paintGLInterface</td>
<td>(</td>
<td class="paramtype">&nbsp;<em>self</em>, </td>
<td class="paramname"></td>
</tr><tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">QPainter&nbsp;</td>
<td class="paramname"><em>painter</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">QStyleOptionGraphicsItem&nbsp;</td>
<td class="paramname"><em>option</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"><p>Reimplement this method to render using OpenGL. QPainter passed
to this method will always use OpenGL engine and rendering
using OpenGL api directly is supported.
</p></div></div>
</div>
</div>
</div>
<div id="left">
<div class="menu_box">
<div class="nav_list">
<ul>
<li><a href="../allclasses.html">Full Index</a></li>
</ul>
</div>
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">Modules</h2>
</div></div>
<div class="nav_list">
<ul><li><a href="../akonadi/index.html">akonadi</a></li>
<li><a href="../dnssd/index.html">dnssd</a></li>
<li><a href="../kdecore/index.html">kdecore</a></li>
<li><a href="../kdeui/index.html">kdeui</a></li>
<li><a href="../khtml/index.html">khtml</a></li>
<li><a href="../kio/index.html">kio</a></li>
<li><a href="../knewstuff/index.html">knewstuff</a></li>
<li><a href="../kparts/index.html">kparts</a></li>
<li><a href="../kutils/index.html">kutils</a></li>
<li><a href="../nepomuk/index.html">nepomuk</a></li>
<li><a href="../phonon/index.html">phonon</a></li>
<li><a href="../plasma/index.html">plasma</a></li>
<li><a href="../polkitqt/index.html">polkitqt</a></li>
<li><a href="../solid/index.html">solid</a></li>
<li><a href="../soprano/index.html">soprano</a></li>
</ul></div></div>
</div>
</div>
<div class="clearer"/>
</div>
<div id="end_body"></div>
</div>
<div id="footer"><div id="footer_text">
This documentation is maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;simon&#64;simonzone&#46;com">Simon Edwards</a>.<br />
KDE<sup>&#174;</sup> and <a href="../images/kde_gear_black.png">the K Desktop Environment<sup>&#174;</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
<a href="http://www.kde.org/contact/impressum.php">Legal</a>
</div></div>
</body>
</html>

View file

@ -14,7 +14,7 @@ class MainWindow (KMainWindow):
self.resize(640, 480)
factory = KLibLoader.self().factory("katepart")
factory = KLibrary("katepart").factory()
part = factory.create(self, "KatePart")
self.setCentralWidget(part.widget())

View file

@ -49,7 +49,6 @@
#include <plasma/widgets/flashinglabel.h>
#include <plasma/widgets/frame.h>
#include <plasma/framesvg.h>
#include <plasma/glapplet.h>
#include <plasma/widgets/groupbox.h>
#include <plasma/widgets/iconwidget.h>
#include <plasma/widgets/itembackground.h>
@ -227,8 +226,6 @@ protected:
sipType = sipType_Plasma_AppletProtectedThunk;
else if (dynamic_cast<Plasma::Containment*>(sipCpp))
sipType = sipType_Plasma_Containment;
else if (dynamic_cast<Plasma::GLApplet*>(sipCpp))
sipType = sipType_Plasma_GLApplet;
else if (dynamic_cast<Plasma::PopupApplet*>(sipCpp))
sipType = sipType_Plasma_PopupApplet;
}

View file

@ -110,8 +110,6 @@ protected:
sipType = sipType_Plasma_AppletProtectedThunk;
else if (dynamic_cast<Plasma::Containment*>(sipCpp))
sipType = sipType_Plasma_Containment;
else if (dynamic_cast<Plasma::GLApplet*>(sipCpp))
sipType = sipType_Plasma_GLApplet;
else if (dynamic_cast<Plasma::PopupApplet*>(sipCpp))
sipType = sipType_Plasma_PopupApplet;
}
@ -231,7 +229,6 @@ public:
#include <plasma/widgets/flashinglabel.h>
#include <plasma/widgets/frame.h>
#include <plasma/framesvg.h>
#include <plasma/glapplet.h>
#include <plasma/widgets/groupbox.h>
#include <plasma/widgets/iconwidget.h>
#include <plasma/widgets/itembackground.h>

View file

@ -1,73 +0,0 @@
// Copyright 2008 Simon Edwards <simon@simonzone.com>
// Generated by twine
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, 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 Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//force
%Feature PyKDE_GLuint
%If (PyKDE_GLuint)
typedef unsigned int GLuint;
typedef unsigned int GLenum;
%End
namespace Plasma
{
//force
class GLApplet : Plasma::Applet
{
//force
%TypeHeaderCode
#include <plasma/glapplet.h>
%End
public:
GLApplet (QGraphicsItem* parent, const QString& serviceId, int appletId);
GLApplet (QObject* parent /TransferThis/, const QVariantList& args);
//mt undefined symbol: GLenum target -- need mapped type?
//mt undefined symbol: GLuint None -- need mapped type?
//mt GLuint bindTexture (const QImage& image, GLenum target = GL_TEXTURE_2D);
//mt undefined symbol: GLuint texture_id -- need mapped type?
//mt void deleteTexture (GLuint texture_id);
virtual void paintGLInterface (QPainter* painter, const QStyleOptionGraphicsItem* option);
void makeCurrent ();
~GLApplet ();
GLuint bindTexture (const QImage& image, GLenum target = GL_TEXTURE_2D);
void deleteTexture (GLuint texture_id);
private:
virtual void paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*);
virtual void paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&);
//end
};
// GLApplet
//end
};
// Plasma
//end

View file

@ -54,10 +54,6 @@ private:
//end
public:
//ig void publish (Plasma::AnnouncementMethods methods, const QString& name);
//FIXME missing implementation
//ig void unpublish (const QString& name = QString());
//ig bool isPublished () const;
QString contentsHash () const;
explicit Package ();
};
// Package

View file

@ -56,7 +56,6 @@
%Include extendergroup.sip
%Include extenderitem.sip
%Include framesvg.sip
%Include glapplet.sip
%Include package.sip
%Include packagemetadata.sip
%Include packagestructure.sip