Kimono.KInputDialog.GetItem C# (CSharp) Method

GetItem() public static method

public static GetItem ( string caption, string label, List list, int current, bool editable, bool &ok ) : string
caption string
label string
list List
current int
editable bool
ok bool
return string
        public static string GetItem(string caption, string label, List<string> list, int current, bool editable, ref bool ok)
        {
            StackItem[] stack = new StackItem[7];
            #if DEBUG
            stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(caption);
            #else
            stack[1].s_class = (IntPtr) GCHandle.Alloc(caption);
            #endif
            #if DEBUG
            stack[2].s_class = (IntPtr) DebugGCHandle.Alloc(label);
            #else
            stack[2].s_class = (IntPtr) GCHandle.Alloc(label);
            #endif
            #if DEBUG
            stack[3].s_class = (IntPtr) DebugGCHandle.Alloc(list);
            #else
            stack[3].s_class = (IntPtr) GCHandle.Alloc(list);
            #endif
            stack[4].s_int = current;
            stack[5].s_bool = editable;
            stack[6].s_bool = ok;
            staticInterceptor.Invoke("getItem$$?$$$", "getItem(const QString&, const QString&, const QStringList&, int, bool, bool*)", stack);
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[1].s_class);
            #else
            ((GCHandle) stack[1].s_class).Free();
            #endif
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[2].s_class);
            #else
            ((GCHandle) stack[2].s_class).Free();
            #endif
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[3].s_class);
            #else
            ((GCHandle) stack[3].s_class).Free();
            #endif
            ok = stack[6].s_bool;
            object returnValue = ((GCHandle) stack[0].s_class).Target;
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[0].s_class);
            #else
            ((GCHandle) stack[0].s_class).Free();
            #endif
            return (string) returnValue;
        }

Same methods

KInputDialog::GetItem ( string caption, string label, List list ) : string
KInputDialog::GetItem ( string caption, string label, List list, int current ) : string
KInputDialog::GetItem ( string caption, string label, List list, int current, bool editable ) : string
KInputDialog::GetItem ( string caption, string label, List list, int current, bool editable, bool &ok, QWidget parent ) : string