Skip to content

[Feature] Add Sankore drawing tool #240

@letsfindaway

Description

@letsfindaway

There were several requests to add the drawing tools from OpenSankoe to OpenBoard. I now tried to add the relevant classes to OpenBoard on top of the dev branch. My efforts are on the branch add-sankore-drawing-tool.

The first commits add the item classes and GUI classes. I have created subdirectories shape below domain and gui to separate these classes. The code is compile clean after each commit.

I then enabled the drawing palette and fixed a problem during resizing of shapes. Still a lot of work has to be done. The selection of shapes is not working, which affects the styling of lines, colors and fill colors. And serialization of shapes is completely missing.

The new code is protected by an #ifdef ENABLE_SHAPES. A configuration option is still missing.

The new classes are currently only added to the CMake build system and not to the qmake project files.

This branch is in a very preliminary state, but it already shows, that there are only a limited number of contact points to the core code. It seems to be possible to add the drawing tools without too many changes to the existing code base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions