FOSSredder 0.5.0
Loading...
Searching...
No Matches
ui::window Namespace Reference

Classes

class  CloseWorkflow
 Coordinates close requests that may need a pending workspace save. More...
struct  DropEventOutcome
 Result of handling a drag/drop event. More...
class  DropHandler
 Extracts local file drops from Qt drag/drop events. More...
struct  MainWindowServices
 Container for shell services owned by the main window context. More...

Functions

MainWindowServices installMainWindowContext (QQmlEngine *qmlEngine, QObject *parent)
 Creates shell services used by the main window and QML context.
void wireMainWindowActions (MainWindow &window, const MainWindowServices &services, const std::shared_ptr< core::ports::diagnostics::IErrorReporter > &errorReporter, const std::function< void()> &showAbout)
 Wires main window actions to dialogs, status text and window signals.
core::errors::ErrorContext makePathContext (const QString &path)
 Builds trace context for a single filesystem path.
core::errors::ErrorContext makeFileListContext (const QStringList &files)
 Builds trace context for a list of selected or dropped files.
void reportMainWindowFlow (core::ports::diagnostics::IErrorReporter *reporter, const char *origin, std::string message, core::errors::ErrorSeverity severity=core::errors::ErrorSeverity::Info, core::errors::ErrorContext context={})
 Emits a structured main-window flow diagnostic.

Function Documentation

◆ installMainWindowContext()

MainWindowServices ui::window::installMainWindowContext ( QQmlEngine * qmlEngine,
QObject * parent )

Creates shell services used by the main window and QML context.

Parameters
qmlEngineQML engine bound to runtime language switching.
parentQObject parent that owns the created services.
Returns
Bundle of created shell services.

Definition at line 32 of file MainWindowContext.cpp.

Here is the call graph for this function:

◆ makeFileListContext()

core::errors::ErrorContext ui::window::makeFileListContext ( const QStringList & files)
inline

Builds trace context for a list of selected or dropped files.

Parameters
filesFiles selected through a dialog or dropped into the UI.
Returns
Error context containing the count and first file when available.

Definition at line 33 of file MainWindowTrace.h.

Here is the caller graph for this function:

◆ makePathContext()

core::errors::ErrorContext ui::window::makePathContext ( const QString & path)
inline

Builds trace context for a single filesystem path.

Parameters
pathFilesystem path reported by the main window flow.
Returns
Error context containing the path.

Definition at line 23 of file MainWindowTrace.h.

◆ reportMainWindowFlow()

void ui::window::reportMainWindowFlow ( core::ports::diagnostics::IErrorReporter * reporter,
const char * origin,
std::string message,
core::errors::ErrorSeverity severity = core::errors::ErrorSeverity::Info,
core::errors::ErrorContext context = {} )
inline

Emits a structured main-window flow diagnostic.

Parameters
originStable origin identifier.
messageHuman-readable diagnostic message.
severityDiagnostic severity.
contextOptional structured diagnostic context.

Definition at line 49 of file MainWindowTrace.h.

Here is the caller graph for this function:

◆ wireMainWindowActions()

void ui::window::wireMainWindowActions ( MainWindow & window,
const MainWindowServices & services,
const std::shared_ptr< core::ports::diagnostics::IErrorReporter > & errorReporter,
const std::function< void()> & showAbout )

Wires main window actions to dialogs, status text and window signals.

Parameters
windowMain window receiving action callbacks.
servicesShell service bundle containing actions and status state.
showAboutCallback that opens the about dialog.

Definition at line 55 of file MainWindowContext.cpp.

Here is the call graph for this function: