summaryrefslogtreecommitdiff
path: root/schist_desktop_gui/src/gui/components/table.rs
diff options
context:
space:
mode:
Diffstat (limited to 'schist_desktop_gui/src/gui/components/table.rs')
-rw-r--r--schist_desktop_gui/src/gui/components/table.rs55
1 files changed, 0 insertions, 55 deletions
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<Ix>
-where
- Ix: Clone + std::fmt::Debug,
-{
- pub cols: Vec<Column<Ix>>,
- pub rows: Vec<HashMap<Ix, Value>>,
-}
-
-#[derive(Clone, Debug)]
-pub enum Value {
- String(String),
- Currency(i32),
-}
-
-#[derive(Clone, Debug)]
-pub struct Column<Ix>
-where
- Ix: Clone + std::fmt::Debug,
-{
- pub index: Ix,
- pub name: String,
- pub width: f32,
-}
-
-impl<Ix> Column<Ix>
-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 {}