From ab3e0439e12dee592a8f6fe2a968e4bb429a60f8 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sun, 22 Dec 2024 18:28:32 +0000 Subject: Adds other views --- schist_gtk4_gui/src/window.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'schist_gtk4_gui/src/window.rs') diff --git a/schist_gtk4_gui/src/window.rs b/schist_gtk4_gui/src/window.rs index b612e92..b3cea35 100644 --- a/schist_gtk4_gui/src/window.rs +++ b/schist_gtk4_gui/src/window.rs @@ -19,7 +19,11 @@ use gtk::{ TemplateChild, }; -use crate::categories_view::SchistCategoriesView; +use crate::{ + balances_view::SchistBalancesView, categories_view::SchistCategoriesView, + category_transfers_view::SchistCategoryTransfersView, + transactions_view::SchistTransactionsView, +}; gtk::glib::wrapper! { pub struct SchistWindow(ObjectSubclass) @@ -37,8 +41,17 @@ impl SchistWindow { #[derive(gtk::CompositeTemplate, Default)] #[template(resource = "/net/joeac/schist/ui/window.ui")] pub struct SchistWindowSubclass { + #[template_child] + pub balances_view: TemplateChild, + #[template_child] pub categories_view: TemplateChild, + + #[template_child] + pub category_transfers_view: TemplateChild, + + #[template_child] + pub transactions_view: TemplateChild, } #[glib::object_subclass] -- cgit v1.2.3