David Capello
100073f986
Added BITMAP argument in jdraw_text() function.
2010-07-26 00:28:24 -03:00
David Capello
74962ece67
Added possibility to copy the selected pixels with CTRL key.
2010-07-23 23:27:46 -03:00
David Capello
51fdc7184e
Fixed compilation errors in gcc 3.4.
2010-07-23 20:01:52 -03:00
David Capello
c1a98a8b06
Added animations to Tabs widget when adding and removing tabs, and scrolling with mouse wheel.
2010-07-20 00:59:52 -03:00
David Capello
ccc2b35ab0
Added Tabs::calcTabWidth() method to replace CALC_TAB_WIDTH macro.
2010-07-19 23:56:12 -03:00
David Capello
04a096d6b9
Modified some comments from C style to C++.
2010-07-18 14:44:21 -03:00
David Capello
61150ad31e
Merged all preview commands (fit screen/tiled/normal) to just one Preview command (F8).
...
- Improved preview to show checked background as default background for transparent sprites.
- Added RenderEngine::renderImage() and renderCheckedBackground().
- Removed F6 and F7 shortcuts.
2010-07-17 20:49:42 -03:00
David Capello
c8ae9cbf8a
Minor changes in comments.
2010-07-17 20:44:51 -03:00
David Capello
28b3f7fe8c
Minor change: Modified C comments to C++.
2010-07-16 17:48:47 -03:00
David Capello
81fcdb53a3
Modified status bar text when we are dragging pixels in the editor.
...
+ Added PixelsMovement::getImageBounds() method.
2010-07-14 20:02:18 -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
47aa64efe4
Removed jwidget_enable/disable/is_enabled/is_disabled functions.
2010-07-03 15:26:27 -03:00
David Capello
447f6438a4
Removed jwidget_select/deselect/set_selected/is_selected/is_deselected functions.
2010-07-03 15:03:26 -03:00
David Capello
cb0488b50b
Refactored jlabel widget to Label class.
2010-07-03 13:48:14 -03:00
David Capello
449cdd686f
Added Donate command.
2010-07-03 13:36:39 -03:00
David Capello
91b6233b48
Now the user can select mask color as foreground or background colors (e.g. now you can erase with right button using brush tool).
2010-06-24 23:25:30 -03:00
David Capello
489927528d
Fixed a bug calling "palette_editor" with invalid color (index out of range).
2010-06-21 22:16:30 -03:00
David Capello
0d4851b0fb
Removed death code in paledit.cpp.
2010-06-13 18:05:21 -03:00
David Capello
93f7d76715
Converted tabs widget to Tabs class and ITabsHandler interface.
2010-06-13 17:51:22 -03:00
David Capello
b37886b052
Now the status-bar text is cleared when the mouse leave widgets like Editor and ToolBar.
2010-06-11 00:05:53 -03:00
David Capello
c78f467ee4
The color-bar does not show invalid colors in the status-bar anymore.
2010-06-10 23:59:12 -03:00
David Capello
b334706cce
Added StatusBar::clearText() member function.
2010-06-10 23:58:48 -03:00
David Capello
ed14c4a31a
Now selected colors to draw are checked in Editor::createToolLoopImpl().
2010-06-10 23:51:22 -03:00
David Capello
07970e8116
Removed app_get_fg/bg_color() functions.
2010-06-10 23:50:10 -03:00
David Capello
a17a3de4d4
Fixed: now you cannot select invalid colors with the color-bar.
2010-06-01 22:42:20 -03:00
David Capello
4de7f0e7c0
Added BITMAP* parameter in draw_emptyset_symbol() function.
2010-06-01 22:24:07 -03:00
David Capello
4a9f6cf520
Now Editor::controlInfiniteScroll() is called when the editor's state is MOVING_PIXELS but even when the user is not dragging the pixels (just the mouse captured).
2010-05-06 23:34:30 -03:00
David Capello
e5c7bf34fa
Added more methods to handle decorators (still WIP) in Editor class.
2010-05-06 23:33:26 -03:00
David Capello
bffd54bf79
Added Editor::editor_set_zoom_and_center_in_mouse to remove duplicated code.
2010-05-06 22:15:58 -03:00
David Capello
f9aaf0af99
Fixed cursors problem when the user is dragging pixels.
2010-05-06 22:00:22 -03:00
David Capello
8e985a3bd8
Renamed PixelsMovement::m_isCatched (which should be Caught) to m_isDragging.
2010-05-06 21:59:48 -03:00
David Capello
c5c1f45b96
Fixed clipping problems dragging selected pixels when other windows are opened.
2010-05-06 21:58:13 -03:00
David Capello
9902481f51
Improved pixel-movement: Added support for continuos movement even when we release the mouse button.
...
The mouse is captured by the editor until the user presses a key (e.g. to execute a command) or uses the selection tool to add/subtract chunks of mask. While the mouse is captured we are in the "pixels movement" loop.
2010-05-03 23:01:05 -03:00
David Capello
30c6677cc1
The Editor can draw the pixel grid.
2010-04-28 23:44:32 -03:00
David Capello
d4a0b4b9eb
Modified color selector (tabs replaced with buttons).
...
Mask button now is just one button (you don't need to select tab and then the "mask button").
2010-04-25 23:24:26 -03:00
David Capello
475398eb4b
Fixed colorbutton_draw().
2010-04-25 23:22:48 -03:00
David Capello
74356cf8b7
The color selector in color-buttons appears only when they are clicked.
2010-04-25 23:21:10 -03:00
David Capello
f0f5bafd78
Refactored all jwidget_has_focus/mouse/capture functions to member functions.
...
Added Widget::hasFocus/Mouse/Capture and Widget::hasMouseOver() members.
Removed JI_HARDCAPTURE flag (it was used only by button widget).
2010-04-25 12:03:25 -03:00
David Capello
314e59dae1
Now the user can move selected pixels (still WIP).
...
Details:
Added EDITOR_STATE_MOVING_PIXELS state to Editor.
Added PixelsMovement helper class.
Added Undoable::paste_image().
2010-04-24 21:23:40 -03:00
David Capello
c65de92e47
Added Editor::controlInfiniteScroll() member function.
2010-04-24 21:04:03 -03:00
David Capello
220df93c35
Fixed: You cannot change the frame or fg/bg color when you are drawing using the mouse wheel.
2010-04-24 16:55:39 -03:00
David Capello
20c4ac5235
Added ToolInk::isCelMovement(). Now "Move" tool moves cel.
2010-04-24 16:10:48 -03:00
David Capello
bb6815524f
Refactored 'extras' stuff in Sprite class.
...
Now it is called "ExtraCel" which is the union of a Cel and an Image.
2010-04-24 16:09:35 -03:00
David Capello
d79d29c1a5
Now when you pass the mouse over a tool button, the tool name and shortcut are shown in the status bar.
...
Added StatusBar::showTool().
2010-04-24 01:55:51 -03:00
David Capello
28074c0e0c
Added "wheel actions". The new behavior for the mouse wheel is this:
...
wheel=zoom,
alt+wheel=change fg color,
ctrl+wheel=change frame.
2010-04-24 01:31:35 -03:00
David Capello
c8436b73e3
Better feedback for eyedropper tool (now the eyedropper tool is controlled by the editor as "Alt+click").
2010-04-24 01:30:24 -03:00
David Capello
f0c2ae6991
State bar shows alpha value when a color is being shown.
2010-04-24 01:28:33 -03:00
David Capello
f2265b2034
Improved color indicators in status bar (StatusBar::showColor()).
2010-04-24 01:06:30 -03:00
David Capello
21a979874b
Added support for alpha (in skin graphics) in ToolStrip JM_DRAW message.
2010-04-24 00:13:00 -03:00
David Capello
c1dfcc04f7
The ToolStrip is shown only for ToolGroups with more than just one tool (bug reported by Ilija).
2010-04-23 23:26:22 -03:00