From 3290dfb7d543c3ffe58b9b41f080dc66e0e84094 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 10 Feb 2008 19:06:03 +0000 Subject: [PATCH] Added thumbnails, tooltips, and now the file routines don't use PACKFILE (just FILE from stdio). --- ChangeLog | 42 ++++ INSTALL.txt | 17 ++ NEWS.txt | 7 +- TODO.txt | 10 +- config.h | 2 +- data/jids/filesel.jid | 8 +- data/jids/newspr.jid | 10 +- data/tips/tips.en | 33 +-- makefile.cfg | 3 +- makefile.gcc | 6 +- makefile.lst | 6 +- makefile.mgw | 5 + src/core/app.c | 3 +- src/core/app.h | 2 +- src/core/cfg.c | 2 +- src/core/cfg.h | 2 +- src/core/file_system.c | 34 ++- src/core/file_system.h | 6 +- src/core/modules.c | 2 +- src/core/modules.h | 2 +- src/dialogs/filesel.c | 30 ++- src/effect/convmatr.c | 6 +- src/file/ase_format.c | 164 ++------------- src/file/bmp_format.c | 230 +++++++++++---------- src/file/file.c | 206 +++++++++++++++---- src/file/file.h | 20 +- src/file/fli_format.c | 62 +++++- src/file/gif/format.c | 399 ++++++++++++++++++------------------ src/file/gif/lzw.c | 26 +-- src/file/gif/lzw.h | 6 +- src/file/ico_format.c | 75 ++++--- src/file/jpeg_format.c | 2 + src/file/pcx_format.c | 163 +++++++-------- src/file/png_format.c | 3 + src/file/tga_format.c | 176 ++++++++-------- src/main.c | 10 +- src/modules/gfx.c | 18 ++ src/modules/gfx.h | 4 + src/modules/gui.c | 127 ++++++++++-- src/modules/gui.h | 17 +- src/modules/rootmenu.c | 20 +- src/modules/sprites.c | 7 +- src/raster/imgrgb.c | 62 +++--- src/raster/layer.c | 3 +- src/raster/undo.c | 8 +- src/test/test.h | 2 +- src/test/test_errno.c | 55 +++++ src/test/test_file_system.c | 2 +- src/util/col_file.c | 46 +++-- src/widgets/editor/editor.c | 21 +- src/widgets/fileview.c | 309 +++++++++++++++++++++++++++- src/widgets/fileview.h | 1 + 52 files changed, 1574 insertions(+), 908 deletions(-) create mode 100644 src/test/test_errno.c diff --git a/ChangeLog b/ChangeLog index d790a6df8..c2ab46aed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,45 @@ +2008-02-10 David A. Capello + + * src/widgets/fileview.c: Finished with thumbnails generation. + + * src/commands/cmd_open_file.c (monitor_free): Added to join the + thread. This fix bugs when you close the program and there're + files loading: all threads are joined. + + * src/modules/gui.c (remove_gui_monitor): Added. + (add_gui_monitor): Now it receives a 'free' routine too (to + destroy the 'data' of the monitor). + + * src/test/test_errno.c: Added a test to check errno + thread-safety. + +2008-02-09 David A. Capello + + * src/jinete/jmanager.c (jmanager_remove_msg_filter): + * src/raster/undo.c (chunk_set_mask_invert): Fixed more memory leaks. + +2008-02-08 David A. Capello + + * src/modules/sprites.c (exit_module_sprites): + * src/core/core.c (core_exit): + * src/widgets/colbar.c (color_bar_msg_proc): + * src/raster/layer.c (layer_free): + * src/jinete/jaccel.c (jaccel_free): + * src/widgets/tabs.c (calculate_hot): + * src/core/dirs.c (dirs_cat_dirs): Fixed more memory leaks + (the leaks in exit routines aren't too critical, but the + other yes). + + * src/jinete/jmanager.c (jmanager_generate_messages): Fixed a + memory leak when replacing the value of 'widgets' field of a + JMessage. + + * src/jinete/jlist.c (jlist_free): Fixed a big memory leak (for + every linked list JList in the program, the 'list->end' field was + never freed). + + * src/core/file_system.c (struct FileItem): Added thumbnail field. + 2008-02-04 David A. Capello * src/dialogs/filesel.c: Done (navigation history added, and diff --git a/INSTALL.txt b/INSTALL.txt index 8a81721af..25ca1890c 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -35,3 +35,20 @@ UNINSTALLATION =================================== Run "make uninstall". + + +=================================== +SUBVERSION +=================================== + + If you're download ASE from the Subversion repository, after + updating I recommend you to do: + + ~/ase-trunk/$ make clean + ~/ase-trunk/$ ./fix.sh + ~/ase-trunk/$ make + + Also, you can make dependencies of the files (if you are trying to + hack the ASE source code): + + ~/ase-trunk/$ sh misc/deps.sh diff --git a/NEWS.txt b/NEWS.txt index dcd6bd168..88d9aaff5 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -7,9 +7,12 @@ NEWS + Added support to load and save PNG files (through 'libpng'). + Replaced the "List" menu with the tabs selector. -+ Better file selector. ++ Better file selector with thumbnails. + + In Windows: now you can navigate through Desktop, My Documents, + My Computer, etc. ++ Optimized the loading/saving operations (using threads). + Restructured all the menus (more user friendly options). - - Temporaly removed a lot of complex functionality: + - Temporaly removed a lot of complex functionality: Mask-Repository (but you can use .msk files yet), Draw-Text, Layer-Sets and Linked-Cels. + New XML format for the menus. diff --git a/TODO.txt b/TODO.txt index e3985cd76..4bd2183f3 100644 --- a/TODO.txt +++ b/TODO.txt @@ -3,8 +3,13 @@ High priority work - search for TODO; - rename jcombox.c to jcombobox.c +- remove the jfilesel.c +- remove USE_PRECOMPILED_HEADER +- fix copyright years (2001-2008) - fix a bug in the film editor when move the separator (panel) outside the screen (to left or right) +- 'jfile.c' should use 'jxml.c', because there are duplicate code: + two (precarious) XML parsers. - the user_data of hook_signal should be void*. - ver por el nuevo load_font de Allegro. - complete palette operations, and palette editor (it needs a slider @@ -60,14 +65,11 @@ Wish-list position from the starting point of movement; + make drawing the 'marching-ants-rectangle' a prioritaire thing to draw (when move it). -- for Jinete: - + add columns handle to list-boxes; - + add icons handle to all widgets (mainly button, list-items, and labels); - + add tree widget; Low priority stuff ------------------ +- add more unit-tests. - test routines: load/save_pic_file, load/save_msk_file, load/save_col_file. - fix the fli reader (both Allegro and Gfli): when a frame hasn't diff --git a/config.h b/config.h index beeb6c5a7..a2062d8c8 100644 --- a/config.h +++ b/config.h @@ -27,7 +27,7 @@ #define PACKAGE "ase" #define VERSION "0.6" #define WEBSITE "http://www.aseprite.org/" -#define BUGREPORT "ase-help@lists.sourceforge.net" +#define BUGREPORT "aseprite@googlegroups.com" #define COPYRIGHT "Copyright (C) 2001-2008 David A. Capello" #define PRINTF verbose_printf diff --git a/data/jids/filesel.jid b/data/jids/filesel.jid index 3ec97d9ba..17c485bbc 100644 --- a/data/jids/filesel.jid +++ b/data/jids/filesel.jid @@ -7,10 +7,10 @@ -