Closed Kochise closed 3 years ago
The last commit is not stable and was made in a hurry when moving computers. I suggest rolling back a few commits.
Sorry for that, I did not expect anyone to use it after so many years.
Unfortunately this project made heavy use of a WebView component in Qt which is not available anymore. There's an Electron-like replacement in newer versions, but last I checked it did not send signals when clicking on links, which made it unusable for this use case.
I want to put this project to work again, but might take some time.
No problem, I'm writing my own code editor and was interested into your idea. What are you using that is very specific to your rendering ? I advice you to use another UI framework instead. Something like Enaml should do IMHO.
https://github.com/nucleic/enaml https://github.com/frmdstryr/enamlx
Regards.
Currently it's using a lot of advanced Qt features, like the tear-able toolbars.
The WebView component was used because the Abstract Syntax Tree is converted to HTML, and the user can configure custom CSS files to change colors, fonts, and even add or hide elements (https://github.com/boppreh/structured-editor/blob/4a8bd3fb70855f336191eac4c174fa46e4677d86/config/style.css).
This kind of customization would be extremely hard without CSS, but almost all GUI toolkits are moving away from simple HTML + CSS renderers to embedding full copies of Chromium, which is much heavier and has limited hooks to intercept user actions (like the links mentioned).
Then go full Node.JS or React, yet the main problem remains the incredibly heavy footprint. I kindly prefer a lightweight framework that doesn't depends on too many dependencies (that might break easily, ie. Qt5, ...). Yes, you may be limited in the hooking mechanism and not be free to do whatever you like. But at this point, if you really need a way to express your creativity, go full berserk with SVG on Canvas.
https://www.bastian.tech/tree/ https://github.com/jagenjo/litegraph.js https://github.com/lutzroeder/netron https://github.com/capnmidnight/Primrose https://github.com/BrandonArmand/Binari ...
Good luck.
Those are really nice examples, thanks.
I too prefer a lightweight framework. Qt is not the lightest, and has many dependencies, but it's definitely better than Electron, and miles ahead of browser+NodeJS.
I wish I didn't have to sacrifice performance for extensible rendering (CSS).