Commit Graph

9664 Commits

Author SHA1 Message Date
David Capello
71415febe8 image_impl.h does not include allegro.h anymore 2010-03-09 00:43:49 -02:00
David Capello
c8b84732cd Split _ji_set_font_of_all_widgets() in _ji_reinit_theme_in_all_widgets(). 2010-03-09 00:43:28 -02:00
David Capello
719374718d More jguiscale() usage. 2010-03-09 00:42:31 -02:00
David Capello
4369afa2c5 Added jwidget_set_border(JWidget,int) function. 2010-03-09 00:41:25 -02:00
David Capello
28b14cfc0a Gui is regenerated and font is reloaded when the jguiscale() changes. 2010-03-08 23:35:32 -02:00
David Capello
3e1f0e1a63 Now the default font is loaded from the skin (skins/default_skin_font.pcx). 2010-03-08 23:34:48 -02:00
David Capello
f0cb918717 Now ji_font_load_bmp() uses ji_apply_guiscale() to resize the bitmap font. 2010-03-08 22:58:46 -02:00
David Capello
5af4ed0d55 Renamed apply_gui_scale() to ji_apply_guiscale(). 2010-03-08 22:58:10 -02:00
David Capello
6e97287339 Removed conditions about JI_INITIALIZED in SkinneableTheme::init_widget(). 2010-03-08 21:37:53 -02:00
David Capello
9535b085fe Removed guiscale() from ASE and added jguiscale() in Jinete.
With this change we can apply jguiscale() in some places like jalert and jfiles.
2010-03-08 00:42:41 -02:00
David Capello
f1128336f4 The ConfigureScreen now shows the current screen resolution if it is not in the combo box. 2010-03-07 23:48:01 -02:00
David Capello
0a7136a0b4 Added underline_height in jdraw_text() function.
Removed jdraw_widget_text() (deprecated).
2010-03-07 23:16:20 -02:00
David Capello
ed3428345f Replaced hline() with rectfill() in jrectexclude(). A lot of hlines() directly in the screen are really slow. 2010-03-07 22:49:37 -02: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
ef51fd59ea Added Ctrl+Shift+Z to redo. 2010-03-07 16:48:21 -02:00
David Capello
1fdd045099 Fixed a little syntax error. 2010-03-07 16:41:40 -02:00
David Capello
470ae96c3b Fixed some new-line issues. 2010-03-07 16:39:58 -02:00
David Capello
324435760d Modified ase_exception creation with printf style. 2010-03-07 16:38:14 -02:00
David Capello
961b2911f5 Old JI_SIGNAL_WINDOW_CLOSE signal is not generated anymore (it was replaced with Frame::Close signal member). 2010-03-07 16:37:30 -02:00
David Capello
ca2e3f7bed Renamed Command_precondition_exception class to CommandPreconditionException. 2010-03-07 16:21:09 -02:00
David Capello
5d55358ffb Renamed Context::m_current_sprite to m_currentSprite. 2010-03-07 16:18:38 -02:00
David Capello
77a54b7d34 Modified ase_exception creation with printf style. 2010-03-07 16:16:10 -02:00
David Capello
61316bedab Added libraries and flags in VC2008 to compile with static+debug mode. 2010-03-07 16:13:33 -02:00
David Capello
6867f2c6a5 Added PopupWindow widget. 2010-03-07 16:10:48 -02:00
David Capello
7a3b1e3369 Modified an ase_exception call using printf style call. 2010-03-07 15:28:01 -02:00
David Capello
d0514884de Fixed a problem in gui_feedback() where the CurrentSpriteReader could be locked. 2010-03-07 15:25:47 -02:00
David Capello
2ed2ce9545 Modified an ase_exception call using printf style call. 2010-03-07 15:22:14 -02:00
David Capello
5edc5696ca Modified some ase_exception creations using PACKAGE name. 2010-03-07 15:20:50 -02:00
David Capello
65cb9c3517 Added constraint of guiscale() value depending height of the screen. 2010-03-07 15:18:39 -02:00
David Capello
6ebf5966c3 Fixed a bug which pressed/released messages were generated incorrectly for mouse buttons pressed/released in groups. 2010-03-07 15:16:15 -02:00
David Capello
1f29b67364 Applied guiscale() to some skinneable widgets. 2010-03-07 14:21:24 -02:00
David Capello
df59edc3ce Modified "int tiled" to "bool tiled" in "dirty_new". 2010-03-07 12:17:11 -02:00
David Capello
156e3adeb3 Added 'extras' to Sprite to draw extra-stuff that is not in the Sprite (it will be useful to draw preview of the brush). 2010-03-07 12:14:25 -02:00
David Capello
e7b99eda29 Modified C *_free calls to C++ delete. 2010-03-07 12:06:37 -02:00
David Capello
1f3dcc77ed Renamed palette.png to default_skin_palette.png. 2010-03-07 12:05:01 -02:00
David Capello
7da47af726 Renamed sheet.png to defaut_skin_sheet.png. Added some temporary icons in the sheet for future tools. 2010-03-07 12:03:47 -02:00
David Capello
862ae6078c Modified C comments to C++. 2010-03-07 11:58:10 -02:00
David Capello
2a78fdca92 Applied guiscale() to loaded skin. 2010-03-07 11:57:34 -02:00
David Capello
dc19778ecc Added SkinneableTheme::apply_gui_scale() member function. 2010-03-07 11:55:24 -02:00
David Capello
2d3cfe116b Removed try{}catch in DEBUGMODE to get the exception in the debugger. 2010-03-07 11:49:56 -02:00
David Capello
bb689258ff Removed jmanager_dispatch_messages() from jwidget_scroll() because it is not necessary and it give us problems with the editor scroll movement. 2010-03-07 11:47:40 -02:00
David Capello
12f762b47f Added jpoint.cpp in the COMMON_SOURCES list. 2010-03-07 11:44:38 -02:00
David Capello
32f3987c64 Resort includes. 2010-03-07 11:42:00 -02:00
David Capello
0b357e068b Added Mask::contains_point member function. 2010-03-07 11:40:54 -02:00
David Capello
36f281a2b7 Limited scroll movement (related to feature request #2874441). 2010-03-07 11:39:18 -02:00
David Capello
b8a39cf8db Now clipboard::cut() deselects the mask. 2010-03-01 23:03:33 -02:00
David Capello
4f4d863a0f Now ClearCommand deselects the mask. 2010-03-01 23:02:32 -02:00
David Capello
cc7fd95559 Added Undoable::deselect_mask() member function. 2010-03-01 23:01:43 -02:00
David Capello
c4afb1a236 Renamed get_sprite() to getSprite() in Layer class and Undoable class. 2010-03-01 22:59:16 -02:00
David Capello
898f43ff65 Need to include render.h to get RenderEngine class definition. 2010-03-01 01:08:12 -02:00