From 2507f9b4d4ebb0ec975b5f8544a051786701de8c Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 20 Aug 2021 14:28:45 -0700 Subject: [PATCH] Stub in a ChatPanel --- zed/src/chat_panel.rs | 23 +++++++++++++++++++++++ zed/src/lib.rs | 1 + 2 files changed, 24 insertions(+) create mode 100644 zed/src/chat_panel.rs diff --git a/zed/src/chat_panel.rs b/zed/src/chat_panel.rs new file mode 100644 index 0000000000..ec9f3f486f --- /dev/null +++ b/zed/src/chat_panel.rs @@ -0,0 +1,23 @@ +use super::channel::{Channel, ChannelList}; +use gpui::{Entity, ModelHandle, View}; + +pub struct ChatPanel { + channel_list: ModelHandle, + active_channel: Option>, +} + +pub enum Event {} + +impl Entity for ChatPanel { + type Event = Event; +} + +impl View for ChatPanel { + fn ui_name() -> &'static str { + "ChatPanel" + } + + fn render(&self, cx: &gpui::RenderContext<'_, Self>) -> gpui::ElementBox { + todo!() + } +} diff --git a/zed/src/lib.rs b/zed/src/lib.rs index 4cec473dfc..445647010c 100644 --- a/zed/src/lib.rs +++ b/zed/src/lib.rs @@ -1,5 +1,6 @@ pub mod assets; pub mod channel; +pub mod chat_panel; pub mod editor; pub mod file_finder; pub mod fs;