Skip to content

Feature/size and widgets#41

Merged
MathisFederico merged 15 commits intomasterfrom
feature/size_and_widgets
Nov 18, 2021
Merged

Feature/size and widgets#41
MathisFederico merged 15 commits intomasterfrom
feature/size_and_widgets

Conversation

@vanyle
Copy link
Contributor

@vanyle vanyle commented Nov 18, 2021

We now use widgets to display elements inside the code blocks.

This fixes multiple resizing bugs, makes the resizable area easier to change and gives better resizing for the python editor.

Moreover, this hugely improves the code quality by removing huge chunks of unused code.

@vanyle vanyle force-pushed the feature/size_and_widgets branch from 0deb6e8 to d9b63ff Compare November 18, 2021 17:00
@MathisFederico
Copy link
Member

A few points while testing

  • Resizing corner does not exactly follow the mouse
  • (Optional) When resizing corner, the code size should be constant

Copy link
Member

@MathisFederico MathisFederico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few things to fix, but a very nice refactor of blocks !

Copy link
Member

@MathisFederico MathisFederico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see buttons when running main ...

This was linked to issues Nov 18, 2021
Copy link
Member

@MathisFederico MathisFederico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing lead to a few things to change:

  • Widget states (slider position, output pannel size, ...) are not serialized / deserialized meaning not saved and reloaded, and not kept when copy / pasting.
  • Button should be at the left of the title, it takes more space when behind the number line.

- Moves the position of the "Run" button to title bar.
- Saves the position of the splitter to a file
- Resize events can now be undone
- Increases the size of the undo stack to 50

Note that a test is changed because you cannot drag a block from the button.
…people from introducing bugs by blindingly following linter advice;
Copy link
Member

@MathisFederico MathisFederico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now !

@MathisFederico MathisFederico merged commit dc07c9e into master Nov 18, 2021
@MathisFederico MathisFederico deleted the feature/size_and_widgets branch November 18, 2021 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert blocks to widget Collapse the code part of a code block

2 participants