morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::ExplorerOptions Struct Reference

What an Explorer shows, and what it reports. More...

#include <explorer.hpp>

Public Attributes

CatalogReply catalog
 The catalog for the current principal: its entries, permitted, and the facts.
Catalog facts
 The client's catalog facts, which "Try it" documents load with; empty uses catalog.facts().
SchemasByModel schemas
 The schemas document of every model the catalog names, by model type.
std::map< std::string, std::shared_ptr< Document const >, std::less<> > documents
 The loaded documents by screen id, the app document under app.
DocumentScreenHost * host = nullptr
 What "Try it" mounts its document through. Borrowed; null offers no "Try it".
std::function< void(std::string const &screenId, std::shared_ptr< Document const > document)> provide
 Called with a "Try it" document before it is mounted, for the host's documents lookup to answer its screen id (tryItScreenId) with; null offers no "Try it".
std::function< void(std::string const &screenId)> onOpen
 Called with a screen id when the person asks to open it.

Detailed Description

What an Explorer shows, and what it reports.

Definition at line 401 of file explorer.hpp.

Member Data Documentation

◆ catalog

CatalogReply morph::ui::ExplorerOptions::catalog

The catalog for the current principal: its entries, permitted, and the facts.

Definition at line 403 of file explorer.hpp.

◆ facts

Catalog morph::ui::ExplorerOptions::facts

The client's catalog facts, which "Try it" documents load with; empty uses catalog.facts().

Definition at line 405 of file explorer.hpp.

◆ schemas

SchemasByModel morph::ui::ExplorerOptions::schemas

The schemas document of every model the catalog names, by model type.

Definition at line 407 of file explorer.hpp.

◆ documents

std::map<std::string, std::shared_ptr<Document const>, std::less<> > morph::ui::ExplorerOptions::documents

The loaded documents by screen id, the app document under app.

Definition at line 409 of file explorer.hpp.

◆ host

DocumentScreenHost* morph::ui::ExplorerOptions::host = nullptr

What "Try it" mounts its document through. Borrowed; null offers no "Try it".

Definition at line 411 of file explorer.hpp.

◆ provide

std::function<void(std::string const& screenId, std::shared_ptr<Document const> document)> morph::ui::ExplorerOptions::provide

Called with a "Try it" document before it is mounted, for the host's documents lookup to answer its screen id (tryItScreenId) with; null offers no "Try it".

Definition at line 415 of file explorer.hpp.

◆ onOpen

std::function<void(std::string const& screenId)> morph::ui::ExplorerOptions::onOpen

Called with a screen id when the person asks to open it.

Definition at line 417 of file explorer.hpp.


The documentation for this struct was generated from the following file: