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
2602c591eb
Fixed some missed translations. Fixed doxygen (mis)handling of packed structures.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@692 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-23 19:24:16 +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
Adrien Destugues
c324adfff2
Some cleanups to the types of vars.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@689 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-22 17:44:29 +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
ecafeaace1
more code cleanup to prepare translation
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@676 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-15 17:21:16 +00:00
Yves Rizoud
761d62f761
Removed some unneeded dependencies to speed up compile.
...
Code "cleanup": Functions that create a button now return its address.
This helps reduce the number of files that use the globals "Fenetre_Liste_boutons_*"
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@642 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-19 02:10:40 +00:00
Yves Rizoud
108b887f07
(Windows) Free memory is now queried with GlobalMemoryStatus, so GrafX2 can be used on ...DOS with HX extender.
...
The result now tops at 4Gb free physical. Previously it would wrap, causing problems if you were extremely unlucky.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@629 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-14 20:22:01 +00:00
Yves Rizoud
1ed8852d64
Fixed mouse cursor in text input (Readline(), recent problems)
...
Fixed refresh problem when rotating a brush outside of screen limits (bug in 98%)
Fixed Palette window having 'S' as shortcut for 2 functions.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@612 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-08 00:46:42 +00:00
Adrien Destugues
16b405ccfe
Fixes some little bugs with Attendre_fin_de_click.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@597 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 20:30:02 +00:00
Adrien Destugues
5992013629
Fixes buttons being depressed on mouse press
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@594 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 18:29:07 +00:00
Adrien Destugues
f90af64c83
Disables keyboard on "Attendre_fin_de_clic", so we no longer need to empty the event loop.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@593 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 18:21:48 +00:00
Yves Rizoud
920e19b298
Moved save/load functions out of global.h
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@572 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-29 18:23:13 +00:00
Adrien Destugues
91d4dc20b9
Fixes for compiling under freebsd
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@562 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-28 22:12:28 +00:00
Adrien Destugues
c018c13352
First "working" version of new get_input... buggy, but i'm working on it
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@556 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-26 11:07:36 +00:00
Adrien Destugues
f2d8cbbfe1
unfixed Attendre_fin_de_click, works better when buggy in fact :D
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@482 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-15 21:13:40 +00:00
Yves Rizoud
dc4abe6245
Added palette constraint modes: Run the program with command-line option "/rgb <N>" to force RGB components have N levels instead of 256. Ex: /rgb 16 enforces a classic Amiga 4096 color palette, 64 is PC VGA, /rgb 3 is Amstrad CPC...)
...
Added missing messages for /wide and /tall command-line arguments.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@477 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-13 23:48:33 +00:00
Adrien Destugues
53c2936697
Attendre_fin_de_click could return if the event queu was empty while the button was still pressed. Now fixed.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@475 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-12 10:32:36 +00:00
Adrien Destugues
ab5f789fdf
Mostly some cleanups.
...
Also added two experimetal functions, Ouvrir_popup and Fermer_popup, and started to implement a (commented) example popup menu for selecting freehand draw mode.
But it seems there are problem if doing a while(Mouse_K), Mouse_K seems to be reset when the mouse moves, or in some other place. Time to sleep so i'll continue that tomorrow.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@474 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-11 21:59:10 +00:00
Adrien Destugues
f3c63fe785
Smoother joystick to cursor move conversion.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@467 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-06 13:41:57 +00:00
Adrien Destugues
154f5e824a
Fixes all the tabulation problems.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@465 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 22:55:30 +00:00
Adrien Destugues
bdf86b06a8
More joystick fixes and some patches to the makefile (we need a different name for the strip binary when cross compiling). Please update your platform with new STRIP = strip line ...
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@464 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 22:23:57 +00:00
Adrien Destugues
8c0475c43e
Simple joystick support. Should be made configurable and all the gp2x buttons could be used as shortcuts.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@463 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 22:00:23 +00:00
Adrien Destugues
132eabcde5
Some work on a port for the gp2x. Runs up to the splashscreen, but as there is no mouse i have to make the program usable with a joystick.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@462 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 21:12:46 +00:00
Adrien Destugues
5971f4c9e3
MorphOS port, and some tweaks to the config tool to make it look a little bit less ugly. We should probably use a better color palette for it anyways.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@456 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-04 20:41:22 +00:00
Yves Rizoud
159d623f44
Sliders no longer lag the mouse cursor, and the delay stops when you release one mouse button or click the other.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@455 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-04 16:18:29 +00:00
Adrien Destugues
8f66a5905d
Discards mouse moved event if the calculated X and Y did not changed (can happen in zoomed mode because we are dividing the coords)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@453 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-02 11:06:22 +00:00
Pete Gordon
761f872ee2
A couple of changes to let it build again for OS4.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@445 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 10:16:08 +00:00
Adrien Destugues
0eb18b7619
SkyOS port. Thanks again Begasus :)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@437 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-29 17:48:02 +00:00
Adrien Destugues
30184d82e9
Some more fixes for AROS build.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@436 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-29 17:15:56 +00:00
Adrien Destugues
9bc64e8adb
Fixes the crash with the gradrect. But there are still some screen corruption (and missing lines) problems...
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@429 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 17:25:20 +00:00
Adrien Destugues
79aca71830
Fixes issue #78 and some more makefile tuning (ziprelease names the archives according to the platform)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@427 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 15:10:35 +00:00
Yves Rizoud
4c48c74a96
Fixed minor issues of r419 when keyboard-drawing in zoom area: "Escaping" the zoom window, and going up at the top warps to the bottom.
...
Also, even with mouse,when you draw downwards into the menu, the cursor no longer blinks into the top line of the menu.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@420 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 03:12:21 +00:00
Adrien Destugues
a2324e2cb1
Cursor moves faster when using the keyboard shortcuts over the zoomed screen. Feels more natural to me
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@419 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-26 21:46:17 +00:00
Adrien Destugues
2825350f17
We missed a flush_update there...
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@399 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-17 20:52:39 +00:00
Adrien Destugues
90b3f9b1a1
Finished updating the includes for graph.c split. Now we have :
...
-Graph.c : everything related to drawing.
-Brush.c : everything related to brushes (displaying, erasing, capturing, and effects)
-Windows.c : windows and menu drawing functions
Some functions were also moved to divers.c.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@396 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-16 22:14:08 +00:00
Adrien Destugues
c004c90d90
Splitted graph.c in multiple files. Compiles but there is a lot of warnings about declarations. I'm cleaning it up but i wanted to commit that before starting to get conflicts
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@395 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-16 22:02:22 +00:00
Adrien Destugues
87d887e240
One more small speedup. The coordinates were always printed twice in the menubar. Also added a missing refresh when using the pipette and the color replace tools. Now you get a preview of the color under the cursor in the menubar.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@381 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 15:17:47 +00:00
Adrien Destugues
6c8bbfbc56
Now idles when there is nothing to do. Much less CPUtime use, but the spray is slowed down. We need to improve the handling of Get_input in Gestion_principale.
...
Get_input now returns 1 if something happened, and 0 if not. So we can chose what to do depending on that.
We should try not to wait if the operation needs to be asynchronous, but there is no way to know that for now, and it may be quite complex to determine (i think the shade effect can be asynchronous for example, so it'll affect pretty much all operations).
The other solution would be to drop events to react to the more recent ones. It would look smoother but the mouse will do strange things.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@378 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-14 11:17:15 +00:00
Yves Rizoud
d2300cc2c1
Support for "tall pixel" mode (Each pixel is 1x2). Run the program with "/tall" argument to test.
...
The following tools don't take the ratio into account;
Circle,
Grad rectangle,
Brush rotation,
Resizable brushes (diamond, squares, circles...)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@376 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-13 16:20:37 +00:00
Adrien Destugues
2033f2dfb4
Some optimisations to the text drawing (Print_general) unfinished, breaks the OEM special chars for now.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@375 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-10 11:53:56 +00:00
Yves Rizoud
09ba984aa6
On all screens that display a palette, the grey columns are no longer "dead", you can
...
click them to pick the color to its right.
Added help text for HSL mode in Palette, and Grad rectangle
Fixed display of colored rectangles in Palette screen (issue 64)
Fixed more missing refreshes in the Palette screen
Fixed wrong shortcuts in Palette screen
Removed an obsolete message ("Sensibilite Souris") and dead code
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@370 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-04 21:44:59 +00:00
Yves Rizoud
14accb544b
Palette now uses RGB components in the full 0-255 range instead of 0-63.
...
All palette functions can be used in HSL color space too (multi-select, etc).
Fixed some more missing refreshes in Palette screen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@368 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-03 01:03:32 +00:00
Adrien Destugues
3422eeff46
Patch from begasus to allow building under haiku and beos. The program is crashing when you launch it (segmentation violation).
...
I'm not sure the way to get the program directory we use is ok for beos, but the official way of doing that is using C++ code.
Maybe it's time to switch to some more unix way to store the config files...
This should also fix watcom build (very untested as i'm using mingw to cross compile windows builds now)
Also added begasus to the credits screen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@325 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-11-05 18:59:55 +00:00
Yves Rizoud
b11d9e3ff9
Fix tiny compilation problem with mingw-gcc 3.4.2, and standardized tabs
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@324 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-11-03 22:42:48 +00:00
Adrien Destugues
8dd0113697
Fixed the key release handling. Avoid to mess with global variables... or the shortcut keys will trigger the actions twice (both when pressed and released)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@323 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-11-03 17:03:30 +00:00
Adrien Destugues
2e163fb5af
Fixed drawing with the keyboard. Space key release wasn't taken into account. Now you can plot a single pixel.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@322 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-11-03 15:59:18 +00:00