PageRenderTime 42ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/qyoto-4.8.97/qscintilla/qsci/QsciLexerPython.cs

#
C# | 172 lines | 167 code | 4 blank | 1 comment | 0 complexity | 258da9a9f2fb3fc4ec8fafa822f9164f MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0
  1. //Auto-generated by kalyptus. DO NOT EDIT.
  2. namespace QScintilla {
  3. using System;
  4. using Qyoto;
  5. using System.Runtime.InteropServices;
  6. using System.Collections.Generic;
  7. [SmokeClass("QsciLexerPython")]
  8. public class QsciLexerPython : QsciLexer, IDisposable {
  9. protected QsciLexerPython(Type dummy) : base((Type) null) {}
  10. protected new void CreateProxy() {
  11. interceptor = new SmokeInvocation(typeof(QsciLexerPython), this);
  12. }
  13. private static SmokeInvocation staticInterceptor = null;
  14. static QsciLexerPython() {
  15. staticInterceptor = new SmokeInvocation(typeof(QsciLexerPython), null);
  16. }
  17. public enum IndentationWarning {
  18. NoWarning = 0,
  19. Inconsistent = 1,
  20. TabsAfterSpaces = 2,
  21. Spaces = 3,
  22. Tabs = 4,
  23. }
  24. public const int Default = 0;
  25. public const int Comment = 1;
  26. public const int Number = 2;
  27. public const int DoubleQuotedString = 3;
  28. public const int SingleQuotedString = 4;
  29. public const int Keyword = 5;
  30. public const int TripleSingleQuotedString = 6;
  31. public const int TripleDoubleQuotedString = 7;
  32. public const int ClassName = 8;
  33. public const int FunctionMethodName = 9;
  34. public const int Operator = 10;
  35. public const int Identifier = 11;
  36. public const int CommentBlock = 12;
  37. public const int UnclosedString = 13;
  38. public const int HighlightedIdentifier = 14;
  39. public const int Decorator = 15;
  40. public QsciLexerPython(QObject parent) : this((Type) null) {
  41. CreateProxy();
  42. interceptor.Invoke("QsciLexerPython#", "QsciLexerPython(QObject*)", typeof(void), typeof(QObject), parent);
  43. }
  44. public QsciLexerPython() : this((Type) null) {
  45. CreateProxy();
  46. interceptor.Invoke("QsciLexerPython", "QsciLexerPython()", typeof(void));
  47. }
  48. [SmokeMethod("language() const")]
  49. public override string Language() {
  50. return (string) interceptor.Invoke("language", "language() const", typeof(string));
  51. }
  52. [SmokeMethod("lexer() const")]
  53. public override string Lexer() {
  54. return (string) interceptor.Invoke("lexer", "lexer() const", typeof(string));
  55. }
  56. [SmokeMethod("autoCompletionWordSeparators() const")]
  57. public override List<string> AutoCompletionWordSeparators() {
  58. return (List<string>) interceptor.Invoke("autoCompletionWordSeparators", "autoCompletionWordSeparators() const", typeof(List<string>));
  59. }
  60. [SmokeMethod("blockLookback() const")]
  61. public override int BlockLookback() {
  62. return (int) interceptor.Invoke("blockLookback", "blockLookback() const", typeof(int));
  63. }
  64. [SmokeMethod("blockStart(int*) const")]
  65. public override string BlockStart(ref int style) {
  66. StackItem[] stack = new StackItem[2];
  67. stack[1].s_int = style;
  68. interceptor.Invoke("blockStart$", "blockStart(int*) const", stack);
  69. style = stack[1].s_int;
  70. object returnValue = ((GCHandle) stack[0].s_class).Target;
  71. #if DEBUG
  72. DebugGCHandle.Free((GCHandle) stack[0].s_class);
  73. #else
  74. ((GCHandle) stack[0].s_class).SynchronizedFree();
  75. #endif
  76. return (string) returnValue;
  77. }
  78. [SmokeMethod("blockStart() const")]
  79. public override string BlockStart() {
  80. return (string) interceptor.Invoke("blockStart", "blockStart() const", typeof(string));
  81. }
  82. [SmokeMethod("braceStyle() const")]
  83. public override int BraceStyle() {
  84. return (int) interceptor.Invoke("braceStyle", "braceStyle() const", typeof(int));
  85. }
  86. [SmokeMethod("defaultColor(int) const")]
  87. public override QColor DefaultColor(int style) {
  88. return (QColor) interceptor.Invoke("defaultColor$", "defaultColor(int) const", typeof(QColor), typeof(int), style);
  89. }
  90. [SmokeMethod("defaultEolFill(int) const")]
  91. public override bool DefaultEolFill(int style) {
  92. return (bool) interceptor.Invoke("defaultEolFill$", "defaultEolFill(int) const", typeof(bool), typeof(int), style);
  93. }
  94. [SmokeMethod("defaultFont(int) const")]
  95. public override QFont DefaultFont(int style) {
  96. return (QFont) interceptor.Invoke("defaultFont$", "defaultFont(int) const", typeof(QFont), typeof(int), style);
  97. }
  98. [SmokeMethod("defaultPaper(int) const")]
  99. public override QColor DefaultPaper(int style) {
  100. return (QColor) interceptor.Invoke("defaultPaper$", "defaultPaper(int) const", typeof(QColor), typeof(int), style);
  101. }
  102. [SmokeMethod("indentationGuideView() const")]
  103. public override int IndentationGuideView() {
  104. return (int) interceptor.Invoke("indentationGuideView", "indentationGuideView() const", typeof(int));
  105. }
  106. [SmokeMethod("keywords(int) const")]
  107. public override string Keywords(int set) {
  108. return (string) interceptor.Invoke("keywords$", "keywords(int) const", typeof(string), typeof(int), set);
  109. }
  110. [SmokeMethod("description(int) const")]
  111. public override string Description(int style) {
  112. return (string) interceptor.Invoke("description$", "description(int) const", typeof(string), typeof(int), style);
  113. }
  114. [SmokeMethod("refreshProperties()")]
  115. public override void RefreshProperties() {
  116. interceptor.Invoke("refreshProperties", "refreshProperties()", typeof(void));
  117. }
  118. public bool FoldComments() {
  119. return (bool) interceptor.Invoke("foldComments", "foldComments() const", typeof(bool));
  120. }
  121. public bool FoldQuotes() {
  122. return (bool) interceptor.Invoke("foldQuotes", "foldQuotes() const", typeof(bool));
  123. }
  124. public QsciLexerPython.IndentationWarning indentationWarning() {
  125. return (QsciLexerPython.IndentationWarning) interceptor.Invoke("indentationWarning", "indentationWarning() const", typeof(QsciLexerPython.IndentationWarning));
  126. }
  127. [Q_SLOT("void setFoldComments(bool)")]
  128. [SmokeMethod("setFoldComments(bool)")]
  129. public virtual void SetFoldComments(bool fold) {
  130. interceptor.Invoke("setFoldComments$", "setFoldComments(bool)", typeof(void), typeof(bool), fold);
  131. }
  132. [Q_SLOT("void setFoldQuotes(bool)")]
  133. [SmokeMethod("setFoldQuotes(bool)")]
  134. public virtual void SetFoldQuotes(bool fold) {
  135. interceptor.Invoke("setFoldQuotes$", "setFoldQuotes(bool)", typeof(void), typeof(bool), fold);
  136. }
  137. [Q_SLOT("void setIndentationWarning(QsciLexerPython::IndentationWarning)")]
  138. [SmokeMethod("setIndentationWarning(QsciLexerPython::IndentationWarning)")]
  139. public virtual void SetIndentationWarning(QsciLexerPython.IndentationWarning warn) {
  140. interceptor.Invoke("setIndentationWarning$", "setIndentationWarning(QsciLexerPython::IndentationWarning)", typeof(void), typeof(QsciLexerPython.IndentationWarning), warn);
  141. }
  142. [SmokeMethod("readProperties(QSettings&, const QString&)")]
  143. protected override bool ReadProperties(QSettings qs, string prefix) {
  144. return (bool) interceptor.Invoke("readProperties#$", "readProperties(QSettings&, const QString&)", typeof(bool), typeof(QSettings), qs, typeof(string), prefix);
  145. }
  146. [SmokeMethod("writeProperties(QSettings&, const QString&) const")]
  147. protected override bool WriteProperties(QSettings qs, string prefix) {
  148. return (bool) interceptor.Invoke("writeProperties#$", "writeProperties(QSettings&, const QString&) const", typeof(bool), typeof(QSettings), qs, typeof(string), prefix);
  149. }
  150. ~QsciLexerPython() {
  151. interceptor.Invoke("~QsciLexerPython", "~QsciLexerPython()", typeof(void));
  152. }
  153. public new void Dispose() {
  154. interceptor.Invoke("~QsciLexerPython", "~QsciLexerPython()", typeof(void));
  155. }
  156. public static new string Tr(string s, string c) {
  157. return (string) staticInterceptor.Invoke("tr$$", "tr(const char*, const char*)", typeof(string), typeof(string), s, typeof(string), c);
  158. }
  159. public static new string Tr(string s) {
  160. return (string) staticInterceptor.Invoke("tr$", "tr(const char*)", typeof(string), typeof(string), s);
  161. }
  162. protected new IQsciLexerPythonSignals Emit {
  163. get { return (IQsciLexerPythonSignals) Q_EMIT; }
  164. }
  165. }
  166. public interface IQsciLexerPythonSignals : IQsciLexerSignals {
  167. }
  168. }