Kimono.KMessageBox.CreateKMessageBox C# (CSharp) Method

CreateKMessageBox() public static method

Create content and layout of a standard dialog name="dialog" The parent dialog base name="icon" A QPixmap containing the icon to be displayed in the dialog next to the text. name="text" Message string. name="strlist" List of strings to be written in the listbox. If the list is empty, it doesn't show any listbox name="ask" The text of the checkbox. If empty none will be shown. name="checkboxReturn" The result of the checkbox. If it's initially true then the checkbox will be checked by default. name="options" see Options name="details" Detailed message string. name="notifyType" The type of notification to send when this message is presentend.
public static CreateKMessageBox ( Kimono.KDialog dialog, Qyoto.QIcon icon, string text, List strlist, string ask, bool &checkboxReturn, uint options, string details, Qyoto.QMessageBox notifyType ) : int
dialog Kimono.KDialog
icon Qyoto.QIcon
text string
strlist List
ask string
checkboxReturn bool
options uint
details string
notifyType Qyoto.QMessageBox
return int
        public static int CreateKMessageBox(KDialog dialog, QIcon icon, string text, List<string> strlist, string ask, ref bool checkboxReturn, uint options, string details, QMessageBox.Icon notifyType)
        {
            StackItem[] stack = new StackItem[10];
            #if DEBUG
            stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(dialog);
            #else
            stack[1].s_class = (IntPtr) GCHandle.Alloc(dialog);
            #endif
            #if DEBUG
            stack[2].s_class = (IntPtr) DebugGCHandle.Alloc(icon);
            #else
            stack[2].s_class = (IntPtr) GCHandle.Alloc(icon);
            #endif
            #if DEBUG
            stack[3].s_class = (IntPtr) DebugGCHandle.Alloc(text);
            #else
            stack[3].s_class = (IntPtr) GCHandle.Alloc(text);
            #endif
            #if DEBUG
            stack[4].s_class = (IntPtr) DebugGCHandle.Alloc(strlist);
            #else
            stack[4].s_class = (IntPtr) GCHandle.Alloc(strlist);
            #endif
            #if DEBUG
            stack[5].s_class = (IntPtr) DebugGCHandle.Alloc(ask);
            #else
            stack[5].s_class = (IntPtr) GCHandle.Alloc(ask);
            #endif
            stack[6].s_bool = checkboxReturn;
            stack[7].s_uint = options;
            #if DEBUG
            stack[8].s_class = (IntPtr) DebugGCHandle.Alloc(details);
            #else
            stack[8].s_class = (IntPtr) GCHandle.Alloc(details);
            #endif
            stack[9].s_int = (int) notifyType;
            staticInterceptor.Invoke("createKMessageBox##$?$$$$$", "createKMessageBox(KDialog*, const QIcon&, const QString&, const QStringList&, const QString&, bool*, KMessageBox::Options, const QString&, QMessageBox::Icon)", 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
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[5].s_class);
            #else
            ((GCHandle) stack[5].s_class).Free();
            #endif
            checkboxReturn = stack[6].s_bool;
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[8].s_class);
            #else
            ((GCHandle) stack[8].s_class).Free();
            #endif
            return stack[0].s_int;
        }

Same methods

KMessageBox::CreateKMessageBox ( Kimono.KDialog dialog, Qyoto.QIcon icon, string text, List strlist, string ask, bool &checkboxReturn, uint options ) : int
KMessageBox::CreateKMessageBox ( Kimono.KDialog dialog, Qyoto.QIcon icon, string text, List strlist, string ask, bool &checkboxReturn, uint options, string details ) : int
KMessageBox::CreateKMessageBox ( Kimono.KDialog dialog, Qyoto.QMessageBox icon, string text, List strlist, string ask, bool &checkboxReturn, uint options ) : int
KMessageBox::CreateKMessageBox ( Kimono.KDialog dialog, Qyoto.QMessageBox icon, string text, List strlist, string ask, bool &checkboxReturn, uint options, string details ) : int