FOSSredder 0.5.0
Loading...
Searching...
No Matches
MainWindow Class Reference

#include <MainWindow.h>

Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:

Public Slots

void handleStorageOperationSucceeded (const QString &operation)
void handleStorageOperationFailed (const QString &operation, const QString &error)

Signals

void newFileRequested (const QString &path)
void openFileRequested (const QString &path)
void saveFileRequested ()
void saveFileAsRequested (const QString &path)

Public Member Functions

 MainWindow (std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter, QWidget *parent=nullptr)
 ~MainWindow ()
void addImageProvider (const QString &id, QQmlImageProviderBase *provider)
void loadQml (const QUrl &source=QUrl())
QQmlEngine * qmlEngine () const noexcept
ui::bootstrap::AppContext * appContext () const noexcept
ui::WorkspaceStore * workspaceStore () const noexcept
ui::WorkspaceCommands * workspaceCommands () const noexcept
ui::WorkspaceSelection * workspaceSelection () const noexcept
ui::WorkspaceSelectors * workspaceSelectors () const noexcept
ui::Settings * settings () const noexcept

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *ev) override
void closeEvent (QCloseEvent *event) override

Detailed Description

Definition at line 39 of file MainWindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter,
QWidget * parent = nullptr )
explicit

Definition at line 59 of file MainWindow.cpp.

◆ ~MainWindow()

MainWindow::~MainWindow ( )

Definition at line 170 of file MainWindow.cpp.

Member Function Documentation

◆ addImageProvider()

void MainWindow::addImageProvider ( const QString & id,
QQmlImageProviderBase * provider )

Definition at line 174 of file MainWindow.cpp.

◆ appContext()

ui::bootstrap::AppContext * MainWindow::appContext ( ) const
inlinenoexcept

Definition at line 50 of file MainWindow.h.

Here is the caller graph for this function:

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent * event)
overrideprotected

Definition at line 279 of file MainWindow.cpp.

Here is the call graph for this function:

◆ eventFilter()

bool MainWindow::eventFilter ( QObject * obj,
QEvent * ev )
overrideprotected

Definition at line 207 of file MainWindow.cpp.

Here is the call graph for this function:

◆ handleStorageOperationFailed

void MainWindow::handleStorageOperationFailed ( const QString & operation,
const QString & error )
slot

Definition at line 325 of file MainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleStorageOperationSucceeded

void MainWindow::handleStorageOperationSucceeded ( const QString & operation)
slot

Definition at line 306 of file MainWindow.cpp.

Here is the caller graph for this function:

◆ loadQml()

void MainWindow::loadQml ( const QUrl & source = QUrl())

Definition at line 183 of file MainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newFileRequested

void MainWindow::newFileRequested ( const QString & path)
signal
Here is the caller graph for this function:

◆ openFileRequested

void MainWindow::openFileRequested ( const QString & path)
signal
Here is the caller graph for this function:

◆ qmlEngine()

QQmlEngine * MainWindow::qmlEngine ( ) const
noexcept

Definition at line 203 of file MainWindow.cpp.

Here is the caller graph for this function:

◆ saveFileAsRequested

void MainWindow::saveFileAsRequested ( const QString & path)
signal
Here is the caller graph for this function:

◆ saveFileRequested

void MainWindow::saveFileRequested ( )
signal
Here is the caller graph for this function:

◆ settings()

ui::Settings * MainWindow::settings ( ) const
inlinenoexcept

Definition at line 65 of file MainWindow.h.

Here is the caller graph for this function:

◆ workspaceCommands()

ui::WorkspaceCommands * MainWindow::workspaceCommands ( ) const
inlinenoexcept

Definition at line 56 of file MainWindow.h.

Here is the caller graph for this function:

◆ workspaceSelection()

ui::WorkspaceSelection * MainWindow::workspaceSelection ( ) const
inlinenoexcept

Definition at line 59 of file MainWindow.h.

Here is the caller graph for this function:

◆ workspaceSelectors()

ui::WorkspaceSelectors * MainWindow::workspaceSelectors ( ) const
inlinenoexcept

Definition at line 62 of file MainWindow.h.

Here is the caller graph for this function:

◆ workspaceStore()

ui::WorkspaceStore * MainWindow::workspaceStore ( ) const
inlinenoexcept

Definition at line 53 of file MainWindow.h.

Here is the caller graph for this function:

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