On Wed, Sep 26, 2007 at 04:35:34PM +0200, Tim Blechmann wrote: > On Tue, 2007-09-25 at 17:02 -0400, Phil Frost wrote: > > On Mon, Sep 24, 2007 at 07:17:19PM -0400, Phil Frost wrote: > > > I'm looking all over for the code responsible for drawing the dashed > > > lines around boxes in the GUI. I can't find anything, nor can I find > > > anything in the Qt docs that suggest it's doing it automagically. Does > > > anyone know? > > > > Well, I dug through the Qt source and found where it does it. They have > > nicely factored the code that does it in to a function, but stopped > > short of making it a method that could be overridden. Stupid design, I > > think. Anyway, problem solved. > > yes, i am not sure, whether this is customizable ... qt's graphics-view > is providing it as built-in functionality: > http://doc.trolltech.com/4.3/qgraphicsview.html#DragMode-enum > > but from what i understand, it shouldn't be too hard to implement the > functionality manually ...
I read the Qt source, and i'm quite sure it's not customizable, and the way to disable it is ugly. I've published my branch in progress with the pretty connections and other pretty things at <http://unununium.org/~indigo/nova/pretty-gui-connections/>. It includes the ugly workaround if you care to see. You will need bzr to access it in a useful way; I can send an updated patch when it's ready to merge if you don't want to mess with bzr. The latest screenshot is at <http://unununium.org/~indigo/prettieried_nova_boxes.png>. It's not shown there, but the mouse is hovering over an xlet and that's why some connections are highlighted in teal. I've disabled Qt's ugly-dashed-line-indication-of-selected-items, so the branch is at present lacking a way to indicate the selection; working on that now. I've given some thought to a gui preferences mechanism and discussed it a bit with niklas on IRC. The idea is to make some gui objects that accept messages and respond by changing visual or other preferences of the gui. This has some advantages over a methods like a plain text file: - preferences can be changed at runtime by a patch. So, a particular patch might change colors of some connections or whatnot to indicate state. Or, the visual aspects of the interface might be changed in response to the music as part of a combined audio and visual live performance where the patching is visible to the audience. - saving the preferences is just the same as saving a patch. If the gui loads a patch in a standard location like ~/.novarc on starup, that patch can include some things rigged to a loadbang which set the desired preferences (and a lot of other things, too) It's very elegant, i think. Easy to implement, and very flexible. Also, if you know how to use nova, you are already most of the way towards knowing how to edit it's configuration. _______________________________________________ nova-dev mailing list [email protected] http://klingt.org/cgi-bin/mailman/listinfo/nova-dev http://tim.klingt.org/nova
