diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /qtsharp/src/examples/tutorials | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'qtsharp/src/examples/tutorials')
-rw-r--r-- | qtsharp/src/examples/tutorials/t1.cs | 4 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t2.cs | 10 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t3.cs | 12 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t4.cs | 12 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t5.cs | 18 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t6.cs | 24 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t7.cs | 26 |
7 files changed, 53 insertions, 53 deletions
diff --git a/qtsharp/src/examples/tutorials/t1.cs b/qtsharp/src/examples/tutorials/t1.cs index b5498d7a..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) { - TTQApplication a = new TTQApplication (args); + TQApplication a = new TQApplication (args); - TTQPushButton hello = new TTQPushButton ("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 84af5a37..5dbe07d1 100644 --- a/qtsharp/src/examples/tutorials/t2.cs +++ b/qtsharp/src/examples/tutorials/t2.cs @@ -9,16 +9,16 @@ public class Example { public static int Main (String[] args) { - TTQApplication a = new TTQApplication (args); + TQApplication a = new TQApplication (args); - TTQPushButton quit = new TTQPushButton ("Quit", null); + TQPushButton quit = new TQPushButton ("Quit", null); // In C++, the second parameter is 0 (null pointer) quit.Resize (75, 30); - quit.SetFont (new TTQFont ("Times", 18, TTQFont.Weight.Bold)); - // In C++, TTQFont::Bold is sufficient + quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold)); + // In C++, TQFont::Bold is sufficient - TTQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") ); + 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); diff --git a/qtsharp/src/examples/tutorials/t3.cs b/qtsharp/src/examples/tutorials/t3.cs index 806c5184..26fece72 100644 --- a/qtsharp/src/examples/tutorials/t3.cs +++ b/qtsharp/src/examples/tutorials/t3.cs @@ -10,16 +10,16 @@ public class Example { public static int Main (String[] args) { - TTQApplication a = new TTQApplication (args); + TQApplication a = new TQApplication (args); - TTQVBox box = new TTQVBox (); + TQVBox box = new TQVBox (); box.Resize (200, 120); - TTQPushButton quit = new TTQPushButton ("Quit", box); - quit.SetFont (new TTQFont ("Times", 18, TTQFont.Weight.Bold)); - // In C++, TTQFont::Bold is sufficient + TQPushButton quit = new TQPushButton ("Quit", box); + quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold)); + // In C++, TQFont::Bold is sufficient - TTQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") ); + 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); diff --git a/qtsharp/src/examples/tutorials/t4.cs b/qtsharp/src/examples/tutorials/t4.cs index 68b3c26a..e868cc7e 100644 --- a/qtsharp/src/examples/tutorials/t4.cs +++ b/qtsharp/src/examples/tutorials/t4.cs @@ -5,17 +5,17 @@ using System; using Qt; -public class MyWidget : TTQWidget { +public class MyWidget : TQWidget { - public MyWidget (TTQWidget 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); - TTQPushButton quit = new TTQPushButton ("Quit", this, "quit"); + TQPushButton quit = new TQPushButton ("Quit", this, "quit"); quit.SetGeometry (62, 40, 75, 30); - quit.SetFont (new TTQFont ("Times", 18, TTQFont.Weight.Bold) ); + quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold) ); Connect ( quit, TQT_SIGNAL ("clicked()"), qApp, TQT_SLOT ("Quit()") ); // In C++, qApp is a global variable. Here it's a property of the TQObject @@ -23,7 +23,7 @@ public class MyWidget : TTQWidget { // static method connect(). } - public MyWidget (TTQWidget 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) { - TTQApplication a = new TTQApplication (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 1430e6f3..0488969d 100644 --- a/qtsharp/src/examples/tutorials/t5.cs +++ b/qtsharp/src/examples/tutorials/t5.cs @@ -5,19 +5,19 @@ using System; using Qt; -public class MyWidget : TTQVBox { +public class MyWidget : TQVBox { - public MyWidget (TTQWidget 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) { - TTQPushButton quit = new TTQPushButton ("Quit", this, "quit"); - quit.SetFont ( new TTQFont ("Times", 18, TTQFont.Weight.Bold) ); + TQPushButton quit = new TQPushButton ("Quit", this, "quit"); + quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) ); - TTQObject.Connect ( quit, TQT_SIGNAL ("clicked()"), qApp, TQT_SLOT ("Quit()") ); + TQObject.Connect ( quit, TQT_SIGNAL ("clicked()"), qApp, TQT_SLOT ("Quit()") ); - TTQLCDNumber lcd = new TTQLCDNumber (2, this, "lcd" ); + TQLCDNumber lcd = new TQLCDNumber (2, this, "lcd" ); - TTQSlider slider = new TTQSlider (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); @@ -25,7 +25,7 @@ public class MyWidget : TTQVBox { Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") ); } - public MyWidget (TTQWidget 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) { - TTQApplication a = new TTQApplication (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 9912650b..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 : TTQVBox { +public class LCDRange : TQVBox { - public LCDRange (TTQWidget 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) { - TTQLCDNumber lcd = new TTQLCDNumber (2, this, "lcd" ); - TTQSlider slider = new TTQSlider (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, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") ); } - public LCDRange (TTQWidget 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 : TTQVBox { +public class MyWidget : TQVBox { - MyWidget (TTQWidget parent, String name) : base (parent, name) + MyWidget (TQWidget parent, String name) : base (parent, name) { - TTQPushButton quit = new TTQPushButton ("Quit", this, "quit"); - quit.SetFont ( new TTQFont ("Times", 18, TTQFont.Weight.Bold) ); + TQPushButton quit = new TQPushButton ("Quit", this, "quit"); + quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) ); Connect ( quit, TQT_SIGNAL ("clicked()"), qApp, TQT_SLOT ("Quit()") ); - TTQGrid grid = new TTQGrid (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 (TTQWidget 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) { - TTQApplication a = new TTQApplication (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 ba9e758d..e1891d26 100644 --- a/qtsharp/src/examples/tutorials/t7.cs +++ b/qtsharp/src/examples/tutorials/t7.cs @@ -9,15 +9,15 @@ using System; using Qt; [DeclareQtSignal ("valueChanged(int)")] -public class LCDRange : TTQVBox { +public class LCDRange : TQVBox { - TTQSlider slider; + TQSlider slider; - public LCDRange (TTQWidget 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) { - TTQLCDNumber lcd = new TTQLCDNumber (2, this, "lcd" ); - slider = new TTQSlider (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); @@ -25,7 +25,7 @@ public class LCDRange : TTQVBox { Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), TQT_SIGNAL ("valueChanged(int)")); } - public LCDRange (TTQWidget 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 : TTQVBox { } } -public class MyWidget : TTQVBox { +public class MyWidget : TQVBox { - MyWidget (TTQWidget parent, String name) : base (parent, name) + MyWidget (TQWidget parent, String name) : base (parent, name) { - TTQPushButton quit = new TTQPushButton ("Quit", this, "quit"); - quit.SetFont ( new TTQFont ("Times", 18, TTQFont.Weight.Bold) ); + TQPushButton quit = new TQPushButton ("Quit", this, "quit"); + quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) ); Connect ( quit, TQT_SIGNAL ("clicked()"), qApp, TQT_SLOT ("Quit()") ); - TTQGrid grid = new TTQGrid (4, this); + TQGrid grid = new TQGrid (4, this); LCDRange previous = null; @@ -60,7 +60,7 @@ public class MyWidget : TTQVBox { } } - public MyWidget (TTQWidget 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) { - TTQApplication a = new TTQApplication (args); + TQApplication a = new TQApplication (args); MyWidget w = new MyWidget (); a.SetMainWidget (w); |