Commit Graph

790 Commits

Author SHA1 Message Date
David Capello
911fe71c0e Fix bug introduced in commit e885fcd3a1: leave one palette after Sprite::resetPalettes(). 2010-10-02 22:58:50 -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
2a73d6ffb9 Fix order of libraries so we can link loadpng with alleg library with gcc on Windows. 2010-10-02 18:33:06 -03:00
David Capello
eb1815d44e Fix error passing base::string in sprintf() like routine. 2010-10-02 16:37:44 -03:00
David Capello
36d532df21 Rename src/gui/jwidget.cpp|h to src/gui/widget.cpp|h. 2010-10-02 11:19:09 -03:00
David Capello
8f6ae77a2e Rename src/gui/jlabel.cpp|h to src/gui/label.cpp|h. 2010-10-02 11:04:10 -03:00
David Capello
3721064c8b Rename src/gui/jbutton.cpp|h to src/gui/button.cpp|h. 2010-10-02 10:59:14 -03:00
David Capello
7f96084c88 Rename src/gui/jwindow.cpp|h to src/gui/frame.cpp|h. 2010-10-02 10:47:58 -03:00
David Capello
b7609686de Add resources_win32.rc in aseprite target on Windows. 2010-10-01 00:23:13 -03:00
David Capello
ffd0f17879 Move all undo_*() functions as members of Undo class. 2010-09-30 23:55:35 -03:00
David Capello
9e419c418f Refactor Stock class to contains methods instead of stock_*() functions. 2010-09-30 22:38:26 -03:00
David Capello
2f8d9a0d1a Remove JList from UndoStream class. 2010-09-30 22:18:30 -03:00
David Capello
e885fcd3a1 Remove JLists from Sprite class. 2010-09-30 21:38:01 -03:00
David Capello
38a99e2740 Simplify usage of allegro_c_flags setting CMAKE_C_FLAGS variable. 2010-09-30 17:43:00 -03:00
David Capello
485582d816 Add some comments in src/CMakeLists.txt file. 2010-09-30 17:42:06 -03:00
David Capello
3163a5ac98 Add support to link ASE with the shared versions of libjpeg, libpng, and zlib. 2010-09-30 17:04:32 -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
c4d04d7bf6 Fix compilation problems in core/file_system.cpp (in Unix like platforms). 2010-09-30 16:23:54 -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
d09bd2a6ee Fix code in src/CMakeLists.txt to check return value of allegro-config. 2010-09-30 16:17:08 -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
9f000741a3 Remove WIN32 attribute for tests (so we can see colored output in win cmd console). 2010-09-30 13:22:10 -03:00
David Capello
3d5fd0f07c Remove Vaca source code completely (replace NonCopyable class with DISABLE_COPYING macro). 2010-09-29 17:50:46 -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
5ccddbc8bc Now the gui-lib is another package compiled with its own CMakeLists.txt. 2010-09-27 19:18:17 -03:00
David Capello
fd0639feac Fix typo in gfx/point.cpp. 2010-09-27 18:56:38 -03:00
David Capello
22ad9058af Add allegro-config calls to compile ASE on Linux. 2010-09-26 18:58:53 -03:00
David Capello
aa397c4fbf Add dirExists() member function in FileSystemModule. 2010-09-26 18:26:38 -03:00
David Capello
a3616cec54 Fix mem_utils.cpp compilation error with gcc. 2010-09-26 16:10:21 -03:00
David Capello
cb3dd70fb8 Move Jinete library to src/gui directory (future gui-lib). 2010-09-26 15:59:32 -03:00
David Capello
6c8f395977 Remove old C hash implementation. 2010-09-25 18:07:52 -03:00
David Capello
cd6b8d3d23 Move Signal/Slot/Bind stuff to base-lib. 2010-09-25 17:20:59 -03:00
David Capello
28d09af036 Move Point/Size/Rect classes to a new gfx-lib. 2010-09-25 16:22:32 -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
3ec3bbbef8 Refactor undo_clear_redo/set_label/get_next_*_label -> Undo::clearRedo/etc. 2010-09-19 17:44:06 -03:00
David Capello
9924e0fb43 Remove PRINTF() usage in raster/undo.cpp (so raster does not depends on LoggerModule). 2010-09-19 16:26:15 -03:00
David Capello
85766ea915 Refactor undo_do_undo/redo -> Undo::doUndo/Redo. 2010-09-19 16:25:18 -03:00
David Capello
b3546cda94 Refactor undo_can_undo/redo to Undo::canUndo/Redo. 2010-09-19 15:42:40 -03:00
David Capello
12ce788d11 Remove undo_new/free/enable/disable/is_enabled/is_disabled, add Undo::is/setEnabled. 2010-09-19 15:23:15 -03:00
David Capello
752ffa6444 Remove dependency to modules/palettes.h in sprite.cpp. 2010-09-19 15:09:39 -03:00
David Capello
1094328cc7 Add needed forward declaration of Palette in undo.h 2010-09-19 11:29:27 -03:00
David Capello
3246e00db4 Camel-case for Undoable class. 2010-09-19 10:33:07 -03:00
David Capello
198bd648e5 Refactor Layer::add/remove/get_cel to add/remove/getCel. 2010-09-19 00:26:33 -03:00
David Capello
5faa31517e Refactor Layer::configure_as_background -> configureAsBackground(). 2010-09-19 00:17:21 -03:00
David Capello
4d21dd0b5a Refactor Layer::get_cel_begin/end to getCelBegin/End, and get_cels to getCels. 2010-09-19 00:15:44 -03:00
David Capello
4874f455f1 Refactor Layer::get/set_name to Layer::get/setName. 2010-09-19 00:03:32 -03:00
David Capello
e810b1452b Rename "fuzziness" to "tolerance" in maskcol.cpp file. 2010-09-18 23:57:57 -03:00
David Capello
46e847ef80 Remove internationalization stuff.
- Remove "_" macro.
- Remove src/intl/ directory.
2010-09-18 23:54:56 -03:00
David Capello
e2b8a8be1d Remove user_printf() function. 2010-09-18 23:33:32 -03:00
David Capello
2fc785553d Modify GfxObj class to keep its members private. Public members come from old C code where "GfxObj"s were "struct"s.
- Add GfxObj::getId and GfxObj::getType.
- GfxObj type enumeration now is called GfxObjType.
2010-09-18 20:49:13 -03:00
David Capello
5cd11d525d Remove dead code in dirty.cpp. 2010-09-18 19:43:45 -03:00
David Capello
1677cbadaf Rename member functions of Job class. 2010-09-18 19:22:45 -03:00
David Capello
851365f7bb Rename App::get_toolbox() to App::getToolBox(). 2010-09-18 17:49:07 -03:00
David Capello
ec13504c06 Remove core/core.h-cpp.
- App class contains the running mode (isGui() flag).
- LoggerModule contains the verbose flag.
- Remove is_interactive().
2010-09-18 17:36:21 -03:00
David Capello
ca521d3f50 Remove util/rectscr.cpp (as 8bpp is not supported, we cannot record the screen in FLI format anymore). 2010-09-18 01:24:09 -03:00
David Capello
8efbb2e9f0 Modify app/color.h header guard prefix from CORE_ to APP_. 2010-09-18 01:20:41 -03:00
David Capello
97fadb8eb5 Add BASE_ prefix in mem_utils.h header guards. 2010-09-18 01:14:45 -03:00
David Capello
9a9e40395f Move LoggerModule to log.cpp. 2010-09-18 01:14:03 -03:00
David Capello
f1e9814334 Move get_errno_string() to src/base/errno_string. 2010-09-18 01:03:56 -03:00
David Capello
0674fbe069 Move "src/core/job.[ch]" to src/job.[ch]. 2010-09-18 00:39:10 -03:00
David Capello
1f88934542 Remove "static" member functions from RecentFiles. Now App has a RecentFiles member and it must be accessed through the App singleton. 2010-09-18 00:28:24 -03:00
David Capello
99adf98c0f Remove jexception, leave ase_exception only. 2010-09-18 00:12:53 -03:00
David Capello
c821cd3924 Move mem_utils.cpp in base/ directory. 2010-09-18 00:03:06 -03:00
David Capello
7a099e23f9 Add some comments to GfxMode / CurrentGfxModeGuard. 2010-09-17 23:28:05 -03:00
David Capello
955ec830cc Minor change (move location of GLOB_RECURSE defition in src/CMakeLists.txt) 2010-09-14 19:52:02 -03:00
David Capello
a2696555b0 Remove file_system test. 2010-08-26 22:55:01 -03:00
David Capello
7fa4b000c0 Add jstring_unittest.cpp. 2010-08-26 22:45:27 -03:00
David Capello
87a25ea68f Move tests/test_jgrid.cpp to jinete/jgrid_unittest.cpp. 2010-08-26 22:44:30 -03:00
David Capello
e70c78a9a5 Move tests/test_jlist.cpp to jinete/jlist_unittest.cpp. 2010-08-26 22:43:46 -03:00
David Capello
c4017a24e0 Fix test.h for GUI tests. Jinete class instance is needed. 2010-08-26 22:42:53 -03:00
David Capello
75689ef990 Fix bug #3051174 (reported by Trent Gamblin): Loading two or more times gui.xml file. 2010-08-26 21:40:45 -03:00
David Capello
eb056ab358 Add custom targets in CMakeLists to run unit-tests. 2010-08-25 20:13:51 -03:00
David Capello
e8eeb97da9 Move src/tests/test_errno.cpp to src/errno_unittest.cpp. 2010-08-25 17:52:42 -03:00
David Capello
04f92262c5 Include jinete/jinete.h for GUI tests. 2010-08-25 17:51:55 -03:00
David Capello
463c188014 Use GLOB_RECURSE instead of GLOB to get all *_unittest.cpp files from the src/ directory. 2010-08-25 17:27:45 -03:00
David Capello
848a4b9101 Add rule to compile _unittest.cpp files. 2010-08-25 17:11:52 -03:00
David Capello
18606f02bf Add aseprite-library (this library will be used for unit tests, is all aseprite code without the main() routine defined). 2010-08-25 17:11:28 -03:00
David Capello
499658f024 Modify tests/test.h to use gtest. 2010-08-25 16:21:36 -03:00
David Capello
435cebb80e Move common definitions in cflags to the main CMakeLists.txt file. 2010-08-25 16:20:30 -03:00
David Capello
d6ac296390 Move src/tests/test_color.cpp to src/app/color_unittest.cpp. 2010-08-25 15:57:29 -03:00
David Capello
3f9e947ea9 Convert color_t type to Color class.
+ Add color_utils namespace and move useful routines for colors right there.
+ Add test_color.cpp.
2010-08-25 00:26:37 -03:00
David Capello
733ee5b705 Rename colbut.h to color_button.h. 2010-08-23 18:25:57 -03:00
David Capello
0765be0306 Rename colsel.h to color_selector.h. 2010-08-23 18:23:30 -03:00
David Capello
8727390b2d Rename colbar.h to color_bar.h. 2010-08-23 18:11:47 -03:00
David Capello
a476820958 Remove old unused graphics. 2010-08-23 17:57:53 -03:00
David Capello
f87cf2a4bc Move jinete/jfile.cpp to xml_widgets.cpp. 2010-08-23 17:52:17 -03:00
David Capello
a59cce0932 Added an assert in debug mode to check duplicate FileItems in file_system module. 2010-08-23 17:41:52 -03:00
David Capello
7d47093acc Convert jbutton widget to ButtonBase, Button, CheckBox, and RadioButton C++ classes.
+ Add ButtonBase::Click signal.
+ Button does not close the window by default (you have to configure this action manually when Click signal is triggered).
+ Add "closewindow" attribute to <button> widget in XML files.
+ Move "bevels" to SkinProperty.
+ Convert colorbutton widget in ColorButton C++ class.
2010-08-23 17:41:19 -03:00
David Capello
cf0f7d9663 Remove jfilesel.[ch] file. 2010-08-22 22:10:43 -03:00
David Capello
aa0229f950 Fix "paste" command when we paste in an empty spot (layer/frame without a created cel). 2010-08-22 20:51:29 -03:00
David Capello
327f627e60 Added some asserts to check Editor::m_pixelsMovement. 2010-08-17 20:44:40 -03:00
David Capello
cea1e15d91 New version 0.8.2 in progress. 2010-08-17 20:27:33 -03:00
David Capello
46ff10bede Fix background color when we render indexed images.
To render an indexed image we start with color 0 (RGBA) only if there is not a background layer, in other case, when the background exists we clear with the first palette color entry (index=0).
This patch fix commit 3ea39bb211.
2010-08-13 11:49:52 -03:00