163 Commits

Author SHA1 Message Date
David Capello
3c60136631 Move PI constant to base/pi.h file 2015-06-16 15:04:00 -03:00
David Capello
2d61412c68 Fix several compiler problems with clang on Mac OS X 10.10 SDK 2015-05-29 10:10:07 -03:00
David Capello
4940b2bf3e Fix FSTREAM_PATH() for Unix-like systems 2015-05-27 20:03:43 -03:00
David Capello
ec26dd7ee9 Merge branch 'fix-memory-leaks' 2015-05-20 17:11:34 -03:00
David Capello
c04f4976fb Delete slots in signal destructors 2015-05-20 16:24:58 -03:00
David Capello
621c4bb05d Link with dbghelp when memory-leak detection is enabled 2015-05-20 16:24:26 -03:00
David Capello
cf8cd97cb6 Use new FSTREAM_PATH() macro to open fstreams 2015-05-20 15:34:36 -03:00
David Capello
a4e7df6037 Fix loading/saving .gpl files inside folders with Unicode chars on Windows 2015-05-20 15:33:34 -03:00
Aurélien Gâteau
817b134f31 Add support for open_folder on Linux
Removed base::launcher::support_open_folder() as it would always return
true.
2015-05-15 22:37:58 +02:00
David Capello
96102e0e8c Remove lines that can fail in fs_tests 2015-05-11 11:33:20 -03:00
David Capello
c63ccf914f Keep last update information so we can show it again (fix #639)
Now the last update information retrieved from the HTTP request, is saved
in the configuration file so we can reuse it when the program is restarted.
Changes:
* Add support to compare two semvers
* Add new_version/new_url options to preferences
* Remove convert_to for base::Version (now this class is constructed from
  strings only)
2015-04-24 12:45:01 -03:00
David Capello
b534f955ec Merge branch 'anticrash' 2015-04-09 13:51:39 -03:00
David Capello
1edb21ca4e Implement base::list_files() for Unix-like platforms 2015-04-09 13:46:52 -03:00
David Capello
98f2aca5ca Implement base::is_process_running() for Unix-like platforms 2015-04-09 13:46:37 -03:00
David Capello
c76a47b33f Add base::concurrent_queue::empty() member function 2015-04-06 11:52:04 -03:00
David Capello
5c6860e7ac Change the way crash sessions are stored on disk
Changes:
* Move classes related to data recovery into app/crash/ directory/namespace
* Rename app::Backup to app::crash::Session
* Rename app::DataRecovery to app::crash::DataRecovery
* Add base::list_files()
* Add base::get_current_process_id() and base::is_process_running()
* Remove base::TempDir
* Save one session for each running process
* Remove sessions that are empty when the program starts
2015-04-05 18:51:43 -03:00
David Capello
1fe8e97465 Avoid storing a refcounter in SharedPtr if we're pointing to nullptr 2015-04-04 14:54:21 -03:00
David Capello
22c3c4f20e Remove implicit SharedPtr conversion to T* 2015-04-02 20:42:43 -03:00
David Capello
3d63e0e1b4 Move SharedPtr to base namespace 2015-04-01 12:35:18 -03:00
David Capello
0350ac4bbe Initial work on Skia backend (WIP) 2015-03-16 15:05:13 -03:00
David Capello
a67c7bb1b2 Merge pull request #609 from aisamanra/master
Small fixes needed to build on clang/gcc
2015-03-16 10:19:49 -03:00
David Capello
35eddf1f08 Add missing "base/base.h" to use uint32_t (fix undo_tests compilation) 2015-03-16 09:13:54 -03:00
Getty
85c569b2f1 Small fixes needed to build on Linux: missing #includes and shadowed templates 2015-03-14 17:28:02 -07:00
David Capello
30a90c88e9 Ignore slash type and case to compare paths in RecentFiles 2015-03-11 17:48:28 -03:00
David Capello
4588579e25 Redraw editor when onionskin preferences are changed
We have added a Before/AfterChange signals to preference Sections.
2015-03-10 19:05:20 -03:00
David Capello
6d12deafe6 Use ObjectId to identify FrameTags in the Timeline/frame tags commands 2015-03-10 17:04:55 -03:00
David Capello
e09cdd67cb Add support to compile with VS2013 x64 2015-03-06 17:01:08 -03:00
David Capello
b23194dfae Fix several warnings in MSVC, clang, and gcc 2015-03-05 15:19:00 -03:00
David Capello
7da6f3e857 Minor changes to some #include header files 2015-03-05 12:40:47 -03:00
David Capello
ad856b2a55 Use std:: when necessary, and std::numeric_limits instead of INT_MAX 2015-03-04 21:35:11 -03:00
David Capello
e822ddba4c Fix compilation problems with time structures on Linux 2015-03-04 19:42:48 -03:00
David Capello
f0ab007144 Include required base/time.h to use Time class in fs_unix.h 2015-03-04 19:33:54 -03:00
David Capello
f3309ec52b Fix compilation problem on Linux (fix #604) 2015-03-04 19:32:39 -03:00
David Capello
057532e7d7 Cache RSS news file 2015-03-04 19:24:37 -03:00
David Capello
6c826a6281 Support floating point number of days to wait for next "check updates" 2015-02-28 11:43:11 -03:00
David Capello
f3974002d5 Fix int <-> double <-> float casts
It looks like allegro includes several implicit conversions between
float and double.
2015-02-14 22:37:56 -03:00
David Capello
7785199899 Fix platform specific flags
* Replace ALLEGRO_WINDOWS and WIN32 with _WIN32
* Replace ALLEGRO_MACOSX with __APPLE__
2015-02-12 12:46:56 -03:00
David Capello
16da2512b4 Remove dependency with Allegro library in config.h file
* Created base::write24bits() function (and detect endianness with a
  special base/config.h.cmakein)
* Use _WIN32 instead of ALLEGRO_WINDOWS
* Use _DEBUG instead of DEBUGMODE
* Replaced AL_CONST with "const" in bmp_format.cpp
* Replace stricmp() with base::utf8_icmp()
2015-02-12 10:55:58 -03:00
David Capello
bf3c0890e9 Merge branch '1.0' 2015-01-25 23:10:51 -03:00
David Capello
72e2040c58 Add --filename-format option (fix #519) 2015-01-25 22:36:32 -03:00
David Capello
5e2cefe212 Merge branch '1.0'
Conflicts:
	src/app/commands/cmd_sprite_size.cpp
	src/app/document_exporter.cpp
2014-11-07 19:30:39 -03:00
David Capello
9d2fd2498b Fix formatted output of ProgramOptions when one option has multilines 2014-11-07 01:10:51 -03:00
David Capello
ce962f4999 Add more command line options to export or convert sprites
Added --save-as, --scale, --split-layers, and --import-layer command line
options.
2014-11-06 21:04:32 -03:00
David Capello
94a642cd36 Change the way ProgramOptions store specified args
Now we can parse command line arguments sequentially in the same order they
were specified.
2014-11-06 09:42:09 -03:00
David Capello
86a3b8c66e Merge pull request #497 from Mailaender/patch-2
Fix error: 'O_BINARY' was not declared in this scope (close #461)
2014-11-02 13:40:26 -03:00
David Capello
d796256eef Don't use Allegro's for_each_file API
Replace for_each_file() calls with <dirent.h> POSIX API
2014-10-20 01:20:08 -03:00
Matthias Mailänder
9997ad9fcb always declare O_BINARY
closes #461
2014-09-28 06:38:18 +02:00
David Capello
432dd33281 Add base::utf8_icmp() 2014-09-21 16:55:54 -03:00
David Capello
e07f1f1668 FileSelector: Default directory is user home/docs folder 2014-09-21 16:49:59 -03:00
David Capello
ff49b50047 Add base_assert/trace functions 2014-09-20 23:51:56 -03:00