55 lines
1.6 KiB
Rust
55 lines
1.6 KiB
Rust
/*
|
|
* advotracker - Hotline tackingtool for Advocats
|
|
*
|
|
* Copyright 2020 Ralf Zerres <ralf.zerres@networkx.de>
|
|
* SPDX-License-Identifier: (0BSD or MIT)
|
|
*/
|
|
|
|
use orbtk::prelude::*;
|
|
|
|
use crate::data::structures::PolicyCheck;
|
|
use crate::widgets::policycheck_view::PolicyCheckView;
|
|
|
|
widget!(MainView {
|
|
// policy_list: PolicyList,
|
|
// policy_data_list: PolicyDataList,
|
|
// policylist_view: u32,
|
|
// policydata_view: u32,
|
|
// policydata_view: u32,
|
|
policy_number_count: usize,
|
|
policycheck_view: u32
|
|
});
|
|
|
|
impl Template for MainView {
|
|
fn template(self, _id: Entity, ctx: &mut BuildContext<'_>) -> Self {
|
|
let policycheck_view = PolicyCheckView::new()
|
|
//.policy_number_count(0)
|
|
//.policylist_view(id)
|
|
.build(ctx);
|
|
|
|
// let policylist_view = PolicyListView::new()
|
|
// .back_entity(policycheck_view.0)
|
|
// .policydata_view(id)
|
|
// .policylist_view(id)
|
|
// .policy_list_count(id)
|
|
// .build(ctx);
|
|
|
|
// let policydata_view = PolicyDataView::new()
|
|
// .back_entity(policylist_view.0)
|
|
// .policylist_view(id)
|
|
// .visibility("collapsed")
|
|
// .build(ctx);
|
|
|
|
self.name("MainView")
|
|
.policy_number_count(0)
|
|
//.policycheck_view(PolicyCheck::default())
|
|
// //.policycheck_view(0)
|
|
// .policydata_view(policydata_view.0)
|
|
// //.policylist_view(PolicyList::default())
|
|
// .policylist_view(policylist_view.0)
|
|
// .child(policydata_view)
|
|
// .child(policylist_view)
|
|
.child(policycheck_view)
|
|
}
|
|
}
|