David Capello
d70dc87253
Do not create a she::System to run UI tests
2015-09-21 16:44:55 -03:00
David Capello
e8abba1b93
Refactor some UI code
...
- Moved ui::GuiSystem from ui/base.h to ui/system.h as ui::UISystem
- Moved some internals to ui::details namespace
- Fix crash of UI tests when ~Manager is called
- Removed ui::init/exit_system() functions
2015-09-01 10:18:47 -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
2c6067f7e4
Update license of app/ module to GPLv2
2015-02-12 12:16:25 -03:00
David Capello
2fa7ee5a77
Fix tests/test.h
2014-06-28 10:49:47 -03:00
David Capello
f4b2b47a2c
Add #pragma once
2014-03-29 19:40:17 -03:00
David Capello
cde54f3682
Change BSD license to MIT in sublibraries and fix headers
2013-08-08 21:01:20 -03:00
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
33e3b5c8d0
Fix unittests compilation for Windows.
2012-08-24 00:49:38 -03:00
David Capello
d46616e71f
Fix problems with Allegro + MacOSX + main().
...
Renamed the application main to app_main() so it's called from "she"
library. It's impossible to avoid dirty main() tricks with Allegro 4.
2012-08-24 00:24:51 -03:00
David Capello
25605d8c06
Fix UI unit tests: they must use/be linked to "she" library.
2012-08-18 17:51:26 -03:00
David Capello
55aca8567c
Move src/gui/ to src/ui/
2012-06-17 22:49:58 -03:00
David Capello
14dd4e7ae2
Add GUI library stuff into "ui" namespace (now ui-lib).
2012-06-17 22:02:54 -03:00
David Capello
5963bb96d9
Fix test.h with the new gui::Manager class.
2012-05-12 23:24:06 -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
2baa342a65
Remove "j" prefix from some files in gui library.
2011-01-30 19:12:10 -03:00
David Capello
bf395fca61
More updates for copyright year to 2011.
2011-01-20 18:32:31 -03:00
David Capello
2e87a9013f
Remove all deprecated jinete and raster samples.
2010-12-08 14:04:51 -03:00
David Capello
39e7fc5fea
Do not use key_shifts anymore.
2010-10-20 00:07:27 -03:00
David Capello
9f58d0378a
Remove algo_dirty() and old 00dirty.cpp test/example.
2010-10-10 21:19:56 -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
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
cb3dd70fb8
Move Jinete library to src/gui directory (future gui-lib).
2010-09-26 15:59:32 -03:00
David Capello
a2696555b0
Remove file_system test.
2010-08-26 22:55:01 -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
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
499658f024
Modify tests/test.h to use gtest.
2010-08-25 16:21:36 -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
cf0f7d9663
Remove jfilesel.[ch] file.
2010-08-22 22:10:43 -03:00
David Capello
4e72997a02
Use Allegro's ASSERT() instead of assert().
2010-08-03 23:33:44 -03:00
David Capello
100073f986
Added BITMAP argument in jdraw_text() function.
2010-07-26 00:28:24 -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
c4ab208e4b
Replaced jwidget_show/hide/is_visible/is_hidden functions with Widget::isVisible/setVisible methods.
2010-07-04 12:03:14 -03:00
David Capello
2a82911b18
Removed asm code.
2010-03-24 14:10:46 -03:00
David Capello
cb97884026
- All tools stuff refactored in various files/components.
...
- Added classes: IToolLoop, Tool, ToolGroup, ToolInk, ToolController, ToolPointShape, ToolIntertwine, ToolBox, etc.
- Added ToolLoopManager.
- Removed old src/modules/tools.cpp.
- Added ISettings and UISettingsImpl, adding the tools settings (onion skinning, grid, tiled mode, etc.).
- Added App::PenSizeBeforeChange, PenSizeAfterChange, CurrentToolChange signals.
- Renamed Context::get_bg/fg_color to getBg/FgColor.
- Refactored Brush class to Pen and added PenType.
- Renamed tiled_t to TiledMode.
- get_config_rect now uses the new Rect class imported from Vaca instead of old jrect.
- Added default_skin.xml to load tool icons.
- Added pen preview in Editor::cursor stuff.
- Added Editor::decorators.
Note: This big patch is from some time ago. I did my best to pre-commit other small changes before this big one.
2010-03-07 17:47:45 -02:00
David Capello
b747ccdaa6
Updated copyright year to 2010
2010-02-01 21:25:40 +00:00
David Capello
96759c9c17
Converted all TRUE/FALSE to C++ true/false
2010-01-30 16:43:13 +00:00
David Capello
77c009de55
Renamed jwidget to Widget.
...
Refactored jwidget_set_text to Widget::setText (same for setFont, setEnabled, etc.).
Created "Frame" class.
Refactored "jwindow_funcname" functions to "Frame::funcname".
Renamed JWidgetPtr to FramePtr.
2010-01-26 00:38:05 +00:00
David Capello
e484553608
Renamed some header guards.
2009-08-17 21:38:00 +00:00
David Capello
c4be9fe5b4
Added Context and UIContext classes.
...
Added CurrentSprite class.
Removed current_sprite global.
Moved all functions of 'sprites' module to Context/UIContext.
2009-06-01 02:59:15 +00:00
David Capello
8e498470d5
Fixed bug #2511762 (thanks to Clayton Enga for the patch).
...
Added the feature #2419098 (David Campo idea).
2009-01-24 00:41:01 +00:00
David Capello
6562d7071a
Now the file-system core routines use jstring (std::string) instead of char*.
...
Overloaded new and delete when MEMLEAK is activated (to use jmalloc and
jfree so memory leaks can be detected).
2008-10-13 21:43:41 +00:00
David Capello
c327a740d7
Added Undoable class.
2008-10-02 02:31:07 +00:00
David Capello
c35c452a80
Converted GfxObj and all the hierarchy of graphics objects to classes.
...
Removed "(void)" -> "()".
2008-10-01 01:27:51 +00:00