2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qundogroup.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
2024-09-14 22:29:05 +00:00
|
|
|
"runtime"
|
2024-08-25 04:08:24 +00:00
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QUndoGroup struct {
|
|
|
|
h *C.QUndoGroup
|
|
|
|
*QObject
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) cPointer() *C.QUndoGroup {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQUndoGroup(h *C.QUndoGroup) *QUndoGroup {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QUndoGroup{h: h, QObject: newQObject_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQUndoGroup_U(h unsafe.Pointer) *QUndoGroup {
|
|
|
|
return newQUndoGroup((*C.QUndoGroup)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQUndoGroup constructs a new QUndoGroup object.
|
|
|
|
func NewQUndoGroup() *QUndoGroup {
|
|
|
|
ret := C.QUndoGroup_new()
|
|
|
|
return newQUndoGroup(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQUndoGroup2 constructs a new QUndoGroup object.
|
|
|
|
func NewQUndoGroup2(parent *QObject) *QUndoGroup {
|
|
|
|
ret := C.QUndoGroup_new2(parent.cPointer())
|
|
|
|
return newQUndoGroup(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) MetaObject() *QMetaObject {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QUndoGroup_MetaObject(this.h)
|
|
|
|
return newQMetaObject_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QUndoGroup_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QUndoGroup_Tr(s_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QUndoGroup_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QUndoGroup_TrUtf8(s_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) AddStack(stack *QUndoStack) {
|
|
|
|
C.QUndoGroup_AddStack(this.h, stack.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) RemoveStack(stack *QUndoStack) {
|
|
|
|
C.QUndoGroup_RemoveStack(this.h, stack.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) Stacks() []*QUndoStack {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ma *C.struct_miqt_array = C.QUndoGroup_Stacks(this.h)
|
|
|
|
_ret := make([]*QUndoStack, int(_ma.len))
|
|
|
|
_outCast := (*[0xffff]*C.QUndoStack)(unsafe.Pointer(_ma.data)) // mrs jackson
|
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
|
|
_ret[i] = newQUndoStack(_outCast[i])
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
C.free(unsafe.Pointer(_ma))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) ActiveStack() *QUndoStack {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QUndoGroup_ActiveStack(this.h)
|
|
|
|
return newQUndoStack_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) CreateUndoAction(parent *QObject) *QAction {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QUndoGroup_CreateUndoAction(this.h, parent.cPointer())
|
|
|
|
return newQAction_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) CreateRedoAction(parent *QObject) *QAction {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QUndoGroup_CreateRedoAction(this.h, parent.cPointer())
|
|
|
|
return newQAction_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) CanUndo() bool {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QUndoGroup_CanUndo(this.h)
|
|
|
|
return (bool)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) CanRedo() bool {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QUndoGroup_CanRedo(this.h)
|
|
|
|
return (bool)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) UndoText() string {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QUndoGroup_UndoText(this.h)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) RedoText() string {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QUndoGroup_RedoText(this.h)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) IsClean() bool {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QUndoGroup_IsClean(this.h)
|
|
|
|
return (bool)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) Undo() {
|
|
|
|
C.QUndoGroup_Undo(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) Redo() {
|
|
|
|
C.QUndoGroup_Redo(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) SetActiveStack(stack *QUndoStack) {
|
|
|
|
C.QUndoGroup_SetActiveStack(this.h, stack.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) ActiveStackChanged(stack *QUndoStack) {
|
|
|
|
C.QUndoGroup_ActiveStackChanged(this.h, stack.cPointer())
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QUndoGroup) OnActiveStackChanged(slot func(stack *QUndoStack)) {
|
|
|
|
C.QUndoGroup_connect_ActiveStackChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QUndoGroup_ActiveStackChanged
|
|
|
|
func miqt_exec_callback_QUndoGroup_ActiveStackChanged(cb *C.void, stack *C.QUndoStack) {
|
|
|
|
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(stack *QUndoStack))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
stack_ret := stack
|
|
|
|
slotval1 := newQUndoStack_U(unsafe.Pointer(stack_ret))
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) IndexChanged(idx int) {
|
|
|
|
C.QUndoGroup_IndexChanged(this.h, (C.int)(idx))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QUndoGroup) OnIndexChanged(slot func(idx int)) {
|
|
|
|
C.QUndoGroup_connect_IndexChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QUndoGroup_IndexChanged
|
|
|
|
func miqt_exec_callback_QUndoGroup_IndexChanged(cb *C.void, idx C.int) {
|
|
|
|
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(idx int))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
idx_ret := idx
|
|
|
|
slotval1 := (int)(idx_ret)
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) CleanChanged(clean bool) {
|
|
|
|
C.QUndoGroup_CleanChanged(this.h, (C.bool)(clean))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QUndoGroup) OnCleanChanged(slot func(clean bool)) {
|
|
|
|
C.QUndoGroup_connect_CleanChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QUndoGroup_CleanChanged
|
|
|
|
func miqt_exec_callback_QUndoGroup_CleanChanged(cb *C.void, clean C.bool) {
|
|
|
|
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(clean bool))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
clean_ret := clean
|
|
|
|
slotval1 := (bool)(clean_ret)
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) CanUndoChanged(canUndo bool) {
|
|
|
|
C.QUndoGroup_CanUndoChanged(this.h, (C.bool)(canUndo))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QUndoGroup) OnCanUndoChanged(slot func(canUndo bool)) {
|
|
|
|
C.QUndoGroup_connect_CanUndoChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QUndoGroup_CanUndoChanged
|
|
|
|
func miqt_exec_callback_QUndoGroup_CanUndoChanged(cb *C.void, canUndo C.bool) {
|
|
|
|
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(canUndo bool))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
canUndo_ret := canUndo
|
|
|
|
slotval1 := (bool)(canUndo_ret)
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) CanRedoChanged(canRedo bool) {
|
|
|
|
C.QUndoGroup_CanRedoChanged(this.h, (C.bool)(canRedo))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QUndoGroup) OnCanRedoChanged(slot func(canRedo bool)) {
|
|
|
|
C.QUndoGroup_connect_CanRedoChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QUndoGroup_CanRedoChanged
|
|
|
|
func miqt_exec_callback_QUndoGroup_CanRedoChanged(cb *C.void, canRedo C.bool) {
|
|
|
|
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(canRedo bool))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
canRedo_ret := canRedo
|
|
|
|
slotval1 := (bool)(canRedo_ret)
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) UndoTextChanged(undoText string) {
|
2024-09-14 22:29:05 +00:00
|
|
|
undoText_ms := miqt_strdupg(undoText)
|
|
|
|
defer C.free(undoText_ms)
|
|
|
|
C.QUndoGroup_UndoTextChanged(this.h, (*C.struct_miqt_string)(undoText_ms))
|
|
|
|
}
|
|
|
|
func (this *QUndoGroup) OnUndoTextChanged(slot func(undoText string)) {
|
|
|
|
C.QUndoGroup_connect_UndoTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QUndoGroup_UndoTextChanged
|
|
|
|
func miqt_exec_callback_QUndoGroup_UndoTextChanged(cb *C.void, undoText *C.struct_miqt_string) {
|
|
|
|
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(undoText string))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
var undoText_ms *C.struct_miqt_string = undoText
|
|
|
|
undoText_ret := C.GoStringN(&undoText_ms.data, C.int(int64(undoText_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(undoText_ms))
|
|
|
|
slotval1 := undoText_ret
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) RedoTextChanged(redoText string) {
|
2024-09-14 22:29:05 +00:00
|
|
|
redoText_ms := miqt_strdupg(redoText)
|
|
|
|
defer C.free(redoText_ms)
|
|
|
|
C.QUndoGroup_RedoTextChanged(this.h, (*C.struct_miqt_string)(redoText_ms))
|
|
|
|
}
|
|
|
|
func (this *QUndoGroup) OnRedoTextChanged(slot func(redoText string)) {
|
|
|
|
C.QUndoGroup_connect_RedoTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QUndoGroup_RedoTextChanged
|
|
|
|
func miqt_exec_callback_QUndoGroup_RedoTextChanged(cb *C.void, redoText *C.struct_miqt_string) {
|
|
|
|
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(redoText string))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
var redoText_ms *C.struct_miqt_string = redoText
|
|
|
|
redoText_ret := C.GoStringN(&redoText_ms.data, C.int(int64(redoText_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(redoText_ms))
|
|
|
|
slotval1 := redoText_ret
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QUndoGroup_Tr2(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QUndoGroup_Tr2(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QUndoGroup_Tr3(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QUndoGroup_Tr3(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QUndoGroup_TrUtf82(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QUndoGroup_TrUtf82(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QUndoGroup_TrUtf83(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QUndoGroup_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) CreateUndoAction2(parent *QObject, prefix string) *QAction {
|
2024-09-14 22:29:05 +00:00
|
|
|
prefix_ms := miqt_strdupg(prefix)
|
|
|
|
defer C.free(prefix_ms)
|
|
|
|
_ret := C.QUndoGroup_CreateUndoAction2(this.h, parent.cPointer(), (*C.struct_miqt_string)(prefix_ms))
|
|
|
|
return newQAction_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QUndoGroup) CreateRedoAction2(parent *QObject, prefix string) *QAction {
|
2024-09-14 22:29:05 +00:00
|
|
|
prefix_ms := miqt_strdupg(prefix)
|
|
|
|
defer C.free(prefix_ms)
|
|
|
|
_ret := C.QUndoGroup_CreateRedoAction2(this.h, parent.cPointer(), (*C.struct_miqt_string)(prefix_ms))
|
|
|
|
return newQAction_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QUndoGroup) Delete() {
|
|
|
|
C.QUndoGroup_Delete(this.h)
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QUndoGroup) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QUndoGroup) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|