summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'qtsharp/src/examples')
-rw-r--r--qtsharp/src/examples/samples/display.cs4
-rw-r--r--qtsharp/src/examples/samples/emit.cs4
-rw-r--r--qtsharp/src/examples/samples/hello.cs2
-rw-r--r--qtsharp/src/examples/samples/mandelbrot.cs2
-rw-r--r--qtsharp/src/examples/samples/mandelbrot2.cs2
-rw-r--r--qtsharp/src/examples/samples/qstring-slot.cs2
-rw-r--r--qtsharp/src/examples/samples/quantumfractals.cs38
-rw-r--r--qtsharp/src/examples/samples/scribblewindow.cs26
-rw-r--r--qtsharp/src/examples/tutorials/t2.cs4
-rw-r--r--qtsharp/src/examples/tutorials/t3.cs4
-rw-r--r--qtsharp/src/examples/tutorials/t4.cs2
-rw-r--r--qtsharp/src/examples/tutorials/t5.cs4
-rw-r--r--qtsharp/src/examples/tutorials/t6.cs4
-rw-r--r--qtsharp/src/examples/tutorials/t7.cs10
14 files changed, 54 insertions, 54 deletions
diff --git a/qtsharp/src/examples/samples/display.cs b/qtsharp/src/examples/samples/display.cs
index daf8daa0..8d94b5f8 100644
--- a/qtsharp/src/examples/samples/display.cs
+++ b/qtsharp/src/examples/samples/display.cs
@@ -26,10 +26,10 @@ namespace QtSamples {
public Display ()
{
filemenu = new TQPopupMenu (null, "filemenu");
- filemenu.InsertItem ("&Quit", tqApp, TQT_SLOT ("quit()"));
+ filemenu.InsertItem ("&Quit", tqApp, TQ_SLOT ("quit()"));
aboutmenu = new TQPopupMenu(null, "aboutmenu");
- aboutmenu.InsertItem("&About Qt-Sharp", this, TQT_SLOT("slotAbout()"));
+ aboutmenu.InsertItem("&About Qt-Sharp", this, TQ_SLOT("slotAbout()"));
menubar = new TQMenuBar(this, "");
menubar.InsertItem("&File", filemenu);
diff --git a/qtsharp/src/examples/samples/emit.cs b/qtsharp/src/examples/samples/emit.cs
index 125166a2..08a27555 100644
--- a/qtsharp/src/examples/samples/emit.cs
+++ b/qtsharp/src/examples/samples/emit.cs
@@ -13,8 +13,8 @@ namespace QtSamples {
{
TQPushButton pb = new TQPushButton ("Papa Smurf", this);
- Connect (pb, TQT_SIGNAL ("clicked ()"), TQT_SLOT ("DoEmit ()"));
- Connect (this, TQT_SIGNAL ("MySignal ()"), TQT_SLOT ("PrintStuff ()"));
+ Connect (pb, TQ_SIGNAL ("clicked ()"), TQ_SLOT ("DoEmit ()"));
+ Connect (this, TQ_SIGNAL ("MySignal ()"), TQ_SLOT ("PrintStuff ()"));
}
public void DoEmit ()
diff --git a/qtsharp/src/examples/samples/hello.cs b/qtsharp/src/examples/samples/hello.cs
index 1039aa34..524c4d4c 100644
--- a/qtsharp/src/examples/samples/hello.cs
+++ b/qtsharp/src/examples/samples/hello.cs
@@ -25,7 +25,7 @@ namespace QtSamples {
public HelloWorld () : base (null)
{
TQPushButton pb = new TQPushButton ("Hello Qt-Sharp-0.7!", this);
- TQObject.Connect (pb, TQT_SIGNAL ("clicked()"), this, TQT_SLOT("SlotClicked()"));
+ TQObject.Connect (pb, TQ_SIGNAL ("clicked()"), this, TQ_SLOT("SlotClicked()"));
}
public void SlotClicked ()
diff --git a/qtsharp/src/examples/samples/mandelbrot.cs b/qtsharp/src/examples/samples/mandelbrot.cs
index 3850b781..77acb98d 100644
--- a/qtsharp/src/examples/samples/mandelbrot.cs
+++ b/qtsharp/src/examples/samples/mandelbrot.cs
@@ -213,7 +213,7 @@ public class ImageDialog : TQDialog {
pixmapLabel.SetScaledContents (true);
dialogLayout.AddWidget (pixmapLabel);
- TQObject.Connect (redrawButton, TQT_SIGNAL ("clicked()"), this, TQT_SLOT ("Redraw()"));
+ TQObject.Connect (redrawButton, TQ_SIGNAL ("clicked()"), this, TQ_SLOT ("Redraw()"));
Redraw ();
}
diff --git a/qtsharp/src/examples/samples/mandelbrot2.cs b/qtsharp/src/examples/samples/mandelbrot2.cs
index 175ef9bc..08f7bc56 100644
--- a/qtsharp/src/examples/samples/mandelbrot2.cs
+++ b/qtsharp/src/examples/samples/mandelbrot2.cs
@@ -272,7 +272,7 @@ public class ImageDialog : TQDialog {
//pixmapLabel.SetPixmap( new TQPixmap( image ) );
- TQObject.Connect (redrawButton, TQT_SIGNAL ("clicked()"), pixmapLabel, TQT_SLOT ("Repaint()"));
+ TQObject.Connect (redrawButton, TQ_SIGNAL ("clicked()"), pixmapLabel, TQ_SLOT ("Repaint()"));
//Redraw ();
}
diff --git a/qtsharp/src/examples/samples/qstring-slot.cs b/qtsharp/src/examples/samples/qstring-slot.cs
index c0559f5b..be807ea0 100644
--- a/qtsharp/src/examples/samples/qstring-slot.cs
+++ b/qtsharp/src/examples/samples/qstring-slot.cs
@@ -15,7 +15,7 @@ public class MyWidget : TQVBox
label = new TQLabel( this, "label" );
label.SetText("Default");
- TQObject.Connect( lineEdit, TQT_SIGNAL("textChanged(TQString)"),
+ TQObject.Connect( lineEdit, TQ_SIGNAL("textChanged(TQString)"),
label, "SetText(TQString)" );
}
diff --git a/qtsharp/src/examples/samples/quantumfractals.cs b/qtsharp/src/examples/samples/quantumfractals.cs
index 3020eae6..a213f948 100644
--- a/qtsharp/src/examples/samples/quantumfractals.cs
+++ b/qtsharp/src/examples/samples/quantumfractals.cs
@@ -37,9 +37,9 @@ namespace Qf {
//Setup the filemenu
filemenu = new TQPopupMenu (null, "filemenu");
- filemenu.InsertItem ("&Screenshot", display, TQT_SLOT ("SlotScreenshot()"));
+ filemenu.InsertItem ("&Screenshot", display, TQ_SLOT ("SlotScreenshot()"));
filemenu.InsertSeparator ();
- filemenu.InsertItem ("&Quit", tqApp, TQT_SLOT ("quit()"));
+ filemenu.InsertItem ("&Quit", tqApp, TQ_SLOT ("quit()"));
//Setup the shapemenu
shapemenu = new TQPopupMenu (null, "typemenu");
@@ -52,12 +52,12 @@ namespace Qf {
shapemenu.InsertItem( "&Icosidodecahedron", 6);
//Connect the shapemenu
- TQObject.Connect (shapemenu, TQT_SIGNAL ("activated(int)"),
- display, TQT_SLOT("SlotShapeMenu(int)"));
+ TQObject.Connect (shapemenu, TQ_SIGNAL ("activated(int)"),
+ display, TQ_SLOT("SlotShapeMenu(int)"));
//Setup the settingsmenu
settingsmenu = new TQPopupMenu (null, "settingsmenu");
- settingsmenu.InsertItem ("&Alpha", display, TQT_SLOT ("SlotSetAlpha()"));
+ settingsmenu.InsertItem ("&Alpha", display, TQ_SLOT ("SlotSetAlpha()"));
//Setup the menubar
menubar = new TQMenuBar (this, "");
@@ -144,20 +144,20 @@ namespace Qf {
buttons.AddWidget (intense);
//Connect the buttons and 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 (tqApp, TQT_SIGNAL ("lastWindowClosed ()"),
- this, TQT_SLOT ("SlotQuit ()"));
+ TQObject.Connect (start, TQ_SIGNAL ("clicked()"),
+ this, TQ_SLOT ("SlotStart()"));
+ TQObject.Connect (stop, TQ_SIGNAL ("clicked()"),
+ this, TQ_SLOT ("SlotStop()"));
+ TQObject.Connect (reset, TQ_SIGNAL ("clicked()"),
+ this, TQ_SLOT ("SlotReset()"));
+ TQObject.Connect (gray, TQ_SIGNAL ("clicked()"),
+ this, TQ_SLOT ("SlotGray()"));
+ TQObject.Connect (intense, TQ_SIGNAL ("clicked()"),
+ this, TQ_SLOT ("SlotIntense()"));
+ TQObject.Connect (buffer, TQ_SIGNAL ("Painted()"),
+ this, TQ_SLOT ("SlotSetLabels()"));
+ TQObject.Connect (tqApp, TQ_SIGNAL ("lastWindowClosed ()"),
+ this, TQ_SLOT ("SlotQuit ()"));
//Layout labels
labels = new TQVBoxLayout (layout);
diff --git a/qtsharp/src/examples/samples/scribblewindow.cs b/qtsharp/src/examples/samples/scribblewindow.cs
index 405b0e31..e078387c 100644
--- a/qtsharp/src/examples/samples/scribblewindow.cs
+++ b/qtsharp/src/examples/samples/scribblewindow.cs
@@ -36,18 +36,18 @@ namespace QtSamples {
ScribbleWindow () : base (null, null)
{
filemenu = new TQPopupMenu (null, "filemenu");
- filemenu.InsertItem ("&Load", this, TQT_SLOT ("SlotLoad()") );
- filemenu.InsertItem ("&Save", this, TQT_SLOT ("SlotSave()") );
+ filemenu.InsertItem ("&Load", this, TQ_SLOT ("SlotLoad()") );
+ filemenu.InsertItem ("&Save", this, TQ_SLOT ("SlotSave()") );
filemenu.InsertSeparator ();
- filemenu.InsertItem ("&Quit", tqApp, TQT_SLOT ("quit()"));
+ filemenu.InsertItem ("&Quit", tqApp, TQ_SLOT ("quit()"));
aboutmenu = new TQPopupMenu (null, "helpmenu");
- aboutmenu.InsertItem ("&About Qt-Sharp", this, TQT_SLOT ("SlotAboutQtSharp()"));
- aboutmenu.InsertItem ("&About Qt", this, TQT_SLOT ("SlotAboutQt()"));
+ aboutmenu.InsertItem ("&About Qt-Sharp", this, TQ_SLOT ("SlotAboutQtSharp()"));
+ aboutmenu.InsertItem ("&About Qt", this, TQ_SLOT ("SlotAboutQt()"));
menubar = new TQMenuBar (this, "");
menubar.InsertItem ("&File", filemenu);
- menubar.InsertItem ("&Color", this, TQT_SLOT("SlotColorChooser()"));
+ menubar.InsertItem ("&Color", this, TQ_SLOT("SlotColorChooser()"));
menubar.InsertItem ("&About", aboutmenu);
scrollview = new TQScrollView (this);
@@ -58,12 +58,12 @@ namespace QtSamples {
this.SetCentralWidget (scrollview);
SetMaximumSize (Width (), Height () - menubar.Height ());
- 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)") );
+ TQObject.Connect (this, TQ_SIGNAL ("colorChanged(TQColor)"),
+ scribblearea, TQ_SLOT ("SlotSetColor(TQColor)") );
+ TQObject.Connect (this, TQ_SIGNAL ("load(TQString)"),
+ scribblearea, TQ_SLOT ("PerformLoad(TQString)") );
+ TQObject.Connect (this, TQ_SIGNAL ("save(TQString)"),
+ scribblearea, TQ_SLOT ("PerformSave(TQString)") );
}
public void SlotLoad ()
@@ -123,7 +123,7 @@ namespace QtSamples {
SetBackgroundMode (Qt.BackgroundMode.NoBackground);
popupmenu = new TQPopupMenu();
- popupmenu.InsertItem ("&Clear", this, TQT_SLOT ("SlotClearArea()") );
+ popupmenu.InsertItem ("&Clear", this, TQ_SLOT ("SlotClearArea()") );
mouseMoveEvent += new MouseMoveEvent (MouseMoved);
mousePressEvent += new MousePressEvent (MousePressed);
diff --git a/qtsharp/src/examples/tutorials/t2.cs b/qtsharp/src/examples/tutorials/t2.cs
index 5dbe07d1..3692e8f4 100644
--- a/qtsharp/src/examples/tutorials/t2.cs
+++ b/qtsharp/src/examples/tutorials/t2.cs
@@ -18,8 +18,8 @@ public class Example {
quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold));
// In C++, TQFont::Bold is sufficient
- TQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") );
- // TQT_SIGNAL and TQT_SLOT are static functions of QtSupport
+ TQObject.Connect ( quit, QtSupport.TQ_SIGNAL ("clicked()"), a, QtSupport.TQ_SLOT ("Quit()") );
+ // TQ_SIGNAL and TQ_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 26fece72..90e9b803 100644
--- a/qtsharp/src/examples/tutorials/t3.cs
+++ b/qtsharp/src/examples/tutorials/t3.cs
@@ -19,8 +19,8 @@ public class Example {
quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold));
// In C++, TQFont::Bold is sufficient
- TQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") );
- // TQT_SIGNAL and TQT_SLOT are static functions of QtSupport
+ TQObject.Connect ( quit, QtSupport.TQ_SIGNAL ("clicked()"), a, QtSupport.TQ_SLOT ("Quit()") );
+ // TQ_SIGNAL and TQ_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 b3e66a07..1e182bb2 100644
--- a/qtsharp/src/examples/tutorials/t4.cs
+++ b/qtsharp/src/examples/tutorials/t4.cs
@@ -17,7 +17,7 @@ public class MyWidget : TQWidget {
quit.SetGeometry (62, 40, 75, 30);
quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold) );
- Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") );
+ Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") );
// In C++, tqApp is a global variable. Here it's a property of the TQObject
// class, which we inherit, giving the same effect. We also inherit the
// static method connect().
diff --git a/qtsharp/src/examples/tutorials/t5.cs b/qtsharp/src/examples/tutorials/t5.cs
index 05ff5e96..4500af56 100644
--- a/qtsharp/src/examples/tutorials/t5.cs
+++ b/qtsharp/src/examples/tutorials/t5.cs
@@ -13,7 +13,7 @@ public class MyWidget : TQVBox {
TQPushButton quit = new TQPushButton ("Quit", this, "quit");
quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) );
- TQObject.Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") );
+ TQObject.Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") );
TQLCDNumber lcd = new TQLCDNumber (2, this, "lcd" );
@@ -22,7 +22,7 @@ public class MyWidget : TQVBox {
slider.SetRange (0, 99);
slider.SetValue (0);
- Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") );
+ Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), lcd, TQ_SLOT ("Display(int)") );
}
public MyWidget (TQWidget parent) : this (parent, "") {}
diff --git a/qtsharp/src/examples/tutorials/t6.cs b/qtsharp/src/examples/tutorials/t6.cs
index 910d13d1..90d94b5b 100644
--- a/qtsharp/src/examples/tutorials/t6.cs
+++ b/qtsharp/src/examples/tutorials/t6.cs
@@ -15,7 +15,7 @@ public class LCDRange : TQVBox {
slider.SetRange (0, 99);
slider.SetValue (0);
- Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") );
+ Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), lcd, TQ_SLOT ("Display(int)") );
}
public LCDRange (TQWidget parent) : this (parent, "") {}
@@ -31,7 +31,7 @@ public class MyWidget : TQVBox {
TQPushButton quit = new TQPushButton ("Quit", this, "quit");
quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) );
- Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") );
+ Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") );
TQGrid grid = new TQGrid (4, this);
diff --git a/qtsharp/src/examples/tutorials/t7.cs b/qtsharp/src/examples/tutorials/t7.cs
index 1372bf15..ecc9b244 100644
--- a/qtsharp/src/examples/tutorials/t7.cs
+++ b/qtsharp/src/examples/tutorials/t7.cs
@@ -21,8 +21,8 @@ public class LCDRange : TQVBox {
slider.SetRange (0, 99);
slider.SetValue (0);
- Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") );
- Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), TQT_SIGNAL ("valueChanged(int)"));
+ Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), lcd, TQ_SLOT ("Display(int)") );
+ Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), TQ_SIGNAL ("valueChanged(int)"));
}
public LCDRange (TQWidget parent) : this (parent, "") {}
@@ -43,7 +43,7 @@ public class MyWidget : TQVBox {
TQPushButton quit = new TQPushButton ("Quit", this, "quit");
quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) );
- Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") );
+ Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") );
TQGrid grid = new TQGrid (4, this);
@@ -53,8 +53,8 @@ public class MyWidget : TQVBox {
for ( int r = 0; r < 4; r++ ) {
LCDRange lr = new LCDRange (grid);
if (previous != null)
- Connect (lr, TQT_SIGNAL ("valueChanged(int)"),
- previous, TQT_SLOT ("SetValue(int)") );
+ Connect (lr, TQ_SIGNAL ("valueChanged(int)"),
+ previous, TQ_SLOT ("SetValue(int)") );
previous = lr;
}
}