[Kde-bindings] KDE/kdebindings/csharp/qyoto
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Tue Jun 26 09:36:25 UTC 2007
SVN commit 680465 by rdale:
* Fixed a bug parsing Q_PROPERTIES which messed up the code generation
* Code for nested classes is now generated
CCMAIL: kde-bindings at kde.org
M +5 -0 ChangeLog
M +16 -0 core/QAbstractFileEngine.cs
A core/QAbstractFileEngineIterator.cs
M +10 -40 gui/QApplication.cs
M +1 -1 gui/QDockWidget.cs
M +9 -0 gui/QInputMethodEvent.cs
M +22 -0 gui/QPainterPath.cs
M +40 -0 gui/QTextBlock.cs
M +46 -0 gui/QTextFrame.cs
--- trunk/KDE/kdebindings/csharp/qyoto/ChangeLog #680464:680465
@@ -1,3 +1,8 @@
+2007-06-26 Richard Dale <rdale at foton.es>
+
+ * Fixed a bug parsing Q_PROPERTIES which messed up the code generation
+ * Code for nested classes is now generated
+
2007-06-25 Arno Rehn <arno at arnorehn.de>
* Made a seperate assembly out of the QScintilla namespace.
--- trunk/KDE/kdebindings/csharp/qyoto/core/QAbstractFileEngine.cs #680464:680465
@@ -9,6 +9,22 @@
protected SmokeInvocation interceptor = null;
private IntPtr smokeObject;
protected QAbstractFileEngine(Type dummy) {}
+
+
+ [SmokeClass("QAbstractFileEngine::ExtensionOption")]
+ public class ExtensionOption : Object {
+ protected SmokeInvocation interceptor = null;
+ private IntPtr smokeObject;
+ protected ExtensionOption(Type dummy) {}
+ }
+
+
+ [SmokeClass("QAbstractFileEngine::ExtensionReturn")]
+ public class ExtensionReturn : Object {
+ protected SmokeInvocation interceptor = null;
+ private IntPtr smokeObject;
+ protected ExtensionReturn(Type dummy) {}
+ }
protected void CreateProxy() {
interceptor = new SmokeInvocation(typeof(QAbstractFileEngine), this);
}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QApplication.cs #680464:680465
@@ -44,8 +44,8 @@
}
[Q_PROPERTY("int", "doubleClickInterval")]
public int DoubleClickInterval {
- get { return (int) interceptor.Invoke("READ", "READ()", typeof(int)); }
- set { interceptor.Invoke("WRITE$", "WRITE(int)", typeof(void), typeof(int), value); }
+ get { return (int) interceptor.Invoke("doubleClickInterval", "doubleClickInterval()", typeof(int)); }
+ set { interceptor.Invoke("setDoubleClickInterval$", "setDoubleClickInterval(int)", typeof(void), typeof(int), value); }
}
[Q_PROPERTY("int", "keyboardInputInterval")]
public int KeyboardInputInterval {
@@ -54,8 +54,8 @@
}
[Q_PROPERTY("int", "wheelScrollLines")]
public int WheelScrollLines {
- get { return (int) interceptor.Invoke("READ", "READ()", typeof(int)); }
- set { interceptor.Invoke("WRITE$", "WRITE(int)", typeof(void), typeof(int), value); }
+ get { return (int) interceptor.Invoke("wheelScrollLines", "wheelScrollLines()", typeof(int)); }
+ set { interceptor.Invoke("setWheelScrollLines$", "setWheelScrollLines(int)", typeof(void), typeof(int), value); }
}
[Q_PROPERTY("QSize", "globalStrut")]
public QSize GlobalStrut {
@@ -64,18 +64,18 @@
}
[Q_PROPERTY("int", "startDragTime")]
public int StartDragTime {
- get { return (int) interceptor.Invoke("READ", "READ()", typeof(int)); }
- set { interceptor.Invoke("WRITE$", "WRITE(int)", typeof(void), typeof(int), value); }
+ get { return (int) interceptor.Invoke("startDragTime", "startDragTime()", typeof(int)); }
+ set { interceptor.Invoke("setStartDragTime$", "setStartDragTime(int)", typeof(void), typeof(int), value); }
}
[Q_PROPERTY("int", "startDragDistance")]
public int StartDragDistance {
- get { return (int) interceptor.Invoke("READ", "READ()", typeof(int)); }
- set { interceptor.Invoke("WRITE$", "WRITE(int)", typeof(void), typeof(int), value); }
+ get { return (int) interceptor.Invoke("startDragDistance", "startDragDistance()", typeof(int)); }
+ set { interceptor.Invoke("setStartDragDistance$", "setStartDragDistance(int)", typeof(void), typeof(int), value); }
}
[Q_PROPERTY("bool", "quitOnLastWindowClosed")]
public bool QuitOnLastWindowClosed {
- get { return (bool) interceptor.Invoke("READ", "READ()", typeof(bool)); }
- set { interceptor.Invoke("WRITE$", "WRITE(bool)", typeof(void), typeof(bool), value); }
+ get { return (bool) interceptor.Invoke("quitOnLastWindowClosed", "quitOnLastWindowClosed()", typeof(bool)); }
+ set { interceptor.Invoke("setQuitOnLastWindowClosed$", "setQuitOnLastWindowClosed(bool)", typeof(void), typeof(bool), value); }
}
[Q_PROPERTY("QString", "styleSheet")]
public string StyleSheet {
@@ -256,30 +256,6 @@
public static bool DesktopSettingsAware() {
return (bool) staticInterceptor.Invoke("desktopSettingsAware", "desktopSettingsAware()", typeof(bool));
}
- public static void SetDoubleClickInterval(int arg1) {
- staticInterceptor.Invoke("setDoubleClickInterval$", "setDoubleClickInterval(int)", typeof(void), typeof(int), arg1);
- }
- public static int doubleClickInterval() {
- return (int) staticInterceptor.Invoke("doubleClickInterval", "doubleClickInterval()", typeof(int));
- }
- public static void SetWheelScrollLines(int arg1) {
- staticInterceptor.Invoke("setWheelScrollLines$", "setWheelScrollLines(int)", typeof(void), typeof(int), arg1);
- }
- public static int wheelScrollLines() {
- return (int) staticInterceptor.Invoke("wheelScrollLines", "wheelScrollLines()", typeof(int));
- }
- public static void SetStartDragTime(int ms) {
- staticInterceptor.Invoke("setStartDragTime$", "setStartDragTime(int)", typeof(void), typeof(int), ms);
- }
- public static int startDragTime() {
- return (int) staticInterceptor.Invoke("startDragTime", "startDragTime()", typeof(int));
- }
- public static void SetStartDragDistance(int l) {
- staticInterceptor.Invoke("setStartDragDistance$", "setStartDragDistance(int)", typeof(void), typeof(int), l);
- }
- public static int startDragDistance() {
- return (int) staticInterceptor.Invoke("startDragDistance", "startDragDistance()", typeof(int));
- }
public static bool IsRightToLeft() {
return (bool) staticInterceptor.Invoke("isRightToLeft", "isRightToLeft()", typeof(bool));
}
@@ -306,12 +282,6 @@
Qyoto.SetApplicationTerminated();
return result;
}
- public static void SetQuitOnLastWindowClosed(bool quit) {
- staticInterceptor.Invoke("setQuitOnLastWindowClosed$", "setQuitOnLastWindowClosed(bool)", typeof(void), typeof(bool), quit);
- }
- public static bool quitOnLastWindowClosed() {
- return (bool) staticInterceptor.Invoke("quitOnLastWindowClosed", "quitOnLastWindowClosed()", typeof(bool));
- }
public static void CloseAllWindows() {
staticInterceptor.Invoke("closeAllWindows", "closeAllWindows()", typeof(void));
}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QDockWidget.cs #680464:680465
@@ -39,7 +39,7 @@
[Q_PROPERTY("Qt::DockWidgetAreas", "allowedAreas")]
public int AllowedAreas {
get { return (int) interceptor.Invoke("allowedAreas", "allowedAreas()", typeof(int)); }
- set { interceptor.Invoke("$", "(Qt::DockWidgetAreas)", typeof(void), typeof(int), value); }
+ set { interceptor.Invoke("setAllowedAreas$", "setAllowedAreas(Qt::DockWidgetAreas)", typeof(void), typeof(int), value); }
}
[Q_PROPERTY("QString", "windowTitle")]
public new string WindowTitle {
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QInputMethodEvent.cs #680464:680465
@@ -6,6 +6,15 @@
[SmokeClass("QInputMethodEvent")]
public class QInputMethodEvent : QEvent, IDisposable {
protected QInputMethodEvent(Type dummy) : base((Type) null) {}
+
+
+ [SmokeClass("QInputMethodEvent::Attribute")]
+ public class Attribute : Object {
+ protected SmokeInvocation interceptor = null;
+ private IntPtr smokeObject;
+ protected Attribute(Type dummy) {}
+ // Attribute(,,,); >>>> NOT CONVERTED
+ }
protected new void CreateProxy() {
interceptor = new SmokeInvocation(typeof(QInputMethodEvent), this);
}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QPainterPath.cs #680464:680465
@@ -9,6 +9,28 @@
protected SmokeInvocation interceptor = null;
private IntPtr smokeObject;
protected QPainterPath(Type dummy) {}
+
+
+ [SmokeClass("QPainterPath::Element")]
+ public class Element : Object {
+ protected SmokeInvocation interceptor = null;
+ private IntPtr smokeObject;
+ protected Element(Type dummy) {}
+ protected void CreateProxy() {
+ interceptor = new SmokeInvocation(typeof(Element), this);
+ }
+ // operator QPointF(); >>>> NOT CONVERTED
+ // bool operator==(); >>>> NOT CONVERTED
+ public bool IsMoveTo() {
+ return (bool) interceptor.Invoke("isMoveTo", "isMoveTo() const", typeof(bool));
+ }
+ public bool IsLineTo() {
+ return (bool) interceptor.Invoke("isLineTo", "isLineTo() const", typeof(bool));
+ }
+ public bool IsCurveTo() {
+ return (bool) interceptor.Invoke("isCurveTo", "isCurveTo() const", typeof(bool));
+ }
+ }
protected void CreateProxy() {
interceptor = new SmokeInvocation(typeof(QPainterPath), this);
}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QTextBlock.cs #680464:680465
@@ -8,6 +8,46 @@
protected SmokeInvocation interceptor = null;
private IntPtr smokeObject;
protected QTextBlock(Type dummy) {}
+
+
+ [SmokeClass("QTextBlock::iterator")]
+ public class iterator : Object, IDisposable {
+ protected SmokeInvocation interceptor = null;
+ private IntPtr smokeObject;
+ protected iterator(Type dummy) {}
+ protected void CreateProxy() {
+ interceptor = new SmokeInvocation(typeof(iterator), this);
+ }
+ private static SmokeInvocation staticInterceptor = null;
+ static iterator() {
+ staticInterceptor = new SmokeInvocation(typeof(iterator), null);
+ }
+ public QTextFragment Fragment() {
+ return (QTextFragment) interceptor.Invoke("fragment", "fragment() const", typeof(QTextFragment));
+ }
+ public bool AtEnd() {
+ return (bool) interceptor.Invoke("atEnd", "atEnd() const", typeof(bool));
+ }
+ public override bool Equals(object o) {
+ if (!(o is iterator)) { return false; }
+ return this == (iterator) o;
+ }
+ public override int GetHashCode() {
+ return interceptor.GetHashCode();
+ }
+ ~iterator() {
+ interceptor.Invoke("~iterator", "~iterator()", typeof(void));
+ }
+ public void Dispose() {
+ interceptor.Invoke("~iterator", "~iterator()", typeof(void));
+ }
+ public static bool operator==(iterator lhs, QTextBlock.iterator o) {
+ return (bool) staticInterceptor.Invoke("operator==#", "operator==(const QTextBlock::iterator&) const", typeof(bool), typeof(iterator), lhs, typeof(QTextBlock.iterator), o);
+ }
+ public static bool operator!=(iterator lhs, QTextBlock.iterator o) {
+ return !(bool) staticInterceptor.Invoke("operator==#", "operator==(const QTextBlock::iterator&) const", typeof(bool), typeof(iterator), lhs, typeof(QTextBlock.iterator), o);
+ }
+ }
protected void CreateProxy() {
interceptor = new SmokeInvocation(typeof(QTextBlock), this);
}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QTextFrame.cs #680464:680465
@@ -7,6 +7,52 @@
[SmokeClass("QTextFrame")]
public class QTextFrame : QTextObject, IDisposable {
protected QTextFrame(Type dummy) : base((Type) null) {}
+
+
+ [SmokeClass("QTextFrame::iterator")]
+ public class iterator : Object, IDisposable {
+ protected SmokeInvocation interceptor = null;
+ private IntPtr smokeObject;
+ protected iterator(Type dummy) {}
+ protected void CreateProxy() {
+ interceptor = new SmokeInvocation(typeof(iterator), this);
+ }
+ private static SmokeInvocation staticInterceptor = null;
+ static iterator() {
+ staticInterceptor = new SmokeInvocation(typeof(iterator), null);
+ }
+ public QTextFrame ParentFrame() {
+ return (QTextFrame) interceptor.Invoke("parentFrame", "parentFrame() const", typeof(QTextFrame));
+ }
+ public QTextFrame CurrentFrame() {
+ return (QTextFrame) interceptor.Invoke("currentFrame", "currentFrame() const", typeof(QTextFrame));
+ }
+ public QTextBlock CurrentBlock() {
+ return (QTextBlock) interceptor.Invoke("currentBlock", "currentBlock() const", typeof(QTextBlock));
+ }
+ public bool AtEnd() {
+ return (bool) interceptor.Invoke("atEnd", "atEnd() const", typeof(bool));
+ }
+ public override bool Equals(object o) {
+ if (!(o is iterator)) { return false; }
+ return this == (iterator) o;
+ }
+ public override int GetHashCode() {
+ return interceptor.GetHashCode();
+ }
+ ~iterator() {
+ interceptor.Invoke("~iterator", "~iterator()", typeof(void));
+ }
+ public void Dispose() {
+ interceptor.Invoke("~iterator", "~iterator()", typeof(void));
+ }
+ public static bool operator==(iterator lhs, QTextFrame.iterator o) {
+ return (bool) staticInterceptor.Invoke("operator==#", "operator==(const QTextFrame::iterator&) const", typeof(bool), typeof(iterator), lhs, typeof(QTextFrame.iterator), o);
+ }
+ public static bool operator!=(iterator lhs, QTextFrame.iterator o) {
+ return !(bool) staticInterceptor.Invoke("operator==#", "operator==(const QTextFrame::iterator&) const", typeof(bool), typeof(iterator), lhs, typeof(QTextFrame.iterator), o);
+ }
+ }
protected new void CreateProxy() {
interceptor = new SmokeInvocation(typeof(QTextFrame), this);
}
More information about the Kde-bindings
mailing list