Jim Evins [Wed, 1 Sep 2010 01:48:50 +0000 (21:48 -0400)]
Fix maximum size of object editor sidebar at initialization.
Kludge: Load barcode styles for each backend type at initialization, so that
when they are loaded for real, the maximum size of the widget has already been
established and doesn't cause the object editor to change size.
Jim Evins [Mon, 30 Aug 2010 01:56:45 +0000 (21:56 -0400)]
Allow user selection of barcode backend.
- User can now select which backend to use for a particular barcode.
- This prevents one implementation from eclipsing another.
- For backwards compatability, do best guess at backend.
Jim Evins [Sat, 10 Jul 2010 05:38:48 +0000 (01:38 -0400)]
Improved centering of barcode text.
Don't try to calculate x offset using hardcoded fixed character width, which
does not work properly for proportional fonts. Use the origin provided by
zint (wich is at the horizontal center) and use pango to calculate the offset
at render time.
Jim Evins [Sat, 10 Jul 2010 03:20:11 +0000 (23:20 -0400)]
Added new barcode drawing primitives.
Added a "Box" and a "String" barcode drawing primitives. The box primitive
should be more natural for drawing actual boxes instead of lines. The string
primitive allows an entire string to be rendered with a single interaction with
pango and cairo, rather than an interaction for each character. There is no
need to try to implement kerning since pango will take care of the string as
a single layout.
Jim Evins [Sat, 10 Jul 2010 03:15:30 +0000 (23:15 -0400)]
Fixed width behavior of object editor.
I had neglected to add the barcode page to the appropriate size group. Longer
names in the zint backend caused the style combobox to be the long pole in
the tent, causing the width of the object editor to fluctuate when selecting
and un-selecting barcode objects.
Jim Evins [Sun, 13 Jun 2010 00:40:24 +0000 (20:40 -0400)]
Add shadow property to image objects.
Added shadow support to image objects. Shadow is created from the image's
alpha channel, so the shadow will work properly for images with transparent
backgrounds. More work needs to be done to better optimize the performance.
Jim Evins [Sat, 12 Jun 2010 16:20:29 +0000 (12:20 -0400)]
Cleanup of shadows for boxes and ellipses.
Do a more intelligent job of drawing shadows for boxes and ellipses. Instead
of just blindly drawing a fill shadow and an outline shadow, choose to draw
one or the other and adjust size of shadow appropriately.
Jim Evins [Sat, 12 Jun 2010 01:53:49 +0000 (21:53 -0400)]
Do not explicitly set sidebar size.
Use 2 sizegroups to automatically fix sidebar size based on the size
of the widgets it contains -- even hidden ones. The width was previously
set explicitly to prevent the sidebar from changing size whenever objects
are selected and unselected. This has been problematic for compatability
with different themes, fonts, and translations.
Jim Evins [Mon, 31 May 2010 02:58:33 +0000 (22:58 -0400)]
Fix selection problem.
Clear existing paths before creating new test paths. This would occasionally
cause the wrong object to be selected because the in_fill or in_stroke
tests would be satisfied using left-over paths from previous tests.
Jim Evins [Thu, 27 May 2010 00:02:17 +0000 (20:02 -0400)]
Some minor barcode cleanup
- Added DEBUG_BARCODE so that verbosity on stdout of new libzint backend
can be controlled.
- Removed artifact comments and some minor formatting changes in libzint
backend.
- In object editor, make preview format track the number of digits in the
digits spinbox in real-time.
Jim Evins [Mon, 24 May 2010 23:45:03 +0000 (19:45 -0400)]
Additional translator hints.
- Fixed a couple of strings that should not have been marked translatable.
- Added comments for "Fixed", "Other", "None", and "No match."
- Attempted to disambiguate 3 different occurances of "Any"