-
Notifications
You must be signed in to change notification settings - Fork 49
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
Loader GUI subset grouping #391
Conversation
Visually this is great, very very nice work David! :) I will still need to check the code itself though. Grouped iconAnyway, first a note. The grouped entries have I wonder what others think about that. The group icon however looks totally fine to me.. but, that would be one that makes more sense to me to somehow become the opaque folder. ;) |
Does it even need a different icon? |
I made a few changes and updates, including current icon restored. :)
Here's the GIF: Predefined groups (pretty groups)Like {
"name": "Trash Bin", # Must
"icon": "trash-o", # Optional
"color": "#c4cedc", # Optional, icon color
"order": -99 # Optional, `float` or `int`, default 0
} SortingGroups in Loader GUI are sorting by the "order" attribute, not by it's name, and only sort with other groups. Grouping subsetsBy injecting the group name into If the group name could not be found in the project Please let me know what you think :) |
Visually that is so clever - very nice @davidlatwe!
Does this mean the model.set_sorter()?The Like could we add the prefix of the group (0 or 1) to return prefix + super(SubsetsModel, self).data(index, role) So that we don't have to somehow go through the "Sorter" to get the right column and query the data of it ourselves. I wonder how Qt knows what column it needs to return in that case? Or is this only the case because you are setting the Sort Role explicitly? Somehow the assigning of the sorter feels off. Can this work simpler by avoiding it? |
Sorry, forgot to push the latest commit after leaving the comment 0.0 |
Oh no, the reason why I need that was to query for which direction it's sorting (here). Just pushed the update, and it's a bit more complex then the time you commented. :P Edit:I could not find other way to get the current |
I haven't test it ! |
I see. I think the idea is to actually adjust the Sorter itself and ignore it inside the model. ;) So the Sorter model decides completely what to do. However, of course the model could include the |
Hehe, I think I've figured out a way to implement this in a cleaner way ! |
Ok, I believe this is better than previous implementation :) |
Thanks for the update! I think we can slim it down even further, I'll try to pull your version and see if my idea could work out. Not sure if I get to it today though. :) |
Welcome to give it a try :D |
Turns out the project config schema indeed requires an update. Added ! |
Added one more commit for command |
The test has been fixed :D |
How about option 3:
|
Yes, I think Avalon would need this. Once we implemented this in the api, should make us a bit easier to accept other feature that is convenient but dangers. |
I've started to give this a test run - and it's pretty sweet. Nice work @davidlatwe . However, I did notice some issues.
Additionally, I'd love one other minor feature - the possibility to disable the grouping. I'm thinking of adding a Other than that, really amazing work :D |
Thanks for testing out @BigRoy !! I will have a closer look on those issues tomorrow and see if I can resolve them :D
I think this would be useful, let's do this. |
This also changed the key event type to `keyPressEvent`.
This will also resize child row's columns on group item's expanding automatically, but the size will be fixed and user can not resize them.
Okay, I think I have solved them all !
|
That looks amazingly smooth @davidlatwe - perfect work! |
Merge? |
Merge ! |
Feature - Visually grouping subsets in Loader GUI
This grouping feature is on subset level, and the group name is from the subset document's
data.subsetGroup
field.So to trigger subset grouping, you need to inject
subsetGroup
entry to the subset document data during publish. Or maybe another little tool for it ?Welcome to give any inputs :)
Update
See comment below