2024-10-20 18:21:03 +13:00
|
|
|
package qt6
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qmessagebox.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMessageBox__Icon int
|
|
|
|
|
|
|
|
const (
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMessageBox__ButtonRole int
|
|
|
|
|
|
|
|
const (
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMessageBox__StandardButton int
|
|
|
|
|
|
|
|
const (
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMessageBox struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QMessageBox
|
2024-10-20 18:21:03 +13:00
|
|
|
*QDialog
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) cPointer() *C.QMessageBox {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// newQMessageBox constructs the type using only CGO pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func newQMessageBox(h *C.QMessageBox) *QMessageBox {
|
2024-10-20 18:21:03 +13:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
C.QMessageBox_virtbase(h, &outptr_QDialog)
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
return &QMessageBox{h: h,
|
2024-12-07 17:15:57 +13:00
|
|
|
QDialog: newQDialog(outptr_QDialog)}
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// UnsafeNewQMessageBox constructs the type using only unsafe pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func UnsafeNewQMessageBox(h unsafe.Pointer) *QMessageBox {
|
|
|
|
return newQMessageBox((*C.QMessageBox)(h))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox constructs a new QMessageBox object.
|
2024-10-26 13:46:42 +13:00
|
|
|
func NewQMessageBox(parent *QWidget) *QMessageBox {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMessageBox(C.QMessageBox_new(parent.cPointer()))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox2 constructs a new QMessageBox object.
|
2024-10-26 13:46:42 +13:00
|
|
|
func NewQMessageBox2() *QMessageBox {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMessageBox(C.QMessageBox_new2())
|
2024-10-26 13:46:42 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox3 constructs a new QMessageBox object.
|
|
|
|
func NewQMessageBox3(icon QMessageBox__Icon, title string, text string) *QMessageBox {
|
2024-10-20 18:21:03 +13: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 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMessageBox(C.QMessageBox_new3((C.int)(icon), title_ms, text_ms))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
2024-10-26 13:46:42 +13: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-20 18:21:03 +13: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 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMessageBox(C.QMessageBox_new4(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2)))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox5 constructs a new QMessageBox object.
|
|
|
|
func NewQMessageBox5(icon QMessageBox__Icon, title string, text string, buttons QMessageBox__StandardButton) *QMessageBox {
|
|
|
|
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 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMessageBox(C.QMessageBox_new5((C.int)(icon), title_ms, text_ms, (C.int)(buttons)))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox6 constructs a new QMessageBox object.
|
|
|
|
func NewQMessageBox6(icon QMessageBox__Icon, title string, text string, buttons QMessageBox__StandardButton, parent *QWidget) *QMessageBox {
|
|
|
|
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 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMessageBox(C.QMessageBox_new6((C.int)(icon), title_ms, text_ms, (C.int)(buttons), parent.cPointer()))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox7 constructs a new QMessageBox object.
|
|
|
|
func NewQMessageBox7(icon QMessageBox__Icon, title string, text string, buttons QMessageBox__StandardButton, parent *QWidget, flags WindowType) *QMessageBox {
|
|
|
|
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 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMessageBox(C.QMessageBox_new7((C.int)(icon), title_ms, text_ms, (C.int)(buttons), parent.cPointer(), (C.int)(flags)))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox8 constructs a new QMessageBox object.
|
|
|
|
func NewQMessageBox8(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int, parent *QWidget) *QMessageBox {
|
|
|
|
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 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMessageBox(C.QMessageBox_new8(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2), parent.cPointer()))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMessageBox9 constructs a new QMessageBox object.
|
|
|
|
func NewQMessageBox9(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int, parent *QWidget, f WindowType) *QMessageBox {
|
|
|
|
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 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMessageBox(C.QMessageBox_new9(title_ms, text_ms, (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2), parent.cPointer(), (C.int)(f)))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) MetaObject() *QMetaObject {
|
2024-12-07 15:02:06 +13:00
|
|
|
return newQMetaObject(C.QMessageBox_MetaObject(this.h))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
|
|
|
return (unsafe.Pointer)(C.QMessageBox_Metacast(this.h, param1_Cstring))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
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))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) AddButton(button *QAbstractButton, role QMessageBox__ButtonRole) {
|
|
|
|
C.QMessageBox_AddButton(this.h, button.cPointer(), (C.int)(role))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) AddButton2(text string, role QMessageBox__ButtonRole) *QPushButton {
|
|
|
|
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-12-07 17:15:57 +13:00
|
|
|
return newQPushButton(C.QMessageBox_AddButton2(this.h, text_ms, (C.int)(role)))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) AddButtonWithButton(button QMessageBox__StandardButton) *QPushButton {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQPushButton(C.QMessageBox_AddButtonWithButton(this.h, (C.int)(button)))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) RemoveButton(button *QAbstractButton) {
|
|
|
|
C.QMessageBox_RemoveButton(this.h, button.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) Buttons() []*QAbstractButton {
|
2024-11-04 20:18:27 +13:00
|
|
|
var _ma C.struct_miqt_array = C.QMessageBox_Buttons(this.h)
|
2024-10-20 18:21:03 +13:00
|
|
|
_ret := make([]*QAbstractButton, int(_ma.len))
|
|
|
|
_outCast := (*[0xffff]*C.QAbstractButton)(unsafe.Pointer(_ma.data)) // hey ya
|
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-12-07 17:15:57 +13:00
|
|
|
_ret[i] = newQAbstractButton(_outCast[i])
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) ButtonRole(button *QAbstractButton) QMessageBox__ButtonRole {
|
|
|
|
return (QMessageBox__ButtonRole)(C.QMessageBox_ButtonRole(this.h, button.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetStandardButtons(buttons QMessageBox__StandardButton) {
|
|
|
|
C.QMessageBox_SetStandardButtons(this.h, (C.int)(buttons))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) StandardButtons() QMessageBox__StandardButton {
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_StandardButtons(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) StandardButton(button *QAbstractButton) QMessageBox__StandardButton {
|
|
|
|
return (QMessageBox__StandardButton)(C.QMessageBox_StandardButton(this.h, button.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) Button(which QMessageBox__StandardButton) *QAbstractButton {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQAbstractButton(C.QMessageBox_Button(this.h, (C.int)(which)))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) DefaultButton() *QPushButton {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQPushButton(C.QMessageBox_DefaultButton(this.h))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetDefaultButton(button *QPushButton) {
|
|
|
|
C.QMessageBox_SetDefaultButton(this.h, button.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetDefaultButtonWithButton(button QMessageBox__StandardButton) {
|
|
|
|
C.QMessageBox_SetDefaultButtonWithButton(this.h, (C.int)(button))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) EscapeButton() *QAbstractButton {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQAbstractButton(C.QMessageBox_EscapeButton(this.h))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetEscapeButton(button *QAbstractButton) {
|
|
|
|
C.QMessageBox_SetEscapeButton(this.h, button.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetEscapeButtonWithButton(button QMessageBox__StandardButton) {
|
|
|
|
C.QMessageBox_SetEscapeButtonWithButton(this.h, (C.int)(button))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) ClickedButton() *QAbstractButton {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQAbstractButton(C.QMessageBox_ClickedButton(this.h))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) Text() string {
|
|
|
|
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))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetText(text string) {
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) Icon() QMessageBox__Icon {
|
|
|
|
return (QMessageBox__Icon)(C.QMessageBox_Icon(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetIcon(icon QMessageBox__Icon) {
|
|
|
|
C.QMessageBox_SetIcon(this.h, (C.int)(icon))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) IconPixmap() *QPixmap {
|
2024-12-07 17:15:57 +13:00
|
|
|
_goptr := newQPixmap(C.QMessageBox_IconPixmap(this.h))
|
2024-10-20 18:21:03 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetIconPixmap(pixmap *QPixmap) {
|
|
|
|
C.QMessageBox_SetIconPixmap(this.h, pixmap.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) TextFormat() TextFormat {
|
|
|
|
return (TextFormat)(C.QMessageBox_TextFormat(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetTextFormat(format TextFormat) {
|
|
|
|
C.QMessageBox_SetTextFormat(this.h, (C.int)(format))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetTextInteractionFlags(flags TextInteractionFlag) {
|
|
|
|
C.QMessageBox_SetTextInteractionFlags(this.h, (C.int)(flags))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) TextInteractionFlags() TextInteractionFlag {
|
|
|
|
return (TextInteractionFlag)(C.QMessageBox_TextInteractionFlags(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetCheckBox(cb *QCheckBox) {
|
|
|
|
C.QMessageBox_SetCheckBox(this.h, cb.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) CheckBox() *QCheckBox {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQCheckBox(C.QMessageBox_CheckBox(this.h))
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information(parent *QWidget, title string, text string) QMessageBox__StandardButton {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information2(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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_Information2(parent.cPointer(), title_ms, text_ms, (C.int)(button0)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question(parent *QWidget, title string, text string) QMessageBox__StandardButton {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question2(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) int {
|
|
|
|
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), (C.int)(button1)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning(parent *QWidget, title string, text string) QMessageBox__StandardButton {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning2(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical(parent *QWidget, title string, text string) QMessageBox__StandardButton {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical2(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_About(parent *QWidget, title string, text string) {
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_AboutQt(parent *QWidget) {
|
|
|
|
C.QMessageBox_AboutQt(parent.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information3(parent *QWidget, title string, text string, button0 int) int {
|
|
|
|
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_Information3(parent.cPointer(), title_ms, text_ms, (C.int)(button0)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information4(parent *QWidget, title string, text string, button0Text string) int {
|
|
|
|
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_Information4(parent.cPointer(), title_ms, text_ms, button0Text_ms))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question3(parent *QWidget, title string, text string, button0 int) int {
|
|
|
|
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_Question3(parent.cPointer(), title_ms, text_ms, (C.int)(button0)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question4(parent *QWidget, title string, text string, button0Text string) int {
|
|
|
|
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_Question4(parent.cPointer(), title_ms, text_ms, button0Text_ms))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning3(parent *QWidget, title string, text string, button0 int, button1 int) int {
|
|
|
|
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_Warning3(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning4(parent *QWidget, title string, text string, button0Text string) int {
|
|
|
|
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_Warning4(parent.cPointer(), title_ms, text_ms, button0Text_ms))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical3(parent *QWidget, title string, text string, button0 int, button1 int) int {
|
|
|
|
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_Critical3(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical4(parent *QWidget, title string, text string, button0Text string) int {
|
|
|
|
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_Critical4(parent.cPointer(), title_ms, text_ms, button0Text_ms))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) ButtonText(button int) string {
|
|
|
|
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))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetButtonText(button int, text string) {
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) InformativeText() string {
|
|
|
|
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))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetInformativeText(text string) {
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) DetailedText() string {
|
|
|
|
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))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetDetailedText(text string) {
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetWindowTitle(title string) {
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) SetWindowModality(windowModality WindowModality) {
|
|
|
|
C.QMessageBox_SetWindowModality(this.h, (C.int)(windowModality))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_StandardIcon(icon QMessageBox__Icon) *QPixmap {
|
2024-12-07 17:15:57 +13:00
|
|
|
_goptr := newQPixmap(C.QMessageBox_StandardIcon((C.int)(icon)))
|
2024-10-20 18:21:03 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) ButtonClicked(button *QAbstractButton) {
|
|
|
|
C.QMessageBox_ButtonClicked(this.h, button.cPointer())
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnButtonClicked(slot func(button *QAbstractButton)) {
|
|
|
|
C.QMessageBox_connect_ButtonClicked(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_ButtonClicked
|
|
|
|
func miqt_exec_callback_QMessageBox_ButtonClicked(cb C.intptr_t, button *C.QAbstractButton) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(button *QAbstractButton))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := newQAbstractButton(button)
|
2024-10-20 18:21:03 +13:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
|
|
|
}
|
|
|
|
|
|
|
|
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))
|
|
|
|
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))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
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))
|
|
|
|
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))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information52(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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_Information52(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_AboutQt2(parent *QWidget, title string) {
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information53(parent *QWidget, title string, text string, button0 int, button1 int) int {
|
|
|
|
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_Information53(parent.cPointer(), title_ms, text_ms, (C.int)(button0), (C.int)(button1)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information6(parent *QWidget, title string, text string, button0 int, button1 int, button2 int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information54(parent *QWidget, title string, text string, button0Text string, button1Text string) int {
|
|
|
|
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_Information54(parent.cPointer(), title_ms, text_ms, button0Text_ms, button1Text_ms))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information62(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string) int {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information7(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Information8(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int, escapeButtonNumber int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question52(parent *QWidget, title string, text string, button0 int, button1 int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question6(parent *QWidget, title string, text string, button0 int, button1 int, button2 int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question53(parent *QWidget, title string, text string, button0Text string, button1Text string) int {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question62(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string) int {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question7(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Question8(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int, escapeButtonNumber int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning6(parent *QWidget, title string, text string, button0 int, button1 int, button2 int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning52(parent *QWidget, title string, text string, button0Text string, button1Text string) int {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning62(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string) int {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning7(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Warning8(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int, escapeButtonNumber int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical6(parent *QWidget, title string, text string, button0 int, button1 int, button2 int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical52(parent *QWidget, title string, text string, button0Text string, button1Text string) int {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical62(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string) int {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical7(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int) int {
|
|
|
|
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)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMessageBox_Critical8(parent *QWidget, title string, text string, button0Text string, button1Text string, button2Text string, defaultButtonNumber int, escapeButtonNumber int) int {
|
|
|
|
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-11-19 19:29:06 +13: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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 15:02:06 +13:00
|
|
|
slotval1 := newQEvent(e)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := newQResizeEvent(event)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := newQShowEvent(event)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := newQCloseEvent(event)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := newQKeyEvent(event)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 15:02:06 +13:00
|
|
|
slotval1 := newQEvent(event)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_SetVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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 {
|
|
|
|
|
2024-12-07 15:02:06 +13:00
|
|
|
_goptr := newQSize(C.QMessageBox_virtualbase_SizeHint(unsafe.Pointer(this.h)))
|
2024-11-19 19:29:06 +13:00
|
|
|
_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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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 {
|
|
|
|
|
2024-12-07 15:02:06 +13:00
|
|
|
_goptr := newQSize(C.QMessageBox_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h)))
|
2024-11-19 19:29:06 +13:00
|
|
|
_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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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())) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_Open(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_Exec(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_Done(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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())) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_Accept(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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())) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_Reject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := newQContextMenuEvent(param1)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QMessageBox_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 15:02:06 +13:00
|
|
|
slotval1 := newQObject(param1)
|
|
|
|
|
|
|
|
slotval2 := newQEvent(param2)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2025-01-19 16:39:11 +13:00
|
|
|
func (this *QMessageBox) callVirtualBase_DevType() int {
|
|
|
|
|
|
|
|
return (int)(C.QMessageBox_virtualbase_DevType(unsafe.Pointer(this.h)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnDevType(slot func(super func() int) int) {
|
|
|
|
ok := C.QMessageBox_override_virtual_DevType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_DevType
|
|
|
|
func miqt_exec_callback_QMessageBox_DevType(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_DevType)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_HeightForWidth(param1 int) int {
|
|
|
|
|
|
|
|
return (int)(C.QMessageBox_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
|
|
|
|
ok := C.QMessageBox_override_virtual_HeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_HeightForWidth
|
|
|
|
func miqt_exec_callback_QMessageBox_HeightForWidth(self *C.QMessageBox, cb C.intptr_t, param1 C.int) C.int {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(param1)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_HeightForWidth, slotval1)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_HasHeightForWidth() bool {
|
|
|
|
|
|
|
|
return (bool)(C.QMessageBox_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnHasHeightForWidth(slot func(super func() bool) bool) {
|
|
|
|
ok := C.QMessageBox_override_virtual_HasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_HasHeightForWidth
|
|
|
|
func miqt_exec_callback_QMessageBox_HasHeightForWidth(self *C.QMessageBox, cb C.intptr_t) C.bool {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_HasHeightForWidth)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_PaintEngine() *QPaintEngine {
|
|
|
|
|
|
|
|
return newQPaintEngine(C.QMessageBox_virtualbase_PaintEngine(unsafe.Pointer(this.h)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnPaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) {
|
|
|
|
ok := C.QMessageBox_override_virtual_PaintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_PaintEngine
|
|
|
|
func miqt_exec_callback_QMessageBox_PaintEngine(self *C.QMessageBox, cb C.intptr_t) *C.QPaintEngine {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPaintEngine) *QPaintEngine)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_PaintEngine)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_MousePressEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_MousePressEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnMousePressEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_MousePressEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_MousePressEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QMouseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMouseEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_MousePressEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_MouseReleaseEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnMouseReleaseEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_MouseReleaseEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_MouseReleaseEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QMouseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMouseEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_MouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnMouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_MouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_MouseDoubleClickEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_MouseDoubleClickEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QMouseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMouseEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_MouseMoveEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_MouseMoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnMouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_MouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_MouseMoveEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_MouseMoveEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QMouseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMouseEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_WheelEvent(event *QWheelEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_WheelEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnWheelEvent(slot func(super func(event *QWheelEvent), event *QWheelEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_WheelEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_WheelEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QWheelEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QWheelEvent), event *QWheelEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQWheelEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_WheelEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_KeyReleaseEvent(event *QKeyEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_KeyReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnKeyReleaseEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_KeyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_KeyReleaseEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_KeyReleaseEvent(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 := newQKeyEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_FocusInEvent(event *QFocusEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_FocusInEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnFocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_FocusInEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_FocusInEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QFocusEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQFocusEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_FocusInEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_FocusOutEvent(event *QFocusEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnFocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_FocusOutEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_FocusOutEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QFocusEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQFocusEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_FocusOutEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_EnterEvent(event *QEnterEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_EnterEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnEnterEvent(slot func(super func(event *QEnterEvent), event *QEnterEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_EnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_EnterEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_EnterEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QEnterEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEnterEvent), event *QEnterEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQEnterEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_EnterEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_LeaveEvent(event *QEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_LeaveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnLeaveEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_LeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_LeaveEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_LeaveEvent(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 := newQEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_LeaveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_PaintEvent(event *QPaintEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_PaintEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnPaintEvent(slot func(super func(event *QPaintEvent), event *QPaintEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_PaintEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_PaintEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QPaintEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QPaintEvent), event *QPaintEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQPaintEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_PaintEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_MoveEvent(event *QMoveEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_MoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnMoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_MoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_MoveEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_MoveEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QMoveEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMoveEvent), event *QMoveEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMoveEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_MoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_TabletEvent(event *QTabletEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_TabletEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnTabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_TabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_TabletEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_TabletEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QTabletEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTabletEvent), event *QTabletEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQTabletEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_TabletEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_ActionEvent(event *QActionEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_ActionEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnActionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_ActionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_ActionEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_ActionEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QActionEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QActionEvent), event *QActionEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQActionEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_ActionEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_DragEnterEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnDragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_DragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_DragEnterEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_DragEnterEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QDragEnterEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragEnterEvent), event *QDragEnterEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQDragEnterEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_DragEnterEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_DragMoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnDragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_DragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_DragMoveEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_DragMoveEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QDragMoveEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragMoveEvent), event *QDragMoveEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQDragMoveEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_DragMoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_DragLeaveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnDragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_DragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_DragLeaveEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_DragLeaveEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QDragLeaveEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQDragLeaveEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_DropEvent(event *QDropEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_DropEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnDropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_DropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_DropEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_DropEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QDropEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDropEvent), event *QDropEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQDropEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_DropEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_HideEvent(event *QHideEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_HideEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnHideEvent(slot func(super func(event *QHideEvent), event *QHideEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_HideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_HideEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_HideEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QHideEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QHideEvent), event *QHideEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQHideEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_HideEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) bool {
|
|
|
|
eventType_alias := C.struct_miqt_string{}
|
|
|
|
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
|
|
|
eventType_alias.len = C.size_t(len(eventType))
|
|
|
|
|
|
|
|
return (bool)(C.QMessageBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result))))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnNativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool) {
|
|
|
|
ok := C.QMessageBox_override_virtual_NativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_NativeEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_NativeEvent(self *C.QMessageBox, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.intptr_t) C.bool {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
var eventType_bytearray C.struct_miqt_string = eventType
|
|
|
|
eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len)))
|
|
|
|
C.free(unsafe.Pointer(eventType_bytearray.data))
|
|
|
|
slotval1 := eventType_ret
|
|
|
|
slotval2 := (unsafe.Pointer)(message)
|
|
|
|
|
|
|
|
slotval3 := (*uintptr)(unsafe.Pointer(result))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int {
|
|
|
|
|
|
|
|
return (int)(C.QMessageBox_virtualbase_Metric(unsafe.Pointer(this.h), (C.int)(param1)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnMetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) {
|
|
|
|
ok := C.QMessageBox_override_virtual_Metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_Metric
|
|
|
|
func miqt_exec_callback_QMessageBox_Metric(self *C.QMessageBox, cb C.intptr_t, param1 C.int) C.int {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (QPaintDevice__PaintDeviceMetric)(param1)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_Metric, slotval1)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_InitPainter(painter *QPainter) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_InitPainter(unsafe.Pointer(this.h), painter.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnInitPainter(slot func(super func(painter *QPainter), painter *QPainter)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_InitPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_InitPainter
|
|
|
|
func miqt_exec_callback_QMessageBox_InitPainter(self *C.QMessageBox, cb C.intptr_t, painter *C.QPainter) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter), painter *QPainter))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQPainter(painter)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_InitPainter, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice {
|
|
|
|
|
|
|
|
return newQPaintDevice(C.QMessageBox_virtualbase_Redirected(unsafe.Pointer(this.h), offset.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnRedirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) {
|
|
|
|
ok := C.QMessageBox_override_virtual_Redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_Redirected
|
|
|
|
func miqt_exec_callback_QMessageBox_Redirected(self *C.QMessageBox, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQPoint(offset)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_Redirected, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_SharedPainter() *QPainter {
|
|
|
|
|
|
|
|
return newQPainter(C.QMessageBox_virtualbase_SharedPainter(unsafe.Pointer(this.h)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnSharedPainter(slot func(super func() *QPainter) *QPainter) {
|
|
|
|
ok := C.QMessageBox_override_virtual_SharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_SharedPainter
|
|
|
|
func miqt_exec_callback_QMessageBox_SharedPainter(self *C.QMessageBox, cb C.intptr_t) *C.QPainter {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPainter) *QPainter)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_SharedPainter)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), param1.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnInputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_InputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_InputMethodEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_InputMethodEvent(self *C.QMessageBox, cb C.intptr_t, param1 *C.QInputMethodEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQInputMethodEvent(param1)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_InputMethodEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant {
|
|
|
|
|
|
|
|
_goptr := newQVariant(C.QMessageBox_virtualbase_InputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1)))
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnInputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) {
|
|
|
|
ok := C.QMessageBox_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_InputMethodQuery
|
|
|
|
func miqt_exec_callback_QMessageBox_InputMethodQuery(self *C.QMessageBox, cb C.intptr_t, param1 C.int) *C.QVariant {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (InputMethodQuery)(param1)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_InputMethodQuery, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_FocusNextPrevChild(next bool) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QMessageBox_virtualbase_FocusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnFocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
|
|
|
|
ok := C.QMessageBox_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_FocusNextPrevChild
|
|
|
|
func miqt_exec_callback_QMessageBox_FocusNextPrevChild(self *C.QMessageBox, cb C.intptr_t, next C.bool) C.bool {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(next bool) bool, next bool) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (bool)(next)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMessageBox{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_TimerEvent(event *QTimerEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_TimerEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_TimerEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QTimerEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTimerEvent), event *QTimerEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQTimerEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_TimerEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_ChildEvent(event *QChildEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_ChildEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnChildEvent(slot func(super func(event *QChildEvent), event *QChildEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_ChildEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_ChildEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_ChildEvent(self *C.QMessageBox, cb C.intptr_t, event *C.QChildEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QChildEvent), event *QChildEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQChildEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_ChildEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_CustomEvent(event *QEvent) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_CustomEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnCustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_CustomEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_CustomEvent
|
|
|
|
func miqt_exec_callback_QMessageBox_CustomEvent(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 := newQEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_CustomEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_ConnectNotify(unsafe.Pointer(this.h), signal.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnConnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_ConnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_ConnectNotify
|
|
|
|
func miqt_exec_callback_QMessageBox_ConnectNotify(self *C.QMessageBox, cb C.intptr_t, signal *C.QMetaMethod) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMetaMethod(signal)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_ConnectNotify, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMessageBox) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
|
|
|
|
|
|
|
|
C.QMessageBox_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMessageBox) OnDisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
|
|
|
|
ok := C.QMessageBox_override_virtual_DisconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMessageBox_DisconnectNotify
|
|
|
|
func miqt_exec_callback_QMessageBox_DisconnectNotify(self *C.QMessageBox, cb C.intptr_t, signal *C.QMetaMethod) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMetaMethod(signal)
|
|
|
|
|
|
|
|
gofunc((&QMessageBox{h: self}).callVirtualBase_DisconnectNotify, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-10-20 18:21:03 +13:00
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QMessageBox) Delete() {
|
2025-01-18 17:42:41 +13:00
|
|
|
C.QMessageBox_Delete(this.h)
|
2024-10-20 18:21:03 +13: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)
|
|
|
|
})
|
|
|
|
}
|