Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a dedicated fill and replace tool #345

Draft
wants to merge 145 commits into
base: master
Choose a base branch
from
Draft

Conversation

gentlegiantJGC
Copy link
Member

@gentlegiantJGC gentlegiantJGC commented Jun 26, 2021

This still needs a lot of work

Made type name a property
This can be managed by the version change
This adds the block define panel to a dialog and hooks it up to the block button.
Formatting changes.
Bug fixes.
Added the operations to a scrollable panel
When run this will show all of the UI elements making testing easier
Removed wildcard mode. This is going to get its own class that can do more.
This still needs some work
Cleaned up events
Added extra_properties to multiple variants
By adding * in the inputs means that the keyword arguments cannot be given as normal arguments.
This should make it a lot easier to add keyword arguments in the future
Renamed to ChoiceRaw which seems like a better name.
Kept the old name for backwards compatibility.
Added choices input in init.
Added option to set from tuple of (obj, str). Dict is a bit limited because each key must be hashable and unique.
Added SetObject method
Also partially rewritten the single properties
If the default is not found it will auto to the first option
If the data was not known it would throw an error.
Once that was fixed it just set a blank dictionary.
Added is_supported property to check if the data has a specification file.
Simplified the multi select popup to handle only strings.
Added a property to define valid states in the state manager.
Events were being fired twice because they were being run in the set logic rather than the on change logic.
Moved the firing logic to the UI elements that the user changes.
Fixed some issues in the state manager.
This will make it so that each class does not need to store the translation manager as well.
Parent arguments are passed through as kwargs rather than redeclaring each argument.
Added support to limit platforms and block formats within the state. This was previously done in the UI.
The previous init method could be given either a state class or the translation manager and optional data from which the state would be constructed.
This was needlessly complicated.
The new init method is given just the state. That can be constructed and given or the classmethod from_data will create it and pass it to the init emulating the old behaviour.
Added a copy method which seems better than requiring the copy library.
Added a list to the state holder to store child state holders. When the state is set these will be notified of the new state.
The methods have been moved to a base class.
The stored state must now be an instance of StrEnum to allow other places to define their own enum extensions.
The text is now updated automatically when the state is changed.
The child size event is fired when the state changes.
The state of the widget is set to None so that the methods bound to the state get unloaded.
@CLAassistant
Copy link

CLAassistant commented May 11, 2022

CLA assistant check
All committers have signed the CLA.

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.

2 participants