Skip to main content

MainWindow

MainWindow

#include <mainwindow.hpp>

Inherits from QMainWindow

Public Functions

Name
MainWindow(QWidget * parent =[nullptr])
~MainWindow() override
void addWidget(std::string const & key, std::unique_ptr< QWidget > widget)
QWidget * getWidget(std::string const & key)
void registerDockWidget(std::string const & key, QWidget * widget, ads::DockWidgetArea area)
void showDockWidget(std::string const & key)
ads::CDockManager * dockManager() const
Access the global dock manager used by the application.
ads::CDockWidget * findDockWidget(std::string const & key) const
Find the ADS dock widget by key.
GroupManager * getGroupManager() const
Get the global group manager.
StateManagement::StateManager * stateManager() const
Get the state manager for preferences and session memory.
commands::CommandRecorder * commandRecorder() const
Get the global command recorder for capturing executed commands.
KeymapSystem::KeymapManager * keymapManager() const
Get the keymap manager for configurable keyboard shortcuts.
EditorRegistry * editorRegistry() const
Get the editor registry for state and type management.
void processLoadedData(std::vector< DataInfo > const & data_info)

Protected Functions

Name
void keyPressEvent(QKeyEvent * event) override
bool eventFilter(QObject * obj, QEvent * event) override
void dragEnterEvent(QDragEnterEvent * event) override
void dropEvent(QDropEvent * event) override

Public Functions Documentation

function MainWindow

explicit MainWindow(
    QWidget * parent =nullptr
)

function ~MainWindow

~MainWindow() override

function addWidget

inline void addWidget(
    std::string const & key,
    std::unique_ptr< QWidget > widget
)

function getWidget

inline QWidget * getWidget(
    std::string const & key
)

function registerDockWidget

void registerDockWidget(
    std::string const & key,
    QWidget * widget,
    ads::DockWidgetArea area
)

function showDockWidget

void showDockWidget(
    std::string const & key
)

function dockManager

inline ads::CDockManager * dockManager() const

Access the global dock manager used by the application.

Return: Pointer to the ads::CDockManager managing docks

function findDockWidget

ads::CDockWidget * findDockWidget(
    std::string const & key
) const

Find the ADS dock widget by key.

Parameters:

  • key Dock key used at registration

Return: Pointer to the dock widget or nullptr if not found

function getGroupManager

inline GroupManager * getGroupManager() const

Get the global group manager.

Return: Pointer to the GroupManager

function stateManager

inline StateManagement::StateManager * stateManager() const

Get the state manager for preferences and session memory.

Return: Pointer to the StateManager

function commandRecorder

inline commands::CommandRecorder * commandRecorder() const

Get the global command recorder for capturing executed commands.

Return: Non-owning pointer to the CommandRecorder

function keymapManager

inline KeymapSystem::KeymapManager * keymapManager() const

Get the keymap manager for configurable keyboard shortcuts.

Return: Non-owning pointer to the KeymapManager

function editorRegistry

inline EditorRegistry * editorRegistry() const

Get the editor registry for state and type management.

Return: Pointer to the EditorRegistry

EditorRegistry provides:

  • Type registration (metadata + factory functions)
  • Registry for all EditorState instances
  • Access to SelectionContext for inter-widget communication
  • Workspace serialization support

function processLoadedData

void processLoadedData(
    std::vector< DataInfo > const & data_info
)

Protected Functions Documentation

function keyPressEvent

void keyPressEvent(
    QKeyEvent * event
) override

function eventFilter

bool eventFilter(
    QObject * obj,
    QEvent * event
) override

function dragEnterEvent

void dragEnterEvent(
    QDragEnterEvent * event
) override

function dropEvent

void dropEvent(
    QDropEvent * event
) override

Updated on 2026-11-13 at 20:25:40 +0000