Marti:

Attached are some patches to qtmeasurementtooldialog.h and
qtmeasurementtooldialog.cpp.  They fix one problem and add one
capability.

Unfortunately, I am not a KDE/Qt programmer (I mostly use GTK, or
GTKmm, the C++ bindings for GTK).  The patches are ugly hacks.  When
you have the time, please consider addressing this, hopefully in a
better way.

Qtmeasurementtool has never worked correctly on my Linux/X/three-
button-mouse system.  The right mouse button seems to always be bound
to the KDE/Qt "What's This" slot, so resizing the measurement template
never worked.  A single click of the right button, if inside the
template, would shrink the template, but dragging the mouse did
nothing.  Worse, the template could never be made bigger if
accidentally made too small (I would have to exit qtmeasurementtool
and start again).

My hack was to change resize to Shift + left mouse.  There is probably
a way to fix the "What's This" problem and make it work correctly with
the right mouse button.

The added capability is that resizing the qtmeasurementtool window
would not change the size of the target image.  (I use a 1600x1200
monitor, and the image is too small.)  I added a horrible hack to
reload the image on window resize.  Besides adding some ugly
dependencies between the FigureEditor and its enclosing
qtMeasurementToolDialog class, the patch causes multiple reloads to
occur as the user resizes the window.  Even on a fast system,
performance suffers.  There is probably a way to detect the "last"
resize event and only do the reload then (and/or just resize from the
original image rather than reloading it), but I don't know how to do
this in Qt.

Again, the resize patch is so bad I'm sending it only as a suggestion
for future fixes.  The right button fix changes the user interface,
but should work on all systems.  On the other hand, if I'm the only
Linux user of LCMS maybe I should just patch my own install of the
code each time you release a new version.

=====
--
MARK
[EMAIL PROTECTED]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Attachment: qtmeasurementtool.patch
Description: qtmeasurementtool.patch

Reply via email to