Manager


Object Hierarchy:

Object hierarchy for Manager

Description:

public class Manager : Object

Subscribes to the chat shell and decides which section is visible. The desktop window constructs this after the chat bar and the right pane exist. is_phone is true only for the Android phone stack, where the pane replaces the transcript. is_android is true for that phone and for a tablet. The desktop leaves both false and resizes with WindowPane. Android.AgentManager overrides the pane on that build. This class creates the browser and editor buttons. The agent dropdown stays on the window.

The browser is shown when OLLMchatGtk.ChatBar.tool_toggle is browser and active, when that tool emits OLLMchat.Tool.UiWidgets.show_view while the editor strip is up, and when OLLMchat.History.Manager.agent_activated or OLLMchat.History.Manager.session_restored fires for an agent with no editor while the browser page is already the visible child. It is hidden when that toggle turns off while the editor strip is down, when an editor agent is activated, and when a non-editor agent is activated while some other page is visible.

The editor is shown when those signals fire for a factory whose OLLMchat.Agent.Factory.has_editor is true. The page name is {factory}-widget. It is hidden when OLLMchat.History.Manager.agent_deactivated fires for an editor factory, and when a tool page replaces it.

Chat, with the side pane hidden, is shown when a tool toggle turns off while the editor strip is down, when an editor agent is left, and when a non-editor agent is activated while the browser is not already up. On a phone the browser or the editor replaces the transcript. A tablet and the desktop keep the transcript beside the pane.

OLLMchat.ChatDesktopInterface.notification method client.filesd.unreachable asks Retry or Close. Retry emits client.filesd.retry. Close starts a Chatter session, which emits OLLMchat.History.Manager.agent_deactivated and hides the editor. Close does not quit.

Example

var manager = new OLLMapp.Agent.Manager(window);


Namespace: OLLMapp.Agent
Package: ollmchat

Content:

Properties:

Creation methods:

Methods:

Fields:

Inherited Members:

All known members inherited from class GLib.Object