I remember a schedule / todo application for BeOS where each “To-Do” element and “Schedule” appointment were a file with different custom attributes (in a similar approach to Mail and People file). I do not remember the name, but was something like “BeOrganized” or something like that.
Looks good so far,but I’d probably use a BGridLayout to have all input fields nicely arranged below each other with the same size.
You can use something like that:
One of them creates a new view and adds it to the parent view.
The other one directly takes a view and add widgets to it.
So if you do this:
BView* grid = new BView(...);
grid->AddChild(BLayoutBuilder::Grid<>(...));
You have two views, one inside the other.
But if you do this:
BView* grid = new BView(...);
BLayoutBuider::Grid<>(grid, ...);
You have only one view. The layout builder will jsut attach a layout to the existing view. You use less memory for the same thing, your window is easier to debug, etc.
Thanks for pointing me to that.
I have used the AddChild variant because that’s what’s documented at Laying It All Out, Part 1 | Haiku Project which is slightly outdated (but still extremely useful for getting started with the Layout Kit) anyway.
Now I’ll have to rewrite my app again to use the other way
It’s starting to look as a graphical generic File Attributes editor, right?
If it can support in an user friendly way the edition of attribute of complex types, like image (for Person image attribute, for instance), but also support attributes “flags” to allow an attribute to be present only once or multiples times, I’m all for it.
Doesn’t matter yet, as some app can register its own file type with its own attributes list, including attributes of type not supported currently by FileTypes preflet.
But, indeed, for more flexibility, FileTypes preflet may need to be improve to allow user to add attributes of some more complex type
I’m a bit confused, these DVD attributes would normally be on a file representing that DVD. Why are they here “on their own”? if both cases exist that may confuse a bit.
The main usecase for these “indexed” attributes is not that the People app can view them, but that the mail app can!
You can habe People files wherever you want on your filesystem and Mail will still find them and let you shoot them an email!
In the same vain a dvd player software would be able to find and list your dvds based on their dvd title for example.
I’m not trying to critizise your idea, but curious what you want to use this for.
Maybe we should not focus on this DVD attributes use case.
The idea behing this application is that as the MIME types attributes attached to a data file can be visualized/edited (when possible) under the Tracker, it could be nice to have the same in one application.
For instance in today’s audio MIME type, the below attributes are available. Some of them are editable via the Tracker and so this application will allow to have an easy way also to view/edit all attributes :