Commit Graph

4151 Commits

Author SHA1 Message Date
David Capello
2eada35a38 Add "Undo History" command (fix #739)
Added member functions to undo::UndoHistory and
app::DocumentUndo to iterate all states of the undo history.
Also we’ve added app::DocumentUndoObserver to see when new states
are added in the undo history.
2015-10-20 11:27:05 -03:00
David Capello
05b70d2538 Make verbose_log() print on stdout when _DEBUG is enabled 2015-10-20 10:46:15 -03:00
David Capello
76e7d15484 Avoid warning about unused variable on non-OSX platforms 2015-10-19 16:41:41 -03:00
David Capello
3dce633bf6 Remove unused variable 2015-10-19 16:41:25 -03:00
David Capello
3d76639141 Add support to load system fonts on Ubuntu in PasteTextCommand 2015-10-19 16:41:14 -03:00
David Capello
62a16d0525 Improve font selection with keyboard in PasteTextCommand 2015-10-19 15:32:44 -03:00
David Capello
02ef2268fe Remove unnecessary filtering of key events in PopupWindow
In this way Tab key (and other focus movement keys) can be used
in PopupWindows. They aren’t propagated to the main window because
a correct filter was added in 883629b563
2015-10-19 15:31:34 -03:00
David Capello
caf8388ac6 Fix crash resizing the window when we restart the app on OS X and it was closed on fullscreen size 2015-10-19 11:32:33 -03:00
David Capello
6e15553c88 Fix crash when window title is changed on OS X and fullscreen is enabled (fix #833) 2015-10-19 09:26:29 -03:00
David Capello
ec5a6fc8b3 Show font name and text preview on each FontItem 2015-10-16 18:52:52 -03:00
David Capello
2a09990b16 Make viewport bigger when we load a new font on FontPopup 2015-10-16 18:51:35 -03:00
David Capello
fcf3d77be9 Limit font size to 999 2015-10-16 18:40:18 -03:00
David Capello
049111bfad Put font size before font family
In this way we can press T, Tab, change the font size, and Enter to try
again quickly with other font size.
2015-10-16 18:40:14 -03:00
David Capello
5e239a0768 Add support for multiple font paths 2015-10-16 18:39:56 -03:00
David Capello
60f0c5bcf7 Avoid warning on clang using side-effect function inside typeid() 2015-10-16 18:39:34 -03:00
David Capello
21a642285d Add folder for system fonts in OS X 2015-10-15 18:33:13 -03:00
David Capello
241aba6370 Don't ref a temporary object 2015-10-15 18:32:55 -03:00
David Capello
7bf6404b85 Add missing <stdexcept> to use std::runtime_error 2015-10-15 18:32:32 -03:00
David Capello
9f8200ea3e Add list of system fonts in PasteTextCommand dialog (on Windows) 2015-10-15 18:16:16 -03:00
David Capello
74c2ce83dc Simplify update_mouse_cursor() code 2015-10-14 19:36:46 -03:00
David Capello
8cba37e36b Return false if the native cursor cannot be change on SkiaWindow::setNativeMouseCursor 2015-10-14 19:31:38 -03:00
David Capello
0900019b1e Minor change in Widget::scrollRegion() to avoid an extra Region::offset() 2015-10-14 18:41:56 -03:00
David Capello
fe6d2f3db0 Minor change in move_region.cpp 2015-10-14 18:39:07 -03:00
David Capello
a16c5b9846 Fix floating tab overlay for Tabs widget on Skia backend 2015-10-14 18:38:53 -03:00
David Capello
ae1861236e Use key modifiers from NSEvents in Skia/OSX 2015-10-14 17:06:23 -03:00
David Capello
bd1a1ffafb Add support to transport key modifiers from she events to UI messages
It’s better if we use the original key modifiers from she::Events (given
by Cocoa or Win32 APIs) instead of asking for the current state of
the modifier when the ui::Message is created (which can be different
from the original value).

This commit adds support to transport the modifiers, but it is not
using the original key modifiers yet.
2015-10-14 16:42:49 -03:00
David Capello
ba194a817f Fix Alt+char on Skia/OSX 2015-10-14 15:53:47 -03:00
David Capello
7e7d3b9dc8 Disable GPU acceleration on Skia/OSX 2015-10-14 13:35:26 -03:00
David Capello
2e5f051e7d Catch exceptions if GL context cannot be created on Skia/OSX 2015-10-14 13:32:15 -03:00
David Capello
72965b14d2 Add missing -DUSE_SKIA_BACKEND and -DUSE_ALLEG4_BACKEND 2015-10-14 13:30:45 -03:00
David Capello
11401e9899 Resize NSView with multiples of 4
With this we should avoid seeing scaled pixels on screen with (e.g.) 3
pixels instead of 2 when Screen Scaling = 200%.
2015-10-14 13:11:08 -03:00
David Capello
9e90061e37 Fix first native cursor hiding on Skia backend 2015-10-14 12:44:37 -03:00
David Capello
ee7df1f973 Impl SkiaWindow::setNativeMouseCursor() on Skia/OSX 2015-10-14 12:30:48 -03:00
David Capello
d7d0eeec7f Fix SkiaWindow::updateWindow() on Skia/OSX 2015-10-14 12:00:50 -03:00
David Capello
d5c5c2e1f9 Remove commented line 2015-10-14 12:00:03 -03:00
David Capello
f9d0254d91 Initialize windows with width/height/scale args on Skia port 2015-10-14 10:25:24 -03:00
David Capello
66c5e04a58 Impl OSXWindow::setMousePosition on Skia/OSX port 2015-10-14 09:29:14 -03:00
David Capello
2fe612fd00 Add precise trackpad support on Skia/OSX port 2015-10-14 09:27:20 -03:00
David Capello
47f493df78 Fix window resize on Skia/OSX 2015-10-13 18:49:56 -03:00
David Capello
0a1f492c24 Implement SkiaSurface::setDrawMode() 2015-10-13 18:44:31 -03:00
David Capello
b8f5a0236c Add she::is_key_pressed() impl on Skia/OSX port 2015-10-13 17:12:51 -03:00
David Capello
0508b6fd67 Avoid beeps on keyDown/Up on Skia/OSX port 2015-10-13 17:11:45 -03:00
David Capello
d4e37218e2 Show errors on stderr on Skia port 2015-10-13 17:11:23 -03:00
David Capello
07900c8e48 Enable line that doesn't crash anymore on newer version of Skia 2015-10-13 17:10:59 -03:00
David Capello
4379c6793e Minor changes to Skia/OSX #includes 2015-10-13 16:55:29 -03:00
David Capello
15f4a16294 Add support for right and middle click on Skia/OSX port 2015-10-13 16:02:18 -03:00
David Capello
f818dbc692 Add keyDown/keyUp events to Skia/OSX port 2015-10-13 15:50:25 -03:00
David Capello
9ef3e1e134 Add --list-tags and --list-layers options
Related to #807
2015-10-13 13:23:45 -03:00
David Capello
615e369cc4 Fix closing multiple tabs with middle-click without moving mouse (fix #826) 2015-10-13 12:13:13 -03:00
David Capello
8c97bb1ffa Fix loading gray color (fix #828) 2015-10-13 11:48:08 -03:00