This commit is contained in:
HueByte
2026-02-22 14:33:18 +00:00
parent 46eb264cab
commit bacd2a3fd5
39 changed files with 4777 additions and 3280 deletions
+6 -207
View File
@@ -815,8 +815,8 @@ Class MainWindow <a class="header-action link-secondary" title="View source" hr
<a id="EchoHub_Client_UI_MainWindow__ctor_" data-uid="EchoHub.Client.UI.MainWindow.#ctor*"></a>
<h3 id="EchoHub_Client_UI_MainWindow__ctor_Terminal_Gui_App_IApplication_" data-uid="EchoHub.Client.UI.MainWindow.#ctor(Terminal.Gui.App.IApplication)">
MainWindow(IApplication)
<h3 id="EchoHub_Client_UI_MainWindow__ctor_Terminal_Gui_App_IApplication_EchoHub_Client_UI_Chat_ChatMessageManager_" data-uid="EchoHub.Client.UI.MainWindow.#ctor(Terminal.Gui.App.IApplication,EchoHub.Client.UI.Chat.ChatMessageManager)">
MainWindow(IApplication, ChatMessageManager)
<a class="header-action link-secondary" title="View source" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Client/UI/MainWindow.cs"><i class="bi bi-code-slash"></i></a>
</h3>
@@ -824,13 +824,15 @@ Class MainWindow <a class="header-action link-secondary" title="View source" hr
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public MainWindow(IApplication app)</code></pre>
<pre><code class="lang-csharp hljs">public MainWindow(IApplication app, ChatMessageManager messageManager)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>app</code> <a class="xref" href="https://github.com/HueByte/Terminal.Gui/blob/master/Terminal.Gui/App/IApplication.cs">IApplication</a></dt>
<dd></dd>
<dt><code>messageManager</code> <a class="xref" href="EchoHub.Client.UI.Chat.ChatMessageManager.html">ChatMessageManager</a></dt>
<dd></dd>
</dl>
@@ -884,109 +886,6 @@ Class MainWindow <a class="header-action link-secondary" title="View source" hr
</h2>
<a id="EchoHub_Client_UI_MainWindow_AddMessage_" data-uid="EchoHub.Client.UI.MainWindow.AddMessage*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_AddMessage_EchoHub_Core_DTOs_MessageDto_" data-uid="EchoHub.Client.UI.MainWindow.AddMessage(EchoHub.Core.DTOs.MessageDto)">
AddMessage(MessageDto)
<a class="header-action link-secondary" title="View source" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Client/UI/MainWindow.cs"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Add a message to the specified channel's message list and refresh if it is the current channel.
Tracks unread count for non-active channels.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddMessage(MessageDto message)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>message</code> <a class="xref" href="../core/EchoHub.Core.DTOs.MessageDto.html">MessageDto</a></dt>
<dd></dd>
</dl>
<a id="EchoHub_Client_UI_MainWindow_AddStatusMessage_" data-uid="EchoHub.Client.UI.MainWindow.AddStatusMessage*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_AddStatusMessage_System_String_System_String_System_String_" data-uid="EchoHub.Client.UI.MainWindow.AddStatusMessage(System.String,System.String,System.String)">
AddStatusMessage(string, string, string)
<a class="header-action link-secondary" title="View source" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Client/UI/MainWindow.cs"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Add a status change message to a channel with colored styling.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddStatusMessage(string channelName, string username, string status)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>channelName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
<dt><code>username</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
<dt><code>status</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<a id="EchoHub_Client_UI_MainWindow_AddSystemMessage_" data-uid="EchoHub.Client.UI.MainWindow.AddSystemMessage*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_AddSystemMessage_System_String_System_String_" data-uid="EchoHub.Client.UI.MainWindow.AddSystemMessage(System.String,System.String)">
AddSystemMessage(string, string)
<a class="header-action link-secondary" title="View source" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Client/UI/MainWindow.cs"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Add a system/informational message to a channel with colored styling.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddSystemMessage(string channelName, string text)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>channelName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
<dt><code>text</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<a id="EchoHub_Client_UI_MainWindow_ApplyColorSchemes_" data-uid="EchoHub.Client.UI.MainWindow.ApplyColorSchemes*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_ApplyColorSchemes" data-uid="EchoHub.Client.UI.MainWindow.ApplyColorSchemes">
@@ -1042,38 +941,6 @@ Call after theme changes to refresh colors.</p>
<a id="EchoHub_Client_UI_MainWindow_ClearChannelMessages_" data-uid="EchoHub.Client.UI.MainWindow.ClearChannelMessages*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_ClearChannelMessages_System_String_" data-uid="EchoHub.Client.UI.MainWindow.ClearChannelMessages(System.String)">
ClearChannelMessages(string)
<a class="header-action link-secondary" title="View source" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Client/UI/MainWindow.cs"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Clear all messages from a specific channel.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void ClearChannelMessages(string channelName)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>channelName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<a id="EchoHub_Client_UI_MainWindow_EnsureChannelInList_" data-uid="EchoHub.Client.UI.MainWindow.EnsureChannelInList*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_EnsureChannelInList_System_String_System_Nullable_System_Boolean__" data-uid="EchoHub.Client.UI.MainWindow.EnsureChannelInList(System.String,System.Nullable{System.Boolean})">
@@ -1167,40 +1034,6 @@ Call after theme changes to refresh colors.</p>
<a id="EchoHub_Client_UI_MainWindow_LoadHistory_" data-uid="EchoHub.Client.UI.MainWindow.LoadHistory*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_LoadHistory_System_String_System_Collections_Generic_List_EchoHub_Core_DTOs_MessageDto__" data-uid="EchoHub.Client.UI.MainWindow.LoadHistory(System.String,System.Collections.Generic.List{EchoHub.Core.DTOs.MessageDto})">
LoadHistory(string, List&lt;MessageDto&gt;)
<a class="header-action link-secondary" title="View source" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Client/UI/MainWindow.cs"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Load historical messages into a channel, replacing any existing messages.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void LoadHistory(string channelName, List&lt;MessageDto&gt; messages)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>channelName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
<dt><code>messages</code> <span class="xref">List</span>&lt;<a class="xref" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Core/DTOs/ChatDtos.cs">MessageDto</a>&gt;</dt>
<dd></dd>
</dl>
<a id="EchoHub_Client_UI_MainWindow_RefreshMenuBar_" data-uid="EchoHub.Client.UI.MainWindow.RefreshMenuBar*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_RefreshMenuBar" data-uid="EchoHub.Client.UI.MainWindow.RefreshMenuBar">
@@ -1260,40 +1093,6 @@ Call after theme changes to refresh colors.</p>
<a id="EchoHub_Client_UI_MainWindow_RemoveMessage_" data-uid="EchoHub.Client.UI.MainWindow.RemoveMessage*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_RemoveMessage_System_String_System_Guid_" data-uid="EchoHub.Client.UI.MainWindow.RemoveMessage(System.String,System.Guid)">
RemoveMessage(string, Guid)
<a class="header-action link-secondary" title="View source" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Client/UI/MainWindow.cs"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Remove all lines associated with a specific message ID.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void RemoveMessage(string channelName, Guid messageId)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>channelName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
<dt><code>messageId</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a></dt>
<dd></dd>
</dl>
<a id="EchoHub_Client_UI_MainWindow_SetChannelTopic_" data-uid="EchoHub.Client.UI.MainWindow.SetChannelTopic*"></a>
<h3 id="EchoHub_Client_UI_MainWindow_SetChannelTopic_System_String_System_String_" data-uid="EchoHub.Client.UI.MainWindow.SetChannelTopic(System.String,System.String)">
@@ -1367,7 +1166,7 @@ Call after theme changes to refresh colors.</p>
<a class="header-action link-secondary" title="View source" href="https://github.com/HueByte/EchoHub/blob/master/src/EchoHub.Client/UI/MainWindow.cs"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Set the current user name for display in the status bar.</p>
<div class="markdown level1 summary"><p>Set the current user name (delegates to message manager for @mention detection).</p>
</div>
<div class="markdown level1 conceptual"></div>