74 Commits

Author SHA1 Message Date
Yves Rizoud
f7a5b23541 Support for textured toolbars of variable length. Grafx2 repeats the last two columns, so the dither pattern of Modern skin works.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1191 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 16:43:59 +00:00
Yves Rizoud
22b5dc56e5 Loading of Layer icons (unused atm.)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1189 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 23:04:06 +00:00
Yves Rizoud
01ca8d1565 Fix missing remapping on the new UI elements
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1184 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 18:42:16 +00:00
Adrien Destugues
90595e3af6 "Hide" button now toggles the layerbar. Right-click works as before. Enjoy the layerbar !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1179 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 14:11:24 +00:00
Adrien Destugues
6a4ba08343 Support for stacked menubars. May still be incomplete...
TODO : add a way to hide and show them...


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1178 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 10:25:23 +00:00
Adrien Destugues
792abd4866 Some cleanups
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1169 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 17:44:51 +00:00
Adrien Destugues
e6e698c2bd Added vim modelines to all files.
Set them to 2-space indent, I hope this is ok.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1161 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-10 20:08:11 +00:00
Adrien Destugues
1141b0ac20 No longer crash when switching to spare (introduced by recent zoom to cursor change)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1146 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-03 22:40:46 +00:00
Adrien Destugues
a725f0035e Use an int to compute the zoom to cursor instead of a short for better precision and more security (using a short could lead to overflows on big screens/pictures). However there is still a drift, if you zoom in/out a lot of times without moving the mouse you'll notice that the zoom window moves to the down/right corner of the picture. Might be because of the truncate done on the fixed point calculations, but i'm not sure...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1136 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 21:20:42 +00:00
Adrien Destugues
5e3f845176 Center zoom to cursor. May be improved. Testing and reports welcome.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1135 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 19:31:14 +00:00
Yves Rizoud
fffb90dfaf Proper word-wrapping in Verbose_error_message() box.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1133 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 14:28:48 +00:00
Yves Rizoud
036d8008cb (internal) Skins have their own GUI color indices : avoids sharing/restoring MC_ colors
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1121 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 15:46:07 +00:00
Adrien Destugues
2b02ff505f Moved skin preview to the Gfx struct so it is not overwritten if you cancel skin loading.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1115 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 11:19:44 +00:00
Adrien Destugues
a2fd796e59 Proper remapping on skin change in (almost) all cases. I commit this before breaking everything trying to fix the remaining issue...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1114 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 10:44:09 +00:00
Adrien Destugues
f9dc259af5 -Update Doxyfile for newer doxygen version
-Fix some problems with doxygen comments
-Regenerate doxygen documentation


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1111 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 09:36:35 +00:00
Adrien Destugues
b0aa1dcbab Added Ok and Cancel buttons in value requester. Don't do anything in palette screen if user enters strange value, not even a reduction to 256 as this drops unused colors.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1100 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 22:05:14 +00:00
Adrien Destugues
1934425972 Added "Brush Factory", allowing you to run a lua script to generate (or alter, untested yet) a brush.
Added a simple (and ugly) sample script.
This needs updates to the makefile for platforms other than linux.
TODO: add a listbox to select the script you want to run. Do we have a simple API to handle filelists yet ?


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1094 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 15:22:45 +00:00
Adrien Destugues
54a673f10f Fixed some warnings spotted by vbcc on amiga.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1092 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-25 14:36:49 +00:00
Adrien Destugues
111fbbcf33 -Introduce new Requester_window to ask the user to enter a single value
-Reduce colors in the palette screen is now a dropdown for easy access to usual values. "Other" option opens a requester to enter a custom one if needed
-Some cleanup to make things a little more readable
-Build fixes after versionning system revert


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1090 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-24 13:42:59 +00:00
Yves Rizoud
953185205d Internal support for variable-height menu
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1066 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-07 22:27:14 +00:00
Adrien Destugues
cc47a21eca Added support for loading and saving c64 fileformats. Please test it :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1013 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 13:55:51 +00:00
Yves Rizoud
d6bf9413bf Displayable tile grid (Issue 171)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1007 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-26 23:42:55 +00:00
Adrien Destugues
6698b78474 Removed useless debug print.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@950 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-24 08:13:31 +00:00
Adrien Destugues
8b5681eccb -"fixed" warning about vars being used uninitialized (may happen if mouse cursor is totally offscreen or screen resolution is 0 pixel height, that is, never).
-Put some cursor drawing loops in the right order (loop on y, then on x) to make them a little more cache-friendly (and easier to read). I wrote them the wrong way, sorry!
-Some code formatting to 80 columns (not really important, don't worry about it)
-Added a sample neochrome picture to the pic-samples folder.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@923 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-16 07:04:39 +00:00
Yves Rizoud
7fc318a856 Experimental work on mouse locking with shift (issue 193). Consider unstable.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@921 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-15 18:50:25 +00:00
Yves Rizoud
f683d9ff2e GUI skins: The loader now recovers cleanly from errors and displays a message that says what's the problem in the image.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@881 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-21 18:34:57 +00:00
Yves Rizoud
1b2fa69f6a GUi skin elements are allocated on the heap
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@871 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-16 19:43:37 +00:00
Yves Rizoud
33bb5622c0 Fixed bad display and possible crash, when the zoomed area showed more than 512 pixels (requires resolution >1600)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@824 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-01 18:47:08 +00:00
Yves Rizoud
8f9dd6a68e Frame around BGcolor in menu palette: Now handles the case where the same color is FG and BG color
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@797 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 17:18:12 +00:00
Adrien Destugues
402df48b7f Removed some unused functions (kindly pointed out by the great ncc tool)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@796 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 14:47:09 +00:00
Adrien Destugues
fc1786a077 Frame the backcolor with a dark dotted line.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@795 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 14:17:13 +00:00
Yves Rizoud
27506d0649 Removed tab characters
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@789 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-07 23:43:00 +00:00
Adrien Destugues
2fa494f77e Removed postal address of the FSF since it's moving faster thant the website :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@779 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-05 18:19:37 +00:00
Adrien Destugues
780bf3a751 -Fixes issue 152 (color picker cursor)
-Switches FreeBSD to cumulated update method, they shouldn't need macosX tricks for that they are using X11 :)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@767 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-03 13:02:25 +00:00
Yves Rizoud
e5f948076b New: Picture effects screen, resizes / mirrors / rotates image (Issue 73)
New: Distort brush (Issue 34)
New: Pixel scaler "Triple" for 3x3 zoom (Issue 147)
New: Pixel scaler "Quadruple" for 4x4 zoom (Issue 151)
New: Pixel scaler "Wide2" for 4x2 zoom (Issue 148)
New: Pixel scaler "Tall2" for 2x4 zoom (Issue 149)
Fix of very old bug: Resizing the image didn't mark the image 'modified since last save'

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@763 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-02 16:44:06 +00:00
Yves Rizoud
1eeed5aca4 Added some missed translations in source code.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@755 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-21 17:48:26 +00:00
Franck Charlet
7dae508324 - Renamed the "Button" array into "Buttons_Pool" due to a conflict with Apple headers.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@748 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-14 12:19:34 +00:00
Adrien Destugues
19ac89a38f New (hopefully better) method for selecting the colors in smooth and colorize. Tell me if you think it's good.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@742 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-07 17:54:52 +00:00
Yves Rizoud
7d553daf47 Pixel ratio can be set in Resolution screen
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@705 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-30 00:41:45 +00:00
Yves Rizoud
8ff9028eab Implemented palette ordering (issue 112). You can activate it in the secondary palette window (shift-P), it's saved in gfx2.ini.
The skin file has 2 more icons for the arrows (Ilija, grafx2 won't load if you don't update yours)
Updated contextual help for the secondary palette window.
Fixed some typos in code.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@704 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-29 21:58:38 +00:00
Yves Rizoud
eb781b9bd6 Renamed sources files to english words, updated makefile, recomputed dependencies.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@703 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-29 00:12:33 +00:00
Yves Rizoud
663229efb3 Fixed compilation error on Linux (name conflicts, issue 132)
Load/Save: Fixed display of mount points and drives ("Select drive" button)
Started documenting global variables


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@698 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-27 20:14:28 +00:00
Yves Rizoud
efbc978e6f Source code translated to english
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@697 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-27 16:50:21 +00:00
Yves Rizoud
6b4a8f674e Cleaned up the layout of Save/Load screen. (issue 92, issue 84#4)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@696 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-27 02:56:01 +00:00
Yves Rizoud
346d940889 All code ready for mass translation
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@691 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-23 18:08:42 +00:00
Yves Rizoud
f8c7c6730b translations
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@690 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-23 02:33:21 +00:00
Yves Rizoud
f342ff5ff7 More translations (about 500)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@687 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-19 03:18:42 +00:00
Yves Rizoud
4dcdc53409 more translations
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@684 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-18 00:16:29 +00:00
Yves Rizoud
f69cf6b8f7 More manual translations, to make the bulk process easier
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@683 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-17 19:09:43 +00:00
Yves Rizoud
0aa43794cd Code cleanup: typedef all structs.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@671 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-14 01:08:39 +00:00