2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qmessagebox.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QMessageBox__Icon int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QMessageBox__NoIcon QMessageBox__Icon = 0
|
|
|
|
QMessageBox__Information QMessageBox__Icon = 1
|
|
|
|
QMessageBox__Warning QMessageBox__Icon = 2
|
|
|
|
QMessageBox__Critical QMessageBox__Icon = 3
|
|
|
|
QMessageBox__Question QMessageBox__Icon = 4
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QMessageBox__ButtonRole int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QMessageBox__InvalidRole QMessageBox__ButtonRole = -1
|
|
|
|
QMessageBox__AcceptRole QMessageBox__ButtonRole = 0
|
|
|
|
QMessageBox__RejectRole QMessageBox__ButtonRole = 1
|
|
|
|
QMessageBox__DestructiveRole QMessageBox__ButtonRole = 2
|
|
|
|
QMessageBox__ActionRole QMessageBox__ButtonRole = 3
|
|
|
|
QMessageBox__HelpRole QMessageBox__ButtonRole = 4
|
|
|
|
QMessageBox__YesRole QMessageBox__ButtonRole = 5
|
|
|
|
QMessageBox__NoRole QMessageBox__ButtonRole = 6
|
|
|
|
QMessageBox__ResetRole QMessageBox__ButtonRole = 7
|
|
|
|
QMessageBox__ApplyRole QMessageBox__ButtonRole = 8
|
|
|
|
QMessageBox__NRoles QMessageBox__ButtonRole = 9
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QMessageBox__StandardButton int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QMessageBox__NoButton QMessageBox__StandardButton = 0
|
|
|
|
QMessageBox__Ok QMessageBox__StandardButton = 1024
|
|
|
|
QMessageBox__Save QMessageBox__StandardButton = 2048
|
|
|
|
QMessageBox__SaveAll QMessageBox__StandardButton = 4096
|
|
|
|
QMessageBox__Open QMessageBox__StandardButton = 8192
|
|
|
|
QMessageBox__Yes QMessageBox__StandardButton = 16384
|
|
|
|
QMessageBox__YesToAll QMessageBox__StandardButton = 32768
|
|
|
|
QMessageBox__No QMessageBox__StandardButton = 65536
|
|
|
|
QMessageBox__NoToAll QMessageBox__StandardButton = 131072
|
|
|
|
QMessageBox__Abort QMessageBox__StandardButton = 262144
|
|
|
|
QMessageBox__Retry QMessageBox__StandardButton = 524288
|
|
|
|
QMessageBox__Ignore QMessageBox__StandardButton = 1048576
|
|
|
|
QMessageBox__Close QMessageBox__StandardButton = 2097152
|
|
|
|
QMessageBox__Cancel QMessageBox__StandardButton = 4194304
|
|
|
|
QMessageBox__Discard QMessageBox__StandardButton = 8388608
|
|
|
|
QMessageBox__Help QMessageBox__StandardButton = 16777216
|
|
|
|
QMessageBox__Apply QMessageBox__StandardButton = 33554432
|
|
|
|
QMessageBox__Reset QMessageBox__StandardButton = 67108864
|
|
|
|
QMessageBox__RestoreDefaults QMessageBox__StandardButton = 134217728
|
|
|
|
QMessageBox__FirstButton QMessageBox__StandardButton = 1024
|
|
|
|
QMessageBox__LastButton QMessageBox__StandardButton = 134217728
|
|
|
|
QMessageBox__YesAll QMessageBox__StandardButton = 32768
|
|
|
|
QMessageBox__NoAll QMessageBox__StandardButton = 131072
|
|
|
|
QMessageBox__Default QMessageBox__StandardButton = 256
|
|
|
|
QMessageBox__Escape QMessageBox__StandardButton = 512
|
|
|
|
QMessageBox__FlagMask QMessageBox__StandardButton = 768
|
|
|
|
QMessageBox__ButtonMask QMessageBox__StandardButton = -769
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QMessageBox struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QMessageBox
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QDialog
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) cPointer() *C.QMessageBox {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QMessageBox) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQMessageBox constructs the type using only CGO pointers.
|
|
|
|
func newQMessageBox(h *C.QMessageBox, h_QDialog *C.QDialog, h_QWidget *C.QWidget, h_QObject *C.QObject, h_QPaintDevice *C.QPaintDevice) *QMessageBox {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QMessageBox{h: h,
|
|
|
|
QDialog: newQDialog(h_QDialog, h_QWidget, h_QObject, h_QPaintDevice)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQMessageBox constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQMessageBox(h unsafe.Pointer, h_QDialog unsafe.Pointer, h_QWidget unsafe.Pointer, h_QObject unsafe.Pointer, h_QPaintDevice unsafe.Pointer) *QMessageBox {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QMessageBox{h: (*C.QMessageBox)(h),
|
|
|
|
QDialog: UnsafeNewQDialog(h_QDialog, h_QWidget, h_QObject, h_QPaintDevice)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox constructs a new QMessageBox object.
|
2024-10-26 00:46:42 +00:00
|
|
|
func NewQMessageBox(parent *QWidget) *QMessageBox {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMessageBox *C.QMessageBox = nil
|
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMessageBox_new(parent.cPointer(), &outptr_QMessageBox, &outptr_QDialog, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMessageBox(outptr_QMessageBox, outptr_QDialog, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox2 constructs a new QMessageBox object.
|
2024-10-26 00:46:42 +00:00
|
|
|
func NewQMessageBox2() *QMessageBox {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMessageBox *C.QMessageBox = nil
|
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMessageBox_new2(&outptr_QMessageBox, &outptr_QDialog, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMessageBox(outptr_QMessageBox, outptr_QDialog, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-10-26 00:46:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox3 constructs a new QMessageBox object.
|
|
|
|
func NewQMessageBox3(icon QMessageBox__Icon, title string, text string) *QMessageBox {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMessageBox *C.QMessageBox = nil
|
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMessageBox_new3((C.int)(icon), title_ms, text_ms, &outptr_QMessageBox, &outptr_QDialog, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMessageBox(outptr_QMessageBox, outptr_QDialog, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
// NewQMessageBox4 constructs a new QMessageBox object.
|
|
|
|
func NewQMessageBox4(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int) *QMessageBox {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMessageBox *C.QMessageBox = nil
|
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMessageBox_new4(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2), &outptr_QMessageBox, &outptr_QDialog, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMessageBox(outptr_QMessageBox, outptr_QDialog, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox5 constructs a new QMessageBox object.
|
2024-09-20 06:40:03 +00:00
|
|
|
func NewQMessageBox5(icon QMessageBox__Icon, title string, text string, buttons QMessageBox__StandardButton) *QMessageBox {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMessageBox *C.QMessageBox = nil
|
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMessageBox_new5((C.int)(icon), title_ms, text_ms, (C.int)(buttons), &outptr_QMessageBox, &outptr_QDialog, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMessageBox(outptr_QMessageBox, outptr_QDialog, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox6 constructs a new QMessageBox object.
|
2024-09-20 06:40:03 +00:00
|
|
|
func NewQMessageBox6(icon QMessageBox__Icon, title string, text string, buttons QMessageBox__StandardButton, parent *QWidget) *QMessageBox {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMessageBox *C.QMessageBox = nil
|
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMessageBox_new6((C.int)(icon), title_ms, text_ms, (C.int)(buttons), parent.cPointer(), &outptr_QMessageBox, &outptr_QDialog, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMessageBox(outptr_QMessageBox, outptr_QDialog, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox7 constructs a new QMessageBox object.
|
2024-09-20 06:40:03 +00:00
|
|
|
func NewQMessageBox7(icon QMessageBox__Icon, title string, text string, buttons QMessageBox__StandardButton, parent *QWidget, flags WindowType) *QMessageBox {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMessageBox *C.QMessageBox = nil
|
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMessageBox_new7((C.int)(icon), title_ms, text_ms, (C.int)(buttons), parent.cPointer(), (C.int)(flags), &outptr_QMessageBox, &outptr_QDialog, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMessageBox(outptr_QMessageBox, outptr_QDialog, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox8 constructs a new QMessageBox object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQMessageBox8(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int, parent *QWidget) *QMessageBox {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMessageBox *C.QMessageBox = nil
|
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMessageBox_new8(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2), parent.cPointer(), &outptr_QMessageBox, &outptr_QDialog, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMessageBox(outptr_QMessageBox, outptr_QDialog, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox9 constructs a new QMessageBox object.
|
2024-09-20 06:40:03 +00:00
|
|
|
func NewQMessageBox9(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int, parent *QWidget, f WindowType) *QMessageBox {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMessageBox *C.QMessageBox = nil
|
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMessageBox_new9(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2), parent.cPointer(), (C.int)(f), &outptr_QMessageBox, &outptr_QDialog, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMessageBox(outptr_QMessageBox, outptr_QDialog, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) MetaObject() *QMetaObject {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQMetaObject(unsafe.Pointer(C.QMessageBox_MetaObject(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
func (this *QMessageBox) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
return (unsafe.Pointer)(C.QMessageBox_Metacast(this.h, param1_Cstring))
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QMessageBox_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_Tr(s_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_TrUtf8(s_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) AddButton(button *QAbstractButton, role QMessageBox__ButtonRole) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QMessageBox_AddButton(this.h, button.cPointer(), (C.int)(role))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) AddButton2(text string, role QMessageBox__ButtonRole) *QPushButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQPushButton(unsafe.Pointer(C.QMessageBox_AddButton2(this.h, text_ms, (C.int)(role))), nil, nil, nil, nil)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) AddButtonWithButton(button QMessageBox__StandardButton) *QPushButton {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQPushButton(unsafe.Pointer(C.QMessageBox_AddButtonWithButton(this.h, (C.int)(button))), nil, nil, nil, nil)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QMessageBox) RemoveButton(button *QAbstractButton) {
|
|
|
|
C.QMessageBox_RemoveButton(this.h, button.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) Buttons() []*QAbstractButton {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QMessageBox_Buttons(this.h)
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := make([]*QAbstractButton, int(_ma.len))
|
2024-09-17 07:30:27 +00:00
|
|
|
_outCast := (*[0xffff]*C.QAbstractButton)(unsafe.Pointer(_ma.data)) // hey ya
|
2024-09-14 22:29:05 +00:00
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-11-19 06:29:06 +00:00
|
|
|
_ret[i] = UnsafeNewQAbstractButton(unsafe.Pointer(_outCast[i]), nil, nil, nil)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) ButtonRole(button *QAbstractButton) QMessageBox__ButtonRole {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QMessageBox__ButtonRole)(C.QMessageBox_ButtonRole(this.h, button.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QMessageBox) SetStandardButtons(buttons QMessageBox__StandardButton) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QMessageBox_SetStandardButtons(this.h, (C.int)(buttons))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QMessageBox) StandardButtons() QMessageBox__StandardButton {
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_StandardButtons(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) StandardButton(button *QAbstractButton) QMessageBox__StandardButton {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_StandardButton(this.h, button.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) Button(which QMessageBox__StandardButton) *QAbstractButton {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQAbstractButton(unsafe.Pointer(C.QMessageBox_Button(this.h, (C.int)(which))), nil, nil, nil)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QMessageBox) DefaultButton() *QPushButton {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQPushButton(unsafe.Pointer(C.QMessageBox_DefaultButton(this.h)), nil, nil, nil, nil)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetDefaultButton(button *QPushButton) {
|
|
|
|
C.QMessageBox_SetDefaultButton(this.h, button.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) SetDefaultButtonWithButton(button QMessageBox__StandardButton) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QMessageBox_SetDefaultButtonWithButton(this.h, (C.int)(button))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QMessageBox) EscapeButton() *QAbstractButton {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQAbstractButton(unsafe.Pointer(C.QMessageBox_EscapeButton(this.h)), nil, nil, nil)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetEscapeButton(button *QAbstractButton) {
|
|
|
|
C.QMessageBox_SetEscapeButton(this.h, button.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) SetEscapeButtonWithButton(button QMessageBox__StandardButton) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QMessageBox_SetEscapeButtonWithButton(this.h, (C.int)(button))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QMessageBox) ClickedButton() *QAbstractButton {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQAbstractButton(unsafe.Pointer(C.QMessageBox_ClickedButton(this.h)), nil, nil, nil)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) Text() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_Text(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetText(text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QMessageBox_SetText(this.h, text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) Icon() QMessageBox__Icon {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QMessageBox__Icon)(C.QMessageBox_Icon(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) SetIcon(icon QMessageBox__Icon) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QMessageBox_SetIcon(this.h, (C.int)(icon))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QMessageBox) IconPixmap() *QPixmap {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QMessageBox_IconPixmap(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQPixmap(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetIconPixmap(pixmap *QPixmap) {
|
|
|
|
C.QMessageBox_SetIconPixmap(this.h, pixmap.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) TextFormat() TextFormat {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (TextFormat)(C.QMessageBox_TextFormat(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) SetTextFormat(format TextFormat) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QMessageBox_SetTextFormat(this.h, (C.int)(format))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QMessageBox) SetTextInteractionFlags(flags TextInteractionFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QMessageBox_SetTextInteractionFlags(this.h, (C.int)(flags))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QMessageBox) TextInteractionFlags() TextInteractionFlag {
|
|
|
|
return (TextInteractionFlag)(C.QMessageBox_TextInteractionFlags(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QMessageBox) SetCheckBox(cb *QCheckBox) {
|
|
|
|
C.QMessageBox_SetCheckBox(this.h, cb.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) CheckBox() *QCheckBox {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQCheckBox(unsafe.Pointer(C.QMessageBox_CheckBox(this.h)), nil, nil, nil, nil)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_Information(parent *QWidget, title string, text string) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Information(parent.cPointer(), title_ms, text_ms))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_Question(parent *QWidget, title string, text string) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Question(parent.cPointer(), title_ms, text_ms))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_Warning(parent *QWidget, title string, text string) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Warning(parent.cPointer(), title_ms, text_ms))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_Critical(parent *QWidget, title string, text string) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Critical(parent.cPointer(), title_ms, text_ms))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QMessageBox_About(parent *QWidget, title string, text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QMessageBox_About(parent.cPointer(), title_ms, text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_AboutQt(parent *QWidget) {
|
|
|
|
C.QMessageBox_AboutQt(parent.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Information2(parent *QWidget, title string, text string, button0 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Information2(parent.cPointer(), title_ms, text_ms, (C.int)(button0)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Information3(parent *QWidget, title string, text string, button0Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Information3(parent.cPointer(), title_ms, text_ms, button0Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_Information4(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Information4(parent.cPointer(), title_ms, text_ms, (C.int)(button0)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question2(parent *QWidget, title string, text string, button0 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Question2(parent.cPointer(), title_ms, text_ms, (C.int)(button0)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Question3(parent *QWidget, title string, text string, button0Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Question3(parent.cPointer(), title_ms, text_ms, button0Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_Question4(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Question4(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Warning2(parent *QWidget, title string, text string, button0 int, button1 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Warning2(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning3(parent *QWidget, title string, text string, button0Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Warning3(parent.cPointer(), title_ms, text_ms, button0Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_Warning4(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Warning4(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Critical2(parent *QWidget, title string, text string, button0 int, button1 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Critical2(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical3(parent *QWidget, title string, text string, button0Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Critical3(parent.cPointer(), title_ms, text_ms, button0Text_ms))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_Critical4(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Critical4(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) ButtonText(button int) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_ButtonText(this.h, (C.int)(button))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetButtonText(button int, text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QMessageBox_SetButtonText(this.h, (C.int)(button), text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) InformativeText() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_InformativeText(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetInformativeText(text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QMessageBox_SetInformativeText(this.h, text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) DetailedText() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_DetailedText(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetDetailedText(text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QMessageBox_SetDetailedText(this.h, text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetWindowTitle(title string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
C.QMessageBox_SetWindowTitle(this.h, title_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMessageBox) SetWindowModality(windowModality WindowModality) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QMessageBox_SetWindowModality(this.h, (C.int)(windowModality))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_StandardIcon(icon QMessageBox__Icon) *QPixmap {
|
2024-09-18 00:12:02 +00:00
|
|
|
_ret := C.QMessageBox_StandardIcon((C.int)(icon))
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQPixmap(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QMessageBox) ButtonClicked(button *QAbstractButton) {
|
|
|
|
C.QMessageBox_ButtonClicked(this.h, button.cPointer())
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QMessageBox) OnButtonClicked(slot func(button *QAbstractButton)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QMessageBox_connect_ButtonClicked(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QMessageBox_ButtonClicked
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QMessageBox_ButtonClicked(cb C.intptr_t, button *C.QAbstractButton) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(button *QAbstractButton))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-11-19 06:29:06 +00:00
|
|
|
slotval1 := UnsafeNewQAbstractButton(unsafe.Pointer(button), nil, nil, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Tr2(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_Tr2(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Tr3(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_Tr3(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_TrUtf82(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_TrUtf82(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_TrUtf83(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QMessageBox_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func QMessageBox_Information42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Information42(parent.cPointer(), title_ms, text_ms, (C.int)(buttons)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func QMessageBox_Information5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Information5(parent.cPointer(), title_ms, text_ms, (C.int)(buttons), (C.int)(defaultButton)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func QMessageBox_Question42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Question42(parent.cPointer(), title_ms, text_ms, (C.int)(buttons)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func QMessageBox_Question5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Question5(parent.cPointer(), title_ms, text_ms, (C.int)(buttons), (C.int)(defaultButton)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Warning42(parent.cPointer(), title_ms, text_ms, (C.int)(buttons)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Warning5(parent.cPointer(), title_ms, text_ms, (C.int)(buttons), (C.int)(defaultButton)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Critical42(parent.cPointer(), title_ms, text_ms, (C.int)(buttons)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func QMessageBox_Critical5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Critical5(parent.cPointer(), title_ms, text_ms, (C.int)(buttons), (C.int)(defaultButton)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QMessageBox_AboutQt2(parent *QWidget, title string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
C.QMessageBox_AboutQt2(parent.cPointer(), title_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Information52(parent *QWidget, title string, text string, button0 int, button1 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Information52(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information6(parent *QWidget, title string, text string, button0 int, button1 int, button2 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Information6(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1), (C.int)(button2)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Information53(parent *QWidget, title string, text string, button0Text string, button1Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Information53(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information62(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Information62(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information7(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Information7(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms, (C.int)(defaultButtonNumber)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information8(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int, escapeButtonNumber int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Information8(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms, (C.int)(defaultButtonNumber), (C.int)(escapeButtonNumber)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QMessageBox_Information54(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) QMessageBox__StandardButton {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_Information54(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question52(parent *QWidget, title string, text string, button0 int, button1 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Question52(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question6(parent *QWidget, title string, text string, button0 int, button1 int, button2 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Question6(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1), (C.int)(button2)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Question53(parent *QWidget, title string, text string, button0Text string, button1Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Question53(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question62(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Question62(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question7(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Question7(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms, (C.int)(defaultButtonNumber)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question8(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int, escapeButtonNumber int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Question8(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms, (C.int)(defaultButtonNumber), (C.int)(escapeButtonNumber)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning6(parent *QWidget, title string, text string, button0 int, button1 int, button2 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Warning6(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1), (C.int)(button2)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Warning52(parent *QWidget, title string, text string, button0Text string, button1Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Warning52(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning62(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Warning62(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning7(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Warning7(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms, (C.int)(defaultButtonNumber)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning8(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int, escapeButtonNumber int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Warning8(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms, (C.int)(defaultButtonNumber), (C.int)(escapeButtonNumber)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical6(parent *QWidget, title string, text string, button0 int, button1 int, button2 int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Critical6(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1), (C.int)(button2)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func QMessageBox_Critical52(parent *QWidget, title string, text string, button0Text string, button1Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Critical52(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical62(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Critical62(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical7(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Critical7(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms, (C.int)(defaultButtonNumber)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical8(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int, escapeButtonNumber int) int {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
button0Text_ms := C.struct_miqt_string{}
|
|
|
|
button0Text_ms.data = C.CString(button0Text)
|
|
|
|
button0Text_ms.len = C.size_t(len(button0Text))
|
|
|
|
defer C.free(unsafe.Pointer(button0Text_ms.data))
|
|
|
|
button1Text_ms := C.struct_miqt_string{}
|
|
|
|
button1Text_ms.data = C.CString(button1Text)
|
|
|
|
button1Text_ms.len = C.size_t(len(button1Text))
|
|
|
|
defer C.free(unsafe.Pointer(button1Text_ms.data))
|
|
|
|
button2Text_ms := C.struct_miqt_string{}
|
|
|
|
button2Text_ms.data = C.CString(button2Text)
|
|
|
|
button2Text_ms.len = C.size_t(len(button2Text))
|
|
|
|
defer C.free(unsafe.Pointer(button2Text_ms.data))
|
|
|
|
return (int)(C.QMessageBox_Critical8(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms, button2Text_ms, (C.int)(defaultButtonNumber), (C.int)(escapeButtonNumber)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
func (this *QMessageBox) callVirtualBase_Event(e *QEvent) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QMessageBox_virtualbase_Event(unsafe.Pointer(this.h), e.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnEvent(slot func(super func(e *QEvent) bool, e *QEvent) bool) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_Event
|
|
|
|
func miqt_exec_callback_QMessageBox_Event(self *C.QMessageBox, cb C.intptr_t, e *C.QEvent) C.bool {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QEvent) bool, e *QEvent) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQEvent(unsafe.Pointer(e))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_Event, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_ResizeEvent(event *QResizeEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_ResizeEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnResizeEvent(slot func(super func(event *QResizeEvent), event *QResizeEvent)) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_ResizeEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_ResizeEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QResizeEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QResizeEvent), event *QResizeEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQResizeEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_ResizeEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_ShowEvent(event *QShowEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_ShowEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnShowEvent(slot func(super func(event *QShowEvent), event *QShowEvent)) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_ShowEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_ShowEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QShowEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QShowEvent), event *QShowEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQShowEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_ShowEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_CloseEvent(event *QCloseEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_CloseEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnCloseEvent(slot func(super func(event *QCloseEvent), event *QCloseEvent)) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_CloseEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_CloseEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QCloseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QCloseEvent), event *QCloseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQCloseEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_CloseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_KeyPressEvent(event *QKeyEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnKeyPressEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_KeyPressEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_KeyPressEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QKeyEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(event), nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_KeyPressEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_ChangeEvent(event *QEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_ChangeEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnChangeEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_ChangeEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_ChangeEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_ChangeEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_SetVisible(visible bool) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_SetVisible(unsafe.Pointer(this.h), (C.bool)(visible))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnSetVisible(slot func(super func(visible bool), visible bool)) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_SetVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_SetVisible
|
|
|
|
func miqt_exec_callback_QMessageBox_SetVisible(self *C.QMessageBox, cb C.intptr_t, visible C.bool) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (bool)(visible)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_SetVisible, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_SizeHint() *QSize {
|
|
|
|
|
|
|
|
_ret := C.QMessageBox_virtualbase_SizeHint(unsafe.Pointer(this.h))
|
|
|
|
_goptr := newQSize(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnSizeHint(slot func(super func() *QSize) *QSize) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_SizeHint
|
|
|
|
func miqt_exec_callback_QMessageBox_SizeHint(self *C.QMessageBox, cb C.intptr_t) *C.QSize {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_SizeHint)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_MinimumSizeHint() *QSize {
|
|
|
|
|
|
|
|
_ret := C.QMessageBox_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h))
|
|
|
|
_goptr := newQSize(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnMinimumSizeHint(slot func(super func() *QSize) *QSize) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_MinimumSizeHint
|
|
|
|
func miqt_exec_callback_QMessageBox_MinimumSizeHint(self *C.QMessageBox, cb C.intptr_t) *C.QSize {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_MinimumSizeHint)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_Open() {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_Open(unsafe.Pointer(this.h))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnOpen(slot func(super func())) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_Open(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_Open
|
|
|
|
func miqt_exec_callback_QMessageBox_Open(self *C.QMessageBox, cb C.intptr_t) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func()))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_Open)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_Exec() int {
|
|
|
|
|
|
|
|
return (int)(C.QMessageBox_virtualbase_Exec(unsafe.Pointer(this.h)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnExec(slot func(super func() int) int) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_Exec(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_Exec
|
|
|
|
func miqt_exec_callback_QMessageBox_Exec(self *C.QMessageBox, cb C.intptr_t) C.int {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_Exec)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_Done(param1 int) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_Done(unsafe.Pointer(this.h), (C.int)(param1))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnDone(slot func(super func(param1 int), param1 int)) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_Done(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_Done
|
|
|
|
func miqt_exec_callback_QMessageBox_Done(self *C.QMessageBox, cb C.intptr_t, param1 C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int), param1 int))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(param1)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_Done, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_Accept() {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_Accept(unsafe.Pointer(this.h))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnAccept(slot func(super func())) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_Accept(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_Accept
|
|
|
|
func miqt_exec_callback_QMessageBox_Accept(self *C.QMessageBox, cb C.intptr_t) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func()))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_Accept)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_Reject() {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_Reject(unsafe.Pointer(this.h))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnReject(slot func(super func())) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_Reject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_Reject
|
|
|
|
func miqt_exec_callback_QMessageBox_Reject(self *C.QMessageBox, cb C.intptr_t) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func()))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_Reject)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_ContextMenuEvent(param1 *QContextMenuEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_ContextMenuEvent(unsafe.Pointer(this.h), param1.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnContextMenuEvent(slot func(super func(param1 *QContextMenuEvent), param1 *QContextMenuEvent)) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_ContextMenuEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_ContextMenuEvent(self *C.QMessageBox, cb C.intptr_t, param1 *C.QContextMenuEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QContextMenuEvent), param1 *QContextMenuEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQContextMenuEvent(unsafe.Pointer(param1), nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_EventFilter(param1 *QObject, param2 *QEvent) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QMessageBox_virtualbase_EventFilter(unsafe.Pointer(this.h), param1.cPointer(), param2.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnEventFilter(slot func(super func(param1 *QObject, param2 *QEvent) bool, param1 *QObject, param2 *QEvent) bool) {
|
2024-12-07 01:43:28 +00:00
|
|
|
if !this.isSubclass {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_EventFilter
|
|
|
|
func miqt_exec_callback_QMessageBox_EventFilter(self *C.QMessageBox, cb C.intptr_t, param1 *C.QObject, param2 *C.QEvent) C.bool {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QObject, param2 *QEvent) bool, param1 *QObject, param2 *QEvent) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQObject(unsafe.Pointer(param1))
|
|
|
|
slotval2 := UnsafeNewQEvent(unsafe.Pointer(param2))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QMessageBox) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMessageBox_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QMessageBox) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QMessageBox) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|