Post by Uncle Buddy on Nov 25, 2022 19:08:30 GMT -8
I just finished posting the last of the code that's current as of today.
A simple navigation page is now at treebard.com/repo.html.
The app now gives you the ability to add images to the tree and then to link or unlink them to persons, places, and sources. Or to delete them from the tree. You can keep your original wherever you want on your computer, and Treebard doesn't move or alter them, Treebard copies them into the project folder. In case you want to know, Treebard does not store images in the database, it stores references to them. This means you can't go looking for the project images folder to add and delete stuff in Windows file explorer, you have to do all file stuff from the Treebard GUI or Treebard will freak out. We're doing it this way in the interest of keeping Treebard more portable and less technical, easier for amateur developers to play around with.
I've also added a do list feature. This appears in the TabBook instance called `right_panel`. It appears on the person page with currently two tabs, `Images` and `Do List`. If the user opts out of using default images, then any person who has no images linked to him will have the do list appear on top of the tab book instead of a blank images tab. These images (default image or main image if any) display as large thumbnails on big buttons which open galleries. From the person tab, place tab, and source tab you can open galleries for person images, place images, or source images respectively. The Gallery class has also been rewritten in this commit.
It's possible that this is also the first commit where the conclusions table fields have to be double-clicked to make them editable. Anyway, it's a fairly new and big change. It's less convenient for editing the table but it allowed me to get rid of very wide columns by using Label widgets instead of Entry widgets in the table cells. If you want to edit a cell, double-click it and an Entry will overlay the Label along with an OK and CANCEL button.
I've also started the code which will populate the graphics tab with simple tools for rudimentary graphics manipulations. The cropping tool has already been made but not incorporated into the GUI yet.
All these changes were done as an interruption to the rewriting of the PersonAdd class in persons.py, and that work had been begun as an interruption of the new video series which will show Treebard being used to create a family tree from scratch. In the next commit I hope to present a usable graphics tab and the new person add feature, which will also include the ability to delete a person from the tree. The feature already includes the ability to add any number of optionally resized images to a person at the same time that you create the person. The reason for the interruption was to rewrite the Gallery class, and then that project just up and blossomed. After that commit, I hope to make video #2 of the new series and post the series on rumble.com.
A simple navigation page is now at treebard.com/repo.html.
The app now gives you the ability to add images to the tree and then to link or unlink them to persons, places, and sources. Or to delete them from the tree. You can keep your original wherever you want on your computer, and Treebard doesn't move or alter them, Treebard copies them into the project folder. In case you want to know, Treebard does not store images in the database, it stores references to them. This means you can't go looking for the project images folder to add and delete stuff in Windows file explorer, you have to do all file stuff from the Treebard GUI or Treebard will freak out. We're doing it this way in the interest of keeping Treebard more portable and less technical, easier for amateur developers to play around with.
I've also added a do list feature. This appears in the TabBook instance called `right_panel`. It appears on the person page with currently two tabs, `Images` and `Do List`. If the user opts out of using default images, then any person who has no images linked to him will have the do list appear on top of the tab book instead of a blank images tab. These images (default image or main image if any) display as large thumbnails on big buttons which open galleries. From the person tab, place tab, and source tab you can open galleries for person images, place images, or source images respectively. The Gallery class has also been rewritten in this commit.
It's possible that this is also the first commit where the conclusions table fields have to be double-clicked to make them editable. Anyway, it's a fairly new and big change. It's less convenient for editing the table but it allowed me to get rid of very wide columns by using Label widgets instead of Entry widgets in the table cells. If you want to edit a cell, double-click it and an Entry will overlay the Label along with an OK and CANCEL button.
I've also started the code which will populate the graphics tab with simple tools for rudimentary graphics manipulations. The cropping tool has already been made but not incorporated into the GUI yet.
All these changes were done as an interruption to the rewriting of the PersonAdd class in persons.py, and that work had been begun as an interruption of the new video series which will show Treebard being used to create a family tree from scratch. In the next commit I hope to present a usable graphics tab and the new person add feature, which will also include the ability to delete a person from the tree. The feature already includes the ability to add any number of optionally resized images to a person at the same time that you create the person. The reason for the interruption was to rewrite the Gallery class, and then that project just up and blossomed. After that commit, I hope to make video #2 of the new series and post the series on rumble.com.