OSDN Git Service
Jon Nordby [Sun, 13 Feb 2011 19:41:07 +0000 (21:41 +0200)]
frame: Save to/load from OpenRaster
Jon Nordby [Fri, 7 Jan 2011 22:23:00 +0000 (23:23 +0100)]
frame: Ability to move frame on-canvas.
Jon Nordby [Tue, 28 Dec 2010 22:09:19 +0000 (23:09 +0100)]
frame: center document to frame if enabled
Jon Nordby [Sun, 13 Feb 2011 12:47:15 +0000 (14:47 +0200)]
frame: If enabled, export only area inside frame to PNG/JPEG
Also set frame dimensions on loading from PNG/JPEG.
Jon Nordby [Wed, 29 Dec 2010 19:51:00 +0000 (20:51 +0100)]
frame: Basic UI
Allows the user to enable/disable the frame and to set the
dimensions.
Jon Nordby [Wed, 29 Dec 2010 17:37:26 +0000 (18:37 +0100)]
frame: State and visualization
Jon Nordby [Fri, 24 Dec 2010 00:30:11 +0000 (01:30 +0100)]
tileddrawwidget: Split repaint method
Tor Egil Hoftun Kvæstad [Mon, 7 Feb 2011 19:37:25 +0000 (20:37 +0100)]
Updated the Norwegian Nynorsk translation
Updated the nn_NO translation, after the addition of new strings.
Changed occurrences of "gjennomsiktigheit" to "dekkjeevne".
Added nn_NO and nb_NO translations for the comment in the desktop file.
Andrew Chadwick [Tue, 15 Feb 2011 20:28:39 +0000 (20:28 +0000)]
linux: desktop file rewording & categorisation
Translations from IRC, incomplete.
Martin Renold [Tue, 15 Feb 2011 07:19:09 +0000 (08:19 +0100)]
fix unicode filename passed via commandline
https://gna.org/bugs/?17739
Martin Renold [Mon, 7 Feb 2011 09:09:11 +0000 (10:09 +0100)]
windows: code cleanup
Use raw string for backslashes.
Fix exception handling. As it was before, in the case
of an exception the use of "localappdatapath" later would
have triggered another (fatal) exception.
Don't bother closing handles manually, python destructors do this
for us.
Set the path on windows independent of the result of expanduser('~').
Tumagonx [Mon, 7 Feb 2011 09:01:10 +0000 (10:01 +0100)]
windows: use AppData folder for settings
https://gna.org/bugs/?17662
"In Windows I expect Local AppData folder for saving settings,
in pygobject there is glib.get_user_config_dir() but it has windows
issue that just recently fixed (Glib 2.27.x ?) otherwise it seems to
conform XDG spec too."
Jon Nordby [Sun, 13 Feb 2011 11:14:59 +0000 (13:14 +0200)]
Don't print color history values to stdout.
Jon Nordby [Sun, 13 Feb 2011 11:10:51 +0000 (13:10 +0200)]
preferences: Add toggle subwindows to possible button actions.
Also group the actions a bit better, and add a comment about
the translated strings.
Martin Renold [Sat, 24 Apr 2010 05:51:09 +0000 (07:51 +0200)]
osx: comile fix
Joao S. O. Bueno [Sat, 5 Feb 2011 17:12:54 +0000 (19:12 +0200)]
i18n: Add Brazilian Portuguese
Martin Renold [Sun, 30 Jan 2011 14:38:34 +0000 (15:38 +0100)]
thumbnails: 256x256 preview, 20% faster saving
Some refactoring of the thumbnailing code. We now use 256x256
whenever possible. When saving a PNG, we no longer load the full
file back from disk (in addition to the data we already hold in
memory) just to generate the thumbnail.
Saving ORA and PNG is both around 20% faster now. This is not
noticed by the performance benchmarks that don't use the GUI.
Martin Renold [Sat, 29 Jan 2011 10:59:21 +0000 (11:59 +0100)]
fix startup crash for non-ascii home directory
https://gna.org/bugs/index.php?17111
Tested on Linux, but should also work on Windows. At least I
checked that on Vista getfilesystemencoding() returns a codec
that can decode the USERPROFILE environment variable.
Martin Renold [Sat, 29 Jan 2011 08:55:05 +0000 (09:55 +0100)]
view: fix rotation direction when mirrored
https://gna.org/bugs/?17596
Martin Renold [Sun, 23 Jan 2011 13:31:37 +0000 (14:31 +0100)]
testing: ignore pointer movements during gui test
And wait for fullscreen to be completed before the paint test starts.
Martin Renold [Sat, 22 Jan 2011 19:48:52 +0000 (20:48 +0100)]
gui: more intuitive rotation control
The rotation angle is controlled by the angular velocity
with respect to the center, instead of the x velocity.
Martin Renold [Sat, 22 Jan 2011 19:22:05 +0000 (20:22 +0100)]
portabililty: remove trailing '/' in config path
Doesn't seem to have any function, and with some luck this
might fix a startup crash some versions of Windows during mkdir().
Martin Renold [Sat, 22 Jan 2011 18:31:28 +0000 (19:31 +0100)]
menu: show key accelerator labels for rotation
Martin Renold [Sat, 22 Jan 2011 16:32:45 +0000 (17:32 +0100)]
minor comment correction
(zipfile utf-8 handling)
Martin Renold [Sat, 22 Jan 2011 14:11:43 +0000 (15:11 +0100)]
load_ora: fix for utf-8 filenames, again
Support both broken and correct ORA files. Before, we did only
support broken ones that the old GIMP ORA plugin saved.
https://gna.org/bugs/index.php?17536
Griatch [Thu, 20 Jan 2011 19:42:09 +0000 (20:42 +0100)]
load_ora: fix for utf-8 filenames
Added fix for bug #17536, where the ora loading wouldn't load an image with layers having names containing non-ascii characters.
Martin Renold [Tue, 18 Jan 2011 20:43:33 +0000 (21:43 +0100)]
cursor: smaller minimal size
According to deevad a tiny cursor is prefered for line art.
Till Hartmann [Fri, 7 Jan 2011 22:45:29 +0000 (23:45 +0100)]
Thumbnails now also get generated when saving files.
Martin Renold [Sun, 9 Jan 2011 11:12:32 +0000 (12:12 +0100)]
preferences: explain the input modes
Andrew Chadwick [Sun, 9 Jan 2011 01:39:21 +0000 (01:39 +0000)]
prefs: allow rebinding of more buttons & mods
Add an extra tab to the preferences window which allows device buttons 2
and 3 to be rebound. Additionally combinations of shift, ctrl or alt
plus any device button (1 through 3) can be rebound.
Defaults have been set to the old actions before this commit.
Only certain actions make any sense here, so only those are offered in
the prefs dialog.
Andrew Chadwick [Mon, 3 Jan 2011 15:07:32 +0000 (15:07 +0000)]
menu popup: distinguish between actions and events
Minor fix: opening out the last active or first top-level item when
launching the popup menu broke positioning confusingly for mouse button
events. It's still fine for keystroke actions.
Andrew Chadwick [Thu, 30 Dec 2010 01:00:33 +0000 (01:00 +0000)]
right click: allow use as a menu popup too
The right mouse button can now be optionally bound to the popup menu
using the preferences dialog.
Andrew Chadwick [Thu, 30 Dec 2010 00:28:09 +0000 (00:28 +0000)]
prefs win: fix blank widgets
Preferences UI was not being updated.
Andrew Chadwick [Wed, 29 Dec 2010 19:25:45 +0000 (19:25 +0000)]
color sampler: refill history slots on startup
Refill the slots properly on init to fix a glitch with the history
colours jumping around and seemingly resetting to red if pressed before
drawing the first stroke.
Andrew Chadwick [Wed, 29 Dec 2010 05:00:02 +0000 (05:00 +0000)]
managedbrush: fix new-brushkey ui oddities
Minor fix: over-optimistic inference about the state of persistent on
save() was causing newly-created brushkeys to not reflect into the
brushlist ui on subsequent fetches.
Andrew Chadwick [Wed, 29 Dec 2010 03:43:22 +0000 (03:43 +0000)]
brushmanager: unconflate in_brushlist & persistent
The two ideas are separate; mixing them up causes problems.
Fixes one small devbrushes bug: devbrushes can be persistent
legitimately, and sometimes MyPaint tried to highlight them and not
their ancestor in the brushlist.
Andrew Chadwick [Wed, 29 Dec 2010 01:26:41 +0000 (01:26 +0000)]
brushmanager: bugfix brushkeys and devbrushes
Commit
e1d211436645db1e6be0782b5db0b590d87bd4ef broke brushkeys and
devbrushes' parent relationships. Rollback and fix. In future, we'll
just have to be explicit about whether we want to retain parent names
when loading.
Also, load all brushkey brushes on startup. Not ideal, but the deferred
load doesn't know and shouldn't care if a brush is a brushkey one.
Andrew Chadwick [Wed, 29 Dec 2010 00:02:22 +0000 (00:02 +0000)]
brushmanager: more robust when defaults absent
Fix some slightly esoteric crashes when the default startup brush group
or default brushes can't be found: basically widen default brush
searches and/or pick plausible defaults.
https://gna.org/bugs/?17253
Andrzej Giniewicz [Tue, 28 Dec 2010 17:49:19 +0000 (18:49 +0100)]
Use correct version of python for generate.py
The brushlib/generate.py is called by build script using "python generate.py",
if default Python is Python 3 as in my case, it makes the build fail on new
print-as-function syntax. Simply using same python version as for rest of
MyPaint fixes the issue.
Jon Nordby [Tue, 28 Dec 2010 17:30:39 +0000 (18:30 +0100)]
Fix crash in window management with empty config.
Introduced in
1704779f6bd2f973b095a5bbdbd7a413f58e8910
Andrew Chadwick [Mon, 27 Dec 2010 22:26:17 +0000 (22:26 +0000)]
brushpacks: set persistent flag, ignore ancestry
Set the persistent flag when loading and saving brushes from brushpacks
so they can be highlighted in the gui. Also ignore their ancestry on
save and load to avoid potential wrong-highlight bugs in future.
https://gna.org/bugs/?17157
Jon Nordby [Fri, 24 Dec 2010 03:13:36 +0000 (04:13 +0100)]
windowing: Move code to new WindowManager class.
Also remove duplicate delete-event callback setups
in windows by moving the setup to the parent class.
Jon Nordby [Fri, 24 Dec 2010 13:24:04 +0000 (14:24 +0100)]
Use observer pattern for current filename.
Martin Renold [Wed, 22 Dec 2010 07:47:23 +0000 (08:47 +0100)]
menu: fix obsolete brushkey help text
David Grundberg [Sun, 12 Dec 2010 14:38:26 +0000 (15:38 +0100)]
Preferences dialog: Consistent padding and overall layout.
This changes the layout of the preference dialog to add consistent
padding. It also adds headings for each group. See GNOME HIG.
David Grundberg [Wed, 15 Dec 2010 21:26:47 +0000 (22:26 +0100)]
Function editor: Treat translated text better. (Remove title())
There are several problems with using str.title() to make the header
Initial Cased:
A) There are languages and locales that don't use Initial Case for
headers.
B) str.title() can only work on ascii.
David Grundberg [Wed, 15 Dec 2010 19:14:56 +0000 (20:14 +0100)]
Swedish translation: Fix swapped translations, general language brush up.
Martin Renold [Thu, 2 Dec 2010 17:19:40 +0000 (18:19 +0100)]
commandline: option to start fullscreen
Andrew Chadwick [Sat, 20 Nov 2010 01:50:21 +0000 (01:50 +0000)]
brush creation: bugfix for Add As New
Parent brush name management to fix newly-created brushes highlighting
their parent when selected.
https://gna.org/bugs/?17106
Andrew Chadwick [Fri, 19 Nov 2010 23:49:23 +0000 (23:49 +0000)]
Revert "brush selection: left scrollbar always"
This reverts commit
578b6daa3118fe20461e5ea8e4ecfa480afc2aa6. Fair
enough, might as well keep it clean.
http://gitorious.org/mypaint/mypaint/commit/
578b6daa#comment_31654
Andrew Chadwick [Thu, 18 Nov 2010 20:53:18 +0000 (20:53 +0000)]
brush selection: left scrollbar always
Cosmetic: automatic policy means with some widths, the number of brush
columns change.
Andrew Chadwick [Thu, 18 Nov 2010 20:50:51 +0000 (20:50 +0000)]
brush selector: remember expander state in prefs
https://gna.org/bugs/?17003
Martin Renold [Thu, 18 Nov 2010 18:24:23 +0000 (19:24 +0100)]
workaround for bad tilt input (nan)
2nd fix attempt
https://gna.org/bugs/?17084 (Exception with Graphire ET-0405-U)
Jon Nordby [Thu, 18 Nov 2010 16:27:39 +0000 (17:27 +0100)]
Make view rotation step 22.5 degrees.
To allow rotating to 45/90/180 degrees and similar easily.
Andrew Chadwick [Thu, 18 Nov 2010 02:30:04 +0000 (02:30 +0000)]
color sampler: fix comparison moonlet
Tiny fix for an hsv vs. rgb issue.
Andrew Chadwick [Thu, 18 Nov 2010 01:43:24 +0000 (01:43 +0000)]
color sampler: pure white/black, allow sloppy move
Allow pure white and pure black to be selected using the square.
Extend sensitive areas during button-down moves. Less need to be precise.
Simplify picking corner values in the square.
https://gna.org/bugs/?16185
Andrew Chadwick [Thu, 4 Nov 2010 00:48:22 +0000 (00:48 +0000)]
color ui refactoring: use hsv more,
Fix inability of color sampler to vary hue if the colour is pure white
or pure black by not round-tripping to RGB so much.
Save colour history between sessions.
Martin Renold [Tue, 16 Nov 2010 19:24:09 +0000 (20:24 +0100)]
workaround for tablet reporting bad tilt
For some tablets without tilt support we get tilt "infinity".
https://gna.org/bugs/?17084
Martin Renold [Wed, 3 Nov 2010 12:57:05 +0000 (13:57 +0100)]
fix exception on device change
Martin Renold [Wed, 3 Nov 2010 12:41:56 +0000 (13:41 +0100)]
fix crash when default group is missing
Martin Renold [Wed, 3 Nov 2010 06:54:36 +0000 (07:54 +0100)]
chmod -x (for brush previews)
Andrew Chadwick [Tue, 2 Nov 2010 01:54:39 +0000 (01:54 +0000)]
color compare: turned through 45 degrees
Experimental: the "new" colour now faces the central choosers, perhaps
indicating that it's in some sense reflects what's being chosen right
now. I wasn't too keen on making the comparison pair mushroom-shaped.
Andrew Chadwick [Tue, 2 Nov 2010 01:47:56 +0000 (01:47 +0000)]
color history: redraw compare semicircles on push
The colour comparison semicircles now redraw properly when used colours are
pushed onto the history.
Impl: remove monkeypatching, add a proper observer array.
Andrew Chadwick [Tue, 2 Nov 2010 01:44:50 +0000 (01:44 +0000)]
color sampler: add tooltips & texts
Add tooltips for various areas;
Remove extraneous "Select harmonies" frame;
Fix spelling of "complementary".
Andrew Chadwick [Fri, 29 Oct 2010 14:13:33 +0000 (15:13 +0100)]
color history: update immediately on painting
Fix: update colour history views immediately instead of hanging around
waiting for split_stroke() to be called by something.
Impl: introduce an abstraction for the observers list & rename it sensibly.
Andrew Chadwick [Thu, 28 Oct 2010 02:20:23 +0000 (03:20 +0100)]
color sampler: reinstate prev/current semicircles
By request. Switch order so it's the same as the nearby history trail
and bump up the size of the current-colour semicircle a notch. Add a
subtle line between the two to help make things a little more distinct.
Hopefully that won't defeat the comparison purpose of this widget.
Andrew Chadwick [Sun, 24 Oct 2010 23:32:22 +0000 (00:32 +0100)]
color sampler: remember state of harmony toggles
Harmony wheel toggle settings are now remembered across sessions via the
preferences mechanism. Thanks to Levainqueur in the forums for the
suggestion!
Andrew Chadwick [Thu, 28 Oct 2010 12:16:35 +0000 (13:16 +0100)]
unicode quoting: fix bugs, add doctests
Andrew Chadwick [Thu, 28 Oct 2010 00:54:35 +0000 (01:54 +0100)]
eraser mode: play nice with restored brushes
Bugfixes and behavioural changes. Eraser mode was misbehaving when switching
devices or restoring things.
* Forget eraser mode when a brush is restored from any source (context,
pick context, device-specific brushes)
* Don't save (eraser, radius) from eraser mode for pen devices, but *do*
save (eraser, radius) from eraser mode to eraser devices. This
allows users to pick a non-eraser brush with the eraser end of their
pen, flip MyPaint to eraser mode and have the effects of eraser mode
saved for the device.
Conversely, switching devices back to a pen allows you to draw even if
you went { pen1 -> eraser mode -> pen2 -> ... -> pen1 } and forgot
about having engaged eraser mode.
This isn't very symmetrical though. Suggestions welcome!
* Remember the eraser mode size change as a saved preference.
Andrew Chadwick [Fri, 22 Oct 2010 20:16:58 +0000 (21:16 +0100)]
user brush tweaks: process device changes 1st
Glitch fix: for UI parts that the user can tweak the settings of the
current brush with, if the device switches with the very event used to
tweak the the brush, the tweak should be applied *after* switching to
the new brush.
https://gna.org/bugs/?14695
Andrew Chadwick [Thu, 21 Oct 2010 20:31:20 +0000 (21:31 +0100)]
brushmanager devbrushes: unicode in, unicode out
Another little bugfix.
Andrew Chadwick [Thu, 21 Oct 2010 19:08:35 +0000 (20:08 +0100)]
brushkeys: useful defaults
The brush keys 1-9 and 0 are now initialised from the first ten brushes
of the default brushes group if nothing's been bound to those keys yet
by the user.
Andrew Chadwick [Thu, 21 Oct 2010 18:46:17 +0000 (19:46 +0100)]
brushinfo: refactor brush descriptions
Break out current uses of settings_str into a separate class to permit
limited field manipulation from managedbrushes and functions which work
on them.
Andrew Chadwick [Sat, 16 Oct 2010 22:39:36 +0000 (23:39 +0100)]
per-device brushes: remember across sessions
Undoes some of the nastiness introduced by my commit
http://gitorious.org/mypaint/mypaint/commit/
bc3fc61f7fa3 and improve
things a little. Specifically, record per-device brushes as proper
ManagedBrushes, save them between sessions, and don't force everything
else that uses non-persistent ManagedBrushes to go through the same UI.
Brush setting strings now contain parent_brush_name, the name of a
persistent ManagedBrush. This is intended to be used for highlighting
the parent brush when picking strokes, switching between input deveices
or pressing brushkeys.
Remember the brush-to-device association at the end of a stroke, and
keep track of changed settings.
Default to the last-used brush+settings at app startup.
Save per-device brushes+settings when the application ends.
Jon Nordby [Sat, 30 Oct 2010 19:23:50 +0000 (21:23 +0200)]
Update changelog for 0.9.0
Martin Renold [Sat, 30 Oct 2010 19:01:04 +0000 (21:01 +0200)]
version bump, changelog
Jon Nordby [Sat, 30 Oct 2010 19:02:45 +0000 (21:02 +0200)]
Updated Norwegian translation
Gergely Aradszki [Sat, 30 Oct 2010 18:38:26 +0000 (20:38 +0200)]
Update Hungarian translation
Martin Renold [Sat, 30 Oct 2010 17:59:33 +0000 (19:59 +0200)]
canvas: mouse zoom/pan/rotate shortcuts
Ctrl-(MMB or space) = zoom (Blender convention)
Shift-(MMB or space) = rotate (no convention, just don't use Ctrl)
And draw straight lines only with LMB.
This commit is dedicated to the Durian Open Movie team.
Martin Renold [Sat, 30 Oct 2010 16:25:49 +0000 (18:25 +0200)]
color picker: release grab when used from menu
Some users try to activate the menu entry. While it's not meant
to be used like that, at least don't leave a pointer grab that could
only be canceled by hitting escape.
Martin Renold [Sat, 30 Oct 2010 15:40:04 +0000 (17:40 +0200)]
color picker: also start with alt-click
Photoshop convention. No harm to support this until we have a
better use for Alt-Click.
Martin Renold [Sat, 30 Oct 2010 13:35:42 +0000 (15:35 +0200)]
cursor: invert black/white
Better cursor visibility on bright background (which is the default).
Same cursor shape as before.
Martin Renold [Sat, 30 Oct 2010 13:28:44 +0000 (15:28 +0200)]
context keys: fix previous commit
Hm, I thought I had --ammend'ed that.
Martin Renold [Sat, 30 Oct 2010 13:10:41 +0000 (15:10 +0200)]
context keys: don't restore color
Changing my mind once more: https://gna.org/bugs/index.php?16977
This reverts commit
e8f68a3123c8ad646d12122a3da0eb00182d4ae6.
Martin Renold [Sun, 24 Oct 2010 19:09:38 +0000 (21:09 +0200)]
fix performance tests
confpath must be a unicode object
Martin Renold [Sun, 24 Oct 2010 15:18:04 +0000 (17:18 +0200)]
dialogs: fix exception when canceling
https://gna.org/bugs/?16944
Andrew Chadwick [Sat, 23 Oct 2010 18:59:00 +0000 (19:59 +0100)]
color sampler: various requested tweaks
The harmony ring is now only shown if needed. Hue ring now gives up some
of its space to the harmony ring if the latter is shown. These changes
result in the central square being generally larger most of the time.
Removed the confusing before/after semicircles in the bottom-right.
Added hairline, slightly darker grey borders to colour areas. Helps
delineate things slightly better.
Jon Nordby [Sat, 23 Oct 2010 16:16:23 +0000 (18:16 +0200)]
Brushes: Move 5 brushes from classic to experimental
Jon Nordby [Sat, 23 Oct 2010 15:54:50 +0000 (17:54 +0200)]
Revert "Add GNOME/Nautilus OpenRaster thumbnailer"
This reverts commit
ec8bbed98b4acdb1fb4b635c4fbfce6e76167e50.
Reverted because to get distributed this would add a dep on
gconf, which we don't really want. I will focus on creating a standalone
package and getting support upstream instead.
Gergely Aradszki [Sat, 23 Oct 2010 15:01:39 +0000 (17:01 +0200)]
Updated Hungarian translation.
Manuel Quiñones [Sat, 23 Oct 2010 14:59:01 +0000 (16:59 +0200)]
Updated Spanish translation.
Martin Renold [Fri, 22 Oct 2010 14:20:26 +0000 (16:20 +0200)]
windows: delete unmaintained nsi file
http://gna.org/bugs/?16555
Andrew Chadwick [Tue, 19 Oct 2010 09:43:03 +0000 (10:43 +0100)]
colour sampler: expanders on startup bugfix
Fix colour sampler window getting bigger on each startup if expanders
are open.
https://gna.org/bugs/?16889
Martin Renold [Tue, 19 Oct 2010 06:35:07 +0000 (08:35 +0200)]
fix python2.6 unicode exception
unicode(obj, 'utf-8') doesn't work if obj is already unicode.
However obj.decode('utf-8') does work in this case.
Martin Renold [Mon, 18 Oct 2010 21:38:05 +0000 (23:38 +0200)]
windows: fix uri history (recent files)
Two workarounds are required.
Gtk recent_manager's URIs are getting a bit hairy.
Partial fix for https://gna.org/bugs/?16555
Martin Renold [Mon, 18 Oct 2010 21:35:12 +0000 (23:35 +0200)]
filehandling: open dialog starts in last save folder
The previous default was to propose the last save folder
for saving, and the current directory for opening.
Now we always propose the folder last saved to.
Martin Renold [Mon, 18 Oct 2010 20:07:50 +0000 (22:07 +0200)]
windows: fix --logfile argument
broken because of unix-specific time format string...
Martin Renold [Mon, 18 Oct 2010 18:19:30 +0000 (20:19 +0200)]
windows: fix recent file list
It used to be impossible to load the recent files from the menu
on Windows, when there were utf-8 characters in the path.
Centralize uri decoding/encoding a bit.
Martin Renold [Mon, 18 Oct 2010 15:14:48 +0000 (17:14 +0200)]
filehandling: unicode and thumbnail/uri fixes
The uri for freedesktop thumbnailing is probably supposed
to be utf-8 encoded; anyway it would not hurt much otherwise.
Martin Renold [Mon, 18 Oct 2010 14:21:41 +0000 (16:21 +0200)]
windows: fix thumbnail preview
"file corrupted by ASCII conversion" - now that was a precise error
message for once. (hidden by the catch-all exception handling)