Kimono.KInputDialog.GetItemList C# (CSharp) Method

GetItemList() public static method

Static convenience function to let the user select one or more items from a listbox. caption is the text that is displayed in the title bar. label is the text that appears as the label for the listbox. list is the string list which is inserted into the listbox, select is the list of item(s) that should be the selected. If multiple is true, the user can select multiple items. name="caption" Caption of the dialog name="label" Text of the label for the list name="list" List of item for user to choose from name="select" List of item(s) that should be selected name="multiple" If true, user can select multiple items name="ok" This bool would be set to true if user pressed Ok name="parent" Parent of the dialog widget
public static GetItemList ( string caption, string label, List list, List select, bool multiple, bool &ok, QWidget parent ) : List
caption string
label string
list List
select List
multiple bool
ok bool
parent Qyoto.QWidget
return List
        public static List<string> GetItemList(string caption, string label, List<string> list, List<string> select, bool multiple, ref bool ok, QWidget parent)
        {
            StackItem[] stack = new StackItem[8];
            #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
            #if DEBUG
            stack[4].s_class = (IntPtr) DebugGCHandle.Alloc(select);
            #else
            stack[4].s_class = (IntPtr) GCHandle.Alloc(select);
            #endif
            stack[5].s_bool = multiple;
            stack[6].s_bool = ok;
            #if DEBUG
            stack[7].s_class = (IntPtr) DebugGCHandle.Alloc(parent);
            #else
            stack[7].s_class = (IntPtr) GCHandle.Alloc(parent);
            #endif
            staticInterceptor.Invoke("getItemList$$??$$#", "getItemList(const QString&, const QString&, const QStringList&, const QStringList&, bool, bool*, QWidget*)", 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
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[4].s_class);
            #else
            ((GCHandle) stack[4].s_class).Free();
            #endif
            ok = stack[6].s_bool;
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[7].s_class);
            #else
            ((GCHandle) stack[7].s_class).Free();
            #endif
            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 (List<string>) returnValue;
        }

Same methods

KInputDialog::GetItemList ( string caption, string label ) : List
KInputDialog::GetItemList ( string caption, string label, List list ) : List
KInputDialog::GetItemList ( string caption, string label, List list, List select ) : List
KInputDialog::GetItemList ( string caption, string label, List list, List select, bool multiple ) : List
KInputDialog::GetItemList ( string caption, string label, List list, List select, bool multiple, bool &ok ) : List