From 413afad1fdf1d15fefc1b709f2eba1332a110608 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 12 Feb 2026 20:00:26 +0000 Subject: task-085: uses new iced::widget::Table instead of home-made widget --- schist_desktop_gui/src/gui/components/table.rs | 55 -------------------------- 1 file changed, 55 deletions(-) delete mode 100644 schist_desktop_gui/src/gui/components/table.rs (limited to 'schist_desktop_gui/src/gui/components/table.rs') diff --git a/schist_desktop_gui/src/gui/components/table.rs b/schist_desktop_gui/src/gui/components/table.rs deleted file mode 100644 index 68090c1..0000000 --- a/schist_desktop_gui/src/gui/components/table.rs +++ /dev/null @@ -1,55 +0,0 @@ -use std::collections::HashMap; - -mod view_table; - -#[derive(Clone, Debug, Default)] -pub struct Table -where - Ix: Clone + std::fmt::Debug, -{ - pub cols: Vec>, - pub rows: Vec>, -} - -#[derive(Clone, Debug)] -pub enum Value { - String(String), - Currency(i32), -} - -#[derive(Clone, Debug)] -pub struct Column -where - Ix: Clone + std::fmt::Debug, -{ - pub index: Ix, - pub name: String, - pub width: f32, -} - -impl Column -where - Ix: Clone + std::fmt::Debug, -{ - pub fn new(index: Ix, name: &str) -> Self { - Self { - index, - name: name.to_string(), - width: 128.0, - } - } - - pub fn width(&self, width: f32) -> Self { - Self { - width, - ..self.clone() - } - } - - pub fn mul_width(&self, mul: f32) -> Self { - self.width(self.width * mul) - } -} - -#[derive(Clone, Debug)] -pub enum Message {} -- cgit v1.2.3