1666 Commits

Author SHA1 Message Date
Yves Rizoud
54b4269103 Effects screen : remove underlines on 'X' buttons (Underline is supposed to be used on letter whose key acticvates the button)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2123 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-06-28 15:44:12 +00:00
Yves Rizoud
f9eb1bfe7b Fix crash in contourfill when grid is visible - part of ticket #20. Also update credits and homepage address
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2122 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-06-25 22:26:49 +00:00
Yves Rizoud
0df4275ad1 Update help screen of Palette window, to take into account latest Sort option (changeset 2104), and many other things which weren't current anyway.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2121 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-06-24 23:03:24 +00:00
Yves Rizoud
6d75b08fbc Duplicate layer : Add keyboard shortcut, update help file for button
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2120 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-06-24 21:23:07 +00:00
Adrien Destugues
cc05157ae9 Fix install when datadir is not named "share".
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2119 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-04-29 20:32:54 +00:00
Adrien Destugues
d164d1d4cc Don't free the palette, it is owned by libpng.
Fixes #21.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2118 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-04-24 18:24:39 +00:00
Adrien Destugues
705584a9d7 Fix some doxygen warnings.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2117 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-04-04 09:08:11 +00:00
Adrien Destugues
11fa950ea7 Layer preview: add a 1px border around the previews.
Make it easier to tell the layers apart.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2116 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-07 09:33:34 +00:00
Adrien Destugues
e187ade14c Effects: forgot some changes when rearranging buttons
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2115 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-07 08:34:18 +00:00
Adrien Destugues
78b5ab394b Popup menu to switch between drawing modes more easily
Fixes https://code.google.com/p/grafx2/issues/detail?id=510


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2113 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 14:33:06 +00:00
Adrien Destugues
3332b43330 Save and load support for GIMP palettes (.GPL files)
* Implemented by 00ai99
* Fixes https://code.google.com/p/grafx2/issues/detail?id=518


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2112 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 13:45:01 +00:00
Adrien Destugues
32defb8897 fix "save as" not showing the current filename
* We attempted to set this but it was overwritten when enumerating the files.
* This makes it easier to save the file in the same dir, with another name.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2111 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 10:12:18 +00:00
Adrien Destugues
fa80a10093 Implement "save palette" button
* Actually a shortcut to "save picture" with preset PAL format and different window title.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2110 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 10:08:34 +00:00
Adrien Destugues
d9f2cd2d40 Remove no-op function Palette_loaded.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2109 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 09:28:23 +00:00
Adrien Destugues
26458456a8 Move the "show grid" setting to the effects window.
Fixes https://code.google.com/p/grafx2/issues/detail?id=315


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2108 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 16:07:39 +00:00
Adrien Destugues
0f64436854 Effects: group them by type
* On the left: "feedback" effects, with the checkbox to enable feedback.
* On the right: "grid" effects, which use the grid settings.
* On the middle: everything else.

"Grid" effect is renamed to "Snap".


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2107 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 15:55:57 +00:00
Adrien Destugues
e517902a4b Rework palette screen to be better usable
* RGB sliders are twice as high as before (128 pixels)
* Preview area is larger
* Add save/load buttons (not implemented yet)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2106 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 14:11:11 +00:00
Adrien Destugues
810c457483 Change look of window title bars.
* Now they have a white background.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2105 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 14:09:12 +00:00
Adrien Destugues
5a8faa6d42 Implement "sort by histogram" in palette.
* Most used colors are moved to the start of the palette
* Stable sorting is used, so unused colors at the end of the palette are not moved at all


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2104 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 08:57:34 +00:00
Adrien Destugues
78fcc648c3 Partial merge of the SDL2 branch into trunk
* Mainly get the cleanup of window drawing functions.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2102 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 13:44:18 +00:00
Adrien Destugues
f0ebf223a8 Doxyfile: enable QUIET
* Too much messages hides the useful warnings.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2101 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 10:28:00 +00:00
Adrien Destugues
85e91c223f Change generation directory for Doxygen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2100 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 10:03:25 +00:00
Adrien Destugues
c6b9eba7eb Right click on the "add layer" button creates a new layer with a copy of the current layer contents
Suggested by ilkke.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2092 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 21:42:16 +00:00
Adrien Destugues
9d00b93a5f Improve menu palette looks
* Only show the "transparent" marker in layer mode when there is more than one layer
* Use a single pixel separation between colors (bypass menu_factor).


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2090 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 21:32:51 +00:00
Adrien Destugues
02a32b75bb Don't free() stack-allocated buffer.
Probably a leftover of use of a Linux extension of getcwd. Currently we use a
buffer on the stack and we must not free it.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2089 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 20:56:36 +00:00
Adrien Destugues
9c1c219348 Make the transparent color more visible with a light/dark grey highlight.
It is often confusing which color is transparent in the color palette. Mark it
with a small pattern to make it easier to see.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2088 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 19:34:48 +00:00
Adrien Destugues
6a225eb4ed Fix Haiku build.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2087 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 19:33:41 +00:00
Yves Rizoud
67d3636512 Fix Lua function matchcolor2() inaccuracies caused by integer arithmetics
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2082 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-15 22:20:47 +00:00
Adrien Destugues
61c8dca353 Add a port to the GCW Zero, contributed by David Knight.
Untested since I don't have the hardware.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-10 20:13:57 +00:00
Adrien Destugues
5e26436c48 Fix mismatched parameters.
Bug caught by the Debian team on GrafX2 2.3.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2072 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-05-16 10:15:07 +00:00
Yves Rizoud
1248100ae9 Integrate path fix from Android port (tnanks a lot Pelya)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2071 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-03-30 17:31:05 +00:00
Yves Rizoud
c821dbebf4 Modify the RGB scale formula
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2070 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-02-15 17:34:43 +00:00
Adrien Destugues
e19026860d Update the URLs in several place to stop pointing to googlecode.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2069 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-01-13 12:36:22 +00:00
Yves Rizoud
cac2d00dfb Add support for saving/loading cycling colors in formats PI1 PC1. Also probably fix an error in PI1 footer (Issue 535)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2067 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-08-30 17:21:40 +00:00
Yves Rizoud
4d6a7c95c5 Correct version label for trunk : 2.5wip
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2066 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-08-30 03:44:53 +00:00
Yves Rizoud
567cf087b0 Makefile fix for Windows. Looks like I didnt build libPNG exactly the same way
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2065 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-08-30 03:37:23 +00:00
Yves Rizoud
365cc8d50b Fix issue 539 : Freeze when palette is 'vertical' and number of rows is not a power of two
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2064 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-08-30 00:05:47 +00:00
Yves Rizoud
01543b7a8d Fix issue 535 : PC1 files created by Grafx2 can't be reloaded by Degas Elite
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2063 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-08-29 22:08:22 +00:00
Adrien Destugues
be1cffc1fb Add some useful scripts :
- ThomsonConstraints is yet another constraint checker
 - FontConvert extracts chars from a font as binary data


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2060 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-03-03 16:18:14 +00:00
Yves Rizoud
65eb4a54eb Lua bindings for sliders (not in GUI library yet)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2057 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-12 00:48:56 +00:00
Yves Rizoud
495245b17d Lua: gui library supports textboxes, for numbers or strings.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2056 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-10 20:14:08 +00:00
Yves Rizoud
ea72bfe13f Lua: work-in-progress library (made in Lua) for object-oriented GUI. Already implements windows, buttons, and dynamic labels.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2055 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-08 01:34:03 +00:00
Yves Rizoud
e499aa4767 Test dialog for the Lua Gui functions.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2054 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-07 00:57:22 +00:00
Yves Rizoud
24433a104c Lua: Added beginning of a Gui toolkit: windowopen, windowclose, windowdodialog, windowbutton, windowrepeatbutton, windowprint, windowinput, windowreadline. The latter two are unfinished and subject to change
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2053 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-07 00:56:01 +00:00
Yves Rizoud
37007e7a7b Lua: Running a script no longer systematically take an history step ('Undo/Redo'). This backup is now only performed on the first time that an image-modifying function is called, and only on layers/frames that need it. Also fix up selectlayer() a little.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2052 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-07 00:13:11 +00:00
Adrien Destugues
ee83b59464 Having colors equal to themselves in the XOR table is not a good idea.
Reintroduce a bit of scrambling again.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2051 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-03 18:15:15 +00:00
Adrien Destugues
72d8f5a49d Apply patch from #305 and #525. Use FontConfig on linux to get true type fonts instead of
the X11 functions.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2050 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-02 08:45:33 +00:00
Adrien Destugues
1dce247656 Improve XOR table computation.
Set the initial state to XOR[i]=i, so that on very low color images, the algorithm will try 
to swap around the first colors.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2049 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-02 08:38:08 +00:00
Adrien Destugues
878c926ce4 Fix issue 185 (XOR highlight) :
* Use a simple optimization algorithm to compute a good set of XOR color pairs
 * Algorothm is not very optimized (complexity is up to n^3). In practize, it stabilizes after 2 to 3 rounds of swapping colors
 * Use this color table for all XOR effects
 * Setting for grid color is now removed


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2048 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-01-06 12:46:46 +00:00
Adrien Destugues
65194af002 Use some macro magic to avoid repeating the list of graphic primitives for each pixel renderer.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2047 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-01-06 11:23:24 +00:00