914 Commits

Author SHA1 Message Date
Yves Rizoud
60d85deb41 Makefile fixes for packaging
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1194 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 19:40:37 +00:00
Yves Rizoud
883653480b Working layer bar. Champagne!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1193 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 19:24:04 +00:00
Yves Rizoud
353f5dbbd2 Display of layer icons with auto-size (not updated automatically yet, and no action on click)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1192 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 18:18:21 +00:00
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
Adrien Destugues
528a6f1b53 -Update help for hide button
-Make F10 key show/hide the whole menu instead of just the layerbar.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1188 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 20:20:51 +00:00
Adrien Destugues
ac8b8748a7 Fixup help following buttons reordering.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1187 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 20:16:23 +00:00
Yves Rizoud
b558980cce Missing files
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1186 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 19:26:06 +00:00
Yves Rizoud
04f7c56179 Some layer functions plugged to layer menu bar
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1185 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 19:19:05 +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
Yves Rizoud
33ef5cfde2 Fix on loading all formats 'misc': Marking some formats 'Backup_done=0' didn't work because this flag was specialized for importing and exporting palettes (a modification of the image), without updating the image on screen or remembering the file name.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1183 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 17:16:46 +00:00
Adrien Destugues
17d3e62398 Added layer toolbar buttons
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1182 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 16:54:43 +00:00
Adrien Destugues
7d1f8cd8da Fix a drawing bug when selecting/deselecting buttons in the menu.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1181 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 16:32:48 +00:00
Yves Rizoud
a24557ff98 Fix compilation warnings in file formats
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1180 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 15:36:52 +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
Yves Rizoud
3008540998 Remapped skins for the black color to be zero. This is better on startup because default image is filled with 0, == the BG color. Better for grabbing brushes.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1173 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 20:05:27 +00:00
Adrien Destugues
8923011906 Split buttons.c as it was > 5000 lines. It's still big however, but I had no other idea to split it porperly. Let's see that later.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1172 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 19:27:57 +00:00
Adrien Destugues
2dd1b85fc4 Split operatio.c as it was more than 5000 lines long, making it annoying to find your way inside.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1171 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 19:06:48 +00:00
Adrien Destugues
eb917ce0ed Fixed stupid bug : it was not possible to rotate a brush 180° from the brush transform menu if hte height was even !!?
Also use proper NAN value if it exists when rotating a brush (we use some floats there and it's better to do it this way)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1170 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 18:17:42 +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
7283412da2 Fix a memory leak spotted by cppcheck.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1168 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 15:39:53 +00:00
Adrien Destugues
395c225463 -Disabled latex generation for doxygen (was weongly enabled because of previous cleanup)
-Removed version numbers and date from doxygen html footer so the files are no longer all modified when regenerating


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1166 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 14:22:58 +00:00
Adrien Destugues
3de1d9f883 -Some doxygening
-Removed useless parts of the doxyfile and enabled DOT to generate callgraph and includegraphs. Use \callgraph or \callergraph where you think it'd be nice to have.
-Replaced Num2str with a call to sprintf. Less code is better !


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1165 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 13:51:54 +00:00
Yves Rizoud
c3e087fa7e Merged back the layers branch into trunk. Common version now!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1163 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 00:03:07 +00:00
Yves Rizoud
c150be2664 [layers] merged in the recent changes from trunk
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1162 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-10 20:35:09 +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
2239adbd58 Free memory properly when saving a cpc .scr.
Also allow to save a brush in this format (in "screen" mode).


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1160 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-08 13:22:00 +00:00
Yves Rizoud
45f04503c6 Fix libraw2crtc for compiling on strict C99
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1159 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-07 21:29:20 +00:00
Adrien Destugues
74f723c3b0 Added save function for amstrad cpc scr images. No load available yet, and the code was pretty quickly hacked. Thanks to CloudStrife for providing libraw2crtc.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1158 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-07 16:45:22 +00:00
Adrien Destugues
98306a8f21 Linking with -lm is needed on linux to support bold, an experimental linker from the binutils.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1154 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-06 16:22:38 +00:00
Adrien Destugues
045d8714ad Removed leftover debug.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1150 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-04 18:58:09 +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
b6d6fe19b6 Add option to show the grid in grid menu (not only snapping)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1144 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-02 20:15:23 +00:00
Adrien Destugues
2ba2b314d5 Fix build.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1143 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-02 20:01:40 +00:00
Adrien Destugues
db8111373d English comments and notes.
I found some more possible improvements for performance...


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1142 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-02 19:27:12 +00:00
Yves Rizoud
110a7bdd58 [layers] continuted work on no-layer option. No more crash.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1141 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-02 00:10:59 +00:00
Yves Rizoud
3ede1f3a56 [layers] NOLAYERS option at compile time. Unfinished.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1140 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 23:22:43 +00:00
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
119e679e32 [layers] Adapted lua bindings to draw/read in current layer (untested)
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1134 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 14:31:36 +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
ad4b417afb [layers] Merged changes from trunk (up-to-date now)
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1132 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 01:18:29 +00:00
Yves Rizoud
f38fd068a2 [layers] Merged changes from trunk
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1131 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 01:05:21 +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