Re: QML notebook - phase zero - toy ui ;-)

2012-04-29 Thread Ville M. Vainio
Update: qmlnotebook.leo (ctrl+b script + test outline) is now at contrib branch. If you want to try it, open the .leo file, ensure you are running latest Leo from trunk, and press ctrl+b on the first node. -- You received this message because you are subscribed to the Google Groups "leo-editor"

Re: QML notebook - phase zero - toy ui ;-)

2012-04-29 Thread Ville M. Vainio
And on related note: remember that with QML, sky is the limit as far as the styling goes :). So if you have wild ideas about adding customizable images, animated checkboxes, or other weird stuff next to the nodes, fire away. -- You received this message because you are subscribed to the Google Gr

Re: QML notebook - phase zero - toy ui ;-)

2012-04-29 Thread Ville M. Vainio
Some modifications done, attached is screenshot with tree level nesting as well. I moved the headistring to the left edge, since on the right edge the tree structure looked weird. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this gro

Re: QML notebook - phase zero - toy ui ;-)

2012-04-29 Thread Ville M. Vainio
This leo script is more polished version of the earlier work (ctrl+b script). It uses QStandardItemModel to host the entries in the notebook, so you can add / remove / modify items and the changes reflect in the notebook in real time. https://gist.github.com/2540690 -- You received this message

Re: QML notebook - phase zero - toy ui ;-)

2012-04-28 Thread Ville M. Vainio
Yes, modifications are not saved yet. Also, modifications in normal body editors are not copied over to the notebook yet. This is probably going to end up like tabula and stickynotes in this regard. Getting an overview of a file could be an interesting extra usecase, my main interest is still in

Re: QML notebook - phase zero - toy ui ;-)

2012-04-28 Thread Kent Tenney
Interesting ... Am I correct: this is POC, edits in your serialized pane don't reflect in the Leo file? This is a hint of something I've long wanted, what I have called 'slurped' vs 'chunked' Something I miss with Leo is the capability get an overview of a file, I find myself needing to 'open fil

Re: QML notebook - phase zero - toy ui ;-)

2012-04-28 Thread Ville M. Vainio
On Sat, Apr 28, 2012 at 11:37 AM, Ville M. Vainio wrote: > Result is as attached. What it currently does is putting every node > wrapper in a list of QObjects, and use that as the model in QML side BTW, forgot to mention that I put the NodeWrapper stuff under leo.core. We can move it out eventua

Re: QML notebook - phase zero - toy ui ;-)

2012-04-27 Thread Ville M. Vainio
Ok, this should serve as a basis for ipython nicely. However, a problem - it worked once, but now (after restarting leo, many times) I always get this traceback; Traceback (most recent call last): File "/home/ville/b/leo-editor/leo/plugins/nested_splitter.py", line 489, in cb self.place_pro

RE: QML notebook - phase zero - toy ui ;-)

2012-04-27 Thread Ville Vainio
L notebook - phase zero - toy ui ;-) On Fri, 27 Apr 2012 00:47:05 +0300 "Ville M. Vainio" wrote: > Ok, I now created a toy UI demo for how "cell" based leo (like ipython > notebook) could operate. > > It's probably the first stab at using QML to solve a problem in

Re: QML notebook - phase zero - toy ui ;-)

2012-04-27 Thread Terry Brown
Here's a demo to run Ville's QML thing in a free_layout pane. Requires rev. 5284 so the .qml file in leo/plugins/qmlnb/ is available. Paste this into a node, run-script on the node, right click a splitter handle, Insert, click the Action button, select "Add QML shower". Note that you can flick th

Re: QML notebook - phase zero - toy ui ;-)

2012-04-27 Thread Terry Brown
On Fri, 27 Apr 2012 00:47:05 +0300 "Ville M. Vainio" wrote: > Ok, I now created a toy UI demo for how "cell" based leo (like ipython > notebook) could operate. > > It's probably the first stab at using QML to solve a problem in Leo. > It doesnt' run from leo yet (it's not a plugin, more protoing