diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4cb44b1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/deploy
diff --git a/darwin/Contents/Info.plist b/darwin/Contents/Info.plist
new file mode 100644
index 0000000..96ae0e5
--- /dev/null
+++ b/darwin/Contents/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ CFBundleExecutable
+ annie-mingui
+ CFBundleGetInfoString
+ Created by Qt/QMake
+ CFBundleIconFile
+ annie-mingui.icns
+ CFBundleIdentifier
+ org.zhimingwang.annie-mingui
+ CFBundleName
+ annie-mingui
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 2020.02.09
+ CFBundleSignature
+ ????
+ LSMinimumSystemVersion
+ 10.11
+ NOTE
+ This file was generated by Qt/QMake.
+ NSPrincipalClass
+ NSApplication
+ NSHighResolutionCapable
+
+ NSSupportsAutomaticGraphicsSwitching
+
+
+
diff --git a/darwin/Contents/Resources/annie-mingui.icns b/darwin/Contents/Resources/annie-mingui.icns
new file mode 100644
index 0000000..616032b
Binary files /dev/null and b/darwin/Contents/Resources/annie-mingui.icns differ
diff --git a/icon.ico b/icon.ico
new file mode 100644
index 0000000..78ca029
Binary files /dev/null and b/icon.ico differ
diff --git a/icon.png b/icon.png
new file mode 100644
index 0000000..997fe70
Binary files /dev/null and b/icon.png differ
diff --git a/icon.rc b/icon.rc
new file mode 100644
index 0000000..1bc463a
--- /dev/null
+++ b/icon.rc
@@ -0,0 +1 @@
+IDI_ICON1 ICON DISCARDABLE "icon.ico"
diff --git a/icon.svg b/icon.svg
new file mode 100644
index 0000000..00d0b68
--- /dev/null
+++ b/icon.svg
@@ -0,0 +1 @@
+
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..263734b
--- /dev/null
+++ b/main.go
@@ -0,0 +1,521 @@
+package main
+
+import (
+ "bufio"
+ "flag"
+ "fmt"
+ "io"
+ "net/url"
+ "os"
+ "os/signal"
+ "regexp"
+ "strings"
+ "syscall"
+ "time"
+
+ "golang.org/x/text/language"
+
+ "github.com/cloudfoundry-attic/jibber_jabber"
+ "github.com/golang/glog"
+
+ "github.com/therecipe/qt/core"
+ "github.com/therecipe/qt/gui"
+ "github.com/therecipe/qt/widgets"
+
+ "github.com/iawia002/annie/config"
+ "github.com/iawia002/annie/downloader"
+ "github.com/iawia002/annie/extractors/bcy"
+ "github.com/iawia002/annie/extractors/bilibili"
+ "github.com/iawia002/annie/extractors/douyin"
+ "github.com/iawia002/annie/extractors/douyu"
+ "github.com/iawia002/annie/extractors/facebook"
+ "github.com/iawia002/annie/extractors/geekbang"
+ "github.com/iawia002/annie/extractors/instagram"
+ "github.com/iawia002/annie/extractors/iqiyi"
+ "github.com/iawia002/annie/extractors/mgtv"
+ "github.com/iawia002/annie/extractors/miaopai"
+ "github.com/iawia002/annie/extractors/netease"
+ "github.com/iawia002/annie/extractors/pixivision"
+ "github.com/iawia002/annie/extractors/pornhub"
+ "github.com/iawia002/annie/extractors/qq"
+ "github.com/iawia002/annie/extractors/tangdou"
+ "github.com/iawia002/annie/extractors/tiktok"
+ "github.com/iawia002/annie/extractors/tumblr"
+ "github.com/iawia002/annie/extractors/twitter"
+ "github.com/iawia002/annie/extractors/udn"
+ "github.com/iawia002/annie/extractors/universal"
+ "github.com/iawia002/annie/extractors/vimeo"
+ "github.com/iawia002/annie/extractors/weibo"
+ "github.com/iawia002/annie/extractors/xvideos"
+ "github.com/iawia002/annie/extractors/yinyuetai"
+ "github.com/iawia002/annie/extractors/youku"
+ "github.com/iawia002/annie/extractors/youtube"
+ "github.com/iawia002/annie/utils"
+
+ "github.com/fanaticscripter/annie-mingui/util"
+)
+
+const appName = "annie-mingui"
+const appAuthor = "Zhiming Wang"
+const appAuthorDomain = "zhimingwang.org"
+const about = `
annie-mingui v2020.02.09
+Copyright (c) 2020 Zhiming Wang
+annie-mingui is a Qt wrapper for iawia002/annie the video downloader. Credits:
+
+ - iawia002/annie, MIT license;
+ - Qt, LGPLv3 license;
+ - therecipe/qt, Qt bindings for golang, LGPLv3 license.
+
+Project URL: github.com/fanaticscripter/annie-mingui.
+`
+
+// GUIConfig carries all application configurations.
+type GUIConfig struct {
+ DestinationFolder string
+ PlaylistEnabled bool
+}
+
+// GetDestinationFolder attempts to retrieve (if not yet) and returns the
+// configured destination folder.
+func (c *GUIConfig) GetDestinationFolder() string {
+ fallback := util.DefaultDownloadsFolder()
+ val := settings.Value("destinationFolder", core.NewQVariant12(fallback)).ToString()
+ c.DestinationFolder = val
+ return val
+}
+
+// GetPlaylistEnabled attempts to retrieve (if not yet) and returns the
+// configured value of whether playlist download is enabled.
+func (c *GUIConfig) GetPlaylistEnabled() bool {
+ fallback := true
+ val := settings.Value("playlistEnabled", core.NewQVariant9(fallback)).ToBool()
+ c.PlaylistEnabled = val
+ return val
+}
+
+// SetDestinationFolder sets and persists the configured destination folder.
+func (c *GUIConfig) SetDestinationFolder(val string) {
+ c.DestinationFolder = val
+ go func() { settings.SetValue("destinationFolder", core.NewQVariant12(val)) }()
+}
+
+// SetPlaylistEnabled sets and persists the configured value of whether playlist
+// download is enabled.
+func (c *GUIConfig) SetPlaylistEnabled(val bool) {
+ c.PlaylistEnabled = val
+ go func() { settings.SetValue("playlistEnabled", core.NewQVariant9(val)) }()
+}
+
+// LoadGUIConfig loads config values from persisted settings if possible, or
+// loads defaults otherwise.
+func LoadGUIConfig() *GUIConfig {
+ c := &GUIConfig{}
+ c.GetDestinationFolder()
+ c.GetPlaylistEnabled()
+ return c
+}
+
+var settings *core.QSettings
+var guiConfig *GUIConfig
+
+var locales = map[string]map[string]string{
+ "zh-Hans": {
+ "About": "关于",
+ "Application": "应用",
+ "Awaiting user input": "等待用户输入",
+ "Destination folder": "目标文件夹",
+ "Download": "下载",
+ "Download playlists": "下载完整播单",
+ "Download started": "下载已开始",
+ "On network errors, e.g. HTTP 403, please retry a few times.": "如遇HTTP 403等网络错误,请重试几次。",
+ "Pick another folder": "选择文件夹",
+ "Video URL": "视频链接",
+ },
+}
+var locale map[string]string
+
+// Poor man's gettext.
+func tr(s string) string {
+ t, ok := locale[s]
+ if ok {
+ return t
+ }
+ return s
+}
+
+// ----- START ANNIE CODE -----
+//
+// The following code is slightly modified from
+//
+// https://github.com/iawia002/annie/blob/master/main.go
+
+func printError(url string, err error) {
+ fmt.Printf(
+ "Downloading %s error:\n%s\n", url, err,
+ )
+}
+
+func download(videoURL string) bool {
+ var (
+ domain string
+ err error
+ data []downloader.Data
+ )
+ bilibiliShortLink := utils.MatchOneOf(videoURL, `^(av|ep)\d+`)
+ if bilibiliShortLink != nil && len(bilibiliShortLink) > 1 {
+ bilibiliURL := map[string]string{
+ "av": "https://www.bilibili.com/video/",
+ "ep": "https://www.bilibili.com/bangumi/play/",
+ }
+ domain = "bilibili"
+ videoURL = bilibiliURL[bilibiliShortLink[1]] + videoURL
+ } else {
+ u, err := url.ParseRequestURI(videoURL)
+ if err != nil {
+ printError(videoURL, err)
+ return false
+ }
+ domain = utils.Domain(u.Host)
+ }
+ switch domain {
+ case "douyin", "iesdouyin":
+ data, err = douyin.Extract(videoURL)
+ case "bilibili":
+ data, err = bilibili.Extract(videoURL)
+ case "bcy":
+ data, err = bcy.Extract(videoURL)
+ case "pixivision":
+ data, err = pixivision.Extract(videoURL)
+ case "youku":
+ data, err = youku.Extract(videoURL)
+ case "youtube", "youtu": // youtu.be
+ data, err = youtube.Extract(videoURL)
+ case "iqiyi":
+ data, err = iqiyi.Extract(videoURL)
+ case "mgtv":
+ data, err = mgtv.Extract(videoURL)
+ case "tangdou":
+ data, err = tangdou.Extract(videoURL)
+ case "tumblr":
+ data, err = tumblr.Extract(videoURL)
+ case "vimeo":
+ data, err = vimeo.Extract(videoURL)
+ case "facebook":
+ data, err = facebook.Extract(videoURL)
+ case "douyu":
+ data, err = douyu.Extract(videoURL)
+ case "miaopai":
+ data, err = miaopai.Extract(videoURL)
+ case "163":
+ data, err = netease.Extract(videoURL)
+ case "weibo":
+ data, err = weibo.Extract(videoURL)
+ case "instagram":
+ data, err = instagram.Extract(videoURL)
+ case "twitter":
+ data, err = twitter.Extract(videoURL)
+ case "qq":
+ data, err = qq.Extract(videoURL)
+ case "yinyuetai":
+ data, err = yinyuetai.Extract(videoURL)
+ case "geekbang":
+ data, err = geekbang.Extract(videoURL)
+ case "pornhub":
+ data, err = pornhub.Extract(videoURL)
+ case "xvideos":
+ data, err = xvideos.Extract(videoURL)
+ case "udn":
+ data, err = udn.Extract(videoURL)
+ case "tiktok":
+ data, err = tiktok.Extract(videoURL)
+ default:
+ data, err = universal.Extract(videoURL)
+ }
+ if err != nil {
+ // if this error occurs, it means that an error occurred before actually starting to extract data
+ // (there is an error in the preparation step), and the data list is empty.
+ printError(videoURL, err)
+ return false
+ }
+ var isErr bool
+ for _, item := range data {
+ if item.Err != nil {
+ // if this error occurs, the preparation step is normal, but the data extraction is wrong.
+ // the data is an empty struct.
+ printError(item.URL, item.Err)
+ isErr = true
+ continue
+ }
+ err = downloader.Download(item, videoURL, config.ChunkSizeMB)
+ if err != nil {
+ printError(item.URL, err)
+ isErr = true
+ }
+ }
+ return !isErr
+}
+
+// ----- END ANNIE CODE -----
+
+// PlainTextEdit extends QPlainTextEdit.
+type PlainTextEdit struct {
+ widgets.QPlainTextEdit
+
+ _ func() `constructor:"init"`
+
+ _ func(string) `slot:"addLine"`
+
+ carriageReturnInAction bool
+}
+
+func (p *PlainTextEdit) init() {
+ p.carriageReturnInAction = false
+ p.ConnectAddLine(p.addLine)
+}
+
+// addLines adds a line that might end in LF, CRLF, CR, or none of the above (in
+// which case an LF is appended). Aware of CR and scroll position.
+func (p *PlainTextEdit) addLine(line string) {
+ scrollBar := p.VerticalScrollBar()
+ currentScroll := scrollBar.Value()
+ userScrolledBack := currentScroll != scrollBar.Maximum()
+
+ cursor := p.TextCursor()
+ cursor.MovePosition(gui.QTextCursor__End, gui.QTextCursor__MoveAnchor, 1)
+ if p.carriageReturnInAction {
+ // Remove last line.
+ cursor.Select(gui.QTextCursor__LineUnderCursor)
+ cursor.RemoveSelectedText()
+ }
+ p.carriageReturnInAction = false
+ if len(line) > 0 {
+ switch lastCh := line[len(line)-1]; lastCh {
+ case '\n':
+ cursor.InsertText(line)
+ case '\r':
+ cursor.InsertText(line[:len(line)-1])
+ p.carriageReturnInAction = true
+ default:
+ cursor.InsertText(line + "\n")
+ }
+ } else {
+ cursor.InsertText("\n")
+ }
+
+ if userScrolledBack {
+ scrollBar.SetValue(currentScroll)
+ } else {
+ scrollBar.SetValue(scrollBar.Maximum())
+ }
+}
+
+type outputBuffer struct {
+ textEdit *PlainTextEdit
+ reader *bufio.Reader
+ scanner *bufio.Scanner
+}
+
+func newOutputBuffer(textEdit *PlainTextEdit) *outputBuffer {
+ return &outputBuffer{
+ textEdit: textEdit,
+ reader: nil,
+ scanner: nil,
+ }
+}
+
+func (b *outputBuffer) attachReader(r io.Reader) {
+ b.reader = bufio.NewReaderSize(r, 64*1024)
+ b.scanner = bufio.NewScanner(b.reader)
+ re := regexp.MustCompile(`^[^\r\n]*(\r\n|\r|\n)`)
+ b.scanner.Split(func(data []byte, atEOF bool) (advance int, token []byte, err error) {
+ token = re.Find(data)
+ if token != nil {
+ return len(token), token, nil
+ }
+ if !atEOF {
+ return 0, nil, nil
+ }
+ return 0, data, bufio.ErrFinalToken
+ })
+}
+
+func (b *outputBuffer) addLine(line string) {
+ b.textEdit.AddLine(line)
+}
+
+func (b *outputBuffer) readLineAndUpdate() (fullLine string, err error) {
+ if !b.scanner.Scan() {
+ err = b.scanner.Err()
+ if err != nil {
+ return "", err
+ }
+ err = io.EOF
+ }
+ fullLine = b.scanner.Text()
+ if len(fullLine) > 0 {
+ b.addLine(fullLine)
+ }
+ return
+}
+
+func init() {
+ flag.Parse()
+
+ userLang, err := jibber_jabber.DetectIETF()
+ if err != nil {
+ userLang = "en"
+ }
+ availableLangs := []string{"en"}
+ availableTags := []language.Tag{language.English}
+ for l := range locales {
+ availableLangs = append(availableLangs, l)
+ availableTags = append(availableTags, language.Make(l))
+ }
+ matcher := language.NewMatcher(availableTags)
+ _, index, _ := matcher.Match(language.Make(userLang))
+ locale = locales[availableLangs[index]]
+
+ core.QCoreApplication_SetOrganizationName(appAuthor)
+ core.QCoreApplication_SetOrganizationDomain(appAuthorDomain)
+
+ settings = core.NewQSettings5(nil)
+ guiConfig = LoadGUIConfig()
+}
+
+func initAboutWindow() *widgets.QDialog {
+ w := widgets.NewQDialog(nil, 0)
+ label := widgets.NewQLabel2(about, nil, 0)
+ label.SetOpenExternalLinks(true)
+ layout := widgets.NewQVBoxLayout()
+ layout.AddWidget(label, 0, 0)
+ w.SetLayout(layout)
+ return w
+}
+
+func main() {
+ widgets.NewQApplication(len(os.Args), os.Args)
+
+ window := widgets.NewQMainWindow(nil, 0)
+ window.SetWindowTitle(appName)
+ window.ConnectCloseEvent(func(*gui.QCloseEvent) {
+ settings.SetValue("_geometry", core.NewQVariant13(window.SaveGeometry()))
+ settings.SetValue("_windowState", core.NewQVariant13(window.SaveState(0)))
+ })
+
+ window.RestoreGeometry(settings.Value("_geometry", core.NewQVariant()).ToByteArray())
+ window.RestoreState(settings.Value("_windowState", core.NewQVariant()).ToByteArray(), 0)
+
+ centralWidget := widgets.NewQWidget(window, 0)
+ window.SetCentralWidget(centralWidget)
+
+ menuBar := window.MenuBar()
+ applicationMenu := menuBar.AddMenu2(tr("Application"))
+ aboutWindow := initAboutWindow()
+ aboutAction := applicationMenu.AddAction(tr("About"))
+ aboutAction.SetMenuRole(widgets.QAction__AboutRole)
+ aboutAction.ConnectTriggered(func(bool) {
+ aboutWindow.Show()
+ aboutWindow.Raise()
+ })
+
+ urlLineEdit := widgets.NewQLineEdit(nil)
+
+ folderLineEdit := widgets.NewQLineEdit2(guiConfig.DestinationFolder, nil)
+ folderLineEdit.SetReadOnly(true)
+ folderLineEdit.SetMinimumWidth(250)
+ folderButton := widgets.NewQPushButton2(tr("Pick another folder"), nil)
+ folderDialog := widgets.NewQFileDialog2(nil, tr("Destination folder"), guiConfig.DestinationFolder, "")
+ folderDialog.SetFileMode(widgets.QFileDialog__DirectoryOnly)
+ folderButton.ConnectClicked(func(bool) {
+ if folderDialog.Exec() != int(widgets.QDialog__Accepted) {
+ return
+ }
+ destinationFolder := core.QDir_ToNativeSeparators(folderDialog.SelectedFiles()[0])
+ folderLineEdit.SetText(destinationFolder)
+ guiConfig.SetDestinationFolder(destinationFolder)
+ })
+ folderHBoxLayout := widgets.NewQHBoxLayout()
+ folderHBoxLayout.AddWidget(folderLineEdit, 1, 0)
+ folderHBoxLayout.AddWidget(folderButton, 0, 0)
+
+ playlistCheckBox := widgets.NewQCheckBox(nil)
+ playlistCheckBox.SetChecked(guiConfig.PlaylistEnabled)
+ playlistCheckBox.ConnectToggled(func(checked bool) {
+ guiConfig.SetPlaylistEnabled(checked)
+ })
+
+ inputFormLayout := widgets.NewQFormLayout(nil)
+ inputFormLayout.SetFieldGrowthPolicy(widgets.QFormLayout__AllNonFixedFieldsGrow)
+ inputFormLayout.AddRow3(tr("Video URL"), urlLineEdit)
+ inputFormLayout.AddRow4(tr("Destination folder"), folderHBoxLayout)
+ inputFormLayout.AddRow3(tr("Download playlists"), playlistCheckBox)
+
+ outputTextEdit := NewPlainTextEdit(nil)
+ outputTextEdit.SetReadOnly(true)
+ outputTextEdit.SetMinimumHeight(400)
+ outputTextEdit.SetMinimumWidth(1000)
+ outputTextEdit.SetLineWrapMode(widgets.QPlainTextEdit__NoWrap)
+ monospaceFont := gui.NewQFont2("Courier", -1, -1, false)
+ monospaceFont.SetStyleHint(gui.QFont__Monospace, 0)
+ outputTextEdit.SetFont(monospaceFont)
+ output := newOutputBuffer(outputTextEdit)
+ output.addLine(tr("Awaiting user input"))
+
+ downloadButton := widgets.NewQPushButton2(tr("Download"), nil)
+ downloadButton.ConnectClicked(func(bool) {
+ url := strings.TrimSpace(urlLineEdit.Text())
+ if len(url) > 0 {
+ output.addLine(time.Now().Format("15:04:05 ") + tr("Download started"))
+
+ config.OutputPath = guiConfig.DestinationFolder
+ config.Playlist = guiConfig.PlaylistEnabled
+ glog.Infof("downloading %s => %s", url, config.OutputPath)
+
+ savedStdout := os.Stdout
+ r, w, _ := os.Pipe()
+ output.attachReader(r)
+ os.Stdout = w
+
+ go func() {
+ for {
+ _, err := output.readLineAndUpdate()
+ if err != nil {
+ if err == io.EOF {
+ break
+ }
+ glog.Fatal(err)
+ }
+ // fmt.Fprint(savedStdout, line)
+ }
+ output.addLine("")
+ }()
+
+ go func() {
+ if !download(url) {
+ fmt.Println(tr("On network errors, e.g. HTTP 403, please retry a few times."))
+ }
+ w.Close()
+ os.Stdout = savedStdout
+ }()
+ }
+ })
+
+ layout := widgets.NewQVBoxLayout()
+ layout.AddLayout(inputFormLayout, 0)
+ layout.AddWidget(downloadButton, 0, 0)
+ layout.AddWidget(outputTextEdit, 1, 0)
+ centralWidget.SetLayout(layout)
+
+ window.Show()
+
+ sigs := make(chan os.Signal)
+ signal.Notify(sigs, syscall.SIGSEGV, syscall.SIGABRT)
+ go func() {
+ for {
+ sig := <-sigs
+ glog.Error(sig)
+ }
+ }()
+
+ widgets.QApplication_Exec()
+}
diff --git a/moc.cpp b/moc.cpp
new file mode 100644
index 0000000..bcbe30b
--- /dev/null
+++ b/moc.cpp
@@ -0,0 +1,787 @@
+
+
+#define protected public
+#define private public
+
+#include "moc.h"
+#include "_cgo_export.h"
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#ifdef QT_QML_LIB
+ #include
+#endif
+
+
+class PlainTextEditb1a9c9: public QPlainTextEdit
+{
+Q_OBJECT
+public:
+ PlainTextEditb1a9c9(QWidget *parent = Q_NULLPTR) : QPlainTextEdit(parent) {qRegisterMetaType("quintptr");PlainTextEditb1a9c9_PlainTextEditb1a9c9_QRegisterMetaType();PlainTextEditb1a9c9_PlainTextEditb1a9c9_QRegisterMetaTypes();callbackPlainTextEditb1a9c9_Constructor(this);};
+ PlainTextEditb1a9c9(const QString &text, QWidget *parent = Q_NULLPTR) : QPlainTextEdit(text, parent) {qRegisterMetaType("quintptr");PlainTextEditb1a9c9_PlainTextEditb1a9c9_QRegisterMetaType();PlainTextEditb1a9c9_PlainTextEditb1a9c9_QRegisterMetaTypes();callbackPlainTextEditb1a9c9_Constructor(this);};
+ ~PlainTextEditb1a9c9() { callbackPlainTextEditb1a9c9_DestroyPlainTextEdit(this); };
+ void appendHtml(const QString & html) { QByteArray* t950a39 = new QByteArray(html.toUtf8()); Moc_PackedString htmlPacked = { const_cast(t950a39->prepend("WHITESPACE").constData()+10), t950a39->size()-10, t950a39 };callbackPlainTextEditb1a9c9_AppendHtml(this, htmlPacked); };
+ void appendPlainText(const QString & text) { QByteArray* t372ea0 = new QByteArray(text.toUtf8()); Moc_PackedString textPacked = { const_cast(t372ea0->prepend("WHITESPACE").constData()+10), t372ea0->size()-10, t372ea0 };callbackPlainTextEditb1a9c9_AppendPlainText(this, textPacked); };
+ void Signal_BlockCountChanged(int newBlockCount) { callbackPlainTextEditb1a9c9_BlockCountChanged(this, newBlockCount); };
+ bool canInsertFromMimeData(const QMimeData * source) const { return callbackPlainTextEditb1a9c9_CanInsertFromMimeData(const_cast(static_cast(this)), const_cast(source)) != 0; };
+ void centerCursor() { callbackPlainTextEditb1a9c9_CenterCursor(this); };
+ void changeEvent(QEvent * e) { callbackPlainTextEditb1a9c9_ChangeEvent(this, e); };
+ void clear() { callbackPlainTextEditb1a9c9_Clear(this); };
+ void contextMenuEvent(QContextMenuEvent * event) { callbackPlainTextEditb1a9c9_ContextMenuEvent(this, event); };
+ void copy() { callbackPlainTextEditb1a9c9_Copy(this); };
+ void Signal_CopyAvailable(bool yes) { callbackPlainTextEditb1a9c9_CopyAvailable(this, yes); };
+ QMimeData * createMimeDataFromSelection() const { return static_cast(callbackPlainTextEditb1a9c9_CreateMimeDataFromSelection(const_cast(static_cast(this)))); };
+ void Signal_CursorPositionChanged() { callbackPlainTextEditb1a9c9_CursorPositionChanged(this); };
+ void cut() { callbackPlainTextEditb1a9c9_Cut(this); };
+ void dragEnterEvent(QDragEnterEvent * e) { callbackPlainTextEditb1a9c9_DragEnterEvent(this, e); };
+ void dragLeaveEvent(QDragLeaveEvent * e) { callbackPlainTextEditb1a9c9_DragLeaveEvent(this, e); };
+ void dragMoveEvent(QDragMoveEvent * e) { callbackPlainTextEditb1a9c9_DragMoveEvent(this, e); };
+ void dropEvent(QDropEvent * e) { callbackPlainTextEditb1a9c9_DropEvent(this, e); };
+ void focusInEvent(QFocusEvent * e) { callbackPlainTextEditb1a9c9_FocusInEvent(this, e); };
+ bool focusNextPrevChild(bool next) { return callbackPlainTextEditb1a9c9_FocusNextPrevChild(this, next) != 0; };
+ void focusOutEvent(QFocusEvent * e) { callbackPlainTextEditb1a9c9_FocusOutEvent(this, e); };
+ void inputMethodEvent(QInputMethodEvent * e) { callbackPlainTextEditb1a9c9_InputMethodEvent(this, e); };
+ QVariant inputMethodQuery(Qt::InputMethodQuery property) const { return *static_cast(callbackPlainTextEditb1a9c9_InputMethodQuery(const_cast(static_cast(this)), property)); };
+ void insertFromMimeData(const QMimeData * source) { callbackPlainTextEditb1a9c9_InsertFromMimeData(this, const_cast(source)); };
+ void insertPlainText(const QString & text) { QByteArray* t372ea0 = new QByteArray(text.toUtf8()); Moc_PackedString textPacked = { const_cast(t372ea0->prepend("WHITESPACE").constData()+10), t372ea0->size()-10, t372ea0 };callbackPlainTextEditb1a9c9_InsertPlainText(this, textPacked); };
+ void keyPressEvent(QKeyEvent * e) { callbackPlainTextEditb1a9c9_KeyPressEvent(this, e); };
+ void keyReleaseEvent(QKeyEvent * e) { callbackPlainTextEditb1a9c9_KeyReleaseEvent(this, e); };
+ QVariant loadResource(int ty, const QUrl & name) { return *static_cast(callbackPlainTextEditb1a9c9_LoadResource(this, ty, const_cast(&name))); };
+ void Signal_ModificationChanged(bool changed) { callbackPlainTextEditb1a9c9_ModificationChanged(this, changed); };
+ void mouseDoubleClickEvent(QMouseEvent * e) { callbackPlainTextEditb1a9c9_MouseDoubleClickEvent(this, e); };
+ void mouseMoveEvent(QMouseEvent * e) { callbackPlainTextEditb1a9c9_MouseMoveEvent(this, e); };
+ void mousePressEvent(QMouseEvent * e) { callbackPlainTextEditb1a9c9_MousePressEvent(this, e); };
+ void mouseReleaseEvent(QMouseEvent * e) { callbackPlainTextEditb1a9c9_MouseReleaseEvent(this, e); };
+ void paintEvent(QPaintEvent * e) { callbackPlainTextEditb1a9c9_PaintEvent(this, e); };
+ void paste() { callbackPlainTextEditb1a9c9_Paste(this); };
+ void redo() { callbackPlainTextEditb1a9c9_Redo(this); };
+ void Signal_RedoAvailable(bool available) { callbackPlainTextEditb1a9c9_RedoAvailable(this, available); };
+ void resizeEvent(QResizeEvent * e) { callbackPlainTextEditb1a9c9_ResizeEvent(this, e); };
+ void scrollContentsBy(int dx, int dy) { callbackPlainTextEditb1a9c9_ScrollContentsBy(this, dx, dy); };
+ void selectAll() { callbackPlainTextEditb1a9c9_SelectAll(this); };
+ void Signal_SelectionChanged() { callbackPlainTextEditb1a9c9_SelectionChanged(this); };
+ void setPlainText(const QString & text) { QByteArray* t372ea0 = new QByteArray(text.toUtf8()); Moc_PackedString textPacked = { const_cast(t372ea0->prepend("WHITESPACE").constData()+10), t372ea0->size()-10, t372ea0 };callbackPlainTextEditb1a9c9_SetPlainText(this, textPacked); };
+ void showEvent(QShowEvent * vqs) { callbackPlainTextEditb1a9c9_ShowEvent(this, vqs); };
+ void Signal_TextChanged() { callbackPlainTextEditb1a9c9_TextChanged(this); };
+ void undo() { callbackPlainTextEditb1a9c9_Undo(this); };
+ void Signal_UndoAvailable(bool available) { callbackPlainTextEditb1a9c9_UndoAvailable(this, available); };
+ void Signal_UpdateRequest(const QRect & rect, int dy) { callbackPlainTextEditb1a9c9_UpdateRequest(this, const_cast(&rect), dy); };
+ void wheelEvent(QWheelEvent * e) { callbackPlainTextEditb1a9c9_WheelEvent(this, e); };
+ void zoomIn(int ran) { callbackPlainTextEditb1a9c9_ZoomIn(this, ran); };
+ void zoomOut(int ran) { callbackPlainTextEditb1a9c9_ZoomOut(this, ran); };
+ bool event(QEvent * event) { return callbackPlainTextEditb1a9c9_Event(this, event) != 0; };
+ QSize minimumSizeHint() const { return *static_cast(callbackPlainTextEditb1a9c9_MinimumSizeHint(const_cast(static_cast(this)))); };
+ void setupViewport(QWidget * viewport) { callbackPlainTextEditb1a9c9_SetupViewport(this, viewport); };
+ QSize sizeHint() const { return *static_cast(callbackPlainTextEditb1a9c9_SizeHint(const_cast(static_cast(this)))); };
+ bool viewportEvent(QEvent * event) { return callbackPlainTextEditb1a9c9_ViewportEvent(this, event) != 0; };
+ QSize viewportSizeHint() const { return *static_cast(callbackPlainTextEditb1a9c9_ViewportSizeHint(const_cast(static_cast(this)))); };
+ void actionEvent(QActionEvent * event) { callbackPlainTextEditb1a9c9_ActionEvent(this, event); };
+ bool close() { return callbackPlainTextEditb1a9c9_Close(this) != 0; };
+ void closeEvent(QCloseEvent * event) { callbackPlainTextEditb1a9c9_CloseEvent(this, event); };
+ void Signal_CustomContextMenuRequested(const QPoint & pos) { callbackPlainTextEditb1a9c9_CustomContextMenuRequested(this, const_cast(&pos)); };
+ void enterEvent(QEvent * event) { callbackPlainTextEditb1a9c9_EnterEvent(this, event); };
+ bool hasHeightForWidth() const { return callbackPlainTextEditb1a9c9_HasHeightForWidth(const_cast(static_cast(this))) != 0; };
+ int heightForWidth(int w) const { return callbackPlainTextEditb1a9c9_HeightForWidth(const_cast(static_cast(this)), w); };
+ void hide() { callbackPlainTextEditb1a9c9_Hide(this); };
+ void hideEvent(QHideEvent * event) { callbackPlainTextEditb1a9c9_HideEvent(this, event); };
+ void initPainter(QPainter * painter) const { callbackPlainTextEditb1a9c9_InitPainter(const_cast(static_cast(this)), painter); };
+ void leaveEvent(QEvent * event) { callbackPlainTextEditb1a9c9_LeaveEvent(this, event); };
+ void lower() { callbackPlainTextEditb1a9c9_Lower(this); };
+ int metric(QPaintDevice::PaintDeviceMetric m) const { return callbackPlainTextEditb1a9c9_Metric(const_cast(static_cast(this)), m); };
+ void moveEvent(QMoveEvent * event) { callbackPlainTextEditb1a9c9_MoveEvent(this, event); };
+ bool nativeEvent(const QByteArray & eventType, void * message, long * result) { return callbackPlainTextEditb1a9c9_NativeEvent(this, const_cast(&eventType), message, result) != 0; };
+ QPaintEngine * paintEngine() const { return static_cast(callbackPlainTextEditb1a9c9_PaintEngine(const_cast(static_cast(this)))); };
+ void raise() { callbackPlainTextEditb1a9c9_Raise(this); };
+ void repaint() { callbackPlainTextEditb1a9c9_Repaint(this); };
+ void setDisabled(bool disable) { callbackPlainTextEditb1a9c9_SetDisabled(this, disable); };
+ void setEnabled(bool vbo) { callbackPlainTextEditb1a9c9_SetEnabled(this, vbo); };
+ void setFocus() { callbackPlainTextEditb1a9c9_SetFocus2(this); };
+ void setHidden(bool hidden) { callbackPlainTextEditb1a9c9_SetHidden(this, hidden); };
+ void setStyleSheet(const QString & styleSheet) { QByteArray* t728ae7 = new QByteArray(styleSheet.toUtf8()); Moc_PackedString styleSheetPacked = { const_cast(t728ae7->prepend("WHITESPACE").constData()+10), t728ae7->size()-10, t728ae7 };callbackPlainTextEditb1a9c9_SetStyleSheet(this, styleSheetPacked); };
+ void setVisible(bool visible) { callbackPlainTextEditb1a9c9_SetVisible(this, visible); };
+ void setWindowModified(bool vbo) { callbackPlainTextEditb1a9c9_SetWindowModified(this, vbo); };
+ void setWindowTitle(const QString & vqs) { QByteArray* tda39a3 = new QByteArray(vqs.toUtf8()); Moc_PackedString vqsPacked = { const_cast(tda39a3->prepend("WHITESPACE").constData()+10), tda39a3->size()-10, tda39a3 };callbackPlainTextEditb1a9c9_SetWindowTitle(this, vqsPacked); };
+ void show() { callbackPlainTextEditb1a9c9_Show(this); };
+ void showFullScreen() { callbackPlainTextEditb1a9c9_ShowFullScreen(this); };
+ void showMaximized() { callbackPlainTextEditb1a9c9_ShowMaximized(this); };
+ void showMinimized() { callbackPlainTextEditb1a9c9_ShowMinimized(this); };
+ void showNormal() { callbackPlainTextEditb1a9c9_ShowNormal(this); };
+ void tabletEvent(QTabletEvent * event) { callbackPlainTextEditb1a9c9_TabletEvent(this, event); };
+ void update() { callbackPlainTextEditb1a9c9_Update(this); };
+ void updateMicroFocus() { callbackPlainTextEditb1a9c9_UpdateMicroFocus(this); };
+ void Signal_WindowIconChanged(const QIcon & icon) { callbackPlainTextEditb1a9c9_WindowIconChanged(this, const_cast(&icon)); };
+ void Signal_WindowTitleChanged(const QString & title) { QByteArray* t3c6de1 = new QByteArray(title.toUtf8()); Moc_PackedString titlePacked = { const_cast(t3c6de1->prepend("WHITESPACE").constData()+10), t3c6de1->size()-10, t3c6de1 };callbackPlainTextEditb1a9c9_WindowTitleChanged(this, titlePacked); };
+ void childEvent(QChildEvent * event) { callbackPlainTextEditb1a9c9_ChildEvent(this, event); };
+ void connectNotify(const QMetaMethod & sign) { callbackPlainTextEditb1a9c9_ConnectNotify(this, const_cast(&sign)); };
+ void customEvent(QEvent * event) { callbackPlainTextEditb1a9c9_CustomEvent(this, event); };
+ void deleteLater() { callbackPlainTextEditb1a9c9_DeleteLater(this); };
+ void Signal_Destroyed(QObject * obj) { callbackPlainTextEditb1a9c9_Destroyed(this, obj); };
+ void disconnectNotify(const QMetaMethod & sign) { callbackPlainTextEditb1a9c9_DisconnectNotify(this, const_cast(&sign)); };
+ bool eventFilter(QObject * watched, QEvent * event) { return callbackPlainTextEditb1a9c9_EventFilter(this, watched, event) != 0; };
+ void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); Moc_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackPlainTextEditb1a9c9_ObjectNameChanged(this, objectNamePacked); };
+ void timerEvent(QTimerEvent * event) { callbackPlainTextEditb1a9c9_TimerEvent(this, event); };
+signals:
+public slots:
+ void addLine(QString v0) { QByteArray* tea1dd7 = new QByteArray(v0.toUtf8()); Moc_PackedString v0Packed = { const_cast(tea1dd7->prepend("WHITESPACE").constData()+10), tea1dd7->size()-10, tea1dd7 };callbackPlainTextEditb1a9c9_AddLine(this, v0Packed); };
+private:
+};
+
+Q_DECLARE_METATYPE(PlainTextEditb1a9c9*)
+
+
+void PlainTextEditb1a9c9_PlainTextEditb1a9c9_QRegisterMetaTypes() {
+}
+
+void PlainTextEditb1a9c9_AddLine(void* ptr, struct Moc_PackedString v0)
+{
+ QMetaObject::invokeMethod(static_cast(ptr), "addLine", Q_ARG(QString, QString::fromUtf8(v0.data, v0.len)));
+}
+
+int PlainTextEditb1a9c9_PlainTextEditb1a9c9_QRegisterMetaType()
+{
+ return qRegisterMetaType();
+}
+
+int PlainTextEditb1a9c9_PlainTextEditb1a9c9_QRegisterMetaType2(char* typeName)
+{
+ return qRegisterMetaType(const_cast(typeName));
+}
+
+int PlainTextEditb1a9c9_PlainTextEditb1a9c9_QmlRegisterType()
+{
+#ifdef QT_QML_LIB
+ return qmlRegisterType();
+#else
+ return 0;
+#endif
+}
+
+int PlainTextEditb1a9c9_PlainTextEditb1a9c9_QmlRegisterType2(char* uri, int versionMajor, int versionMinor, char* qmlName)
+{
+#ifdef QT_QML_LIB
+ return qmlRegisterType(const_cast(uri), versionMajor, versionMinor, const_cast(qmlName));
+#else
+ return 0;
+#endif
+}
+
+void* PlainTextEditb1a9c9___scrollBarWidgets_atList(void* ptr, int i)
+{
+ return ({QWidget * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; });
+}
+
+void PlainTextEditb1a9c9___scrollBarWidgets_setList(void* ptr, void* i)
+{
+ static_cast*>(ptr)->append(static_cast(i));
+}
+
+void* PlainTextEditb1a9c9___scrollBarWidgets_newList(void* ptr)
+{
+ Q_UNUSED(ptr);
+ return new QList();
+}
+
+void* PlainTextEditb1a9c9___actions_atList(void* ptr, int i)
+{
+ return ({QAction * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; });
+}
+
+void PlainTextEditb1a9c9___actions_setList(void* ptr, void* i)
+{
+ static_cast*>(ptr)->append(static_cast(i));
+}
+
+void* PlainTextEditb1a9c9___actions_newList(void* ptr)
+{
+ Q_UNUSED(ptr);
+ return new QList();
+}
+
+void* PlainTextEditb1a9c9___addActions_actions_atList(void* ptr, int i)
+{
+ return ({QAction * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; });
+}
+
+void PlainTextEditb1a9c9___addActions_actions_setList(void* ptr, void* i)
+{
+ static_cast*>(ptr)->append(static_cast(i));
+}
+
+void* PlainTextEditb1a9c9___addActions_actions_newList(void* ptr)
+{
+ Q_UNUSED(ptr);
+ return new QList();
+}
+
+void* PlainTextEditb1a9c9___insertActions_actions_atList(void* ptr, int i)
+{
+ return ({QAction * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; });
+}
+
+void PlainTextEditb1a9c9___insertActions_actions_setList(void* ptr, void* i)
+{
+ static_cast*>(ptr)->append(static_cast(i));
+}
+
+void* PlainTextEditb1a9c9___insertActions_actions_newList(void* ptr)
+{
+ Q_UNUSED(ptr);
+ return new QList();
+}
+
+void* PlainTextEditb1a9c9___children_atList(void* ptr, int i)
+{
+ return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; });
+}
+
+void PlainTextEditb1a9c9___children_setList(void* ptr, void* i)
+{
+ static_cast*>(ptr)->append(static_cast(i));
+}
+
+void* PlainTextEditb1a9c9___children_newList(void* ptr)
+{
+ Q_UNUSED(ptr);
+ return new QList();
+}
+
+void* PlainTextEditb1a9c9___dynamicPropertyNames_atList(void* ptr, int i)
+{
+ return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }));
+}
+
+void PlainTextEditb1a9c9___dynamicPropertyNames_setList(void* ptr, void* i)
+{
+ static_cast*>(ptr)->append(*static_cast(i));
+}
+
+void* PlainTextEditb1a9c9___dynamicPropertyNames_newList(void* ptr)
+{
+ Q_UNUSED(ptr);
+ return new QList();
+}
+
+void* PlainTextEditb1a9c9___findChildren_atList(void* ptr, int i)
+{
+ return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; });
+}
+
+void PlainTextEditb1a9c9___findChildren_setList(void* ptr, void* i)
+{
+ static_cast*>(ptr)->append(static_cast(i));
+}
+
+void* PlainTextEditb1a9c9___findChildren_newList(void* ptr)
+{
+ Q_UNUSED(ptr);
+ return new QList();
+}
+
+void* PlainTextEditb1a9c9___findChildren_atList3(void* ptr, int i)
+{
+ return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; });
+}
+
+void PlainTextEditb1a9c9___findChildren_setList3(void* ptr, void* i)
+{
+ static_cast*>(ptr)->append(static_cast(i));
+}
+
+void* PlainTextEditb1a9c9___findChildren_newList3(void* ptr)
+{
+ Q_UNUSED(ptr);
+ return new QList();
+}
+
+void* PlainTextEditb1a9c9_NewPlainTextEdit(void* parent)
+{
+ return new PlainTextEditb1a9c9(static_cast(parent));
+}
+
+void* PlainTextEditb1a9c9_NewPlainTextEdit2(struct Moc_PackedString text, void* parent)
+{
+ return new PlainTextEditb1a9c9(QString::fromUtf8(text.data, text.len), static_cast(parent));
+}
+
+void PlainTextEditb1a9c9_DestroyPlainTextEdit(void* ptr)
+{
+ static_cast(ptr)->~PlainTextEditb1a9c9();
+}
+
+void PlainTextEditb1a9c9_DestroyPlainTextEditDefault(void* ptr)
+{
+ Q_UNUSED(ptr);
+
+}
+
+void PlainTextEditb1a9c9_AppendHtmlDefault(void* ptr, struct Moc_PackedString html)
+{
+ static_cast(ptr)->QPlainTextEdit::appendHtml(QString::fromUtf8(html.data, html.len));
+}
+
+void PlainTextEditb1a9c9_AppendPlainTextDefault(void* ptr, struct Moc_PackedString text)
+{
+ static_cast(ptr)->QPlainTextEdit::appendPlainText(QString::fromUtf8(text.data, text.len));
+}
+
+char PlainTextEditb1a9c9_CanInsertFromMimeDataDefault(void* ptr, void* source)
+{
+ return static_cast(ptr)->QPlainTextEdit::canInsertFromMimeData(static_cast(source));
+}
+
+void PlainTextEditb1a9c9_CenterCursorDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::centerCursor();
+}
+
+void PlainTextEditb1a9c9_ChangeEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::changeEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_ClearDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::clear();
+}
+
+void PlainTextEditb1a9c9_ContextMenuEventDefault(void* ptr, void* event)
+{
+ static_cast(ptr)->QPlainTextEdit::contextMenuEvent(static_cast(event));
+}
+
+void PlainTextEditb1a9c9_CopyDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::copy();
+}
+
+void* PlainTextEditb1a9c9_CreateMimeDataFromSelectionDefault(void* ptr)
+{
+ return static_cast(ptr)->QPlainTextEdit::createMimeDataFromSelection();
+}
+
+void PlainTextEditb1a9c9_CutDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::cut();
+}
+
+void PlainTextEditb1a9c9_DragEnterEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::dragEnterEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_DragLeaveEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::dragLeaveEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_DragMoveEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::dragMoveEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_DropEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::dropEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_FocusInEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::focusInEvent(static_cast(e));
+}
+
+char PlainTextEditb1a9c9_FocusNextPrevChildDefault(void* ptr, char next)
+{
+ return static_cast(ptr)->QPlainTextEdit::focusNextPrevChild(next != 0);
+}
+
+void PlainTextEditb1a9c9_FocusOutEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::focusOutEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_InputMethodEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::inputMethodEvent(static_cast(e));
+}
+
+void* PlainTextEditb1a9c9_InputMethodQueryDefault(void* ptr, long long property)
+{
+ return new QVariant(static_cast(ptr)->QPlainTextEdit::inputMethodQuery(static_cast(property)));
+}
+
+void PlainTextEditb1a9c9_InsertFromMimeDataDefault(void* ptr, void* source)
+{
+ static_cast(ptr)->QPlainTextEdit::insertFromMimeData(static_cast(source));
+}
+
+void PlainTextEditb1a9c9_InsertPlainTextDefault(void* ptr, struct Moc_PackedString text)
+{
+ static_cast(ptr)->QPlainTextEdit::insertPlainText(QString::fromUtf8(text.data, text.len));
+}
+
+void PlainTextEditb1a9c9_KeyPressEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::keyPressEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_KeyReleaseEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::keyReleaseEvent(static_cast(e));
+}
+
+void* PlainTextEditb1a9c9_LoadResourceDefault(void* ptr, int ty, void* name)
+{
+ return new QVariant(static_cast(ptr)->QPlainTextEdit::loadResource(ty, *static_cast(name)));
+}
+
+void PlainTextEditb1a9c9_MouseDoubleClickEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::mouseDoubleClickEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_MouseMoveEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::mouseMoveEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_MousePressEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::mousePressEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_MouseReleaseEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::mouseReleaseEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_PaintEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::paintEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_PasteDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::paste();
+}
+
+void PlainTextEditb1a9c9_RedoDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::redo();
+}
+
+void PlainTextEditb1a9c9_ResizeEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::resizeEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_ScrollContentsByDefault(void* ptr, int dx, int dy)
+{
+ static_cast(ptr)->QPlainTextEdit::scrollContentsBy(dx, dy);
+}
+
+void PlainTextEditb1a9c9_SelectAllDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::selectAll();
+}
+
+void PlainTextEditb1a9c9_SetPlainTextDefault(void* ptr, struct Moc_PackedString text)
+{
+ static_cast(ptr)->QPlainTextEdit::setPlainText(QString::fromUtf8(text.data, text.len));
+}
+
+void PlainTextEditb1a9c9_ShowEventDefault(void* ptr, void* vqs)
+{
+ static_cast(ptr)->QPlainTextEdit::showEvent(static_cast(vqs));
+}
+
+void PlainTextEditb1a9c9_UndoDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::undo();
+}
+
+void PlainTextEditb1a9c9_WheelEventDefault(void* ptr, void* e)
+{
+ static_cast(ptr)->QPlainTextEdit::wheelEvent(static_cast(e));
+}
+
+void PlainTextEditb1a9c9_ZoomInDefault(void* ptr, int ran)
+{
+ static_cast(ptr)->QPlainTextEdit::zoomIn(ran);
+}
+
+void PlainTextEditb1a9c9_ZoomOutDefault(void* ptr, int ran)
+{
+ static_cast(ptr)->QPlainTextEdit::zoomOut(ran);
+}
+
+char PlainTextEditb1a9c9_EventDefault(void* ptr, void* event)
+{
+ return static_cast(ptr)->QPlainTextEdit::event(static_cast(event));
+}
+
+void* PlainTextEditb1a9c9_MinimumSizeHintDefault(void* ptr)
+{
+ return ({ QSize tmpValue = static_cast(ptr)->QPlainTextEdit::minimumSizeHint(); new QSize(tmpValue.width(), tmpValue.height()); });
+}
+
+void PlainTextEditb1a9c9_SetupViewportDefault(void* ptr, void* viewport)
+{
+ static_cast(ptr)->QPlainTextEdit::setupViewport(static_cast(viewport));
+}
+
+void* PlainTextEditb1a9c9_SizeHintDefault(void* ptr)
+{
+ return ({ QSize tmpValue = static_cast(ptr)->QPlainTextEdit::sizeHint(); new QSize(tmpValue.width(), tmpValue.height()); });
+}
+
+char PlainTextEditb1a9c9_ViewportEventDefault(void* ptr, void* event)
+{
+ return static_cast(ptr)->QPlainTextEdit::viewportEvent(static_cast(event));
+}
+
+void* PlainTextEditb1a9c9_ViewportSizeHintDefault(void* ptr)
+{
+ return ({ QSize tmpValue = static_cast(ptr)->QPlainTextEdit::viewportSizeHint(); new QSize(tmpValue.width(), tmpValue.height()); });
+}
+
+void PlainTextEditb1a9c9_ActionEventDefault(void* ptr, void* event)
+{
+ static_cast(ptr)->QPlainTextEdit::actionEvent(static_cast(event));
+}
+
+char PlainTextEditb1a9c9_CloseDefault(void* ptr)
+{
+ return static_cast(ptr)->QPlainTextEdit::close();
+}
+
+void PlainTextEditb1a9c9_CloseEventDefault(void* ptr, void* event)
+{
+ static_cast(ptr)->QPlainTextEdit::closeEvent(static_cast(event));
+}
+
+void PlainTextEditb1a9c9_EnterEventDefault(void* ptr, void* event)
+{
+ static_cast(ptr)->QPlainTextEdit::enterEvent(static_cast(event));
+}
+
+char PlainTextEditb1a9c9_HasHeightForWidthDefault(void* ptr)
+{
+ return static_cast(ptr)->QPlainTextEdit::hasHeightForWidth();
+}
+
+int PlainTextEditb1a9c9_HeightForWidthDefault(void* ptr, int w)
+{
+ return static_cast(ptr)->QPlainTextEdit::heightForWidth(w);
+}
+
+void PlainTextEditb1a9c9_HideDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::hide();
+}
+
+void PlainTextEditb1a9c9_HideEventDefault(void* ptr, void* event)
+{
+ static_cast(ptr)->QPlainTextEdit::hideEvent(static_cast(event));
+}
+
+void PlainTextEditb1a9c9_InitPainterDefault(void* ptr, void* painter)
+{
+ static_cast(ptr)->QPlainTextEdit::initPainter(static_cast(painter));
+}
+
+void PlainTextEditb1a9c9_LeaveEventDefault(void* ptr, void* event)
+{
+ static_cast(ptr)->QPlainTextEdit::leaveEvent(static_cast(event));
+}
+
+void PlainTextEditb1a9c9_LowerDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::lower();
+}
+
+int PlainTextEditb1a9c9_MetricDefault(void* ptr, long long m)
+{
+ return static_cast(ptr)->QPlainTextEdit::metric(static_cast(m));
+}
+
+void PlainTextEditb1a9c9_MoveEventDefault(void* ptr, void* event)
+{
+ static_cast(ptr)->QPlainTextEdit::moveEvent(static_cast(event));
+}
+
+char PlainTextEditb1a9c9_NativeEventDefault(void* ptr, void* eventType, void* message, long* result)
+{
+ return static_cast(ptr)->QPlainTextEdit::nativeEvent(*static_cast(eventType), message, result);
+}
+
+void* PlainTextEditb1a9c9_PaintEngineDefault(void* ptr)
+{
+ return static_cast(ptr)->QPlainTextEdit::paintEngine();
+}
+
+void PlainTextEditb1a9c9_RaiseDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::raise();
+}
+
+void PlainTextEditb1a9c9_RepaintDefault(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::repaint();
+}
+
+void PlainTextEditb1a9c9_SetDisabledDefault(void* ptr, char disable)
+{
+ static_cast(ptr)->QPlainTextEdit::setDisabled(disable != 0);
+}
+
+void PlainTextEditb1a9c9_SetEnabledDefault(void* ptr, char vbo)
+{
+ static_cast(ptr)->QPlainTextEdit::setEnabled(vbo != 0);
+}
+
+void PlainTextEditb1a9c9_SetFocus2Default(void* ptr)
+{
+ static_cast(ptr)->QPlainTextEdit::setFocus();
+}
+
+void PlainTextEditb1a9c9_SetHiddenDefault(void* ptr, char hidden)
+{
+ static_cast(ptr)->QPlainTextEdit::setHidden(hidden != 0);
+}
+
+void PlainTextEditb1a9c9_SetStyleSheetDefault(void* ptr, struct Moc_PackedString styleSheet)
+{
+ static_cast(ptr)->QPlainTextEdit::setStyleSheet(QString::fromUtf8(styleSheet.data, styleSheet.len));
+}
+
+void PlainTextEditb1a9c9_SetVisibleDefault(void* ptr, char visible)
+{
+ static_cast(ptr)->QPlainTextEdit::setVisible(visible != 0);
+}
+
+void PlainTextEditb1a9c9_SetWindowModifiedDefault(void* ptr, char vbo)
+{
+ static_cast(ptr)->QPlainTextEdit::setWindowModified(vbo != 0);
+}
+
+void PlainTextEditb1a9c9_SetWindowTitleDefault(void* ptr, struct Moc_PackedString vqs)
+{
+ static_cast