diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtsharp/src/examples/samples/display.cs | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'qtsharp/src/examples/samples/display.cs')
-rw-r--r-- | qtsharp/src/examples/samples/display.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/qtsharp/src/examples/samples/display.cs b/qtsharp/src/examples/samples/display.cs index 9f2f4939..00703b4b 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 : TQMainWindow { + public class Display : TTQMainWindow { private TextArea textarea; - private TQScrollView scrollview; - private TQMenuBar menubar; - private TQPopupMenu filemenu, aboutmenu; + private TTQScrollView scrollview; + private TTQMenuBar menubar; + private TTQPopupMenu filemenu, aboutmenu; - private class TextArea : TQTextEdit { + private class TextArea : TTQTextEdit { - public TextArea (TQWidget parent) : base (parent) + public TextArea (TTQWidget parent) : base (parent) { - TQFile file = new TQFile ("display.cs"); + TTQFile file = new TTQFile ("display.cs"); if ( file.Open(1) ) { - TQTextStream ts = new TQTextStream (file); + TTQTextStream ts = new TTQTextStream (file); this.SetText (ts.Read ()); this.SetTabStopWidth (30); } @@ -25,13 +25,13 @@ namespace QtSamples { public Display () { - filemenu = new TQPopupMenu (null, "filemenu"); + filemenu = new TTQPopupMenu (null, "filemenu"); filemenu.InsertItem ("&Quit", qApp, TQT_SLOT ("quit()")); - aboutmenu = new TQPopupMenu(null, "aboutmenu"); + aboutmenu = new TTQPopupMenu(null, "aboutmenu"); aboutmenu.InsertItem("&About Qt-Sharp", this, TQT_SLOT("slotAbout()")); - menubar = new TQMenuBar(this, ""); + menubar = new TTQMenuBar(this, ""); menubar.InsertItem("&File", filemenu); menubar.InsertItem("&About", aboutmenu); @@ -42,7 +42,7 @@ namespace QtSamples { public void slotAbout () { - TQMessageBox.Information ( + TTQMessageBox.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) { - TQApplication app = new TQApplication (args); + TTQApplication app = new TTQApplication (args); Display demo = new Display (); demo.SetCaption ("Qt-Sharp-0.7!"); app.SetMainWidget (demo); |