Skip to main content

Whisker_Widget

Whisker_Widget

#include <Whisker_Widget.hpp>

Inherits from QMainWindow

Public Functions

Name
Whisker_Widget(std::shared_ptr< DataManager > data_manager, std::shared_ptr< WhiskerWidgetState > state, QWidget * parent =[nullptr])
Construct Whisker_Widget with EditorState support.
Whisker_Widget(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr])
Legacy constructor without state (backward compatible).
~Whisker_Widget() override
void openWidget()
void setKeymapManager(KeymapSystem::KeymapManager * manager)
Connect this widget to the application keymap for Trace (T) and related actions.

Protected Functions

Name
void closeEvent(QCloseEvent * event) override

Public Functions Documentation

function Whisker_Widget

Whisker_Widget(
    std::shared_ptr< DataManager > data_manager,
    std::shared_ptr< WhiskerWidgetState > state,
    QWidget * parent =nullptr
)

Construct Whisker_Widget with EditorState support.

Parameters:

Whisker_Widget::Whisker_Widget - Constructor with EditorState support.

This is the preferred constructor when using EditorRegistry. The state manages serializable configuration and enables workspace save/restore.

function Whisker_Widget

Whisker_Widget(
    std::shared_ptr< DataManager > data_manager,
    QWidget * parent =nullptr
)

Legacy constructor without state (backward compatible).

Parameters:

  • data_manager DataManager for data access
  • parent Parent widget

Deprecated:

Use the constructor with WhiskerWidgetState instead

Whisker_Widget::Whisker_Widget - Legacy constructor (backward compatible).

function ~Whisker_Widget

~Whisker_Widget() override

function openWidget

void openWidget()

function setKeymapManager

void setKeymapManager(
    KeymapSystem::KeymapManager * manager
)

Connect this widget to the application keymap for Trace (T) and related actions.

Parameters:

  • manager Non-owning KeymapManager; no-op if null

Protected Functions Documentation

function closeEvent

void closeEvent(
    QCloseEvent * event
) override

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