Commit Graph

9 Commits

Author SHA1 Message Date
55b6327d42 Open the welcome screen if the database is not available 2024-02-19 16:27:11 -05:00
9727d35116 Resolve clippy warnings
Warnings were mounting up. It was time to resolve them before attempting a massive rebase.
2024-02-07 23:36:03 -05:00
1fe318068b Set up a view model for the day detail view 2024-01-20 11:16:31 -05:00
18e7e4fe2f Start setting up the day detail view model
I've created the view model and added a getter function for the weight.
I'm passing the view model now to the DayDetailView, DayDetail, and
DayEdit.

I'm starting to set up the Save function for the view model, draining
all of the updated records and saving them.

None of the components yet save any updates to the view model, so
updated_records is always going to be empty until I figure that out.
2024-01-18 09:00:08 -05:00
1e6555ef61 Create a day detail view
DayDetail, the component, I used to use as a view. Now I'm swapping
things out so that DayDetailView handles the view itself. The DayDetail
component will still show the details of the day, but I'll create a
DayEditComponent which is dedicated to showing the edit interface for
everything in a day.

The swapping will now happen in DayDetailView, not in DayDetail or an
even deeper component.
2024-01-15 15:53:01 -05:00
d269924827 Refactorings and dead code removal 2023-12-28 22:20:30 -05:00
fe5e4ed044 Save the views as their original widgets
This allows me to directly reference functions that occur on those
widgets without losing them behind a gtk::Widget upcast or needing to
later downcast them.
2023-12-28 12:59:29 -05:00
3a728a51b4 Extract the application loop from the main file 2023-12-22 15:17:22 -05:00
f19090311b Extract all of the UI components into dedicated files 2023-12-22 15:17:22 -05:00