Commit Graph

738 Commits

Author SHA1 Message Date
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
David Capello
a8fcc8b0af Patch contributed by Trent Gamblin to compile ASE with Mac OS X. 2010-08-13 11:35:43 -03:00
David Capello
d4eae74a53 Make "Tools Configuration" dialog wider when it is needed. 2010-08-13 11:31:52 -03:00
David Capello
4fc1b7f9f8 Show/hide opacity and tolerance parameters depending if the current tool supports these. 2010-08-13 11:11:21 -03:00
David Capello
78366fa545 Spray settings are hidden when we do not have the Spray tool selected. 2010-08-13 11:04:17 -03:00
David Capello
52db5a6bb3 Rename "fuzziness" parameter to "tolerance" in Replace Color effect (to keep consistency with the new floodfill tolerance parameter). 2010-08-13 10:53:42 -03:00
David Capello
8dac6bdcae Update version to 0.8.1. 2010-08-13 10:47:20 -03:00
David Capello
dec4bbc6a4 Add "Tolerance" parameter for some tools like Magic Wand and Paint Bucket (Trent Gamblin idea). 2010-08-13 10:41:13 -03:00
David Capello
3ea39bb211 Fixed RenderEngine::renderSprite() for indexed images with a non-black color in index=0. 2010-08-13 10:06:13 -03:00
David Capello
d7ff4fe60a Fix bug with onion skinning for frame=0 and frame=frames-1. 2010-08-12 18:48:27 -03:00
David Capello
d9790b3834 Move keyboard shortcuts to change pen size from Editor widget to commands.
* Now +/- keys are configurable because they are defined in gui.xml as calls to the new "change_pen" command.
2010-08-12 17:29:06 -03:00
David Capello
b1e96b8e84 Enable eye-dropper in color-button widget when we drag & drop the mouse button. 2010-08-12 16:48:56 -03:00
David Capello
f8bbc19b22 When we are in pixels-movement loop, drop pixels when the user selects other tool (that is not marquee, lasso, or magic wand). 2010-08-12 00:29:51 -03:00
David Capello
9f68fd459d Move get_shift_from_mask() to clipboard_win32 because this function is used for Windows clipboard. 2010-08-12 00:22:18 -03:00
David Capello
7ba3c5df9d Fix warnings in GCC (unused variables, size_t and int comparisons, unhandled enum cases in switch, etc.). 2010-08-11 23:42:03 -03:00
David Capello
a2325233f9 Fix FileItem::insert_child_sorted call in Linux (now it is insertChildSorted()). 2010-08-11 23:36:41 -03:00
David Capello
c3e2c13f26 Added error message in Launcher if it fails. 2010-08-11 23:21:30 -03:00
David Capello
d09c44888d Add timer to menu items to show the sub-menu with some delay. 2010-08-11 22:52:57 -03:00
David Capello
2eb5022f9a Modify comments in jmenu.cpp to C++ style. 2010-08-11 22:13:33 -03:00
David Capello
f8cd32d07b When the editor's current sprite is set we have to drop the pixels (if the user is moving pixels). 2010-08-11 22:04:18 -03:00
David Capello
7b272f86f7 Add button in status bar to change the transparent color of pixels in movement in the current editor.
* Add Editor::setMaskColorForPixelsMovement() method.
* EDITOR_STATE_MOVING_PIXELS is not a particular state because we can move scroll while we are moving pixels.
* Rename EDITOR_STATE_MOVING_SCROLL to EDITOR_STATE_SCROLLING.
* Add StatusBar::show/hideMovePixelsOptions and StatusBar::getTransparentColor().
2010-08-11 21:48:12 -03:00
David Capello
328fab545c Add PixelsMovement::setMaskColor() method to change the mask color of the pixels in movement. 2010-08-11 21:41:02 -03:00
David Capello
2f38b83ce3 Mask color is used in all routines that draw an image (Indexed, RGB, Grayscale). 2010-08-11 21:39:50 -03:00
David Capello
978f39d721 Do not use app_get_statusbar() inside StatusBar::onProcessMessage(). 2010-08-11 21:28:51 -03:00
David Capello
cc65870800 Rename StatusBar::m_commands_box to m_commandsBox. 2010-08-11 21:28:23 -03:00
David Capello
a6a53bd141 Minor changes in statebar.cpp/h comments. 2010-08-11 21:25:04 -03:00
David Capello
c09842abdf Fix selection tools when the cel is in x<0 and/or y<0. 2010-08-11 00:22:30 -03:00
David Capello
58a3447698 Fix problem in Widget::getPreferredSize() introduced in commit 01c811e726.
Min/max sizes are taken into account when getPreferredSize() calls a customized onPreferredSize() method.
2010-08-10 23:43:19 -03:00
David Capello
88305ec84c Move functions to access file system items (FileItem) in a new IFileItem interface. 2010-08-10 23:30:15 -03:00
David Capello
8877278e0c Fix problems generating a key for a directory which contains a file that has the same name as the directory (e.g. C:\file.png\file.png). 2010-08-10 23:10:21 -03:00
David Capello
4679f8a12a Add more PRINTF() in file_system.cpp to debug problems with PIDLs. 2010-08-10 23:08:56 -03:00
David Capello
3dc5b2b485 Add CMakeLists.txt files. 2010-08-10 21:49:32 -03:00
David Capello
37d5ed3c0e Remove warnings about size_t and int comparisons. 2010-08-06 23:04:31 -03:00
David Capello
4e72997a02 Use Allegro's ASSERT() instead of assert(). 2010-08-03 23:33:44 -03:00
David Capello
8d73ad011a Change Palette class size() from size_t to int type (to avoid all kind of problems using "unsigned int" type). 2010-08-03 23:28:14 -03:00
David Capello
642d4220dc Remove warnings about int and size_t comparisons. 2010-08-03 23:02:16 -03:00
David Capello
7ed71af2ee Remove unused local variable in draw_color() function. 2010-08-03 23:01:33 -03:00
David Capello
01c811e726 Add PreferredSizeEvent and Widget::onPreferredSize to replace JM_REQSIZE message.
There are a lot of widgets in C code, so JM_REQSIZE cannot be removed until all widgets are converted to C++ classes.
2010-08-02 22:57:41 -03:00
David Capello
ec7795fc33 Rename Widget::msg_proc to Widget::onProcessMessage. 2010-08-02 21:29:56 -03:00
David Capello
1fe816d2b3 Change layer numbers (0, 1, 2, ...) with letters (A, B, C, ...) in status-bar. 2010-08-02 20:12:40 -03:00
David Capello
ce2f1379a3 Minor aesthetic modifications to state-bar. 2010-08-01 13:16:02 -03:00
David Capello
638b7bad8d Add "palette" argument in RenderEngine::renderImage method and BlenderHelper<> ctor.
With this change we can show two editors with two different sprites with two different palettes at the same time.
2010-08-01 12:24:35 -03:00
David Capello
5f97043abe Added "Editor::State" name to anonymous enum in Editor class. 2010-07-31 13:18:55 -03:00
David Capello
4c1ac855a5 Removed "record_screen" command. 2010-07-31 13:09:23 -03:00
David Capello
a3f18e5aaf Fixed minor problem with background color in Tabs widget's buttons. 2010-07-31 13:08:13 -03:00
David Capello
a0bbb5dfab Renamed locked_sprite_exception to LockedSpriteException. 2010-07-31 12:28:03 -03:00
David Capello
4b2f341af1 Refactored Command class to contain extensions points (virtual methods) as protected members (except clone() method).
+ Renamed Command::load_params -> onLoadParams
+ Renamed Command::enabled -> onEnabled
+ Renamed Command::checked -> onChecked
+ Renamed Command::execute -> onExecute
+ Added public (non-virtual methods) Command::execute/loadParams/isChecked/isEnabled.
2010-07-31 12:23:45 -03:00
David Capello
3c49d0a1ad Modified "error" by "problem" in exceptions. 2010-07-31 12:15:02 -03:00
David Capello
0fdd544524 Tabs widget is double buffered now. 2010-07-26 16:52:40 -03:00
David Capello
100073f986 Added BITMAP argument in jdraw_text() function. 2010-07-26 00:28:24 -03:00
David Capello
6f7660e0d5 Fixed file description in .rc file. 2010-07-26 00:20:39 -03:00
David Capello
017dca6425 Added width and height arguments to ji_set_screen() function. 2010-07-26 00:20:17 -03:00
David Capello
74962ece67 Added possibility to copy the selected pixels with CTRL key. 2010-07-23 23:27:46 -03:00