2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QUNDOSTACK_H
|
|
|
|
#define GEN_QUNDOSTACK_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QAction;
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QUndoCommand;
|
|
|
|
class QUndoStack;
|
|
|
|
#else
|
|
|
|
typedef struct QAction QAction;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QUndoCommand QUndoCommand;
|
|
|
|
typedef struct QUndoStack QUndoStack;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QUndoCommand* QUndoCommand_new();
|
2024-09-14 22:29:05 +00:00
|
|
|
QUndoCommand* QUndoCommand_new2(struct miqt_string* text);
|
2024-08-25 04:08:24 +00:00
|
|
|
QUndoCommand* QUndoCommand_new3(QUndoCommand* parent);
|
2024-09-14 22:29:05 +00:00
|
|
|
QUndoCommand* QUndoCommand_new4(struct miqt_string* text, QUndoCommand* parent);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUndoCommand_Undo(QUndoCommand* self);
|
|
|
|
void QUndoCommand_Redo(QUndoCommand* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QUndoCommand_Text(const QUndoCommand* self);
|
|
|
|
struct miqt_string* QUndoCommand_ActionText(const QUndoCommand* self);
|
|
|
|
void QUndoCommand_SetText(QUndoCommand* self, struct miqt_string* text);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QUndoCommand_IsObsolete(const QUndoCommand* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUndoCommand_SetObsolete(QUndoCommand* self, bool obsolete);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QUndoCommand_Id(const QUndoCommand* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QUndoCommand_MergeWith(QUndoCommand* self, QUndoCommand* other);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QUndoCommand_ChildCount(const QUndoCommand* self);
|
|
|
|
QUndoCommand* QUndoCommand_Child(const QUndoCommand* self, int index);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUndoCommand_Delete(QUndoCommand* self);
|
|
|
|
|
|
|
|
QUndoStack* QUndoStack_new();
|
|
|
|
QUndoStack* QUndoStack_new2(QObject* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QUndoStack_MetaObject(const QUndoStack* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QUndoStack_Tr(const char* s);
|
|
|
|
struct miqt_string* QUndoStack_TrUtf8(const char* s);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUndoStack_Clear(QUndoStack* self);
|
|
|
|
void QUndoStack_Push(QUndoStack* self, QUndoCommand* cmd);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QUndoStack_CanUndo(const QUndoStack* self);
|
|
|
|
bool QUndoStack_CanRedo(const QUndoStack* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QUndoStack_UndoText(const QUndoStack* self);
|
|
|
|
struct miqt_string* QUndoStack_RedoText(const QUndoStack* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QUndoStack_Count(const QUndoStack* self);
|
|
|
|
int QUndoStack_Index(const QUndoStack* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QUndoStack_Text(const QUndoStack* self, int idx);
|
2024-09-11 05:41:09 +00:00
|
|
|
QAction* QUndoStack_CreateUndoAction(const QUndoStack* self, QObject* parent);
|
|
|
|
QAction* QUndoStack_CreateRedoAction(const QUndoStack* self, QObject* parent);
|
|
|
|
bool QUndoStack_IsActive(const QUndoStack* self);
|
|
|
|
bool QUndoStack_IsClean(const QUndoStack* self);
|
|
|
|
int QUndoStack_CleanIndex(const QUndoStack* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QUndoStack_BeginMacro(QUndoStack* self, struct miqt_string* text);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUndoStack_EndMacro(QUndoStack* self);
|
|
|
|
void QUndoStack_SetUndoLimit(QUndoStack* self, int limit);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QUndoStack_UndoLimit(const QUndoStack* self);
|
|
|
|
QUndoCommand* QUndoStack_Command(const QUndoStack* self, int index);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUndoStack_SetClean(QUndoStack* self);
|
|
|
|
void QUndoStack_ResetClean(QUndoStack* self);
|
|
|
|
void QUndoStack_SetIndex(QUndoStack* self, int idx);
|
|
|
|
void QUndoStack_Undo(QUndoStack* self);
|
|
|
|
void QUndoStack_Redo(QUndoStack* self);
|
|
|
|
void QUndoStack_SetActive(QUndoStack* self);
|
|
|
|
void QUndoStack_IndexChanged(QUndoStack* self, int idx);
|
|
|
|
void QUndoStack_connect_IndexChanged(QUndoStack* self, void* slot);
|
|
|
|
void QUndoStack_CleanChanged(QUndoStack* self, bool clean);
|
|
|
|
void QUndoStack_connect_CleanChanged(QUndoStack* self, void* slot);
|
|
|
|
void QUndoStack_CanUndoChanged(QUndoStack* self, bool canUndo);
|
|
|
|
void QUndoStack_connect_CanUndoChanged(QUndoStack* self, void* slot);
|
|
|
|
void QUndoStack_CanRedoChanged(QUndoStack* self, bool canRedo);
|
|
|
|
void QUndoStack_connect_CanRedoChanged(QUndoStack* self, void* slot);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QUndoStack_UndoTextChanged(QUndoStack* self, struct miqt_string* undoText);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUndoStack_connect_UndoTextChanged(QUndoStack* self, void* slot);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QUndoStack_RedoTextChanged(QUndoStack* self, struct miqt_string* redoText);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUndoStack_connect_RedoTextChanged(QUndoStack* self, void* slot);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QUndoStack_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string* QUndoStack_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string* QUndoStack_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string* QUndoStack_TrUtf83(const char* s, const char* c, int n);
|
|
|
|
QAction* QUndoStack_CreateUndoAction2(const QUndoStack* self, QObject* parent, struct miqt_string* prefix);
|
|
|
|
QAction* QUndoStack_CreateRedoAction2(const QUndoStack* self, QObject* parent, struct miqt_string* prefix);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUndoStack_SetActive1(QUndoStack* self, bool active);
|
|
|
|
void QUndoStack_Delete(QUndoStack* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|