Camel1965

Bardzo aktywny
Zasłużony
Dołączył
8 Wrzesień 2010
Posty
37862
Reakcje/Polubienia
33969

TreeSheets 8482864821

Put clipboard data on the system stack (#617)

The clipboard data structures are created by the first document on the
heap and then are subsequently overridden by other documents.

It can be a better design to put the clipboard data into one central place
on the stack of `System` as it is available during the lifetime of the
program.
Zaloguj lub Zarejestruj się aby zobaczyć!
 

Camel1965

Bardzo aktywny
Zasłużony
Dołączył
8 Wrzesień 2010
Posty
37862
Reakcje/Polubienia
33969

TreeSheets 8504377142

Avoid wxDataObjectComposite for pasting (#619)

* Avoid wxDataObjectComposite for pasting

wxDataObjectComposite does not work properly on Wayland for text atoms,
so avoid it.

In addition to that, the paste operation wxDataObjects for text, image and
file name can be handled completely on the stack.

Only the drag and drop operation still requires an composite data object
on the heap, so handle it separately.

* Add comment to document the rationale of the change

* Only refresh once after paste or drop operation
Zaloguj lub Zarejestruj się aby zobaczyć!
 

Camel1965

Bardzo aktywny
Zasłużony
Dołączył
8 Wrzesień 2010
Posty
37862
Reakcje/Polubienia
33969

TreeSheets 8561752311

Keep track of images undergoing manipulation (#620)

* Keep track of images undergoing manipulation

Prior to this commit, the image operation got executed on each image in
the cells of the selection per cell.

The issue was that if the same image was referenced in multiple cells in
the selection, the operation was executed per cell, thus on the same image
multiple times.

In order to prevent this, keep track of all images and the cells
referring to them in the selection, to execute the image operation
only once on each image and to reset the layout of the referencing cells.

* Also reset children

Before this commit, the layout did not fit to the updated image dimensions in some cases.
Zaloguj lub Zarejestruj się aby zobaczyć!
 

Camel1965

Bardzo aktywny
Zasłużony
Dołączył
8 Wrzesień 2010
Posty
37862
Reakcje/Polubienia
33969

TreeSheets 8575186124

Place Drag and Drop data structures per document

When a page gets closed, the destructor of DropTarget is called
that also frees the associated data. If we maintain only one data
structure associated with each DropTarget of each page, it tries to
free this data structure multiple times, resulting in a crash.

To avoid this, keep a Drag and Drop data structure in each document.
Zaloguj lub Zarejestruj się aby zobaczyć!
 

Camel1965

Bardzo aktywny
Zasłużony
Dołączył
8 Wrzesień 2010
Posty
37862
Reakcje/Polubienia
33969
TreeSheets 8589805436
Apply changes from clang-format (#622)

* Apply clang-format on main.cpp

* Apply clang-format on document.h

* Apply clang-format on cell.h

* Apply clang-format on grid.h

* Apply clang-format on myframe.h

* Apply clang-format on myapp.h

* Apply clang-format on mycanvas.h

* Apply clang-format on mywxtools.h

* Apply clang-format on selection.h

* Apply clang-format on stdafx.h

* Apply clang-format on tools.h

* Apply clang-format on threadpool.h

* Apply clang-format on script_interface.h

* Apply clang-format on system.h

* Apply clang-format on text.h

* Apply clang-format on treesheets_impl.h

* Apply clang-format on evaluator.h
Zaloguj lub Zarejestruj się aby zobaczyć!
 
Ostatnia edycja:
Do góry