Exemple #1
0
        public List <T> FindChildren <T>(QRegExp regExp)
        {
            List <T>    list  = new List <T>();
            AddToListFn addFn = delegate(IntPtr obj) {
                T o = (T)((System.Runtime.InteropServices.GCHandle)obj).Target;
                list.Add(o);
            };

            string childClassName = null;
            IntPtr metaObject     = IntPtr.Zero;

            if (SmokeMarshallers.IsSmokeClass(typeof(T)))
            {
                childClassName = SmokeMarshallers.SmokeClassName(typeof(T));
            }
            else
            {
                metaObject = (IntPtr)GCHandle.Alloc(Qyoto.GetMetaObject(typeof(T)));
            }
            FindQObjectChildren((IntPtr)GCHandle.Alloc(this), childClassName, metaObject, (IntPtr)GCHandle.Alloc(regExp), string.Empty, addFn);
            return(list);
        }
Exemple #2
0
 public QTextCursor Find(QRegExp expr)
 {
     return (QTextCursor) interceptor.Invoke("find#", "find(const QRegExp&) const", typeof(QTextCursor), typeof(QRegExp), expr);
 }
Exemple #3
0
 public QTextCursor Find(QRegExp expr, int from)
 {
     return (QTextCursor) interceptor.Invoke("find#$", "find(const QRegExp&, int) const", typeof(QTextCursor), typeof(QRegExp), expr, typeof(int), from);
 }
Exemple #4
0
 public QTextCursor Find(QRegExp expr, QTextCursor from, uint options)
 {
     return((QTextCursor)interceptor.Invoke("find##$", "find(const QRegExp&, const QTextCursor&, QTextDocument::FindFlags) const", typeof(QTextCursor), typeof(QRegExp), expr, typeof(QTextCursor), from, typeof(uint), options));
 }
Exemple #5
0
Fichier : Qt.cs Projet : KDE/qyoto
 public static QDataStream Read(QDataStream arg1, QRegExp regExp)
 {
     return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QRegExp&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QRegExp), regExp);
 }
Exemple #6
0
 public static int Find(string text, QRegExp pattern, int index, long options, ref int matchedlength)
 {
     StackItem[] stack = new StackItem[6];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(text);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(text);
     #endif
     #if DEBUG
     stack[2].s_class = (IntPtr) DebugGCHandle.Alloc(pattern);
     #else
     stack[2].s_class = (IntPtr) GCHandle.Alloc(pattern);
     #endif
     stack[3].s_int = index;
     stack[4].s_long = options;
     stack[5].s_int = matchedlength;
     staticInterceptor.Invoke("find$#$$$", "find(const QString&, const QRegExp&, int, long, int*)", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).SynchronizedFree();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[2].s_class);
     #else
     ((GCHandle) stack[2].s_class).SynchronizedFree();
     #endif
     matchedlength = stack[5].s_int;
     return stack[0].s_int;
 }
Exemple #7
0
 public static List<QSslCertificate> FromPath(string path, QSsl.EncodingFormat format, QRegExp.PatternSyntax syntax)
 {
     return (List<QSslCertificate>) staticInterceptor.Invoke("fromPath$$$", "fromPath(const QString&, QSsl::EncodingFormat, QRegExp::PatternSyntax)", typeof(List<QSslCertificate>), typeof(string), path, typeof(QSsl.EncodingFormat), format, typeof(QRegExp.PatternSyntax), syntax);
 }
Exemple #8
0
 public int LastIndexIn(string str, int offset, QRegExp.CaretMode caretMode)
 {
     return (int) interceptor.Invoke("lastIndexIn$$$", "lastIndexIn(const QString&, int, QRegExp::CaretMode) const", typeof(int), typeof(string), str, typeof(int), offset, typeof(QRegExp.CaretMode), caretMode);
 }
Exemple #9
0
 public void SetPatternSyntax(QRegExp.PatternSyntax syntax)
 {
     interceptor.Invoke("setPatternSyntax$", "setPatternSyntax(QRegExp::PatternSyntax)", typeof(void), typeof(QRegExp.PatternSyntax), syntax);
 }
Exemple #10
0
 public QScriptValue NewRegExp(QRegExp regexp)
 {
     return((QScriptValue)interceptor.Invoke("newRegExp#", "newRegExp(const QRegExp&)", typeof(QScriptValue), typeof(QRegExp), regexp));
 }
Exemple #11
0
 public QRegExp(QRegExp rx) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QRegExp#", "QRegExp(const QRegExp&)", typeof(void), typeof(QRegExp), rx);
 }
Exemple #12
0
 public QVariant(QRegExp regExp) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QVariant#", "QVariant(const QRegExp&)", typeof(void), typeof(QRegExp), regExp);
 }
Exemple #13
0
 public bool AddCaCertificates(string path, QSsl.EncodingFormat format, QRegExp.PatternSyntax syntax)
 {
     return (bool) interceptor.Invoke("addCaCertificates$$$", "addCaCertificates(const QString&, QSsl::EncodingFormat, QRegExp::PatternSyntax)", typeof(bool), typeof(string), path, typeof(QSsl.EncodingFormat), format, typeof(QRegExp.PatternSyntax), syntax);
 }
Exemple #14
0
 public QTextCursor Find(QRegExp expr, QTextCursor from)
 {
     return((QTextCursor)interceptor.Invoke("find##", "find(const QRegExp&, const QTextCursor&) const", typeof(QTextCursor), typeof(QRegExp), expr, typeof(QTextCursor), from));
 }
Exemple #15
0
 public QTextCursor Find(QRegExp expr, QTextCursor from, uint options)
 {
     return (QTextCursor) interceptor.Invoke("find##$", "find(const QRegExp&, const QTextCursor&, QTextDocument::FindFlags) const", typeof(QTextCursor), typeof(QRegExp), expr, typeof(QTextCursor), from, typeof(uint), options);
 }
Exemple #16
0
 public QRegExp(string pattern, Qt.CaseSensitivity cs, QRegExp.PatternSyntax syntax)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QRegExp$$$", "QRegExp(const QString&, Qt::CaseSensitivity, QRegExp::PatternSyntax)", typeof(void), typeof(string), pattern, typeof(Qt.CaseSensitivity), cs, typeof(QRegExp.PatternSyntax), syntax);
 }
Exemple #17
0
 public QTextCursor Find(QRegExp expr, QTextCursor from)
 {
     return (QTextCursor) interceptor.Invoke("find##", "find(const QRegExp&, const QTextCursor&) const", typeof(QTextCursor), typeof(QRegExp), expr, typeof(QTextCursor), from);
 }
Exemple #18
0
 public QRegExp(QRegExp rx)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QRegExp#", "QRegExp(const QRegExp&)", typeof(void), typeof(QRegExp), rx);
 }
Exemple #19
0
 public QRegExpValidator(QRegExp rx, QObject parent)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QRegExpValidator##", "QRegExpValidator(const QRegExp&, QObject*)", typeof(void), typeof(QRegExp), rx, typeof(QObject), parent);
 }
Exemple #20
0
 public QVariant(QRegExp regExp)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QVariant#", "QVariant(const QRegExp&)", typeof(void), typeof(QRegExp), regExp);
 }
Exemple #21
0
 public static List<string> PerlSplit(QRegExp sep, string s)
 {
     return (List<string>) staticInterceptor.Invoke("perlSplit#$", "perlSplit(const QRegExp&, const QString&)", typeof(List<string>), typeof(QRegExp), sep, typeof(string), s);
 }
Exemple #22
0
 public QScriptValue NewRegExp(QRegExp regexp)
 {
     return (QScriptValue) interceptor.Invoke("newRegExp#", "newRegExp(const QRegExp&)", typeof(QScriptValue), typeof(QRegExp), regexp);
 }
Exemple #23
0
 public static int Replace(StringBuilder text, QRegExp pattern, string replacement, int index, long options, ref int replacedLength)
 {
     StackItem[] stack = new StackItem[7];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(text);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(text);
     #endif
     #if DEBUG
     stack[2].s_class = (IntPtr) DebugGCHandle.Alloc(pattern);
     #else
     stack[2].s_class = (IntPtr) GCHandle.Alloc(pattern);
     #endif
     #if DEBUG
     stack[3].s_class = (IntPtr) DebugGCHandle.Alloc(replacement);
     #else
     stack[3].s_class = (IntPtr) GCHandle.Alloc(replacement);
     #endif
     stack[4].s_int = index;
     stack[5].s_long = options;
     stack[6].s_int = replacedLength;
     staticInterceptor.Invoke("replace$#$$$$", "replace(QString&, const QRegExp&, const QString&, int, long, int*)", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).SynchronizedFree();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[2].s_class);
     #else
     ((GCHandle) stack[2].s_class).SynchronizedFree();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[3].s_class);
     #else
     ((GCHandle) stack[3].s_class).SynchronizedFree();
     #endif
     replacedLength = stack[6].s_int;
     return stack[0].s_int;
 }
Exemple #24
0
 public QRegExpValidator(QRegExp rx, QObject parent) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QRegExpValidator##", "QRegExpValidator(const QRegExp&, QObject*)", typeof(void), typeof(QRegExp), rx, typeof(QObject), parent);
 }
Exemple #25
0
Fichier : Qt.cs Projet : KDE/qyoto
 public static QDataStream Write(QDataStream arg1, QRegExp regExp)
 {
     return (QDataStream) staticInterceptor.Invoke("operator<<##", "operator<<(QDataStream&, const QRegExp&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QRegExp), regExp);
 }
Exemple #26
0
 public QTextCursor Find(QRegExp expr)
 {
     return((QTextCursor)interceptor.Invoke("find#", "find(const QRegExp&) const", typeof(QTextCursor), typeof(QRegExp), expr));
 }