Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::anonymous_namespace{qmlwindowtools.cpp} Namespace Reference

Classes

class  QmlEventBridge
 The sonde object of every window's context: re-emits Sonde's events for QML. More...
class  QmlWindowApi
 A window's own sonde object: Sonde's events, the window's settings and objects, and what QML can't find out by itself about objects and values (design 0034). More...
struct  OpenWindow
 One window opened by ui_open. More...
struct  WindowObject
 An object to give a window, and whether its spec is a template's default. More...
struct  QmlSource
 What to create a window from. More...
class  QmlWindows
 The windows ui_open opened, their engine, and the tools' logic. More...

Functions

constexpr QSize kDefaultSize (400, 300)
 Size of a window whose QML gives none.
QStringList errorLines (const QList< QQmlError > &errors)
 "line:column: message" for each error.
void addOpenTool (Server &server, QmlWindows *windows)
 Registers ui_open on server.

Variables

constexpr int kMaxWindows = 16
 Most windows ui_open keeps open at once.
constexpr int kMinEdge = 50
 Smallest and largest window edge the tool accepts, in logical pixels.
constexpr int kMaxEdge = 4096
 See kMinEdge.
constexpr const char * kMarker = "sondeCreatedWindow"
 Dynamic property that marks the windows this tool created (window_list shows it).
constexpr int kTrustAnswerMs = 2 * 60 * 1000
 How long ui_open waits for the user to answer a trust request.
constexpr int kMaxTrustRounds = 8
 Most trust requests for one call (each can find files the last one hid).