doc/TODO: update status

This commit is contained in:
mappu 2024-08-17 14:11:41 +12:00
parent 8465cc21b3
commit 123f946d24

33
TODO
View File

@ -19,6 +19,7 @@ Phase 1
- [X] Detect in AST - [X] Detect in AST
- [X] ~~Downcast helper methods~~ Direct type available - [X] ~~Downcast helper methods~~ Direct type available
- [ ] Types - [ ] Types
- [X] ~~PVoid typedefs~~ Removed/no longer needed as CGo supports pointers to incomplete C types
- [X] Class types passed by pointer - [X] Class types passed by pointer
- [X] For parameters (want to call `cPointer()`) - [X] For parameters (want to call `cPointer()`)
- [X] For return types - [X] For return types
@ -45,6 +46,7 @@ Phase 1
- [X] For parameters - [X] For parameters
- [X] For return types - [X] For return types
- [X] ~~QByteArray type conversion~~ Seems to be fine as a non-templated type - [X] ~~QByteArray type conversion~~ Seems to be fine as a non-templated type
- [ ] C array style used by QApplication constructor (int& argc, char** argv)
- [ ] Typedefs - [ ] Typedefs
- [X] Simple typedefs e.g. WId (hardcoded) - [X] Simple typedefs e.g. WId (hardcoded)
- [X] QRgb (hardcoded) - [X] QRgb (hardcoded)
@ -75,6 +77,7 @@ Phase 2
- [X] ~~QString / QList helper functions~~ Lean on native Go types - [X] ~~QString / QList helper functions~~ Lean on native Go types
- [ ] Other Qt template containers - [ ] Other Qt template containers
- [X] QVector // Seems to mostly work identically using QList code - [X] QVector // Seems to mostly work identically using QList code
- [ ] QPair (e.g. QGradientStop)
- [ ] QMap / QHash - [ ] QMap / QHash
- [ ] QSet - [ ] QSet
- [ ] Test edge cases - [ ] Test edge cases
@ -86,6 +89,8 @@ Phase 2
- QList<int> return (QImage_ColorTable), parameter (...) - QList<int> return (QImage_ColorTable), parameter (...)
- Calling methods on base class - Calling methods on base class
- Anything where we use runtime.SetFinalizer - Anything where we use runtime.SetFinalizer
- Check mallocs/frees match in all cases
- Run under valgrind to ensure no Qt memory leakage
- [ ] Documentation - [ ] Documentation
- [ ] Adapt examples from other Go Qt bindings - [ ] Adapt examples from other Go Qt bindings
- [ ] Document comparison with other Qt binding packages - [ ] Document comparison with other Qt binding packages
@ -93,24 +98,34 @@ Phase 2
Wishlist Wishlist
- [X] Remove P* types (Cgo does support pointers to incomplete C types) - [ ] Check compilation on x86_32/ARM32 architecture with 32-bit pointer width
- [ ] QPaintEngine::fix_neg_rect should have a better name - [ ] Advanced Qt functionality
- [ ] CI action to rebuild bindings
- [ ] Convert generated cpp files to amalgamation build for faster compilation
- https://github.com/golang/go/issues/9887
- [ ] Consider projecting QByteArray as []byte
- [ ] Subclassing (e.g. render delegates) - [ ] Subclassing (e.g. render delegates)
- [ ] Custom Q_PROPERTY support - [ ] Custom Q_PROPERTY support
- [ ] uic implementation - [ ] Usability
- [ ] QPaintEngine::fix_neg_rect should have a better name
- [ ] Project DeprecatedAttr as `// Deprecated` comment
- [ ] Consider projecting QByteArray as []byte
- [ ] Use clang ast's `mangledName` to make a dlsym/LazyDLL cgo-free version - [ ] Use clang ast's `mangledName` to make a dlsym/LazyDLL cgo-free version
- [ ] Copy Qt documentation into function doc comments for IDE hinting - [ ] Copy Qt documentation into function doc comments for IDE hinting
- What license is the Qt documentation under, what are the license implications of this?
- [ ] Generate bindings for all current Qt versions (Debian Qt / Qt LTS), expose as git tags - [ ] Generate bindings for all current Qt versions (Debian Qt / Qt LTS), expose as git tags
- [ ] Outreach/community
- [ ] Dockerize a reproducible build process
- [ ] CI action to rebuild bindings
- [ ] Reuse CABI to generate Qt bindings for other non-Go languages - [ ] Reuse CABI to generate Qt bindings for other non-Go languages
- [ ] Performance
- [ ] Convert generated cpp files to amalgamation build for faster compilation
- https://github.com/golang/go/issues/9887
- [ ] Reduce necessary memory copies around ABI boundaries - [ ] Reduce necessary memory copies around ABI boundaries
- [ ] Bypass malloc/free for zero-length strings - [ ] Bypass malloc/free for zero-length strings
- [ ] Bypass malloc/free for zero-length arrays - [ ] Bypass malloc/free for zero-length arrays
- [ ] Broader coverage
- [ ] Get 100% of all QtCore, QtGui, QtWidgets binding
- [ ] Generate other Qt libraries e.g. QtSvg - [ ] Generate other Qt libraries e.g. QtSvg
- [ ] Document process for binding more libraries e.g. QScintilla, QZXing - [ ] Document process for binding more libraries e.g. QScintilla, QZXing
- [ ] Qt Creator integration - [ ] Add public QFoo_FromCPointer(uintptr) to ease interop with extra generated classes
- [ ] Get down to zero ErrTooComplex skips - [ ] Get down to zero ErrTooComplex skips
- [ ] Run under valgrind to ensure no Qt memory leakage - [ ] Support other Qt ecosystem tooling
- [ ] Qt Creator integration
- [ ] uic implementation