[Kde-bindings] KDE/kdebindings/csharp/ktexteditor/examples/editor
Arno Rehn
kde at arnorehn.de
Thu Jul 24 21:07:33 UTC 2008
SVN commit 837502 by arnorehn:
* Use KTextEditor.Global.Editor() instead of KTextEditor.Editor,
which is actually a class.
CCMAIL: kde-bindings at kde.org
M +3 -3 editor.cs
--- trunk/KDE/kdebindings/csharp/ktexteditor/examples/editor/editor.cs #837501:837502
@@ -11,10 +11,10 @@
KParts.MainWindow w = new KParts.MainWindow(null, 0);
-// This doesn't compile, not sure why:
-// KTextEditor.Editor editor = KTextEditor.Editor("katepart");
+ KTextEditor.Editor editor = KTextEditor.Global.Editor("katepart");
- KTextEditor.Editor editor = KTextEditor.EditorChooser.Editor();
+// other possibility
+// KTextEditor.Editor editor = KTextEditor.EditorChooser.Editor();
editor.SetSimpleMode(true);
KTextEditor.Document doc = editor.CreateDocument(w);
KTextEditor.View view = doc.CreateView(w);
More information about the Kde-bindings
mailing list