Re: Leo: munging and analyzing text

2011-10-24 Thread ne1uno
On Sep 26, 3:38 pm, Edward K. Ream edream...@gmail.com wrote: On Sat, Sep 24, 2011 at 3:12 PM, ne1uno eltro...@gmail.com wrote: wouldn't it be great to have a first class c importer? Importing C perfectly would require AI.  Furthermore, people may have legitimate preferences for various

Leo's wiki being spammed

2011-10-24 Thread Edward K. Ream
I believe simon, the owner of zwiki, set up Leo's wiki, though my memory could be faulty. It looks like we shall have to go to a system where all potential editors of the wiki will have to be approved, as with leo-editor. Edward -- You received this message because you are subscribed to the

Re: leoSettings.leo about to change

2011-10-24 Thread ne1uno
Qt lets you set -style= and -stylesheet= from the commandline, but optparse errors on unknown options. on X11 you can set quite a few more options for debug and window controls. is there any way extra options could be passed onto QApplication(sys.args)? maybe with a short informational pseudo

Short summary of Qt stylesheet issues

2011-10-24 Thread Edward K. Ream
The recent Aha re Qt stylesheets means that there is no need for any framework to handle stylesheets. Code such as g.app.gui.add/remove_border and qtBody.setEditorColors are simple and work independently of each other. End of project, imo. Edward -- You received this message because you are

Re: Question for Terry, Ville, et al.: how to use stylesheets internally

2011-10-24 Thread Terry Brown
Right, unfortunately Qt allows only a single stylesheet at a particularly level, and dinking around binding different sheets at different level seems too complicated. Happily, this is not true.  As discussed in the other thread, we can call w.setStyleSheet as many times as we like on a

Re: Leo's wiki being spammed

2011-10-24 Thread Edward K. Ream
On Oct 24, 8:34 am, Edward K. Ream edream...@gmail.com wrote: I believe simon, the owner of zwiki, set up Leo's wiki, though my memory could be faulty. Yes, Simon just responded to a private email. It looks like all potential editors of the wiki will have to be approved. Simon will

Re: Question for Terry, Ville, et al.: how to use stylesheets internally

2011-10-24 Thread Edward K. Ream
On Mon, Oct 24, 2011 at 10:02 AM, Terry Brown is really the case.  I think that an already existing, shown, widget will not be restyled when the sheet governing it replaced with one which doesn't affect it directly.  But see how this simple demo works: I wasn't thinking about using

leoSettings.leo cleaned with minimal changes

2011-10-24 Thread Edward K. Ream
As of rev 4647, I have done some careful housecleaning of leoSettings.leo. These changes should be benign. Please report any problems immediately. Changes: 1. Disabled colorizer settings used only by the old colorizer:: bracket_range_color comment_color cweb_section_name_color

In full bug-fixing mode

2011-10-24 Thread Edward K. Ream
Recent work has had a strong bug-fixing component. The present plan is to fix bugs until no more serious bugs remain. I expect this to take 2-4 weeks. Edward -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to

Re: Question for Terry, Ville, et al.: how to use stylesheets internally

2011-10-24 Thread Terry Brown
On Mon, 24 Oct 2011 14:28:01 -0500 Edward K. Ream edream...@gmail.com wrote: What makes Leo's code work is that stylesheets *on a particular widget* work independently of other stylesheets on the same widget. Your example stylesheets apply to sets of widgets, and that's a different matter.

Re: Question for Terry, Ville, et al.: how to use stylesheets internally

2011-10-24 Thread Terry Brown
This seemed somewhat informative: http://developer.qt.nokia.com/forums/viewthread/1333 -- 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 this group, send email to

Re: Question for Terry, Ville, et al.: how to use stylesheets internally

2011-10-24 Thread Edward K. Ream
On Mon, Oct 24, 2011 at 4:24 PM, Terry Brown terry_n_br...@yahoo.com wrote: I fear that it's only working by the skin of its teeth. I agree. This is not a completely satisfactory situation. I just realized that calling qtBody.setEditorColors wipes out the background color of scrollbar. The

Re: Question for Terry, Ville, et al.: how to use stylesheets internally

2011-10-24 Thread Edward K. Ream
On Mon, Oct 24, 2011 at 6:27 PM, Edward K. Ream edream...@gmail.com wrote: On Mon, Oct 24, 2011 at 4:24 PM, Terry Brown terry_n_br...@yahoo.com wrote: I fear that it's only working by the skin of its teeth. Would you be satisfied if the Leo methods that set some stylesheet attributes retained

Re: Question for Terry, Ville, et al.: how to use stylesheets internally

2011-10-24 Thread Terry Brown
On Mon, 24 Oct 2011 20:16:57 -0500 Edward K. Ream edream...@gmail.com wrote: Would you be satisfied if the Leo methods that set some stylesheet attributes retained the other attributes, as you do in the nested splitter code? Is that all that is conversation is about? :-) Well, yes and no :-)

How fast is Qt styling code

2011-10-24 Thread Terry Brown
Here's an amusing hack to test the speed of Qt styling code import re flippy = re.compile(r#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})) sheet = str(c.frame.top.leo_ui.styleSheet()) sheet = re.sub('(?i)white', '#cc', sheet) sheet = re.sub('(?i)#ff', '#ffccff', sheet) for i in