Loading...
Searching...
No Matches
Process::EditorOverlayHost Class Referencefinal

A code editor drawn over a live preview of what it edits. More...

Inheritance diagram for Process::EditorOverlayHost:

Detailed Description

A code editor drawn over a live preview of what it edits.

Central view for live coding: the document's background (a Background device, a watched texture port) takes the whole area and the editor sits on top of it without any background, so that the result of a compile is visible without leaving the code.

The host follows its two widgets: it closes when its editor goes away, and shows the editor opaque again if the preview does.

Public Member Functions

 EditorOverlayHost (QWidget *editor, QWidget *preview, QWidget *parent=nullptr)
 
QWidget * editor () const noexcept
 
QWidget * preview () const noexcept
 
QWidget * releaseEditor ()
 Takes the editor out of the host, which then closes itself.
 

Protected Member Functions

void closeEvent (QCloseEvent *e) override
 

The documentation for this class was generated from the following files: