David Capello
0227467da5
Minor changes (C style comments to C++ style).
2011-04-30 15:31:08 -03:00
David Capello
132e246ebf
Fix several menu glitches.
...
+ Fixed issue #10 (Alt+sequence of underlined letters is working now).
+ Close the whole menu hierarchy when Alt key is released and then
pressed again.
+ Close all menus when a command is executed.
2011-04-30 15:31:07 -03:00
David Capello
305a824d72
Add PaintFlags to SelectBoxState editor state.
...
The SelectBoxState::PaintGrid will be used for the future "import sheet" command.
2011-04-30 15:31:06 -03:00
David Capello
b06c6719c8
Fix problem closing the last "normal" editor (because the existence of the new "mini" editor).
2011-04-30 15:31:05 -03:00
David Capello
5be14417f3
Convert menu widgets to Menu, MenuItem, MenuBox, and MenuBar classes.
2011-04-30 15:31:05 -03:00
David Capello
d85305322d
Fix IcoFormat::onLoad() clearing the image as first step
...
because sometimes some pixels are not set.
2011-04-30 15:31:04 -03:00
David Capello
bda7f6c31d
Add DropDownButton widget.
2011-04-30 15:31:03 -03:00
David Capello
7260fa20f9
Fix compilation of unit tests on Linux with pthreads.
2011-04-28 22:32:37 -03:00
David Capello
b9cefbe32a
Fix objects_container_impl_unittest.
2011-04-28 22:32:23 -03:00
David Capello
cf58f35751
Fix EditorPreRenderImpl() ctor (reported by Nguyen Michael).
2011-04-28 20:49:02 -03:00
David Capello
a0db1deeee
Fix SelectBoxState::onSetCursor() when the user is dragging a ruler.
2011-04-21 18:42:56 -03:00
David Capello
fc2fd9fdfd
Rename SelectTileState to SelectBoxState.
2011-04-21 18:30:29 -03:00
David Capello
ef4ce8a7f2
Now when an entry box in "Canvas Size" is modified, the rulers are moved.
2011-04-21 18:01:21 -03:00
David Capello
312cab0902
Rename some variables in merge_zoomed_image() just to improve readability.
2011-04-21 17:42:14 -03:00
David Capello
210e33f76a
Improve "Canvas Size" command to show rulers to change the canvas size.
...
+ Added EditorDecorator and EditorState::getDecorator().
+ Added EditorPreRender and EditorPostRender classes.
+ Added Image::rectblend and image_rectblend functions to draw
transparent rectangles.
+ Added SelectTileState and Ruler classes.
2011-04-21 17:39:43 -03:00
David Capello
6293161028
Add "default state" to the editor.
...
+ Converted to shared pointer (EditorStatePtr) the current/default state
of the editor to simplify memory management of states.
2011-04-21 17:29:43 -03:00
David Capello
5bbf0140cd
Now "closewindow" attribute works for <button> widget when it isn't inside a window.
2011-04-21 17:17:16 -03:00
David Capello
9e252f992f
Modify Editor::drawGrid() to paint the grid inside the image's bounds.
2011-04-20 23:17:05 -03:00
David Capello
ac74679cc2
Add Editor::changePreferredSettings() to fix problems with mini editor
...
changing the preferred document settings (scroll+zoom).
2011-04-20 20:48:22 -03:00
David Capello
4a4db10ea8
Add some checks in move_focus() for null pointers in gui/manager.cpp.
2011-04-10 20:17:04 -03:00
David Capello
5380877c4a
Refactor Editor class to use a state design pattern.
...
+ Added EditorState and derived classes (StandByState, DrawingState, etc.)
+ Added StatusBarListener.
2011-04-10 20:15:17 -03:00
David Capello
ef0cbf0e94
Fix bug in Editor::drawMaskSafe() where mask in hidden editors were drawn.
2011-04-06 22:09:01 -03:00
David Capello
8a40228ab3
Change default screen scale to 2x2 by default in all platforms.
2011-04-06 20:15:36 -03:00
David Capello
18fa17c5a9
Remove "using namespace tools;" from editor.cpp.
2011-04-03 16:23:09 -03:00
David Capello
ff1ada1d56
Add a note about IntEntry in TODO.txt.
2011-04-02 23:13:01 -03:00
David Capello
db4fc75f2a
Set minifont for "Edit Pal" button and convert it to check-box behavior.
2011-04-02 23:10:02 -03:00
David Capello
36b3309125
Fix "i" glyph in minifont.
2011-04-02 23:08:46 -03:00
David Capello
e7d12f9062
Change the title of mini-editor from "Preview" to "Mini-Editor".
2011-04-02 21:00:08 -03:00
David Capello
b9f8c201c4
Better support for different zoom levels in the mini-editor.
2011-04-02 20:58:51 -03:00
David Capello
536d67566f
Add support to resize the pinned popup frames.
2011-04-02 20:43:31 -03:00
David Capello
0bcb44c491
The mini-editor cannot be the current editor.
2011-04-02 20:43:19 -03:00
David Capello
70e76380aa
Add mini-editor to see 1px preview when you zoom in.
...
+ Added EditorView widget.
2011-04-02 18:12:41 -03:00
David Capello
d547a05f4d
Add EditorListeners.
2011-04-02 15:47:44 -03:00
David Capello
d6181d838d
Rename ITabsHandler to TabsDelegate.
2011-04-02 14:57:40 -03:00
David Capello
ff897fea34
Remove JMessage and jmessage union, use Message* and Message instead.
2011-04-02 13:14:07 -03:00
David Capello
19ea79b41e
Add minifont in SkinTheme for color buttons.
2011-04-02 11:45:43 -03:00
David Capello
450e97ef92
Move data/skins/default_skin to data/skins/default.
2011-04-02 10:53:52 -03:00
David Capello
c5801760b6
Use PNG for fonts instead of PCX.
2011-04-02 10:50:59 -03:00
David Capello
1fd011c20b
Move everything related to tools in "tools" namespace.
...
+ Splitted tools/tool.h|cpp in several files (ink.h, intertwine.h, etc.).
2011-04-02 10:47:03 -03:00
David Capello
3c3136235f
Several fixes in font glyphs to improve the overall look of the program.
2011-04-02 09:49:21 -03:00
David Capello
82f5345ace
Add ToolLoopManager::Pointer abstraction to avoid using JMessage in src/tools/ dir.
2011-04-01 22:48:58 -03:00
David Capello
9d744504a6
Rename some Editor's member functions to camelCase.
2011-04-01 22:23:38 -03:00
David Capello
4e567d72c7
Remove Editor's decorators (they were never used).
2011-04-01 22:11:07 -03:00
David Capello
f3b3664148
Add Widget::broadcastMouseMessage() to customize the list of targets
...
to receive mouse messages.
2011-03-31 00:18:28 -03:00
David Capello
dc58651f79
Remove UndoHistory::undo_* member functions to use Undoers directly
...
and to avoid undo-lib <-> undoers circular dependency.
2011-03-30 18:27:52 -07:00
David Capello
5576ea7e7c
Remove "typename" from get_neighboring_pixels() params.
2011-03-30 16:41:49 -07:00
David Capello
d57677d80b
Remove jwidget_find_name() function.
2011-03-29 21:42:21 -03:00
David Capello
0bd6e19093
Replace jwidget_add_child/remove_child/replace_child with Widget's methods.
2011-03-29 21:35:17 -03:00
David Capello
c7bf667f0d
Add VBox, HBox, and BoxFiller micro-classes.
2011-03-29 21:13:08 -03:00
David Capello
3ad44e3004
Add a "pin" in color selectors to make the popup window floating.
...
+ Added Frame::hitTest() and Frame::onHitTest().
+ Added LookType enum for SkinProperty.
2011-03-29 21:07:37 -03:00