FOSSredder 0.5.0
Loading...
Searching...
No Matches
MainWindowContext.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <functional>
9#include <memory>
10
11class MainWindow;
12class QObject;
13class QQmlEngine;
14
16class IErrorReporter;
17}
18
19namespace ui {
20class Actions;
22class LanguageService;
23class Navigation;
24class Settings;
25class Status;
29class WorkspaceStore;
30} // namespace ui
31
32namespace ui::window {
33
49
57 QObject* parent);
58
66 const MainWindowServices& services,
67 const std::shared_ptr<
69 errorReporter,
70 const std::function<void()>& showAbout);
71
72} // namespace ui::window
Port for reporting structured diagnostic error events.
Owns the main window actions and exposes them to QML.
Definition AppActions.h:18
Exposes directory listing and application-directory lookup to QML.
Manages the active UI language and the available translation options.
Stores the active top-level shell section and settings sub-section.
Definition Navigation.h:15
Stores and exposes globally persisted UI settings for settings-related views.
Definition Settings.h:19
Exposes the shell status text shown by the main window.
Definition Status.h:16
Maps UI intent to core workspace writer commands.
Tracks the currently selected workspace entities.
Projects workspace store data into QML-facing read models.
Owns the current UI-side workspace snapshot and revision lifecycle.
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.
Container for shell services owned by the main window context.
ui::WorkspaceSelection * workspaceSelection
ui::WorkspaceCommands * workspaceCommands
ui::WorkspaceSelectors * workspaceSelectors
ui::LanguageService * languageService
ui::WorkspaceStore * workspaceStore
ui::FileSystemBrowser * fileSystemBrowser