Manager
Object Hierarchy:
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);
Content:
Properties:
Creation methods:
Methods:
Fields:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref