[Kde-bindings] KDE/kdebindings
Arno Rehn
kde at arnorehn.de
Sun Aug 10 11:26:08 UTC 2008
SVN commit 844748 by arnorehn:
* Add some missing classes.
* Make uics work with KDE classes.
CCMAIL: kde-bindings at kde.org
M +3 -0 csharp/plasma/ChangeLog
M +9 -2 csharp/plasma/plasma/Plasma_Applet.cs
M +8 -15 csharp/plasma/plasma/Plasma_Dialog.cs
A csharp/plasma/plasma/Plasma_Extender.cs
A csharp/plasma/plasma/Plasma_ExtenderItem.cs
M +13 -0 csharp/plasma/src/PlasmaScripting_Applet.cs
M +4 -0 csharp/qyoto/ChangeLog
M +11 -23 csharp/qyoto/tools/uics/cs/cswriteincludes.cpp
M +2 -0 kalyptus/kalyptusCxxToKimono.pm
M +2 -0 smoke/plasma/classlist
M +2 -0 smoke/plasma/plasma_header_list
--- trunk/KDE/kdebindings/csharp/plasma/ChangeLog #844747:844748
@@ -1,3 +1,6 @@
+2008-08-10 Arno Rehn <arno at arnorehn.de>
+* Add some missing classes.
+
2008-08-09 Arno Rehn <arno at arnorehn.de>
* If necessary, initialize additional bindings in the ScriptEngine.
* If the class with the name of the main assembly and in the namespace
--- trunk/KDE/kdebindings/csharp/plasma/plasma/Plasma_Applet.cs #844747:844748
@@ -76,8 +76,6 @@
public bool ShouldConserveResources {
get { return (bool) interceptor.Invoke("shouldConserveResources", "shouldConserveResources()", typeof(bool)); }
}
- // void initExtenderItem(Plasma::ExtenderItem* arg1); >>>> NOT CONVERTED
- // Plasma::Extender* extender(); >>>> NOT CONVERTED
/// <remarks>
/// </remarks> <return> the id of this applet
/// </return>
@@ -474,10 +472,19 @@
/// @endcode
/// You can also add one or more custom qactions to this extender item in this function.
/// </remarks> <short> Get's called when and extender item has to be initialized after a plasma restart.</short>
+ [Q_SLOT("void initExtenderItem(ExtenderItem*)")]
+ [SmokeMethod("initExtenderItem(Plasma::ExtenderItem*)")]
+ public virtual void InitExtenderItem(Plasma.ExtenderItem item) {
+ interceptor.Invoke("initExtenderItem#", "initExtenderItem(Plasma::ExtenderItem*)", typeof(void), typeof(Plasma.ExtenderItem), item);
+ }
/// <remarks>
/// </remarks> <return> the extender this applet has.
/// </return>
/// <short> </short>
+ [Q_SLOT("Plasma::Extender* extender()")]
+ public Plasma.Extender Extender() {
+ return (Plasma.Extender) interceptor.Invoke("extender", "extender() const", typeof(Plasma.Extender));
+ }
/// <remarks>
/// This constructor is to be used with the plugin loading systems
/// found in KPluginInfo and KService. The argument list is expected
--- trunk/KDE/kdebindings/csharp/plasma/plasma/Plasma_Dialog.cs #844747:844748
@@ -34,22 +34,11 @@
CreateProxy();
interceptor.Invoke("Dialog", "Dialog()", typeof(void));
}
- /// <remarks>
- /// @arg event the event that is used to position the dialog. Usually, you want
- /// to pass this on from the mouseevent.
- /// @arg boundingRect the boundingRect() from the applet.
- /// @arg scenePos the absolute position on the scene.
- /// </remarks> <short> @arg event the event that is used to position the dialog.</short>
- public void position(QGraphicsSceneEvent arg1, QRectF boundingRect, QPointF scenePos) {
- interceptor.Invoke("position###", "position(QGraphicsSceneEvent*, const QRectF, QPointF)", typeof(void), typeof(QGraphicsSceneEvent), arg1, typeof(QRectF), boundingRect, typeof(QPointF), scenePos);
+ public void SetGraphicsWidget(QGraphicsWidget widget) {
+ interceptor.Invoke("setGraphicsWidget#", "setGraphicsWidget(QGraphicsWidget*)", typeof(void), typeof(QGraphicsWidget), widget);
}
- /// <remarks>
- /// @arg view The QGV where is displayed the applet
- /// @arg scenePos the absolute position on the scene.
- /// @arg boundingRect the boundingRect() from the applet.
- /// </remarks> <short> @arg view The QGV where is displayed the applet @arg scenePos the absolute position on the scene.</short>
- public void position(QGraphicsView view, QRectF boundingRect, QPointF scenePos) {
- interceptor.Invoke("position###", "position(QGraphicsView*, const QRectF, QPointF)", typeof(void), typeof(QGraphicsView), view, typeof(QRectF), boundingRect, typeof(QPointF), scenePos);
+ public QGraphicsWidget GraphicsWidget() {
+ return (QGraphicsWidget) interceptor.Invoke("graphicsWidget", "graphicsWidget()", typeof(QGraphicsWidget));
}
/// <remarks>
/// Reimplemented from QWidget
@@ -62,6 +51,10 @@
protected override void ResizeEvent(QResizeEvent e) {
interceptor.Invoke("resizeEvent#", "resizeEvent(QResizeEvent*)", typeof(void), typeof(QResizeEvent), e);
}
+ [SmokeMethod("eventFilter(QObject*, QEvent*)")]
+ protected new virtual bool EventFilter(QObject watched, QEvent arg2) {
+ return (bool) interceptor.Invoke("eventFilter##", "eventFilter(QObject*, QEvent*)", typeof(bool), typeof(QObject), watched, typeof(QEvent), arg2);
+ }
~Dialog() {
interceptor.Invoke("~Dialog", "~Dialog()", typeof(void));
}
--- trunk/KDE/kdebindings/csharp/plasma/src/PlasmaScripting_Applet.cs #844747:844748
@@ -434,6 +434,19 @@
[Q_SLOT("void init()")]
public virtual void Init() {
}
+ [Q_SLOT("void initExtenderItem(ExtenderItem*)")]
+ [SmokeMethod("initExtenderItem(Plasma::ExtenderItem*)")]
+ public virtual void InitExtenderItem(Plasma.ExtenderItem item) {
+ applet.InitExtenderItem(item);
+ }
+ /// <remarks>
+ /// </remarks> <return> the extender this applet has.
+ /// </return>
+ /// <short> </short>
+ [Q_SLOT("Plasma::Extender* extender()")]
+ public Plasma.Extender Extender() {
+ return applet.Extender();
+ }
public Applet(AppletScript parent) : base(parent) {
Connect(applet, SIGNAL("releaseVisualFocus()"), this, SIGNAL("releaseVisualFocus()"));
Connect(applet, SIGNAL("geometryChanged()"), this, SIGNAL("geometryChanged()"));
--- trunk/KDE/kdebindings/csharp/qyoto/ChangeLog #844747:844748
@@ -1,3 +1,7 @@
+2008-08-10 Arno Rehn <arno at arnorehn.de>
+
+ * Make uics work with KDE classes.
+
2008-08-09 Arno Rehn <arno at arnorehn.de>
* Fix TryDispose() for custom subclasses that don't implement Dispose().
--- trunk/KDE/kdebindings/csharp/qyoto/tools/uics/cs/cswriteincludes.cpp #844747:844748
@@ -58,7 +58,8 @@
void WriteIncludes::acceptUI(DomUI *node)
{
-/* m_includes.clear();
+ QStringList use;
+ m_includes.clear();
m_customWidgets.clear();
if (node->elementIncludes())
@@ -67,22 +68,6 @@
if (node->elementCustomWidgets())
TreeWalker::acceptCustomWidgets(node->elementCustomWidgets());
- add(QLatin1String("QApplication"));
- add(QLatin1String("QVariant"));
- add(QLatin1String("QAction"));
-
- add(QLatin1String("QButtonGroup")); // ### only if it is really necessary
-
- if (uic->hasExternalPixmap() && uic->pixmapFunction() == QLatin1String("qPixmapFromMimeSource"))
- add(QLatin1String("Q3Mimefactory"));
-
- if (uic->databaseInfo()->connections().size()) {
- add(QLatin1String("QSqlDatabase"));
- add(QLatin1String("Q3SqlCursor"));
- add(QLatin1String("QSqlRecord"));
- add(QLatin1String("Q3SqlForm"));
- }
-
TreeWalker::acceptUI(node);
QMapIterator<QString, bool> it(m_includes);
@@ -93,13 +78,16 @@
if (header.trimmed().isEmpty())
continue;
- if (it.value())
- output << "#include <" << header << ">\n";
- else
- output << "#include \"" << header << "\"\n";
+ if (header.toLower().startsWith("k") && !use.contains("Kimono"))
+ use << "Kimono";
+ else if (header.toLower().startsWith("ktexteditor") && !use.contains("KTextEditor"))
+ use << "KTextEditor";
}
- output << "\n";*/
- output << "using Qyoto;\n\n";
+ output << "using Qyoto;\n";
+ foreach (QString str, use) {
+ output << "using " << str << ";\n";
+ }
+ output << "\n";
}
void WriteIncludes::acceptWidget(DomWidget *node)
--- trunk/KDE/kdebindings/kalyptus/kalyptusCxxToKimono.pm #844747:844748
@@ -2986,6 +2986,8 @@
$propertyName = lc($1) . $2;
}
+ return ( '' ) if ($name eq '*');
+
$methodCode .= " [Q_PROPERTY(\"$resolvedType\", \"$name\")]\n";
if ( defined $overridenMethods->{$propertyName}{method} ) {
--- trunk/KDE/kdebindings/smoke/plasma/classlist #844747:844748
@@ -18,6 +18,8 @@
Plasma::DataEngineScript
Plasma::Delegate
Plasma::Dialog
+Plasma::Extender
+Plasma::ExtenderItem
Plasma::Flash
Plasma::Frame
Plasma::GLApplet
--- trunk/KDE/kdebindings/smoke/plasma/plasma_header_list #844747:844748
@@ -11,6 +11,8 @@
plasma/dataenginemanager.h
plasma/delegate.h
plasma/dialog.h
+plasma/extender.h
+plasma/extenderitem.h
plasma/glapplet.h
plasma/package.h
plasma/packagemetadata.h
More information about the Kde-bindings
mailing list