- 15 Jul, 2019 1 commit
-
-
Clément Fauconnier authored
reuse last used color for newer text boxes (only if applied globally) + recolor text boxes on background changes (white text becomes black and black text becomes white (like for polygons))
-
- 02 Oct, 2018 1 commit
-
-
Clément Fauconnier authored
-
- 20 Dec, 2017 2 commits
-
-
Clément Fauconnier authored
This reverts commit 8fec7b23.
-
Clément Fauconnier authored
-
- 19 Dec, 2017 2 commits
-
-
Clément Fauconnier authored
-
Clément Fauconnier authored
-
- 11 Dec, 2017 1 commit
-
-
Clément Fauconnier authored
fixed a bug where erasing a pen stroke with simplifyPenStrokes=true ereased every overlapping polygons of it
-
- 13 Nov, 2017 1 commit
-
-
Clément Fauconnier authored
-
- 03 Nov, 2017 1 commit
-
-
Clément Fauconnier authored
-
- 10 Oct, 2017 1 commit
-
-
Clément Fauconnier authored
-
- 25 Sep, 2017 1 commit
-
-
Craig Watson authored
This ensures distance from previous point is calculated correctly
-
- 24 Sep, 2017 1 commit
-
-
Clément Fauconnier authored
-
- 23 Sep, 2017 1 commit
-
-
Craig Watson authored
Erasing part of (but not the entire) center cross of an arc drawn with the compass caused a crash.
-
- 09 Sep, 2017 2 commits
-
-
Craig Watson authored
-> also deleted obsolete UBInterpolator classes
-
Craig Watson authored
Distance between the last drawn point and the current point is calculated to be able to discard very short stroke segments (i.e we only add to the current stroke if the input device has moved more than a certain distance since the last drawn point). This commit moves this code from the stroke to the scene, which allows to calculate distance more accurately: it is now calculated as the total, absolute distance traveled since the last point, rather than simply the length of a line between the last point and current one.
-
- 15 May, 2017 1 commit
-
-
Craig Watson authored
This ensures that when part of a line is erased, `UBGraphicsStroke::isNominalLine` will no longer return true. This was problematic as `UBSvgSubsetAdaptor` uses this to know whether or not to save a stroke as polyline. If it saves the stroke as a polyline, then the erased portions of the stroke reappear after saving. Therefore, we now force saving of the stroke as a group of polygons when it has been partially erased.
-
- 30 Apr, 2017 1 commit
-
-
Craig Watson authored
-
- 23 Apr, 2017 1 commit
-
-
Craig Watson authored
This fixes two related issues: 1) When taking a partial screenshot of the desktop, then copying it (Ctrl-C) and pasting it in a new document, it was not saved 2) When a page of one document was copied into another (in document mode, by dragging the page onto another document), media files disappeared from the new page.
-
- 09 Apr, 2017 1 commit
-
-
Craig Watson authored
-
- 11 Feb, 2017 1 commit
-
-
Craig Watson authored
Previously, only transforms were saved -- not positions (which are set if a group is moved by dragging it directly; if dragged by its frame, its transform is updated instead). Issue observed was that a group that had been moved would lose its new position when the document was saved then loaded. (All other transforms were kept, however). Now, when duplicating a group before saving a document, position is included in the group's transform.
-
- 25 Jan, 2017 1 commit
-
-
Craig Watson authored
(Much simpler and cleaner solution than previous commit)
-
- 14 Jan, 2017 1 commit
-
-
Craig Watson authored
-
- 13 Nov, 2016 1 commit
-
-
Craig Watson authored
This allows users to change the color of the background grid e.g if they are using a projector or other low-contrast display. The settings are in the `Board` category and are named `CrossColorDarkBackground` and `CrossColorLightBackground`. They take strings representing the color in any of the following formats: - #RGB (Hexadecimal digits) - #RRGGBB - #AARRGGBB - #RRRGGGBBB - #RRRRGGGGBBBB - Any SVG color keyword name (as defined by W3C)
-
- 06 Nov, 2016 1 commit
-
-
Craig Watson authored
-
- 16 Oct, 2016 3 commits
-
-
Craig Watson authored
-
Craig Watson authored
-
Craig Watson authored
-
- 15 Oct, 2016 1 commit
-
-
Craig Watson authored
If enabled in the preferences menu, pen and marker strokes will be replaced by a simplified stroke after they are drawn. The algorithm is very basic (for now): if three points are almost lined up (the threshold angle can be specified in the config file), then the middle one is removed. This is repeated over the whole stroke; new polygons are then generated based on the simplified stroke points. This typically cuts down on number of points and polygons by a factor of about 10, while having minimal visual impact.
-
- 24 Sep, 2016 1 commit
-
-
Craig Watson authored
-
- 03 Sep, 2016 1 commit
-
-
Craig Watson authored
-
- 02 Sep, 2016 1 commit
-
-
Craig Watson authored
- The background selection palette now includes a slider to change the size of the background grid. Default min/max values are 16 and 64px, defined in UBSettings. Grid resizes dynamically as the slider is moved. - Measuring tools' (ruler, triangle) markers follow grid size: 1 square of the background grid corresponds to 1cm - Grid size can be different for each page of a document - Grid size is saved in the .svg - Documents with a background grid but no specified grid size follow the default size defined in UBSettings. Previously, grid size was calculated based on DPI, which can vary from one OS, computer or display to the next. This new setting allows documents to be migrated from one machine to another with no unexpected changes in grid size happening. It also makes it easy to correct any problems importing old documents (whose grid size might be smaller or larger than expected when imported on a new version of OpenBoard).
-
- 22 Jun, 2016 1 commit
-
-
Craig Watson authored
In some cases, the PDF background of a document could be scaled badly when tools such as the ruler, compass etc. were present on the page. This happened with PDFs of version <= 1.4, and when the tools were outside of / larger than the page.
-
- 13 May, 2016 1 commit
-
-
Craig Watson authored
-
- 09 May, 2016 5 commits
-
-
Craig Watson authored
Also, clarified the difference between received and drawn points in UBGraphicsStroke
-
Craig Watson authored
-
Craig Watson authored
-
Craig Watson authored
- Added a curveToPolygon function that creates a curved polygon, eliminating the need to generate lots of small ones to make a curve look smooth. - Cleaned up the rest of the code a bit
-
Craig Watson authored
- UBGraphicsScene calls UBGraphicsStroke::addPoint, which returns a list of points that can be drawn. It may be none (e.g we discard very small segments), one (if we do no interpolation) or several. - Added a UBInterpolator base, abstract class. Various interpolation methods can be added easily. - Current methods: Basic spline (custom), Catmull-Rom spline (based on alglib), and Bézier - Added a setting to toggle interpolation. Added this to the UI as well
-
- 26 Apr, 2016 1 commit
-
-
Craig Watson authored
This reverts commit 4aa0ee61.
-
- 09 Mar, 2016 1 commit
-
-
Craig Watson authored
- Sort by Z before duplicating a selection (so that relative Z's are kept) - in UBZLayerController, iterate only through UBGraphicsScene's fast access items, not QGraphicsScene::items
-