Commit Graph

4274 Commits

Author SHA1 Message Date
David Capello
e985227d95 Merge branch 'new-scroll' 2016-01-05 20:49:36 -03:00
David Capello
b0650f6afe Generalize View::setViewScroll() to blit valid/scrollable region automatically
With this change we are removing specific code to scroll the Editor widget.
Now if we use Editor::setEditorScroll() to scroll it should work as
View::setViewScroll(). In this way we remove the ugly "blitValidRegion"
parameter from setEditorScroll().

Changes:
* Removed Widget::scrollRegion() because each widget must control
  valid/invalid regions after a ui::move_region() in a very specific way
  (see View::setViewScroll() or Window::moveWindow)
* Invalidate the whole widget on Widget::setBoundsQuietly()
* Fixed problems blitting invalid regions/not yet updated/painted: using
  the new ui::Manager::m_invalidRegion.
* Added View::onSetViewScroll() and View::onScrollRegion()
* Added FileListView to avoid moving the thumbnail region when we scroll
2016-01-05 16:37:52 -03:00
David Capello
1260cf12c5 Minor comment changes in widget.h 2016-01-05 16:28:54 -03:00
David Capello
e64cc958ce Minor change/renames in Widget::flushRedraw() 2016-01-04 17:50:21 -03:00
David Capello
3bad2af2f3 Make Widget::offsetWidgets() function public 2016-01-04 17:49:40 -03:00
David Capello
bf9994387d Add some gfx::Region operators 2016-01-04 17:48:56 -03:00
David Capello
6123885241 Add required flag to compile on OS X without HarfBuzz library
From #909
2016-01-04 14:08:03 -03:00
David Capello
84781196e5 Update simpleini version 2016-01-04 12:37:48 -03:00
David Capello
938e025906 Update README copyright year 2016-01-04 12:29:19 -03:00
David Capello
3087ddd5b9 Update pixman to 0.33.6 2016-01-04 12:27:25 -03:00
David Capello
d77aabd3f3 Update freetype2 version
Should fix #909 and #930
2016-01-04 12:19:19 -03:00
David Capello
eba8de0306 Fix slow scroll/selection movement with Alleg4 port (fix #929) 2016-01-04 12:15:23 -03:00
David Capello
910612101a Fix slow performance pressing Alt or Ctrl key on Editor in Alleg4/Win port 2015-12-30 17:30:20 -03:00
David Capello
0f28e216ba Fix Manager::pumpQueue() when DEBUG_PAINT_EVENTS is defined 2015-12-30 12:24:26 -03:00
David Capello
e97a7070d6 Fix she::Event::setRepeat() calls on Skia/Win WM_KEYUP/DOWN processing 2015-12-30 10:33:44 -03:00
David Capello
5b38caed00 Reduce code in StateWithWheelBehavior::onMouseWheel() 2015-12-30 10:29:13 -03:00
David Capello
a5a044f333 Make main window key and order to front in Skia/OSX port 2015-12-28 18:33:57 -03:00
David Capello
851413e2a6 Remove unused variable in BrushPopup::regenerate() 2015-12-28 18:02:38 -03:00
David Capello
a6544d92af Improve default window size on Skia/Win port (fix #693) 2015-12-28 18:02:07 -03:00
David Capello
2fc447edd6 Disable GPU acceleration by default 2015-12-28 17:28:48 -03:00
David Capello
d496236d08 Add scrollbars to Skia/Win SkiaDisplay to support trackpad scroll messages 2015-12-28 16:54:50 -03:00
David Capello
8996d82d21 Redraw ColorBar when we change the active state in the Undo History window 2015-12-28 16:54:14 -03:00
David Capello
be214b715b Fix hang on Skia/Win when we press the HWND close button and an ui::Alert is shown
We don't have to close the OS window when its close button is pressed.
We just generate an CloseDisplay event and the client (app/ui layer) must
process it (e.g. check if there are no unsaved changes) and then close
the she::Display manually.
2015-12-28 16:31:57 -03:00
David Capello
a43f7cfa66 Fix crash disabling GPU acceleration on Skia/Win port 2015-12-28 15:56:41 -03:00
David Capello
49ad91dd79 Fix argc/argv parameters for app_main() in Skia/Win port 2015-12-28 15:34:00 -03:00
David Capello
199a3db278 Don't scroll invalid areas in Widget::scrollRegion() 2015-12-28 13:37:01 -03:00
David Capello
5074ef2d68 Handle several UI mouse movement events at once if they are in the she layer queue 2015-12-28 13:02:45 -03:00
David Capello
4d629b5f70 Update Skia port to support m48 version 2015-12-28 12:13:07 -03:00
David Capello
c8abf0cfc7 Fix regression: Show left/right mouse button triggers in keyboard shortcuts 2015-12-26 14:52:29 -03:00
David Capello
7b5827a151 Modify style of colored layers and cels in Timeline
Now colored layers/cels are filled with the user-defined color as
background and the text in the foreground.
2015-12-23 19:57:31 -03:00
David Capello
db13644e0a Fix problem setting cel color in all cels when a range is selected in Timeline 2015-12-23 14:19:09 -03:00
David Capello
5e67441af3 Fix logging string in GuiXml() ctor 2015-12-22 20:10:01 -03:00
David Capello
1c7ef06a4b Minor change in ResourceFinder logging strings 2015-12-22 20:08:37 -03:00
David Capello
5725b3bbf1 Load user brushes if the file exists and continue in case of error (fix #911) 2015-12-22 20:04:44 -03:00
David Capello
ff507af308 Redraw editor when symmetry is enabled/disabled
This redraw issue appears when we assign a key to switch the global
symmetry visibility (SymmetryModeCommand).
2015-12-22 19:05:11 -03:00
David Capello
07c3853bab Add the correct recent filename after saving a sequence of files 2015-12-22 18:07:06 -03:00
David Capello
978145ba7a Add warning before we save a sequence of bitmaps (fix #902) 2015-12-22 18:00:01 -03:00
David Capello
2f2bd40c84 Replace package name in src/file/file.cpp with PACKAGE macro 2015-12-22 17:55:35 -03:00
David Capello
3543b086d1 Add option to keep the selection after Edit > Clear (fix #907) 2015-12-22 17:49:21 -03:00
David Capello
e79236b3a3 Add JSON data format into Export Sprite Sheet UI 2015-12-22 17:34:51 -03:00
David Capello
65dd457847 Reduce size hint for ui::ComboBox 2015-12-22 17:14:26 -03:00
David Capello
2cac6a0706 Don't show shading on effect tools (Eraser, Blur, Jumble) 2015-12-22 17:05:33 -03:00
David Capello
b5dd02eb46 Export user data in JSON data 2015-12-22 16:53:06 -03:00
David Capello
9c42a7b31b Merge branch 'master' 2015-12-22 15:57:44 -03:00
David Capello
4c58441823 Redraw Timeline when layer/cel user color is changed 2015-12-22 13:18:08 -03:00
David Capello
3252013134 Fix problem showing brush boundaries when the active shade includes index 0 2015-12-22 12:48:15 -03:00
David Capello
e8ecbbb4d7 Merge branch 'master' 2015-12-22 10:56:56 -03:00
David Capello
16e13d89c2 Minor changes in base/README 2015-12-22 10:55:54 -03:00
David Capello
6fb5258e51 Load/save custom brushes 2015-12-22 10:55:15 -03:00
David Capello
718888df91 Add XML declaration to keyboard shortcuts XML file 2015-12-22 10:24:25 -03:00