64 Commits

Author SHA1 Message Date
David Capello
c88f9b172b Refactor: Move app files to src/app subdirectory inside app namespace
- Add HAVE_CONFIG_H wrapper to #include "config.h"
- Removed widgets namespace (it's in app now)
- Move some functions from src/file/file.h to src/base/cfile.h
- Move Vector2d to base library
- Rename MenuItem2 to AppMenuItem
2013-08-05 21:20:19 -03:00
David Capello
9b8e87da10 Update copyright year to 2013 2013-01-27 12:13:13 -03:00
David Capello
4ea2c69dae Fix compilation error in the dummy implementation of SystemConsole. 2012-09-26 17:26:41 -03:00
David Capello
0496f38ed3 Fix a typo in all files distributed under BSD-like and Allegro licenses
Thanks to Tobias Hansen.
2012-09-23 23:24:43 -03:00
David Capello
6b4591c5fd Add shell mode to execute scripts interactively.
- Added Shell class.
- Added base::SystemConsole to adjust stdin/stdout on Windows platform.
2012-09-08 20:10:48 -03:00
David Capello
6051387211 Add value name to ProgramOptions::Option::requiresValue() member function
This value name is displayed in operator<<(ostream, ProgramOptions&)
when a option requires a value.
2012-09-05 21:12:04 -03:00
David Capello
8962c6dbe7 Add ProgramOptions class. 2012-09-03 00:41:17 -03:00
David Capello
4e7103d6d1 Fix BindAdapter1_fun member function arguments. 2012-08-18 22:52:56 -03:00
David Capello
c757ff7231 Minor error in fs_unix.h with std::runtime_error symbol. 2012-08-16 12:10:30 -03:00
David Capello
dc9a2ced94 Add file-system functions in base. 2012-08-16 11:57:25 -03:00
David Capello
8dd42cc653 Fix problems with printf-like functions using %d with size_t fields (instead of %lu). 2012-07-15 02:02:29 -03:00
David Capello
6f91238264 Add support to load/save GIMP palettes (.gpl files). Issue #112. 2012-06-16 17:50:52 -03:00
David Capello
94ea65ff4d Fix problem compiling base/thread.cpp in Mac OS X. 2012-04-07 19:30:46 -03:00
David Capello
cb3fc67c0d Include CheckCSourceCompiles module to use CHECK_C_SOURCE_COMPILES. 2012-03-22 15:12:26 -03:00
David Capello
25884b0fb7 Add base::Chrono class. 2012-03-22 15:04:36 -03:00
David Capello
fffc32548a Implement base::this_thread::yield & sleep_for(). 2012-03-22 15:04:08 -03:00
David Capello
e89d8a6231 Minor fix to remove_from_container's comment. 2012-03-11 22:15:01 -03:00
David Capello
98fabee086 Add compatibility to load the recent list of paths from the recent list of files from old aseprite.ini files. 2012-02-11 19:09:50 -03:00
David Capello
6bcf559b35 Now the recent list of paths can contain 16 paths different from the recent list of files.
- Added RecentItems class in base library.
2012-02-11 19:04:52 -03:00
David Capello
b97fb14e0a Add GotoFrame command (like issue #6, but it does not use the status bar).
+ Replaced ScopedPtr defined in gui.h with UniquePtr.
+ Fix problem in keycombo_get_string() converting keyboard shortcuts
  with "Alt" modifier.
2012-01-09 20:28:04 -03:00
David Capello
b8fbaad7fb Replace Allegro Sprite Editor or ASE with ASEPRITE in all files. 2012-01-06 01:12:57 -03:00
David Capello
02a9d50524 Update copyright year to 2012. 2012-01-06 00:52:11 -03:00
David Capello
ed6090bc36 Convert all newline to LF style and remove all tabs.
This was done to avoid mixed files (CRLF & LF) in the repository.
2012-01-05 19:45:03 -03:00
David Capello
18a0a2a8c7 Overwrite memory dump file if it already exists (win32 impl). 2011-11-13 18:08:56 -03:00
David Capello
af26dcaee4 Fix bug in SharedPtr<>::reset() where the pointer wasn't set to NULL when refcount > 1 2011-11-13 17:52:26 -03:00
David Capello
103211509e Use assert() instead of ASSERT() in base library (to avoid dependency with Allegro). 2011-11-13 17:47:48 -03:00
David Capello
f767c06761 Add MemoryDump class in base library to create mini-memory dumps on win32 platform. 2011-10-29 12:30:49 -03:00
David Capello
7c02a016c8 Add Sha1 class to base-lib. 2011-07-10 00:24:19 -03:00
David Capello
68fde07334 Add base::Version class. 2011-06-04 10:43:24 -03:00
David Capello
daf7abfa68 Use <iosfwd> instead of <iostream> in base/serialization.h. 2011-03-26 15:09:44 -03:00
David Capello
bc86d0afd7 Add OVERRIDE macro as wrapper for MSVC "override" keyword. 2011-03-25 14:22:53 -03:00
David Capello
be955de1da Fix definition of read8/write8 in base::serialization namespace. 2011-03-25 14:21:55 -03:00
David Capello
6e60d3200d Add Document class, to remove app specific properties from Sprite.
+ Moved some properties from Sprite to Document: lock/unlock/mutex,
  filename, isModified flag, undo history, mask boundaries, file
  format options, preferred editor settings, extra cel.
+ A Context now has an active document (instead of an active sprite).
+ Renamed all sprite wrappers to be document wrappers (as the mutex is
  in the Document now).
+ Modifications to SharedPtr<> to be more like C++0x shared_ptr<>.
2011-03-22 21:11:25 -03:00
David Capello
42dbe7d026 Add reset(pointer,deleter_type) member function to UniquePtr. 2011-03-20 17:58:19 -03:00
David Capello
cbf5c721f4 Add UniquePtr class. 2011-03-17 23:28:33 -03:00
David Capello
36e605bdf2 Move jmalloc/jfree to base/ library as base_malloc/free (remove new/new0/renew macros). 2011-01-23 19:19:18 -03:00
David Capello
45855b88d3 Move "AseException" to "base::Exception" class.
+ Created XmlException for tinyxml parsing errors.
+ Moved functionality of AseException::show() to Console::showException().
2011-01-20 23:33:57 -03:00
David Capello
bf395fca61 More updates for copyright year to 2011. 2011-01-20 18:32:31 -03:00
David Capello
d6eb20ef7e Update copyright year to 2011. 2011-01-18 20:49:53 -03:00
David Capello
c5ccc5110e Add "Deleter" template parameter to SharedPtr<> class to customize the destruction of T pointer. 2011-01-16 09:41:00 -03:00
David Capello
73178cd452 Replace "tests/test.h" to <gtest/gtest.h> (as various unittests are for independent libraries). 2010-12-11 10:03:23 -03:00
David Capello
86c9fe0ee9 Include <iterator> in path.cpp, because it uses std::back_inserter. 2010-12-11 10:02:13 -03:00
David Capello
7f425c8acb signal.h needs remove_from_container.h. 2010-11-28 15:40:35 -03:00
David Capello
2e0c961bef Add serialization.cpp to base lib. 2010-11-08 20:14:53 -03:00
David Capello
67e67022fa Fix base/thread.h header guard name. 2010-11-06 21:22:25 -03:00
David Capello
baae56c7d6 Remove thread::id type (to avoid using pthread_t as an unsigned int, which is an opaque pointer really). 2010-10-17 00:41:29 -03:00
David Capello
3aad83b353 Add return statement to thread:🆔:operator=(). 2010-10-02 20:23:42 -03:00
David Capello
3f7333b9ed Fix pthread implementation of base::thread class (problems joining threads, initializing m_id field, etc.). 2010-10-02 20:20:59 -03:00
David Capello
b66371f95a Move thread class to base lib (the new thread class has a C++0x-like api). 2010-10-02 19:00:01 -03:00
David Capello
9ed888b82b Fix compilation errors with gcc in shared_ptr_unittest.cpp. 2010-09-30 16:31:59 -03:00