Commit Graph

35 Commits

Author SHA1 Message Date
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
David Capello
d19e7875e1 Fix compilation errors copying SharedPtr<> of different types in gcc. 2010-09-30 16:31:45 -03:00
David Capello
48d0878c7e Include correct header files (gcc compiler detects these kind of problems). 2010-09-30 16:21:15 -03:00
David Capello
109d6a072f Remove jstring class replacing it with the new base::string and new functions to manipulate strings. 2010-09-30 15:34:12 -03:00
David Capello
b8ddd30a0d Move Vaca classes to base and gui libraries.
+ Remove Vaca::Referenceable class and move Vaca::SharedPtr<> to base/shared_ptr.h (now shared pointers can point to any type).
+ Move Vaca::Component/Event/Property/PreferredSizeEvent to gui/component.cpp.
2010-09-29 17:14:11 -03:00
David Capello
7643b87cc3 Force DISABLE_COPYING() to be in private: class section. 2010-09-29 16:54:25 -03:00
David Capello
818e286c84 Remove Vaca::Application class. Move Vaca::String class to src/base/string.h (and split_string and convert_to algorithms to src/base/). 2010-09-28 15:36:03 -03:00
David Capello
a3616cec54 Fix mem_utils.cpp compilation error with gcc. 2010-09-26 16:10:21 -03:00
David Capello
cd6b8d3d23 Move Signal/Slot/Bind stuff to base-lib. 2010-09-25 17:20:59 -03:00
David Capello
51fbcae936 Move Mutex class from Vaca to src/base. 2010-09-23 23:33:39 -03:00
David Capello
5e253d4a76 Modify get_pretty_memory_size() to return a std::string. 2010-09-23 20:28:38 -03:00
David Capello
c9dfa8fc03 Separate "base" code under terms of the BSD license. 2010-09-23 20:28:16 -03:00
David Capello
97fadb8eb5 Add BASE_ prefix in mem_utils.h header guards. 2010-09-18 01:14:45 -03:00
David Capello
f1e9814334 Move get_errno_string() to src/base/errno_string. 2010-09-18 01:03:56 -03:00
David Capello
c821cd3924 Move mem_utils.cpp in base/ directory. 2010-09-18 00:03:06 -03:00