Re: Failed unit tests on Linux

2008-03-06 Thread Ville M. Vainio
windows to accomplish something simple such as renaming that directory. Not to mention the flexibily of symlinks that can cross file systems (as opposed to NTFS junctions), the fragility of drive letter based file system (with various SUBST hacks) etc. -- Ville M. Vainio - vivainio.googlepages.com

Re: Embedding Leo to IPython

2008-03-30 Thread Ville M. Vainio
On Sun, Mar 30, 2008 at 3:57 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: It seems embedding leo to ipython is a trivial task - you just %run leo.py. Then, in leo ipython plugin, you can get the handle by Well, it seems it was not as trivial as I figured, from users point of view. You

Re: Making Leo a package

2008-04-01 Thread Ville M. Vainio
in the IPython source distribution root directory. setuptools also supports python setup.py develop, which acts like the package is in site-packages, even if it isn't. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio

Re: Making Leo a package

2008-04-01 Thread Ville M. Vainio
solved by doing an ipython macro (as I described in the docs), so this can take the time it needs. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you

Re: Making Leo a package

2008-04-01 Thread Ville M. Vainio
. Explore the ~/_ipython/db directory. Observant reader may guess that it contains pickles ;-). If you want the contents of the database in a more readable format, you can do: import ipy_exportdb ipy_exportdb.export() -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail

Re: Making Leo a package

2008-04-02 Thread Ville M. Vainio
. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor

Re: Leo 4.4.8 final is on the trunk. Pls test

2008-04-06 Thread Ville M. Vainio
On Sun, Apr 6, 2008 at 11:12 AM, Ville M. Vainio [EMAIL PROTECTED] wrote: On Sun, Apr 6, 2008 at 12:16 AM, Edward K. Ream [EMAIL PROTECTED] wrote: On second thought, let's leave the trunk branch as it is--for development. I'll create a 'stable' branch that corresponds to the latest

Re: Leo 4.4.8 final is on the trunk. Pls test

2008-04-06 Thread Ville M. Vainio
On Sun, Apr 6, 2008 at 4:08 PM, Edward K. Ream [EMAIL PROTECTED] wrote: I wonder whether pygtk installation broke this... Should I hold 4.4.8 final until you resolve this? No. It was PyGtk installation that broke it (it installed a new version of python, no less!). -- Ville M. Vainio

Re: Leo 4.4.8 final is on the trunk. Pls test

2008-04-06 Thread Ville M. Vainio
/ipython/stable/0.8.3pre -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group

Bzr guide in leodocs

2008-04-09 Thread Ville M. Vainio
option to bzr push, to direct all future pushes to that location. Then, you only need to execute ``bzr push``. After your branch is pushed, you can email the Leo mailing list and request it to be reviewed and merged to trunk. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com

Implementing half-assed collaboration support

2008-04-10 Thread Ville M. Vainio
be done from a plugin. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group

Re: Implementing half-assed collaboration support

2008-04-10 Thread Ville M. Vainio
, and creates clones of all inserted, deleted and changed nodes. Might this be a good starting point for you? Yes, sounds like it. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received

Re: A more philosophical question

2008-04-10 Thread Ville M. Vainio
very fun! Thank you - this is indeed a great enabler and removes a crucial can't get there from here :-) -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because

Re: Intrepid testers of the sax-graph branch wanted

2008-05-05 Thread Ville M. Vainio
prompt, enter command wb.foo.v = 1 The IPython command returns, but leo event loop is dead (window is not responding) -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received

Re: Printing a .leo file / export to html

2008-05-05 Thread Ville M. Vainio
incrementally. Btw, anyone else have the problem in sax branch where the menu items don't draw before you use the mouse over them, immediately after launching Leo? The menu bar itself is correctly displayed, but not the menu pane. This is on Vista. -- Ville M. Vainio - vivainio.googlepages.com blog=360

Lite-leo with Qt4 using leoBridge

2008-05-14 Thread Ville M. Vainio
by the fact that gtk / wx ports have been attempted but not completed) - Qt rocks, and these days (Qt4) it's GPL on all platforms. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You

Re: Lite-leo with Qt4 using leoBridge

2008-05-15 Thread Ville M. Vainio
or (hasattr(frame,'body') and frame.body.bodyCtrl) or None Actually, it isn't. It's (in leo trunk): def get_focus(self,frame): return self.focusWidget or frame.body.bodyCtrl (leoGui.py, line 546) And this causes the crash. -- Ville M. Vainio - vivainio.googlepages.com blog=360

Re: Lite-leo with Qt4 using leoBridge

2008-05-15 Thread Ville M. Vainio
QQQ I need to explore it a bit more later. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group

Re: leo-as-a-package issues possible solutions

2008-05-19 Thread Ville M. Vainio
that will break lots of stuff). See http://www.python.org/dev/peps/pep-0328/ esp. the part about from __future__ import absolute_import -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You

Re: does leo support large project

2008-05-27 Thread Ville M. Vainio
to speed up post-xml phase (parsing @auto nodes)... http://www.egenix.com/products/python/mxBase/mxTextTools/ -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message

Re: does leo support large project

2008-05-28 Thread Ville M. Vainio
leo file reading in profiler? -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post

setuptools setup.py for leo-as-package

2008-05-29 Thread Ville M. Vainio
\leo-script.py -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send

Re: setuptools setup.py for leo-as-package

2008-05-29 Thread Ville M. Vainio
On Thu, May 29, 2008 at 2:53 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: Attached is a setup.py that almost works. Note that setup.py develop does work. I.e. if you run that and launch python c:\python25\scripts\leo-script.pyw, leo is launched properly. develop means use the leo

headline editing home and end keys

2008-05-30 Thread Ville M. Vainio
? -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor

Re: Read stats

2008-05-30 Thread Ville M. Vainio
of making part of leo code not be pure python. Additionally, I think the performance of pyrex would be worse than the mxtexttools approach. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio

Re: Read stats

2008-05-30 Thread Ville M. Vainio
... -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo

Re: $200 reward for gui plugins

2008-06-09 Thread Ville M. Vainio
the feasibility of pyqt plugin... and I thought lots of stuff could be simpler. The tree view for example, there is lots of manual drawing code when you'd get around with stock qt treeview stuff (non-readonly). -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk

Re: $200 reward for gui plugins

2008-06-09 Thread Ville M. Vainio
On Tue, Jun 10, 2008 at 12:13 AM, Ville M. Vainio [EMAIL PROTECTED] wrote: I am asking this because I'm wondering about the feasibility of pyqt plugin... and I thought lots of stuff could be simpler. The tree view for example, there is lots of manual drawing code when you'd get around

Re: $200 reward for gui plugins

2008-06-10 Thread Ville M. Vainio
M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor

Re: $200 reward for gui plugins

2008-06-10 Thread Ville M. Vainio
, and it makes me doubt how portable or fast it's ever going to be (without writing too much custom drawing code). I can't help thinking that since the whole outline structure could be represented in standard tree widget with strings and icons, there has to be simpler way around. -- Ville M. Vainio

Re: $200 reward for gui plugins

2008-06-10 Thread Ville M. Vainio
()) Of course we would need to add icons as well, but that is trivial as well. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: $200 reward for gui plugins

2008-06-10 Thread Ville M. Vainio
for another GUI plugin to emerge, to make all of this easier. Somehow I feel this may be an intimidating chore, whereas qleolite (that used leobridge) was 100 lines + the stuff autogenerated by Qt ui designer... -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail

Re: Read stats

2008-06-15 Thread Ville M. Vainio
be significantly faster to convert the whole file in one swoop, as opposed to doing it line-by-line. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'

Re: problems using leo-4-5-b1 install script on linux

2008-08-20 Thread Ville M. Vainio
python setup.py develop Now, you'll have /usr/bin/leo that launches leo. 2) Do not install leo: - Just run launchLeo.py from the root directory where you extracted the tarball. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio

Re: setup.py develop: leo-as-package works as it should

2008-08-20 Thread Ville M. Vainio
On Wed, Aug 20, 2008 at 7:39 PM, Edward K. Ream [EMAIL PROTECTED] wrote: On Aug 16, 1:16 am, Ville M. Vainio [EMAIL PROTECTED] wrote: Hmm. It looks like I'm going to have to come to speed on ileo. This one is very easy to reproduce: I hope to fix this today. Is this issue going

Re: setup.py develop: leo-as-package works as it should

2008-08-20 Thread Ville M. Vainio
setup.py develop in leo root folder to install the leo package properly. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: problems using leo-4-5-b1 install script on linux

2008-08-21 Thread Ville M. Vainio
$@ Ok, perhaps this is what the install script should do, then: - copy the extracted tarball to /opt - Create the launcher command /usr/local/bin/leo And optionally run setup.py develop in /opt/leo (if import setuptools does not raise ImportError, i.e. setuptools is installed). -- Ville M. Vainio

Re: Leo now requires Python 2.4 or higher

2008-08-25 Thread Ville M. Vainio
that can be made compatible with py3k (that's the explicit design choice of python developers), so 2.4 as an interim requirement may not be worth it... -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio

Re: Installation of Leo on Linux

2008-08-25 Thread Ville M. Vainio
to trunk) These should help avoid the most typical mistake. But really, there should be README.txt directly in the root folder (as opposed to docs/), and it should be updated since it doesn't seem to be quite valid anymore (i.e. installation is more complicated than it needs to be). -- Ville M

Re: problems using leo-4-5-b1 install script on linux

2008-08-25 Thread Ville M. Vainio
' from the distribution. I'll change the installation notes accordingly. Let's see whether that is any improvement. Please don't remove setup.py. My recent change should prevent the confusion. What you need is a readme.txt in the root folder. -- Ville M. Vainio - vivainio.googlepages.com blog=360

Re: .leo directory - Issues

2008-08-25 Thread Ville M. Vainio
reasons (some win32 programs don't really like files/dirs starting with .). -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed

Pysmell (auto completion)

2008-09-01 Thread Ville M. Vainio
Bumped on this on planet python: http://orestis.gr/en/blog/2008/08/31/announcing-pysmell/ It may be something that could be usefull for Leo... -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio

Re: Pysmell (auto completion)

2008-09-01 Thread Ville M. Vainio
can always use a background process to update the database when the derived files have been written. This will not slow down leo in any away, nor would it have to be in the same process... -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio

Re: Pysmell (auto completion)

2008-09-02 Thread Ville M. Vainio
to be quite simple, really. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send

Launching leo directly against a .py file

2008-09-05 Thread Ville M. Vainio
where the .py file is present as @shadow node, or something. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo

Some (subjective) usability glitches

2008-09-05 Thread Ville M. Vainio
. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo

Merging of read-at-foo-nodes

2008-09-05 Thread Ville M. Vainio
, this command should be available as keyboard shortcut by default. read-at-shadow-nodes is way too painful to invoke currently, and for large projects invoking it at root @path nodes is not practical. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio

Re: Merging of read-at-foo-nodes

2008-09-05 Thread Ville M. Vainio
On Fri, Sep 5, 2008 at 10:38 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: Why not have one command to combine all of these, which would select the right command based on the headline of the current node (@shadow, @auto...) More importantly, this command should be available as keyboard

ILeo example: getting gmail to leo

2008-09-06 Thread Ville M. Vainio
of typing and thinking that needs to be done. gml is a magic function introduced in ipy_gmail that searches gmails with the specified label. You still need to find this node and press alt+I, but once we get @button working with ileo we can forget about that as well ;-) -- Ville M. Vainio

Re: Some (subjective) usability glitches

2008-09-06 Thread Ville M. Vainio
char to the left (which, when you think about it, is quite wacky...). It's just not the way an average user thinks. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message

Re: Run @button's in ileo, and tab completion

2008-09-07 Thread Ville M. Vainio
need to be hard wired to leo core). -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post

Re: Run @button's in ileo, and tab completion

2008-09-13 Thread Ville M. Vainio
for arg() than 'command' (since passing a normal callable to it seems to be ok). -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Feature request, Vim the entire file

2008-09-15 Thread Ville M. Vainio
node... In general, this kind of feature should come out-of-the-box *somehow*. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group

Re: Leo notebook - finally a reality (in literal sense ;-)

2008-09-18 Thread Ville M. Vainio
most leo users ;-) -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from

Re: Sqlite, leo's future file format?

2008-09-18 Thread Ville M. Vainio
into the system where leo reads files and opens nodes (i.e. it's way over my head). -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group

Re: Preliminary merge of trunk into at-path

2008-09-18 Thread Ville M. Vainio
a curses gui?? How can I enable it? Are there screenshots anywhere? -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email

Re: Leo's to-do list

2008-09-20 Thread Ville M. Vainio
On Sat, Sep 20, 2008 at 1:52 PM, Edward K. Ream [EMAIL PROTECTED] wrote: On Fri, Sep 19, 2008 at 4:18 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: Sqlite format usage can be started wih by a very simple scheme: implement a tnode, vnode and uA dictionaries. In that case, a prototype should

Guide: sensible fonts for linux

2008-09-20 Thread Ville M. Vainio
Since the default fonts look a bit crappy and too big on Linux systems, here is a suggestion of sensible (smaller and more readable) fonts. This is for the normal, non-antialiased fonts (pre-python-2.6). Just copy the xml data starting below to your clipboard and ctrl+shift+v to your

Re: autocompleter.getExternalCompletions now on the trunk

2008-09-24 Thread Ville M. Vainio
own function will tell leo what completions are suggested (and thus what leo should show for the user). -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group

Re: ubuntu python tk fragility

2008-09-24 Thread Ville M. Vainio
compiled python 2.6, and not set python2.6 up to be run with 'python' command. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send

Tk, Qt, Gtk

2008-09-24 Thread Ville M. Vainio
doesn't have to care about that. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com

Re: Tk, Qt, Gtk

2008-09-29 Thread Ville M. Vainio
down by the various bad design decisions they made back in the day (one of those being choosing C + GObject instead of C++). -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Tk, Qt, Gtk

2008-09-29 Thread Ville M. Vainio
On Mon, Sep 29, 2008 at 3:18 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: Yes, there is. Try downloading pyqt. http://www.riverbankcomputing.co.uk/software/pyqt/download One point for Qt again: it's a much simpler download than Gtk (on windows). -- Ville M. Vainio http://tinyurl.com/vainio

Re: Tk, Qt, Gtk

2008-09-29 Thread Ville M. Vainio
Qt4 to an alternate location so it can co-exist with Qt3. I guess I should be Yeah, typically Qt3 and Qt4 will coexist on a linux system. BTW, what distribution does not ship Qt4? It's quite likely that the next iteration will.. -- Ville M. Vainio http://tinyurl.com/vainio

Re: Tk, Qt, Gtk

2008-09-29 Thread Ville M. Vainio
On Mon, Sep 29, 2008 at 4:14 PM, zpcspm [EMAIL PROTECTED] wrote: On Sep 29, 2:36 pm, Ville M. Vainio [EMAIL PROTECTED] wrote: Apart from all this, Qt look-and-feel (and performance) is what the kids want. Reading this made me smile since leo doesn't look like a toy for kids to me

Re: Tk, Qt, Gtk

2008-09-29 Thread Ville M. Vainio
the autogenerated UI code): http://bazaar.launchpad.net/~villemvainio/leo-editor/qleolite/files ;-) -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post

Re: Tk, Qt, Gtk

2008-09-30 Thread Ville M. Vainio
to being one of those superficial persons. When I It's not merely superficial. Everyone will appreciate the fact that text editor will run fast, have well-rendered antialiased fonts etc. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received

Re: Tk, Qt, Gtk

2008-09-30 Thread Ville M. Vainio
? leoBridge could start providing callbacks like childNodesCreated (which would make the gui refresh that part of the tree), etc.The Qt gui could initially ignore all the text manipulation stuff of Leo, relying on the functionality built in to QTextEdit (or scintilla). -- Ville M. Vainio http

Re: Tk, Qt, Gtk

2008-09-30 Thread Ville M. Vainio
. The idea is to get bootstrapped quickly, so there is something you can click around (in usable fashion). -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post

Re: Tk, Qt, Gtk

2008-09-30 Thread Ville M. Vainio
an interesting issue - in Qt mvc approach, the view (QTreeView) queries the model (QAbstractItemModel - eventually the LeoTreeModel) for data to draw. I.e. it asks the model for something like give me the icon for child #4 of node #121 when it needs to draw it. How does this map to leo? -- Ville M

Re: Tk, Qt, Gtk

2008-09-30 Thread Ville M. Vainio
On Tue, Sep 30, 2008 at 10:13 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: This brings up an interesting issue - in Qt mvc approach, the view (QTreeView) queries the model (QAbstractItemModel - eventually the LeoTreeModel) for data to draw. I.e. it asks the model for something like give me

Re: Tk, Qt, Gtk

2008-09-30 Thread Ville M. Vainio
self.treeitems[it] = p.t 63 it.setText(0, p.headString()) 64 -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post

Re: Tk, Qt, Gtk

2008-09-30 Thread Ville M. Vainio
redraw_now, the tree is being kept up to date at all times. I think this will produce a generally snappier experience as well. Of course a full_redraw feature is needed occasionally (though I'm not sure when - it might be faster to use it at startup at least). -- Ville M. Vainio http://tinyurl.com

Re: Tk, Qt, Gtk

2008-10-01 Thread Ville M. Vainio
On Wed, Oct 1, 2008 at 2:50 PM, Edward K. Ream [EMAIL PROTECTED] wrote: Yes, this sets up the tree. How does it handle expansion/contraction status of nodes? That's trivial - just use: setItemExpanded ( const QTreeWidgetItem * item, bool expand ) of QTreeWidgetItem. -- Ville M. Vainio

Re: Tk, Qt, Gtk

2008-10-01 Thread Ville M. Vainio
* as quickly as possible (i.e. without having to support everything from get-go). After that, we can focus on stuff like turning keyboard events to leo commands, adding a minibuffer, ... (or perhaps the minibuffer should be one of the first things to add, for testing purposes) -- Ville M. Vainio

Re: Tk, Qt, Gtk

2008-10-01 Thread Ville M. Vainio
On Wed, Oct 1, 2008 at 6:56 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: (or perhaps the minibuffer should be one of the first things to add, for testing purposes) Just changed my mind about that. ILeo is the best way to execute commands in the initial phase. -- Ville M. Vainio http

Re: Tk, Qt, Gtk

2008-10-01 Thread Ville M. Vainio
On Wed, Oct 1, 2008 at 6:56 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: It doesn't seem strange at all. Now, if we add code that emits signals whenever a vnode is created, deleted or moved (to child number N of vnode v), we can pretty much hack qleolite to modify the tree in real time

Re: nav_buttons plugin seems broken

2008-10-02 Thread Ville M. Vainio
On Thu, Oct 2, 2008 at 3:37 PM, Edward K. Ream [EMAIL PROTECTED] wrote: BTW, launchpad is *much* worse in showing diffs from previous versions than was cvs/tigris. This does not help my present mood :-) Why not diff in local bzr repo with bzr qlog or equivalent? -- Ville M. Vainio http

Qt tree widget performance (qleolite)

2008-10-04 Thread Ville M. Vainio
don't have ipy_leo.py available already. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com

Re: Qt tree widget performance (qleolite)

2008-10-04 Thread Ville M. Vainio
.QtCore.KeyboardModifiers object at 0x9fab62c Keypress: [ Alt+Ctrl+G ] PyQt4.QtGui.QTreeWidget object at 0x8afbeec 71 PyQt4.QtCore.KeyboardModifiers object at 0x9fab62c That is, you can get all the info from characters and the place it came from. -- Ville M. Vainio http://tinyurl.com/vainio

Re: qleolite with scintilla - screenshot of future leo? ;-)

2008-10-04 Thread Ville M. Vainio
their autocompletion code ;-) -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from

Re: qleolite with scintilla - screenshot of future leo? ;-)

2008-10-04 Thread Ville M. Vainio
up to the task. I'm glad about that, and pretty sure this will make leo more attractive to newcomers as well. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor

Re: qleolite with scintilla - screenshot of future leo? ;-)

2008-10-04 Thread Ville M. Vainio
much to existence of files / whatever), eric would still be a good source of usable code (autocompletion for QScintilla, etc). -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: qleolite with scintilla - screenshot of future leo? ;-)

2008-10-04 Thread Ville M. Vainio
ctrl+H now activates edit headline. It does it with Qt:s persistent editor, because normal editItem failed for some reason. It's not necessarily worse than what leo has now, just different. Many could even think it's better. -- Ville M. Vainio http://tinyurl.com/vainio

Re: qleolite with scintilla - screenshot of future leo? ;-)

2008-10-04 Thread Ville M. Vainio
extensions) so I will be trying to pay attention to be able to write my own lexer for that. This might be a place to start: http://www.riverbankcomputing.co.uk/static/Docs/QScintilla2/classQsciLexer.html -- Ville M. Vainio http://tinyurl.com/vainio

Re: qtGui plugin: first light

2008-10-04 Thread Ville M. Vainio
, and in its own file so it can be re-created by the GUI designer (this will probably need a rename). -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post

Re: qtGui plugin: first light

2008-10-05 Thread Ville M. Vainio
On Sun, Oct 5, 2008 at 7:43 AM, Ville M. Vainio [EMAIL PROTECTED] wrote: Does not work for me: I get @enabled-plugins found in leoSettings.leo can not load enabled plugin: qtGui Nevermind that. I didn't realize that it has to be the first plugin specified (load order). Note that runLeo.py

Re: qtGui plugin: first light

2008-10-05 Thread Ville M. Vainio
the dirty subtrees, skipping invalid positions. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com

Re: qtGui plugin: first light

2008-10-05 Thread Ville M. Vainio
, so you can proceed. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from

Re: qtGui plugin: first light

2008-10-05 Thread Ville M. Vainio
to change anyway, and you can add stuff to the menu even if it was created in the ui designer. Note that I added a tab widget (for log stuff) and minibuffer to trunk. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because

Scintilla auto completion

2008-10-05 Thread Ville M. Vainio
://scintilla.sourceforge.net/tags2api.py http://www.koders.com/python/fid7000B9C96CF2C6FB5BCE9DF700365C5B2A1F36A7.aspx?s=gtk#L53 -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: qtGui plugin: first light

2008-10-06 Thread Ville M. Vainio
problem, namely discovering the list of completions. Everything except that problem Finding completions for minibuffer is trivial. As far as completions for body pane go, it is probably best done by scintilla (do not reinvent the wheel..). -- Ville M. Vainio http://tinyurl.com/vainio

Re: qtGui plugin: first light

2008-10-06 Thread Ville M. Vainio
(possibly integrating PySmell to it somehow). It's something that Leo should not worry about at this point, because there is so much other stuff to do. Providing the level of autocompletion that e.g. eric4 provides should be enough in the meantime. -- Ville M. Vainio http://tinyurl.com/vainio

Re: qtGui plugin: first light

2008-10-06 Thread Ville M. Vainio
actually needed. Again, it's better to let other people write code for us and enjoy the flow ;-) -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post

Re: qt plugin: status

2008-10-06 Thread Ville M. Vainio
, read the Qt docs. If you want something to print, you can download C++ GUI Programming with Qt 3 at: http://www.informit.com/content/images/0131240722/downloads/blanchette_book.pdf It's largely valid for Qt4 as well. -- Ville M. Vainio http://tinyurl.com/vainio

Re: qt plugin: status

2008-10-06 Thread Ville M. Vainio
stuff leoQtTree - etc etc I suppose they will be removed or replaced with no-ops? -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group

Re: qt plugin: status

2008-10-06 Thread Ville M. Vainio
One thing I noticed - the qt-plugin performance has degenerated quite a bit (I'm talking about the responsiveness). You can see this when you compare it agains qleolite, using the same leo document (e.g. test.leo) and moving around the tree with cursor keys.

Re: qt plugin: status

2008-10-06 Thread Ville M. Vainio
you can insert whatever menu items you like in leoSettings.leo! It this ok with you? It's ok. Once I pull, I can re-generate the ui stuff so that I just allocate the menu, but don't leave any menu items. -- Ville M. Vainio http://tinyurl.com/vainio

Startup speed improvement

2008-10-06 Thread Ville M. Vainio
/ pyrex / whatever. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from

Re: qt plugin: status

2008-10-06 Thread Ville M. Vainio
I just added QTextBrowser to log panel. It will allow users to put all kinds of cool stuff to log as html (images, rich formatting, hyperlinks etc): http://doc.trolltech.com/4.4/qtextbrowser.html --~--~-~--~~~---~--~~ You received this message because you are

  1   2   3   4   5   6   7   8   9   10   >