octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interactively adding text annotations to Qt plots


From: John W. Eaton
Subject: Re: interactively adding text annotations to Qt plots
Date: Mon, 20 Apr 2015 13:10:45 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0

On 04/20/2015 02:38 AM, Pantxo Diribarne wrote:
Le 19/04/2015 16:02, John Donoghue a écrit :
On 04/16/2015 01:30 PM, John W. Eaton wrote:
On 04/16/2015 12:41 PM, JohnD wrote:

Easiest way (at least for the design of the dialog) is to use the Qt
designer tool to make a ui file for a QDialog similar to what was
done for
the preferences dialog.
I can create a skeleton set of files for doing that if you still need a
volunteer

Yeah, that would be helpful because I have approximately zero
experience using the Qt designer tool.

Thanks,

jwe

Added initial annotations dialog. Not all properties can be changed yet.

http://hg.savannah.gnu.org/hgweb/octave/rev/c164cfc24bdd



Hi,

I had mistakingly answered privately to this email without ccing the
mailing list. So in the mean time I have prepared a changeset (see
attched) that adds context menus to annotation objects in order to be
able to tune the annotations after creation. It works when the
annotation has been created from the interpreter. When created from the
figure/dialog, changes lag behind and must be forced using e.g. mouse
click out of the canvas: try "demo annotation 1" to see the expected
behavior.
I also can provide a changeset (nearly ready) to let the user draw a
rectangular box when creating an annotation textbox instead of just
clicking on the canvas.

@JohnD: currently, using the textbox annotation dialog in "--no-gui"
mode crashes Octave. Also it would be great if this dialog could be
called from the interpreter using a DLD function (and a "More ..." item
in the context menus).

Thanks to both of you for working on this feature.

Is it possible to disable the box around the textbox? I know, it's a textBOX, but it would be nice to just be able to add labels without the box.

jwe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]