Commit Graph

44 Commits (master)

Author SHA1 Message Date
David Capello 5d97aed5e9 Use new laf flags to detect platform in main and App 2021-06-16 17:21:02 -03:00
David Capello ddbbf12bfc Update main branch 2021-03-05 18:39:36 -03:00
David Capello b41f1ace30 Move function to convert doc::Image -> os::Surface to app/util 2020-06-09 19:56:25 -03:00
David Capello 48450ac79d Add info about TRACEARGS() in src/README.md 2019-05-06 14:15:44 -03:00
David Capello a4d8fc52bf Manage color profiles (fix #1576) 2018-10-19 15:30:30 -03:00
David Capello f8cb1db917 Remove webserver (never used) 2018-08-24 17:39:51 -03:00
David Capello 0fe4586bab Minor update in readme files 2018-08-23 17:49:20 -03:00
David Capello 5cb2d984f0 Rename she -> os 2018-08-09 12:58:43 -03:00
David Capello f9c1c68012 Remove Allegro back-end (#139) 2018-08-09 11:43:35 -03:00
David Capello 511752fea7 New render engine to use bicubic interpolation when zoom < %100 (fix #1671)
This only works with Skia back-end.
2018-06-22 15:41:22 -03:00
David Capello 1898ce2886 Add the thumbnailer COM server for Windows
Note: Moved the desktop integration for Linux to src/desktop/linux
2018-01-02 17:03:46 -03:00
David Capello cf07af155f Move .aseprite file encoder to dio module (related to #379)
In this way we'll be able to use the encoder in a future
module (e.g. dll COM server) to generate thumbnails.
2018-01-02 13:12:50 -03:00
David Capello 43db106db0 Rename docio to dio 2017-09-22 15:57:38 -03:00
David Capello 6f518f0b06 Add "Detect Platform" section in src/README 2017-09-22 12:53:50 -03:00
David Capello 4ed302e4b5 Add ENABLE_DEVMODE flag 2017-08-15 15:47:06 -03:00
David Capello cc8337fa84 Fix User-Agent on Linux to include the distribution name/version 2017-06-29 13:03:28 -03:00
David Capello 87f715ee6b Remove css library
The css library was used for the old skin::Style property/painting code.
2017-03-13 18:17:00 -03:00
David Capello 644b8ff0a4 Add Ctrl+Shift+R on debug mode to recover the active document from active backup session
In this way we can test on each moment how the information is being
saved and will be recovered. We can find bugs with missing or invalid
doc::Object::incrementVersion() calls.
2016-11-07 17:47:53 -03:00
David Capello 6ba53c4e12 Minor changes in README file 2016-11-07 15:32:35 -03:00
David Capello 693a68844c New docio-lib to detect file format by content (fix #776) 2016-10-26 19:37:42 -03:00
David Capello 95da89b067 Update src/README.md items 2016-08-01 10:29:21 -03:00
David Capello 9c73841970 Move gfx::Transformation to app::Transformation
In this way gfx library doesn't depend on fixmath.
2016-07-11 15:40:27 -03:00
David Capello 0c9fb6b22b Remove src/pen directory
It's not required anymore after 1c94dda072
2016-04-27 12:47:55 -03:00
David Capello 5bb46e82cf Add more info about new libraries in src/ directory 2016-02-29 12:25:35 -03:00
David Capello 64deb6ed87 Remove mongoose code
The webserver isn't functional yet, and mongoose license is GPL now.
2016-02-16 18:52:15 -03:00
David Capello 7c8876dd65 Remove reference to V8 in README.md 2015-10-28 19:45:01 -03:00
David Capello 1bb0bca361 doc and gfx libraries depends on fixmath (fix #817) 2015-09-24 10:02:52 -03:00
David Capello 3d700ab94c New FLI/FLC encoder/decoder (fix #7) 2015-09-10 16:10:31 -03:00
David Capello 6430d53a21 Add a special section in src/README.md about debugging tricks 2015-04-07 17:19:34 -03:00
David Capello 0cff720ef3 Rename undo2 to undo library
Now that the old undo library doesn't exist, we can use "undo" namespace
again.
2015-01-18 22:16:29 -03:00
David Capello e55865843e Replace undo impl: replace undoers with cmds
Undoers were little objects to swap/revert an action. They didn't
execute the action itself, they just revert its previous state. Now
undoers were replaced with cmds: A cmd is an object that
executes/undoes/redoes just one action.

Changes:
* Remove old undo library and app/objects_container_impl.cpp
  (now we use the doc::ObjectId directly to store undo info)
* Remove all Undoers from app/undoers/
* Replace DocumentApi impl with little Cmds in app/cmd/, these
  cmds handle execute/undo/redo of each action at the logic layer
* Remove doc::Dirty object
* Remove doc::Settings: all undo configuration is in the app side
* Move undo options from app:ISettings to app::Preferences
* Rename UndoTransaction to Transaction
* Create a CmdSequence to store a sequence of Cmds (as now the new
  undo library doesn't support open/close groups)
* Add doc::get<T>(ObjectId) function to get any kind of object
  from the doc library by its ID
* Add Cel::document() and Sprite::document() members
* Add Sprite::cels(frame_t) to get all cels in the given frame
* Add Layer::displaceFrames() member function
* Move the "allow non-linear history" flag from undo2::UndoHistory
  to app::DocumentUndo
2015-01-18 22:05:33 -03:00
David Capello a9fa9f5fdc Add undo2 library 2015-01-04 20:23:05 -03:00
David Capello da1358c5dc Unify all render code in one library
Changes:
* Create render library (move util/render.cpp to render/render.cpp)
* Move app::Zoom class to render::Zoom
* Remove doc::Image::merge() member function
* Add gfx::Clip helper class (to clip dst/src rectangles before a blit)
* Move doc::composite_image() to render::composite_image()
* Remove doc::Sprite::render()
* Replace Sprite::getPixel() with render::get_sprite_pixel()
* Remove doc::layer_render() function
* Convert DitheringMethod to a enum class
* Add AppRender to configure a render::Render with the app configuration
* Move checked background preferences as document-specific configuration
* Add doc::Sprite::layer() and palette() member functions
* Add doc::Layer::cel() member function
* Add doc::Palette::entry() member function()
* Add doc::frame_t type
* Move create_palette_from_rgb/convert_pixel_format to render library
* ExportSpriteSheet doesn't need a temporary image now that we can specify
  the source rectangle in the render routine
2014-12-28 11:06:11 -03:00
David Capello 63995c6f0a Merge "raster" namespace into "doc" library 2014-10-20 22:21:31 -03:00
David Capello 2b2d0f34b2 Add simpleini to replace Allegro 4 configuration routines 2014-10-16 21:27:25 -03:00
David Capello 81ffb0c5bd Refactor: Create doc::Context and move some logic from app::Document to doc::Document
The objective of these changes is to create a more testable doc/logic API.

Included changes:
- Added doc::Context, doc::Documents (the old app::Documents),
  and doc::Sprites (and observers for each)
- Added raster::Sprite::createBasicSprite()
- Added doc::ColorMode (equal to raster::PixelFormat)
- Added some methods to doc::Document: context(), sprites(), sprite()
  (to replace app::Document::getSprite()), width/height(), colorMode(),
  name(), and close()
- Moved app::DocumentObserver/Event to doc::DocumentObserver/Event
- Replaced app::ContextObserver with doc::DocumentsObserver and a couple
  of signals.
- Renamed app::Context::getActiveDocument() with
  doc::Context::activeDocument()
- Renamed app::Context::getActiveLocation() with
  app::Context::activeLocation()
- Removed app::ContextObserverList
- Removed app::DocumentId (now we can use doc::ObjectId)
- Removed app::Context::getSettings()
2014-07-29 00:53:24 -03:00
David Capello 31e565a2b0 Add "gen" utility to generate UI widget wrappers from XML files 2014-07-13 13:24:57 -03:00
David Capello 4b7bf5b835 Merge she::Color and ui::Color types in gfx::Color 2014-06-28 16:10:39 -03:00
David Capello a21340cbf7 Update src/README.md 2014-06-14 00:50:10 -03:00
David Capello aa27c0d68a Add dummy src/iff/ directory, this will be the module to load/save docs 2014-03-16 21:58:12 -03:00
David Capello 8e81fb808d Add css library
This is a base library that will be used by SkinTheme to draw parts
with CSS styles (or something similar).
2013-12-03 19:31:36 -03:00
David Capello a06faeddac Change README.md to see dependencies between (...) 2013-08-05 22:58:07 -03:00
David Capello 3afd20f6ac Update src/README.md 2013-08-05 22:40:48 -03:00
David Capello 35f1249662 Add "she" layer.
This is the starting point to create a layer to isolate Allegro access.
In the future, we will be able to switch to SDL or Allegro 5 easily.
Anyway this will be a progressive refactoring.
2012-07-14 16:55:16 -03:00