846 Commits

Author SHA1 Message Date
Adrien Destugues
7efea41231 Be more subtle: load immediately if the user pressed enter.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1139 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 22:05:08 +00:00
Adrien Destugues
d41b612931 File selector no longer exits event loop when you enter a filename and exit the textfield.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1138 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 22:00:14 +00:00
Adrien Destugues
1406e74f56 Load and save palettes using JASC "standard" format. Still load old palettes from DOS Grafx2, but now we handle full color :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1137 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 21:55:54 +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
373e39abe8 Fix a mouse cursor that appeared on palette screen when opening palette
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1130 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 00:17:48 +00:00
Yves Rizoud
1582d9e6d9 Contextual help for skin window
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1129 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 23:57:32 +00:00
Yves Rizoud
1f7da7c525 Removed deprecated settings 'Mouse correction factor' (issue 23)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1128 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 23:32:32 +00:00
Yves Rizoud
b2feccc039 Restored changes in main() that I overwrote in merge
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1127 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 18:11:13 +00:00
Adrien Destugues
ba36fa675f -Moved test script to "scripts" directory
-Allow to add other scripts to this dir and run them too.
--Cette ligne, et les suivantes ci-dessous, seront ignorées--

A    trunk/scripts
A  + trunk/scripts/test.lua
D    trunk/test.lua
M    trunk/buttons.c
M    trunk/factory.c


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1125 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 17:33:04 +00:00
Yves Rizoud
b021a52fc3 Skins: Fix preview area after loading invalid file
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1124 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 17:16:48 +00:00
Yves Rizoud
e7f34fefe4 Skin preview previews gui colors
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1123 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 17:07:56 +00:00
Adrien Destugues
fb3404e2ba Partial patch to allow loading spare page from command line.
It's not working yet but does not introduce regressions instead.
Cleaned up version of patch proposed on the issue tracker.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1122 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 16:42:08 +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
1a2ac678e0 Splitted loadsave.c :
- loadsave.c : common things
- fileformats.c : format that make a full backup of any picture without palette loss
- miscfileformats.c : formats that are not saving all the picture (palette only, pixels only, constrained palette)

I was not very precise in the splitting and we may rethink the flags that mark if a picture is fully saved or not... it was not updated after we decided to allow the full palette range 0.255 instead of 0.63, so most of the atari format were marked as saving everything.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1120 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 15:20:44 +00:00
Yves Rizoud
7105566433 Compilation fixes: A typo, and a cast double->int
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1119 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 13:50:55 +00:00
Adrien Destugues
8114cae1e9 Added (r,g,b)=getcolor(c) to lua binding.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1118 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 13:01:56 +00:00
Adrien Destugues
49cce9643e Load the favorite colors from the skin, not the ini file. We may want to override them, but for now just change the skin's palette.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1116 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 12:10: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
d4b730cb4d Remap the preview of the skin and use the old colors to draw the list in order to keep the skin changer looking good even if skins use different MC_ indexes.
Thingsd are still messed up after loading a skin but I can't find out why this happens and remap does not seem to help.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1110 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 21:56:56 +00:00
Adrien Destugues
b2a32b93c6 Added version of the classic skin with remapped colors for testing the skin switcher
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1109 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 19:23:24 +00:00
Adrien Destugues
0661e59e1c Preview skins.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1108 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 16:58:37 +00:00
Adrien Destugues
f4defe7e75 Moved "show limits" and "separate colors" to skin dialog
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1107 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 15:19:59 +00:00
Adrien Destugues
7af6b92e3e Reset quicksearch when entering a directory.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1106 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 11:51:07 +00:00
Adrien Destugues
56a4c704fe Added lua binding to select the color brush.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1104 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 10:45:52 +00:00
Adrien Destugues
9b45134596 Apply patch from issue 223 and some more tweaks as later suggested in the comments.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1103 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 10:26:44 +00:00
Yves Rizoud
0ae98c2e56 Makefile fixes for lua packaging
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1102 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 23:35:59 +00:00
Yves Rizoud
0694f69c9c trunk: Lua binding works on Windows.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1101 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 22:50:34 +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
2a67c9bdce Refactored (yes, already) the lua API to allow also generating pictures directly.
Updated doc, and added sample script.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1099 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 17:27:49 +00:00
Adrien Destugues
06892015ea added lua binding to set a color in the palette
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1097 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 15:52:21 +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
4d20be0053 Fixed some more amiga vbcc warnings
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1093 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-27 10:28:32 +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
42ac69177f Added a color counter to the palette screen. It needs the setting to autocount colors to be enabled and probably display garbage when it's disabled. Is this setting really useful ? Do someone dsable it ?
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1091 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-24 14:06:12 +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
19decb6d4c Trunk: Restored working behavior for version and pversion
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1088 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 23:00:58 +00:00
Yves Rizoud
2a8546eaef trunk: Windows' .ICO icons can be read too. Removed jpeg.dll, not used.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1086 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 22:28:38 +00:00
Yves Rizoud
db130fc60d trunk: Implemented file loading of JPEG, TGA, TIFF and a few others, by using SDL_Image builtin loader. Added visible 'hourglass' cursor during 24bit color reduction.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1085 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 22:12:56 +00:00
Yves Rizoud
9ef0e6b74c (trunk) File save/load only shows common file extensions by default. (choice 'all' in filter, different from '*.*')
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1083 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 01:52:07 +00:00
Yves Rizoud
9e68266ff8 Merged release into trunk
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1081 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-20 19:02:54 +00:00
Yves Rizoud
4afff2ca9b Release: Fix issue 217: high CPU usage while idle
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/release@1080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-20 18:46:37 +00:00
Yves Rizoud
8cf9b530a8 Release: Fix issue 217: high CPU usage while idle
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1079 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-20 18:43:34 +00:00
Yves Rizoud
d9e95ae921 (trunk) Tell svn to ignore changes in gfx2.cfg
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1071 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-12 23:39:49 +00:00
Yves Rizoud
9e866aec5c (trunk) Added shortcuts to more layers tools. Remove gfx2.cfg from versioning, so anybody can use his own (get http://grafx2.googlecode.com/svn-history/r1036/trunk/gfx2.cfg to recover latest version in your workspace)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1070 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-12 23:32:40 +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
Yves Rizoud
6f8223b09b trunk: Continued the handling of multiple effect on single shortcuts. Multiple window-open work (one after an other), and the restriction on shortcuts that are disabled while drawing is now applied correctly.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1063 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-06 23:24:00 +00:00