summaryrefslogtreecommitdiffstats
path: root/qtsharp/src
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /qtsharp/src
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz
tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtsharp/src')
-rw-r--r--qtsharp/src/bindings/static/AlignmentFlags.cs2
-rw-r--r--qtsharp/src/bindings/static/ArrowType.cs2
-rw-r--r--qtsharp/src/bindings/static/BGMode.cs2
-rw-r--r--qtsharp/src/bindings/static/BackgroundMode.cs2
-rw-r--r--qtsharp/src/bindings/static/BrushStyle.cs2
-rw-r--r--qtsharp/src/bindings/static/ButtonState.cs2
-rw-r--r--qtsharp/src/bindings/static/CursorShape.cs2
-rw-r--r--qtsharp/src/bindings/static/DateFormat.cs2
-rw-r--r--qtsharp/src/bindings/static/Dock.cs2
-rw-r--r--qtsharp/src/bindings/static/GUIStyle.cs2
-rw-r--r--qtsharp/src/bindings/static/IQMenuData.cs126
-rw-r--r--qtsharp/src/bindings/static/ImageConversionFlags.cs2
-rw-r--r--qtsharp/src/bindings/static/Key.cs2
-rw-r--r--qtsharp/src/bindings/static/Modifier.cs2
-rw-r--r--qtsharp/src/bindings/static/Orientation.cs2
-rw-r--r--qtsharp/src/bindings/static/PaintUnit.cs2
-rw-r--r--qtsharp/src/bindings/static/PenCapStyle.cs2
-rw-r--r--qtsharp/src/bindings/static/PenJoinStyle.cs2
-rw-r--r--qtsharp/src/bindings/static/PenStyle.cs2
-rw-r--r--qtsharp/src/bindings/static/QApplication.cs182
-rw-r--r--qtsharp/src/bindings/static/QByteArray.cs18
-rw-r--r--qtsharp/src/bindings/static/QEventArgs.cs6
-rw-r--r--qtsharp/src/bindings/static/QGL.cs4
-rw-r--r--qtsharp/src/bindings/static/QMenuBar.cs282
-rw-r--r--qtsharp/src/bindings/static/QMenuData.cs188
-rw-r--r--qtsharp/src/bindings/static/QObject.cs126
-rw-r--r--qtsharp/src/bindings/static/QPopupMenu.cs278
-rw-r--r--qtsharp/src/bindings/static/QString.cs484
-rw-r--r--qtsharp/src/bindings/static/QStyle.cs180
-rw-r--r--qtsharp/src/bindings/static/QToolButton.cs46
-rw-r--r--qtsharp/src/bindings/static/QWidgetStack.cs44
-rw-r--r--qtsharp/src/bindings/static/QtSignal.cs160
-rw-r--r--qtsharp/src/bindings/static/QtSignalMap.cs6
-rw-r--r--qtsharp/src/bindings/static/QtSlot.cs46
-rw-r--r--qtsharp/src/bindings/static/QtSupport.cs248
-rw-r--r--qtsharp/src/bindings/static/RasterOp.cs2
-rw-r--r--qtsharp/src/bindings/static/StringComparisonMode.cs2
-rw-r--r--qtsharp/src/bindings/static/TextFlags.cs2
-rw-r--r--qtsharp/src/bindings/static/TextFormat.cs2
-rw-r--r--qtsharp/src/bindings/static/UIEffect.cs2
-rw-r--r--qtsharp/src/bindings/static/WidgetFlags.cs2
-rw-r--r--qtsharp/src/bindings/static/WidgetState.cs2
-rw-r--r--qtsharp/src/bindings/static/WindowsVersion.cs2
-rw-r--r--qtsharp/src/examples/samples/display.cs30
-rw-r--r--qtsharp/src/examples/samples/emit.cs12
-rw-r--r--qtsharp/src/examples/samples/eventhandling.cs12
-rw-r--r--qtsharp/src/examples/samples/hello.cs10
-rw-r--r--qtsharp/src/examples/samples/mandelbrot.cs84
-rw-r--r--qtsharp/src/examples/samples/mandelbrot2.cs88
-rw-r--r--qtsharp/src/examples/samples/qstring-slot.cs20
-rw-r--r--qtsharp/src/examples/samples/quantumfractals.cs146
-rw-r--r--qtsharp/src/examples/samples/scribblewindow.cs124
-rw-r--r--qtsharp/src/examples/test-results.html2
-rw-r--r--qtsharp/src/examples/tutorials/t1.cs4
-rw-r--r--qtsharp/src/examples/tutorials/t2.cs12
-rw-r--r--qtsharp/src/examples/tutorials/t3.cs14
-rw-r--r--qtsharp/src/examples/tutorials/t4.cs14
-rw-r--r--qtsharp/src/examples/tutorials/t5.cs20
-rw-r--r--qtsharp/src/examples/tutorials/t6.cs28
-rw-r--r--qtsharp/src/examples/tutorials/t7.cs36
-rw-r--r--qtsharp/src/generator/Converter.cs16
-rw-r--r--qtsharp/src/generator/ParseAPI.cs4
-rw-r--r--qtsharp/src/generator/Printer.cs6
-rw-r--r--qtsharp/src/generator/QTypeMap.cs364
-rw-r--r--qtsharp/src/libqtsharp/customslot.cpp80
-rw-r--r--qtsharp/src/libqtsharp/customslot.h164
-rw-r--r--qtsharp/src/libqtsharp/qtsharp.cpp162
-rw-r--r--qtsharp/src/libqtsharp/qtsharp.h54
-rw-r--r--qtsharp/src/tests/lookuptest.cs14
-rw-r--r--qtsharp/src/uicsharp/uicsharp.cs64
70 files changed, 2030 insertions, 2030 deletions
diff --git a/qtsharp/src/bindings/static/AlignmentFlags.cs b/qtsharp/src/bindings/static/AlignmentFlags.cs
index 4b6ca5c8..520c7ad0 100644
--- a/qtsharp/src/bindings/static/AlignmentFlags.cs
+++ b/qtsharp/src/bindings/static/AlignmentFlags.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/ArrowType.cs b/qtsharp/src/bindings/static/ArrowType.cs
index 0abb3468..d11bbf45 100644
--- a/qtsharp/src/bindings/static/ArrowType.cs
+++ b/qtsharp/src/bindings/static/ArrowType.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/BGMode.cs b/qtsharp/src/bindings/static/BGMode.cs
index 5ee8abdb..c92a54bf 100644
--- a/qtsharp/src/bindings/static/BGMode.cs
+++ b/qtsharp/src/bindings/static/BGMode.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/BackgroundMode.cs b/qtsharp/src/bindings/static/BackgroundMode.cs
index 83100dc1..81c80a59 100644
--- a/qtsharp/src/bindings/static/BackgroundMode.cs
+++ b/qtsharp/src/bindings/static/BackgroundMode.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/BrushStyle.cs b/qtsharp/src/bindings/static/BrushStyle.cs
index 4605dbed..7fb5831a 100644
--- a/qtsharp/src/bindings/static/BrushStyle.cs
+++ b/qtsharp/src/bindings/static/BrushStyle.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/ButtonState.cs b/qtsharp/src/bindings/static/ButtonState.cs
index 9b058bd0..3cca899f 100644
--- a/qtsharp/src/bindings/static/ButtonState.cs
+++ b/qtsharp/src/bindings/static/ButtonState.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/CursorShape.cs b/qtsharp/src/bindings/static/CursorShape.cs
index 33f277e3..5d73d689 100644
--- a/qtsharp/src/bindings/static/CursorShape.cs
+++ b/qtsharp/src/bindings/static/CursorShape.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/DateFormat.cs b/qtsharp/src/bindings/static/DateFormat.cs
index 6572b43b..1b2e93c2 100644
--- a/qtsharp/src/bindings/static/DateFormat.cs
+++ b/qtsharp/src/bindings/static/DateFormat.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/Dock.cs b/qtsharp/src/bindings/static/Dock.cs
index 09f11da6..34875514 100644
--- a/qtsharp/src/bindings/static/Dock.cs
+++ b/qtsharp/src/bindings/static/Dock.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/GUIStyle.cs b/qtsharp/src/bindings/static/GUIStyle.cs
index d9e264b3..6fe4a287 100644
--- a/qtsharp/src/bindings/static/GUIStyle.cs
+++ b/qtsharp/src/bindings/static/GUIStyle.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/IQMenuData.cs b/qtsharp/src/bindings/static/IQMenuData.cs
index 2e1a5614..b9db26e8 100644
--- a/qtsharp/src/bindings/static/IQMenuData.cs
+++ b/qtsharp/src/bindings/static/IQMenuData.cs
@@ -1,4 +1,4 @@
-// QMenuData.cs - A Qt to C# binding.
+// TQMenuData.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -27,39 +27,39 @@ namespace Qt {
public interface IQMenuData {
Hashtable MenuConnections { get; }
uint Count ();
- int InsertItem (string text, QObject receiver, string member, QKeySequence accel, int identifier, int index);
- int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel, int identifier, int index);
- int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier, int index);
- int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier, int index);
+ int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index);
+ int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index);
+ int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index);
int InsertItem (string text, int identifier, int index);
- int InsertItem (QIconSet icon, string text, int identifier, int index);
- int InsertItem (string text, QPopupMenu popup, int identifier, int index);
- int InsertItem (QIconSet icon, string text, QPopupMenu popup, int identifier, int index);
- int InsertItem (QPixmap pixmap, int identifier, int index);
- int InsertItem (QIconSet icon, QPixmap pixmap, int identifier, int index);
- int InsertItem (QPixmap pixmap, QPopupMenu popup, int identifier, int index);
- int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup, int identifier, int index);
- int InsertItem (QWidget widget, int identifier, int index);
- int InsertItem (QIconSet icon, QCustomMenuItem custom, int identifier, int index);
- int InsertItem (QCustomMenuItem custom, int identifier, int index);
+ int InsertItem (TQIconSet icon, string text, int identifier, int index);
+ int InsertItem (string text, TQPopupMenu popup, int identifier, int index);
+ int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier, int index);
+ int InsertItem (TQPixmap pixmap, int identifier, int index);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier, int index);
+ int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier, int index);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier, int index);
+ int InsertItem (TQWidget widget, int identifier, int index);
+ int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier, int index);
+ int InsertItem (TQCustomMenuItem custom, int identifier, int index);
int InsertSeparator (int index);
void RemoveItem (int identifier);
void RemoveItemAt (int index);
void Clear ();
- QKeySequence Accel (int identifier);
- void SetAccel (QKeySequence key, int identifier);
- QIconSet IconSet (int identifier);
+ TQKeySequence Accel (int identifier);
+ void SetAccel (TQKeySequence key, int identifier);
+ TQIconSet IconSet (int identifier);
string Text (int identifier);
- QPixmap Pixmap (int identifier);
+ TQPixmap Pixmap (int identifier);
void SetWhatsThis (int identifier, string arg1);
string WhatsThis (int identifier);
void ChangeItem (int identifier, string text);
- void ChangeItem (int identifier, QPixmap pixmap);
- void ChangeItem (int identifier, QIconSet icon, string text);
- void ChangeItem (int identifier, QIconSet icon, QPixmap pixmap);
+ void ChangeItem (int identifier, TQPixmap pixmap);
+ void ChangeItem (int identifier, TQIconSet icon, string text);
+ void ChangeItem (int identifier, TQIconSet icon, TQPixmap pixmap);
void ChangeItem (string text, int identifier);
- void ChangeItem (QPixmap pixmap, int identifier);
- void ChangeItem (QIconSet icon, string text, int identifier);
+ void ChangeItem (TQPixmap pixmap, int identifier);
+ void ChangeItem (TQIconSet icon, string text, int identifier);
bool IsItemActive (int identifier);
bool IsItemEnabled (int identifier);
void SetItemEnabled (int identifier, bool enable);
@@ -67,49 +67,49 @@ namespace Qt {
void SetItemChecked (int identifier, bool check);
int IndexOf (int identifier);
void SetId (int index, int identifier);
- bool ConnectItem (int identifier, QObject receiver, string member);
- bool DisconnectItem (int identifier, QObject receiver, string member);
+ bool ConnectItem (int identifier, TQObject receiver, string member);
+ bool DisconnectItem (int identifier, TQObject receiver, string member);
bool SetItemParameter (int identifier, int param);
int ItemParameter (int identifier);
- QMenuItem FindItem (int identifier);
- QMenuItem FindItem (int identifier, QMenuData parent);
- QMenuItem FindPopup (QPopupMenu arg1, int[] index);
- int InsertItem (string text, QObject receiver, string member);
- int InsertItem (string text, QObject receiver, string member, QKeySequence accel);
- int InsertItem (string text, QObject receiver, string member, QKeySequence accel, int identifier);
- int InsertItem (QIconSet icon, string text, QObject receiver, string member);
- int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel);
- int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel, int identifier);
- int InsertItem (QPixmap pixmap, QObject receiver, string member);
- int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel);
- int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier);
- int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member);
- int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel);
- int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier);
+ TQMenuItem FindItem (int identifier);
+ TQMenuItem FindItem (int identifier, TQMenuData parent);
+ TQMenuItem FindPopup (TQPopupMenu arg1, int[] index);
+ int InsertItem (string text, TQObject receiver, string member);
+ int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel);
+ int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier);
+ int InsertItem (TQIconSet icon, string text, TQObject receiver, string member);
+ int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel);
+ int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier);
+ int InsertItem (TQPixmap pixmap, TQObject receiver, string member);
+ int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel);
+ int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier);
int InsertItem (string text);
int InsertItem (string text, int identifier);
- int InsertItem (QIconSet icon, string text);
- int InsertItem (QIconSet icon, string text, int identifier);
- int InsertItem (string text, QPopupMenu popup);
- int InsertItem (string text, QPopupMenu popup, int identifier);
- int InsertItem (QIconSet icon, string text, QPopupMenu popup);
- int InsertItem (QIconSet icon, string text, QPopupMenu popup, int identifier);
- int InsertItem (QPixmap pixmap);
- int InsertItem (QPixmap pixmap, int identifier);
- int InsertItem (QIconSet icon, QPixmap pixmap);
- int InsertItem (QIconSet icon, QPixmap pixmap, int identifier);
- int InsertItem (QPixmap pixmap, QPopupMenu popup);
- int InsertItem (QPixmap pixmap, QPopupMenu popup, int identifier);
- int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup);
- int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup, int identifier);
- int InsertItem (QWidget widget);
- int InsertItem (QWidget widget, int identifier);
- int InsertItem (QIconSet icon, QCustomMenuItem custom);
- int InsertItem (QIconSet icon, QCustomMenuItem custom, int identifier);
- int InsertItem (QCustomMenuItem custom);
- int InsertItem (QCustomMenuItem custom, int identifier);
+ int InsertItem (TQIconSet icon, string text);
+ int InsertItem (TQIconSet icon, string text, int identifier);
+ int InsertItem (string text, TQPopupMenu popup);
+ int InsertItem (string text, TQPopupMenu popup, int identifier);
+ int InsertItem (TQIconSet icon, string text, TQPopupMenu popup);
+ int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier);
+ int InsertItem (TQPixmap pixmap);
+ int InsertItem (TQPixmap pixmap, int identifier);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier);
+ int InsertItem (TQPixmap pixmap, TQPopupMenu popup);
+ int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup);
+ int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier);
+ int InsertItem (TQWidget widget);
+ int InsertItem (TQWidget widget, int identifier);
+ int InsertItem (TQIconSet icon, TQCustomMenuItem custom);
+ int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier);
+ int InsertItem (TQCustomMenuItem custom);
+ int InsertItem (TQCustomMenuItem custom, int identifier);
int InsertSeparator ();
- QMenuItem FindPopup (QPopupMenu arg1);
- //IntPtr QMenuData ();
+ TQMenuItem FindPopup (TQPopupMenu arg1);
+ //IntPtr TQMenuData ();
}
}
diff --git a/qtsharp/src/bindings/static/ImageConversionFlags.cs b/qtsharp/src/bindings/static/ImageConversionFlags.cs
index 010199bf..349b4e7a 100644
--- a/qtsharp/src/bindings/static/ImageConversionFlags.cs
+++ b/qtsharp/src/bindings/static/ImageConversionFlags.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/Key.cs b/qtsharp/src/bindings/static/Key.cs
index 1e02dd37..a1b0883b 100644
--- a/qtsharp/src/bindings/static/Key.cs
+++ b/qtsharp/src/bindings/static/Key.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/Modifier.cs b/qtsharp/src/bindings/static/Modifier.cs
index 74f1b376..722bb37b 100644
--- a/qtsharp/src/bindings/static/Modifier.cs
+++ b/qtsharp/src/bindings/static/Modifier.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/Orientation.cs b/qtsharp/src/bindings/static/Orientation.cs
index ab04bc29..757adef7 100644
--- a/qtsharp/src/bindings/static/Orientation.cs
+++ b/qtsharp/src/bindings/static/Orientation.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/PaintUnit.cs b/qtsharp/src/bindings/static/PaintUnit.cs
index 44463912..92ffd012 100644
--- a/qtsharp/src/bindings/static/PaintUnit.cs
+++ b/qtsharp/src/bindings/static/PaintUnit.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/PenCapStyle.cs b/qtsharp/src/bindings/static/PenCapStyle.cs
index dc8cc5d9..c7898c03 100644
--- a/qtsharp/src/bindings/static/PenCapStyle.cs
+++ b/qtsharp/src/bindings/static/PenCapStyle.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/PenJoinStyle.cs b/qtsharp/src/bindings/static/PenJoinStyle.cs
index 3d2d1fd6..ee8906f0 100644
--- a/qtsharp/src/bindings/static/PenJoinStyle.cs
+++ b/qtsharp/src/bindings/static/PenJoinStyle.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/PenStyle.cs b/qtsharp/src/bindings/static/PenStyle.cs
index ce6ac476..1ed224b2 100644
--- a/qtsharp/src/bindings/static/PenStyle.cs
+++ b/qtsharp/src/bindings/static/PenStyle.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/QApplication.cs b/qtsharp/src/bindings/static/QApplication.cs
index ee7e443a..61dd8019 100644
--- a/qtsharp/src/bindings/static/QApplication.cs
+++ b/qtsharp/src/bindings/static/QApplication.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -25,7 +25,7 @@ namespace Qt {
using System.Collections;
using System.Runtime.InteropServices;
- public class QApplication : QObject, IDisposable {
+ public class TQApplication : TQObject, IDisposable {
public enum Type {
Tty = 0,
@@ -51,9 +51,9 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QApplication (int argc, string[] argv);
- public QApplication (string[] argv) : this (QNull.Instance)
+ public TQApplication (string[] argv) : this (QNull.Instance)
{
- QObject.qApp = this;
+ TQObject.qApp = this;
qparent = null;
argv = ParseArguments (argv);
rawObject = qt_new_QApplication (argv.Length, argv);
@@ -63,9 +63,9 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QApplication1 (int argc, string[] argv, bool GUIenabled);
- public QApplication (string[] argv, bool GUIenabled) : this (QNull.Instance)
+ public TQApplication (string[] argv, bool GUIenabled) : this (QNull.Instance)
{
- QObject.qApp = this;
+ TQObject.qApp = this;
qparent = null;
argv = ParseArguments (argv);
rawObject = qt_new_QApplication1 (argv.Length, argv, GUIenabled);
@@ -75,9 +75,9 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QApplication2 (int argc, string[] argv, Type arg1);
- public QApplication (string[] argv, Type arg1) : this (QNull.Instance)
+ public TQApplication (string[] argv, Type arg1) : this (QNull.Instance)
{
- QObject.qApp = this;
+ TQObject.qApp = this;
qparent = null;
argv = ParseArguments (argv);
rawObject = qt_new_QApplication2 (argv.Length, argv, arg1);
@@ -87,9 +87,9 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QApplication3 (IntPtr dpy, uint visual, uint cmap);
- public QApplication (IntPtr dpy, uint visual, uint cmap) : this (QNull.Instance)
+ public TQApplication (IntPtr dpy, uint visual, uint cmap) : this (QNull.Instance)
{
- QObject.qApp = this;
+ TQObject.qApp = this;
qparent = null;
rawObject = qt_new_QApplication3 (dpy, visual, cmap);
RegisterObject (this);
@@ -98,9 +98,9 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QApplication4 (IntPtr dpy, int argc, string[] argv, uint visual, uint cmap);
- public QApplication (IntPtr dpy, string[] argv, uint visual, uint cmap) : this (QNull.Instance)
+ public TQApplication (IntPtr dpy, string[] argv, uint visual, uint cmap) : this (QNull.Instance)
{
- QObject.qApp = this;
+ TQObject.qApp = this;
qparent = null;
argv = ParseArguments (argv);
rawObject = qt_new_QApplication4 (dpy, argv.Length, argv, visual, cmap);
@@ -108,19 +108,19 @@ namespace Qt {
RegisterEventDelegate ();
}
- public QApplication (IntPtr dpy) : this (dpy, (uint) 0) {}
+ public TQApplication (IntPtr dpy) : this (dpy, (uint) 0) {}
- public QApplication (IntPtr dpy, uint visual) : this (dpy, visual, (uint) 0) {}
+ public TQApplication (IntPtr dpy, uint visual) : this (dpy, visual, (uint) 0) {}
- public QApplication (IntPtr dpy, string[] argv) : this (dpy, argv, (uint) 0) {}
+ public TQApplication (IntPtr dpy, string[] argv) : this (dpy, argv, (uint) 0) {}
- public QApplication (IntPtr dpy, string[] argv, uint visual) : this (dpy, argv, visual, (uint) 0) {}
+ public TQApplication (IntPtr dpy, string[] argv, uint visual) : this (dpy, argv, visual, (uint) 0) {}
- internal QApplication () : this (QNull.Instance) {}
+ internal TQApplication () : this (QNull.Instance) {}
- internal QApplication (QNull dummy) : base (QNull.Instance) {}
+ internal TQApplication (QNull dummy) : base (QNull.Instance) {}
- ~QApplication ()
+ ~TQApplication ()
{
Dispose (false);
}
@@ -204,37 +204,37 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_mainWidget (IntPtr raw);
- public QWidget MainWidget ()
+ public TQWidget MainWidget ()
{
- return (QWidget)LookupObject (qt_QApplication_mainWidget (rawObject), typeof(QWidget));
+ return (TQWidget)LookupObject (qt_QApplication_mainWidget (rawObject), typeof(TQWidget));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_setMainWidget (IntPtr raw, IntPtr arg1);
- public void SetMainWidget (QWidget arg1)
+ public void SetMainWidget (TQWidget arg1)
{
qt_QApplication_setMainWidget (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_polish (IntPtr raw, IntPtr arg1);
- public void Polish (QWidget arg1)
+ public void Polish (TQWidget arg1)
{
qt_QApplication_polish (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_focusWidget (IntPtr raw);
- public QWidget FocusWidget ()
+ public TQWidget FocusWidget ()
{
- return (QWidget)LookupObject (qt_QApplication_focusWidget (rawObject), typeof(QWidget));
+ return (TQWidget)LookupObject (qt_QApplication_focusWidget (rawObject), typeof(TQWidget));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_activeWindow (IntPtr raw);
- public QWidget ActiveWindow ()
+ public TQWidget ActiveWindow ()
{
- return (QWidget)LookupObject (qt_QApplication_activeWindow (rawObject), typeof(QWidget));
+ return (TQWidget)LookupObject (qt_QApplication_activeWindow (rawObject), typeof(TQWidget));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -288,23 +288,23 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QApplication_notify (IntPtr raw, IntPtr arg1, IntPtr arg2);
- public bool Notify (QObject arg1, QEvent arg2)
+ public bool Notify (TQObject arg1, TQEvent arg2)
{
return qt_QApplication_notify (rawObject, arg1.RawObject, arg2.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_setDefaultCodec (IntPtr raw, IntPtr arg1);
- public void SetDefaultCodec (QTextCodec arg1)
+ public void SetDefaultCodec (TQTextCodec arg1)
{
qt_QApplication_setDefaultCodec (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_defaultCodec (IntPtr raw);
- public QTextCodec DefaultCodec ()
+ public TQTextCodec DefaultCodec ()
{
- return (QTextCodec)LookupObject (qt_QApplication_defaultCodec (rawObject), typeof(QTextCodec));
+ return (TQTextCodec)LookupObject (qt_QApplication_defaultCodec (rawObject), typeof(TQTextCodec));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -325,7 +325,7 @@ namespace Qt {
private static extern IntPtr qt_QApplication_translate (IntPtr raw, string context, string key, string comment, Encoding encoding);
public string Translate (string context, string key, string comment, Encoding encoding)
{
- QString qstr = new QString (qt_QApplication_translate (rawObject, context, key, comment, encoding));
+ TQString qstr = new TQString (qt_QApplication_translate (rawObject, context, key, comment, encoding));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -354,7 +354,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QApplication_x11ClientMessage (IntPtr raw, IntPtr arg1, IntPtr arg2, bool passive_only);
- public int X11ClientMessage (QWidget arg1, IntPtr arg2, bool passive_only)
+ public int X11ClientMessage (TQWidget arg1, IntPtr arg2, bool passive_only)
{
return qt_QApplication_x11ClientMessage (rawObject, arg1.RawObject, arg2, passive_only);
}
@@ -375,7 +375,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_winFocus (IntPtr raw, IntPtr arg1, bool arg2);
- public void WinFocus (QWidget arg1, bool arg2)
+ public void WinFocus (TQWidget arg1, bool arg2)
{
qt_QApplication_winFocus (rawObject, arg1.RawObject, arg2);
}
@@ -391,7 +391,7 @@ namespace Qt {
private static extern IntPtr qt_QApplication_sessionId (IntPtr raw);
public string SessionId ()
{
- QString qstr = new QString (qt_QApplication_sessionId (rawObject));
+ TQString qstr = new TQString (qt_QApplication_sessionId (rawObject));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -483,23 +483,23 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_style ();
- public static QStyle Style ()
+ public static TQStyle Style ()
{
- return (QStyle)LookupObject (qt_QApplication_style (), typeof(QStyle));
+ return (TQStyle)LookupObject (qt_QApplication_style (), typeof(TQStyle));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_setStyle (IntPtr arg1);
- public static void SetStyle (QStyle arg1)
+ public static void SetStyle (TQStyle arg1)
{
qt_QApplication_setStyle (arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_setStyle1 (IntPtr arg1);
- public static QStyle SetStyle (string arg1)
+ public static TQStyle SetStyle (string arg1)
{
- return (QStyle)LookupObject (qt_QApplication_setStyle1 (new QString (arg1).RawObject), typeof(QStyle));
+ return (TQStyle)LookupObject (qt_QApplication_setStyle1 (new TQString (arg1).RawObject), typeof(TQStyle));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -510,8 +510,8 @@ namespace Qt {
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern void qt_QApplication_setColorMode (QApplication.ColorMode arg1);
- public static void SetColorMode (QApplication.ColorMode arg1)
+ private static extern void qt_QApplication_setColorMode (TQApplication.ColorMode arg1);
+ public static void SetColorMode (TQApplication.ColorMode arg1)
{
qt_QApplication_setColorMode (arg1);
}
@@ -532,14 +532,14 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_overrideCursor ();
- public static QCursor OverrideCursor ()
+ public static TQCursor OverrideCursor ()
{
- return (QCursor)LookupObject (qt_QApplication_overrideCursor (), typeof(QCursor));
+ return (TQCursor)LookupObject (qt_QApplication_overrideCursor (), typeof(TQCursor));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_setOverrideCursor (IntPtr arg1, bool replace);
- public static void SetOverrideCursor (QCursor arg1, bool replace)
+ public static void SetOverrideCursor (TQCursor arg1, bool replace)
{
qt_QApplication_setOverrideCursor (arg1.RawObject, replace);
}
@@ -567,72 +567,72 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_palette (IntPtr arg1);
- public static QPalette Palette (QWidget arg1)
+ public static TQPalette Palette (TQWidget arg1)
{
- return (QPalette)LookupObject (qt_QApplication_palette (arg1.RawObject), typeof(QPalette));
+ return (TQPalette)LookupObject (qt_QApplication_palette (arg1.RawObject), typeof(TQPalette));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_setPalette (IntPtr arg1, bool informWidgets, string className);
- public static void SetPalette (QPalette arg1, bool informWidgets, string className)
+ public static void SetPalette (TQPalette arg1, bool informWidgets, string className)
{
qt_QApplication_setPalette (arg1.RawObject, informWidgets, className);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_font (IntPtr arg1);
- public static QFont Font (QWidget arg1)
+ public static TQFont Font (TQWidget arg1)
{
- return (QFont)LookupObject (qt_QApplication_font (arg1.RawObject), typeof(QFont));
+ return (TQFont)LookupObject (qt_QApplication_font (arg1.RawObject), typeof(TQFont));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_setFont (IntPtr arg1, bool informWidgets, string className);
- public static void SetFont (QFont arg1, bool informWidgets, string className)
+ public static void SetFont (TQFont arg1, bool informWidgets, string className)
{
qt_QApplication_setFont (arg1.RawObject, informWidgets, className);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_fontMetrics ();
- public static QFontMetrics FontMetrics ()
+ public static TQFontMetrics FontMetrics ()
{
- return (QFontMetrics)LookupObject (qt_QApplication_fontMetrics (), typeof(QFontMetrics));
+ return (TQFontMetrics)LookupObject (qt_QApplication_fontMetrics (), typeof(TQFontMetrics));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_allWidgets ();
- public static QWidgetList AllWidgets ()
+ public static TQWidgetList AllWidgets ()
{
- return (QWidgetList)LookupObject (qt_QApplication_allWidgets (), typeof(QWidgetList));
+ return (TQWidgetList)LookupObject (qt_QApplication_allWidgets (), typeof(TQWidgetList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_topLevelWidgets ();
- public static QWidgetList TopLevelWidgets ()
+ public static TQWidgetList TopLevelWidgets ()
{
- return (QWidgetList)LookupObject (qt_QApplication_topLevelWidgets (), typeof(QWidgetList));
+ return (TQWidgetList)LookupObject (qt_QApplication_topLevelWidgets (), typeof(TQWidgetList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_desktop ();
- public static QDesktopWidget Desktop ()
+ public static TQDesktopWidget Desktop ()
{
- return (QDesktopWidget)LookupObject (qt_QApplication_desktop (), typeof(QDesktopWidget));
+ return (TQDesktopWidget)LookupObject (qt_QApplication_desktop (), typeof(TQDesktopWidget));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_activePopupWidget ();
- public static QWidget ActivePopupWidget ()
+ public static TQWidget ActivePopupWidget ()
{
- return (QWidget)LookupObject (qt_QApplication_activePopupWidget (), typeof(QWidget));
+ return (TQWidget)LookupObject (qt_QApplication_activePopupWidget (), typeof(TQWidget));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_activeModalWidget ();
- public static QWidget ActiveModalWidget ()
+ public static TQWidget ActiveModalWidget ()
{
- return (QWidget)LookupObject (qt_QApplication_activeModalWidget (), typeof(QWidget));
+ return (TQWidget)LookupObject (qt_QApplication_activeModalWidget (), typeof(TQWidget));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -644,16 +644,16 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_widgetAt (int x, int y, bool child);
- public static QWidget WidgetAt (int x, int y, bool child)
+ public static TQWidget WidgetAt (int x, int y, bool child)
{
- return (QWidget)LookupObject (qt_QApplication_widgetAt (x, y, child), typeof(QWidget));
+ return (TQWidget)LookupObject (qt_QApplication_widgetAt (x, y, child), typeof(TQWidget));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_widgetAt1 (IntPtr arg1, bool child);
- public static QWidget WidgetAt (QPoint arg1, bool child)
+ public static TQWidget WidgetAt (TQPoint arg1, bool child)
{
- return (QWidget)LookupObject (qt_QApplication_widgetAt1 (arg1.RawObject, child), typeof(QWidget));
+ return (TQWidget)LookupObject (qt_QApplication_widgetAt1 (arg1.RawObject, child), typeof(TQWidget));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -665,7 +665,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_sendPostedEvents (IntPtr receiver, int event_type);
- public static void SendPostedEvents (QObject receiver, int event_type)
+ public static void SendPostedEvents (TQObject receiver, int event_type)
{
qt_QApplication_sendPostedEvents (receiver.RawObject, event_type);
}
@@ -679,7 +679,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_removePostedEvents (IntPtr receiver);
- public static void RemovePostedEvents (QObject receiver)
+ public static void RemovePostedEvents (TQObject receiver)
{
qt_QApplication_removePostedEvents (receiver.RawObject);
}
@@ -728,16 +728,16 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_setWinStyleHighlightColor (IntPtr c);
- public static void SetWinStyleHighlightColor (QColor c)
+ public static void SetWinStyleHighlightColor (TQColor c)
{
qt_QApplication_setWinStyleHighlightColor (c.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_winStyleHighlightColor ();
- public static QColor WinStyleHighlightColor ()
+ public static TQColor WinStyleHighlightColor ()
{
- return (QColor)LookupObject (qt_QApplication_winStyleHighlightColor (), typeof(QColor));
+ return (TQColor)LookupObject (qt_QApplication_winStyleHighlightColor (), typeof(TQColor));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -798,44 +798,44 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_setGlobalStrut (IntPtr arg1);
- public static void SetGlobalStrut (QSize arg1)
+ public static void SetGlobalStrut (TQSize arg1)
{
qt_QApplication_setGlobalStrut (arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_globalStrut ();
- public static QSize GlobalStrut ()
+ public static TQSize GlobalStrut ()
{
- return (QSize)LookupObject (qt_QApplication_globalStrut (), typeof(QSize));
+ return (TQSize)LookupObject (qt_QApplication_globalStrut (), typeof(TQSize));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_setLibraryPaths (IntPtr arg1);
- public static void SetLibraryPaths (QStringList arg1)
+ public static void SetLibraryPaths (TQStringList arg1)
{
qt_QApplication_setLibraryPaths (arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QApplication_libraryPaths ();
- public static QStringList LibraryPaths ()
+ public static TQStringList LibraryPaths ()
{
- return (QStringList)LookupObject (qt_QApplication_libraryPaths (), typeof(QStringList));
+ return (TQStringList)LookupObject (qt_QApplication_libraryPaths (), typeof(TQStringList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_addLibraryPath (IntPtr arg1);
public static void AddLibraryPath (string arg1)
{
- qt_QApplication_addLibraryPath (new QString (arg1).RawObject);
+ qt_QApplication_addLibraryPath (new TQString (arg1).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QApplication_removeLibraryPath (IntPtr arg1);
public static void RemoveLibraryPath (string arg1)
{
- qt_QApplication_removeLibraryPath (new QString (arg1).RawObject);
+ qt_QApplication_removeLibraryPath (new TQString (arg1).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -970,47 +970,47 @@ namespace Qt {
SetEnableRemoteControl(enable, new QUuid ());
}
- public static void SetOverrideCursor (QCursor arg1)
+ public static void SetOverrideCursor (TQCursor arg1)
{
SetOverrideCursor(arg1, false);
}
- public static QPalette Palette ()
+ public static TQPalette Palette ()
{
- return Palette(new QWidget ());
+ return Palette(new TQWidget ());
}
- public static void SetPalette (QPalette arg1)
+ public static void SetPalette (TQPalette arg1)
{
SetPalette(arg1, false);
}
- public static void SetPalette (QPalette arg1, bool informWidgets)
+ public static void SetPalette (TQPalette arg1, bool informWidgets)
{
SetPalette(arg1, informWidgets, "");
}
- public static QFont Font ()
+ public static TQFont Font ()
{
- return Font(new QWidget ());
+ return Font(new TQWidget ());
}
- public static void SetFont (QFont arg1)
+ public static void SetFont (TQFont arg1)
{
SetFont(arg1, false);
}
- public static void SetFont (QFont arg1, bool informWidgets)
+ public static void SetFont (TQFont arg1, bool informWidgets)
{
SetFont(arg1, informWidgets, "");
}
- public static QWidget WidgetAt (int x, int y)
+ public static TQWidget WidgetAt (int x, int y)
{
return WidgetAt(x, y, false);
}
- public static QWidget WidgetAt (QPoint arg1)
+ public static TQWidget WidgetAt (TQPoint arg1)
{
return WidgetAt(arg1, false);
}
diff --git a/qtsharp/src/bindings/static/QByteArray.cs b/qtsharp/src/bindings/static/QByteArray.cs
index 5bb37574..ca910191 100644
--- a/qtsharp/src/bindings/static/QByteArray.cs
+++ b/qtsharp/src/bindings/static/QByteArray.cs
@@ -1,4 +1,4 @@
-// QByteArray.cs - A Qt to C# binding.
+// TQByteArray.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -24,11 +24,11 @@ namespace Qt {
using System;
using System.Runtime.InteropServices;
- public class QByteArray : QMemArray, IDisposable {
+ public class TQByteArray : TQMemArray, IDisposable {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QByteArray ();
- public QByteArray () : this (QNull.Instance)
+ public TQByteArray () : this (QNull.Instance)
{
rawObject = qt_new_QByteArray ();
RegisterObject (this);
@@ -36,21 +36,21 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QByteArray1 (int size);
- public QByteArray (int size) : this (QNull.Instance)
+ public TQByteArray (int size) : this (QNull.Instance)
{
rawObject = qt_new_QByteArray1 (size);
RegisterObject (this);
}
- internal QByteArray (IntPtr ptr) : this (QNull.Instance)
+ internal TQByteArray (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
RegisterObject(this);
}
- internal QByteArray (QNull dummy) : base (QNull.Instance) {}
+ internal TQByteArray (QNull dummy) : base (QNull.Instance) {}
- ~QByteArray ()
+ ~TQByteArray ()
{
Dispose (false);
}
@@ -69,9 +69,9 @@ namespace Qt {
(IntPtr rawObject, [MarshalAs(UnmanagedType.LPArray)] byte[] b,
uint length );
- public static implicit operator QByteArray (byte[] bArray)
+ public static implicit operator TQByteArray (byte[] bArray)
{
- QByteArray qbArray = new QByteArray (bArray.Length);
+ TQByteArray qbArray = new TQByteArray (bArray.Length);
qbArray.rawObject =
qt_QByteArray_assign1 (qbArray.rawObject, bArray, (uint) bArray.Length);
GC.KeepAlive (bArray);
diff --git a/qtsharp/src/bindings/static/QEventArgs.cs b/qtsharp/src/bindings/static/QEventArgs.cs
index f4264911..d7f07570 100644
--- a/qtsharp/src/bindings/static/QEventArgs.cs
+++ b/qtsharp/src/bindings/static/QEventArgs.cs
@@ -23,10 +23,10 @@ namespace Qt {
using System;
public class QEventArgs : EventArgs {
- private QEvent qevent;
+ private TQEvent qevent;
private string name;
- public QEvent Event {
+ public TQEvent Event {
get { return qevent; }
}
@@ -34,7 +34,7 @@ namespace Qt {
get { return name; }
}
- public QEventArgs(string n, QEvent e) {
+ public QEventArgs(string n, TQEvent e) {
qevent = e;
name = n;
}
diff --git a/qtsharp/src/bindings/static/QGL.cs b/qtsharp/src/bindings/static/QGL.cs
index f95a645f..6a994fb0 100644
--- a/qtsharp/src/bindings/static/QGL.cs
+++ b/qtsharp/src/bindings/static/QGL.cs
@@ -1,4 +1,4 @@
-// QGL.cs - A Qt to C# binding.
+// TQGL.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -22,7 +22,7 @@ namespace Qt {
using Qt;
- public class QGL {
+ public class TQGL {
public enum FormatOption {
DoubleBuffer = 1,
diff --git a/qtsharp/src/bindings/static/QMenuBar.cs b/qtsharp/src/bindings/static/QMenuBar.cs
index 405d7dd0..1c6993bb 100644
--- a/qtsharp/src/bindings/static/QMenuBar.cs
+++ b/qtsharp/src/bindings/static/QMenuBar.cs
@@ -1,4 +1,4 @@
-// QMenuBar.cs - A Qt to C# binding.
+// TQMenuBar.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -28,7 +28,7 @@ namespace Qt {
using System.Collections;
using System.Runtime.InteropServices;
- public class QMenuBar : QFrame, IQMenuData, IDisposable {
+ public class TQMenuBar : TQFrame, IQMenuData, IDisposable {
private Hashtable menuConnections;
@@ -43,31 +43,31 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QMenuBar (IntPtr parent, string name);
- public QMenuBar (QWidget parent, string name) : this (QNull.Instance)
+ public TQMenuBar (TQWidget parent, string name) : this (QNull.Instance)
{
qparent = parent;
- if (qparent == null) parent = new QWidget (IntPtr.Zero);
+ if (qparent == null) parent = new TQWidget (IntPtr.Zero);
rawObject = qt_new_QMenuBar (parent.RawObject, name);
if (qparent == null) RegisterObject (this);
else qparent.AddChild (this);
}
- public QMenuBar () : this (new QWidget ()) {}
+ public TQMenuBar () : this (new TQWidget ()) {}
- public QMenuBar (QWidget parent) : this (parent, "") {}
+ public TQMenuBar (TQWidget parent) : this (parent, "") {}
- internal QMenuBar (IntPtr ptr) : this (QNull.Instance)
+ internal TQMenuBar (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
RegisterObject(this);
}
- internal QMenuBar (QNull dummy) : base (QNull.Instance)
+ internal TQMenuBar (QNull dummy) : base (QNull.Instance)
{
menuConnections = new Hashtable();
}
- ~QMenuBar ()
+ ~TQMenuBar ()
{
Dispose (false);
}
@@ -105,7 +105,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuBar_eventFilter (IntPtr raw, IntPtr arg1, IntPtr arg2);
- public bool EventFilter (QObject arg1, QEvent arg2)
+ public bool EventFilter (TQObject arg1, TQEvent arg2)
{
return qt_QMenuBar_eventFilter (rawObject, arg1.RawObject, arg2.RawObject);
}
@@ -118,15 +118,15 @@ namespace Qt {
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern QMenuBar.Separator qt_QMenuBar_separator (IntPtr raw);
- public QMenuBar.Separator TheSeparator ()
+ private static extern TQMenuBar.Separator qt_QMenuBar_separator (IntPtr raw);
+ public TQMenuBar.Separator TheSeparator ()
{
return qt_QMenuBar_separator (rawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern void qt_QMenuBar_setSeparator (IntPtr raw, QMenuBar.Separator when);
- public void SetSeparator (QMenuBar.Separator when)
+ private static extern void qt_QMenuBar_setSeparator (IntPtr raw, TQMenuBar.Separator when);
+ public void SetSeparator (TQMenuBar.Separator when)
{
qt_QMenuBar_setSeparator (rawObject, when);
}
@@ -154,23 +154,23 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuBar_sizeHint (IntPtr raw);
- public QSize SizeHint ()
+ public TQSize SizeHint ()
{
- return (QSize)LookupObject (qt_QMenuBar_sizeHint (rawObject), typeof(QSize));
+ return (TQSize)LookupObject (qt_QMenuBar_sizeHint (rawObject), typeof(TQSize));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuBar_minimumSize (IntPtr raw);
- public QSize MinimumSize ()
+ public TQSize MinimumSize ()
{
- return (QSize)LookupObject (qt_QMenuBar_minimumSize (rawObject), typeof(QSize));
+ return (TQSize)LookupObject (qt_QMenuBar_minimumSize (rawObject), typeof(TQSize));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuBar_minimumSizeHint (IntPtr raw);
- public QSize MinimumSizeHint ()
+ public TQSize MinimumSizeHint ()
{
- return (QSize)LookupObject (qt_QMenuBar_minimumSizeHint (rawObject), typeof(QSize));
+ return (TQSize)LookupObject (qt_QMenuBar_minimumSizeHint (rawObject), typeof(TQSize));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -196,14 +196,14 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuBar_drawContents (IntPtr raw, IntPtr arg1);
- protected void DrawContents (QPainter arg1)
+ protected void DrawContents (TQPainter arg1)
{
qt_QMenuBar_drawContents (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuBar_fontChange (IntPtr raw, IntPtr arg1);
- protected void FontChange (QFont arg1)
+ protected void FontChange (TQFont arg1)
{
qt_QMenuBar_fontChange (rawObject, arg1.RawObject);
}
@@ -224,14 +224,14 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuBar_styleChange (IntPtr raw, IntPtr arg1);
- protected void StyleChange (QStyle arg1)
+ protected void StyleChange (TQStyle arg1)
{
qt_QMenuBar_styleChange (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuBar_itemAtPos (IntPtr raw, IntPtr arg1);
- protected int ItemAtPos (QPoint arg1)
+ protected int ItemAtPos (TQPoint arg1)
{
return qt_QMenuBar_itemAtPos (rawObject, arg1.RawObject);
}
@@ -245,14 +245,14 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuBar_itemRect (IntPtr raw, int item);
- protected QRect ItemRect (int item)
+ protected TQRect ItemRect (int item)
{
- return (QRect)LookupObject (qt_QMenuBar_itemRect (rawObject, item), typeof(QRect));
+ return (TQRect)LookupObject (qt_QMenuBar_itemRect (rawObject, item), typeof(TQRect));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuBar_QMenuData (IntPtr raw);
- public IntPtr QMenuData ()
+ public IntPtr TQMenuData ()
{
return qt_QMenuBar_QMenuData (rawObject);
}
@@ -265,7 +265,7 @@ namespace Qt {
// This makes my brain hurt!
// :-) Mine too!
- public int InsertItem (string text, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (text, identifier, index);
SetAccel (accel, id);
@@ -273,7 +273,7 @@ namespace Qt {
return id;
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (icon, text, identifier, index);
SetAccel (accel, id);
@@ -281,7 +281,7 @@ namespace Qt {
return id;
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (pixmap, identifier, index);
SetAccel (accel, id);
@@ -289,7 +289,7 @@ namespace Qt {
return id;
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (icon, pixmap, identifier, index);
SetAccel (accel, id);
@@ -297,15 +297,15 @@ namespace Qt {
return id;
}
- public bool ConnectItem (int identifier, QObject receiver, string member)
+ public bool ConnectItem (int identifier, TQObject receiver, string member)
{
- return Qt.QMenuData.ConnectItem (this, QMenuData (), identifier, receiver, member);
+ return Qt.TQMenuData.ConnectItem (this, TQMenuData (), identifier, receiver, member);
}
- public bool DisconnectItem (int identifier, QObject receiver, string member)
+ public bool DisconnectItem (int identifier, TQObject receiver, string member)
{
- return Qt.QMenuData.DisconnectItem (this, QMenuData (), identifier, receiver, member);
+ return Qt.TQMenuData.DisconnectItem (this, TQMenuData (), identifier, receiver, member);
}
//********************* A temporary hack to divert connections to CSharpConnect *****************//
@@ -315,140 +315,140 @@ namespace Qt {
private static extern uint qt_QMenuData_count (IntPtr raw);
public uint Count ()
{
- return qt_QMenuData_count (QMenuData ());
+ return qt_QMenuData_count (TQMenuData ());
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem4 (IntPtr raw, IntPtr text, int identifier, int index);
public int InsertItem (string text, int identifier, int index)
{
- return qt_QMenuData_insertItem4 (QMenuData (), new QString (text).RawObject, identifier, index);
+ return qt_QMenuData_insertItem4 (TQMenuData (), new TQString (text).RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem5 (IntPtr raw, IntPtr icon, IntPtr text, int identifier, int index);
- public int InsertItem (QIconSet icon, string text, int identifier, int index)
+ public int InsertItem (TQIconSet icon, string text, int identifier, int index)
{
- return qt_QMenuData_insertItem5 (QMenuData (), icon.RawObject, new QString (text).RawObject, identifier, index);
+ return qt_QMenuData_insertItem5 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem6 (IntPtr raw, IntPtr text, IntPtr popup, int identifier, int index);
- public int InsertItem (string text, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (string text, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem6 (QMenuData (), new QString (text).RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem6 (TQMenuData (), new TQString (text).RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem7 (IntPtr raw, IntPtr icon, IntPtr text, IntPtr popup, int identifier, int index);
- public int InsertItem (QIconSet icon, string text, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem7 (QMenuData (), icon.RawObject, new QString (text).RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem7 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem8 (IntPtr raw, IntPtr pixmap, int identifier, int index);
- public int InsertItem (QPixmap pixmap, int identifier, int index)
+ public int InsertItem (TQPixmap pixmap, int identifier, int index)
{
- return qt_QMenuData_insertItem8 (QMenuData (), pixmap.RawObject, identifier, index);
+ return qt_QMenuData_insertItem8 (TQMenuData (), pixmap.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem9 (IntPtr raw, IntPtr icon, IntPtr pixmap, int identifier, int index);
- public int InsertItem (QIconSet icon, QPixmap pixmap, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier, int index)
{
- return qt_QMenuData_insertItem9 (QMenuData (), icon.RawObject, pixmap.RawObject, identifier, index);
+ return qt_QMenuData_insertItem9 (TQMenuData (), icon.RawObject, pixmap.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem10 (IntPtr raw, IntPtr pixmap, IntPtr popup, int identifier, int index);
- public int InsertItem (QPixmap pixmap, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem10 (QMenuData (), pixmap.RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem10 (TQMenuData (), pixmap.RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem11 (IntPtr raw, IntPtr icon, IntPtr pixmap, IntPtr popup, int identifier, int index);
- public int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem11 (QMenuData (), icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem11 (TQMenuData (), icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem12 (IntPtr raw, IntPtr widget, int identifier, int index);
- public int InsertItem (QWidget widget, int identifier, int index)
+ public int InsertItem (TQWidget widget, int identifier, int index)
{
- return qt_QMenuData_insertItem12 (QMenuData (), widget.RawObject, identifier, index);
+ return qt_QMenuData_insertItem12 (TQMenuData (), widget.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem13 (IntPtr raw, IntPtr icon, IntPtr custom, int identifier, int index);
- public int InsertItem (QIconSet icon, QCustomMenuItem custom, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier, int index)
{
- return qt_QMenuData_insertItem13 (QMenuData (), icon.RawObject, custom.RawObject, identifier, index);
+ return qt_QMenuData_insertItem13 (TQMenuData (), icon.RawObject, custom.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem14 (IntPtr raw, IntPtr custom, int identifier, int index);
- public int InsertItem (QCustomMenuItem custom, int identifier, int index)
+ public int InsertItem (TQCustomMenuItem custom, int identifier, int index)
{
- return qt_QMenuData_insertItem14 (QMenuData (), custom.RawObject, identifier, index);
+ return qt_QMenuData_insertItem14 (TQMenuData (), custom.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertSeparator (IntPtr raw, int index);
public int InsertSeparator (int index)
{
- return qt_QMenuData_insertSeparator (QMenuData (), index);
+ return qt_QMenuData_insertSeparator (TQMenuData (), index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_removeItem (IntPtr raw, int identifier);
public void RemoveItem (int identifier)
{
- qt_QMenuData_removeItem (QMenuData (), identifier);
+ qt_QMenuData_removeItem (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_removeItemAt (IntPtr raw, int index);
public void RemoveItemAt (int index)
{
- qt_QMenuData_removeItemAt (QMenuData (), index);
+ qt_QMenuData_removeItemAt (TQMenuData (), index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_clear (IntPtr raw);
public void Clear ()
{
- qt_QMenuData_clear (QMenuData ());
+ qt_QMenuData_clear (TQMenuData ());
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_accel (IntPtr raw, int identifier);
- public QKeySequence Accel (int identifier)
+ public TQKeySequence Accel (int identifier)
{
- return (QKeySequence)LookupObject (qt_QMenuData_accel (QMenuData (), identifier), typeof(QKeySequence));
+ return (TQKeySequence)LookupObject (qt_QMenuData_accel (TQMenuData (), identifier), typeof(TQKeySequence));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setAccel (IntPtr raw, IntPtr key, int identifier);
- public void SetAccel (QKeySequence key, int identifier)
+ public void SetAccel (TQKeySequence key, int identifier)
{
- qt_QMenuData_setAccel (QMenuData (), key.RawObject, identifier);
+ qt_QMenuData_setAccel (TQMenuData (), key.RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_iconSet (IntPtr raw, int identifier);
- public QIconSet IconSet (int identifier)
+ public TQIconSet IconSet (int identifier)
{
- return (QIconSet)LookupObject (qt_QMenuData_iconSet (QMenuData (), identifier), typeof(QIconSet));
+ return (TQIconSet)LookupObject (qt_QMenuData_iconSet (TQMenuData (), identifier), typeof(TQIconSet));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_text (IntPtr raw, int identifier);
public string Text (int identifier)
{
- QString qstr = new QString (qt_QMenuData_text (QMenuData (), identifier));
+ TQString qstr = new TQString (qt_QMenuData_text (TQMenuData (), identifier));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -456,23 +456,23 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_pixmap (IntPtr raw, int identifier);
- public QPixmap Pixmap (int identifier)
+ public TQPixmap Pixmap (int identifier)
{
- return (QPixmap)LookupObject (qt_QMenuData_pixmap (QMenuData (), identifier), typeof(QPixmap));
+ return (TQPixmap)LookupObject (qt_QMenuData_pixmap (TQMenuData (), identifier), typeof(TQPixmap));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setWhatsThis (IntPtr raw, int identifier, IntPtr arg1);
public void SetWhatsThis (int identifier, string arg1)
{
- qt_QMenuData_setWhatsThis (QMenuData (), identifier, new QString (arg1).RawObject);
+ qt_QMenuData_setWhatsThis (TQMenuData (), identifier, new TQString (arg1).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_whatsThis (IntPtr raw, int identifier);
public string WhatsThis (int identifier)
{
- QString qstr = new QString (qt_QMenuData_whatsThis (QMenuData (), identifier));
+ TQString qstr = new TQString (qt_QMenuData_whatsThis (TQMenuData (), identifier));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -482,212 +482,212 @@ namespace Qt {
private static extern void qt_QMenuData_changeItem (IntPtr raw, int identifier, IntPtr text);
public void ChangeItem (int identifier, string text)
{
- qt_QMenuData_changeItem (QMenuData (), identifier, new QString (text).RawObject);
+ qt_QMenuData_changeItem (TQMenuData (), identifier, new TQString (text).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem1 (IntPtr raw, int identifier, IntPtr pixmap);
- public void ChangeItem (int identifier, QPixmap pixmap)
+ public void ChangeItem (int identifier, TQPixmap pixmap)
{
- qt_QMenuData_changeItem1 (QMenuData (), identifier, pixmap.RawObject);
+ qt_QMenuData_changeItem1 (TQMenuData (), identifier, pixmap.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem2 (IntPtr raw, int identifier, IntPtr icon, IntPtr text);
- public void ChangeItem (int identifier, QIconSet icon, string text)
+ public void ChangeItem (int identifier, TQIconSet icon, string text)
{
- qt_QMenuData_changeItem2 (QMenuData (), identifier, icon.RawObject, new QString (text).RawObject);
+ qt_QMenuData_changeItem2 (TQMenuData (), identifier, icon.RawObject, new TQString (text).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem3 (IntPtr raw, int identifier, IntPtr icon, IntPtr pixmap);
- public void ChangeItem (int identifier, QIconSet icon, QPixmap pixmap)
+ public void ChangeItem (int identifier, TQIconSet icon, TQPixmap pixmap)
{
- qt_QMenuData_changeItem3 (QMenuData (), identifier, icon.RawObject, pixmap.RawObject);
+ qt_QMenuData_changeItem3 (TQMenuData (), identifier, icon.RawObject, pixmap.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem4 (IntPtr raw, IntPtr text, int identifier);
public void ChangeItem (string text, int identifier)
{
- qt_QMenuData_changeItem4 (QMenuData (), new QString (text).RawObject, identifier);
+ qt_QMenuData_changeItem4 (TQMenuData (), new TQString (text).RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem5 (IntPtr raw, IntPtr pixmap, int identifier);
- public void ChangeItem (QPixmap pixmap, int identifier)
+ public void ChangeItem (TQPixmap pixmap, int identifier)
{
- qt_QMenuData_changeItem5 (QMenuData (), pixmap.RawObject, identifier);
+ qt_QMenuData_changeItem5 (TQMenuData (), pixmap.RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem6 (IntPtr raw, IntPtr icon, IntPtr text, int identifier);
- public void ChangeItem (QIconSet icon, string text, int identifier)
+ public void ChangeItem (TQIconSet icon, string text, int identifier)
{
- qt_QMenuData_changeItem6 (QMenuData (), icon.RawObject, new QString (text).RawObject, identifier);
+ qt_QMenuData_changeItem6 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuData_isItemActive (IntPtr raw, int identifier);
public bool IsItemActive (int identifier)
{
- return qt_QMenuData_isItemActive (QMenuData (), identifier);
+ return qt_QMenuData_isItemActive (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuData_isItemEnabled (IntPtr raw, int identifier);
public bool IsItemEnabled (int identifier)
{
- return qt_QMenuData_isItemEnabled (QMenuData (), identifier);
+ return qt_QMenuData_isItemEnabled (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setItemEnabled (IntPtr raw, int identifier, bool enable);
public void SetItemEnabled (int identifier, bool enable)
{
- qt_QMenuData_setItemEnabled (QMenuData (), identifier, enable);
+ qt_QMenuData_setItemEnabled (TQMenuData (), identifier, enable);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuData_isItemChecked (IntPtr raw, int identifier);
public bool IsItemChecked (int identifier)
{
- return qt_QMenuData_isItemChecked (QMenuData (), identifier);
+ return qt_QMenuData_isItemChecked (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setItemChecked (IntPtr raw, int identifier, bool check);
public void SetItemChecked (int identifier, bool check)
{
- qt_QMenuData_setItemChecked (QMenuData (), identifier, check);
+ qt_QMenuData_setItemChecked (TQMenuData (), identifier, check);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_indexOf (IntPtr raw, int identifier);
public int IndexOf (int identifier)
{
- return qt_QMenuData_indexOf (QMenuData (), identifier);
+ return qt_QMenuData_indexOf (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_idAt (IntPtr raw, int index);
public int IdAt (int index)
{
- return qt_QMenuData_idAt (QMenuData (), index);
+ return qt_QMenuData_idAt (TQMenuData (), index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setId (IntPtr raw, int index, int identifier);
public void SetId (int index, int identifier)
{
- qt_QMenuData_setId (QMenuData (), index, identifier);
+ qt_QMenuData_setId (TQMenuData (), index, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuData_setItemParameter (IntPtr raw, int identifier, int param);
public bool SetItemParameter (int identifier, int param)
{
- return qt_QMenuData_setItemParameter (QMenuData (), identifier, param);
+ return qt_QMenuData_setItemParameter (TQMenuData (), identifier, param);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_itemParameter (IntPtr raw, int identifier);
public int ItemParameter (int identifier)
{
- return qt_QMenuData_itemParameter (QMenuData (), identifier);
+ return qt_QMenuData_itemParameter (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_findItem (IntPtr raw, int identifier);
- public QMenuItem FindItem (int identifier)
+ public TQMenuItem FindItem (int identifier)
{
- return (QMenuItem)LookupObject (qt_QMenuData_findItem (QMenuData (), identifier), typeof(QMenuItem));
+ return (TQMenuItem)LookupObject (qt_QMenuData_findItem (TQMenuData (), identifier), typeof(TQMenuItem));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_findItem1 (IntPtr raw, int identifier, IntPtr parent);
- public QMenuItem FindItem (int identifier, QMenuData parent)
+ public TQMenuItem FindItem (int identifier, TQMenuData parent)
{
- return (QMenuItem)LookupObject (qt_QMenuData_findItem1 (QMenuData (), identifier, parent.RawObject), typeof(QMenuItem));
+ return (TQMenuItem)LookupObject (qt_QMenuData_findItem1 (TQMenuData (), identifier, parent.RawObject), typeof(TQMenuItem));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_findPopup (IntPtr raw, IntPtr arg1, int[] index);
- public QMenuItem FindPopup (QPopupMenu arg1, int[] index)
+ public TQMenuItem FindPopup (TQPopupMenu arg1, int[] index)
{
- return (QMenuItem)LookupObject (qt_QMenuData_findPopup (QMenuData (), arg1.RawObject, index), typeof(QMenuItem));
+ return (TQMenuItem)LookupObject (qt_QMenuData_findPopup (TQMenuData (), arg1.RawObject, index), typeof(TQMenuItem));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_menuInsPopup (IntPtr raw, IntPtr arg1);
- protected void MenuInsPopup (QPopupMenu arg1)
+ protected void MenuInsPopup (TQPopupMenu arg1)
{
- qt_QMenuData_menuInsPopup (QMenuData (), arg1.RawObject);
+ qt_QMenuData_menuInsPopup (TQMenuData (), arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_menuDelPopup (IntPtr raw, IntPtr arg1);
- protected void MenuDelPopup (QPopupMenu arg1)
+ protected void MenuDelPopup (TQPopupMenu arg1)
{
- qt_QMenuData_menuDelPopup (QMenuData (), arg1.RawObject);
+ qt_QMenuData_menuDelPopup (TQMenuData (), arg1.RawObject);
}
- public int InsertItem (string text, QObject receiver, string member)
+ public int InsertItem (string text, TQObject receiver, string member)
{
- return InsertItem(text, receiver, member, new QKeySequence ());
+ return InsertItem(text, receiver, member, new TQKeySequence ());
}
- public int InsertItem (string text, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(text, receiver, member, accel, (int) -1);
}
- public int InsertItem (string text, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(text, receiver, member, accel, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member)
{
- return InsertItem(icon, text, receiver, member, new QKeySequence ());
+ return InsertItem(icon, text, receiver, member, new TQKeySequence ());
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(icon, text, receiver, member, accel, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(icon, text, receiver, member, accel, identifier, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member)
{
- return InsertItem(pixmap, receiver, member, new QKeySequence ());
+ return InsertItem(pixmap, receiver, member, new TQKeySequence ());
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(pixmap, receiver, member, accel, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(pixmap, receiver, member, accel, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member)
{
- return InsertItem(icon, pixmap, receiver, member, new QKeySequence ());
+ return InsertItem(icon, pixmap, receiver, member, new TQKeySequence ());
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(icon, pixmap, receiver, member, accel, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(icon, pixmap, receiver, member, accel, identifier, (int) -1);
}
@@ -702,102 +702,102 @@ namespace Qt {
return InsertItem(text, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, string text)
+ public int InsertItem (TQIconSet icon, string text)
{
return InsertItem(icon, text, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, int identifier)
+ public int InsertItem (TQIconSet icon, string text, int identifier)
{
return InsertItem(icon, text, identifier, (int) -1);
}
- public int InsertItem (string text, QPopupMenu popup)
+ public int InsertItem (string text, TQPopupMenu popup)
{
return InsertItem(text, popup, (int) -1);
}
- public int InsertItem (string text, QPopupMenu popup, int identifier)
+ public int InsertItem (string text, TQPopupMenu popup, int identifier)
{
return InsertItem(text, popup, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QPopupMenu popup)
+ public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup)
{
return InsertItem(icon, text, popup, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QPopupMenu popup, int identifier)
+ public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier)
{
return InsertItem(icon, text, popup, identifier, (int) -1);
}
- public int InsertItem (QPixmap pixmap)
+ public int InsertItem (TQPixmap pixmap)
{
return InsertItem(pixmap, (int) -1);
}
- public int InsertItem (QPixmap pixmap, int identifier)
+ public int InsertItem (TQPixmap pixmap, int identifier)
{
return InsertItem(pixmap, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap)
{
return InsertItem(icon, pixmap, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, int identifier)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier)
{
return InsertItem(icon, pixmap, identifier, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QPopupMenu popup)
+ public int InsertItem (TQPixmap pixmap, TQPopupMenu popup)
{
return InsertItem(pixmap, popup, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QPopupMenu popup, int identifier)
+ public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier)
{
return InsertItem(pixmap, popup, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup)
{
return InsertItem(icon, pixmap, popup, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup, int identifier)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier)
{
return InsertItem(icon, pixmap, popup, identifier, (int) -1);
}
- public int InsertItem (QWidget widget)
+ public int InsertItem (TQWidget widget)
{
return InsertItem(widget, (int) -1);
}
- public int InsertItem (QWidget widget, int identifier)
+ public int InsertItem (TQWidget widget, int identifier)
{
return InsertItem(widget, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QCustomMenuItem custom)
+ public int InsertItem (TQIconSet icon, TQCustomMenuItem custom)
{
return InsertItem(icon, custom, (int) -1);
}
- public int InsertItem (QIconSet icon, QCustomMenuItem custom, int identifier)
+ public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier)
{
return InsertItem(icon, custom, identifier, (int) -1);
}
- public int InsertItem (QCustomMenuItem custom)
+ public int InsertItem (TQCustomMenuItem custom)
{
return InsertItem(custom, (int) -1);
}
- public int InsertItem (QCustomMenuItem custom, int identifier)
+ public int InsertItem (TQCustomMenuItem custom, int identifier)
{
return InsertItem(custom, identifier, (int) -1);
}
@@ -807,7 +807,7 @@ namespace Qt {
return InsertSeparator((int) -1);
}
- public QMenuItem FindPopup (QPopupMenu arg1)
+ public TQMenuItem FindPopup (TQPopupMenu arg1)
{
return FindPopup(arg1, new int[]{0});
}
diff --git a/qtsharp/src/bindings/static/QMenuData.cs b/qtsharp/src/bindings/static/QMenuData.cs
index dc2813a0..ed28b69f 100644
--- a/qtsharp/src/bindings/static/QMenuData.cs
+++ b/qtsharp/src/bindings/static/QMenuData.cs
@@ -1,4 +1,4 @@
-// QMenuData.cs - A Qt to C# binding.
+// TQMenuData.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -19,7 +19,7 @@
// Regenerated by Adam Treat on August 03 2002
//
// TODO
-// o The QMenu* and QPopupMenu classes need serious analysis. I've only added
+// o The QMenu* and TQPopupMenu classes need serious analysis. I've only added
// functionality for C# slot support - I've not made sure its all working. :-)
namespace Qt {
@@ -29,7 +29,7 @@ namespace Qt {
using System.Collections;
using System.Runtime.InteropServices;
- public class QMenuData : QtSupport, IQMenuData, IDisposable {
+ public class TQMenuData : QtSupport, IQMenuData, IDisposable {
private Hashtable menuConnections;
@@ -39,24 +39,24 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QMenuData ();
- public QMenuData () : this (QNull.Instance)
+ public TQMenuData () : this (QNull.Instance)
{
rawObject = qt_new_QMenuData ();
RegisterObject (this);
}
- internal QMenuData (IntPtr ptr) : this (QNull.Instance)
+ internal TQMenuData (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
RegisterObject(this);
}
- internal QMenuData (QNull dummy) : base (QNull.Instance)
+ internal TQMenuData (QNull dummy) : base (QNull.Instance)
{
menuConnections = new Hashtable();
}
- ~QMenuData ()
+ ~TQMenuData ()
{
Dispose(false);
}
@@ -76,7 +76,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuData_connectItem (IntPtr raw, int identifier, IntPtr receiver, string member);
- internal static bool ConnectItem (IQMenuData menu, IntPtr menudata, int id, QObject receiver, string slot)
+ internal static bool ConnectItem (IQMenuData menu, IntPtr menudata, int id, TQObject receiver, string slot)
{
if (QtSignal.traceConnects)
ErrMsg ("ConnectItem: ({0}) {1}, {2}, ({3}) {4}, {5}", menudata, menu, id, receiver.RawObject, receiver, slot);
@@ -125,7 +125,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_del_QObject (IntPtr raw);
- internal static bool DisconnectItem (IQMenuData menu, IntPtr menudata, int id, QObject receiver, string slot)
+ internal static bool DisconnectItem (IQMenuData menu, IntPtr menudata, int id, TQObject receiver, string slot)
{
if (QtSignal.traceConnects)
ErrMsg ("DisconnectItem: ({0}) {1}, {2}, ({3}) {4}, {5}", menudata, menu, id, receiver.RawObject, receiver, slot);
@@ -155,7 +155,7 @@ namespace Qt {
}
}
- // Hack so QMenuData implements IQMenuData...
+ // Hack so TQMenuData implements IQMenuData...
public bool setItemParameter (int identifier, int param)
{
@@ -173,75 +173,75 @@ namespace Qt {
private static extern int qt_QMenuData_insertItem4 (IntPtr raw, IntPtr text, int identifier, int index);
public int InsertItem (string text, int identifier, int index)
{
- return qt_QMenuData_insertItem4 (rawObject, new QString (text).RawObject, identifier, index);
+ return qt_QMenuData_insertItem4 (rawObject, new TQString (text).RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem5 (IntPtr raw, IntPtr icon, IntPtr text, int identifier, int index);
- public int InsertItem (QIconSet icon, string text, int identifier, int index)
+ public int InsertItem (TQIconSet icon, string text, int identifier, int index)
{
- return qt_QMenuData_insertItem5 (rawObject, icon.RawObject, new QString (text).RawObject, identifier, index);
+ return qt_QMenuData_insertItem5 (rawObject, icon.RawObject, new TQString (text).RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem6 (IntPtr raw, IntPtr text, IntPtr popup, int identifier, int index);
- public int InsertItem (string text, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (string text, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem6 (rawObject, new QString (text).RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem6 (rawObject, new TQString (text).RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem7 (IntPtr raw, IntPtr icon, IntPtr text, IntPtr popup, int identifier, int index);
- public int InsertItem (QIconSet icon, string text, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem7 (rawObject, icon.RawObject, new QString (text).RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem7 (rawObject, icon.RawObject, new TQString (text).RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem8 (IntPtr raw, IntPtr pixmap, int identifier, int index);
- public int InsertItem (QPixmap pixmap, int identifier, int index)
+ public int InsertItem (TQPixmap pixmap, int identifier, int index)
{
return qt_QMenuData_insertItem8 (rawObject, pixmap.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem9 (IntPtr raw, IntPtr icon, IntPtr pixmap, int identifier, int index);
- public int InsertItem (QIconSet icon, QPixmap pixmap, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier, int index)
{
return qt_QMenuData_insertItem9 (rawObject, icon.RawObject, pixmap.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem10 (IntPtr raw, IntPtr pixmap, IntPtr popup, int identifier, int index);
- public int InsertItem (QPixmap pixmap, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier, int index)
{
return qt_QMenuData_insertItem10 (rawObject, pixmap.RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem11 (IntPtr raw, IntPtr icon, IntPtr pixmap, IntPtr popup, int identifier, int index);
- public int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier, int index)
{
return qt_QMenuData_insertItem11 (rawObject, icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem12 (IntPtr raw, IntPtr widget, int identifier, int index);
- public int InsertItem (QWidget widget, int identifier, int index)
+ public int InsertItem (TQWidget widget, int identifier, int index)
{
return qt_QMenuData_insertItem12 (rawObject, widget.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem13 (IntPtr raw, IntPtr icon, IntPtr custom, int identifier, int index);
- public int InsertItem (QIconSet icon, QCustomMenuItem custom, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier, int index)
{
return qt_QMenuData_insertItem13 (rawObject, icon.RawObject, custom.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem14 (IntPtr raw, IntPtr custom, int identifier, int index);
- public int InsertItem (QCustomMenuItem custom, int identifier, int index)
+ public int InsertItem (TQCustomMenuItem custom, int identifier, int index)
{
return qt_QMenuData_insertItem14 (rawObject, custom.RawObject, identifier, index);
}
@@ -276,30 +276,30 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_accel (IntPtr raw, int identifier);
- public QKeySequence Accel (int identifier)
+ public TQKeySequence Accel (int identifier)
{
- return (QKeySequence)LookupObject (qt_QMenuData_accel (rawObject, identifier), typeof(QKeySequence));
+ return (TQKeySequence)LookupObject (qt_QMenuData_accel (rawObject, identifier), typeof(TQKeySequence));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setAccel (IntPtr raw, IntPtr key, int identifier);
- public void SetAccel (QKeySequence key, int identifier)
+ public void SetAccel (TQKeySequence key, int identifier)
{
qt_QMenuData_setAccel (rawObject, key.RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_iconSet (IntPtr raw, int identifier);
- public QIconSet IconSet (int identifier)
+ public TQIconSet IconSet (int identifier)
{
- return (QIconSet)LookupObject (qt_QMenuData_iconSet (rawObject, identifier), typeof(QIconSet));
+ return (TQIconSet)LookupObject (qt_QMenuData_iconSet (rawObject, identifier), typeof(TQIconSet));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_text (IntPtr raw, int identifier);
public string Text (int identifier)
{
- QString qstr = new QString (qt_QMenuData_text (rawObject, identifier));
+ TQString qstr = new TQString (qt_QMenuData_text (rawObject, identifier));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -307,23 +307,23 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_pixmap (IntPtr raw, int identifier);
- public QPixmap Pixmap (int identifier)
+ public TQPixmap Pixmap (int identifier)
{
- return (QPixmap)LookupObject (qt_QMenuData_pixmap (rawObject, identifier), typeof(QPixmap));
+ return (TQPixmap)LookupObject (qt_QMenuData_pixmap (rawObject, identifier), typeof(TQPixmap));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setWhatsThis (IntPtr raw, int identifier, IntPtr arg1);
public void SetWhatsThis (int identifier, string arg1)
{
- qt_QMenuData_setWhatsThis (rawObject, identifier, new QString (arg1).RawObject);
+ qt_QMenuData_setWhatsThis (rawObject, identifier, new TQString (arg1).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_whatsThis (IntPtr raw, int identifier);
public string WhatsThis (int identifier)
{
- QString qstr = new QString (qt_QMenuData_whatsThis (rawObject, identifier));
+ TQString qstr = new TQString (qt_QMenuData_whatsThis (rawObject, identifier));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -333,26 +333,26 @@ namespace Qt {
private static extern void qt_QMenuData_changeItem (IntPtr raw, int identifier, IntPtr text);
public void ChangeItem (int identifier, string text)
{
- qt_QMenuData_changeItem (rawObject, identifier, new QString (text).RawObject);
+ qt_QMenuData_changeItem (rawObject, identifier, new TQString (text).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem1 (IntPtr raw, int identifier, IntPtr pixmap);
- public void ChangeItem (int identifier, QPixmap pixmap)
+ public void ChangeItem (int identifier, TQPixmap pixmap)
{
qt_QMenuData_changeItem1 (rawObject, identifier, pixmap.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem2 (IntPtr raw, int identifier, IntPtr icon, IntPtr text);
- public void ChangeItem (int identifier, QIconSet icon, string text)
+ public void ChangeItem (int identifier, TQIconSet icon, string text)
{
- qt_QMenuData_changeItem2 (rawObject, identifier, icon.RawObject, new QString (text).RawObject);
+ qt_QMenuData_changeItem2 (rawObject, identifier, icon.RawObject, new TQString (text).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem3 (IntPtr raw, int identifier, IntPtr icon, IntPtr pixmap);
- public void ChangeItem (int identifier, QIconSet icon, QPixmap pixmap)
+ public void ChangeItem (int identifier, TQIconSet icon, TQPixmap pixmap)
{
qt_QMenuData_changeItem3 (rawObject, identifier, icon.RawObject, pixmap.RawObject);
}
@@ -361,21 +361,21 @@ namespace Qt {
private static extern void qt_QMenuData_changeItem4 (IntPtr raw, IntPtr text, int identifier);
public void ChangeItem (string text, int identifier)
{
- qt_QMenuData_changeItem4 (rawObject, new QString (text).RawObject, identifier);
+ qt_QMenuData_changeItem4 (rawObject, new TQString (text).RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem5 (IntPtr raw, IntPtr pixmap, int identifier);
- public void ChangeItem (QPixmap pixmap, int identifier)
+ public void ChangeItem (TQPixmap pixmap, int identifier)
{
qt_QMenuData_changeItem5 (rawObject, pixmap.RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem6 (IntPtr raw, IntPtr icon, IntPtr text, int identifier);
- public void ChangeItem (QIconSet icon, string text, int identifier)
+ public void ChangeItem (TQIconSet icon, string text, int identifier)
{
- qt_QMenuData_changeItem6 (rawObject, icon.RawObject, new QString (text).RawObject, identifier);
+ qt_QMenuData_changeItem6 (rawObject, icon.RawObject, new TQString (text).RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -436,17 +436,17 @@ namespace Qt {
//********************* A temporary hack to divert connections to CSharpConnect *****************//
- public bool ConnectItem (int identifier, QObject receiver, string slot)
+ public bool ConnectItem (int identifier, TQObject receiver, string slot)
{
return ConnectItem (this, this.RawObject, identifier, receiver, slot);
}
- public bool DisconnectItem (int identifier, QObject receiver, string slot)
+ public bool DisconnectItem (int identifier, TQObject receiver, string slot)
{
return DisconnectItem (this, this.RawObject, identifier, receiver, slot);
}
- public int InsertItem (string text, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (text, identifier, index);
SetAccel (accel, id);
@@ -454,7 +454,7 @@ namespace Qt {
return id;
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (icon, text, identifier, index);
SetAccel (accel, id);
@@ -462,7 +462,7 @@ namespace Qt {
return id;
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (pixmap, identifier, index);
SetAccel (accel, id);
@@ -470,7 +470,7 @@ namespace Qt {
return id;
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (icon, pixmap, identifier, index);
SetAccel (accel, id);
@@ -496,95 +496,95 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_findItem (IntPtr raw, int identifier);
- public QMenuItem FindItem (int identifier)
+ public TQMenuItem FindItem (int identifier)
{
- return (QMenuItem)LookupObject (qt_QMenuData_findItem (rawObject, identifier), typeof(QMenuItem));
+ return (TQMenuItem)LookupObject (qt_QMenuData_findItem (rawObject, identifier), typeof(TQMenuItem));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_findItem1 (IntPtr raw, int identifier, IntPtr parent);
- public QMenuItem FindItem (int identifier, QMenuData parent)
+ public TQMenuItem FindItem (int identifier, TQMenuData parent)
{
- return (QMenuItem)LookupObject (qt_QMenuData_findItem1 (rawObject, identifier, parent.RawObject), typeof(QMenuItem));
+ return (TQMenuItem)LookupObject (qt_QMenuData_findItem1 (rawObject, identifier, parent.RawObject), typeof(TQMenuItem));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_findPopup (IntPtr raw, IntPtr arg1, int[] index);
- public QMenuItem FindPopup (QPopupMenu arg1, int[] index)
+ public TQMenuItem FindPopup (TQPopupMenu arg1, int[] index)
{
- return (QMenuItem)LookupObject (qt_QMenuData_findPopup (rawObject, arg1.RawObject, index), typeof(QMenuItem));
+ return (TQMenuItem)LookupObject (qt_QMenuData_findPopup (rawObject, arg1.RawObject, index), typeof(TQMenuItem));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_menuInsPopup (IntPtr raw, IntPtr arg1);
- protected void MenuInsPopup (QPopupMenu arg1)
+ protected void MenuInsPopup (TQPopupMenu arg1)
{
qt_QMenuData_menuInsPopup (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_menuDelPopup (IntPtr raw, IntPtr arg1);
- protected void MenuDelPopup (QPopupMenu arg1)
+ protected void MenuDelPopup (TQPopupMenu arg1)
{
qt_QMenuData_menuDelPopup (rawObject, arg1.RawObject);
}
- public int InsertItem (string text, QObject receiver, string member)
+ public int InsertItem (string text, TQObject receiver, string member)
{
- return InsertItem(text, receiver, member, new QKeySequence ());
+ return InsertItem(text, receiver, member, new TQKeySequence ());
}
- public int InsertItem (string text, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(text, receiver, member, accel, (int) -1);
}
- public int InsertItem (string text, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(text, receiver, member, accel, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member)
{
- return InsertItem(icon, text, receiver, member, new QKeySequence ());
+ return InsertItem(icon, text, receiver, member, new TQKeySequence ());
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(icon, text, receiver, member, accel, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(icon, text, receiver, member, accel, identifier, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member)
{
- return InsertItem(pixmap, receiver, member, new QKeySequence ());
+ return InsertItem(pixmap, receiver, member, new TQKeySequence ());
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(pixmap, receiver, member, accel, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(pixmap, receiver, member, accel, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member)
{
- return InsertItem(icon, pixmap, receiver, member, new QKeySequence ());
+ return InsertItem(icon, pixmap, receiver, member, new TQKeySequence ());
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(icon, pixmap, receiver, member, accel, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(icon, pixmap, receiver, member, accel, identifier, (int) -1);
}
@@ -599,102 +599,102 @@ namespace Qt {
return InsertItem(text, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, string text)
+ public int InsertItem (TQIconSet icon, string text)
{
return InsertItem(icon, text, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, int identifier)
+ public int InsertItem (TQIconSet icon, string text, int identifier)
{
return InsertItem(icon, text, identifier, (int) -1);
}
- public int InsertItem (string text, QPopupMenu popup)
+ public int InsertItem (string text, TQPopupMenu popup)
{
return InsertItem(text, popup, (int) -1);
}
- public int InsertItem (string text, QPopupMenu popup, int identifier)
+ public int InsertItem (string text, TQPopupMenu popup, int identifier)
{
return InsertItem(text, popup, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QPopupMenu popup)
+ public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup)
{
return InsertItem(icon, text, popup, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QPopupMenu popup, int identifier)
+ public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier)
{
return InsertItem(icon, text, popup, identifier, (int) -1);
}
- public int InsertItem (QPixmap pixmap)
+ public int InsertItem (TQPixmap pixmap)
{
return InsertItem(pixmap, (int) -1);
}
- public int InsertItem (QPixmap pixmap, int identifier)
+ public int InsertItem (TQPixmap pixmap, int identifier)
{
return InsertItem(pixmap, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap)
{
return InsertItem(icon, pixmap, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, int identifier)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier)
{
return InsertItem(icon, pixmap, identifier, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QPopupMenu popup)
+ public int InsertItem (TQPixmap pixmap, TQPopupMenu popup)
{
return InsertItem(pixmap, popup, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QPopupMenu popup, int identifier)
+ public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier)
{
return InsertItem(pixmap, popup, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup)
{
return InsertItem(icon, pixmap, popup, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup, int identifier)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier)
{
return InsertItem(icon, pixmap, popup, identifier, (int) -1);
}
- public int InsertItem (QWidget widget)
+ public int InsertItem (TQWidget widget)
{
return InsertItem(widget, (int) -1);
}
- public int InsertItem (QWidget widget, int identifier)
+ public int InsertItem (TQWidget widget, int identifier)
{
return InsertItem(widget, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QCustomMenuItem custom)
+ public int InsertItem (TQIconSet icon, TQCustomMenuItem custom)
{
return InsertItem(icon, custom, (int) -1);
}
- public int InsertItem (QIconSet icon, QCustomMenuItem custom, int identifier)
+ public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier)
{
return InsertItem(icon, custom, identifier, (int) -1);
}
- public int InsertItem (QCustomMenuItem custom)
+ public int InsertItem (TQCustomMenuItem custom)
{
return InsertItem(custom, (int) -1);
}
- public int InsertItem (QCustomMenuItem custom, int identifier)
+ public int InsertItem (TQCustomMenuItem custom, int identifier)
{
return InsertItem(custom, identifier, (int) -1);
}
@@ -704,7 +704,7 @@ namespace Qt {
return InsertSeparator((int) -1);
}
- public QMenuItem FindPopup (QPopupMenu arg1)
+ public TQMenuItem FindPopup (TQPopupMenu arg1)
{
return FindPopup(arg1, new int[]{0});
}
diff --git a/qtsharp/src/bindings/static/QObject.cs b/qtsharp/src/bindings/static/QObject.cs
index d016fa62..ca571f03 100644
--- a/qtsharp/src/bindings/static/QObject.cs
+++ b/qtsharp/src/bindings/static/QObject.cs
@@ -1,4 +1,4 @@
-// QObject.cs - A Qt to C# binding.
+// TQObject.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -35,15 +35,15 @@ namespace Qt {
using System.Collections;
using System.Runtime.InteropServices;
- //[DeclareQtSignal ("ChildDestroyed(QObject)")]
- public class QObject : QtSupport, IDisposable {
+ //[DeclareQtSignal ("ChildDestroyed(TQObject)")]
+ public class TQObject : QtSupport, IDisposable {
- // Hold an instance of the QApplication object
- private static QApplication qapp;
+ // Hold an instance of the TQApplication object
+ private static TQApplication qapp;
private QtSignalMap csSignalMap;
private QtSignalMap cppSignalMap;
- public static QApplication qApp {
+ public static TQApplication qApp {
get {return qapp;}
set {qapp = value;}
}
@@ -58,12 +58,12 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QObject (IntPtr parent, string name);
- public QObject (QObject parent, string name) : this (QNull.Instance)
+ public TQObject (TQObject parent, string name) : this (QNull.Instance)
{
qparent = parent;
if (qparent == null)
- parent = new QWidget (IntPtr.Zero);
+ parent = new TQWidget (IntPtr.Zero);
else
qparent.AddChild (this);
@@ -71,29 +71,29 @@ namespace Qt {
RegisterObject (this);
}
- public QObject (QObject parent) : this (parent, "") {}
+ public TQObject (TQObject parent) : this (parent, "") {}
- internal QObject () : this (QNull.Instance) {}
+ internal TQObject () : this (QNull.Instance) {}
- internal QObject (IntPtr ptr) : this (QNull.Instance)
+ internal TQObject (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
RegisterObject (this);
}
- internal QObject (QNull dummy) : base (QNull.Instance)
+ internal TQObject (QNull dummy) : base (QNull.Instance)
{
InitSignals ();
}
// FIXME This ctor used only by QtSignal
- internal QObject (NoSignalInit dummy) : base (QNull.Instance)
+ internal TQObject (NoSignalInit dummy) : base (QNull.Instance)
{
rawObject = qt_new_QObject (IntPtr.Zero, "");
RegisterObject (this);
}
- ~QObject ()
+ ~TQObject ()
{
Dispose(false);
}
@@ -172,25 +172,25 @@ namespace Qt {
Dispose ();
}
- public QObject QtCast()
+ public TQObject QtCast()
{
string QtType = this.ClassName();
Type newType = Type.GetType( "Qt." + QtType );
object[] paramArray = { this.RawObject };
- return (QObject) Activator.CreateInstance( newType, paramArray );
+ return (TQObject) Activator.CreateInstance( newType, paramArray );
}
- public static bool Connect(QObject sender, string signal, QObject receiver, string slot)
+ public static bool Connect(TQObject sender, string signal, TQObject receiver, string slot)
{
return QtSignal.Connect(sender, signal, receiver, slot);
}
- public bool Connect (QObject sender, string signal, string member)
+ public bool Connect (TQObject sender, string signal, string member)
{
return Connect (sender, signal, this, member);
}
- public static bool Disconnect(QObject sender, string signal, QObject receiver, string slot)
+ public static bool Disconnect(TQObject sender, string signal, TQObject receiver, string slot)
{
return QtSignal.Disconnect(sender, signal, receiver, slot);
}
@@ -200,12 +200,12 @@ namespace Qt {
return Disconnect (this, null, null, null);
}
- public bool Disconnect (string signal, QObject receiver, string member)
+ public bool Disconnect (string signal, TQObject receiver, string member)
{
return Disconnect(this, signal, receiver, member);
}
- public bool Disconnect (QObject receiver, string slot)
+ public bool Disconnect (TQObject receiver, string slot)
{
return Disconnect (this, null, receiver, slot);
}
@@ -240,7 +240,7 @@ namespace Qt {
private static extern IntPtr qt_QObject_tr (IntPtr raw, string arg1, string arg2);
public string Tr (string arg1, string arg2)
{
- QString qstr = new QString (qt_QObject_tr (rawObject, arg1, arg2));
+ TQString qstr = new TQString (qt_QObject_tr (rawObject, arg1, arg2));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -250,7 +250,7 @@ namespace Qt {
private static extern IntPtr qt_QObject_trUtf8 (IntPtr raw, string arg1, string arg2);
public string TrUtf8 (string arg1, string arg2)
{
- QString qstr = new QString (qt_QObject_trUtf8 (rawObject, arg1, arg2));
+ TQString qstr = new TQString (qt_QObject_trUtf8 (rawObject, arg1, arg2));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -258,21 +258,21 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_metaObject (IntPtr raw);
- public QMetaObject MetaObject ()
+ public TQMetaObject MetaObject ()
{
- return (QMetaObject)LookupObject (qt_QObject_metaObject (rawObject), typeof(QMetaObject));
+ return (TQMetaObject)LookupObject (qt_QObject_metaObject (rawObject), typeof(TQMetaObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QObject_event (IntPtr raw, IntPtr arg1);
- public bool Q_event (QEvent arg1)
+ public bool Q_event (TQEvent arg1)
{
return qt_QObject_event (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QObject_eventFilter (IntPtr raw, IntPtr arg1, IntPtr arg2);
- public bool EventFilter (QObject arg1, QEvent arg2)
+ public bool EventFilter (TQObject arg1, TQEvent arg2)
{
return qt_QObject_eventFilter (rawObject, arg1.RawObject, arg2.RawObject);
}
@@ -363,49 +363,49 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_child (IntPtr raw, string objName, string inheritsClass, bool recursiveSearch);
- public QObject Child (string objName, string inheritsClass, bool recursiveSearch)
+ public TQObject Child (string objName, string inheritsClass, bool recursiveSearch)
{
- return (QObject)LookupObject (qt_QObject_child (rawObject, objName, inheritsClass, recursiveSearch), typeof(QObject));
+ return (TQObject)LookupObject (qt_QObject_child (rawObject, objName, inheritsClass, recursiveSearch), typeof(TQObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_children (IntPtr raw);
- public QObjectList Children ()
+ public TQObjectList Children ()
{
- return (QObjectList)LookupObject (qt_QObject_children (rawObject), typeof(QObjectList));
+ return (TQObjectList)LookupObject (qt_QObject_children (rawObject), typeof(TQObjectList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_queryList (IntPtr raw, string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch);
- public QObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch)
+ public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch)
{
- return (QObjectList)LookupObject (qt_QObject_queryList (rawObject, inheritsClass, objName, regexpMatch, recursiveSearch), typeof(QObjectList));
+ return (TQObjectList)LookupObject (qt_QObject_queryList (rawObject, inheritsClass, objName, regexpMatch, recursiveSearch), typeof(TQObjectList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QObject_insertChild (IntPtr raw, IntPtr arg1);
- public void InsertChild (QObject arg1)
+ public void InsertChild (TQObject arg1)
{
qt_QObject_insertChild (rawObject, arg1.RawObject);
}
/*[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QObject_removeChild (IntPtr raw, IntPtr arg1);
- public void RemoveChild (QObject arg1)
+ public void RemoveChild (TQObject arg1)
{
qt_QObject_removeChild (rawObject, arg1.RawObject);
}*/
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QObject_installEventFilter (IntPtr raw, IntPtr arg1);
- public void InstallEventFilter (QObject arg1)
+ public void InstallEventFilter (TQObject arg1)
{
qt_QObject_installEventFilter (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QObject_removeEventFilter (IntPtr raw, IntPtr arg1);
- public void RemoveEventFilter (QObject arg1)
+ public void RemoveEventFilter (TQObject arg1)
{
qt_QObject_removeEventFilter (rawObject, arg1.RawObject);
}
@@ -426,23 +426,23 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QObject_setProperty (IntPtr raw, string name, IntPtr value);
- public bool SetProperty (string name, QVariant value)
+ public bool SetProperty (string name, TQVariant value)
{
return qt_QObject_setProperty (rawObject, name, value.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_property (IntPtr raw, string name);
- public QVariant Property (string name)
+ public TQVariant Property (string name)
{
- return (QVariant)LookupObject (qt_QObject_property (rawObject, name), typeof(QVariant));
+ return (TQVariant)LookupObject (qt_QObject_property (rawObject, name), typeof(TQVariant));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_parent (IntPtr raw);
- public QObject Parent ()
+ public TQObject Parent ()
{
- return (QObject)LookupObject (qt_QObject_parent (rawObject), typeof(QObject));
+ return (TQObject)LookupObject (qt_QObject_parent (rawObject), typeof(TQObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -454,15 +454,15 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_objectTrees ();
- public static QObjectList ObjectTrees ()
+ public static TQObjectList ObjectTrees ()
{
- return (QObjectList)LookupObject (qt_QObject_objectTrees (), typeof(QObjectList));
+ return (TQObjectList)LookupObject (qt_QObject_objectTrees (), typeof(TQObjectList));
}
/*FIXME
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QObject_connectInternal (IntPtr sender, int signal_index, IntPtr receiver, int membcode, int member_index);
- public static void ConnectInternal (QObject sender, int signal_index, QObject receiver, int membcode, int member_index)
+ public static void ConnectInternal (TQObject sender, int signal_index, TQObject receiver, int membcode, int member_index)
{
qt_QObject_connectInternal (sender.RawObject, signal_index, receiver.RawObject, membcode, member_index);
}
@@ -470,23 +470,23 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QObject_activate_filters (IntPtr raw, IntPtr arg1);
- protected bool Activate_filters (QEvent arg1)
+ protected bool Activate_filters (TQEvent arg1)
{
return qt_QObject_activate_filters (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_receivers (IntPtr raw, string signal);
- protected QConnectionList Receivers (string signal)
+ protected TQConnectionList Receivers (string signal)
{
- return (QConnectionList)LookupObject (qt_QObject_receivers (rawObject, signal), typeof(QConnectionList));
+ return (TQConnectionList)LookupObject (qt_QObject_receivers (rawObject, signal), typeof(TQConnectionList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_receivers1 (IntPtr raw, int signal);
- protected QConnectionList Receivers (int signal)
+ protected TQConnectionList Receivers (int signal)
{
- return (QConnectionList)LookupObject (qt_QObject_receivers1 (rawObject, signal), typeof(QConnectionList));
+ return (TQConnectionList)LookupObject (qt_QObject_receivers1 (rawObject, signal), typeof(TQConnectionList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -514,7 +514,7 @@ namespace Qt {
private static extern void qt_QObject_activate_signal3 (IntPtr raw, int signal, IntPtr arg1);
protected void Activate_signal (int signal, string arg1)
{
- qt_QObject_activate_signal3 (rawObject, signal, new QString (arg1).RawObject);
+ qt_QObject_activate_signal3 (rawObject, signal, new TQString (arg1).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -527,7 +527,7 @@ namespace Qt {
/*
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QObject_activate_signal4 (IntPtr raw, IntPtr clist, IntPtr o);
- protected void Activate_signal (QConnectionList clist, IntPtr o)
+ protected void Activate_signal (TQConnectionList clist, IntPtr o)
{
qt_QObject_activate_signal4 (rawObject, clist.RawObject, o);
}
@@ -535,9 +535,9 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_sender (IntPtr raw);
- protected QObject Sender ()
+ protected TQObject Sender ()
{
- return (QObject)LookupObject (qt_QObject_sender (rawObject), typeof(QObject));
+ return (TQObject)LookupObject (qt_QObject_sender (rawObject), typeof(TQObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -556,7 +556,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QObject_checkConnectArgs (IntPtr raw, string signal, IntPtr receiver, string member);
- protected bool CheckConnectArgs (string signal, QObject receiver, string member)
+ protected bool CheckConnectArgs (string signal, TQObject receiver, string member)
{
return qt_QObject_checkConnectArgs (rawObject, signal, receiver.RawObject, member);
}
@@ -564,38 +564,38 @@ namespace Qt {
/*
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_normalizeSignalSlot (string signalSlot);
- protected static QCString NormalizeSignalSlot (string signalSlot)
+ protected static TQCString NormalizeSignalSlot (string signalSlot)
{
- return (QCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(QCString));
+ return (TQCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(TQCString));
}
*/
- public QObject Child (string objName)
+ public TQObject Child (string objName)
{
return Child(objName, null);
}
- public QObject Child (string objName, string inheritsClass)
+ public TQObject Child (string objName, string inheritsClass)
{
return Child(objName, inheritsClass, true);
}
- public QObjectList QueryList ()
+ public TQObjectList QueryList ()
{
return QueryList("");
}
- public QObjectList QueryList (string inheritsClass)
+ public TQObjectList QueryList (string inheritsClass)
{
return QueryList(inheritsClass, "");
}
- public QObjectList QueryList (string inheritsClass, string objName)
+ public TQObjectList QueryList (string inheritsClass, string objName)
{
return QueryList(inheritsClass, objName, true);
}
- public QObjectList QueryList (string inheritsClass, string objName, bool regexpMatch)
+ public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch)
{
return QueryList(inheritsClass, objName, regexpMatch, true);
}
diff --git a/qtsharp/src/bindings/static/QPopupMenu.cs b/qtsharp/src/bindings/static/QPopupMenu.cs
index a4b6da09..cbee5f97 100644
--- a/qtsharp/src/bindings/static/QPopupMenu.cs
+++ b/qtsharp/src/bindings/static/QPopupMenu.cs
@@ -1,4 +1,4 @@
-// QPopupMenu.cs - A Qt to C# binding.
+// TQPopupMenu.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -28,7 +28,7 @@ namespace Qt {
using System.Collections;
using System.Runtime.InteropServices;
- public class QPopupMenu : QFrame, IQMenuData, IDisposable {
+ public class TQPopupMenu : TQFrame, IQMenuData, IDisposable {
private Hashtable menuConnections;
@@ -38,31 +38,31 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QPopupMenu (IntPtr parent, string name);
- public QPopupMenu (QWidget parent, string name) : this (QNull.Instance)
+ public TQPopupMenu (TQWidget parent, string name) : this (QNull.Instance)
{
qparent = parent;
- if (qparent == null) parent = new QWidget (IntPtr.Zero);
+ if (qparent == null) parent = new TQWidget (IntPtr.Zero);
rawObject = qt_new_QPopupMenu (parent.RawObject, name);
if (qparent == null) RegisterObject (this);
else qparent.AddChild (this);
}
- public QPopupMenu () : this (new QWidget ()) {}
+ public TQPopupMenu () : this (new TQWidget ()) {}
- public QPopupMenu (QWidget parent) : this (parent, "") {}
+ public TQPopupMenu (TQWidget parent) : this (parent, "") {}
- internal QPopupMenu (IntPtr ptr) : this (QNull.Instance)
+ internal TQPopupMenu (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
RegisterObject(this);
}
- internal QPopupMenu (QNull dummy) : base (QNull.Instance)
+ internal TQPopupMenu (QNull dummy) : base (QNull.Instance)
{
menuConnections = new Hashtable();
}
- ~QPopupMenu ()
+ ~TQPopupMenu ()
{
Dispose (false);
}
@@ -79,7 +79,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QPopupMenu_popup (IntPtr raw, IntPtr pos, int indexAtPoint);
- public void Popup (QPoint pos, int indexAtPoint)
+ public void Popup (TQPoint pos, int indexAtPoint)
{
qt_QPopupMenu_popup (rawObject, pos.RawObject, indexAtPoint);
}
@@ -107,7 +107,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QPopupMenu_setFont (IntPtr raw, IntPtr arg1);
- public void SetFont (QFont arg1)
+ public void SetFont (TQFont arg1)
{
qt_QPopupMenu_setFont (rawObject, arg1.RawObject);
}
@@ -135,7 +135,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QPopupMenu_exec1 (IntPtr raw, IntPtr pos, int indexAtPoint);
- public int Exec (QPoint pos, int indexAtPoint)
+ public int Exec (TQPoint pos, int indexAtPoint)
{
return qt_QPopupMenu_exec1 (rawObject, pos.RawObject, indexAtPoint);
}
@@ -149,9 +149,9 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QPopupMenu_sizeHint (IntPtr raw);
- public QSize SizeHint ()
+ public TQSize SizeHint ()
{
- return (QSize)LookupObject (qt_QPopupMenu_sizeHint (rawObject), typeof(QSize));
+ return (TQSize)LookupObject (qt_QPopupMenu_sizeHint (rawObject), typeof(TQSize));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -163,7 +163,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QPopupMenu_idAt1 (IntPtr raw, IntPtr pos);
- public int IdAt (QPoint pos)
+ public int IdAt (TQPoint pos)
{
return qt_QPopupMenu_idAt1 (rawObject, pos.RawObject);
}
@@ -191,9 +191,9 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QPopupMenu_itemGeometry (IntPtr raw, int index);
- public QRect ItemGeometry (int index)
+ public TQRect ItemGeometry (int index)
{
- return (QRect)LookupObject (qt_QPopupMenu_itemGeometry (rawObject, index), typeof(QRect));
+ return (TQRect)LookupObject (qt_QPopupMenu_itemGeometry (rawObject, index), typeof(TQRect));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -205,28 +205,28 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QPopupMenu_itemHeight1 (IntPtr raw, IntPtr mi);
- protected int ItemHeight (QMenuItem mi)
+ protected int ItemHeight (TQMenuItem mi)
{
return qt_QPopupMenu_itemHeight1 (rawObject, mi.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QPopupMenu_drawItem (IntPtr raw, IntPtr p, int tab, IntPtr mi, bool act, int x, int y, int w, int h);
- protected void DrawItem (QPainter p, int tab, QMenuItem mi, bool act, int x, int y, int w, int h)
+ protected void DrawItem (TQPainter p, int tab, TQMenuItem mi, bool act, int x, int y, int w, int h)
{
qt_QPopupMenu_drawItem (rawObject, p.RawObject, tab, mi.RawObject, act, x, y, w, h);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QPopupMenu_drawContents (IntPtr raw, IntPtr arg1);
- protected void DrawContents (QPainter arg1)
+ protected void DrawContents (TQPainter arg1)
{
qt_QPopupMenu_drawContents (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QPopupMenu_styleChange (IntPtr raw, IntPtr arg1);
- protected void StyleChange (QStyle arg1)
+ protected void StyleChange (TQStyle arg1)
{
qt_QPopupMenu_styleChange (rawObject, arg1.RawObject);
}
@@ -247,17 +247,17 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QPopupMenu_itemAtPos (IntPtr raw, IntPtr arg1, bool ignoreSeparator);
- protected int ItemAtPos (QPoint arg1, bool ignoreSeparator)
+ protected int ItemAtPos (TQPoint arg1, bool ignoreSeparator)
{
return qt_QPopupMenu_itemAtPos (rawObject, arg1.RawObject, ignoreSeparator);
}
- public void Popup (QPoint pos)
+ public void Popup (TQPoint pos)
{
Popup(pos, (int) 0);
}
- public int Exec (QPoint pos)
+ public int Exec (TQPoint pos)
{
return Exec(pos, (int) 0);
}
@@ -272,14 +272,14 @@ namespace Qt {
return InsertTearOffHandle(identifier, (int) -1);
}
- protected int ItemAtPos (QPoint arg1)
+ protected int ItemAtPos (TQPoint arg1)
{
return ItemAtPos(arg1, true);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QPopupMenu_QMenuData (IntPtr raw);
- public IntPtr QMenuData ()
+ public IntPtr TQMenuData ()
{
return qt_QPopupMenu_QMenuData (rawObject);
}
@@ -289,7 +289,7 @@ namespace Qt {
//********************* A temporary hack to divert connections to CSharpConnect *****************//
- public int InsertItem (string text, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (text, identifier, index);
SetAccel (accel, id);
@@ -297,7 +297,7 @@ namespace Qt {
return id;
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (icon, text, identifier, index);
SetAccel (accel, id);
@@ -305,7 +305,7 @@ namespace Qt {
return id;
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (pixmap, identifier, index);
SetAccel (accel, id);
@@ -313,7 +313,7 @@ namespace Qt {
return id;
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index)
{
int id = InsertItem (icon, pixmap, identifier, index);
SetAccel (accel, id);
@@ -321,14 +321,14 @@ namespace Qt {
return id;
}
- public bool ConnectItem (int identifier, QObject receiver, string member)
+ public bool ConnectItem (int identifier, TQObject receiver, string member)
{
- return Qt.QMenuData.ConnectItem (this, QMenuData (), identifier, receiver, member);
+ return Qt.TQMenuData.ConnectItem (this, TQMenuData (), identifier, receiver, member);
}
- public bool DisconnectItem (int identifier, QObject receiver, string member)
+ public bool DisconnectItem (int identifier, TQObject receiver, string member)
{
- return Qt.QMenuData.DisconnectItem (this, QMenuData (), identifier, receiver, member);
+ return Qt.TQMenuData.DisconnectItem (this, TQMenuData (), identifier, receiver, member);
}
//********************* A temporary hack to divert connections to CSharpConnect *****************//
@@ -337,140 +337,140 @@ namespace Qt {
private static extern uint qt_QMenuData_count (IntPtr raw);
public uint Count ()
{
- return qt_QMenuData_count (QMenuData ());
+ return qt_QMenuData_count (TQMenuData ());
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem4 (IntPtr raw, IntPtr text, int identifier, int index);
public int InsertItem (string text, int identifier, int index)
{
- return qt_QMenuData_insertItem4 (QMenuData (), new QString (text).RawObject, identifier, index);
+ return qt_QMenuData_insertItem4 (TQMenuData (), new TQString (text).RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem5 (IntPtr raw, IntPtr icon, IntPtr text, int identifier, int index);
- public int InsertItem (QIconSet icon, string text, int identifier, int index)
+ public int InsertItem (TQIconSet icon, string text, int identifier, int index)
{
- return qt_QMenuData_insertItem5 (QMenuData (), icon.RawObject, new QString (text).RawObject, identifier, index);
+ return qt_QMenuData_insertItem5 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem6 (IntPtr raw, IntPtr text, IntPtr popup, int identifier, int index);
- public int InsertItem (string text, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (string text, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem6 (QMenuData (), new QString (text).RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem6 (TQMenuData (), new TQString (text).RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem7 (IntPtr raw, IntPtr icon, IntPtr text, IntPtr popup, int identifier, int index);
- public int InsertItem (QIconSet icon, string text, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem7 (QMenuData (), icon.RawObject, new QString (text).RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem7 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem8 (IntPtr raw, IntPtr pixmap, int identifier, int index);
- public int InsertItem (QPixmap pixmap, int identifier, int index)
+ public int InsertItem (TQPixmap pixmap, int identifier, int index)
{
- return qt_QMenuData_insertItem8 (QMenuData (), pixmap.RawObject, identifier, index);
+ return qt_QMenuData_insertItem8 (TQMenuData (), pixmap.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem9 (IntPtr raw, IntPtr icon, IntPtr pixmap, int identifier, int index);
- public int InsertItem (QIconSet icon, QPixmap pixmap, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier, int index)
{
- return qt_QMenuData_insertItem9 (QMenuData (), icon.RawObject, pixmap.RawObject, identifier, index);
+ return qt_QMenuData_insertItem9 (TQMenuData (), icon.RawObject, pixmap.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem10 (IntPtr raw, IntPtr pixmap, IntPtr popup, int identifier, int index);
- public int InsertItem (QPixmap pixmap, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem10 (QMenuData (), pixmap.RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem10 (TQMenuData (), pixmap.RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem11 (IntPtr raw, IntPtr icon, IntPtr pixmap, IntPtr popup, int identifier, int index);
- public int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier, int index)
{
- return qt_QMenuData_insertItem11 (QMenuData (), icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index);
+ return qt_QMenuData_insertItem11 (TQMenuData (), icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem12 (IntPtr raw, IntPtr widget, int identifier, int index);
- public int InsertItem (QWidget widget, int identifier, int index)
+ public int InsertItem (TQWidget widget, int identifier, int index)
{
- return qt_QMenuData_insertItem12 (QMenuData (), widget.RawObject, identifier, index);
+ return qt_QMenuData_insertItem12 (TQMenuData (), widget.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem13 (IntPtr raw, IntPtr icon, IntPtr custom, int identifier, int index);
- public int InsertItem (QIconSet icon, QCustomMenuItem custom, int identifier, int index)
+ public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier, int index)
{
- return qt_QMenuData_insertItem13 (QMenuData (), icon.RawObject, custom.RawObject, identifier, index);
+ return qt_QMenuData_insertItem13 (TQMenuData (), icon.RawObject, custom.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertItem14 (IntPtr raw, IntPtr custom, int identifier, int index);
- public int InsertItem (QCustomMenuItem custom, int identifier, int index)
+ public int InsertItem (TQCustomMenuItem custom, int identifier, int index)
{
- return qt_QMenuData_insertItem14 (QMenuData (), custom.RawObject, identifier, index);
+ return qt_QMenuData_insertItem14 (TQMenuData (), custom.RawObject, identifier, index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_insertSeparator (IntPtr raw, int index);
public int InsertSeparator (int index)
{
- return qt_QMenuData_insertSeparator (QMenuData (), index);
+ return qt_QMenuData_insertSeparator (TQMenuData (), index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_removeItem (IntPtr raw, int identifier);
public void RemoveItem (int identifier)
{
- qt_QMenuData_removeItem (QMenuData (), identifier);
+ qt_QMenuData_removeItem (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_removeItemAt (IntPtr raw, int index);
public void RemoveItemAt (int index)
{
- qt_QMenuData_removeItemAt (QMenuData (), index);
+ qt_QMenuData_removeItemAt (TQMenuData (), index);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_clear (IntPtr raw);
public void Clear ()
{
- qt_QMenuData_clear (QMenuData ());
+ qt_QMenuData_clear (TQMenuData ());
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_accel (IntPtr raw, int identifier);
- public QKeySequence Accel (int identifier)
+ public TQKeySequence Accel (int identifier)
{
- return (QKeySequence)LookupObject (qt_QMenuData_accel (QMenuData (), identifier), typeof(QKeySequence));
+ return (TQKeySequence)LookupObject (qt_QMenuData_accel (TQMenuData (), identifier), typeof(TQKeySequence));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setAccel (IntPtr raw, IntPtr key, int identifier);
- public void SetAccel (QKeySequence key, int identifier)
+ public void SetAccel (TQKeySequence key, int identifier)
{
- qt_QMenuData_setAccel (QMenuData (), key.RawObject, identifier);
+ qt_QMenuData_setAccel (TQMenuData (), key.RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_iconSet (IntPtr raw, int identifier);
- public QIconSet IconSet (int identifier)
+ public TQIconSet IconSet (int identifier)
{
- return (QIconSet)LookupObject (qt_QMenuData_iconSet (QMenuData (), identifier), typeof(QIconSet));
+ return (TQIconSet)LookupObject (qt_QMenuData_iconSet (TQMenuData (), identifier), typeof(TQIconSet));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_text (IntPtr raw, int identifier);
public string Text (int identifier)
{
- QString qstr = new QString (qt_QMenuData_text (QMenuData (), identifier));
+ TQString qstr = new TQString (qt_QMenuData_text (TQMenuData (), identifier));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -478,23 +478,23 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_pixmap (IntPtr raw, int identifier);
- public QPixmap Pixmap (int identifier)
+ public TQPixmap Pixmap (int identifier)
{
- return (QPixmap)LookupObject (qt_QMenuData_pixmap (QMenuData (), identifier), typeof(QPixmap));
+ return (TQPixmap)LookupObject (qt_QMenuData_pixmap (TQMenuData (), identifier), typeof(TQPixmap));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setWhatsThis (IntPtr raw, int identifier, IntPtr arg1);
public void SetWhatsThis (int identifier, string arg1)
{
- qt_QMenuData_setWhatsThis (QMenuData (), identifier, new QString (arg1).RawObject);
+ qt_QMenuData_setWhatsThis (TQMenuData (), identifier, new TQString (arg1).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_whatsThis (IntPtr raw, int identifier);
public string WhatsThis (int identifier)
{
- QString qstr = new QString (qt_QMenuData_whatsThis (QMenuData (), identifier));
+ TQString qstr = new TQString (qt_QMenuData_whatsThis (TQMenuData (), identifier));
string str = qstr.Latin1 ();
qstr.Dispose ();
return str;
@@ -504,205 +504,205 @@ namespace Qt {
private static extern void qt_QMenuData_changeItem (IntPtr raw, int identifier, IntPtr text);
public void ChangeItem (int identifier, string text)
{
- qt_QMenuData_changeItem (QMenuData (), identifier, new QString (text).RawObject);
+ qt_QMenuData_changeItem (TQMenuData (), identifier, new TQString (text).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem1 (IntPtr raw, int identifier, IntPtr pixmap);
- public void ChangeItem (int identifier, QPixmap pixmap)
+ public void ChangeItem (int identifier, TQPixmap pixmap)
{
- qt_QMenuData_changeItem1 (QMenuData (), identifier, pixmap.RawObject);
+ qt_QMenuData_changeItem1 (TQMenuData (), identifier, pixmap.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem2 (IntPtr raw, int identifier, IntPtr icon, IntPtr text);
- public void ChangeItem (int identifier, QIconSet icon, string text)
+ public void ChangeItem (int identifier, TQIconSet icon, string text)
{
- qt_QMenuData_changeItem2 (QMenuData (), identifier, icon.RawObject, new QString (text).RawObject);
+ qt_QMenuData_changeItem2 (TQMenuData (), identifier, icon.RawObject, new TQString (text).RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem3 (IntPtr raw, int identifier, IntPtr icon, IntPtr pixmap);
- public void ChangeItem (int identifier, QIconSet icon, QPixmap pixmap)
+ public void ChangeItem (int identifier, TQIconSet icon, TQPixmap pixmap)
{
- qt_QMenuData_changeItem3 (QMenuData (), identifier, icon.RawObject, pixmap.RawObject);
+ qt_QMenuData_changeItem3 (TQMenuData (), identifier, icon.RawObject, pixmap.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem4 (IntPtr raw, IntPtr text, int identifier);
public void ChangeItem (string text, int identifier)
{
- qt_QMenuData_changeItem4 (QMenuData (), new QString (text).RawObject, identifier);
+ qt_QMenuData_changeItem4 (TQMenuData (), new TQString (text).RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem5 (IntPtr raw, IntPtr pixmap, int identifier);
- public void ChangeItem (QPixmap pixmap, int identifier)
+ public void ChangeItem (TQPixmap pixmap, int identifier)
{
- qt_QMenuData_changeItem5 (QMenuData (), pixmap.RawObject, identifier);
+ qt_QMenuData_changeItem5 (TQMenuData (), pixmap.RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_changeItem6 (IntPtr raw, IntPtr icon, IntPtr text, int identifier);
- public void ChangeItem (QIconSet icon, string text, int identifier)
+ public void ChangeItem (TQIconSet icon, string text, int identifier)
{
- qt_QMenuData_changeItem6 (QMenuData (), icon.RawObject, new QString (text).RawObject, identifier);
+ qt_QMenuData_changeItem6 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuData_isItemActive (IntPtr raw, int identifier);
public bool IsItemActive (int identifier)
{
- return qt_QMenuData_isItemActive (QMenuData (), identifier);
+ return qt_QMenuData_isItemActive (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuData_isItemEnabled (IntPtr raw, int identifier);
public bool IsItemEnabled (int identifier)
{
- return qt_QMenuData_isItemEnabled (QMenuData (), identifier);
+ return qt_QMenuData_isItemEnabled (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setItemEnabled (IntPtr raw, int identifier, bool enable);
public void SetItemEnabled (int identifier, bool enable)
{
- qt_QMenuData_setItemEnabled (QMenuData (), identifier, enable);
+ qt_QMenuData_setItemEnabled (TQMenuData (), identifier, enable);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuData_isItemChecked (IntPtr raw, int identifier);
public bool IsItemChecked (int identifier)
{
- return qt_QMenuData_isItemChecked (QMenuData (), identifier);
+ return qt_QMenuData_isItemChecked (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setItemChecked (IntPtr raw, int identifier, bool check);
public void SetItemChecked (int identifier, bool check)
{
- qt_QMenuData_setItemChecked (QMenuData (), identifier, check);
+ qt_QMenuData_setItemChecked (TQMenuData (), identifier, check);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_indexOf (IntPtr raw, int identifier);
public int IndexOf (int identifier)
{
- return qt_QMenuData_indexOf (QMenuData (), identifier);
+ return qt_QMenuData_indexOf (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_setId (IntPtr raw, int index, int identifier);
public void SetId (int index, int identifier)
{
- qt_QMenuData_setId (QMenuData (), index, identifier);
+ qt_QMenuData_setId (TQMenuData (), index, identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QMenuData_setItemParameter (IntPtr raw, int identifier, int param);
public bool SetItemParameter (int identifier, int param)
{
- return qt_QMenuData_setItemParameter (QMenuData (), identifier, param);
+ return qt_QMenuData_setItemParameter (TQMenuData (), identifier, param);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QMenuData_itemParameter (IntPtr raw, int identifier);
public int ItemParameter (int identifier)
{
- return qt_QMenuData_itemParameter (QMenuData (), identifier);
+ return qt_QMenuData_itemParameter (TQMenuData (), identifier);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_findItem (IntPtr raw, int identifier);
- public QMenuItem FindItem (int identifier)
+ public TQMenuItem FindItem (int identifier)
{
- return (QMenuItem)LookupObject (qt_QMenuData_findItem (QMenuData (), identifier), typeof(QMenuItem));
+ return (TQMenuItem)LookupObject (qt_QMenuData_findItem (TQMenuData (), identifier), typeof(TQMenuItem));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_findItem1 (IntPtr raw, int identifier, IntPtr parent);
- public QMenuItem FindItem (int identifier, QMenuData parent)
+ public TQMenuItem FindItem (int identifier, TQMenuData parent)
{
- return (QMenuItem)LookupObject (qt_QMenuData_findItem1 (QMenuData (), identifier, parent.RawObject), typeof(QMenuItem));
+ return (TQMenuItem)LookupObject (qt_QMenuData_findItem1 (TQMenuData (), identifier, parent.RawObject), typeof(TQMenuItem));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QMenuData_findPopup (IntPtr raw, IntPtr arg1, int[] index);
- public QMenuItem FindPopup (QPopupMenu arg1, int[] index)
+ public TQMenuItem FindPopup (TQPopupMenu arg1, int[] index)
{
- return (QMenuItem)LookupObject (qt_QMenuData_findPopup (QMenuData (), arg1.RawObject, index), typeof(QMenuItem));
+ return (TQMenuItem)LookupObject (qt_QMenuData_findPopup (TQMenuData (), arg1.RawObject, index), typeof(TQMenuItem));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_menuInsPopup (IntPtr raw, IntPtr arg1);
- protected void MenuInsPopup (QPopupMenu arg1)
+ protected void MenuInsPopup (TQPopupMenu arg1)
{
- qt_QMenuData_menuInsPopup (QMenuData (), arg1.RawObject);
+ qt_QMenuData_menuInsPopup (TQMenuData (), arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QMenuData_menuDelPopup (IntPtr raw, IntPtr arg1);
- protected void MenuDelPopup (QPopupMenu arg1)
+ protected void MenuDelPopup (TQPopupMenu arg1)
{
- qt_QMenuData_menuDelPopup (QMenuData (), arg1.RawObject);
+ qt_QMenuData_menuDelPopup (TQMenuData (), arg1.RawObject);
}
- public int InsertItem (string text, QObject receiver, string member)
+ public int InsertItem (string text, TQObject receiver, string member)
{
- return InsertItem(text, receiver, member, new QKeySequence ());
+ return InsertItem(text, receiver, member, new TQKeySequence ());
}
- public int InsertItem (string text, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(text, receiver, member, accel, (int) -1);
}
- public int InsertItem (string text, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(text, receiver, member, accel, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member)
{
- return InsertItem(icon, text, receiver, member, new QKeySequence ());
+ return InsertItem(icon, text, receiver, member, new TQKeySequence ());
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(icon, text, receiver, member, accel, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(icon, text, receiver, member, accel, identifier, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member)
{
- return InsertItem(pixmap, receiver, member, new QKeySequence ());
+ return InsertItem(pixmap, receiver, member, new TQKeySequence ());
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(pixmap, receiver, member, accel, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(pixmap, receiver, member, accel, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member)
{
- return InsertItem(icon, pixmap, receiver, member, new QKeySequence ());
+ return InsertItem(icon, pixmap, receiver, member, new TQKeySequence ());
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel)
{
return InsertItem(icon, pixmap, receiver, member, accel, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QObject receiver, string member, QKeySequence accel, int identifier)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier)
{
return InsertItem(icon, pixmap, receiver, member, accel, identifier, (int) -1);
}
@@ -717,102 +717,102 @@ namespace Qt {
return InsertItem(text, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, string text)
+ public int InsertItem (TQIconSet icon, string text)
{
return InsertItem(icon, text, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, int identifier)
+ public int InsertItem (TQIconSet icon, string text, int identifier)
{
return InsertItem(icon, text, identifier, (int) -1);
}
- public int InsertItem (string text, QPopupMenu popup)
+ public int InsertItem (string text, TQPopupMenu popup)
{
return InsertItem(text, popup, (int) -1);
}
- public int InsertItem (string text, QPopupMenu popup, int identifier)
+ public int InsertItem (string text, TQPopupMenu popup, int identifier)
{
return InsertItem(text, popup, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QPopupMenu popup)
+ public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup)
{
return InsertItem(icon, text, popup, (int) -1);
}
- public int InsertItem (QIconSet icon, string text, QPopupMenu popup, int identifier)
+ public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier)
{
return InsertItem(icon, text, popup, identifier, (int) -1);
}
- public int InsertItem (QPixmap pixmap)
+ public int InsertItem (TQPixmap pixmap)
{
return InsertItem(pixmap, (int) -1);
}
- public int InsertItem (QPixmap pixmap, int identifier)
+ public int InsertItem (TQPixmap pixmap, int identifier)
{
return InsertItem(pixmap, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap)
{
return InsertItem(icon, pixmap, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, int identifier)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier)
{
return InsertItem(icon, pixmap, identifier, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QPopupMenu popup)
+ public int InsertItem (TQPixmap pixmap, TQPopupMenu popup)
{
return InsertItem(pixmap, popup, (int) -1);
}
- public int InsertItem (QPixmap pixmap, QPopupMenu popup, int identifier)
+ public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier)
{
return InsertItem(pixmap, popup, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup)
{
return InsertItem(icon, pixmap, popup, (int) -1);
}
- public int InsertItem (QIconSet icon, QPixmap pixmap, QPopupMenu popup, int identifier)
+ public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier)
{
return InsertItem(icon, pixmap, popup, identifier, (int) -1);
}
- public int InsertItem (QWidget widget)
+ public int InsertItem (TQWidget widget)
{
return InsertItem(widget, (int) -1);
}
- public int InsertItem (QWidget widget, int identifier)
+ public int InsertItem (TQWidget widget, int identifier)
{
return InsertItem(widget, identifier, (int) -1);
}
- public int InsertItem (QIconSet icon, QCustomMenuItem custom)
+ public int InsertItem (TQIconSet icon, TQCustomMenuItem custom)
{
return InsertItem(icon, custom, (int) -1);
}
- public int InsertItem (QIconSet icon, QCustomMenuItem custom, int identifier)
+ public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier)
{
return InsertItem(icon, custom, identifier, (int) -1);
}
- public int InsertItem (QCustomMenuItem custom)
+ public int InsertItem (TQCustomMenuItem custom)
{
return InsertItem(custom, (int) -1);
}
- public int InsertItem (QCustomMenuItem custom, int identifier)
+ public int InsertItem (TQCustomMenuItem custom, int identifier)
{
return InsertItem(custom, identifier, (int) -1);
}
@@ -822,7 +822,7 @@ namespace Qt {
return InsertSeparator((int) -1);
}
- public QMenuItem FindPopup (QPopupMenu arg1)
+ public TQMenuItem FindPopup (TQPopupMenu arg1)
{
return FindPopup(arg1, new int[]{0});
}
diff --git a/qtsharp/src/bindings/static/QString.cs b/qtsharp/src/bindings/static/QString.cs
index fd532256..1a790975 100644
--- a/qtsharp/src/bindings/static/QString.cs
+++ b/qtsharp/src/bindings/static/QString.cs
@@ -1,4 +1,4 @@
-// QString.cs - A Qt to C# binding.
+// TQString.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -26,7 +26,7 @@ namespace Qt {
using System;
using System.Runtime.InteropServices;
- public class QString : QtSupport, IDisposable {
+ public class TQString : QtSupport, IDisposable {
public enum SectionFlags {
SectionDefault = 0,
@@ -39,28 +39,28 @@ namespace Qt {
[DllImport("libqtc")]
private static extern IntPtr qt_QString_null ();
- public static readonly QString Null = new QString (qt_QString_null ());
+ public static readonly TQString Null = new TQString (qt_QString_null ());
// TODO: Is there a good reason why this C# constructor is public?
[DllImport("libqtc")]
private static extern IntPtr qt_new_QString ();
- public QString () : this (QNull.Instance)
+ public TQString () : this (QNull.Instance)
{
rawObject = qt_new_QString ();
}
- // TODO: Make sure there is a QChar constructor that
+ // TODO: Make sure there is a TQChar constructor that
// handles unicode conversion
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QString1 (IntPtr arg1);
- public QString (QChar arg1) : this (QNull.Instance)
+ public TQString (TQChar arg1) : this (QNull.Instance)
{
rawObject = qt_new_QString1 (arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QString2 (IntPtr arg1);
- public QString (QString arg1) : this (QNull.Instance)
+ public TQString (TQString arg1) : this (QNull.Instance)
{
rawObject = qt_new_QString2 (arg1.RawObject);
}
@@ -69,7 +69,7 @@ namespace Qt {
// QByteArray
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QString3 (IntPtr arg1);
- public QString (QByteArray arg1) : this (QNull.Instance)
+ public TQString (TQByteArray arg1) : this (QNull.Instance)
{
rawObject = qt_new_QString3 (arg1.RawObject);
}
@@ -79,7 +79,7 @@ namespace Qt {
// QChar
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QString4 (IntPtr unicode, uint length);
- public QString (QChar unicode, uint length) : this (QNull.Instance)
+ public TQString (TQChar unicode, uint length) : this (QNull.Instance)
{
rawObject = qt_new_QString4 (unicode.RawObject, length);
@@ -91,25 +91,25 @@ namespace Qt {
[MarshalAs(UnmanagedType.LPWStr)] string s,
uint len);
- public QString( string s ): this( QNull.Instance )
+ public TQString( string s ): this( QNull.Instance )
{
rawObject = qt_new_QString ();
rawObject = qt_QString_setUnicodeCodes(
rawObject, s, (uint) s.Length );
}
- internal QString (IntPtr ptr) : this (QNull.Instance)
+ internal TQString (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
}
- internal QString (QNull dummy) : base (QNull.Instance) {}
+ internal TQString (QNull dummy) : base (QNull.Instance) {}
[DllImport("libqtc")]
private static extern void qt_del_QString (IntPtr str);
- ~QString ()
+ ~TQString ()
{
qt_del_QString (rawObject);
}
@@ -127,7 +127,7 @@ namespace Qt {
}
}
- public static implicit operator string ( QString s )
+ public static implicit operator string ( TQString s )
{
int length = (int) s.Length();
char[] t = new char[length];
@@ -138,9 +138,9 @@ namespace Qt {
return new String(t);
}
- public static implicit operator QString ( string s )
+ public static implicit operator TQString ( string s )
{
- return new QString(s);
+ return new TQString(s);
}
public override string ToString ()
@@ -148,9 +148,9 @@ namespace Qt {
return (string) this;
}
- public static QString operator + ( QString a, QString b )
+ public static TQString operator + ( TQString a, TQString b )
{
- QString result = new QString (qt_new_QString2( a.rawObject ));
+ TQString result = new TQString (qt_new_QString2( a.rawObject ));
result.rawObject =
qt_QString_append2( result.rawObject, b.rawObject );
return result;
@@ -188,92 +188,92 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_fill (IntPtr raw, IntPtr c, int len);
- public QString Fill (QChar c, int len)
+ public TQString Fill (TQChar c, int len)
{
- return new QString (qt_QString_fill (rawObject, c.RawObject, len));
+ return new TQString (qt_QString_fill (rawObject, c.RawObject, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg (IntPtr raw, long a, int fieldwidth, int Q_base);
- public QString Arg (long a, int fieldwidth, int Q_base)
+ public TQString Arg (long a, int fieldwidth, int Q_base)
{
- return new QString (qt_QString_arg (rawObject, a, fieldwidth, Q_base));
+ return new TQString (qt_QString_arg (rawObject, a, fieldwidth, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg1 (IntPtr raw, ulong a, int fieldwidth, int Q_base);
- public QString Arg (ulong a, int fieldwidth, int Q_base)
+ public TQString Arg (ulong a, int fieldwidth, int Q_base)
{
- return new QString (qt_QString_arg1 (rawObject, a, fieldwidth, Q_base));
+ return new TQString (qt_QString_arg1 (rawObject, a, fieldwidth, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg2 (IntPtr raw, int a, int fieldwidth, int Q_base);
- public QString Arg (int a, int fieldwidth, int Q_base)
+ public TQString Arg (int a, int fieldwidth, int Q_base)
{
- return new QString (qt_QString_arg2 (rawObject, a, fieldwidth, Q_base));
+ return new TQString (qt_QString_arg2 (rawObject, a, fieldwidth, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg3 (IntPtr raw, uint a, int fieldwidth, int Q_base);
- public QString Arg (uint a, int fieldwidth, int Q_base)
+ public TQString Arg (uint a, int fieldwidth, int Q_base)
{
- return new QString (qt_QString_arg3 (rawObject, a, fieldwidth, Q_base));
+ return new TQString (qt_QString_arg3 (rawObject, a, fieldwidth, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg4 (IntPtr raw, short a, int fieldwidth, int Q_base);
- public QString Arg (short a, int fieldwidth, int Q_base)
+ public TQString Arg (short a, int fieldwidth, int Q_base)
{
- return new QString (qt_QString_arg4 (rawObject, a, fieldwidth, Q_base));
+ return new TQString (qt_QString_arg4 (rawObject, a, fieldwidth, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg5 (IntPtr raw, ushort a, int fieldwidth, int Q_base);
- public QString Arg (ushort a, int fieldwidth, int Q_base)
+ public TQString Arg (ushort a, int fieldwidth, int Q_base)
{
- return new QString (qt_QString_arg5 (rawObject, a, fieldwidth, Q_base));
+ return new TQString (qt_QString_arg5 (rawObject, a, fieldwidth, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg6 (IntPtr raw, char a, int fieldwidth);
- public QString Arg (char a, int fieldwidth)
+ public TQString Arg (char a, int fieldwidth)
{
- return new QString (qt_QString_arg6 (rawObject, a, fieldwidth));
+ return new TQString (qt_QString_arg6 (rawObject, a, fieldwidth));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg7 (IntPtr raw, IntPtr a, int fieldwidth);
- public QString Arg (QChar a, int fieldwidth)
+ public TQString Arg (TQChar a, int fieldwidth)
{
- return new QString (qt_QString_arg7 (rawObject, a.RawObject, fieldwidth));
+ return new TQString (qt_QString_arg7 (rawObject, a.RawObject, fieldwidth));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg8 (IntPtr raw, IntPtr a, int fieldwidth);
- public QString Arg (QString a, int fieldwidth)
+ public TQString Arg (TQString a, int fieldwidth)
{
- return new QString (qt_QString_arg8 (rawObject, a.RawObject, fieldwidth));
+ return new TQString (qt_QString_arg8 (rawObject, a.RawObject, fieldwidth));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_arg9 (IntPtr raw, double a, int fieldwidth, char fmt, int prec);
- public QString Arg (double a, int fieldwidth, char fmt, int prec)
+ public TQString Arg (double a, int fieldwidth, char fmt, int prec)
{
- return new QString (qt_QString_arg9 (rawObject, a, fieldwidth, fmt, prec));
+ return new TQString (qt_QString_arg9 (rawObject, a, fieldwidth, fmt, prec));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_find (IntPtr raw, IntPtr c, int index, bool cs);
- public int Find (QChar c, int index, bool cs)
+ public int Find (TQChar c, int index, bool cs)
{
return qt_QString_find (rawObject, c.RawObject, index, cs);
}
@@ -287,14 +287,14 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_find2 (IntPtr raw, IntPtr str, int index, bool cs);
- public int Find (QString str, int index, bool cs)
+ public int Find (TQString str, int index, bool cs)
{
return qt_QString_find2 (rawObject, str.RawObject, index, cs);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_find3 (IntPtr raw, IntPtr arg1, int index);
- public int Find (QRegExp arg1, int index)
+ public int Find (TQRegExp arg1, int index)
{
return qt_QString_find3 (rawObject, arg1.RawObject, index);
}
@@ -308,7 +308,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_findRev (IntPtr raw, IntPtr c, int index, bool cs);
- public int FindRev (QChar c, int index, bool cs)
+ public int FindRev (TQChar c, int index, bool cs)
{
return qt_QString_findRev (rawObject, c.RawObject, index, cs);
}
@@ -322,14 +322,14 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_findRev2 (IntPtr raw, IntPtr str, int index, bool cs);
- public int FindRev (QString str, int index, bool cs)
+ public int FindRev (TQString str, int index, bool cs)
{
return qt_QString_findRev2 (rawObject, str.RawObject, index, cs);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_findRev3 (IntPtr raw, IntPtr arg1, int index);
- public int FindRev (QRegExp arg1, int index)
+ public int FindRev (TQRegExp arg1, int index)
{
return qt_QString_findRev3 (rawObject, arg1.RawObject, index);
}
@@ -343,7 +343,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_contains (IntPtr raw, IntPtr c, bool cs);
- public int Contains (QChar c, bool cs)
+ public int Contains (TQChar c, bool cs)
{
return qt_QString_contains (rawObject, c.RawObject, cs);
}
@@ -364,213 +364,213 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_contains3 (IntPtr raw, IntPtr str, bool cs);
- public int Contains (QString str, bool cs)
+ public int Contains (TQString str, bool cs)
{
return qt_QString_contains3 (rawObject, str.RawObject, cs);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_contains4 (IntPtr raw, IntPtr arg1);
- public int Contains (QRegExp arg1)
+ public int Contains (TQRegExp arg1)
{
return qt_QString_contains4 (rawObject, arg1.RawObject);
}
- // TODO: This is wrong. sep should be a QChar* in C++ terms
+ // TODO: This is wrong. sep should be a TQChar* in C++ terms
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QString_section (IntPtr raw, IntPtr sep, int start, int end, QString.SectionFlags SectionFlags);
- public QString Section (QChar sep, int start, int end, QString.SectionFlags SectionFlags)
+ private static extern IntPtr qt_QString_section (IntPtr raw, IntPtr sep, int start, int end, TQString.SectionFlags SectionFlags);
+ public TQString Section (TQChar sep, int start, int end, TQString.SectionFlags SectionFlags)
{
- return new QString (qt_QString_section (rawObject, sep.RawObject, start, end, SectionFlags));
+ return new TQString (qt_QString_section (rawObject, sep.RawObject, start, end, SectionFlags));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QString_section1 (IntPtr raw, char sep, int start, int end, QString.SectionFlags SectionFlags);
- public QString Section (char sep, int start, int end, QString.SectionFlags SectionFlags)
+ private static extern IntPtr qt_QString_section1 (IntPtr raw, char sep, int start, int end, TQString.SectionFlags SectionFlags);
+ public TQString Section (char sep, int start, int end, TQString.SectionFlags SectionFlags)
{
- return new QString (qt_QString_section1 (rawObject, sep, start, end, SectionFlags));
+ return new TQString (qt_QString_section1 (rawObject, sep, start, end, SectionFlags));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QString_section2 (IntPtr raw, string in_sep, int start, int end, QString.SectionFlags SectionFlags);
- public QString Section (string in_sep, int start, int end, QString.SectionFlags SectionFlags)
+ private static extern IntPtr qt_QString_section2 (IntPtr raw, string in_sep, int start, int end, TQString.SectionFlags SectionFlags);
+ public TQString Section (string in_sep, int start, int end, TQString.SectionFlags SectionFlags)
{
- return new QString (qt_QString_section2 (rawObject, in_sep, start, end, SectionFlags));
+ return new TQString (qt_QString_section2 (rawObject, in_sep, start, end, SectionFlags));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QString_section3 (IntPtr raw, IntPtr in_sep, int start, int end, QString.SectionFlags SectionFlags);
- public QString Section (QString in_sep, int start, int end, QString.SectionFlags SectionFlags)
+ private static extern IntPtr qt_QString_section3 (IntPtr raw, IntPtr in_sep, int start, int end, TQString.SectionFlags SectionFlags);
+ public TQString Section (TQString in_sep, int start, int end, TQString.SectionFlags SectionFlags)
{
- return new QString (qt_QString_section3 (rawObject, in_sep.RawObject, start, end, SectionFlags));
+ return new TQString (qt_QString_section3 (rawObject, in_sep.RawObject, start, end, SectionFlags));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QString_section4 (IntPtr raw, IntPtr reg, int start, int end, QString.SectionFlags SectionFlags);
- public QString Section (QRegExp reg, int start, int end, QString.SectionFlags SectionFlags)
+ private static extern IntPtr qt_QString_section4 (IntPtr raw, IntPtr reg, int start, int end, TQString.SectionFlags SectionFlags);
+ public TQString Section (TQRegExp reg, int start, int end, TQString.SectionFlags SectionFlags)
{
- return new QString (qt_QString_section4 (rawObject, reg.RawObject, start, end, SectionFlags));
+ return new TQString (qt_QString_section4 (rawObject, reg.RawObject, start, end, SectionFlags));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_left (IntPtr raw, uint len);
- public QString Left (uint len)
+ public TQString Left (uint len)
{
- return new QString (qt_QString_left (rawObject, len));
+ return new TQString (qt_QString_left (rawObject, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_right (IntPtr raw, uint len);
- public QString Right (uint len)
+ public TQString Right (uint len)
{
- return new QString (qt_QString_right (rawObject, len));
+ return new TQString (qt_QString_right (rawObject, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_mid (IntPtr raw, uint index, uint len);
- public QString Mid (uint index, uint len)
+ public TQString Mid (uint index, uint len)
{
- return new QString (qt_QString_mid (rawObject, index, len));
+ return new TQString (qt_QString_mid (rawObject, index, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_leftJustify (IntPtr raw, uint width, IntPtr fill, bool trunc);
- public QString LeftJustify (uint width, QChar fill, bool trunc)
+ public TQString LeftJustify (uint width, TQChar fill, bool trunc)
{
- return new QString (qt_QString_leftJustify (rawObject, width, fill.RawObject, trunc));
+ return new TQString (qt_QString_leftJustify (rawObject, width, fill.RawObject, trunc));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_rightJustify (IntPtr raw, uint width, IntPtr fill, bool trunc);
- public QString RightJustify (uint width, QChar fill, bool trunc)
+ public TQString RightJustify (uint width, TQChar fill, bool trunc)
{
- return new QString (qt_QString_rightJustify (rawObject, width, fill.RawObject, trunc));
+ return new TQString (qt_QString_rightJustify (rawObject, width, fill.RawObject, trunc));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_lower (IntPtr raw);
- public QString Lower ()
+ public TQString Lower ()
{
- return new QString (qt_QString_lower (rawObject));
+ return new TQString (qt_QString_lower (rawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_upper (IntPtr raw);
- public QString Upper ()
+ public TQString Upper ()
{
- return new QString (qt_QString_upper (rawObject));
+ return new TQString (qt_QString_upper (rawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_stripWhiteSpace (IntPtr raw);
- public QString StripWhiteSpace ()
+ public TQString StripWhiteSpace ()
{
- return new QString (qt_QString_stripWhiteSpace (rawObject));
+ return new TQString (qt_QString_stripWhiteSpace (rawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_simplifyWhiteSpace (IntPtr raw);
- public QString SimplifyWhiteSpace ()
+ public TQString SimplifyWhiteSpace ()
{
- return new QString (qt_QString_simplifyWhiteSpace (rawObject));
+ return new TQString (qt_QString_simplifyWhiteSpace (rawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_insert (IntPtr raw, uint index, IntPtr arg1);
- public QString Insert (uint index, QString arg1)
+ public TQString Insert (uint index, TQString arg1)
{
- return new QString (qt_QString_insert (rawObject, index, arg1.RawObject));
+ return new TQString (qt_QString_insert (rawObject, index, arg1.RawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_insert1 (IntPtr raw, uint index, IntPtr arg1, uint len);
- public QString Insert (uint index, QChar arg1, uint len)
+ public TQString Insert (uint index, TQChar arg1, uint len)
{
- return new QString (qt_QString_insert1 (rawObject, index, arg1.RawObject, len));
+ return new TQString (qt_QString_insert1 (rawObject, index, arg1.RawObject, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_insert2 (IntPtr raw, uint index, IntPtr arg1);
- public QString Insert (uint index, QChar arg1)
+ public TQString Insert (uint index, TQChar arg1)
{
- return new QString (qt_QString_insert2 (rawObject, index, arg1.RawObject));
+ return new TQString (qt_QString_insert2 (rawObject, index, arg1.RawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_insert3 (IntPtr raw, uint index, char c);
- public QString Insert (uint index, char c)
+ public TQString Insert (uint index, char c)
{
- return new QString (qt_QString_insert3 (rawObject, index, c));
+ return new TQString (qt_QString_insert3 (rawObject, index, c));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_append (IntPtr raw, char arg1);
- public QString Append (char arg1)
+ public TQString Append (char arg1)
{
- return new QString (qt_QString_append (rawObject, arg1));
+ return new TQString (qt_QString_append (rawObject, arg1));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_append1 (IntPtr raw, IntPtr arg1);
- public QString Append (QChar arg1)
+ public TQString Append (TQChar arg1)
{
- return new QString (qt_QString_append1 (rawObject, arg1.RawObject));
+ return new TQString (qt_QString_append1 (rawObject, arg1.RawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_append2 (IntPtr raw, IntPtr arg1);
- public QString Append (QString arg1)
+ public TQString Append (TQString arg1)
{
- return new QString (qt_QString_append2 (rawObject, arg1.RawObject));
+ return new TQString (qt_QString_append2 (rawObject, arg1.RawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_prepend (IntPtr raw, char arg1);
- public QString Prepend (char arg1)
+ public TQString Prepend (char arg1)
{
- return new QString (qt_QString_prepend (rawObject, arg1));
+ return new TQString (qt_QString_prepend (rawObject, arg1));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_prepend1 (IntPtr raw, IntPtr arg1);
- public QString Prepend (QChar arg1)
+ public TQString Prepend (TQChar arg1)
{
- return new QString (qt_QString_prepend1 (rawObject, arg1.RawObject));
+ return new TQString (qt_QString_prepend1 (rawObject, arg1.RawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_prepend2 (IntPtr raw, IntPtr arg1);
- public QString Prepend (QString arg1)
+ public TQString Prepend (TQString arg1)
{
- return new QString (qt_QString_prepend2 (rawObject, arg1.RawObject));
+ return new TQString (qt_QString_prepend2 (rawObject, arg1.RawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_remove (IntPtr raw, uint index, uint len);
- public QString Remove (uint index, uint len)
+ public TQString Remove (uint index, uint len)
{
- return new QString (qt_QString_remove (rawObject, index, len));
+ return new TQString (qt_QString_remove (rawObject, index, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_replace (IntPtr raw, uint index, uint len, IntPtr arg1);
- public QString Replace (uint index, uint len, QString arg1)
+ public TQString Replace (uint index, uint len, TQString arg1)
{
- return new QString (qt_QString_replace (rawObject, index, len, arg1.RawObject));
+ return new TQString (qt_QString_replace (rawObject, index, len, arg1.RawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_replace1 (IntPtr raw, uint index, uint len, IntPtr arg1, uint clen);
- public QString Replace (uint index, uint len, QChar arg1, uint clen)
+ public TQString Replace (uint index, uint len, TQChar arg1, uint clen)
{
- return new QString (qt_QString_replace1 (rawObject, index, len, arg1.RawObject, clen));
+ return new TQString (qt_QString_replace1 (rawObject, index, len, arg1.RawObject, clen));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_replace2 (IntPtr raw, IntPtr arg1, IntPtr arg2);
- public QString Replace (QRegExp arg1, QString arg2)
+ public TQString Replace (TQRegExp arg1, TQString arg2)
{
- return new QString (qt_QString_replace2 (rawObject, arg1.RawObject, arg2.RawObject));
+ return new TQString (qt_QString_replace2 (rawObject, arg1.RawObject, arg2.RawObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -631,95 +631,95 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setNum (IntPtr raw, short arg1, int Q_base);
- public QString SetNum (short arg1, int Q_base)
+ public TQString SetNum (short arg1, int Q_base)
{
- return new QString (qt_QString_setNum (rawObject, arg1, Q_base));
+ return new TQString (qt_QString_setNum (rawObject, arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setNum1 (IntPtr raw, ushort arg1, int Q_base);
- public QString SetNum (ushort arg1, int Q_base)
+ public TQString SetNum (ushort arg1, int Q_base)
{
- return new QString (qt_QString_setNum1 (rawObject, arg1, Q_base));
+ return new TQString (qt_QString_setNum1 (rawObject, arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setNum2 (IntPtr raw, int arg1, int Q_base);
- public QString SetNum (int arg1, int Q_base)
+ public TQString SetNum (int arg1, int Q_base)
{
- return new QString (qt_QString_setNum2 (rawObject, arg1, Q_base));
+ return new TQString (qt_QString_setNum2 (rawObject, arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setNum3 (IntPtr raw, uint arg1, int Q_base);
- public QString SetNum (uint arg1, int Q_base)
+ public TQString SetNum (uint arg1, int Q_base)
{
- return new QString (qt_QString_setNum3 (rawObject, arg1, Q_base));
+ return new TQString (qt_QString_setNum3 (rawObject, arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setNum4 (IntPtr raw, long arg1, int Q_base);
- public QString SetNum (long arg1, int Q_base)
+ public TQString SetNum (long arg1, int Q_base)
{
- return new QString (qt_QString_setNum4 (rawObject, arg1, Q_base));
+ return new TQString (qt_QString_setNum4 (rawObject, arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setNum5 (IntPtr raw, ulong arg1, int Q_base);
- public QString SetNum (ulong arg1, int Q_base)
+ public TQString SetNum (ulong arg1, int Q_base)
{
- return new QString (qt_QString_setNum5 (rawObject, arg1, Q_base));
+ return new TQString (qt_QString_setNum5 (rawObject, arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setNum6 (IntPtr raw, float arg1, char f, int prec);
- public QString SetNum (float arg1, char f, int prec)
+ public TQString SetNum (float arg1, char f, int prec)
{
- return new QString (qt_QString_setNum6 (rawObject, arg1, f, prec));
+ return new TQString (qt_QString_setNum6 (rawObject, arg1, f, prec));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setNum7 (IntPtr raw, double arg1, char f, int prec);
- public QString SetNum (double arg1, char f, int prec)
+ public TQString SetNum (double arg1, char f, int prec)
{
- return new QString (qt_QString_setNum7 (rawObject, arg1, f, prec));
+ return new TQString (qt_QString_setNum7 (rawObject, arg1, f, prec));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QString_setExpand (IntPtr raw, uint index, IntPtr c);
- public void SetExpand (uint index, QChar c)
+ public void SetExpand (uint index, TQChar c)
{
qt_QString_setExpand (rawObject, index, c.RawObject);
}
- // TODO: The QChar functions need to get fixed
+ // TODO: The TQChar functions need to get fixed
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_at (IntPtr raw, uint i);
- public QChar At (uint i)
+ public TQChar At (uint i)
{
- return LookupObject (qt_QString_at (rawObject, i), typeof (QChar)) as QChar;
+ return LookupObject (qt_QString_at (rawObject, i), typeof (TQChar)) as QChar;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_constref (IntPtr raw, uint i);
- public QChar Constref (uint i)
+ public TQChar Constref (uint i)
{
- return LookupObject (qt_QString_constref (rawObject, i), typeof (QChar)) as QChar;
+ return LookupObject (qt_QString_constref (rawObject, i), typeof (TQChar)) as QChar;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_ref (IntPtr raw, uint i);
- public QChar Q_ref (uint i)
+ public TQChar Q_ref (uint i)
{
- return LookupObject (qt_QString_ref (rawObject, i), typeof (QChar)) as QChar;
+ return LookupObject (qt_QString_ref (rawObject, i), typeof (TQChar)) as QChar;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_unicode (IntPtr raw);
- public QChar Unicode ()
+ public TQChar Unicode ()
{
- return LookupObject (qt_QString_unicode (rawObject), typeof (QChar)) as QChar;
+ return LookupObject (qt_QString_unicode (rawObject), typeof (TQChar)) as QChar;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -738,42 +738,42 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_utf8 (IntPtr raw);
- public QCString Utf8 ()
+ public TQCString Utf8 ()
{
- return LookupObject (qt_QString_utf8 (rawObject), typeof (QCString)) as QCString;
+ return LookupObject (qt_QString_utf8 (rawObject), typeof (TQCString)) as QCString;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_local8Bit (IntPtr raw);
- public QCString Local8Bit ()
+ public TQCString Local8Bit ()
{
- return LookupObject (qt_QString_local8Bit (rawObject), typeof (QCString)) as QCString;
+ return LookupObject (qt_QString_local8Bit (rawObject), typeof (TQCString)) as QCString;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setUnicode (IntPtr raw, IntPtr unicode, uint len);
- public QString SetUnicode (QChar unicode, uint len)
+ public TQString SetUnicode (TQChar unicode, uint len)
{
- return new QString (qt_QString_setUnicode (rawObject, unicode.RawObject, len));
+ return new TQString (qt_QString_setUnicode (rawObject, unicode.RawObject, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_setLatin1 (IntPtr raw, string arg1, int len);
- public QString SetLatin1 (string arg1, int len)
+ public TQString SetLatin1 (string arg1, int len)
{
- return new QString (qt_QString_setLatin1 (rawObject, arg1, len));
+ return new TQString (qt_QString_setLatin1 (rawObject, arg1, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_compare (IntPtr raw, IntPtr s);
- public int Compare (QString s)
+ public int Compare (TQString s)
{
return qt_QString_compare (rawObject, s.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_localeAwareCompare (IntPtr raw, IntPtr s);
- public int LocaleAwareCompare (QString s)
+ public int LocaleAwareCompare (TQString s)
{
return qt_QString_localeAwareCompare (rawObject, s.RawObject);
}
@@ -794,14 +794,14 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QString_startsWith (IntPtr raw, IntPtr arg1);
- public bool StartsWith (QString arg1)
+ public bool StartsWith (TQString arg1)
{
return qt_QString_startsWith (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QString_endsWith (IntPtr raw, IntPtr arg1);
- public bool EndsWith (QString arg1)
+ public bool EndsWith (TQString arg1)
{
return qt_QString_endsWith (rawObject, arg1.RawObject);
}
@@ -829,175 +829,175 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_number (long arg1, int Q_base);
- public static QString Number (long arg1, int Q_base)
+ public static TQString Number (long arg1, int Q_base)
{
- return new QString (qt_QString_number (arg1, Q_base));
+ return new TQString (qt_QString_number (arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_number1 (ulong arg1, int Q_base);
- public static QString Number (ulong arg1, int Q_base)
+ public static TQString Number (ulong arg1, int Q_base)
{
- return new QString (qt_QString_number1 (arg1, Q_base));
+ return new TQString (qt_QString_number1 (arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_number2 (int arg1, int Q_base);
- public static QString Number (int arg1, int Q_base)
+ public static TQString Number (int arg1, int Q_base)
{
- return new QString (qt_QString_number2 (arg1, Q_base));
+ return new TQString (qt_QString_number2 (arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_number3 (uint arg1, int Q_base);
- public static QString Number (uint arg1, int Q_base)
+ public static TQString Number (uint arg1, int Q_base)
{
- return new QString (qt_QString_number3 (arg1, Q_base));
+ return new TQString (qt_QString_number3 (arg1, Q_base));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_number4 (double arg1, char f, int prec);
- public static QString Number (double arg1, char f, int prec)
+ public static TQString Number (double arg1, char f, int prec)
{
- return new QString (qt_QString_number4 (arg1, f, prec));
+ return new TQString (qt_QString_number4 (arg1, f, prec));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QString_fromLatin1 (string arg1, int len);
- public static QString FromLatin1 (string arg1, int len)
+ public static TQString FromLatin1 (string arg1, int len)
{
- return new QString (qt_QString_fromLatin1 (arg1, len));
+ return new TQString (qt_QString_fromLatin1 (arg1, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QString_fromUtf8 (QString arg1, int len);
- public static QString FromUtf8 (string arg1, int len)
+ private static extern IntPtr qt_QString_fromUtf8 (TQString arg1, int len);
+ public static TQString FromUtf8 (string arg1, int len)
{
- return new QString (qt_QString_fromUtf8 (arg1, len));
+ return new TQString (qt_QString_fromUtf8 (arg1, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QString_fromLocal8Bit (QString arg1, int len);
- public static QString FromLocal8Bit (string arg1, int len)
+ private static extern IntPtr qt_QString_fromLocal8Bit (TQString arg1, int len);
+ public static TQString FromLocal8Bit (string arg1, int len)
{
- return new QString (qt_QString_fromLocal8Bit (arg1, len));
+ return new TQString (qt_QString_fromLocal8Bit (arg1, len));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_compare1 (IntPtr s1, IntPtr s2);
- public static int Compare (QString s1, QString s2)
+ public static int Compare (TQString s1, TQString s2)
{
return qt_QString_compare1 (s1.RawObject, s2.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QString_localeAwareCompare1 (IntPtr s1, IntPtr s2);
- public static int LocaleAwareCompare (QString s1, QString s2)
+ public static int LocaleAwareCompare (TQString s1, TQString s2)
{
return qt_QString_localeAwareCompare1 (s1.RawObject, s2.RawObject);
}
- public QString Fill (QChar c)
+ public TQString Fill (TQChar c)
{
return Fill(c, (int) -1);
}
- public QString Arg (long a)
+ public TQString Arg (long a)
{
return Arg(a, (int) 0);
}
- public QString Arg (long a, int fieldwidth)
+ public TQString Arg (long a, int fieldwidth)
{
return Arg(a, fieldwidth, (int) 10);
}
- public QString Arg (ulong a)
+ public TQString Arg (ulong a)
{
return Arg(a, (int) 0);
}
- public QString Arg (ulong a, int fieldwidth)
+ public TQString Arg (ulong a, int fieldwidth)
{
return Arg(a, fieldwidth, (int) 10);
}
- public QString Arg (int a)
+ public TQString Arg (int a)
{
return Arg(a, (int) 0);
}
- public QString Arg (int a, int fieldwidth)
+ public TQString Arg (int a, int fieldwidth)
{
return Arg(a, fieldwidth, (int) 10);
}
- public QString Arg (uint a)
+ public TQString Arg (uint a)
{
return Arg(a, (int) 0);
}
- public QString Arg (uint a, int fieldwidth)
+ public TQString Arg (uint a, int fieldwidth)
{
return Arg(a, fieldwidth, (int) 10);
}
- public QString Arg (short a)
+ public TQString Arg (short a)
{
return Arg(a, (int) 0);
}
- public QString Arg (short a, int fieldwidth)
+ public TQString Arg (short a, int fieldwidth)
{
return Arg(a, fieldwidth, (int) 10);
}
- public QString Arg (ushort a)
+ public TQString Arg (ushort a)
{
return Arg(a, (int) 0);
}
- public QString Arg (ushort a, int fieldwidth)
+ public TQString Arg (ushort a, int fieldwidth)
{
return Arg(a, fieldwidth, (int) 10);
}
- public QString Arg (char a)
+ public TQString Arg (char a)
{
return Arg(a, (int) 0);
}
- public QString Arg (QChar a)
+ public TQString Arg (TQChar a)
{
return Arg(a, (int) 0);
}
- public QString Arg (QString a)
+ public TQString Arg (TQString a)
{
return Arg(a, (int) 0);
}
- public QString Arg (double a)
+ public TQString Arg (double a)
{
return Arg(a, (int) 0);
}
- public QString Arg (double a, int fieldwidth)
+ public TQString Arg (double a, int fieldwidth)
{
return Arg(a, fieldwidth, (char) 'g');
}
- public QString Arg (double a, int fieldwidth, char fmt)
+ public TQString Arg (double a, int fieldwidth, char fmt)
{
return Arg(a, fieldwidth, fmt, (int) -1);
}
- public int Find (QChar c)
+ public int Find (TQChar c)
{
return Find(c, (int) 0);
}
- public int Find (QChar c, int index)
+ public int Find (TQChar c, int index)
{
return Find(c, index, true);
}
@@ -1012,17 +1012,17 @@ namespace Qt {
return Find(c, index, true);
}
- public int Find (QString str)
+ public int Find (TQString str)
{
return Find(str, (int) 0);
}
- public int Find (QString str, int index)
+ public int Find (TQString str, int index)
{
return Find(str, index, true);
}
- public int Find (QRegExp arg1)
+ public int Find (TQRegExp arg1)
{
return Find(arg1, (int) 0);
}
@@ -1032,12 +1032,12 @@ namespace Qt {
return Find(str, (int) 0);
}
- public int FindRev (QChar c)
+ public int FindRev (TQChar c)
{
return FindRev(c, (int) -1);
}
- public int FindRev (QChar c, int index)
+ public int FindRev (TQChar c, int index)
{
return FindRev(c, index, true);
}
@@ -1052,17 +1052,17 @@ namespace Qt {
return FindRev(c, index, true);
}
- public int FindRev (QString str)
+ public int FindRev (TQString str)
{
return FindRev(str, (int) -1);
}
- public int FindRev (QString str, int index)
+ public int FindRev (TQString str, int index)
{
return FindRev(str, index, true);
}
- public int FindRev (QRegExp arg1)
+ public int FindRev (TQRegExp arg1)
{
return FindRev(arg1, (int) -1);
}
@@ -1072,7 +1072,7 @@ namespace Qt {
return FindRev(str, (int) -1);
}
- public int Contains (QChar c)
+ public int Contains (TQChar c)
{
return Contains(c, true);
}
@@ -1082,7 +1082,7 @@ namespace Qt {
return Contains(c, true);
}
- public int Contains (QString str)
+ public int Contains (TQString str)
{
return Contains(str, true);
}
@@ -1092,77 +1092,77 @@ namespace Qt {
return Contains(str, true);
}
- public QString Section (QChar sep, int start)
+ public TQString Section (TQChar sep, int start)
{
return Section(sep, start, (int) 1);
}
- public QString Section (QChar sep, int start, int end)
+ public TQString Section (TQChar sep, int start, int end)
{
- return Section(sep, start, end, QString.SectionFlags.SectionDefault);
+ return Section(sep, start, end, TQString.SectionFlags.SectionDefault);
}
- public QString Section (char sep, int start)
+ public TQString Section (char sep, int start)
{
return Section(sep, start, (int) 1);
}
- public QString Section (char sep, int start, int end)
+ public TQString Section (char sep, int start, int end)
{
- return Section(sep, start, end, QString.SectionFlags.SectionDefault);
+ return Section(sep, start, end, TQString.SectionFlags.SectionDefault);
}
- public QString Section (QString in_sep, int start)
+ public TQString Section (TQString in_sep, int start)
{
return Section(in_sep, start, (int) 1);
}
- public QString Section (QString in_sep, int start, int end)
+ public TQString Section (TQString in_sep, int start, int end)
{
- return Section(in_sep, start, end, QString.SectionFlags.SectionDefault);
+ return Section(in_sep, start, end, TQString.SectionFlags.SectionDefault);
}
- public QString Section (string in_sep, int start)
+ public TQString Section (string in_sep, int start)
{
return Section(in_sep, start, (int) 1);
}
- public QString Section (string in_sep, int start, int end)
+ public TQString Section (string in_sep, int start, int end)
{
- return Section(in_sep, start, end, QString.SectionFlags.SectionDefault);
+ return Section(in_sep, start, end, TQString.SectionFlags.SectionDefault);
}
- public QString Section (QRegExp reg, int start)
+ public TQString Section (TQRegExp reg, int start)
{
return Section(reg, start, (int) 1);
}
- public QString Section (QRegExp reg, int start, int end)
+ public TQString Section (TQRegExp reg, int start, int end)
{
- return Section(reg, start, end, QString.SectionFlags.SectionDefault);
+ return Section(reg, start, end, TQString.SectionFlags.SectionDefault);
}
- public QString Mid (uint index)
+ public TQString Mid (uint index)
{
return Mid(index, (uint) 1);
}
- public QString LeftJustify (uint width)
+ public TQString LeftJustify (uint width)
{
- return LeftJustify(width, new QChar ());
+ return LeftJustify(width, new TQChar ());
}
- public QString LeftJustify (uint width, QChar fill)
+ public TQString LeftJustify (uint width, TQChar fill)
{
return LeftJustify(width, fill, false);
}
- public QString RightJustify (uint width)
+ public TQString RightJustify (uint width)
{
- return RightJustify(width, new QChar ());
+ return RightJustify(width, new TQChar ());
}
- public QString RightJustify (uint width, QChar fill)
+ public TQString RightJustify (uint width, TQChar fill)
{
return RightJustify(width, fill, false);
}
@@ -1237,102 +1237,102 @@ namespace Qt {
return ToDouble(false);
}
- public QString SetNum (short arg1)
+ public TQString SetNum (short arg1)
{
return SetNum(arg1, (int) 10);
}
- public QString SetNum (ushort arg1)
+ public TQString SetNum (ushort arg1)
{
return SetNum(arg1, (int) 10);
}
- public QString SetNum (int arg1)
+ public TQString SetNum (int arg1)
{
return SetNum(arg1, (int) 10);
}
- public QString SetNum (uint arg1)
+ public TQString SetNum (uint arg1)
{
return SetNum(arg1, (int) 10);
}
- public QString SetNum (long arg1)
+ public TQString SetNum (long arg1)
{
return SetNum(arg1, (int) 10);
}
- public QString SetNum (ulong arg1)
+ public TQString SetNum (ulong arg1)
{
return SetNum(arg1, (int) 10);
}
- public QString SetNum (float arg1)
+ public TQString SetNum (float arg1)
{
return SetNum(arg1, (char) 'g');
}
- public QString SetNum (float arg1, char f)
+ public TQString SetNum (float arg1, char f)
{
return SetNum(arg1, f, (int) 6);
}
- public QString SetNum (double arg1)
+ public TQString SetNum (double arg1)
{
return SetNum(arg1, (char) 'g');
}
- public QString SetNum (double arg1, char f)
+ public TQString SetNum (double arg1, char f)
{
return SetNum(arg1, f, (int) 6);
}
- public QString SetLatin1 (QString arg1)
+ public TQString SetLatin1 (TQString arg1)
{
return SetLatin1(arg1, (int) -1);
}
- public static QString Number (long arg1)
+ public static TQString Number (long arg1)
{
return Number(arg1, (int) 10);
}
- public static QString Number (ulong arg1)
+ public static TQString Number (ulong arg1)
{
return Number(arg1, (int) 10);
}
- public static QString Number (int arg1)
+ public static TQString Number (int arg1)
{
return Number(arg1, (int) 10);
}
- public static QString Number (uint arg1)
+ public static TQString Number (uint arg1)
{
return Number(arg1, (int) 10);
}
- public static QString Number (double arg1)
+ public static TQString Number (double arg1)
{
return Number(arg1, (char) 'g');
}
- public static QString Number (double arg1, char f)
+ public static TQString Number (double arg1, char f)
{
return Number(arg1, f, (int) 6);
}
- public static QString FromLatin1 (QString arg1)
+ public static TQString FromLatin1 (TQString arg1)
{
return FromLatin1(arg1, (int) -1);
}
- public static QString FromUtf8 (QString arg1)
+ public static TQString FromUtf8 (TQString arg1)
{
return FromUtf8(arg1, (int) -1);
}
- public static QString FromLocal8Bit (QString arg1)
+ public static TQString FromLocal8Bit (TQString arg1)
{
return FromLocal8Bit(arg1, (int) -1);
}
diff --git a/qtsharp/src/bindings/static/QStyle.cs b/qtsharp/src/bindings/static/QStyle.cs
index c61ec005..1068433b 100644
--- a/qtsharp/src/bindings/static/QStyle.cs
+++ b/qtsharp/src/bindings/static/QStyle.cs
@@ -1,4 +1,4 @@
-// QStyle.cs - A Qt to C# binding.
+// TQStyle.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -24,7 +24,7 @@ namespace Qt {
using System;
using System.Runtime.InteropServices;
- public class QStyle : QObject, IDisposable {
+ public class TQStyle : TQObject, IDisposable {
public enum PrimitiveElement: long {
PE_ButtonCommand = 0,
@@ -279,17 +279,17 @@ namespace Qt {
SP_CustomBase = 4026531840
}
- internal QStyle () : this (QNull.Instance) {}
+ internal TQStyle () : this (QNull.Instance) {}
- internal QStyle (IntPtr ptr) : this (QNull.Instance)
+ internal TQStyle (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
RegisterObject(this);
}
- internal QStyle (QNull dummy) : base (QNull.Instance) {}
+ internal TQStyle (QNull dummy) : base (QNull.Instance) {}
- ~QStyle ()
+ ~TQStyle ()
{
Dispose(false);
}
@@ -306,142 +306,142 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QStyle_polish (IntPtr raw, IntPtr arg1);
- public void polish (QWidget arg1)
+ public void polish (TQWidget arg1)
{
qt_QStyle_polish (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QStyle_unPolish (IntPtr raw, IntPtr arg1);
- public void unPolish (QWidget arg1)
+ public void unPolish (TQWidget arg1)
{
qt_QStyle_unPolish (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QStyle_polish1 (IntPtr raw, IntPtr arg1);
- public void polish (QApplication arg1)
+ public void polish (TQApplication arg1)
{
qt_QStyle_polish1 (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QStyle_unPolish1 (IntPtr raw, IntPtr arg1);
- public void unPolish (QApplication arg1)
+ public void unPolish (TQApplication arg1)
{
qt_QStyle_unPolish1 (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QStyle_polish2 (IntPtr raw, IntPtr arg1);
- public void polish (QPalette arg1)
+ public void polish (TQPalette arg1)
{
qt_QStyle_polish2 (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QStyle_polishPopupMenu (IntPtr raw, IntPtr arg1);
- public void polishPopupMenu (QPopupMenu arg1)
+ public void polishPopupMenu (TQPopupMenu arg1)
{
qt_QStyle_polishPopupMenu (rawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QStyle_itemRect (IntPtr raw, IntPtr p, IntPtr r, int flags, bool enabled, IntPtr pixmap, IntPtr text, int len);
- public QRect itemRect (QPainter p, QRect r, int flags, bool enabled, QPixmap pixmap, string text, int len)
+ public TQRect itemRect (TQPainter p, TQRect r, int flags, bool enabled, TQPixmap pixmap, string text, int len)
{
- return (QRect)LookupObject (qt_QStyle_itemRect (rawObject, p.RawObject, r.RawObject, flags, enabled, pixmap.RawObject, new QString (text).RawObject, len), typeof(QRect));
+ return (TQRect)LookupObject (qt_QStyle_itemRect (rawObject, p.RawObject, r.RawObject, flags, enabled, pixmap.RawObject, new TQString (text).RawObject, len), typeof(TQRect));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QStyle_drawItem (IntPtr raw, IntPtr p, IntPtr r, int flags, IntPtr g, bool enabled, IntPtr pixmap, IntPtr text, int len, IntPtr penColor);
- public void drawItem (QPainter p, QRect r, int flags, QColorGroup g, bool enabled, QPixmap pixmap, string text, int len, QColor penColor)
+ public void drawItem (TQPainter p, TQRect r, int flags, TQColorGroup g, bool enabled, TQPixmap pixmap, string text, int len, TQColor penColor)
{
- qt_QStyle_drawItem (rawObject, p.RawObject, r.RawObject, flags, g.RawObject, enabled, pixmap.RawObject, new QString (text).RawObject, len, penColor.RawObject);
+ qt_QStyle_drawItem (rawObject, p.RawObject, r.RawObject, flags, g.RawObject, enabled, pixmap.RawObject, new TQString (text).RawObject, len, penColor.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern void qt_QStyle_drawPrimitive (IntPtr raw, QStyle.PrimitiveElement pe, IntPtr p, IntPtr r, IntPtr cg, QStyle.StyleFlags flags, IntPtr arg1);
- public void drawPrimitive (QStyle.PrimitiveElement pe, QPainter p, QRect r, QColorGroup cg, QStyle.StyleFlags flags, QStyleOption arg1)
+ private static extern void qt_QStyle_drawPrimitive (IntPtr raw, TQStyle.PrimitiveElement pe, IntPtr p, IntPtr r, IntPtr cg, TQStyle.StyleFlags flags, IntPtr arg1);
+ public void drawPrimitive (TQStyle.PrimitiveElement pe, TQPainter p, TQRect r, TQColorGroup cg, TQStyle.StyleFlags flags, TQStyleOption arg1)
{
qt_QStyle_drawPrimitive (rawObject, pe, p.RawObject, r.RawObject, cg.RawObject, flags, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern void qt_QStyle_drawControl (IntPtr raw, QStyle.ControlElement element, IntPtr p, IntPtr widget, IntPtr r, IntPtr cg, QStyle.StyleFlags how, IntPtr arg1);
- public void drawControl (QStyle.ControlElement element, QPainter p, QWidget widget, QRect r, QColorGroup cg, QStyle.StyleFlags how, QStyleOption arg1)
+ private static extern void qt_QStyle_drawControl (IntPtr raw, TQStyle.ControlElement element, IntPtr p, IntPtr widget, IntPtr r, IntPtr cg, TQStyle.StyleFlags how, IntPtr arg1);
+ public void drawControl (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how, TQStyleOption arg1)
{
qt_QStyle_drawControl (rawObject, element, p.RawObject, widget.RawObject, r.RawObject, cg.RawObject, how, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern void qt_QStyle_drawControlMask (IntPtr raw, QStyle.ControlElement element, IntPtr p, IntPtr widget, IntPtr r, IntPtr arg1);
- public void drawControlMask (QStyle.ControlElement element, QPainter p, QWidget widget, QRect r, QStyleOption arg1)
+ private static extern void qt_QStyle_drawControlMask (IntPtr raw, TQStyle.ControlElement element, IntPtr p, IntPtr widget, IntPtr r, IntPtr arg1);
+ public void drawControlMask (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r, TQStyleOption arg1)
{
qt_QStyle_drawControlMask (rawObject, element, p.RawObject, widget.RawObject, r.RawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QStyle_subRect (IntPtr raw, QStyle.SubRect r, IntPtr widget);
- public QRect subRect (QStyle.SubRect r, QWidget widget)
+ private static extern IntPtr qt_QStyle_subRect (IntPtr raw, TQStyle.SubRect r, IntPtr widget);
+ public TQRect subRect (TQStyle.SubRect r, TQWidget widget)
{
- return (QRect)LookupObject (qt_QStyle_subRect (rawObject, r, widget.RawObject), typeof(QRect));
+ return (TQRect)LookupObject (qt_QStyle_subRect (rawObject, r, widget.RawObject), typeof(TQRect));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern void qt_QStyle_drawComplexControl (IntPtr raw, QStyle.ComplexControl control, IntPtr p, IntPtr widget, IntPtr r, IntPtr cg, QStyle.StyleFlags how, QStyle.SubControl sub, QStyle.SubControl subActive, IntPtr arg1);
- public void drawComplexControl (QStyle.ComplexControl control, QPainter p, QWidget widget, QRect r, QColorGroup cg, QStyle.StyleFlags how, QStyle.SubControl sub, QStyle.SubControl subActive, QStyleOption arg1)
+ private static extern void qt_QStyle_drawComplexControl (IntPtr raw, TQStyle.ComplexControl control, IntPtr p, IntPtr widget, IntPtr r, IntPtr cg, TQStyle.StyleFlags how, TQStyle.SubControl sub, TQStyle.SubControl subActive, IntPtr arg1);
+ public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how, TQStyle.SubControl sub, TQStyle.SubControl subActive, TQStyleOption arg1)
{
qt_QStyle_drawComplexControl (rawObject, control, p.RawObject, widget.RawObject, r.RawObject, cg.RawObject, how, sub, subActive, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern void qt_QStyle_drawComplexControlMask (IntPtr raw, QStyle.ComplexControl control, IntPtr p, IntPtr widget, IntPtr r, IntPtr arg1);
- public void drawComplexControlMask (QStyle.ComplexControl control, QPainter p, QWidget widget, QRect r, QStyleOption arg1)
+ private static extern void qt_QStyle_drawComplexControlMask (IntPtr raw, TQStyle.ComplexControl control, IntPtr p, IntPtr widget, IntPtr r, IntPtr arg1);
+ public void drawComplexControlMask (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQStyleOption arg1)
{
qt_QStyle_drawComplexControlMask (rawObject, control, p.RawObject, widget.RawObject, r.RawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QStyle_querySubControlMetrics (IntPtr raw, QStyle.ComplexControl control, IntPtr widget, QStyle.SubControl sc, IntPtr arg1);
- public QRect querySubControlMetrics (QStyle.ComplexControl control, QWidget widget, QStyle.SubControl sc, QStyleOption arg1)
+ private static extern IntPtr qt_QStyle_querySubControlMetrics (IntPtr raw, TQStyle.ComplexControl control, IntPtr widget, TQStyle.SubControl sc, IntPtr arg1);
+ public TQRect querySubControlMetrics (TQStyle.ComplexControl control, TQWidget widget, TQStyle.SubControl sc, TQStyleOption arg1)
{
- return (QRect)LookupObject (qt_QStyle_querySubControlMetrics (rawObject, control, widget.RawObject, sc, arg1.RawObject), typeof(QRect));
+ return (TQRect)LookupObject (qt_QStyle_querySubControlMetrics (rawObject, control, widget.RawObject, sc, arg1.RawObject), typeof(TQRect));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern QStyle.SubControl qt_QStyle_querySubControl (IntPtr raw, QStyle.ComplexControl control, IntPtr widget, IntPtr pos, IntPtr arg1);
- public QStyle.SubControl querySubControl (QStyle.ComplexControl control, QWidget widget, QPoint pos, QStyleOption arg1)
+ private static extern TQStyle.SubControl qt_QStyle_querySubControl (IntPtr raw, TQStyle.ComplexControl control, IntPtr widget, IntPtr pos, IntPtr arg1);
+ public TQStyle.SubControl querySubControl (TQStyle.ComplexControl control, TQWidget widget, TQPoint pos, TQStyleOption arg1)
{
return qt_QStyle_querySubControl (rawObject, control, widget.RawObject, pos.RawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern int qt_QStyle_pixelMetric (IntPtr raw, QStyle.PixelMetric metric, IntPtr widget);
- public int pixelMetric (QStyle.PixelMetric metric, QWidget widget)
+ private static extern int qt_QStyle_pixelMetric (IntPtr raw, TQStyle.PixelMetric metric, IntPtr widget);
+ public int pixelMetric (TQStyle.PixelMetric metric, TQWidget widget)
{
return qt_QStyle_pixelMetric (rawObject, metric, widget.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QStyle_sizeFromContents (IntPtr raw, QStyle.ContentsType contents, IntPtr widget, IntPtr contentsSize, IntPtr arg1);
- public QSize sizeFromContents (QStyle.ContentsType contents, QWidget widget, QSize contentsSize, QStyleOption arg1)
+ private static extern IntPtr qt_QStyle_sizeFromContents (IntPtr raw, TQStyle.ContentsType contents, IntPtr widget, IntPtr contentsSize, IntPtr arg1);
+ public TQSize sizeFromContents (TQStyle.ContentsType contents, TQWidget widget, TQSize contentsSize, TQStyleOption arg1)
{
- return (QSize)LookupObject (qt_QStyle_sizeFromContents (rawObject, contents, widget.RawObject, contentsSize.RawObject, arg1.RawObject), typeof(QSize));
+ return (TQSize)LookupObject (qt_QStyle_sizeFromContents (rawObject, contents, widget.RawObject, contentsSize.RawObject, arg1.RawObject), typeof(TQSize));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QStyle_styleHint (IntPtr raw, StyleHint stylehint, IntPtr widget, IntPtr arg1, IntPtr returnData);
- public int styleHint (StyleHint stylehint, QWidget widget, QStyleOption arg1, IntPtr returnData)
+ public int styleHint (StyleHint stylehint, TQWidget widget, TQStyleOption arg1, IntPtr returnData)
{
return qt_QStyle_styleHint (rawObject, stylehint, widget.RawObject, arg1.RawObject, returnData);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
- private static extern IntPtr qt_QStyle_stylePixmap (IntPtr raw, QStyle.StylePixmap stylepixmap, IntPtr widget, IntPtr arg1);
- public QPixmap stylePixmap (QStyle.StylePixmap stylepixmap, QWidget widget, QStyleOption arg1)
+ private static extern IntPtr qt_QStyle_stylePixmap (IntPtr raw, TQStyle.StylePixmap stylepixmap, IntPtr widget, IntPtr arg1);
+ public TQPixmap stylePixmap (TQStyle.StylePixmap stylepixmap, TQWidget widget, TQStyleOption arg1)
{
- return (QPixmap)LookupObject (qt_QStyle_stylePixmap (rawObject, stylepixmap, widget.RawObject, arg1.RawObject), typeof(QPixmap));
+ return (TQPixmap)LookupObject (qt_QStyle_stylePixmap (rawObject, stylepixmap, widget.RawObject, arg1.RawObject), typeof(TQPixmap));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -453,140 +453,140 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QStyle_tabbarMetrics (IntPtr raw, IntPtr t, int hf, int vf, int ov);
- public void tabbarMetrics (QWidget t, int hf, int vf, int ov)
+ public void tabbarMetrics (TQWidget t, int hf, int vf, int ov)
{
qt_QStyle_tabbarMetrics (rawObject, t.RawObject, hf, vf, ov);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QStyle_scrollBarExtent (IntPtr raw);
- public QSize scrollBarExtent ()
+ public TQSize scrollBarExtent ()
{
- return (QSize)LookupObject (qt_QStyle_scrollBarExtent (rawObject), typeof(QSize));
+ return (TQSize)LookupObject (qt_QStyle_scrollBarExtent (rawObject), typeof(TQSize));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QStyle_visualRect (IntPtr logical, IntPtr w);
- public static QRect visualRect (QRect logical, QWidget w)
+ public static TQRect visualRect (TQRect logical, TQWidget w)
{
- return (QRect)LookupObject (qt_QStyle_visualRect (logical.RawObject, w.RawObject), typeof(QRect));
+ return (TQRect)LookupObject (qt_QStyle_visualRect (logical.RawObject, w.RawObject), typeof(TQRect));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QStyle_visualRect1 (IntPtr logical, IntPtr bounding);
- public static QRect visualRect (QRect logical, QRect bounding)
+ public static TQRect visualRect (TQRect logical, TQRect bounding)
{
- return (QRect)LookupObject (qt_QStyle_visualRect1 (logical.RawObject, bounding.RawObject), typeof(QRect));
+ return (TQRect)LookupObject (qt_QStyle_visualRect1 (logical.RawObject, bounding.RawObject), typeof(TQRect));
}
- public QRect itemRect (QPainter p, QRect r, int flags, bool enabled, QPixmap pixmap, string text)
+ public TQRect itemRect (TQPainter p, TQRect r, int flags, bool enabled, TQPixmap pixmap, string text)
{
return itemRect(p, r, flags, enabled, pixmap, text, (int) -1);
}
- public void drawItem (QPainter p, QRect r, int flags, QColorGroup g, bool enabled, QPixmap pixmap, string text)
+ public void drawItem (TQPainter p, TQRect r, int flags, TQColorGroup g, bool enabled, TQPixmap pixmap, string text)
{
drawItem(p, r, flags, g, enabled, pixmap, text, (int) -1);
}
- public void drawItem (QPainter p, QRect r, int flags, QColorGroup g, bool enabled, QPixmap pixmap, string text, int len)
+ public void drawItem (TQPainter p, TQRect r, int flags, TQColorGroup g, bool enabled, TQPixmap pixmap, string text, int len)
{
- drawItem(p, r, flags, g, enabled, pixmap, text, len, new QColor ());
+ drawItem(p, r, flags, g, enabled, pixmap, text, len, new TQColor ());
}
- public void drawPrimitive (QStyle.PrimitiveElement pe, QPainter p, QRect r, QColorGroup cg)
+ public void drawPrimitive (TQStyle.PrimitiveElement pe, TQPainter p, TQRect r, TQColorGroup cg)
{
- drawPrimitive(pe, p, r, cg, QStyle.StyleFlags.Style_Default);
+ drawPrimitive(pe, p, r, cg, TQStyle.StyleFlags.Style_Default);
}
- public void drawPrimitive (QStyle.PrimitiveElement pe, QPainter p, QRect r, QColorGroup cg, QStyle.StyleFlags flags)
+ public void drawPrimitive (TQStyle.PrimitiveElement pe, TQPainter p, TQRect r, TQColorGroup cg, TQStyle.StyleFlags flags)
{
- drawPrimitive(pe, p, r, cg, flags, new QStyleOption ());
+ drawPrimitive(pe, p, r, cg, flags, new TQStyleOption ());
}
- public void drawControl (QStyle.ControlElement element, QPainter p, QWidget widget, QRect r, QColorGroup cg)
+ public void drawControl (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg)
{
- drawControl(element, p, widget, r, cg, QStyle.StyleFlags.Style_Default);
+ drawControl(element, p, widget, r, cg, TQStyle.StyleFlags.Style_Default);
}
- public void drawControl (QStyle.ControlElement element, QPainter p, QWidget widget, QRect r, QColorGroup cg, QStyle.StyleFlags how)
+ public void drawControl (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how)
{
- drawControl(element, p, widget, r, cg, how, new QStyleOption ());
+ drawControl(element, p, widget, r, cg, how, new TQStyleOption ());
}
- public void drawControlMask (QStyle.ControlElement element, QPainter p, QWidget widget, QRect r)
+ public void drawControlMask (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r)
{
- drawControlMask(element, p, widget, r, new QStyleOption ());
+ drawControlMask(element, p, widget, r, new TQStyleOption ());
}
- public void drawComplexControl (QStyle.ComplexControl control, QPainter p, QWidget widget, QRect r, QColorGroup cg)
+ public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg)
{
- drawComplexControl(control, p, widget, r, cg, QStyle.StyleFlags.Style_Default);
+ drawComplexControl(control, p, widget, r, cg, TQStyle.StyleFlags.Style_Default);
}
- public void drawComplexControl (QStyle.ComplexControl control, QPainter p, QWidget widget, QRect r, QColorGroup cg, QStyle.StyleFlags how)
+ public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how)
{
- drawComplexControl(control, p, widget, r, cg, how, QStyle.SubControl.SC_All);
+ drawComplexControl(control, p, widget, r, cg, how, TQStyle.SubControl.SC_All);
}
- public void drawComplexControl (QStyle.ComplexControl control, QPainter p, QWidget widget, QRect r, QColorGroup cg, QStyle.StyleFlags how, QStyle.SubControl sub)
+ public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how, TQStyle.SubControl sub)
{
- drawComplexControl(control, p, widget, r, cg, how, sub, QStyle.SubControl.SC_None);
+ drawComplexControl(control, p, widget, r, cg, how, sub, TQStyle.SubControl.SC_None);
}
- public void drawComplexControl (QStyle.ComplexControl control, QPainter p, QWidget widget, QRect r, QColorGroup cg, QStyle.StyleFlags how, QStyle.SubControl sub, QStyle.SubControl subActive)
+ public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how, TQStyle.SubControl sub, TQStyle.SubControl subActive)
{
- drawComplexControl(control, p, widget, r, cg, how, sub, subActive, new QStyleOption ());
+ drawComplexControl(control, p, widget, r, cg, how, sub, subActive, new TQStyleOption ());
}
- public void drawComplexControlMask (QStyle.ComplexControl control, QPainter p, QWidget widget, QRect r)
+ public void drawComplexControlMask (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r)
{
- drawComplexControlMask(control, p, widget, r, new QStyleOption ());
+ drawComplexControlMask(control, p, widget, r, new TQStyleOption ());
}
- public QRect querySubControlMetrics (QStyle.ComplexControl control, QWidget widget, QStyle.SubControl sc)
+ public TQRect querySubControlMetrics (TQStyle.ComplexControl control, TQWidget widget, TQStyle.SubControl sc)
{
- return querySubControlMetrics(control, widget, sc, new QStyleOption ());
+ return querySubControlMetrics(control, widget, sc, new TQStyleOption ());
}
- public QStyle.SubControl querySubControl (QStyle.ComplexControl control, QWidget widget, QPoint pos)
+ public TQStyle.SubControl querySubControl (TQStyle.ComplexControl control, TQWidget widget, TQPoint pos)
{
- return querySubControl(control, widget, pos, new QStyleOption ());
+ return querySubControl(control, widget, pos, new TQStyleOption ());
}
- public int pixelMetric (QStyle.PixelMetric metric)
+ public int pixelMetric (TQStyle.PixelMetric metric)
{
- return pixelMetric(metric, new QWidget ());
+ return pixelMetric(metric, new TQWidget ());
}
- public QSize sizeFromContents (QStyle.ContentsType contents, QWidget widget, QSize contentsSize)
+ public TQSize sizeFromContents (TQStyle.ContentsType contents, TQWidget widget, TQSize contentsSize)
{
- return sizeFromContents(contents, widget, contentsSize, new QStyleOption ());
+ return sizeFromContents(contents, widget, contentsSize, new TQStyleOption ());
}
public int styleHint (StyleHint stylehint)
{
- return styleHint(stylehint, new QWidget ());
+ return styleHint(stylehint, new TQWidget ());
}
- public int styleHint (StyleHint stylehint, QWidget widget)
+ public int styleHint (StyleHint stylehint, TQWidget widget)
{
- return styleHint(stylehint, widget, new QStyleOption ());
+ return styleHint(stylehint, widget, new TQStyleOption ());
}
- public int styleHint (StyleHint stylehint, QWidget widget, QStyleOption arg1)
+ public int styleHint (StyleHint stylehint, TQWidget widget, TQStyleOption arg1)
{
return styleHint(stylehint, widget, arg1, (IntPtr) 0);
}
- public QPixmap stylePixmap (QStyle.StylePixmap stylepixmap)
+ public TQPixmap stylePixmap (TQStyle.StylePixmap stylepixmap)
{
- return stylePixmap(stylepixmap, new QWidget ());
+ return stylePixmap(stylepixmap, new TQWidget ());
}
- public QPixmap stylePixmap (QStyle.StylePixmap stylepixmap, QWidget widget)
+ public TQPixmap stylePixmap (TQStyle.StylePixmap stylepixmap, TQWidget widget)
{
- return stylePixmap(stylepixmap, widget, new QStyleOption ());
+ return stylePixmap(stylepixmap, widget, new TQStyleOption ());
}
// Begin interface methods.
diff --git a/qtsharp/src/bindings/static/QToolButton.cs b/qtsharp/src/bindings/static/QToolButton.cs
index 90f36785..1ccc243f 100644
--- a/qtsharp/src/bindings/static/QToolButton.cs
+++ b/qtsharp/src/bindings/static/QToolButton.cs
@@ -1,4 +1,4 @@
-// QToolButton.cs - A Qt to C# binding.
+// TQToolButton.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -26,11 +26,11 @@ namespace Qt {
using System;
using System.Runtime.InteropServices;
- public class QToolButton : QButton, IDisposable {
+ public class TQToolButton : TQButton, IDisposable {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QToolButton (IntPtr parent, string name);
- public QToolButton (QWidget parent, string name) : this (QNull.Instance)
+ public TQToolButton (TQWidget parent, string name) : this (QNull.Instance)
{
rawObject = qt_new_QToolButton (parent != null ? parent.RawObject : IntPtr.Zero, name);
@@ -38,27 +38,27 @@ namespace Qt {
qparent.AddChild (this);
RegisterObject (this);
- Connect (this, SIGNAL ("destroyed ()"), SLOT ("NativeDestroyed ()"));
+ Connect (this, TQT_SIGNAL ("destroyed ()"), TQT_SLOT ("NativeDestroyed ()"));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QToolButton1 (IntPtr iconSet, IntPtr textLabel, IntPtr groupText, IntPtr receiver, string slot, IntPtr parent, string name);
- public QToolButton (QIconSet iconSet, QString textLabel, QString groupText, QObject receiver, string slot, QToolBar parent, string name) : this (QNull.Instance)
+ public TQToolButton (TQIconSet iconSet, TQString textLabel, TQString groupText, TQObject receiver, string slot, TQToolBar parent, string name) : this (QNull.Instance)
{
rawObject = qt_new_QToolButton1 (iconSet.RawObject, textLabel.RawObject, groupText.RawObject, IntPtr.Zero, null, parent != null ? parent.RawObject : IntPtr.Zero, name);
- Connect( this, SIGNAL("clicked()"), receiver, slot );
+ Connect( this, TQT_SIGNAL("clicked()"), receiver, slot );
if ((qparent = parent) != null)
qparent.AddChild (this);
RegisterObject (this);
- Connect (this, SIGNAL ("destroyed ()"), SLOT ("NativeDestroyed ()"));
+ Connect (this, TQT_SIGNAL ("destroyed ()"), TQT_SLOT ("NativeDestroyed ()"));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QToolButton2 (Qt.ArrowType type, IntPtr parent, string name);
- public QToolButton (Qt.ArrowType type, QWidget parent, string name) : this (QNull.Instance)
+ public TQToolButton (Qt.ArrowType type, TQWidget parent, string name) : this (QNull.Instance)
{
rawObject = qt_new_QToolButton2 (type, parent != null ? parent.RawObject : IntPtr.Zero, name);
@@ -66,22 +66,22 @@ namespace Qt {
qparent.AddChild (this);
RegisterObject (this);
- Connect (this, SIGNAL ("destroyed ()"), SLOT ("NativeDestroyed ()"));
+ Connect (this, TQT_SIGNAL ("destroyed ()"), TQT_SLOT ("NativeDestroyed ()"));
}
- public QToolButton (QWidget parent) : this (parent, "") {}
+ public TQToolButton (TQWidget parent) : this (parent, "") {}
- internal QToolButton () : this (QNull.Instance) {}
+ internal TQToolButton () : this (QNull.Instance) {}
- internal QToolButton (IntPtr ptr) : this (QNull.Instance)
+ internal TQToolButton (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
RegisterObject(this);
}
- internal QToolButton (QNull dummy) : base (QNull.Instance) {}
+ internal TQToolButton (QNull dummy) : base (QNull.Instance) {}
- ~QToolButton ()
+ ~TQToolButton ()
{
Dispose (false);
}
@@ -116,7 +116,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QToolButton_setTextLabel (IntPtr raw, IntPtr arg1, bool arg2);
- public void SetTextLabel (QString arg1, bool arg2)
+ public void SetTextLabel (TQString arg1, bool arg2)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
@@ -156,7 +156,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QToolButton_setTextLabel1 (IntPtr raw, IntPtr arg1);
- public void SetTextLabel (QString arg1)
+ public void SetTextLabel (TQString arg1)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
@@ -166,7 +166,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QToolButton_setIconSet (IntPtr raw, IntPtr set);
- public void SetIconSet (QIconSet set)
+ public void SetIconSet (TQIconSet set)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
@@ -176,7 +176,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QToolButton_setIconSet1 (IntPtr raw, IntPtr set, bool on);
- public void SetIconSet (QIconSet set, bool on)
+ public void SetIconSet (TQIconSet set, bool on)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
@@ -186,12 +186,12 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QToolButton_iconSet (IntPtr raw, bool on);
- public QIconSet IconSet (bool on)
+ public TQIconSet IconSet (bool on)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
- return LookupObject (qt_QToolButton_iconSet (rawObject, on), typeof (QIconSet)) as QIconSet;
+ return LookupObject (qt_QToolButton_iconSet (rawObject, on), typeof (TQIconSet)) as QIconSet;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -246,7 +246,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QToolButton_drawButtonLabel (IntPtr raw, IntPtr arg1);
- protected void DrawButtonLabel (QPainter arg1)
+ protected void DrawButtonLabel (TQPainter arg1)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
@@ -266,7 +266,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QToolButton_eventFilter (IntPtr raw, IntPtr o, IntPtr e);
- protected bool EventFilter (QObject o, QEvent e)
+ protected bool EventFilter (TQObject o, TQEvent e)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
@@ -276,7 +276,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QToolButton_paletteChange (IntPtr raw, IntPtr arg1);
- protected void PaletteChange (QPalette arg1)
+ protected void PaletteChange (TQPalette arg1)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
diff --git a/qtsharp/src/bindings/static/QWidgetStack.cs b/qtsharp/src/bindings/static/QWidgetStack.cs
index f48da641..fea0944c 100644
--- a/qtsharp/src/bindings/static/QWidgetStack.cs
+++ b/qtsharp/src/bindings/static/QWidgetStack.cs
@@ -1,4 +1,4 @@
-// QWidgetStack.cs - A Qt to C# binding.
+// TQWidgetStack.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
@@ -25,13 +25,13 @@ namespace Qt {
using System.Collections;
using System.Runtime.InteropServices;
- public class QWidgetStack : QFrame, IDisposable {
+ public class TQWidgetStack : TQFrame, IDisposable {
private ArrayList widgets;
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_new_QWidgetStack (IntPtr parent, string name);
- public QWidgetStack (QWidget parent, string name) : this (QNull.Instance)
+ public TQWidgetStack (TQWidget parent, string name) : this (QNull.Instance)
{
if ((qparent = parent) != null)
qparent.AddChild (this);
@@ -39,22 +39,22 @@ namespace Qt {
RegisterObject (this);
}
- public QWidgetStack () : this (new QWidget ()) {}
+ public TQWidgetStack () : this (new TQWidget ()) {}
- public QWidgetStack (QWidget parent) : this (parent, "") {}
+ public TQWidgetStack (TQWidget parent) : this (parent, "") {}
- internal QWidgetStack (IntPtr ptr) : this (QNull.Instance)
+ internal TQWidgetStack (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
RegisterObject(this);
}
- internal QWidgetStack (QNull dummy) : base (QNull.Instance)
+ internal TQWidgetStack (QNull dummy) : base (QNull.Instance)
{
widgets = new ArrayList ();
}
- ~QWidgetStack ()
+ ~TQWidgetStack ()
{
Dispose (false);
}
@@ -71,7 +71,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QWidgetStack_addWidget (IntPtr raw, IntPtr arg1, int arg2);
- public int AddWidget (QWidget arg1, int arg2)
+ public int AddWidget (TQWidget arg1, int arg2)
{
if (! widgets.Contains (arg1)) widgets.Add (arg1);
return qt_QWidgetStack_addWidget (RawObject, arg1.RawObject, arg2);
@@ -79,7 +79,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QWidgetStack_removeWidget (IntPtr raw, IntPtr arg1);
- public void RemoveWidget (QWidget arg1)
+ public void RemoveWidget (TQWidget arg1)
{
widgets.Remove (arg1);
qt_QWidgetStack_removeWidget (RawObject, arg1.RawObject);
@@ -87,16 +87,16 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QWidgetStack_sizeHint (IntPtr raw);
- public QSize SizeHint ()
+ public TQSize SizeHint ()
{
- return LookupObject (qt_QWidgetStack_sizeHint (RawObject), typeof(QSize)) as QSize;
+ return LookupObject (qt_QWidgetStack_sizeHint (RawObject), typeof(TQSize)) as QSize;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QWidgetStack_minimumSizeHint (IntPtr raw);
- public QSize MinimumSizeHint ()
+ public TQSize MinimumSizeHint ()
{
- return LookupObject (qt_QWidgetStack_minimumSizeHint (RawObject), typeof(QSize)) as QSize;
+ return LookupObject (qt_QWidgetStack_minimumSizeHint (RawObject), typeof(TQSize)) as QSize;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
@@ -108,28 +108,28 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QWidgetStack_widget (IntPtr raw, int arg1);
- public QWidget Widget (int arg1)
+ public TQWidget Widget (int arg1)
{
- return LookupObject (qt_QWidgetStack_widget (RawObject, arg1), typeof(QWidget)) as QWidget;
+ return LookupObject (qt_QWidgetStack_widget (RawObject, arg1), typeof(TQWidget)) as QWidget;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern int qt_QWidgetStack_id (IntPtr raw, IntPtr arg1);
- public int Id (QWidget arg1)
+ public int Id (TQWidget arg1)
{
return qt_QWidgetStack_id (RawObject, arg1.RawObject);
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QWidgetStack_visibleWidget (IntPtr raw);
- public QWidget VisibleWidget ()
+ public TQWidget VisibleWidget ()
{
- return LookupObject (qt_QWidgetStack_visibleWidget (RawObject), typeof(QWidget)) as QWidget;
+ return LookupObject (qt_QWidgetStack_visibleWidget (RawObject), typeof(TQWidget)) as QWidget;
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QWidgetStack_setFrameRect (IntPtr raw, IntPtr arg1);
- public void SetFrameRect (QRect arg1)
+ public void SetFrameRect (TQRect arg1)
{
qt_QWidgetStack_setFrameRect (RawObject, arg1.RawObject);
}
@@ -143,7 +143,7 @@ namespace Qt {
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QWidgetStack_raiseWidget1 (IntPtr raw, IntPtr arg1);
- public void RaiseWidget (QWidget arg1)
+ public void RaiseWidget (TQWidget arg1)
{
qt_QWidgetStack_raiseWidget1 (RawObject, arg1.RawObject);
}
@@ -162,7 +162,7 @@ namespace Qt {
qt_QWidgetStack_setChildGeometries (RawObject);
}
- public int AddWidget (QWidget arg1)
+ public int AddWidget (TQWidget arg1)
{
return AddWidget(arg1, (int) -1);
}
diff --git a/qtsharp/src/bindings/static/QtSignal.cs b/qtsharp/src/bindings/static/QtSignal.cs
index f76291f5..0889f3b0 100644
--- a/qtsharp/src/bindings/static/QtSignal.cs
+++ b/qtsharp/src/bindings/static/QtSignal.cs
@@ -28,7 +28,7 @@ namespace Qt {
using System.Runtime.InteropServices;
using System.Reflection;
- internal class QtSignal: QObject, IDisposable {
+ internal class QtSignal: TQObject, IDisposable {
internal static bool traceConnects;
static QtSignal ()
@@ -36,7 +36,7 @@ namespace Qt {
traceConnects = false;
}
- private QObject sender;
+ private TQObject sender;
private string signal;
private string name;
private string args;
@@ -47,7 +47,7 @@ namespace Qt {
get { return MakeSigId(sender, signal); }
}
- public QObject Sender {
+ public TQObject Sender {
get { return sender; }
}
@@ -75,7 +75,7 @@ namespace Qt {
get { return slots; }
}
- public QtSignal (QObject sender, string signal): base (NoSignalInit.Instance)
+ public QtSignal (TQObject sender, string signal): base (NoSignalInit.Instance)
{
this.sender = sender;
this.signal = signal;
@@ -101,7 +101,7 @@ namespace Qt {
return sender.CsSignalMap.Contains(signal);
}
- internal static bool Connect(QObject sender, string signal, QObject receiver, string slot)
+ internal static bool Connect(TQObject sender, string signal, TQObject receiver, string slot)
{
if (IsSlot(signal)) {
return false;
@@ -114,7 +114,7 @@ namespace Qt {
return ConnectSignalToSlot(sender, NormalizeParam(signal), receiver, NormalizeParam(slot));
}
- private static bool ConnectSignalToSlot(QObject sender, string signal, QObject receiver, string slot)
+ private static bool ConnectSignalToSlot(TQObject sender, string signal, TQObject receiver, string slot)
{
QtSignal sigobj;
QtSlot slotobj = new QtSlot(receiver, slot);
@@ -162,120 +162,120 @@ namespace Qt {
switch (slotobj.Args) {
case "()":
del = Delegate.CreateDelegate (typeof (del_void), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_void (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_void (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
case "(bool)":
del = Delegate.CreateDelegate (typeof (del_bool), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_bool (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_bool (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
case "(short)":
del = Delegate.CreateDelegate (typeof (del_short), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_short (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_short (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
case "(int)":
del = Delegate.CreateDelegate (typeof (del_int), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_int (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_int (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
case "(long)":
del = Delegate.CreateDelegate (typeof (del_long), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_long (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_long (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
case "(float)":
del = Delegate.CreateDelegate (typeof (del_float), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_float (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_float (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
case "(double)":
del = Delegate.CreateDelegate (typeof (del_double), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_double (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_double (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
- case "(QString)":
- realsignal = sigobj.Name + "(const QString&)";
+ case "(TQString)":
+ realsignal = sigobj.Name + "(const TQString&)";
Console.WriteLine("Connecting signal, sigobj.Name = {0}, realsignal = {1}",
sigobj.Name, realsignal);
del = Delegate.CreateDelegate (typeof (del_QString), slotobj, "SlotBridge_QString");
- slotobj.WrapperPtr = csharp_connect_QString (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QString (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QDockWindow)":
- realsignal = sigobj.Name + "(QDockWindow*)";
+ case "(TQDockWindow)":
+ realsignal = sigobj.Name + "(TQDockWindow*)";
del = Delegate.CreateDelegate (typeof (del_QDockWindow), slotobj, "SlotBridge_QDockWindow");
- slotobj.WrapperPtr = csharp_connect_QDockWindow (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QDockWindow (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QDropEvent)":
- realsignal = sigobj.Name + "(QDropEvent*)";
+ case "(TQDropEvent)":
+ realsignal = sigobj.Name + "(TQDropEvent*)";
del = Delegate.CreateDelegate (typeof (del_QDropEvent), slotobj, "SlotBridge_QDropEvent");
- slotobj.WrapperPtr = csharp_connect_QDropEvent (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QDropEvent (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QDropEvent,QListViewItem)":
- realsignal = sigobj.Name + "(QDropEvent*,QListViewItem*)";
+ case "(TQDropEvent,TQListViewItem)":
+ realsignal = sigobj.Name + "(TQDropEvent*,TQListViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QDropEventQListViewItem), slotobj, "SlotBridge_QDropEventQListViewItem");
- slotobj.WrapperPtr = csharp_connect_QDropEventQListViewItem (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QDropEventQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QIconViewItem)":
- realsignal = sigobj.Name + "(QIconViewItem*)";
+ case "(TQIconViewItem)":
+ realsignal = sigobj.Name + "(TQIconViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QIconViewItem), slotobj, "SlotBridge_QIconViewItem");
- slotobj.WrapperPtr = csharp_connect_QIconViewItem (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QListBoxItem)":
- realsignal = sigobj.Name + "(QListBoxItem*)";
+ case "(TQListBoxItem)":
+ realsignal = sigobj.Name + "(TQListBoxItem*)";
del = Delegate.CreateDelegate (typeof (del_QListBoxItem), slotobj, "SlotBridge_QListBoxItem");
- slotobj.WrapperPtr = csharp_connect_QListBoxItem (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QListViewItem)":
- realsignal = sigobj.Name + "(QListViewItem*)";
+ case "(TQListViewItem)":
+ realsignal = sigobj.Name + "(TQListViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QListViewItem), slotobj, "SlotBridge_QListViewItem");
- slotobj.WrapperPtr = csharp_connect_QListViewItem (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QListViewItem,QListViewItem)":
- realsignal = sigobj.Name + "(QListViewItem*,QListViewItem*)";
+ case "(TQListViewItem,TQListViewItem)":
+ realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QListViewItemQListViewItem), slotobj, "SlotBridge_QListViewItemQListViewItem");
- slotobj.WrapperPtr = csharp_connect_QListViewItemQListViewItem (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QListViewItemQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QListViewItem,QListViewItem,QListViewItem)":
- realsignal = sigobj.Name + "(QListViewItem*,QListViewItem*,QListViewItem*)";
+ case "(TQListViewItem,TQListViewItem,TQListViewItem)":
+ realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*,TQListViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QListViewItemQListViewItemQListViewItem), slotobj, "SlotBridge_QListViewItemQListViewItemQListViewItem");
- slotobj.WrapperPtr = csharp_connect_QListViewItemQListViewItemQListViewItem (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QListViewItemQListViewItemQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QNetworkOperation)":
- realsignal = sigobj.Name + "(QNetworkOperation*)";
+ case "(TQNetworkOperation)":
+ realsignal = sigobj.Name + "(TQNetworkOperation*)";
del = Delegate.CreateDelegate (typeof (del_QNetworkOperation), slotobj, "SlotBridge_QNetworkOperation");
- slotobj.WrapperPtr = csharp_connect_QNetworkOperation (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QNetworkOperation (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QObject)":
- realsignal = sigobj.Name + "(QObject*)";
+ case "(TQObject)":
+ realsignal = sigobj.Name + "(TQObject*)";
del = Delegate.CreateDelegate (typeof (del_QObject), slotobj, "SlotBridge_QObject");
- slotobj.WrapperPtr = csharp_connect_QObject (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QObject (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QToolBar)":
- realsignal = sigobj.Name + "(QToolBar*)";
+ case "(TQToolBar)":
+ realsignal = sigobj.Name + "(TQToolBar*)";
del = Delegate.CreateDelegate (typeof (del_QToolBar), slotobj, "SlotBridge_QToolBar");
- slotobj.WrapperPtr = csharp_connect_QToolBar (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QToolBar (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(QWidget)":
- realsignal = sigobj.Name + "(QWidget*)";
+ case "(TQWidget)":
+ realsignal = sigobj.Name + "(TQWidget*)";
del = Delegate.CreateDelegate (typeof (del_QWidget), slotobj, "SlotBridge_QWidget");
- slotobj.WrapperPtr = csharp_connect_QWidget (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_QWidget (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(int,QIconViewItem)":
- realsignal = sigobj.Name + "(int,QIconViewItem*)";
+ case "(int,TQIconViewItem)":
+ realsignal = sigobj.Name + "(int,TQIconViewItem*)";
del = Delegate.CreateDelegate (typeof (del_intQIconViewItem), slotobj, "SlotBridge_intQIconViewItem");
- slotobj.WrapperPtr = csharp_connect_intQIconViewItem (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_intQIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(int,QListBoxItem)":
- realsignal = sigobj.Name + "(int,QListBoxItem*)";
+ case "(int,TQListBoxItem)":
+ realsignal = sigobj.Name + "(int,TQListBoxItem*)";
del = Delegate.CreateDelegate (typeof (del_intQListBoxItem), slotobj, "SlotBridge_intQListBoxItem");
- slotobj.WrapperPtr = csharp_connect_intQListBoxItem (sender.RawObject, SIGNAL (realsignal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_intQListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
case "(int,bool)":
del = Delegate.CreateDelegate (typeof (del_intbool), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_intbool (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_intbool (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
case "(int,int)":
del = Delegate.CreateDelegate (typeof (del_intint), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_intint (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_intint (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
case "(int,int,int)":
del = Delegate.CreateDelegate (typeof (del_intintint), receiver, slotobj.Name);
- slotobj.WrapperPtr = csharp_connect_intintint (sender.RawObject, SIGNAL (signal), receiver.RawObject, del);
+ slotobj.WrapperPtr = csharp_connect_intintint (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
default:
throw new ArgumentException ("Unsupported method prototype for C++ signal -> C# slot connection: " + slotobj.Args);
@@ -292,12 +292,12 @@ namespace Qt {
// ...a C++ slot. C++ slots are C# methods, so we should never get here.
else {
throw new ArgumentException(receiver+" has no slot '"+slot+"'");
- // return qt_QObject_connect1(sender.RawObject, SIGNAL(signal), receiver.RawObject, SLOT(slot));
+ // return qt_QObject_connect1(sender.RawObject, TQT_SIGNAL(signal), receiver.RawObject, TQT_SLOT(slot));
}
}
}
- private static bool ConnectSignalToSignal(QObject sender, string signal, QObject receiver, string target)
+ private static bool ConnectSignalToSignal(TQObject sender, string signal, TQObject receiver, string target)
{
if (traceConnects)
ErrMsg ("ConnectSignalToSlot: ({0}) {1}, {2}, ({3}) {4}, {5}", sender.RawObject, sender, signal,
@@ -330,15 +330,15 @@ namespace Qt {
string mangle = MangleArgs(args);
// HACK Wrap target signal in a slot and connect the slot to the sender.
- return Connect(sender, SIGNAL(signal), targetobj, SLOT("Emit_"+mangle+args));
+ return Connect(sender, TQT_SIGNAL(signal), targetobj, TQT_SLOT("Emit_"+mangle+args));
}
// ...a C++ signal
else
- return qt_QObject_connect1(sender.RawObject, SIGNAL(signal), receiver.RawObject, SIGNAL(target));
+ return qt_QObject_connect1(sender.RawObject, TQT_SIGNAL(signal), receiver.RawObject, TQT_SIGNAL(target));
}
}
- internal static bool Disconnect(QObject sender, string signal, QObject receiver, string slot)
+ internal static bool Disconnect(TQObject sender, string signal, TQObject receiver, string slot)
{
if (signal == null && receiver == null && slot == null)
return DisconnectAll(sender);
@@ -356,7 +356,7 @@ namespace Qt {
return DisconnectSignalFromSlot(sender, NormalizeParam(signal), receiver, NormalizeParam(slot));
}
- private static bool DisconnectSignalFromSlot(QObject sender, string signal, QObject receiver, string slot)
+ private static bool DisconnectSignalFromSlot(TQObject sender, string signal, TQObject receiver, string slot)
{
if (traceConnects)
ErrMsg ("DisconnectSignalFromSlot: ({0}) {1}, {2}, ({3}) {4}, {5}", sender.RawObject, sender, signal,
@@ -410,12 +410,12 @@ namespace Qt {
// ...a C++ slot. C++ slots are C# methods, so we should never get here.
else {
throw new ArgumentException(receiver+" has no slot '"+slot+"'");
- // return qt_QObject_disconnect2(sender.RawObject, SIGNAL(signal), receiver.RawObject, SLOT(slot));
+ // return qt_QObject_disconnect2(sender.RawObject, TQT_SIGNAL(signal), receiver.RawObject, TQT_SLOT(slot));
}
}
}
- private static bool DisconnectSignalFromSignal(QObject sender, string signal, QObject receiver, string target)
+ private static bool DisconnectSignalFromSignal(TQObject sender, string signal, TQObject receiver, string target)
{
if (traceConnects)
ErrMsg ("DisconnectSignalFromSignal: ({0}) {1}, {2}, ({3}) {4}, {5}", sender.RawObject, sender, signal,
@@ -449,16 +449,16 @@ namespace Qt {
if (receiver.CsSignalMap.Contains(target)) {
QtSignal targetobj = receiver.CsSignalMap[target];
string args = "(" + target.Split(new char[] {'('})[1];
- return Disconnect(sender, SIGNAL(signal), targetobj, SLOT("emit_"+args));
+ return Disconnect(sender, TQT_SIGNAL(signal), targetobj, TQT_SLOT("emit_"+args));
}
// ...a C++ signal
else {
- return qt_QObject_disconnect2(sender.RawObject, SIGNAL(signal), receiver.RawObject, SLOT(target));
+ return qt_QObject_disconnect2(sender.RawObject, TQT_SIGNAL(signal), receiver.RawObject, TQT_SLOT(target));
}
}
}
- private static bool DisconnectAll(QObject sender)
+ private static bool DisconnectAll(TQObject sender)
{
if (traceConnects)
ErrMsg ("DisconnectAll: ({0}) {1}", sender.RawObject, sender);
@@ -474,12 +474,12 @@ namespace Qt {
foreach (QtSignal signal in signals)
foreach (QtSlot slot in new ArrayList (signal.Slots))
- Disconnect (sender, SIGNAL (signal.Signal), slot.Receiver, SLOT (slot.Slot));
+ Disconnect (sender, TQT_SIGNAL (signal.Signal), slot.Receiver, TQT_SLOT (slot.Slot));
return true;
}
- private static bool DisconnectReceiver(QObject sender, QObject receiver)
+ private static bool DisconnectReceiver(TQObject sender, TQObject receiver)
{
if (traceConnects)
ErrMsg ("DisconnectReceiver: ({0}) {1}, ({2}) {3}", sender.RawObject, sender, receiver.RawObject, receiver);
@@ -495,12 +495,12 @@ namespace Qt {
foreach (QtSignal signal in signals)
foreach (QtSlot slot in new ArrayList (signal.Slots))
- Disconnect (signal.Sender, SIGNAL (signal.Name), receiver, SLOT (slot.Name));
+ Disconnect (signal.Sender, TQT_SIGNAL (signal.Name), receiver, TQT_SLOT (slot.Name));
return true;
}
- private static bool DisconnectSignal(QObject sender, string signal)
+ private static bool DisconnectSignal(TQObject sender, string signal)
{
if (traceConnects)
ErrMsg ("DisconnectSignal: ({0}) {1}, {2}", sender.RawObject, sender, signal);
@@ -509,14 +509,14 @@ namespace Qt {
QtSignal sig = map[signal];
if (sig != null) {
foreach (QtSlot slot in new ArrayList (sig.Slots))
- Disconnect (sender, SIGNAL(signal), slot.Receiver, SLOT(slot.Slot));
+ Disconnect (sender, TQT_SIGNAL(signal), slot.Receiver, TQT_SLOT(slot.Slot));
}
}
return true;
}
- private static bool DisconnectSignalFromReceiver (QObject sender, string signal, QObject receiver)
+ private static bool DisconnectSignalFromReceiver (TQObject sender, string signal, TQObject receiver)
{
if (traceConnects)
ErrMsg ("DisconnectSignalFromReceiver: ({0}) {1}, {2}, ({3}), {4}", sender.RawObject, sender,
@@ -527,7 +527,7 @@ namespace Qt {
if (sig != null) {
foreach (QtSlot slot in new ArrayList (sig.Slots))
if (slot.Receiver == receiver)
- Disconnect (sender, signal, receiver, SLOT (slot.Name));
+ Disconnect (sender, signal, receiver, TQT_SLOT (slot.Name));
}
}
@@ -561,7 +561,7 @@ namespace Qt {
*/
}
- private static string MakeSigId(QObject sender, string signal)
+ private static string MakeSigId(TQObject sender, string signal)
{
return sender.RawObject.ToString()+signal;
}
diff --git a/qtsharp/src/bindings/static/QtSignalMap.cs b/qtsharp/src/bindings/static/QtSignalMap.cs
index 38ab5ac3..7fefcaca 100644
--- a/qtsharp/src/bindings/static/QtSignalMap.cs
+++ b/qtsharp/src/bindings/static/QtSignalMap.cs
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// NOTES
-// o By inheriting from QObject, we can use the child tracking features to
+// o By inheriting from TQObject, we can use the child tracking features to
// ensure that instances of signal maps are deleted by their parents when
// the parent Dispose()es.
//
@@ -37,9 +37,9 @@ namespace Qt {
get { return name; }
}
- public QtSignalMap (QObject parent): this (parent, "QtSignalMap") {}
+ public QtSignalMap (TQObject parent): this (parent, "QtSignalMap") {}
- public QtSignalMap (QObject parent, string name): base (QNull.Instance)
+ public QtSignalMap (TQObject parent, string name): base (QNull.Instance)
{
this.name = name;
signalMap = new Hashtable ();
diff --git a/qtsharp/src/bindings/static/QtSlot.cs b/qtsharp/src/bindings/static/QtSlot.cs
index 6bf14da8..462be9ad 100644
--- a/qtsharp/src/bindings/static/QtSlot.cs
+++ b/qtsharp/src/bindings/static/QtSlot.cs
@@ -22,7 +22,7 @@ namespace Qt {
using System.Text;
internal class QtSlot {
- protected QObject receiver;
+ protected TQObject receiver;
protected string slot;
private string name;
private string args;
@@ -30,7 +30,7 @@ namespace Qt {
private IntPtr wrapperPtr;
private Delegate callback;
- public QObject Receiver {
+ public TQObject Receiver {
get { return receiver; }
}
@@ -74,7 +74,7 @@ namespace Qt {
public QtSlot() {}
- public QtSlot(QObject receiver, string slot)
+ public QtSlot(TQObject receiver, string slot)
{
this.receiver = receiver;
this.slot = slot;
@@ -95,109 +95,109 @@ namespace Qt {
public void SlotBridge_QString (IntPtr value0)
{
- QString csvalue0 = QtSupport.LookupObject (value0, typeof (QString)) as QString;
+ TQString csvalue0 = QtSupport.LookupObject (value0, typeof (TQString)) as QString;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_QDockWindow (IntPtr value0)
{
- QDockWindow csvalue0 = QtSupport.LookupObject (value0, typeof (QDockWindow)) as QDockWindow;
+ TQDockWindow csvalue0 = QtSupport.LookupObject (value0, typeof (TQDockWindow)) as QDockWindow;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_QDropEvent (IntPtr value0)
{
- QDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (QDropEvent)) as QDropEvent;
+ TQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TQDropEvent)) as QDropEvent;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_QDropEventQListViewItem (IntPtr value0, IntPtr value1)
{
- QDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (QDropEvent)) as QDropEvent;
- QListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (QListViewItem)) as QListViewItem;
+ TQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TQDropEvent)) as QDropEvent;
+ TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as QListViewItem;
Invoke (new object[] {csvalue0, csvalue1});
}
public void SlotBridge_QIconViewItem (IntPtr value0)
{
- QIconViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (QIconViewItem)) as QIconViewItem;
+ TQIconViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQIconViewItem)) as QIconViewItem;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_QListBoxItem (IntPtr value0)
{
- QListBoxItem csvalue0 = QtSupport.LookupObject (value0, typeof (QListBoxItem)) as QListBoxItem;
+ TQListBoxItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListBoxItem)) as QListBoxItem;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_QListViewItem (IntPtr value0)
{
- QListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (QListViewItem)) as QListViewItem;
+ TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as QListViewItem;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_QListViewItemQListViewItem (IntPtr value0, IntPtr value1)
{
- QListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (QListViewItem)) as QListViewItem;
- QListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (QListViewItem)) as QListViewItem;
+ TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as QListViewItem;
+ TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as QListViewItem;
Invoke (new object[] {csvalue0, csvalue1});
}
public void SlotBridge_QListViewItemQListViewItemQListViewItem (IntPtr value0, IntPtr value1, IntPtr value2)
{
- QListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (QListViewItem)) as QListViewItem;
- QListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (QListViewItem)) as QListViewItem;
- QListViewItem csvalue2 = QtSupport.LookupObject (value2, typeof (QListViewItem)) as QListViewItem;
+ TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as QListViewItem;
+ TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as QListViewItem;
+ TQListViewItem csvalue2 = QtSupport.LookupObject (value2, typeof (TQListViewItem)) as QListViewItem;
Invoke (new object[] {csvalue0, csvalue1, csvalue2});
}
public void SlotBridge_QNetworkOperation (IntPtr value0)
{
- QNetworkOperation csvalue0 = QtSupport.LookupObject (value0, typeof (QNetworkOperation)) as QNetworkOperation;
+ TQNetworkOperation csvalue0 = QtSupport.LookupObject (value0, typeof (TQNetworkOperation)) as QNetworkOperation;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_QObject (IntPtr value0)
{
- QObject csvalue0 = QtSupport.LookupObject (value0, typeof (QObject)) as QObject;
+ TQObject csvalue0 = QtSupport.LookupObject (value0, typeof (TQObject)) as QObject;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_QToolBar (IntPtr value0)
{
- QToolBar csvalue0 = QtSupport.LookupObject (value0, typeof (QToolBar)) as QToolBar;
+ TQToolBar csvalue0 = QtSupport.LookupObject (value0, typeof (TQToolBar)) as QToolBar;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_QWidget (IntPtr value0)
{
- QWidget csvalue0 = QtSupport.LookupObject (value0, typeof (QWidget)) as QWidget;
+ TQWidget csvalue0 = QtSupport.LookupObject (value0, typeof (TQWidget)) as QWidget;
Invoke (new object[] {csvalue0});
}
public void SlotBridge_intQIconViewItem (int value0, IntPtr value1)
{
- QIconViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (QIconViewItem)) as QIconViewItem;
+ TQIconViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQIconViewItem)) as QIconViewItem;
Invoke (new object[] {value0, csvalue1});
}
public void SlotBridge_intQListBoxItem (int value0, IntPtr value1)
{
- QListBoxItem csvalue1 = QtSupport.LookupObject (value1, typeof (QListBoxItem)) as QListBoxItem;
+ TQListBoxItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListBoxItem)) as QListBoxItem;
Invoke (new object[] {value0, csvalue1});
}
@@ -209,7 +209,7 @@ namespace Qt {
}
}
- private static MethodInfo LookupSlot(QObject receiver, string name, string args)
+ private static MethodInfo LookupSlot(TQObject receiver, string name, string args)
{
MethodInfo ret = null;
diff --git a/qtsharp/src/bindings/static/QtSupport.cs b/qtsharp/src/bindings/static/QtSupport.cs
index eee74728..af48d72a 100644
--- a/qtsharp/src/bindings/static/QtSupport.cs
+++ b/qtsharp/src/bindings/static/QtSupport.cs
@@ -33,7 +33,7 @@ namespace Qt {
private static QtEventHandler qtEventHandler;
- // Runtime flags, set by QApplication.ParseArguments
+ // Runtime flags, set by TQApplication.ParseArguments
internal static bool enableDebug;
internal static bool disableTracking;
internal static bool traceObjects;
@@ -141,7 +141,7 @@ namespace Qt {
internal bool IsQObject ()
{
- return GetType ().IsSubclassOf (typeof (QObject));
+ return GetType ().IsSubclassOf (typeof (TQObject));
}
internal static void WarnMsg (string format, params object[] arg)
@@ -165,7 +165,7 @@ namespace Qt {
Console.WriteLine (format, arg);
}
- public static string SIGNAL (string signal)
+ public static string TQT_SIGNAL (string signal)
{
return "2"+
Regex.Replace (signal, @"\s*\(\s*\)", "()");
@@ -173,7 +173,7 @@ namespace Qt {
}
- public static string SLOT (string slot)
+ public static string TQT_SLOT (string slot)
{
return "1" +
Regex.Replace (slot, @"\s*\(\s*\)", "()");
@@ -283,7 +283,7 @@ namespace Qt {
new object[] {ptr},
null);
- // FIXME Must handle cases where qtsObj is a QObject root
+ // FIXME Must handle cases where qtsObj is a TQObject root
// or child. Should we box the entire object tree in
// C#? Also, RegisterObject will only track this object
// if it is a root node. Child nodes are assumed to be
@@ -335,15 +335,15 @@ namespace Qt {
private static void DispatchEvent (IntPtr instance, string eventname, IntPtr eventinstance, string eventclass)
{
ArrayList array;
- QObject obj;
- QEvent ev;
+ TQObject obj;
+ TQEvent ev;
Type evtype = Type.GetType ("Qt."+eventclass+",Qt");
- if ((obj = (QObject)LookupObject (instance)) == null) return;
+ if ((obj = (TQObject)LookupObject (instance)) == null) return;
try
{
- if ((ev = (QEvent)LookupObject (eventinstance)) == null) {
+ if ((ev = (TQEvent)LookupObject (eventinstance)) == null) {
object[] args = new object[] { eventinstance };
BindingFlags bflags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public;
ev = Activator.CreateInstance (evtype, bflags, null, args, null) as QEvent;
@@ -375,92 +375,92 @@ namespace Qt {
// Global events.
public static event QChildHandler childHandler {
- add { EventList.Add ("QChildEvent", value); }
- remove { EventList.Remove ("QChildEvent", value); }
+ add { EventList.Add ("TQChildEvent", value); }
+ remove { EventList.Remove ("TQChildEvent", value); }
}
public static event QDragEnterHandler dragEnterHandler {
- add { EventList.Add ("QDragEnterEvent", value); }
- remove { EventList.Remove ("QDragEnterEvent", value); }
+ add { EventList.Add ("TQDragEnterEvent", value); }
+ remove { EventList.Remove ("TQDragEnterEvent", value); }
}
public static event QDropHandler dropHandler {
- add { EventList.Add ("QDropEvent", value); }
- remove { EventList.Remove ("QDropEvent", value); }
+ add { EventList.Add ("TQDropEvent", value); }
+ remove { EventList.Remove ("TQDropEvent", value); }
}
public static event QIMHandler imHandler {
- add { EventList.Add ("QIMEvent", value); }
- remove { EventList.Remove ("QIMEvent", value); }
+ add { EventList.Add ("TQIMEvent", value); }
+ remove { EventList.Remove ("TQIMEvent", value); }
}
public static event QPaintHandler paintHandler {
- add { EventList.Add ("QPaintEvent", value); }
- remove { EventList.Remove ("QPaintEvent", value); }
+ add { EventList.Add ("TQPaintEvent", value); }
+ remove { EventList.Remove ("TQPaintEvent", value); }
}
public static event QTimerHandler timerHandler {
- add { EventList.Add ("QTimerEvent", value); }
- remove { EventList.Remove ("QTimerEvent", value); }
+ add { EventList.Add ("TQTimerEvent", value); }
+ remove { EventList.Remove ("TQTimerEvent", value); }
}
public static event QCloseHandler closeHandler {
- add { EventList.Add ("QCloseEvent", value); }
- remove { EventList.Remove ("QCloseEvent", value); }
+ add { EventList.Add ("TQCloseEvent", value); }
+ remove { EventList.Remove ("TQCloseEvent", value); }
}
public static event QDragLeaveHandler dragLeaveHandler {
- add { EventList.Add ("QDragLeaveEvent", value); }
- remove { EventList.Remove ("QDragLeaveEvent", value); }
+ add { EventList.Add ("TQDragLeaveEvent", value); }
+ remove { EventList.Remove ("TQDragLeaveEvent", value); }
}
public static event QEventHandler eventHandler {
add { EventList.Add ("QEventEvent", value); }
remove { EventList.Remove ("QEventEvent", value); }
}
public static event QKeyHandler keyHandler {
- add { EventList.Add ("QKeyEvent", value); }
- remove { EventList.Remove ("QKeyEvent", value); }
+ add { EventList.Add ("TQKeyEvent", value); }
+ remove { EventList.Remove ("TQKeyEvent", value); }
}
public static event QResizeHandler resizeHandler {
- add { EventList.Add ("QResizeEvent", value); }
- remove { EventList.Remove ("QResizeEvent", value); }
+ add { EventList.Add ("TQResizeEvent", value); }
+ remove { EventList.Remove ("TQResizeEvent", value); }
}
public static event QWheelHandler wheelHandler {
- add { EventList.Add ("QWheelEvent", value); }
- remove { EventList.Remove ("QWheelEvent", value); }
+ add { EventList.Add ("TQWheelEvent", value); }
+ remove { EventList.Remove ("TQWheelEvent", value); }
}
public static event QContextMenuHandler contextMenuHandler {
- add { EventList.Add ("QContextMenuEvent", value); }
- remove { EventList.Remove ("QContextMenuEvent", value); }
+ add { EventList.Add ("TQContextMenuEvent", value); }
+ remove { EventList.Remove ("TQContextMenuEvent", value); }
}
public static event QDragMoveHandler dragMoveHandler {
- add { EventList.Add ("QDragMoveEvent", value); }
- remove { EventList.Remove ("QDragMoveEvent", value); }
+ add { EventList.Add ("TQDragMoveEvent", value); }
+ remove { EventList.Remove ("TQDragMoveEvent", value); }
}
public static event QFocusHandler focusHandler {
- add { EventList.Add ("QFocusEvent", value); }
- remove { EventList.Remove ("QFocusEvent", value); }
+ add { EventList.Add ("TQFocusEvent", value); }
+ remove { EventList.Remove ("TQFocusEvent", value); }
}
public static event QMouseHandler mouseHandler {
- add { EventList.Add ("QMouseEvent", value); }
- remove { EventList.Remove ("QMouseEvent", value); }
+ add { EventList.Add ("TQMouseEvent", value); }
+ remove { EventList.Remove ("TQMouseEvent", value); }
}
public static event QShowHandler showHandler {
- add { EventList.Add ("QShowEvent", value); }
- remove { EventList.Remove ("QShowEvent", value); }
+ add { EventList.Add ("TQShowEvent", value); }
+ remove { EventList.Remove ("TQShowEvent", value); }
}
public static event QCustomHandler customHandler {
- add { EventList.Add ("QCustomEvent", value); }
- remove { EventList.Remove ("QCustomEvent", value); }
+ add { EventList.Add ("TQCustomEvent", value); }
+ remove { EventList.Remove ("TQCustomEvent", value); }
}
public static event QDragResponseHandler dragResponseHandler {
- add { EventList.Add ("QDragResponseEvent", value); }
- remove { EventList.Remove ("QDragResponseEvent", value); }
+ add { EventList.Add ("TQDragResponseEvent", value); }
+ remove { EventList.Remove ("TQDragResponseEvent", value); }
}
public static event QHideHandler hideHandler {
- add { EventList.Add ("QHideEvent", value); }
- remove { EventList.Remove ("QHideEvent", value); }
+ add { EventList.Add ("TQHideEvent", value); }
+ remove { EventList.Remove ("TQHideEvent", value); }
}
public static event QMoveHandler moveHandler {
- add { EventList.Add ("QMoveEvent", value); }
- remove { EventList.Remove ("QMoveEvent", value); }
+ add { EventList.Add ("TQMoveEvent", value); }
+ remove { EventList.Remove ("TQMoveEvent", value); }
}
public static event QTabletHandler tabletHandler {
- add { EventList.Add ("QTabletEvent", value); }
- remove { EventList.Remove ("QTabletEvent", value); }
+ add { EventList.Add ("TQTabletEvent", value); }
+ remove { EventList.Remove ("TQTabletEvent", value); }
}
// Local events.
@@ -670,81 +670,81 @@ namespace Qt {
}
// The local event delegates.
- protected delegate void ChildEvent (QChildEvent e);
- protected delegate void CloseEvent (QCloseEvent e);
- protected delegate void ContentsContextMenuEvent (QContextMenuEvent e);
- protected delegate void ContentsDragEnterEvent (QDragEnterEvent e);
- protected delegate void ContentsDragLeaveEvent (QDragLeaveEvent e);
- protected delegate void ContentsDragMoveEvent (QDragMoveEvent e);
- protected delegate void ContentsDropEvent (QDropEvent e);
- protected delegate void ContentsMouseDoubleClickEvent (QMouseEvent e);
- protected delegate void ContentsMouseMoveEvent (QMouseEvent e);
- protected delegate void ContentsMousePressEvent (QMouseEvent e);
- protected delegate void ContentsMouseReleaseEvent (QMouseEvent e);
- protected delegate void ContentsWheelEvent (QWheelEvent e);
- protected delegate void ContextMenuEvent (QContextMenuEvent e);
- protected delegate void CustomEvent (QCustomEvent e);
- protected delegate void DragEnterEvent (QDragEnterEvent e);
- protected delegate void DragLeaveEvent (QDragLeaveEvent e);
- protected delegate void DragMoveEvent (QDragMoveEvent e);
- protected delegate void DropEvent (QDropEvent e);
- protected delegate void EnterEvent (QEvent e);
- protected delegate void FocusInEvent (QFocusEvent e);
- protected delegate void FocusOutEvent (QFocusEvent e);
- protected delegate void HideEvent (QHideEvent e);
- protected delegate void IMComposeEvent (QIMEvent e);
- protected delegate void IMEndEvent (QIMEvent e);
- protected delegate void IMStartEvent (QIMEvent e);
- protected delegate void KeyPressEvent (QKeyEvent e);
- protected delegate void KeyReleaseEvent (QKeyEvent e);
- protected delegate void LeaveEvent (QEvent e);
- protected delegate void MouseDoubleClickEvent (QMouseEvent e);
- protected delegate void MouseMoveEvent (QMouseEvent e);
- protected delegate void MousePressEvent (QMouseEvent e);
- protected delegate void MouseReleaseEvent (QMouseEvent e);
- protected delegate void MoveEvent (QMoveEvent e);
- protected delegate void PaintEvent (QPaintEvent e);
- protected delegate void ResizeEvent (QResizeEvent e);
- protected delegate void ShowEvent (QShowEvent e);
- protected delegate void TabletEvent (QTabletEvent e);
- protected delegate void TimerEvent (QTimerEvent e);
- protected delegate void ViewportContextMenuEvent (QContextMenuEvent e);
- protected delegate void ViewportDragEnterEvent (QDragEnterEvent e);
- protected delegate void ViewportDragLeaveEvent (QDragLeaveEvent e);
- protected delegate void ViewportDragMoveEvent (QDragMoveEvent e);
- protected delegate void ViewportDropEvent (QDropEvent e);
- protected delegate void ViewportMouseDoubleClickEvent (QMouseEvent e);
- protected delegate void ViewportMouseMoveEvent (QMouseEvent e);
- protected delegate void ViewportMousePressEvent (QMouseEvent e);
- protected delegate void ViewportMouseReleaseEvent (QMouseEvent e);
- protected delegate void ViewportPaintEvent (QPaintEvent e);
- protected delegate void ViewportResizeEvent (QResizeEvent e);
- protected delegate void ViewportWheelEvent (QWheelEvent e);
- protected delegate void WheelEvent (QWheelEvent e);
+ protected delegate void ChildEvent (TQChildEvent e);
+ protected delegate void CloseEvent (TQCloseEvent e);
+ protected delegate void ContentsContextMenuEvent (TQContextMenuEvent e);
+ protected delegate void ContentsDragEnterEvent (TQDragEnterEvent e);
+ protected delegate void ContentsDragLeaveEvent (TQDragLeaveEvent e);
+ protected delegate void ContentsDragMoveEvent (TQDragMoveEvent e);
+ protected delegate void ContentsDropEvent (TQDropEvent e);
+ protected delegate void ContentsMouseDoubleClickEvent (TQMouseEvent e);
+ protected delegate void ContentsMouseMoveEvent (TQMouseEvent e);
+ protected delegate void ContentsMousePressEvent (TQMouseEvent e);
+ protected delegate void ContentsMouseReleaseEvent (TQMouseEvent e);
+ protected delegate void ContentsWheelEvent (TQWheelEvent e);
+ protected delegate void ContextMenuEvent (TQContextMenuEvent e);
+ protected delegate void CustomEvent (TQCustomEvent e);
+ protected delegate void DragEnterEvent (TQDragEnterEvent e);
+ protected delegate void DragLeaveEvent (TQDragLeaveEvent e);
+ protected delegate void DragMoveEvent (TQDragMoveEvent e);
+ protected delegate void DropEvent (TQDropEvent e);
+ protected delegate void EnterEvent (TQEvent e);
+ protected delegate void FocusInEvent (TQFocusEvent e);
+ protected delegate void FocusOutEvent (TQFocusEvent e);
+ protected delegate void HideEvent (TQHideEvent e);
+ protected delegate void IMComposeEvent (TQIMEvent e);
+ protected delegate void IMEndEvent (TQIMEvent e);
+ protected delegate void IMStartEvent (TQIMEvent e);
+ protected delegate void KeyPressEvent (TQKeyEvent e);
+ protected delegate void KeyReleaseEvent (TQKeyEvent e);
+ protected delegate void LeaveEvent (TQEvent e);
+ protected delegate void MouseDoubleClickEvent (TQMouseEvent e);
+ protected delegate void MouseMoveEvent (TQMouseEvent e);
+ protected delegate void MousePressEvent (TQMouseEvent e);
+ protected delegate void MouseReleaseEvent (TQMouseEvent e);
+ protected delegate void MoveEvent (TQMoveEvent e);
+ protected delegate void PaintEvent (TQPaintEvent e);
+ protected delegate void ResizeEvent (TQResizeEvent e);
+ protected delegate void ShowEvent (TQShowEvent e);
+ protected delegate void TabletEvent (TQTabletEvent e);
+ protected delegate void TimerEvent (TQTimerEvent e);
+ protected delegate void ViewportContextMenuEvent (TQContextMenuEvent e);
+ protected delegate void ViewportDragEnterEvent (TQDragEnterEvent e);
+ protected delegate void ViewportDragLeaveEvent (TQDragLeaveEvent e);
+ protected delegate void ViewportDragMoveEvent (TQDragMoveEvent e);
+ protected delegate void ViewportDropEvent (TQDropEvent e);
+ protected delegate void ViewportMouseDoubleClickEvent (TQMouseEvent e);
+ protected delegate void ViewportMouseMoveEvent (TQMouseEvent e);
+ protected delegate void ViewportMousePressEvent (TQMouseEvent e);
+ protected delegate void ViewportMouseReleaseEvent (TQMouseEvent e);
+ protected delegate void ViewportPaintEvent (TQPaintEvent e);
+ protected delegate void ViewportResizeEvent (TQResizeEvent e);
+ protected delegate void ViewportWheelEvent (TQWheelEvent e);
+ protected delegate void WheelEvent (TQWheelEvent e);
}
// The global event delegates.
- public delegate void QChildHandler (QObject sender, QEventArgs e);
- public delegate void QDragEnterHandler (QObject sender, QEventArgs e);
- public delegate void QDropHandler (QObject sender, QEventArgs e);
- public delegate void QIMHandler (QObject sender, QEventArgs e);
- public delegate void QPaintHandler (QObject sender, QEventArgs e);
- public delegate void QTimerHandler (QObject sender, QEventArgs e);
- public delegate void QCloseHandler (QObject sender, QEventArgs e);
- public delegate void QDragLeaveHandler (QObject sender, QEventArgs e);
- public delegate void QEventHandler (QObject sender, QEventArgs e);
- public delegate void QKeyHandler (QObject sender, QEventArgs e);
- public delegate void QResizeHandler (QObject sender, QEventArgs e);
- public delegate void QWheelHandler (QObject sender, QEventArgs e);
- public delegate void QContextMenuHandler (QObject sender, QEventArgs e);
- public delegate void QDragMoveHandler (QObject sender, QEventArgs e);
- public delegate void QFocusHandler (QObject sender, QEventArgs e);
- public delegate void QMouseHandler (QObject sender, QEventArgs e);
- public delegate void QShowHandler (QObject sender, QEventArgs e);
- public delegate void QCustomHandler (QObject sender, QEventArgs e);
- public delegate void QDragResponseHandler (QObject sender, QEventArgs e);
- public delegate void QHideHandler (QObject sender, QEventArgs e);
- public delegate void QMoveHandler (QObject sender, QEventArgs e);
- public delegate void QTabletHandler (QObject sender, QEventArgs e);
+ public delegate void QChildHandler (TQObject sender, QEventArgs e);
+ public delegate void QDragEnterHandler (TQObject sender, QEventArgs e);
+ public delegate void QDropHandler (TQObject sender, QEventArgs e);
+ public delegate void QIMHandler (TQObject sender, QEventArgs e);
+ public delegate void QPaintHandler (TQObject sender, QEventArgs e);
+ public delegate void QTimerHandler (TQObject sender, QEventArgs e);
+ public delegate void QCloseHandler (TQObject sender, QEventArgs e);
+ public delegate void QDragLeaveHandler (TQObject sender, QEventArgs e);
+ public delegate void QEventHandler (TQObject sender, QEventArgs e);
+ public delegate void QKeyHandler (TQObject sender, QEventArgs e);
+ public delegate void QResizeHandler (TQObject sender, QEventArgs e);
+ public delegate void QWheelHandler (TQObject sender, QEventArgs e);
+ public delegate void QContextMenuHandler (TQObject sender, QEventArgs e);
+ public delegate void QDragMoveHandler (TQObject sender, QEventArgs e);
+ public delegate void QFocusHandler (TQObject sender, QEventArgs e);
+ public delegate void QMouseHandler (TQObject sender, QEventArgs e);
+ public delegate void QShowHandler (TQObject sender, QEventArgs e);
+ public delegate void QCustomHandler (TQObject sender, QEventArgs e);
+ public delegate void QDragResponseHandler (TQObject sender, QEventArgs e);
+ public delegate void QHideHandler (TQObject sender, QEventArgs e);
+ public delegate void QMoveHandler (TQObject sender, QEventArgs e);
+ public delegate void QTabletHandler (TQObject sender, QEventArgs e);
}
diff --git a/qtsharp/src/bindings/static/RasterOp.cs b/qtsharp/src/bindings/static/RasterOp.cs
index ed94088d..95c4452c 100644
--- a/qtsharp/src/bindings/static/RasterOp.cs
+++ b/qtsharp/src/bindings/static/RasterOp.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/StringComparisonMode.cs b/qtsharp/src/bindings/static/StringComparisonMode.cs
index 833025e0..6253646c 100644
--- a/qtsharp/src/bindings/static/StringComparisonMode.cs
+++ b/qtsharp/src/bindings/static/StringComparisonMode.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/TextFlags.cs b/qtsharp/src/bindings/static/TextFlags.cs
index 96904f7d..ebfb9d53 100644
--- a/qtsharp/src/bindings/static/TextFlags.cs
+++ b/qtsharp/src/bindings/static/TextFlags.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/TextFormat.cs b/qtsharp/src/bindings/static/TextFormat.cs
index 06365f3e..d2eab137 100644
--- a/qtsharp/src/bindings/static/TextFormat.cs
+++ b/qtsharp/src/bindings/static/TextFormat.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/UIEffect.cs b/qtsharp/src/bindings/static/UIEffect.cs
index 15913e09..3eb93662 100644
--- a/qtsharp/src/bindings/static/UIEffect.cs
+++ b/qtsharp/src/bindings/static/UIEffect.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/WidgetFlags.cs b/qtsharp/src/bindings/static/WidgetFlags.cs
index fde21e59..748e6ef5 100644
--- a/qtsharp/src/bindings/static/WidgetFlags.cs
+++ b/qtsharp/src/bindings/static/WidgetFlags.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/WidgetState.cs b/qtsharp/src/bindings/static/WidgetState.cs
index 8afc9024..7d2f3383 100644
--- a/qtsharp/src/bindings/static/WidgetState.cs
+++ b/qtsharp/src/bindings/static/WidgetState.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/bindings/static/WindowsVersion.cs b/qtsharp/src/bindings/static/WindowsVersion.cs
index da81ea4c..68e75c43 100644
--- a/qtsharp/src/bindings/static/WindowsVersion.cs
+++ b/qtsharp/src/bindings/static/WindowsVersion.cs
@@ -1,4 +1,4 @@
-// QApplication.cs - A Qt to C# binding.
+// TQApplication.cs - A Qt to C# binding.
//
// Copyright (C) 2002 Adam Treat (manyoso@yahoo.com)
//
diff --git a/qtsharp/src/examples/samples/display.cs b/qtsharp/src/examples/samples/display.cs
index b1c7ca10..9f2f4939 100644
--- a/qtsharp/src/examples/samples/display.cs
+++ b/qtsharp/src/examples/samples/display.cs
@@ -3,20 +3,20 @@ namespace QtSamples {
using Qt;
using System;
- public class Display : QMainWindow {
+ public class Display : TQMainWindow {
private TextArea textarea;
- private QScrollView scrollview;
- private QMenuBar menubar;
- private QPopupMenu filemenu, aboutmenu;
+ private TQScrollView scrollview;
+ private TQMenuBar menubar;
+ private TQPopupMenu filemenu, aboutmenu;
- private class TextArea : QTextEdit {
+ private class TextArea : TQTextEdit {
- public TextArea (QWidget parent) : base (parent)
+ public TextArea (TQWidget parent) : base (parent)
{
- QFile file = new QFile ("display.cs");
+ TQFile file = new TQFile ("display.cs");
if ( file.Open(1) ) {
- QTextStream ts = new QTextStream (file);
+ TQTextStream ts = new TQTextStream (file);
this.SetText (ts.Read ());
this.SetTabStopWidth (30);
}
@@ -25,13 +25,13 @@ namespace QtSamples {
public Display ()
{
- filemenu = new QPopupMenu (null, "filemenu");
- filemenu.InsertItem ("&Quit", qApp, SLOT ("quit()"));
+ filemenu = new TQPopupMenu (null, "filemenu");
+ filemenu.InsertItem ("&Quit", qApp, TQT_SLOT ("quit()"));
- aboutmenu = new QPopupMenu(null, "aboutmenu");
- aboutmenu.InsertItem("&About Qt-Sharp", this, SLOT("slotAbout()"));
+ aboutmenu = new TQPopupMenu(null, "aboutmenu");
+ aboutmenu.InsertItem("&About Qt-Sharp", this, TQT_SLOT("slotAbout()"));
- menubar = new QMenuBar(this, "");
+ menubar = new TQMenuBar(this, "");
menubar.InsertItem("&File", filemenu);
menubar.InsertItem("&About", aboutmenu);
@@ -42,7 +42,7 @@ namespace QtSamples {
public void slotAbout ()
{
- QMessageBox.Information (
+ TQMessageBox.Information (
this, "About Qt-Sharp-0.7",
"A Qt (http://www.trolltech.com) to C# language binding.\n" +
"Qt-Sharp is compatible with Mono (http://go-mono.org) and\n" +
@@ -53,7 +53,7 @@ namespace QtSamples {
public static void Main (String[] args)
{
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
Display demo = new Display ();
demo.SetCaption ("Qt-Sharp-0.7!");
app.SetMainWidget (demo);
diff --git a/qtsharp/src/examples/samples/emit.cs b/qtsharp/src/examples/samples/emit.cs
index e9c3c40a..125166a2 100644
--- a/qtsharp/src/examples/samples/emit.cs
+++ b/qtsharp/src/examples/samples/emit.cs
@@ -6,15 +6,15 @@ namespace QtSamples {
using Qt;
[DeclareQtSignal ("MySignal()")]
- public class EmitSample: QVBox {
+ public class EmitSample: TQVBox {
public EmitSample (): this (null, "") {}
- public EmitSample (QWidget parent, string name): base ()
+ public EmitSample (TQWidget parent, string name): base ()
{
- QPushButton pb = new QPushButton ("Papa Smurf", this);
+ TQPushButton pb = new TQPushButton ("Papa Smurf", this);
- Connect (pb, SIGNAL ("clicked ()"), SLOT ("DoEmit ()"));
- Connect (this, SIGNAL ("MySignal ()"), SLOT ("PrintStuff ()"));
+ Connect (pb, TQT_SIGNAL ("clicked ()"), TQT_SLOT ("DoEmit ()"));
+ Connect (this, TQT_SIGNAL ("MySignal ()"), TQT_SLOT ("PrintStuff ()"));
}
public void DoEmit ()
@@ -29,7 +29,7 @@ namespace QtSamples {
public static int Main (string[] args)
{
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
EmitSample es = new EmitSample ();
app.SetMainWidget (es);
es.Show ();
diff --git a/qtsharp/src/examples/samples/eventhandling.cs b/qtsharp/src/examples/samples/eventhandling.cs
index ee410dd3..2372d766 100644
--- a/qtsharp/src/examples/samples/eventhandling.cs
+++ b/qtsharp/src/examples/samples/eventhandling.cs
@@ -11,11 +11,11 @@ namespace QtSamples {
using Qt;
using System;
- public class EventHandling : QVBox {
+ public class EventHandling : TQVBox {
public static void Main (String[] args)
{
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
EventHandling evh = new EventHandling ();
app.SetMainWidget (evh);
evh.Show ();
@@ -30,20 +30,20 @@ namespace QtSamples {
MyButton pb = new MyButton (this);
}
- public void mouseEvents (QObject sender, QEventArgs e)
+ public void mouseEvents (TQObject sender, QEventArgs e)
{
Console.WriteLine ("Mouse event: " + e.Name);
}
- class MyButton : QPushButton {
+ class MyButton : TQPushButton {
- public MyButton (QWidget parent) : base ("Hello Qt-Sharp-0.7!", parent)
+ public MyButton (TQWidget parent) : base ("Hello Qt-Sharp-0.7!", parent)
{
// This is the local event handler for mousePressEvents
mousePressEvent += new MousePressEvent (pressEvent);
}
- public void pressEvent (QMouseEvent e)
+ public void pressEvent (TQMouseEvent e)
{
Console.WriteLine ("I've been clicked");
}
diff --git a/qtsharp/src/examples/samples/hello.cs b/qtsharp/src/examples/samples/hello.cs
index db6890e5..1039aa34 100644
--- a/qtsharp/src/examples/samples/hello.cs
+++ b/qtsharp/src/examples/samples/hello.cs
@@ -11,11 +11,11 @@ namespace QtSamples {
using Qt;
using System;
- public class HelloWorld : QVBox {
+ public class HelloWorld : TQVBox {
public static void Main (String[] args)
{
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
HelloWorld hello = new HelloWorld ();
app.SetMainWidget (hello);
hello.Show ();
@@ -24,13 +24,13 @@ namespace QtSamples {
public HelloWorld () : base (null)
{
- QPushButton pb = new QPushButton ("Hello Qt-Sharp-0.7!", this);
- QObject.Connect (pb, SIGNAL ("clicked()"), this, SLOT("SlotClicked()"));
+ TQPushButton pb = new TQPushButton ("Hello Qt-Sharp-0.7!", this);
+ TQObject.Connect (pb, TQT_SIGNAL ("clicked()"), this, TQT_SLOT("SlotClicked()"));
}
public void SlotClicked ()
{
- Console.WriteLine ("QPushButton Clicked!");
+ Console.WriteLine ("TQPushButton Clicked!");
}
}
}
diff --git a/qtsharp/src/examples/samples/mandelbrot.cs b/qtsharp/src/examples/samples/mandelbrot.cs
index 5dbd9b85..3850b781 100644
--- a/qtsharp/src/examples/samples/mandelbrot.cs
+++ b/qtsharp/src/examples/samples/mandelbrot.cs
@@ -106,7 +106,7 @@ public class Mandelbrot {
public static void Main (string[] args)
{
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
ImageDialog dialog = new ImageDialog (null, "Mandelbrot", false, 0);
dialog.Show ();
@@ -117,109 +117,109 @@ public class Mandelbrot {
}
-public class ImageDialog : QDialog {
+public class ImageDialog : TQDialog {
const double DefaultPlotXMin = -2.0;
const double DefaultPlotXMax = 2.0;
const double DefaultPlotYMin = -1.5;
const double DefaultPlotYMax = 1.5;
- QHBoxLayout dialogLayout;
- QGridLayout gridLayout;
- QVBoxLayout leftLayout;
- QHBoxLayout buttonLayout;
- QPushButton redrawButton;
- QLabel pixmapLabel;
- QSizePolicy fixedSizePolicy;
+ TQHBoxLayout dialogLayout;
+ TQGridLayout gridLayout;
+ TQVBoxLayout leftLayout;
+ TQHBoxLayout buttonLayout;
+ TQPushButton redrawButton;
+ TQLabel pixmapLabel;
+ TQSizePolicy fixedSizePolicy;
- QLabel XMinLabel, XMaxLabel, YMinLabel, YMaxLabel;
- QLineEdit editXMin, editXMax, editYMin, editYMax;
+ TQLabel XMinLabel, XMaxLabel, YMinLabel, YMaxLabel;
+ TQLineEdit editXMin, editXMax, editYMin, editYMax;
- public ImageDialog (QWidget parent, string name, bool modal, WidgetFlags fl):
+ public ImageDialog (TQWidget parent, string name, bool modal, WidgetFlags fl):
base (parent, name, modal, fl)
{
if (name == string.Empty)
SetName ("imageDialog");
SetCaption ("Mandelbrot Image");
- dialogLayout = new QHBoxLayout (this, 11, 6);
- gridLayout = new QGridLayout (null, 1, 1, 0, 6, "gridLayout");
- leftLayout = new QVBoxLayout (null, 0, 6, "leftLayout");
+ dialogLayout = new TQHBoxLayout (this, 11, 6);
+ gridLayout = new TQGridLayout (null, 1, 1, 0, 6, "gridLayout");
+ leftLayout = new TQVBoxLayout (null, 0, 6, "leftLayout");
- fixedSizePolicy = new QSizePolicy ();
- fixedSizePolicy.SetHorData (QSizePolicy.SizeType.Fixed);
- fixedSizePolicy.SetVerData (QSizePolicy.SizeType.Fixed);
+ fixedSizePolicy = new TQSizePolicy ();
+ fixedSizePolicy.SetHorData (TQSizePolicy.SizeType.Fixed);
+ fixedSizePolicy.SetVerData (TQSizePolicy.SizeType.Fixed);
- XMinLabel = new QLabel ("Xmin", this);
+ XMinLabel = new TQLabel ("Xmin", this);
XMinLabel.SetSizePolicy (fixedSizePolicy);
gridLayout.AddWidget (XMinLabel, 0, 0);
- XMaxLabel = new QLabel ("Xmax", this);
+ XMaxLabel = new TQLabel ("Xmax", this);
XMaxLabel.SetSizePolicy(fixedSizePolicy);
gridLayout.AddWidget (XMaxLabel, 1, 0);
- YMinLabel = new QLabel ("Ymin", this);
+ YMinLabel = new TQLabel ("Ymin", this);
YMinLabel.SetSizePolicy (fixedSizePolicy);
gridLayout.AddWidget (YMinLabel, 2, 0);
- YMaxLabel = new QLabel ("Ymax", this);
+ YMaxLabel = new TQLabel ("Ymax", this);
YMaxLabel.SetSizePolicy (fixedSizePolicy);
gridLayout.AddWidget (YMaxLabel, 3, 0);
- QDoubleValidator validator = new QDoubleValidator (this);
+ TQDoubleValidator validator = new TQDoubleValidator (this);
- editXMin = new QLineEdit (this, "editXMin");
+ editXMin = new TQLineEdit (this, "editXMin");
editXMin.SetText (Convert.ToString (DefaultPlotXMin));
editXMin.SetValidator (validator);
gridLayout.AddWidget (editXMin, 0, 1);
- editXMax = new QLineEdit (this, "editXMax");
+ editXMax = new TQLineEdit (this, "editXMax");
editXMax.SetText (Convert.ToString(DefaultPlotXMax));
editXMax.SetValidator (validator);
gridLayout.AddWidget (editXMax, 1, 1);
- editYMin = new QLineEdit (this, "editYMin");
+ editYMin = new TQLineEdit (this, "editYMin");
editYMin.SetText (Convert.ToString(DefaultPlotYMin));
editYMin.SetValidator (validator);
gridLayout.AddWidget (editYMin, 2, 1);
- editYMax = new QLineEdit (this, "editYMax");
+ editYMax = new TQLineEdit (this, "editYMax");
editYMax.SetText (Convert.ToString(DefaultPlotYMax));
editYMax.SetValidator (validator);
gridLayout.AddWidget (editYMax, 3, 1);
leftLayout.AddLayout (gridLayout);
- QSpacerItem spacer1 = new QSpacerItem (0, 0, 0, 0);
+ TQSpacerItem spacer1 = new TQSpacerItem (0, 0, 0, 0);
leftLayout.AddItem (spacer1);
- buttonLayout = new QHBoxLayout (null, 0, 6, "buttonLayout");
- QSpacerItem spacer2 = new QSpacerItem (0, 0, 0, 0);
+ buttonLayout = new TQHBoxLayout (null, 0, 6, "buttonLayout");
+ TQSpacerItem spacer2 = new TQSpacerItem (0, 0, 0, 0);
buttonLayout.AddItem (spacer2);
- redrawButton = new QPushButton ("Redraw", this);
+ redrawButton = new TQPushButton ("Redraw", this);
redrawButton.SetDefault (true);
buttonLayout.AddWidget (redrawButton);
- QSpacerItem spacer3 = new QSpacerItem (0, 0, 0, 0);
+ TQSpacerItem spacer3 = new TQSpacerItem (0, 0, 0, 0);
buttonLayout.AddItem (spacer3);
leftLayout.AddLayout (buttonLayout);
dialogLayout.AddLayout (leftLayout);
- QSpacerItem spacer4 = new QSpacerItem (0, 0, 0, 0);
+ TQSpacerItem spacer4 = new TQSpacerItem (0, 0, 0, 0);
dialogLayout.AddItem (spacer4);
- pixmapLabel = new QLabel (this, "pixmapLabel", 0);
+ pixmapLabel = new TQLabel (this, "pixmapLabel", 0);
pixmapLabel.SetScaledContents (true);
dialogLayout.AddWidget (pixmapLabel);
- QObject.Connect (redrawButton, SIGNAL ("clicked()"), this, SLOT ("Redraw()"));
+ TQObject.Connect (redrawButton, TQT_SIGNAL ("clicked()"), this, TQT_SLOT ("Redraw()"));
Redraw ();
}
- QImage MandelbrotImage ()
+ TQImage MandelbrotImage ()
{
int depth;
double real, imag;
@@ -232,7 +232,7 @@ public class ImageDialog : QDialog {
int ImageXMax = pixmapLabel.Width ();
int ImageYMax = pixmapLabel.Height ();
- QImage image = new QImage (ImageXMax, ImageYMax, 32, 0);
+ TQImage image = new TQImage (ImageXMax, ImageYMax, 32, 0);
for (int x = 0; x <= ImageXMax - 1; x+=1) {
for (int y = 0; y <= ImageYMax - 1; y+=1) {
@@ -248,16 +248,16 @@ public class ImageDialog : QDialog {
public void Redraw ()
{
- QSize s = pixmapLabel.BaseSize ();
+ TQSize s = pixmapLabel.BaseSize ();
pixmapLabel.Resize (400,300);
- QApplication.SetOverrideCursor ( new QCursor( (int) CursorShape.WaitCursor ));
- QImage image = MandelbrotImage ();
- QPixmap pixmap = new QPixmap (image);
+ TQApplication.SetOverrideCursor ( new TQCursor( (int) CursorShape.WaitCursor ));
+ TQImage image = MandelbrotImage ();
+ TQPixmap pixmap = new TQPixmap (image);
pixmapLabel.SetPixmap( pixmap);
image.Dispose ();
pixmap.Dispose ();
this.AdjustSize ();
- QApplication.RestoreOverrideCursor ();
+ TQApplication.RestoreOverrideCursor ();
}
}
diff --git a/qtsharp/src/examples/samples/mandelbrot2.cs b/qtsharp/src/examples/samples/mandelbrot2.cs
index bcb0a360..2b83579e 100644
--- a/qtsharp/src/examples/samples/mandelbrot2.cs
+++ b/qtsharp/src/examples/samples/mandelbrot2.cs
@@ -108,7 +108,7 @@ public class Mandelbrot
public static void Main (string[] args)
{
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
dialog = new ImageDialog (null, "Mandelbrot", false, 0);
dialog.SetGeometry(0, 0, 550, 300 );
@@ -122,11 +122,11 @@ public class Mandelbrot
public class PicLabel: QFrame
{
- QPixmap newPixmap;
+ TQPixmap newPixmap;
int newWidth = 400;
int newHeight = 300;
- public PicLabel( QWidget parent, string name, WidgetFlags flags ):
+ public PicLabel( TQWidget parent, string name, WidgetFlags flags ):
base( parent, name, flags )
{
SetBackgroundMode (Qt.BackgroundMode.NoBackground);
@@ -135,7 +135,7 @@ public class PicLabel: QFrame
}
- protected void PerformResize (QResizeEvent e)
+ protected void PerformResize (TQResizeEvent e)
{
Console.WriteLine("Resizing to {0} by {1}",
e.Size().Width(), e.Size().Height() );
@@ -146,12 +146,12 @@ public class PicLabel: QFrame
}
- protected void PerformPaint(QPaintEvent e )
+ protected void PerformPaint(TQPaintEvent e )
{
Console.WriteLine("Making a new image {0} by {1}", newWidth, newHeight );
- QImage image = Mandelbrot.dialog.MandelbrotImage( newWidth, newHeight );
- newPixmap = new QPixmap( image );
+ TQImage image = Mandelbrot.dialog.MandelbrotImage( newWidth, newHeight );
+ newPixmap = new TQPixmap( image );
BitBlt(this, 0, 0, newPixmap,
0, 0, -1, -1, RasterOp.CopyROP, false);
@@ -161,123 +161,123 @@ public class PicLabel: QFrame
-public class ImageDialog : QDialog {
+public class ImageDialog : TQDialog {
const double DefaultPlotXMin = -2.0;
const double DefaultPlotXMax = 2.0;
const double DefaultPlotYMin = -1.5;
const double DefaultPlotYMax = 1.5;
- QHBoxLayout dialogLayout;
- QGridLayout gridLayout;
- QVBoxLayout leftLayout;
- QHBoxLayout buttonLayout;
- QPushButton redrawButton;
+ TQHBoxLayout dialogLayout;
+ TQGridLayout gridLayout;
+ TQVBoxLayout leftLayout;
+ TQHBoxLayout buttonLayout;
+ TQPushButton redrawButton;
public PicLabel pixmapLabel;
- QSizePolicy fixedSizePolicy;
+ TQSizePolicy fixedSizePolicy;
- QLabel XMinLabel, XMaxLabel, YMinLabel, YMaxLabel;
- QLineEdit editXMin, editXMax, editYMin, editYMax;
+ TQLabel XMinLabel, XMaxLabel, YMinLabel, YMaxLabel;
+ TQLineEdit editXMin, editXMax, editYMin, editYMax;
- public ImageDialog (QWidget parent, string name, bool modal, WidgetFlags fl):
+ public ImageDialog (TQWidget parent, string name, bool modal, WidgetFlags fl):
base (parent, name, modal, fl)
{
if (name == string.Empty)
SetName ("imageDialog");
SetCaption ("Mandelbrot Image");
- dialogLayout = new QHBoxLayout (this, 11, 6);
- gridLayout = new QGridLayout (null, 1, 1, 0, 6, "gridLayout");
- leftLayout = new QVBoxLayout (null, 0, 6, "leftLayout");
+ dialogLayout = new TQHBoxLayout (this, 11, 6);
+ gridLayout = new TQGridLayout (null, 1, 1, 0, 6, "gridLayout");
+ leftLayout = new TQVBoxLayout (null, 0, 6, "leftLayout");
- fixedSizePolicy = new QSizePolicy ( QSizePolicy.SizeType.Fixed,
- QSizePolicy.SizeType.Fixed, false );
+ fixedSizePolicy = new TQSizePolicy ( TQSizePolicy.SizeType.Fixed,
+ TQSizePolicy.SizeType.Fixed, false );
- XMinLabel = new QLabel ("Xmin", this);
+ XMinLabel = new TQLabel ("Xmin", this);
XMinLabel.SetSizePolicy (fixedSizePolicy);
gridLayout.AddWidget (XMinLabel, 0, 0);
- XMaxLabel = new QLabel ("Xmax", this);
+ XMaxLabel = new TQLabel ("Xmax", this);
XMaxLabel.SetSizePolicy(fixedSizePolicy);
gridLayout.AddWidget (XMaxLabel, 1, 0);
- YMinLabel = new QLabel ("Ymin", this);
+ YMinLabel = new TQLabel ("Ymin", this);
YMinLabel.SetSizePolicy (fixedSizePolicy);
gridLayout.AddWidget (YMinLabel, 2, 0);
- YMaxLabel = new QLabel ("Ymax", this);
+ YMaxLabel = new TQLabel ("Ymax", this);
YMaxLabel.SetSizePolicy (fixedSizePolicy);
gridLayout.AddWidget (YMaxLabel, 3, 0);
- QDoubleValidator validator = new QDoubleValidator (this);
+ TQDoubleValidator validator = new TQDoubleValidator (this);
- editXMin = new QLineEdit (this, "editXMin");
+ editXMin = new TQLineEdit (this, "editXMin");
editXMin.SetSizePolicy( fixedSizePolicy );
editXMin.SetText (Convert.ToString (DefaultPlotXMin));
editXMin.SetValidator (validator);
gridLayout.AddWidget (editXMin, 0, 1);
- editXMax = new QLineEdit (this, "editXMax");
+ editXMax = new TQLineEdit (this, "editXMax");
editXMax.SetSizePolicy( fixedSizePolicy );
editXMax.SetText (Convert.ToString(DefaultPlotXMax));
editXMax.SetValidator (validator);
gridLayout.AddWidget (editXMax, 1, 1);
- editYMin = new QLineEdit (this, "editYMin");
+ editYMin = new TQLineEdit (this, "editYMin");
editYMin.SetSizePolicy( fixedSizePolicy );
editYMin.SetText (Convert.ToString(DefaultPlotYMin));
editYMin.SetValidator (validator);
gridLayout.AddWidget (editYMin, 2, 1);
- editYMax = new QLineEdit (this, "editYMax");
+ editYMax = new TQLineEdit (this, "editYMax");
editYMax.SetSizePolicy( fixedSizePolicy );
editYMax.SetText (Convert.ToString(DefaultPlotYMax));
editYMax.SetValidator (validator);
gridLayout.AddWidget (editYMax, 3, 1);
leftLayout.AddLayout (gridLayout);
- QSpacerItem spacer1 = new QSpacerItem (0, 0, 0, 0);
+ TQSpacerItem spacer1 = new TQSpacerItem (0, 0, 0, 0);
leftLayout.AddItem (spacer1);
- buttonLayout = new QHBoxLayout (null, 0, 6, "buttonLayout");
- QSpacerItem spacer2 = new QSpacerItem (0, 0, 0, 0);
+ buttonLayout = new TQHBoxLayout (null, 0, 6, "buttonLayout");
+ TQSpacerItem spacer2 = new TQSpacerItem (0, 0, 0, 0);
buttonLayout.AddItem (spacer2);
- redrawButton = new QPushButton ("Redraw", this);
+ redrawButton = new TQPushButton ("Redraw", this);
redrawButton.SetSizePolicy ( fixedSizePolicy );
redrawButton.SetDefault (true);
buttonLayout.AddWidget (redrawButton);
- QSpacerItem spacer3 = new QSpacerItem (0, 0, 0, 0);
+ TQSpacerItem spacer3 = new TQSpacerItem (0, 0, 0, 0);
buttonLayout.AddItem (spacer3);
leftLayout.AddLayout (buttonLayout);
dialogLayout.AddLayout (leftLayout);
- QSpacerItem spacer4 = new QSpacerItem (0, 0, 0, 0);
+ TQSpacerItem spacer4 = new TQSpacerItem (0, 0, 0, 0);
dialogLayout.AddItem (spacer4);
pixmapLabel = new PicLabel (this, "pixmapLabel", 0);
//pixmapLabel.SetScaledContents (true);
- pixmapLabel.SetSizePolicy( QSizePolicy.SizeType.Minimum,
- QSizePolicy.SizeType.Minimum, false );
+ pixmapLabel.SetSizePolicy( TQSizePolicy.SizeType.Minimum,
+ TQSizePolicy.SizeType.Minimum, false );
pixmapLabel.SetGeometry( 0, 0, 400, 300 );
pixmapLabel.Show();
pixmapLabel.Resize(400,300);
dialogLayout.AddWidget (pixmapLabel);
- //QImage image = MandelbrotImage( 400, 300 );
- //pixmapLabel.SetPixmap( new QPixmap( image ) );
+ //TQImage image = MandelbrotImage( 400, 300 );
+ //pixmapLabel.SetPixmap( new TQPixmap( image ) );
- QObject.Connect (redrawButton, SIGNAL ("clicked()"), pixmapLabel, SLOT ("Repaint()"));
+ TQObject.Connect (redrawButton, TQT_SIGNAL ("clicked()"), pixmapLabel, TQT_SLOT ("Repaint()"));
//Redraw ();
}
- public QImage MandelbrotImage ( int width, int height)
+ public TQImage MandelbrotImage ( int width, int height)
{
int depth;
double real, imag;
@@ -290,7 +290,7 @@ public class ImageDialog : QDialog {
int ImageXMax = width;
int ImageYMax = height;
- QImage image = new QImage (ImageXMax, ImageYMax, 32, 0);
+ TQImage image = new TQImage (ImageXMax, ImageYMax, 32, 0);
for (int x = 0; x <= ImageXMax - 1; x+=1) {
for (int y = 0; y <= ImageYMax - 1; y+=1) {
diff --git a/qtsharp/src/examples/samples/qstring-slot.cs b/qtsharp/src/examples/samples/qstring-slot.cs
index e6d5110a..e33fa1b3 100644
--- a/qtsharp/src/examples/samples/qstring-slot.cs
+++ b/qtsharp/src/examples/samples/qstring-slot.cs
@@ -1,4 +1,4 @@
-// Demo of a QString slot
+// Demo of a TQString slot
// Implemented by Marcus Urban
using System;
@@ -6,21 +6,21 @@ using Qt;
public class MyWidget : QVBox
{
- QLineEdit lineEdit;
- QLabel label;
+ TQLineEdit lineEdit;
+ TQLabel label;
- public MyWidget (QWidget parent, String name) : base (parent, name)
+ public MyWidget (TQWidget parent, String name) : base (parent, name)
{
- lineEdit = new QLineEdit( this, "lineEdit" );
- label = new QLabel( this, "label" );
+ lineEdit = new TQLineEdit( this, "lineEdit" );
+ label = new TQLabel( this, "label" );
label.SetText("Default");
- QObject.Connect( lineEdit, SIGNAL("textChanged(QString)"),
- label, "SetText(QString)" );
+ TQObject.Connect( lineEdit, TQT_SIGNAL("textChanged(TQString)"),
+ label, "SetText(TQString)" );
}
- public MyWidget (QWidget parent) : this (parent, "") {}
+ public MyWidget (TQWidget parent) : this (parent, "") {}
public MyWidget () : this (null, "") {}
}
@@ -28,7 +28,7 @@ public class Example {
public static int Main (String[] args)
{
- QApplication a = new QApplication (args);
+ TQApplication a = new TQApplication (args);
MyWidget w = new MyWidget ();
a.SetMainWidget (w);
diff --git a/qtsharp/src/examples/samples/quantumfractals.cs b/qtsharp/src/examples/samples/quantumfractals.cs
index 56898912..fe6c914e 100644
--- a/qtsharp/src/examples/samples/quantumfractals.cs
+++ b/qtsharp/src/examples/samples/quantumfractals.cs
@@ -9,18 +9,18 @@ namespace Qf {
using System;
using System.Threading;
- public class FractalViewer : QMainWindow {
+ public class FractalViewer : TQMainWindow {
//Menuing
- private QMenuBar menubar;
- private QPopupMenu filemenu;
- private QPopupMenu shapemenu;
- private QPopupMenu settingsmenu;
+ private TQMenuBar menubar;
+ private TQPopupMenu filemenu;
+ private TQPopupMenu shapemenu;
+ private TQPopupMenu settingsmenu;
public static int Main (string[] args)
{
//Initialize and start the main event loop
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
FractalViewer view = new FractalViewer ();
app.SetMainWidget (view);
view.Show ();
@@ -36,13 +36,13 @@ namespace Qf {
SetCentralWidget (display);
//Setup the filemenu
- filemenu = new QPopupMenu (null, "filemenu");
- filemenu.InsertItem ("&Screenshot", display, SLOT ("SlotScreenshot()"));
+ filemenu = new TQPopupMenu (null, "filemenu");
+ filemenu.InsertItem ("&Screenshot", display, TQT_SLOT ("SlotScreenshot()"));
filemenu.InsertSeparator ();
- filemenu.InsertItem ("&Quit", qApp, SLOT ("quit()"));
+ filemenu.InsertItem ("&Quit", qApp, TQT_SLOT ("quit()"));
//Setup the shapemenu
- shapemenu = new QPopupMenu (null, "typemenu");
+ shapemenu = new TQPopupMenu (null, "typemenu");
shapemenu.InsertItem( "&Tetrahedron", 0);
shapemenu.InsertItem( "&Cube", 1);
shapemenu.InsertItem( "&Octahedron", 2);
@@ -52,42 +52,42 @@ namespace Qf {
shapemenu.InsertItem( "&Icosidodecahedron", 6);
//Connect the shapemenu
- QObject.Connect (shapemenu, SIGNAL ("activated(int)"),
- display, SLOT("SlotShapeMenu(int)"));
+ TQObject.Connect (shapemenu, TQT_SIGNAL ("activated(int)"),
+ display, TQT_SLOT("SlotShapeMenu(int)"));
//Setup the settingsmenu
- settingsmenu = new QPopupMenu (null, "settingsmenu");
- settingsmenu.InsertItem ("&Alpha", display, SLOT ("SlotSetAlpha()"));
+ settingsmenu = new TQPopupMenu (null, "settingsmenu");
+ settingsmenu.InsertItem ("&Alpha", display, TQT_SLOT ("SlotSetAlpha()"));
//Setup the menubar
- menubar = new QMenuBar (this, "");
+ menubar = new TQMenuBar (this, "");
menubar.InsertItem ("&File", filemenu);
menubar.InsertItem ("&Shape", shapemenu);
menubar.InsertItem ("&Settings", settingsmenu);
}
}
- public class Display: QWidget, IQuantumFractal {
+ public class Display: TQWidget, IQuantumFractal {
//Labels
- QLabel count;
- QLabel shape;
- QLabel alpha;
+ TQLabel count;
+ TQLabel shape;
+ TQLabel alpha;
//Buttons
- QPushButton start;
- QPushButton stop;
- QPushButton reset;
- QPushButton gray;
- QPushButton intense;
+ TQPushButton start;
+ TQPushButton stop;
+ TQPushButton reset;
+ TQPushButton gray;
+ TQPushButton intense;
//Drawable region
QPaintBuffer buffer;
//Layouts
- QVBoxLayout layout;
- QHBoxLayout buttons;
- QVBoxLayout labels;
+ TQVBoxLayout layout;
+ TQHBoxLayout buttons;
+ TQVBoxLayout labels;
//Engine controller variables
int[] topDensity = new int[0];
@@ -106,35 +106,35 @@ namespace Qf {
QuantumFractals qf;
Thread engine;
- public Display (QWidget parent): base (parent)
+ public Display (TQWidget parent): base (parent)
{
//Setup the sizes
- QSize size = new QSize (resolution, resolution);
+ TQSize size = new TQSize (resolution, resolution);
parent.SetBaseSize (size);
//Some nice colors
- SetPaletteBackgroundColor (new QColor ("Black"));
- SetPaletteForegroundColor (new QColor ("LightBlue"));
+ SetPaletteBackgroundColor (new TQColor ("Black"));
+ SetPaletteForegroundColor (new TQColor ("LightBlue"));
//Setup the buttons
- start = new QPushButton ("Start", this);
- stop = new QPushButton ("Stop", this);
- reset = new QPushButton ("Reset", this);
- gray = new QPushButton ("Color", this);
- intense = new QPushButton ("Intensity", this);
+ start = new TQPushButton ("Start", this);
+ stop = new TQPushButton ("Stop", this);
+ reset = new TQPushButton ("Reset", this);
+ gray = new TQPushButton ("Color", this);
+ intense = new TQPushButton ("Intensity", this);
//Setup the labels
- count = new QLabel (this);
- alpha = new QLabel (this);
- shape = new QLabel (this);
+ count = new TQLabel (this);
+ alpha = new TQLabel (this);
+ shape = new TQLabel (this);
//Setup the drawable
buffer = new QPaintBuffer (this);
buffer.SetMinimumSize (size);
//Create the layouts
- layout = new QVBoxLayout (this);
- buttons = new QHBoxLayout (layout);
+ layout = new TQVBoxLayout (this);
+ buttons = new TQHBoxLayout (layout);
//Add some buttons
buttons.AddWidget (start);
@@ -144,23 +144,23 @@ namespace Qf {
buttons.AddWidget (intense);
//Connect the buttons and SlotQuit
- QObject.Connect (start, SIGNAL ("clicked()"),
- this, SLOT ("SlotStart()"));
- QObject.Connect (stop, SIGNAL ("clicked()"),
- this, SLOT ("SlotStop()"));
- QObject.Connect (reset, SIGNAL ("clicked()"),
- this, SLOT ("SlotReset()"));
- QObject.Connect (gray, SIGNAL ("clicked()"),
- this, SLOT ("SlotGray()"));
- QObject.Connect (intense, SIGNAL ("clicked()"),
- this, SLOT ("SlotIntense()"));
- QObject.Connect (buffer, SIGNAL ("Painted()"),
- this, SLOT ("SlotSetLabels()"));
- QObject.Connect (qApp, SIGNAL ("lastWindowClosed ()"),
- this, SLOT ("SlotQuit ()"));
+ TQObject.Connect (start, TQT_SIGNAL ("clicked()"),
+ this, TQT_SLOT ("SlotStart()"));
+ TQObject.Connect (stop, TQT_SIGNAL ("clicked()"),
+ this, TQT_SLOT ("SlotStop()"));
+ TQObject.Connect (reset, TQT_SIGNAL ("clicked()"),
+ this, TQT_SLOT ("SlotReset()"));
+ TQObject.Connect (gray, TQT_SIGNAL ("clicked()"),
+ this, TQT_SLOT ("SlotGray()"));
+ TQObject.Connect (intense, TQT_SIGNAL ("clicked()"),
+ this, TQT_SLOT ("SlotIntense()"));
+ TQObject.Connect (buffer, TQT_SIGNAL ("Painted()"),
+ this, TQT_SLOT ("SlotSetLabels()"));
+ TQObject.Connect (qApp, TQT_SIGNAL ("lastWindowClosed ()"),
+ this, TQT_SLOT ("SlotQuit ()"));
//Layout labels
- labels = new QVBoxLayout (layout);
+ labels = new TQVBoxLayout (layout);
labels.AddWidget (count);
labels.AddWidget (shape);
labels.AddWidget (alpha);
@@ -367,9 +367,9 @@ namespace Qf {
WasRunning = Running ? true : false;
SlotStop ();
- string filename = QFileDialog.GetSaveFileName (
+ string filename = TQFileDialog.GetSaveFileName (
- QDir.HomeDirPath (), "*", this, "save",
+ TQDir.HomeDirPath (), "*", this, "save",
"Save Screenshot", "*.png", true
);
@@ -405,7 +405,7 @@ namespace Qf {
}
//Need to reset the resolution upon resize
- private void TouchResize (QResizeEvent e)
+ private void TouchResize (TQResizeEvent e)
{
int height = buffer.Size ().Height ();
int width = buffer.Size ().Width ();
@@ -415,23 +415,23 @@ namespace Qf {
}
[DeclareQtSignal ("Painted()")]
- public class QPaintBuffer : QFrame {
+ public class QPaintBuffer : TQFrame {
//Drawables
- private QPixmap buffer;
- private QImage image;
+ private TQPixmap buffer;
+ private TQImage image;
//Timer
private TimerCallback call;
private Timer timer;
- public QPaintBuffer (QWidget parent) : base (parent)
+ public QPaintBuffer (TQWidget parent) : base (parent)
{
SetBackgroundMode (Qt.BackgroundMode.NoBackground);
//Create drawables
- buffer = new QPixmap ();
- image = new QImage (Size (), 32);
+ buffer = new TQPixmap ();
+ image = new TQImage (Size (), 32);
//Setup the event handlers
paintEvent += new PaintEvent (TouchPaint);
@@ -448,8 +448,8 @@ namespace Qf {
//Resets the drawables
public void Reset ()
{
- buffer = new QPixmap ();
- image = new QImage (Size (), 32);
+ buffer = new TQPixmap ();
+ image = new TQImage (Size (), 32);
PaintImage (null);
}
@@ -484,24 +484,24 @@ namespace Qf {
}
//Receive focus events
- private void TouchFocus (QFocusEvent e)
+ private void TouchFocus (TQFocusEvent e)
{
PerformPaint ();
}
//Receive paint events
- private void TouchPaint (QPaintEvent e)
+ private void TouchPaint (TQPaintEvent e)
{
PerformPaint ();
}
//Receive resize events
- private void TouchResize (QResizeEvent e)
+ private void TouchResize (TQResizeEvent e)
{
- image = new QImage (e.Size (), 32);
+ image = new TQImage (e.Size (), 32);
buffer.Resize (e.Size());
- buffer.Fill (new QColor("black"));
- BitBlt (buffer, 0, 0, new QPixmap (buffer),
+ buffer.Fill (new TQColor("black"));
+ BitBlt (buffer, 0, 0, new TQPixmap (buffer),
0, 0, -1, -1, RasterOp.CopyROP, false);
}
diff --git a/qtsharp/src/examples/samples/scribblewindow.cs b/qtsharp/src/examples/samples/scribblewindow.cs
index 6b594eb8..fdd9fe46 100644
--- a/qtsharp/src/examples/samples/scribblewindow.cs
+++ b/qtsharp/src/examples/samples/scribblewindow.cs
@@ -9,22 +9,22 @@ namespace QtSamples {
using Qt;
using System;
- [DeclareQtSignal ("colorChanged(QColor)")]
- [DeclareQtSignal ("load(QString)")]
- [DeclareQtSignal ("save(QString)")]
- public class ScribbleWindow : QMainWindow {
-
- private QMenuBar menubar;
- private QPopupMenu filemenu;
- private QPopupMenu aboutmenu;
- private QScrollView scrollview;
+ [DeclareQtSignal ("colorChanged(TQColor)")]
+ [DeclareQtSignal ("load(TQString)")]
+ [DeclareQtSignal ("save(TQString)")]
+ public class ScribbleWindow : TQMainWindow {
+
+ private TQMenuBar menubar;
+ private TQPopupMenu filemenu;
+ private TQPopupMenu aboutmenu;
+ private TQScrollView scrollview;
public ScribbleArea scribblearea;
enum Color {Black, Red, Blue, Green, Yellow};
public static int Main (String[] args)
{
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
ScribbleWindow demo = new ScribbleWindow ();
demo.SetGeometry (50, 500, 400, 400);
app.SetMainWidget (demo);
@@ -35,22 +35,22 @@ namespace QtSamples {
ScribbleWindow () : base (null, null)
{
- filemenu = new QPopupMenu (null, "filemenu");
- filemenu.InsertItem ("&Load", this, SLOT ("SlotLoad()") );
- filemenu.InsertItem ("&Save", this, SLOT ("SlotSave()") );
+ filemenu = new TQPopupMenu (null, "filemenu");
+ filemenu.InsertItem ("&Load", this, TQT_SLOT ("SlotLoad()") );
+ filemenu.InsertItem ("&Save", this, TQT_SLOT ("SlotSave()") );
filemenu.InsertSeparator ();
- filemenu.InsertItem ("&Quit", qApp, SLOT ("quit()"));
+ filemenu.InsertItem ("&Quit", qApp, TQT_SLOT ("quit()"));
- aboutmenu = new QPopupMenu (null, "helpmenu");
- aboutmenu.InsertItem ("&About Qt-Sharp", this, SLOT ("SlotAboutQtSharp()"));
- aboutmenu.InsertItem ("&About Qt", this, SLOT ("SlotAboutQt()"));
+ aboutmenu = new TQPopupMenu (null, "helpmenu");
+ aboutmenu.InsertItem ("&About Qt-Sharp", this, TQT_SLOT ("SlotAboutQtSharp()"));
+ aboutmenu.InsertItem ("&About Qt", this, TQT_SLOT ("SlotAboutQt()"));
- menubar = new QMenuBar (this, "");
+ menubar = new TQMenuBar (this, "");
menubar.InsertItem ("&File", filemenu);
- menubar.InsertItem ("&Color", this, SLOT("SlotColorChooser()"));
+ menubar.InsertItem ("&Color", this, TQT_SLOT("SlotColorChooser()"));
menubar.InsertItem ("&About", aboutmenu);
- scrollview = new QScrollView (this);
+ scrollview = new TQScrollView (this);
scrollview.SetGeometry (0, menubar.Height (), Width (), Height () - menubar.Height ());
scribblearea = new ScribbleArea (this);
scribblearea.SetGeometry (0, 0, 1000, 1000);
@@ -58,39 +58,39 @@ namespace QtSamples {
this.SetCentralWidget (scrollview);
SetMaximumSize (Width (), Height () - menubar.Height ());
- QObject.Connect (this, SIGNAL ("colorChanged(QColor)"),
- scribblearea, SLOT ("SlotSetColor(QColor)") );
- QObject.Connect (this, SIGNAL ("load(QString)"),
- scribblearea, SLOT ("PerformLoad(QString)") );
- QObject.Connect (this, SIGNAL ("save(QString)"),
- scribblearea, SLOT ("PerformSave(QString)") );
+ TQObject.Connect (this, TQT_SIGNAL ("colorChanged(TQColor)"),
+ scribblearea, TQT_SLOT ("SlotSetColor(TQColor)") );
+ TQObject.Connect (this, TQT_SIGNAL ("load(TQString)"),
+ scribblearea, TQT_SLOT ("PerformLoad(TQString)") );
+ TQObject.Connect (this, TQT_SIGNAL ("save(TQString)"),
+ scribblearea, TQT_SLOT ("PerformSave(TQString)") );
}
public void SlotLoad ()
{
- string filename = QFileDialog.GetOpenFileName (".", "*.bmp", this,
- null, "Load File", QString.Null, true);
+ string filename = TQFileDialog.GetOpenFileName (".", "*.bmp", this,
+ null, "Load File", TQString.Null, true);
if ( filename != null )
- Emit ("load(QString)", (QString) filename);
+ Emit ("load(TQString)", (TQString) filename);
}
public void SlotSave ()
{
- string filename = QFileDialog.GetSaveFileName (".", "*.bmp", this,
- null, "Save File", QString.Null, true);
+ string filename = TQFileDialog.GetSaveFileName (".", "*.bmp", this,
+ null, "Save File", TQString.Null, true);
if ( filename != null )
{
if ( ! filename.ToLower().EndsWith(".bmp") )
filename += ".bmp";
- Emit ("save(QString)", (QString) filename);
+ Emit ("save(TQString)", (TQString) filename);
}
}
public void SlotAboutQtSharp ()
{
- QMessageBox.Information (this, "About Qt# 0.7",
+ TQMessageBox.Information (this, "About Qt# 0.7",
"A Qt (http://www.trolltech.com) to C# language binding. \n" +
"Qt# is compatible with Mono (http://go-mono.org) and\n" +
"Portable.NET (http://www.southern-storm.com.au/portable_net.html)\n" +
@@ -100,30 +100,30 @@ namespace QtSamples {
public void SlotAboutQt ()
{
- QMessageBox.AboutQt (this, "About Qt");
+ TQMessageBox.AboutQt (this, "About Qt");
}
public void SlotColorChooser ()
{
- QColor chosenColor = QColorDialog.GetColor();
+ TQColor chosenColor = QColorDialog.GetColor();
if (chosenColor.IsValid())
- Emit ("colorChanged(QColor)", chosenColor);
+ Emit ("colorChanged(TQColor)", chosenColor);
}
- public class ScribbleArea : QFrame {
- private QPoint last;
- private QPixmap buffer;
- private QColor currentcolor = new QColor("Black");
- private QPopupMenu popupmenu;
+ public class ScribbleArea : TQFrame {
+ private TQPoint last;
+ private TQPixmap buffer;
+ private TQColor currentcolor = new TQColor("Black");
+ private TQPopupMenu popupmenu;
- public ScribbleArea (QWidget parent) : base (parent)
+ public ScribbleArea (TQWidget parent) : base (parent)
{
- buffer = new QPixmap ();
- last = new QPoint ();
+ buffer = new TQPixmap ();
+ last = new TQPoint ();
SetBackgroundMode (Qt.BackgroundMode.NoBackground);
- popupmenu = new QPopupMenu();
- popupmenu.InsertItem ("&Clear", this, SLOT ("SlotClearArea()") );
+ popupmenu = new TQPopupMenu();
+ popupmenu.InsertItem ("&Clear", this, TQT_SLOT ("SlotClearArea()") );
mouseMoveEvent += new MouseMoveEvent (MouseMoved);
mousePressEvent += new MousePressEvent (MousePressed);
@@ -131,51 +131,51 @@ namespace QtSamples {
resizeEvent += new ResizeEvent (PerformResize);
}
- public void PerformLoad (QString filename)
+ public void PerformLoad (TQString filename)
{
if ( ! buffer.Load(filename) )
- QMessageBox.Warning (null, "Load error", "Could not load file");
+ TQMessageBox.Warning (null, "Load error", "Could not load file");
Repaint();
}
- public void PerformSave (QString filename)
+ public void PerformSave (TQString filename)
{
if ( ! buffer.Save (filename, "BMP") )
- QMessageBox.Warning( null, "Save error", "Could not save file");
+ TQMessageBox.Warning( null, "Save error", "Could not save file");
}
public void SlotClearArea ()
{
- buffer.Fill( new QColor ("white") );
+ buffer.Fill( new TQColor ("white") );
BitBlt (this, 0, 0, buffer, 0, 0, -1, -1, Qt.RasterOp.CopyROP, false);
}
- public void SlotSetColor (QColor color)
+ public void SlotSetColor (TQColor color)
{
currentcolor = color;
}
// Note, Dispose() is called on QPoints here to increase performance
- // of the UI. Otherwise, the GC would let dead QPoint instances pile
+ // of the UI. Otherwise, the GC would let dead TQPoint instances pile
// up and delete them all at once, causing the UI to pause while it frees
// memory. (This happens because the GC runs in the same thread as the
// application.)
- protected void MousePressed (QMouseEvent e)
+ protected void MousePressed (TQMouseEvent e)
{
if (e.Button() == ButtonState.RightButton )
- popupmenu.Exec (QCursor.Pos ());
+ popupmenu.Exec (TQCursor.Pos ());
else {
last.Dispose ();
last = e.Pos();
}
}
- protected void MouseMoved (QMouseEvent e)
+ protected void MouseMoved (TQMouseEvent e)
{
- QPainter windowPainter = new QPainter ();
- QPainter bufferPainter = new QPainter ();
+ TQPainter windowPainter = new TQPainter ();
+ TQPainter bufferPainter = new TQPainter ();
windowPainter.Begin (this);
bufferPainter.Begin (buffer);
@@ -193,17 +193,17 @@ namespace QtSamples {
last = e.Pos ();
}
- protected void PerformPaint (QPaintEvent e)
+ protected void PerformPaint (TQPaintEvent e)
{
BitBlt(this, 0, 0, buffer,
0, 0, -1, -1, RasterOp.CopyROP, false);
}
- protected void PerformResize (QResizeEvent e)
+ protected void PerformResize (TQResizeEvent e)
{
- QPixmap save = new QPixmap (buffer);
+ TQPixmap save = new TQPixmap (buffer);
buffer.Resize (e.Size());
- buffer.Fill (new QColor("white"));
+ buffer.Fill (new TQColor("white"));
BitBlt (buffer, 0, 0, save,
0, 0, -1, -1, RasterOp.CopyROP, false);
}
diff --git a/qtsharp/src/examples/test-results.html b/qtsharp/src/examples/test-results.html
index 43ddae93..631ee200 100644
--- a/qtsharp/src/examples/test-results.html
+++ b/qtsharp/src/examples/test-results.html
@@ -187,7 +187,7 @@
<TD COLSPAN=7 WIDTH=644 HEIGHT=19 ALIGN=LEFT><FONT FACE="Arial" SIZE=3>(1) No crashes, but no drawing</FONT></TD>
</TR>
<TR>
- <TD COLSPAN=7 WIDTH=644 HEIGHT=19 ALIGN=LEFT><FONT FACE="Arial" SIZE=3>(2) Closing window results in a double QObject deletion and then application locks up</FONT></TD>
+ <TD COLSPAN=7 WIDTH=644 HEIGHT=19 ALIGN=LEFT><FONT FACE="Arial" SIZE=3>(2) Closing window results in a double TQObject deletion and then application locks up</FONT></TD>
</TR>
<TR>
<TD COLSPAN=7 WIDTH=644 HEIGHT=37 ALIGN=LEFT><FONT FACE="Arial" SIZE=3>(3) Random lockups occur after a large amount of scribbling is performed; background fails to initialized properly sometimes</FONT></TD>
diff --git a/qtsharp/src/examples/tutorials/t1.cs b/qtsharp/src/examples/tutorials/t1.cs
index 3dc075b1..84c79d38 100644
--- a/qtsharp/src/examples/tutorials/t1.cs
+++ b/qtsharp/src/examples/tutorials/t1.cs
@@ -9,9 +9,9 @@ public class Example {
public static int Main (String[] args)
{
- QApplication a = new QApplication (args);
+ TQApplication a = new TQApplication (args);
- QPushButton hello = new QPushButton ("Hello world!", null);
+ TQPushButton hello = new TQPushButton ("Hello world!", null);
// In C++, the second parameter is 0 (null pointer)
hello.Resize (100, 30);
diff --git a/qtsharp/src/examples/tutorials/t2.cs b/qtsharp/src/examples/tutorials/t2.cs
index 44eb304b..5dbe07d1 100644
--- a/qtsharp/src/examples/tutorials/t2.cs
+++ b/qtsharp/src/examples/tutorials/t2.cs
@@ -9,17 +9,17 @@ public class Example {
public static int Main (String[] args)
{
- QApplication a = new QApplication (args);
+ TQApplication a = new TQApplication (args);
- QPushButton quit = new QPushButton ("Quit", null);
+ TQPushButton quit = new TQPushButton ("Quit", null);
// In C++, the second parameter is 0 (null pointer)
quit.Resize (75, 30);
- quit.SetFont (new QFont ("Times", 18, QFont.Weight.Bold));
- // In C++, QFont::Bold is sufficient
+ quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold));
+ // In C++, TQFont::Bold is sufficient
- QObject.Connect ( quit, QtSupport.SIGNAL ("clicked()"), a, QtSupport.SLOT ("Quit()") );
- // SIGNAL and SLOT are static functions of QtSupport
+ TQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") );
+ // TQT_SIGNAL and TQT_SLOT are static functions of QtSupport
a.SetMainWidget (quit);
quit.Show ();
diff --git a/qtsharp/src/examples/tutorials/t3.cs b/qtsharp/src/examples/tutorials/t3.cs
index a1c76ce4..26fece72 100644
--- a/qtsharp/src/examples/tutorials/t3.cs
+++ b/qtsharp/src/examples/tutorials/t3.cs
@@ -10,17 +10,17 @@ public class Example {
public static int Main (String[] args)
{
- QApplication a = new QApplication (args);
+ TQApplication a = new TQApplication (args);
- QVBox box = new QVBox ();
+ TQVBox box = new TQVBox ();
box.Resize (200, 120);
- QPushButton quit = new QPushButton ("Quit", box);
- quit.SetFont (new QFont ("Times", 18, QFont.Weight.Bold));
- // In C++, QFont::Bold is sufficient
+ TQPushButton quit = new TQPushButton ("Quit", box);
+ quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold));
+ // In C++, TQFont::Bold is sufficient
- QObject.Connect ( quit, QtSupport.SIGNAL ("clicked()"), a, QtSupport.SLOT ("Quit()") );
- // SIGNAL and SLOT are static functions of QtSupport
+ TQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") );
+ // TQT_SIGNAL and TQT_SLOT are static functions of QtSupport
a.SetMainWidget (box);
box.Show ();
diff --git a/qtsharp/src/examples/tutorials/t4.cs b/qtsharp/src/examples/tutorials/t4.cs
index 5373af19..a8884b92 100644
--- a/qtsharp/src/examples/tutorials/t4.cs
+++ b/qtsharp/src/examples/tutorials/t4.cs
@@ -5,25 +5,25 @@
using System;
using Qt;
-public class MyWidget : QWidget {
+public class MyWidget : TQWidget {
- public MyWidget (QWidget parent, String name) : base (parent, name)
+ public MyWidget (TQWidget parent, String name) : base (parent, name)
// In C++, parent and name have default values of 0 (null pointer)
{
this.SetMinimumSize (200, 120);
this.SetMaximumSize (200, 120);
- QPushButton quit = new QPushButton ("Quit", this, "quit");
+ TQPushButton quit = new TQPushButton ("Quit", this, "quit");
quit.SetGeometry (62, 40, 75, 30);
- quit.SetFont (new QFont ("Times", 18, QFont.Weight.Bold) );
+ quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold) );
- Connect ( quit, SIGNAL ("clicked()"), qApp, SLOT ("Quit()") );
+ Connect ( quit, TQT_SIGNAL ("clicked()"), qApp, TQT_SLOT ("Quit()") );
// In C++, qApp is a global variable. Here it's a property of the QObject
// class, which we inherit, giving the same effect. We also inherit the
// static method connect().
}
- public MyWidget (QWidget parent) : this (parent, "") {}
+ public MyWidget (TQWidget parent) : this (parent, "") {}
public MyWidget () : this (null, "") {}
// Note that it was necessary to use an empty string ("")
// in the above. Using null does not work at runtime.
@@ -33,7 +33,7 @@ public class Example {
public static int Main (String[] args)
{
- QApplication a = new QApplication (args);
+ TQApplication a = new TQApplication (args);
MyWidget w = new MyWidget ();
w.SetGeometry (100, 100, 200, 120);
diff --git a/qtsharp/src/examples/tutorials/t5.cs b/qtsharp/src/examples/tutorials/t5.cs
index 4feadae5..0488969d 100644
--- a/qtsharp/src/examples/tutorials/t5.cs
+++ b/qtsharp/src/examples/tutorials/t5.cs
@@ -5,27 +5,27 @@
using System;
using Qt;
-public class MyWidget : QVBox {
+public class MyWidget : TQVBox {
- public MyWidget (QWidget parent, String name) : base (parent, name)
+ public MyWidget (TQWidget parent, String name) : base (parent, name)
// In C++, parent and name have default values of 0 (null pointer)
{
- QPushButton quit = new QPushButton ("Quit", this, "quit");
- quit.SetFont ( new QFont ("Times", 18, QFont.Weight.Bold) );
+ TQPushButton quit = new TQPushButton ("Quit", this, "quit");
+ quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) );
- QObject.Connect ( quit, SIGNAL ("clicked()"), qApp, SLOT ("Quit()") );
+ TQObject.Connect ( quit, TQT_SIGNAL ("clicked()"), qApp, TQT_SLOT ("Quit()") );
- QLCDNumber lcd = new QLCDNumber (2, this, "lcd" );
+ TQLCDNumber lcd = new TQLCDNumber (2, this, "lcd" );
- QSlider slider = new QSlider (Orientation.Horizontal, this, "slider");
+ TQSlider slider = new TQSlider (Orientation.Horizontal, this, "slider");
// Note that Orientation is defined in the Qt class
slider.SetRange (0, 99);
slider.SetValue (0);
- Connect ( slider, SIGNAL ("valueChanged(int)"), lcd, SLOT ("Display(int)") );
+ Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") );
}
- public MyWidget (QWidget parent) : this (parent, "") {}
+ public MyWidget (TQWidget parent) : this (parent, "") {}
public MyWidget () : this (null, "") {}
// Note that it was necessary to use an empty string ("")
// in the above. Using null does not work at runtime.
@@ -35,7 +35,7 @@ public class Example {
public static int Main (String[] args)
{
- QApplication a = new QApplication (args);
+ TQApplication a = new TQApplication (args);
MyWidget w = new MyWidget ();
a.SetMainWidget (w);
diff --git a/qtsharp/src/examples/tutorials/t6.cs b/qtsharp/src/examples/tutorials/t6.cs
index 223e0ff1..6fee48e1 100644
--- a/qtsharp/src/examples/tutorials/t6.cs
+++ b/qtsharp/src/examples/tutorials/t6.cs
@@ -5,42 +5,42 @@
using System;
using Qt;
-public class LCDRange : QVBox {
+public class LCDRange : TQVBox {
- public LCDRange (QWidget parent, String name) : base (parent, name)
+ public LCDRange (TQWidget parent, String name) : base (parent, name)
// In C++, parent and name have default values of 0 (null pointer)
{
- QLCDNumber lcd = new QLCDNumber (2, this, "lcd" );
- QSlider slider = new QSlider (Orientation.Horizontal, this, "slider");
+ TQLCDNumber lcd = new TQLCDNumber (2, this, "lcd" );
+ TQSlider slider = new TQSlider (Orientation.Horizontal, this, "slider");
slider.SetRange (0, 99);
slider.SetValue (0);
- Connect ( slider, SIGNAL ("valueChanged(int)"), lcd, SLOT ("Display(int)") );
+ Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") );
}
- public LCDRange (QWidget parent) : this (parent, "") {}
+ public LCDRange (TQWidget parent) : this (parent, "") {}
public LCDRange () : this (null, "") {}
// Note that it was necessary to use an empty string ("")
// in the above. Using null does not work at runtime.
}
-public class MyWidget : QVBox {
+public class MyWidget : TQVBox {
- MyWidget (QWidget parent, String name) : base (parent, name)
+ MyWidget (TQWidget parent, String name) : base (parent, name)
{
- QPushButton quit = new QPushButton ("Quit", this, "quit");
- quit.SetFont ( new QFont ("Times", 18, QFont.Weight.Bold) );
+ TQPushButton quit = new TQPushButton ("Quit", this, "quit");
+ quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) );
- Connect ( quit, SIGNAL ("clicked()"), qApp, SLOT ("Quit()") );
+ Connect ( quit, TQT_SIGNAL ("clicked()"), qApp, TQT_SLOT ("Quit()") );
- QGrid grid = new QGrid (4, this);
+ TQGrid grid = new TQGrid (4, this);
for ( int c =0; c < 4; c++ )
for ( int r = 0; r < 4; r++ )
new LCDRange (grid);
}
- public MyWidget (QWidget parent) : this (parent, "") {}
+ public MyWidget (TQWidget parent) : this (parent, "") {}
public MyWidget () : this (null, "") {}
}
@@ -48,7 +48,7 @@ public class Example {
public static int Main (String[] args)
{
- QApplication a = new QApplication (args);
+ TQApplication a = new TQApplication (args);
MyWidget w = new MyWidget ();
a.SetMainWidget (w);
diff --git a/qtsharp/src/examples/tutorials/t7.cs b/qtsharp/src/examples/tutorials/t7.cs
index de9011f2..e1891d26 100644
--- a/qtsharp/src/examples/tutorials/t7.cs
+++ b/qtsharp/src/examples/tutorials/t7.cs
@@ -9,23 +9,23 @@ using System;
using Qt;
[DeclareQtSignal ("valueChanged(int)")]
-public class LCDRange : QVBox {
+public class LCDRange : TQVBox {
- QSlider slider;
+ TQSlider slider;
- public LCDRange (QWidget parent, String name) : base (parent, name)
+ public LCDRange (TQWidget parent, String name) : base (parent, name)
// In C++, parent and name have default values of 0 (null pointer)
{
- QLCDNumber lcd = new QLCDNumber (2, this, "lcd" );
- slider = new QSlider (Orientation.Horizontal, this, "slider");
+ TQLCDNumber lcd = new TQLCDNumber (2, this, "lcd" );
+ slider = new TQSlider (Orientation.Horizontal, this, "slider");
slider.SetRange (0, 99);
slider.SetValue (0);
- Connect ( slider, SIGNAL ("valueChanged(int)"), lcd, SLOT ("Display(int)") );
- Connect ( slider, SIGNAL ("valueChanged(int)"), SIGNAL ("valueChanged(int)"));
+ Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") );
+ Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), TQT_SIGNAL ("valueChanged(int)"));
}
- public LCDRange (QWidget parent) : this (parent, "") {}
+ public LCDRange (TQWidget parent) : this (parent, "") {}
public LCDRange () : this (null, "") {}
// Note that it was necessary to use an empty string ("")
// in the above. Using null does not work at runtime.
@@ -36,16 +36,16 @@ public class LCDRange : QVBox {
}
}
-public class MyWidget : QVBox {
+public class MyWidget : TQVBox {
- MyWidget (QWidget parent, String name) : base (parent, name)
+ MyWidget (TQWidget parent, String name) : base (parent, name)
{
- QPushButton quit = new QPushButton ("Quit", this, "quit");
- quit.SetFont ( new QFont ("Times", 18, QFont.Weight.Bold) );
+ TQPushButton quit = new TQPushButton ("Quit", this, "quit");
+ quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) );
- Connect ( quit, SIGNAL ("clicked()"), qApp, SLOT ("Quit()") );
+ Connect ( quit, TQT_SIGNAL ("clicked()"), qApp, TQT_SLOT ("Quit()") );
- QGrid grid = new QGrid (4, this);
+ TQGrid grid = new TQGrid (4, this);
LCDRange previous = null;
@@ -53,14 +53,14 @@ public class MyWidget : QVBox {
for ( int r = 0; r < 4; r++ ) {
LCDRange lr = new LCDRange (grid);
if (previous != null)
- Connect (lr, SIGNAL ("valueChanged(int)"),
- previous, SLOT ("SetValue(int)") );
+ Connect (lr, TQT_SIGNAL ("valueChanged(int)"),
+ previous, TQT_SLOT ("SetValue(int)") );
previous = lr;
}
}
}
- public MyWidget (QWidget parent) : this (parent, "") {}
+ public MyWidget (TQWidget parent) : this (parent, "") {}
public MyWidget () : this (null, "") {}
}
@@ -68,7 +68,7 @@ public class Example {
public static int Main (String[] args)
{
- QApplication a = new QApplication (args);
+ TQApplication a = new TQApplication (args);
MyWidget w = new MyWidget ();
a.SetMainWidget (w);
diff --git a/qtsharp/src/generator/Converter.cs b/qtsharp/src/generator/Converter.cs
index 143aa9da..8f6ce3b0 100644
--- a/qtsharp/src/generator/Converter.cs
+++ b/qtsharp/src/generator/Converter.cs
@@ -100,7 +100,7 @@ namespace QtCSharp {
{
sig.Append (qctor.Name);
foreach (QParam qparam in qctor.CSharpParams) {
- //if (qparam.Type == "QWidget" && qparam.Name == "parent")
+ //if (qparam.Type == "TQWidget" && qparam.Name == "parent")
if (qparam.Name == "parent")
qctor.Parent = true;
sig.Append (qparam.Type);
@@ -137,7 +137,7 @@ namespace QtCSharp {
if (IsIQObject (qparam.Type))
qparam.Name = qparam.Name + "." + StripInterface (qparam.Type) + " ()";
/* if (IsQString (qparam.Type))
- qparam.Name = "new QString ("+StripPtr(qparam.Name)+").RawObject";*/
+ qparam.Name = "new TQString ("+StripPtr(qparam.Name)+").RawObject";*/
qparam.Type = "";
}
}
@@ -189,8 +189,8 @@ namespace QtCSharp {
public void OverloadedQString (QParam qparam)
{
if (IsQString (qparam.Type)){
- qparam.Type = "QString";
- if (qparam.Default == "QString::null")
+ qparam.Type = "TQString";
+ if (qparam.Default == "TQString::null")
qparam.Default = "null";
else if (qparam.Default == "quotquot")
qparam.Default = "null";
@@ -286,7 +286,7 @@ namespace QtCSharp {
} else {
qmethod.PinvokeReturn = qmethod.Return;
}
- if (qmethod.Return == "QString") {
+ if (qmethod.Return == "TQString") {
qmethod.QStringReturn = true;
}
}
@@ -312,7 +312,7 @@ namespace QtCSharp {
public string ConvertQString (string str)
{
if (IsQString (str))
- return "QString";
+ return "TQString";
else
return str;
}
@@ -417,9 +417,9 @@ namespace QtCSharp {
public bool IsQString (string str)
{
- if (qtype.Name == "QString")
+ if (qtype.Name == "TQString")
return true;
- else if (IsQObject (str) && str == "QString")
+ else if (IsQObject (str) && str == "TQString")
return true;
else
return false;
diff --git a/qtsharp/src/generator/ParseAPI.cs b/qtsharp/src/generator/ParseAPI.cs
index 57569c7b..a79a8ab9 100644
--- a/qtsharp/src/generator/ParseAPI.cs
+++ b/qtsharp/src/generator/ParseAPI.cs
@@ -72,13 +72,13 @@ namespace QtCSharp {
private static bool IsQObject(QType t, Hashtable typehash)
{
if (t.IsInterface) return false;
- if (t.Name == "QObject") return true;
+ if (t.Name == "TQObject") return true;
foreach (QAncestor a in t.QAncestors) {
QType at = (QType)typehash[a.Name];
if (at == null)
continue;
- else if (at.Name == "QObject")
+ else if (at.Name == "TQObject")
return true;
else if (IsQObject(at, typehash))
return true;
diff --git a/qtsharp/src/generator/Printer.cs b/qtsharp/src/generator/Printer.cs
index c4f6df87..cdf705fe 100644
--- a/qtsharp/src/generator/Printer.cs
+++ b/qtsharp/src/generator/Printer.cs
@@ -390,7 +390,7 @@ namespace QtCSharp {
string newid = id == "0" ? "" : id;
if (boxer && qstring) {
- ret = "\t\t\treturn new QString (qt_"+type+"_"+name+newid+" ("+instPtr+comma+Params (qparams)+"));\n";
+ ret = "\t\t\treturn new TQString (qt_"+type+"_"+name+newid+" ("+instPtr+comma+Params (qparams)+"));\n";
}
else if (boxer) {
ret = "\t\t\treturn LookupObject (qt_"+type+"_"+name+newid+" ("+instPtr+comma+Params (qparams)+"), typeof ("+ReturnType+")) as "+ReturnType+";";
@@ -416,7 +416,7 @@ namespace QtCSharp {
string newid = id == "0" ? "" : id;
if (boxer && qstring) {
- ret = "\t\t\treturn new QString (qt_"+type+"_"+name+newid+" ("+Params (qparams)+"));\n";
+ ret = "\t\t\treturn new TQString (qt_"+type+"_"+name+newid+" ("+Params (qparams)+"));\n";
}
else if (boxer) {
ret = "\t\t\treturn LookupObject (qt_"+type+"_"+name+newid+" ("+Params (qparams)+"), typeof ("+ReturnType+")) as "+ReturnType+";\n";
@@ -518,7 +518,7 @@ namespace QtCSharp {
public string DefaultConnections ()
{
if (qtype.IsQObject)
- return "\n\t\t\tConnect (this, SIGNAL (\"destroyed ()\"), SLOT (\"NativeDestroyed ()\"));";
+ return "\n\t\t\tConnect (this, TQT_SIGNAL (\"destroyed ()\"), TQT_SLOT (\"NativeDestroyed ()\"));";
else
return "";
}
diff --git a/qtsharp/src/generator/QTypeMap.cs b/qtsharp/src/generator/QTypeMap.cs
index 241dc825..fdba1342 100644
--- a/qtsharp/src/generator/QTypeMap.cs
+++ b/qtsharp/src/generator/QTypeMap.cs
@@ -44,8 +44,8 @@ namespace QtCSharp {
mastermap = new Hashtable ();
mastermap.Add ("void", "void");
- // mastermap.Add ("QByteArray", "byte[]");
- mastermap.Add ("QBitArray", "byte[]");
+ // mastermap.Add ("TQByteArray", "byte[]");
+ mastermap.Add ("TQBitArray", "byte[]");
mastermap.Add ("uchar", "string");
mastermap.Add ("unsigned int", "uint");
mastermap.Add ("unsigned short", "ushort");
@@ -73,7 +73,7 @@ namespace QtCSharp {
mastermap.Add ("QGfx", "IntPtr");
mastermap.Add ("QRESULT", "long");
mastermap.Add ("QUnknownInterface", "IntPtr");
- mastermap.Add ("QPtrCollection.Item", "int");
+ mastermap.Add ("TQPtrCollection.Item", "int");
mastermap.Add ("type", "IntPtr");
mastermap.Add ("array_data", "IntPtr");
mastermap.Add ("bitarr_data", "IntPtr");
@@ -125,11 +125,11 @@ namespace QtCSharp {
mastermap.Add ("RgnHandle", "IntPtr");
mastermap.Add ("QRemoteInterface", "IntPtr");
mastermap.Add ("mode_t", "int");
- mastermap.Add ("QSqlFieldInfo", "IntPtr");
- mastermap.Add ("QSqlRecordInfo", "IntPtr");
+ mastermap.Add ("TQSqlFieldInfo", "IntPtr");
+ mastermap.Add ("TQSqlRecordInfo", "IntPtr");
mastermap.Add ("QSqlRecordPrivate", "IntPtr");
mastermap.Add ("QTSMFI", "int");
- mastermap.Add ("Widget", "QWidget");
+ mastermap.Add ("Widget", "TQWidget");
mastermap.Add ("WidgetClass", "int");
mastermap.Add ("ArgList", "int");
mastermap.Add ("Cardinal", "int");
@@ -138,117 +138,117 @@ namespace QtCSharp {
mastermap.Add ("ULONG_MAX", "UInt64.MaxValue");
// Enums
- mastermap.Add ("Event", "QAccessible.Event");
- mastermap.Add ("Role", "QAccessible.Role");
- mastermap.Add ("NavDirection", "QAccessible.NavDirection");
- mastermap.Add ("Text", "QAccessible.Text");
- mastermap.Add ("ColorSpec", "QApplication.ColorSpec");
- mastermap.Add ("ToggleState", "QButton.ToggleState");
- mastermap.Add ("RttiValues", "QCanvasItem.RttiValues");
- mastermap.Add ("FrameAnimationType", "QCanvasSprite.FrameAnimationType");
- mastermap.Add ("Category", "QChar.Category");
- mastermap.Add ("Decomposition", "QChar.Decomposition");
- mastermap.Add ("Joining", "QChar.Joining");
- mastermap.Add ("CombiningClass", "QChar.CombiningClass");
- mastermap.Add ("Spec", "QColor.Spec");
- mastermap.Add ("ColorRole", "QColorGroup.ColorRole");
- mastermap.Add ("Boundary", "QDataBrowser.Boundary");
- mastermap.Add ("ByteOrder", "QDataStream.ByteOrder");
- mastermap.Add ("Refresh", "QDataTable.Refresh");
+ mastermap.Add ("Event", "TQAccessible.Event");
+ mastermap.Add ("Role", "TQAccessible.Role");
+ mastermap.Add ("NavDirection", "TQAccessible.NavDirection");
+ mastermap.Add ("Text", "TQAccessible.Text");
+ mastermap.Add ("ColorSpec", "TQApplication.ColorSpec");
+ mastermap.Add ("ToggleState", "TQButton.ToggleState");
+ mastermap.Add ("RttiValues", "TQCanvasItem.RttiValues");
+ mastermap.Add ("FrameAnimationType", "TQCanvasSprite.FrameAnimationType");
+ mastermap.Add ("Category", "TQChar.Category");
+ mastermap.Add ("Decomposition", "TQChar.Decomposition");
+ mastermap.Add ("Joining", "TQChar.Joining");
+ mastermap.Add ("CombiningClass", "TQChar.CombiningClass");
+ mastermap.Add ("Spec", "TQColor.Spec");
+ mastermap.Add ("ColorRole", "TQColorGroup.ColorRole");
+ mastermap.Add ("Boundary", "TQDataBrowser.Boundary");
+ mastermap.Add ("ByteOrder", "TQDataStream.ByteOrder");
+ mastermap.Add ("Refresh", "TQDataTable.Refresh");
mastermap.Add ("Order", "QDateEdit.Order");
- mastermap.Add ("DialogCode", "QDialog.DialogCode");
- mastermap.Add ("FilterSpec", "QDir.FilterSpec");
- mastermap.Add ("SortSpec", "QDir.SortSpec");
- mastermap.Add ("RecordType", "QDns.RecordType");
- mastermap.Add ("HandlePosition", "QDockArea.HandlePosition");
- mastermap.Add ("Place", "QDockWindow.Place");
- mastermap.Add ("CloseMode", "QDockWindow.CloseMode");
- mastermap.Add ("NodeType", "QDomNode.NodeType");
- mastermap.Add ("DragMode", "QDragObject.DragMode");
- mastermap.Add ("Action", "QDropEvent.Action");
- mastermap.Add ("ViewMode", "QFileDialog.ViewMode");
- mastermap.Add ("PreviewMode", "QFileDialog.PreviewMode");
- mastermap.Add ("PermissionSpec", "QFileInfo.PermissionSpec");
- mastermap.Add ("StyleStrategy", "QFont.StyleStrategy");
- mastermap.Add ("Weight", "QFont.Weight");
- mastermap.Add ("Script", "QFont.Script");
- mastermap.Add ("Shadow", "QFrame.Shadow");
- mastermap.Add ("FormatOption", "QGL.FormatOption");
- mastermap.Add ("Corner", "QGridLayout.Corner");
- mastermap.Add ("Size", "QIconSet.Size");
- mastermap.Add ("Arrangement", "QIconView.Arrangement");
- mastermap.Add ("ItemTextPos", "QIconView.ItemTextPos");
- mastermap.Add ("Endian", "QImage.Endian");
- mastermap.Add ("ScaleMode", "QImage.ScaleMode");
- mastermap.Add ("PaintDeviceFlags", "QInternal.PaintDeviceFlags");
- mastermap.Add ("Rules", "QJpUnicodeConv.Rules");
- mastermap.Add ("SegmentStyle", "QLCDNumber.SegmentStyle");
- mastermap.Add ("LayoutMode", "QListBox.LayoutMode");
- mastermap.Add ("WidthMode", "QListView.WidthMode");
- mastermap.Add ("RenameAction", "QListView.RenameAction");
- mastermap.Add ("DockWindows", "QMainWindow.DockWindows");
+ mastermap.Add ("DialogCode", "TQDialog.DialogCode");
+ mastermap.Add ("FilterSpec", "TQDir.FilterSpec");
+ mastermap.Add ("SortSpec", "TQDir.SortSpec");
+ mastermap.Add ("RecordType", "TQDns.RecordType");
+ mastermap.Add ("HandlePosition", "TQDockArea.HandlePosition");
+ mastermap.Add ("Place", "TQDockWindow.Place");
+ mastermap.Add ("CloseMode", "TQDockWindow.CloseMode");
+ mastermap.Add ("NodeType", "TQDomNode.NodeType");
+ mastermap.Add ("DragMode", "TQDragObject.DragMode");
+ mastermap.Add ("Action", "TQDropEvent.Action");
+ mastermap.Add ("ViewMode", "TQFileDialog.ViewMode");
+ mastermap.Add ("PreviewMode", "TQFileDialog.PreviewMode");
+ mastermap.Add ("PermissionSpec", "TQFileInfo.PermissionSpec");
+ mastermap.Add ("StyleStrategy", "TQFont.StyleStrategy");
+ mastermap.Add ("Weight", "TQFont.Weight");
+ mastermap.Add ("Script", "TQFont.Script");
+ mastermap.Add ("Shadow", "TQFrame.Shadow");
+ mastermap.Add ("FormatOption", "TQGL.FormatOption");
+ mastermap.Add ("Corner", "TQGridLayout.Corner");
+ mastermap.Add ("Size", "TQIconSet.Size");
+ mastermap.Add ("Arrangement", "TQIconView.Arrangement");
+ mastermap.Add ("ItemTextPos", "TQIconView.ItemTextPos");
+ mastermap.Add ("Endian", "TQImage.Endian");
+ mastermap.Add ("ScaleMode", "TQImage.ScaleMode");
+ mastermap.Add ("PaintDeviceFlags", "TQInternal.PaintDeviceFlags");
+ mastermap.Add ("Rules", "TQJpUnicodeConv.Rules");
+ mastermap.Add ("SegmentStyle", "TQLCDNumber.SegmentStyle");
+ mastermap.Add ("LayoutMode", "TQListBox.LayoutMode");
+ mastermap.Add ("WidthMode", "TQListView.WidthMode");
+ mastermap.Add ("RenameAction", "TQListView.RenameAction");
+ mastermap.Add ("DockWindows", "TQMainWindow.DockWindows");
mastermap.Add ("Color", "QMapNodeBase.Color");
- mastermap.Add ("Separator", "QMenuBar.Separator");
- mastermap.Add ("Icon", "QMessageBox.Icon");
+ mastermap.Add ("Separator", "TQMenuBar.Separator");
+ mastermap.Add ("Icon", "TQMessageBox.Icon");
mastermap.Add ("Access", "QMetaData.Access");
- mastermap.Add ("Flags", "QMetaProperty.Flags");
- mastermap.Add ("Status", "QMovie.Status");
- mastermap.Add ("InstanceMode", "QNPInstance.InstanceMode");
- mastermap.Add ("StreamMode", "QNPInstance.StreamMode");
- mastermap.Add ("Operation", "QNetworkProtocol.Operation");
- mastermap.Add ("ConnectionState", "QNetworkProtocol.ConnectionState");
- mastermap.Add ("DisposalMethod", "QPNGImageWriter.DisposalMethod");
- mastermap.Add ("PDevCmd", "QPaintDevice.PDevCmd");
- mastermap.Add ("CoordinateMode", "QPainter.CoordinateMode");
- mastermap.Add ("TextDirection", "QPainter.TextDirection");
- mastermap.Add ("ColorGroup", "QPalette.ColorGroup");
- mastermap.Add ("Optimization", "QPixmap.Optimization");
- mastermap.Add ("Edge", "QPolygonScanner.Edge");
- mastermap.Add ("PrinterMode", "QPrinter.PrinterMode");
- mastermap.Add ("PageSize", "QPrinter.PageSize");
- mastermap.Add ("PageOrder", "QPrinter.PageOrder");
- mastermap.Add ("PaperSource", "QPrinter.PaperSource");
- mastermap.Add ("Communication", "QProcess.Communication");
- mastermap.Add ("RegionType", "QRegion.RegionType");
- mastermap.Add ("ResizePolicy", "QScrollView.ResizePolicy");
- mastermap.Add ("ScrollBarMode", "QScrollView.ScrollBarMode");
+ mastermap.Add ("Flags", "TQMetaProperty.Flags");
+ mastermap.Add ("Status", "TQMovie.Status");
+ mastermap.Add ("InstanceMode", "TQNPInstance.InstanceMode");
+ mastermap.Add ("StreamMode", "TQNPInstance.StreamMode");
+ mastermap.Add ("Operation", "TQNetworkProtocol.Operation");
+ mastermap.Add ("ConnectionState", "TQNetworkProtocol.ConnectionState");
+ mastermap.Add ("DisposalMethod", "TQPNGImageWriter.DisposalMethod");
+ mastermap.Add ("PDevCmd", "TQPaintDevice.PDevCmd");
+ mastermap.Add ("CoordinateMode", "TQPainter.CoordinateMode");
+ mastermap.Add ("TextDirection", "TQPainter.TextDirection");
+ mastermap.Add ("ColorGroup", "TQPalette.ColorGroup");
+ mastermap.Add ("Optimization", "TQPixmap.Optimization");
+ mastermap.Add ("Edge", "TQPolygonScanner.Edge");
+ mastermap.Add ("PrinterMode", "TQPrinter.PrinterMode");
+ mastermap.Add ("PageSize", "TQPrinter.PageSize");
+ mastermap.Add ("PageOrder", "TQPrinter.PageOrder");
+ mastermap.Add ("PaperSource", "TQPrinter.PaperSource");
+ mastermap.Add ("Communication", "TQProcess.Communication");
+ mastermap.Add ("RegionType", "TQRegion.RegionType");
+ mastermap.Add ("ResizePolicy", "TQScrollView.ResizePolicy");
+ mastermap.Add ("ScrollBarMode", "TQScrollView.ScrollBarMode");
mastermap.Add ("RestartHint", "QSessionManager.RestartHint");
- mastermap.Add ("System", "QSettings.System");
- mastermap.Add ("SizeType", "QSizePolicy.SizeType");
- mastermap.Add ("ExpandData", "QSizePolicy.ExpandData");
- mastermap.Add ("TickSetting", "QSlider.TickSetting");
- mastermap.Add ("Op", "QSql.Op");
- mastermap.Add ("Location", "QSql.Location");
- mastermap.Add ("Confirm", "QSql.Confirm");
- mastermap.Add ("DriverFeature", "QSqlDriver.DriverFeature");
- mastermap.Add ("SectionFlags", "QString.SectionFlags");
- mastermap.Add ("PrimitiveElement", "QStyle.PrimitiveElement");
- mastermap.Add ("StyleFlags", "QStyle.StyleFlags");
- mastermap.Add ("SFlags", "QStyle.StyleFlags");
- mastermap.Add ("ControlElement", "QStyle.ControlElement");
- mastermap.Add ("SubRect", "QStyle.SubRect");
- mastermap.Add ("ComplexControl", "QStyle.ComplexControl");
- mastermap.Add ("SubControl", "QStyle.SubControl");
- mastermap.Add ("SCFlags", "QStyle.SubControl");
- mastermap.Add ("PixelMetric", "QStyle.PixelMetric");
- mastermap.Add ("ContentsType", "QStyle.ContentsType");
- mastermap.Add ("StylePixmap", "QStyle.StylePixmap");
- mastermap.Add ("StyleOptionDefault", "QStyleOption.StyleOptionDefault");
- mastermap.Add ("AdditionalStyleValues", "QStyleSheetItem.AdditionalStyleValues");
- mastermap.Add ("DisplayMode", "QStyleSheetItem.DisplayMode");
- mastermap.Add ("WhiteSpaceMode", "QStyleSheetItem.WhiteSpaceMode");
- mastermap.Add ("Margin", "QStyleSheetItem.Margin");
- mastermap.Add ("ListStyle", "QStyleSheetItem.ListStyle");
- mastermap.Add ("FocusStyle", "QTable.FocusStyle");
- mastermap.Add ("EditMode", "QTable.EditMode");
- mastermap.Add ("EditType", "QTableItem.EditType");
- mastermap.Add ("TabletDevice", "QTabletEvent.TabletDevice");
- mastermap.Add ("KeyboardAction", "QTextEdit.KeyboardAction");
- mastermap.Add ("CursorAction", "QTextEdit.CursorAction");
+ mastermap.Add ("System", "TQSettings.System");
+ mastermap.Add ("SizeType", "TQSizePolicy.SizeType");
+ mastermap.Add ("ExpandData", "TQSizePolicy.ExpandData");
+ mastermap.Add ("TickSetting", "TQSlider.TickSetting");
+ mastermap.Add ("Op", "TQSql.Op");
+ mastermap.Add ("Location", "TQSql.Location");
+ mastermap.Add ("Confirm", "TQSql.Confirm");
+ mastermap.Add ("DriverFeature", "TQSqlDriver.DriverFeature");
+ mastermap.Add ("SectionFlags", "TQString.SectionFlags");
+ mastermap.Add ("PrimitiveElement", "TQStyle.PrimitiveElement");
+ mastermap.Add ("StyleFlags", "TQStyle.StyleFlags");
+ mastermap.Add ("SFlags", "TQStyle.StyleFlags");
+ mastermap.Add ("ControlElement", "TQStyle.ControlElement");
+ mastermap.Add ("SubRect", "TQStyle.SubRect");
+ mastermap.Add ("ComplexControl", "TQStyle.ComplexControl");
+ mastermap.Add ("SubControl", "TQStyle.SubControl");
+ mastermap.Add ("SCFlags", "TQStyle.SubControl");
+ mastermap.Add ("PixelMetric", "TQStyle.PixelMetric");
+ mastermap.Add ("ContentsType", "TQStyle.ContentsType");
+ mastermap.Add ("StylePixmap", "TQStyle.StylePixmap");
+ mastermap.Add ("StyleOptionDefault", "TQStyleOption.StyleOptionDefault");
+ mastermap.Add ("AdditionalStyleValues", "TQStyleSheetItem.AdditionalStyleValues");
+ mastermap.Add ("DisplayMode", "TQStyleSheetItem.DisplayMode");
+ mastermap.Add ("WhiteSpaceMode", "TQStyleSheetItem.WhiteSpaceMode");
+ mastermap.Add ("Margin", "TQStyleSheetItem.Margin");
+ mastermap.Add ("ListStyle", "TQStyleSheetItem.ListStyle");
+ mastermap.Add ("FocusStyle", "TQTable.FocusStyle");
+ mastermap.Add ("EditMode", "TQTable.EditMode");
+ mastermap.Add ("EditType", "TQTableItem.EditType");
+ mastermap.Add ("TabletDevice", "TQTabletEvent.TabletDevice");
+ mastermap.Add ("KeyboardAction", "TQTextEdit.KeyboardAction");
+ mastermap.Add ("CursorAction", "TQTextEdit.CursorAction");
mastermap.Add ("SaveMode", "QTranslator.SaveMode");
mastermap.Add ("Prefix", "QTranslatorMessage.Prefix");
- mastermap.Add ("FocusPolicy", "QWidget.FocusPolicy");
- mastermap.Add ("BackgroundOrigin", "QWidget.BackgroundOrigin");
+ mastermap.Add ("FocusPolicy", "TQWidget.FocusPolicy");
+ mastermap.Add ("BackgroundOrigin", "TQWidget.BackgroundOrigin");
mastermap.Add ("ButtonState", "Qt.ButtonState");
mastermap.Add ("AlignmentFlags", "Qt.AlignmentFlags");
mastermap.Add ("TextFlags", "Qt.TextFlags");
@@ -281,72 +281,72 @@ namespace QtCSharp {
// We need to make sure all params use the interfaces, ie IQPaintDevice
/*mastermap.Add ("QAccessibleFactoryInterface", "IQAccessibleFactory");
mastermap.Add ("QAccessibleInterface", "IQAccessible");*/
- mastermap.Add ("QPaintDevice", "IQPaintDevice");
- /*mastermap.Add ("QMenuData", "IQMenuData");
- mastermap.Add ("QRangeControl", "IQRangeControl");
- mastermap.Add ("QMimeSource", "IQMimeSource");
- mastermap.Add ("QLayoutItem", "IQLayoutItem");
- mastermap.Add ("QUrl", "IQUrl");
- mastermap.Add ("QIODevice", "IQIODevice");
- mastermap.Add ("QXmlContentHandler", "IQXmlContentHandler");
- mastermap.Add ("QXmlErrorHandler", "IQXmlErrorHandler");
- mastermap.Add ("QXmlDTDHandler", "IQXmlDTDHandler");
- mastermap.Add ("QXmlEntityResolver", "IQXmlEntityResolver");
- //mastermap.Add ("QXmlLexicalHandler", "IQXmlLexicalHandler");
- mastermap.Add ("QXmlDeclHandler", "IQXmlDeclHandler");
+ mastermap.Add ("TQPaintDevice", "IQPaintDevice");
+ /*mastermap.Add ("TQMenuData", "IQMenuData");
+ mastermap.Add ("TQRangeControl", "IQRangeControl");
+ mastermap.Add ("TQMimeSource", "IQMimeSource");
+ mastermap.Add ("TQLayoutItem", "IQLayoutItem");
+ mastermap.Add ("TQUrl", "IQUrl");
+ mastermap.Add ("TQIODevice", "IQIODevice");
+ mastermap.Add ("TQXmlContentHandler", "IQXmlContentHandler");
+ mastermap.Add ("TQXmlErrorHandler", "IQXmlErrorHandler");
+ mastermap.Add ("TQXmlDTDHandler", "IQXmlDTDHandler");
+ mastermap.Add ("TQXmlEntityResolver", "IQXmlEntityResolver");
+ //mastermap.Add ("TQXmlLexicalHandler", "IQXmlLexicalHandler");
+ mastermap.Add ("TQXmlDeclHandler", "IQXmlDeclHandler");
mastermap.Add ("QwAbsSpriteFieldView", "IQwAbsSpriteFieldView");
- mastermap.Add ("QSqlQuery", "IQSqlQuery");
+ mastermap.Add ("TQSqlQuery", "IQSqlQuery");
mastermap.Add ("QFeatureListInterface", "IQFeatureList");
mastermap.Add ("QUnknownInterface", "IQUnknown");
mastermap.Add ("QShared", "IQShared");*/
// Key Duplication
- //mastermap.Add ("Direction", "QBoxLayout.Direction");
- //mastermap.Add ("Direction", "QChar.Direction");
- //mastermap.Add ("Reason", "QContextMenuEvent.Reason");
- //mastermap.Add ("Reason", "QFocusEvent.Reason");
- //mastermap.Add ("Reason", "QNPInstance.Reason");
- //mastermap.Add ("Mode", "QFileDialog.Mode");
- //mastermap.Add ("Mode", "QIconSet.Mode");
- //mastermap.Add ("Mode", "QLCDNumber.Mode");
- //mastermap.Add ("Mode", "QSqlCursor.Mode");
- //mastermap.Add ("Shape", "QFrame.Shape");
- //mastermap.Add ("Shape", "QTabBar.Shape");
- //mastermap.Add ("KeyType", "QGCache.KeyType");
- //mastermap.Add ("KeyType", "QGDict.KeyType");
- //mastermap.Add ("State", "QAccessible.State");
- //mastermap.Add ("State", "QNetworkProtocol.State");
- //mastermap.Add ("State", "QSocket.State");
- //mastermap.Add ("State", "QValidator.State");
- //mastermap.Add ("ResizeMode", "QIconView.ResizeMode");
- //mastermap.Add ("ResizeMode", "QLayout.ResizeMode");
- //mastermap.Add ("ResizeMode", "QListView.ResizeMode");
- //mastermap.Add ("ResizeMode", "QListView.ResizeMode");
- //mastermap.Add ("EchoMode", "QLineEdit.EchoMode");
+ //mastermap.Add ("Direction", "TQBoxLayout.Direction");
+ //mastermap.Add ("Direction", "TQChar.Direction");
+ //mastermap.Add ("Reason", "TQContextMenuEvent.Reason");
+ //mastermap.Add ("Reason", "TQFocusEvent.Reason");
+ //mastermap.Add ("Reason", "TQNPInstance.Reason");
+ //mastermap.Add ("Mode", "TQFileDialog.Mode");
+ //mastermap.Add ("Mode", "TQIconSet.Mode");
+ //mastermap.Add ("Mode", "TQLCDNumber.Mode");
+ //mastermap.Add ("Mode", "TQSqlCursor.Mode");
+ //mastermap.Add ("Shape", "TQFrame.Shape");
+ //mastermap.Add ("Shape", "TQTabBar.Shape");
+ //mastermap.Add ("KeyType", "TQGCache.KeyType");
+ //mastermap.Add ("KeyType", "TQGDict.KeyType");
+ //mastermap.Add ("State", "TQAccessible.State");
+ //mastermap.Add ("State", "TQNetworkProtocol.State");
+ //mastermap.Add ("State", "TQSocket.State");
+ //mastermap.Add ("State", "TQValidator.State");
+ //mastermap.Add ("ResizeMode", "TQIconView.ResizeMode");
+ //mastermap.Add ("ResizeMode", "TQLayout.ResizeMode");
+ //mastermap.Add ("ResizeMode", "TQListView.ResizeMode");
+ //mastermap.Add ("ResizeMode", "TQListView.ResizeMode");
+ //mastermap.Add ("EchoMode", "TQLineEdit.EchoMode");
//mastermap.Add ("EchoMode", "QtMultiLineEdit.EchoMode");
- //mastermap.Add ("ColorMode", "QApplication.ColorMode");
- //mastermap.Add ("ColorMode", "QPrinter.ColorMode");
- //mastermap.Add ("ColorMode", "QPixmap.ColorMode");
- //mastermap.Add ("SelectionMode", "QIconView.SelectionMode");
- //mastermap.Add ("SelectionMode", "QListBox.SelectionMode");
- //mastermap.Add ("SelectionMode", "QListView.SelectionMode");
- //mastermap.Add ("SelectionMode", "QTable.SelectionMode");
- //mastermap.Add ("Error", "QSocket.Error");
- //mastermap.Add ("Error", "QSocketDevice.Error");
- //mastermap.Add ("Error", "QNetworkProtocol.Error");
- //mastermap.Add ("ButtonSymbols", "QSpinBox.ButtonSymbols");
- //mastermap.Add ("ButtonSymbols", "QSpinWidget.ButtonSymbols");
- //mastermap.Add ("StyleHint", "QStyle.StyleHint");
- //mastermap.Add ("StyleHint", "QFont.StyleHint");
- //mastermap.Add ("Encoding", "QApplication.Encoding");
- //mastermap.Add ("Encoding", "QTextStream.Encoding");
- //mastermap.Add ("VerticalAlignment", "QTextEdit.VerticalAlignment");
- //mastermap.Add ("VerticalAlignment", "QStyleSheetItem.VerticalAlignment");
- //mastermap.Add ("Orientation", "QPrinter.Orientation");
+ //mastermap.Add ("ColorMode", "TQApplication.ColorMode");
+ //mastermap.Add ("ColorMode", "TQPrinter.ColorMode");
+ //mastermap.Add ("ColorMode", "TQPixmap.ColorMode");
+ //mastermap.Add ("SelectionMode", "TQIconView.SelectionMode");
+ //mastermap.Add ("SelectionMode", "TQListBox.SelectionMode");
+ //mastermap.Add ("SelectionMode", "TQListView.SelectionMode");
+ //mastermap.Add ("SelectionMode", "TQTable.SelectionMode");
+ //mastermap.Add ("Error", "TQSocket.Error");
+ //mastermap.Add ("Error", "TQSocketDevice.Error");
+ //mastermap.Add ("Error", "TQNetworkProtocol.Error");
+ //mastermap.Add ("ButtonSymbols", "TQSpinBox.ButtonSymbols");
+ //mastermap.Add ("ButtonSymbols", "TQSpinWidget.ButtonSymbols");
+ //mastermap.Add ("StyleHint", "TQStyle.StyleHint");
+ //mastermap.Add ("StyleHint", "TQFont.StyleHint");
+ //mastermap.Add ("Encoding", "TQApplication.Encoding");
+ //mastermap.Add ("Encoding", "TQTextStream.Encoding");
+ //mastermap.Add ("VerticalAlignment", "TQTextEdit.VerticalAlignment");
+ //mastermap.Add ("VerticalAlignment", "TQStyleSheetItem.VerticalAlignment");
+ //mastermap.Add ("Orientation", "TQPrinter.Orientation");
//mastermap.Add ("Orientation", "Qt.Orientation");
- //mastermap.Add ("WrapPolicy", "QTextEdit.WrapPolicy");
+ //mastermap.Add ("WrapPolicy", "TQTextEdit.WrapPolicy");
//mastermap.Add ("WrapPolicy", "QtMultiLineEdit.WrapPolicy");
- //mastermap.Add ("WordWrap", "QTextEdit.WordWrap");
+ //mastermap.Add ("WordWrap", "TQTextEdit.WordWrap");
//mastermap.Add ("WordWrap", "QtMultiLineEdit.WordWrap");
// These are here in case we need to override the mastermap
@@ -369,21 +369,21 @@ namespace QtCSharp {
interfaces = new Hashtable ();
interfaces.Add ("QAccessibleFactoryInterface", "IQAccessibleFactory");
interfaces.Add ("QAccessibleInterface", "IQAccessible");
- interfaces.Add ("QPaintDevice", "IQPaintDevice");
- interfaces.Add ("QMenuData", "IQMenuData");
- interfaces.Add ("QRangeControl", "IQRangeControl");
- interfaces.Add ("QMimeSource", "IQMimeSource");
- interfaces.Add ("QLayoutItem", "IQLayoutItem");
- interfaces.Add ("QUrl", "IQUrl");
- interfaces.Add ("QIODevice", "IQIODevice");
- interfaces.Add ("QXmlContentHandler", "IQXmlContentHandler");
- interfaces.Add ("QXmlErrorHandler", "IQXmlErrorHandler");
- interfaces.Add ("QXmlDTDHandler", "IQXmlDTDHandler");
- interfaces.Add ("QXmlEntityResolver", "IQXmlEntityResolver");
- //interfaces.Add ("QXmlLexicalHandler", "IQXmlLexicalHandler");
- interfaces.Add ("QXmlDeclHandler", "IQXmlDeclHandler");
+ interfaces.Add ("TQPaintDevice", "IQPaintDevice");
+ interfaces.Add ("TQMenuData", "IQMenuData");
+ interfaces.Add ("TQRangeControl", "IQRangeControl");
+ interfaces.Add ("TQMimeSource", "IQMimeSource");
+ interfaces.Add ("TQLayoutItem", "IQLayoutItem");
+ interfaces.Add ("TQUrl", "IQUrl");
+ interfaces.Add ("TQIODevice", "IQIODevice");
+ interfaces.Add ("TQXmlContentHandler", "IQXmlContentHandler");
+ interfaces.Add ("TQXmlErrorHandler", "IQXmlErrorHandler");
+ interfaces.Add ("TQXmlDTDHandler", "IQXmlDTDHandler");
+ interfaces.Add ("TQXmlEntityResolver", "IQXmlEntityResolver");
+ //interfaces.Add ("TQXmlLexicalHandler", "IQXmlLexicalHandler");
+ interfaces.Add ("TQXmlDeclHandler", "IQXmlDeclHandler");
interfaces.Add ("QwAbsSpriteFieldView", "IQwAbsSpriteFieldView");
- interfaces.Add ("QSqlQuery", "IQSqlQuery");
+ interfaces.Add ("TQSqlQuery", "IQSqlQuery");
interfaces.Add ("QFeatureListInterface", "IQFeatureList");
interfaces.Add ("QUnknownInterface", "IQUnknown");
interfaces.Add ("QShared", "IQShared");
diff --git a/qtsharp/src/libqtsharp/customslot.cpp b/qtsharp/src/libqtsharp/customslot.cpp
index f23b9cee..ede36240 100644
--- a/qtsharp/src/libqtsharp/customslot.cpp
+++ b/qtsharp/src/libqtsharp/customslot.cpp
@@ -1,127 +1,127 @@
#include "customslot.h"
-CustomSlot::CustomSlot (void (*ptr)(void), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(void), TQObject *parent, const char *name): TQObject (parent, name)
{
p0 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(bool), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(bool), TQObject *parent, const char *name): TQObject (parent, name)
{
p1 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(short), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(short), TQObject *parent, const char *name): TQObject (parent, name)
{
p2 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(int), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(int), TQObject *parent, const char *name): TQObject (parent, name)
{
p3 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(long), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(long), TQObject *parent, const char *name): TQObject (parent, name)
{
p4 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(float), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(float), TQObject *parent, const char *name): TQObject (parent, name)
{
p5 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(double), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(double), TQObject *parent, const char *name): TQObject (parent, name)
{
p6 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QDockWindow*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQDockWindow*), TQObject *parent, const char *name): TQObject (parent, name)
{
p7 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QDropEvent*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQDropEvent*), TQObject *parent, const char *name): TQObject (parent, name)
{
p8 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QDropEvent*,QListViewItem*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQDropEvent*,TQListViewItem*), TQObject *parent, const char *name): TQObject (parent, name)
{
p9 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QIconViewItem*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQIconViewItem*), TQObject *parent, const char *name): TQObject (parent, name)
{
p10 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QListBoxItem*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQListBoxItem*), TQObject *parent, const char *name): TQObject (parent, name)
{
p11 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QListViewItem*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQListViewItem*), TQObject *parent, const char *name): TQObject (parent, name)
{
p12 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QListViewItem*,QListViewItem*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQListViewItem*,TQListViewItem*), TQObject *parent, const char *name): TQObject (parent, name)
{
p13 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QListViewItem*,QListViewItem*,QListViewItem*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQListViewItem*,TQListViewItem*,TQListViewItem*), TQObject *parent, const char *name): TQObject (parent, name)
{
p14 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QNetworkOperation*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQNetworkOperation*), TQObject *parent, const char *name): TQObject (parent, name)
{
p15 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QObject*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQObject*), TQObject *parent, const char *name): TQObject (parent, name)
{
p16 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QToolBar*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQToolBar*), TQObject *parent, const char *name): TQObject (parent, name)
{
p17 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(QWidget*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(TQWidget*), TQObject *parent, const char *name): TQObject (parent, name)
{
p18 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(int,QIconViewItem*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(int,TQIconViewItem*), TQObject *parent, const char *name): TQObject (parent, name)
{
p19 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(int,QListBoxItem*), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(int,TQListBoxItem*), TQObject *parent, const char *name): TQObject (parent, name)
{
p20 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(int,bool), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(int,bool), TQObject *parent, const char *name): TQObject (parent, name)
{
p21 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(int,int), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(int,int), TQObject *parent, const char *name): TQObject (parent, name)
{
p22 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(int,int,int), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(int,int,int), TQObject *parent, const char *name): TQObject (parent, name)
{
p23 = ptr;
}
-CustomSlot::CustomSlot (void (*ptr)(const QString&), QObject *parent, const char *name): QObject (parent, name)
+CustomSlot::CustomSlot (void (*ptr)(const TQString&), TQObject *parent, const char *name): TQObject (parent, name)
{
p24 = ptr;
}
@@ -161,72 +161,72 @@ void CustomSlot::callback (double value0)
p6 (value0);
}
-void CustomSlot::callback (QDockWindow* value0)
+void CustomSlot::callback (TQDockWindow* value0)
{
p7 (value0);
}
-void CustomSlot::callback (QDropEvent* value0)
+void CustomSlot::callback (TQDropEvent* value0)
{
p8 (value0);
}
-void CustomSlot::callback (QDropEvent* value0, QListViewItem* value1)
+void CustomSlot::callback (TQDropEvent* value0, TQListViewItem* value1)
{
p9 (value0, value1);
}
-void CustomSlot::callback (QIconViewItem* value0)
+void CustomSlot::callback (TQIconViewItem* value0)
{
p10 (value0);
}
-void CustomSlot::callback (QListBoxItem* value0)
+void CustomSlot::callback (TQListBoxItem* value0)
{
p11 (value0);
}
-void CustomSlot::callback (QListViewItem* value0)
+void CustomSlot::callback (TQListViewItem* value0)
{
p12 (value0);
}
-void CustomSlot::callback (QListViewItem* value0, QListViewItem* value1)
+void CustomSlot::callback (TQListViewItem* value0, TQListViewItem* value1)
{
p13 (value0, value1);
}
-void CustomSlot::callback (QListViewItem* value0, QListViewItem* value1, QListViewItem* value2)
+void CustomSlot::callback (TQListViewItem* value0, TQListViewItem* value1, TQListViewItem* value2)
{
p14 (value0, value1, value2);
}
-void CustomSlot::callback (QNetworkOperation* value0)
+void CustomSlot::callback (TQNetworkOperation* value0)
{
p15 (value0);
}
-void CustomSlot::callback (QObject* value0)
+void CustomSlot::callback (TQObject* value0)
{
p16 (value0);
}
-void CustomSlot::callback (QToolBar* value0)
+void CustomSlot::callback (TQToolBar* value0)
{
p17 (value0);
}
-void CustomSlot::callback (QWidget* value0)
+void CustomSlot::callback (TQWidget* value0)
{
p18 (value0);
}
-void CustomSlot::callback (int value0, QIconViewItem* value1)
+void CustomSlot::callback (int value0, TQIconViewItem* value1)
{
p19 (value0, value1);
}
-void CustomSlot::callback (int value0, QListBoxItem* value1)
+void CustomSlot::callback (int value0, TQListBoxItem* value1)
{
p20 (value0, value1);
}
@@ -246,7 +246,7 @@ void CustomSlot::callback (int value0, int value1, int value2)
p23 (value0, value1, value2);
}
-void CustomSlot::callback( const QString& value0 )
+void CustomSlot::callback( const TQString& value0 )
{
p24 (value0);
}
diff --git a/qtsharp/src/libqtsharp/customslot.h b/qtsharp/src/libqtsharp/customslot.h
index 5182f354..70108dcd 100644
--- a/qtsharp/src/libqtsharp/customslot.h
+++ b/qtsharp/src/libqtsharp/customslot.h
@@ -2,33 +2,33 @@
#define _CUSTOMSLOT_H_
#include <iostream>
-#include <qnamespace.h>
-#include <qobject.h>
-#include <qaction.h>
-#include <qdockwindow.h>
-#include <qlistview.h>
-#include <qiconview.h>
-#include <qpoint.h>
-#include <qlist.h>
-#include <qlistbox.h>
-#include <qnetworkprotocol.h>
-#include <qobject.h>
-#include <qtoolbar.h>
-#include <qwidget.h>
-#include <qcolor.h>
-#include <qdatetime.h>
-#include <qfont.h>
-#include <qrect.h>
-#include <qsize.h>
-#include <qstringlist.h>
-#include <qstring.h>
-#include <qlibrary.h>
-#include <qurlinfo.h>
-#include <qvaluelist.h>
-#include <qvariant.h>
-#include <qevent.h>
-#include <qfiledialog.h>
-#include <qmenudata.h>
+#include <tqnamespace.h>
+#include <tqobject.h>
+#include <tqaction.h>
+#include <tqdockwindow.h>
+#include <tqlistview.h>
+#include <tqiconview.h>
+#include <tqpoint.h>
+#include <tqlist.h>
+#include <tqlistbox.h>
+#include <tqnetworkprotocol.h>
+#include <tqobject.h>
+#include <tqtoolbar.h>
+#include <tqwidget.h>
+#include <tqcolor.h>
+#include <tqdatetime.h>
+#include <tqfont.h>
+#include <tqrect.h>
+#include <tqsize.h>
+#include <tqstringlist.h>
+#include <tqstring.h>
+#include <tqlibrary.h>
+#include <tqurlinfo.h>
+#include <tqvaluelist.h>
+#include <tqvariant.h>
+#include <tqevent.h>
+#include <tqfiledialog.h>
+#include <tqmenudata.h>
class CustomSlot: public QObject
{
@@ -36,31 +36,31 @@ class CustomSlot: public QObject
public:
- CustomSlot (void (*ptr)(void), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(bool), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(short), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(int), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(long), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(float), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(double), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(const QString&), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QDockWindow*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QDropEvent*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QDropEvent*,QListViewItem*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QIconViewItem*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QListBoxItem*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QListViewItem*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QListViewItem*,QListViewItem*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QListViewItem*,QListViewItem*,QListViewItem*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QNetworkOperation*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QObject*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QToolBar*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(QWidget*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(int,QIconViewItem*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(int,QListBoxItem*), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(int,bool), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(int,int), QObject *parent, const char *name=0);
- CustomSlot (void (*ptr)(int,int,int), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(void), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(bool), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(short), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(long), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(float), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(double), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(const TQString&), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQDockWindow*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQDropEvent*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQDropEvent*,TQListViewItem*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQIconViewItem*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQListBoxItem*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQListViewItem*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQListViewItem*,TQListViewItem*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQListViewItem*,TQListViewItem*,TQListViewItem*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQNetworkOperation*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQObject*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQToolBar*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(TQWidget*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,TQIconViewItem*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,TQListBoxItem*), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,bool), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,int), TQObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,int,int), TQObject *parent, const char *name=0);
public slots:
void callback (void);
@@ -70,21 +70,21 @@ public slots:
void callback (long);
void callback (float);
void callback (double);
- void callback (const QString&);
- void callback (QDockWindow*);
- void callback (QDropEvent*);
- void callback (QDropEvent*,QListViewItem*);
- void callback (QIconViewItem*);
- void callback (QListBoxItem*);
- void callback (QListViewItem*);
- void callback (QListViewItem*,QListViewItem*);
- void callback (QListViewItem*,QListViewItem*,QListViewItem*);
- void callback (QNetworkOperation*);
- void callback (QObject*);
- void callback (QToolBar*);
- void callback (QWidget*);
- void callback (int,QIconViewItem*);
- void callback (int,QListBoxItem*);
+ void callback (const TQString&);
+ void callback (TQDockWindow*);
+ void callback (TQDropEvent*);
+ void callback (TQDropEvent*,TQListViewItem*);
+ void callback (TQIconViewItem*);
+ void callback (TQListBoxItem*);
+ void callback (TQListViewItem*);
+ void callback (TQListViewItem*,TQListViewItem*);
+ void callback (TQListViewItem*,TQListViewItem*,TQListViewItem*);
+ void callback (TQNetworkOperation*);
+ void callback (TQObject*);
+ void callback (TQToolBar*);
+ void callback (TQWidget*);
+ void callback (int,TQIconViewItem*);
+ void callback (int,TQListBoxItem*);
void callback (int,bool);
void callback (int,int);
void callback (int,int,int);
@@ -97,24 +97,24 @@ private:
void (*p4)(long);
void (*p5)(float);
void (*p6)(double);
- void (*p7)(QDockWindow*);
- void (*p8)(QDropEvent*);
- void (*p9)(QDropEvent*,QListViewItem*);
- void (*p10)(QIconViewItem*);
- void (*p11)(QListBoxItem*);
- void (*p12)(QListViewItem*);
- void (*p13)(QListViewItem*,QListViewItem*);
- void (*p14)(QListViewItem*,QListViewItem*,QListViewItem*);
- void (*p15)(QNetworkOperation*);
- void (*p16)(QObject*);
- void (*p17)(QToolBar*);
- void (*p18)(QWidget*);
- void (*p19)(int,QIconViewItem*);
- void (*p20)(int,QListBoxItem*);
+ void (*p7)(TQDockWindow*);
+ void (*p8)(TQDropEvent*);
+ void (*p9)(TQDropEvent*,TQListViewItem*);
+ void (*p10)(TQIconViewItem*);
+ void (*p11)(TQListBoxItem*);
+ void (*p12)(TQListViewItem*);
+ void (*p13)(TQListViewItem*,TQListViewItem*);
+ void (*p14)(TQListViewItem*,TQListViewItem*,TQListViewItem*);
+ void (*p15)(TQNetworkOperation*);
+ void (*p16)(TQObject*);
+ void (*p17)(TQToolBar*);
+ void (*p18)(TQWidget*);
+ void (*p19)(int,TQIconViewItem*);
+ void (*p20)(int,TQListBoxItem*);
void (*p21)(int,bool);
void (*p22)(int,int);
void (*p23)(int,int,int);
- void (*p24)(const QString&);
+ void (*p24)(const TQString&);
};
#endif // _CUSTOMSLOT_H_
diff --git a/qtsharp/src/libqtsharp/qtsharp.cpp b/qtsharp/src/libqtsharp/qtsharp.cpp
index 903e89c0..80e32b0d 100644
--- a/qtsharp/src/libqtsharp/qtsharp.cpp
+++ b/qtsharp/src/libqtsharp/qtsharp.cpp
@@ -19,273 +19,273 @@ void qtsharp_QObject_registerEventDelegate (qtsharp_EventDelegate delegate)
return;
}
-QObject *csharp_connect_void (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(void))
+TQObject *csharp_connect_void (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(void))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (void)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (void)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_item_void (QMenuData *instance, int id, QObject *receiver, void (*ptr)(void))
+TQObject *csharp_connect_item_void (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(void))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! instance->connectItem (id, cs, SLOT (callback (void)))) {
+ if (! instance->connectItem (id, cs, TQT_SLOT (callback (void)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_bool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(bool))
+TQObject *csharp_connect_bool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(bool))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (bool)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (bool)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_short (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(short))
+TQObject *csharp_connect_short (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(short))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (short)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (short)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_int (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int))
+TQObject *csharp_connect_int (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (int)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_item_int (QMenuData *instance, int id, QObject *receiver, void (*ptr)(int))
+TQObject *csharp_connect_item_int (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(int))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! instance->connectItem (id, cs, SLOT (callback (int)))) {
+ if (! instance->connectItem (id, cs, TQT_SLOT (callback (int)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_long (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(long))
+TQObject *csharp_connect_long (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(long))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (long)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (long)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_float (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(float))
+TQObject *csharp_connect_float (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(float))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (float)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (float)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_double (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(double))
+TQObject *csharp_connect_double (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(double))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (double)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (double)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QString (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(const QString&))
+TQObject *csharp_connect_QString (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(const TQString&))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (const QString&)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (const TQString&)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QDockWindow (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDockWindow*))
+TQObject *csharp_connect_QDockWindow (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDockWindow*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QDockWindow*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQDockWindow*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QDropEvent (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*))
+TQObject *csharp_connect_QDropEvent (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QDropEvent*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQDropEvent*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QDropEventQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*,QListViewItem*))
+TQObject *csharp_connect_QDropEventQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*,TQListViewItem*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QDropEvent*,QListViewItem*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQDropEvent*,TQListViewItem*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QIconViewItem*))
+TQObject *csharp_connect_QIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQIconViewItem*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QIconViewItem*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQIconViewItem*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListBoxItem*))
+TQObject *csharp_connect_QListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListBoxItem*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QListBoxItem*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListBoxItem*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*))
+TQObject *csharp_connect_QListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QListViewItem*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListViewItem*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*))
+TQObject *csharp_connect_QListViewItemQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QListViewItem*,QListViewItem*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListViewItem*,TQListViewItem*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QListViewItemQListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*,QListViewItem*))
+TQObject *csharp_connect_QListViewItemQListViewItemQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*,TQListViewItem*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QListViewItem*,QListViewItem*,QListViewItem*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListViewItem*,TQListViewItem*,TQListViewItem*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QNetworkOperation (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QNetworkOperation*))
+TQObject *csharp_connect_QNetworkOperation (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQNetworkOperation*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QNetworkOperation*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQNetworkOperation*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QObject (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QObject*))
+TQObject *csharp_connect_QObject (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQObject*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QObject*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQObject*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QToolBar (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QToolBar*))
+TQObject *csharp_connect_QToolBar (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQToolBar*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QToolBar*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQToolBar*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_QWidget (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QWidget*))
+TQObject *csharp_connect_QWidget (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQWidget*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (QWidget*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQWidget*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_intQIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QIconViewItem*))
+TQObject *csharp_connect_intQIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQIconViewItem*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (int,QIconViewItem*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,TQIconViewItem*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_intQListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QListBoxItem*))
+TQObject *csharp_connect_intQListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQListBoxItem*))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (int,QListBoxItem*)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,TQListBoxItem*)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_intbool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,bool))
+TQObject *csharp_connect_intbool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,bool))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (int,bool)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,bool)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_intint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int))
+TQObject *csharp_connect_intint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (int,int)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,int)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
-QObject *csharp_connect_intintint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int,int))
+TQObject *csharp_connect_intintint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int,int))
{
CustomSlot *cs = new CustomSlot (ptr, receiver);
- if (! QObject::connect (sender, signal, cs, SLOT (callback (int,int,int)))) {
+ if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,int,int)))) {
delete cs;
cs = 0L;
}
- return (QObject *)cs;
+ return (TQObject *)cs;
}
diff --git a/qtsharp/src/libqtsharp/qtsharp.h b/qtsharp/src/libqtsharp/qtsharp.h
index 26321fb1..a1642db3 100644
--- a/qtsharp/src/libqtsharp/qtsharp.h
+++ b/qtsharp/src/libqtsharp/qtsharp.h
@@ -10,57 +10,57 @@ typedef int (*qt_EventDelegate)(void *, char *, void *, char *);
void qt_QObject_registerEventDelegate (qt_EventDelegate delegate);
-QObject *csharp_connect_void (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(void));
-QObject *csharp_connect_item_void (QMenuData *instance, int id, QObject *receiver, void (*ptr)(void));
+TQObject *csharp_connect_void (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(void));
+TQObject *csharp_connect_item_void (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(void));
-QObject *csharp_connect_bool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(bool));
+TQObject *csharp_connect_bool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(bool));
-QObject *csharp_connect_short (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(short));
+TQObject *csharp_connect_short (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(short));
-QObject *csharp_connect_int (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int));
-QObject *csharp_connect_item_int (QMenuData *instance, int id, QObject *receiver, void (*ptr)(int));
+TQObject *csharp_connect_int (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int));
+TQObject *csharp_connect_item_int (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(int));
-QObject *csharp_connect_long (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(long));
+TQObject *csharp_connect_long (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(long));
-QObject *csharp_connect_float (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(float));
+TQObject *csharp_connect_float (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(float));
-QObject *csharp_connect_double (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(double));
+TQObject *csharp_connect_double (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(double));
-QObject *csharp_connect_QString (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(const QString&));
+TQObject *csharp_connect_QString (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(const TQString&));
-QObject *csharp_connect_QDockWindow (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDockWindow*));
+TQObject *csharp_connect_QDockWindow (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDockWindow*));
-QObject *csharp_connect_QDropEvent (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*));
+TQObject *csharp_connect_QDropEvent (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*));
-QObject *csharp_connect_QDropEventQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*,QListViewItem*));
+TQObject *csharp_connect_QDropEventQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*,TQListViewItem*));
-QObject *csharp_connect_QIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QIconViewItem*));
+TQObject *csharp_connect_QIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQIconViewItem*));
-QObject *csharp_connect_QListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListBoxItem*));
+TQObject *csharp_connect_QListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListBoxItem*));
-QObject *csharp_connect_QListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*));
+TQObject *csharp_connect_QListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*));
-QObject *csharp_connect_QListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*));
+TQObject *csharp_connect_QListViewItemQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*));
-QObject *csharp_connect_QListViewItemQListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*,QListViewItem*));
+TQObject *csharp_connect_QListViewItemQListViewItemQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*,TQListViewItem*));
-QObject *csharp_connect_QNetworkOperation (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QNetworkOperation*));
+TQObject *csharp_connect_QNetworkOperation (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQNetworkOperation*));
-QObject *csharp_connect_QObject (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QObject*));
+TQObject *csharp_connect_QObject (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQObject*));
-QObject *csharp_connect_QToolBar (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QToolBar*));
+TQObject *csharp_connect_QToolBar (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQToolBar*));
-QObject *csharp_connect_QWidget (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QWidget*));
+TQObject *csharp_connect_QWidget (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQWidget*));
-QObject *csharp_connect_intQIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QIconViewItem*));
+TQObject *csharp_connect_intQIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQIconViewItem*));
-QObject *csharp_connect_intQListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QListBoxItem*));
+TQObject *csharp_connect_intQListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQListBoxItem*));
-QObject *csharp_connect_intbool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,bool));
+TQObject *csharp_connect_intbool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,bool));
-QObject *csharp_connect_intint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int));
+TQObject *csharp_connect_intint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int));
-QObject *csharp_connect_intintint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int,int));
+TQObject *csharp_connect_intintint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int,int));
} // extern "C"
diff --git a/qtsharp/src/tests/lookuptest.cs b/qtsharp/src/tests/lookuptest.cs
index 9882678f..6cfcad3d 100644
--- a/qtsharp/src/tests/lookuptest.cs
+++ b/qtsharp/src/tests/lookuptest.cs
@@ -12,28 +12,28 @@ namespace Qt {
using Qt;
using System;
- public class LookupTest : QVBox, IDisposable {
+ public class LookupTest : TQVBox, IDisposable {
public LookupTest() : base (null)
{
- QPushButton button = new QPushButton ("Quit", this);
- QPushButton button2 = (QPushButton)QtSupport.LookupObject (button.Ptr); // Lookup a child object that exists in C#
+ TQPushButton button = new TQPushButton ("Quit", this);
+ TQPushButton button2 = (TQPushButton)QtSupport.LookupObject (button.Ptr); // Lookup a child object that exists in C#
if (button.GetHashCode () != button2.GetHashCode ())
Console.WriteLine ("ERROR: Hash codes differ for button and button2!");
- QSize size = button2.SizeHint (); // Wrap a non-C# object. Lookup is called from the C# sizeHint method.
- QSize size2 = (QSize)QtSupport.LookupObject (size.Ptr);
+ TQSize size = button2.SizeHint (); // Wrap a non-C# object. Lookup is called from the C# sizeHint method.
+ TQSize size2 = (TQSize)QtSupport.LookupObject (size.Ptr);
if (size.GetHashCode () != size2.GetHashCode ())
Console.WriteLine ("ERROR: Hash codes differ for size and size2!");
- Connect (button, SIGNAL ("clicked()"), QObject.qApp, SLOT ("Quit()"));
+ Connect (button, TQT_SIGNAL ("clicked()"), TQObject.qApp, TQT_SLOT ("Quit()"));
}
public static void Main (string[] args)
{
- QApplication a = new QApplication (args);
+ TQApplication a = new TQApplication (args);
LookupTest lt = new LookupTest ();
a.SetMainWidget (lt);
lt.Show ();
diff --git a/qtsharp/src/uicsharp/uicsharp.cs b/qtsharp/src/uicsharp/uicsharp.cs
index a2553d23..62a67757 100644
--- a/qtsharp/src/uicsharp/uicsharp.cs
+++ b/qtsharp/src/uicsharp/uicsharp.cs
@@ -63,7 +63,7 @@ namespace QtSharp {
try {
String []dummyargs=new String[0];
- QApplication dummyapp=new QApplication(dummyargs,false);
+ TQApplication dummyapp=new TQApplication(dummyargs,false);
qtAssembly=Assembly.GetAssembly(dummyapp.GetType());
// qtAssembly=Assembly.Load("Qt.dll");
Console.WriteLine("CodeBase="+qtAssembly.CodeBase);
@@ -225,11 +225,11 @@ namespace QtSharp {
{
if (menubarElement==null) return;
writer.WriteLine("\t//Menubar member fields");
- writer.WriteLine("\t QMenuBar menubar;");
+ writer.WriteLine("\t TQMenuBar menubar;");
foreach (XmlNode node in menubarElement.ChildNodes) {
XmlElement el=node as XmlElement;
if (el.Name=="item") {
- writer.WriteLine("\tpublic QPopupMenu {0};",el.GetAttribute("name"));
+ writer.WriteLine("\tpublic TQPopupMenu {0};",el.GetAttribute("name"));
}
}
}
@@ -241,7 +241,7 @@ namespace QtSharp {
foreach (XmlNode node in actionsElement.ChildNodes) {
XmlElement el=node as XmlElement;
if (el.Name=="action") {
- writer.WriteLine("\tpublic QAction {0};",getName(el));
+ writer.WriteLine("\tpublic TQAction {0};",getName(el));
}
}
}
@@ -253,7 +253,7 @@ namespace QtSharp {
foreach (XmlNode node in toolbarsElement.ChildNodes) {
XmlElement el=node as XmlElement;
if (el.Name=="toolbar") {
- writer.WriteLine("\tpublic QToolBar {0};",getName(el));
+ writer.WriteLine("\tpublic TQToolBar {0};",getName(el));
}
}
}
@@ -334,7 +334,7 @@ namespace QtSharp {
tmp=tmp.NextSibling as XmlElement;
String slot=tmp.InnerText;
- writer.WriteLine("\t\tQObject.Connect({0},SIGNAL(\"{1}\"),{2},SLOT(\"{3}\"));",
+ writer.WriteLine("\t\tQObject.Connect({0},TQT_SIGNAL(\"{1}\"),{2},TQT_SLOT(\"{3}\"));",
sender,signal,receiver,slot);
}
break;
@@ -346,7 +346,7 @@ namespace QtSharp {
private void createConstructor()
{
//Later handle non qwidgets better (dialog,....)
- writer.WriteLine("\n\tpublic "+className+"(QWidget parent, String name) :base(parent, name) {");
+ writer.WriteLine("\n\tpublic "+className+"(TQWidget parent, String name) :base(parent, name) {");
writer.WriteLine("\t\tif (name==null) SetName(\""+className+"\");");
setupImages();
setupActions();
@@ -370,7 +370,7 @@ namespace QtSharp {
writer.WriteLine("\t//images");
foreach (XmlNode node in imagesElement.ChildNodes) {
XmlElement el=node as XmlElement;
- writer.WriteLine("\t\t{0}=new QPixmap({1}_data);",
+ writer.WriteLine("\t\t{0}=new TQPixmap({1}_data);",
el.GetAttribute("name"),el.GetAttribute("name"));
}
}
@@ -382,7 +382,7 @@ namespace QtSharp {
foreach (XmlNode aNode in actionsElement.ChildNodes) {
XmlElement action=aNode as XmlElement;
if (action.Name!="action") continue;
- writer.WriteLine("\t\t{0}= new QAction(this,\"{1}\");",getName(action),getName(action));
+ writer.WriteLine("\t\t{0}= new TQAction(this,\"{1}\");",getName(action),getName(action));
foreach (XmlNode pNode in action.ChildNodes) {
XmlElement prop=pNode as XmlElement;
if (prop.Name!="property") continue;
@@ -398,14 +398,14 @@ namespace QtSharp {
if (menubarElement==null) return;
writer.WriteLine("\t//menubar");
String barname=getName(menubarElement);
- writer.WriteLine("\t\t{0}=new QMenuBar(this,\"{1}\");",barname,barname);
+ writer.WriteLine("\t\t{0}=new TQMenuBar(this,\"{1}\");",barname,barname);
int count=0;
foreach (XmlNode mNode in menubarElement.ChildNodes) {
XmlElement item=mNode as XmlElement;
if (item.Name!="item") continue;
String submenu_name=item.GetAttribute("name");
String submenu_text=stringify(item.GetAttribute("text"));
- writer.WriteLine("\t\t{0}=new QPopupMenu(this);",submenu_name);
+ writer.WriteLine("\t\t{0}=new TQPopupMenu(this);",submenu_name);
foreach (XmlNode node in item.ChildNodes) {
XmlElement element=node as XmlElement;
@@ -428,7 +428,7 @@ namespace QtSharp {
XmlElement toolbar=tNode as XmlElement;
if (toolbar.Name!="toolbar") continue;
String varname=getName(toolbar);
- writer.WriteLine("\t\t{0}=new QToolBar(this,\"{1}\");",varname,varname);
+ writer.WriteLine("\t\t{0}=new TQToolBar(this,\"{1}\");",varname,varname);
writer.WriteLine("\t\tthis.AddDockWindow({0},(Qt.Dock){1},false);",varname,toolbar.GetAttribute("dock"));
foreach (XmlNode node in toolbar.ChildNodes) {
XmlElement element=node as XmlElement;
@@ -473,7 +473,7 @@ namespace QtSharp {
private void widgetAdd(String parname,XmlElement par, XmlElement obj)
{
if (par==widgetElement) {
- if (par.GetAttribute("class")=="QWizard")
+ if (par.GetAttribute("class")=="TQWizard")
{
writer.WriteLine("\t\tAddPage("+getName(obj)+", "+getName(obj)+".Caption());");
}
@@ -486,7 +486,7 @@ namespace QtSharp {
else writer.WriteLine("\t\t"+parname+".Add("+getName(obj)+");");
}
else switch(par.GetAttribute("class")) {
- case "QTabWidget": writer.WriteLine("\t\t"+parname+".InsertTab("+getName(obj)+",\"\");");
+ case "TQTabWidget": writer.WriteLine("\t\t"+parname+".InsertTab("+getName(obj)+",\"\");");
break;
default: break;
}
@@ -575,10 +575,10 @@ namespace QtSharp {
break;
}
}
- writer.WriteLine("\t\tQSpacerItem {0}=new QSpacerItem({1},{2},{3},{4});",
+ writer.WriteLine("\t\tQSpacerItem {0}=new TQSpacerItem({1},{2},{3},{4});",
name,shx,shy,
- (orientation=="VERTICAL")?"Qt.QSizePolicy.SizeType.Minimum":("Qt.QSizePolicy.SizeType."+toPascal(sizeType)),
- (orientation!="VERTICAL")?"Qt.QSizePolicy.SizeType.Minimum":("Qt.QSizePolicy.SizeType."+toPascal(sizeType)));
+ (orientation=="VERTICAL")?"Qt.TQSizePolicy.SizeType.Minimum":("Qt.TQSizePolicy.SizeType."+toPascal(sizeType)),
+ (orientation!="VERTICAL")?"Qt.TQSizePolicy.SizeType.Minimum":("Qt.TQSizePolicy.SizeType."+toPascal(sizeType)));
}
int layoutcnt=1;
@@ -600,11 +600,11 @@ namespace QtSharp {
parent=obj.GetAttribute("uicsharp_parent");
switch (obj.Name) {
- case "vbox": writer.WriteLine("\t\t"+(privateLayout?"QVBoxLayout ":"")+name+"= new QVBoxLayout("+
+ case "vbox": writer.WriteLine("\t\t"+(privateLayout?"TQVBoxLayout ":"")+name+"= new TQVBoxLayout("+
((parent==null)?"":parent)+");");
setupLayout(name,obj);
return obj;
- case "hbox": writer.WriteLine("\t\t"+(privateLayout?"QHBoxLayout ":"")+name+"= new QHBoxLayout("+
+ case "hbox": writer.WriteLine("\t\t"+(privateLayout?"TQHBoxLayout ":"")+name+"= new TQHBoxLayout("+
((parent==null)?"":parent)+");");
setupLayout(name,obj);
return obj;
@@ -647,7 +647,7 @@ namespace QtSharp {
rows=(tmprows<rows)?rows:tmprows;
}
}
- writer.WriteLine("\t\t"+ (privateLayout?"QGridLayout ":"")+name +"= new QGridLayout ("+
+ writer.WriteLine("\t\t"+ (privateLayout?"TQGridLayout ":"")+name +"= new TQGridLayout ("+
((parent==null)?"":(parent+", "))+rows+", "+cols+");");
setupLayout(name,obj);
return obj;
@@ -696,7 +696,7 @@ namespace QtSharp {
private void widgetType(XmlElement obj, ref String typename, ref XmlElement subcontainer, bool write)
{
typename=obj.GetAttribute("class");
- if ((typename!="QGroupBox") && (typename!="ButtonGroup")) return;
+ if ((typename!="TQGroupBox") && (typename!="ButtonGroup")) return;
foreach (XmlNode node in obj.ChildNodes) {
if (elementType(node as XmlElement)==ElementType.LayoutType) {
XmlElement el =node as XmlElement;
@@ -708,17 +708,17 @@ namespace QtSharp {
el.SetAttribute("uicsharp_alignment","(int)Qt.AlignmentFlags.AlignTop");
switch (el.Name) {
- case "vbox": typename="QGroupBox";
+ case "vbox": typename="TQGroupBox";
if (write)
- writer.WriteLine("\t\t QVBoxLayout "+el.GetAttribute("uicsharp_name")+";");
+ writer.WriteLine("\t\t TQVBoxLayout "+el.GetAttribute("uicsharp_name")+";");
return;
- case "hbox": typename="QGroupBox";
+ case "hbox": typename="TQGroupBox";
if (write)
- writer.WriteLine("\t\t QHBoxLayout "+el.GetAttribute("uicsharp_name")+";");
+ writer.WriteLine("\t\t TQHBoxLayout "+el.GetAttribute("uicsharp_name")+";");
return;
- case "grid": typename="QGroupBox";
+ case "grid": typename="TQGroupBox";
if (write)
- writer.WriteLine("\t\t QGridLayout "+el.GetAttribute("uicsharp_name")+";");
+ writer.WriteLine("\t\t TQGridLayout "+el.GetAttribute("uicsharp_name")+";");
return;
@@ -769,7 +769,7 @@ namespace QtSharp {
switch (value.Name) {
case "string" : if (prop.GetAttribute("name")!="accel") sc += "\""+stringify(value.InnerText)+"\"";
- else sc+="new QKeySequence(\""+stringify(value.InnerText)+"\")";
+ else sc+="new TQKeySequence(\""+stringify(value.InnerText)+"\")";
break;
case "cstring" : sc += value.InnerText;
break;
@@ -789,9 +789,9 @@ namespace QtSharp {
}
}
if ((varName=="this") && (methodName=="SetGeometry"))
- sc = "Resize ((new QSize("+rw+", "+rh+")).ExpandedTo(SizeHint())";
+ sc = "Resize ((new TQSize("+rw+", "+rh+")).ExpandedTo(SizeHint())";
else
- sc += "new QRect("+rx+", "+ry+", "+rw+", "+rh+")";
+ sc += "new TQRect("+rx+", "+ry+", "+rw+", "+rh+")";
break;
case "enum" :
@@ -810,7 +810,7 @@ namespace QtSharp {
}
break;
- case "iconset" : sc += "new QIconSet("+value.InnerText+")";
+ case "iconset" : sc += "new TQIconSet("+value.InnerText+")";
break;
case "bool" : sc += value.InnerText;
break;
@@ -923,7 +923,7 @@ namespace QtSharp {
{
writer.WriteLine("\tpublic static void Main (String[] args)\n"+
"\t{\n"+
- "\t\tQApplication app = new QApplication (args);\n"+
+ "\t\tQApplication app = new TQApplication (args);\n"+
"\t\t"+className+" test = new "+className+" (null,\"\");\n"+
"\t\tapp.SetMainWidget (test);\n"+
"\t\ttest.Show ();\n"+