CutterDockWidget

class CutterDockWidget : public QDockWidget

Subclassed by BacktraceWidget, BreakpointWidget, ClassesWidget, ConsoleWidget, Dashboard, EntrypointWidget, FlagsWidget, ListDockWidget, MemoryDockWidget, OverviewWidget, ProcessesWidget, RegisterRefsWidget, RegistersWidget, SdbWidget, SearchWidget, StackWidget, StringsWidget, ThreadsWidget, TypesWidget, VTablesWidget, ZignaturesWidget

Public Functions

CutterDockWidget(MainWindow *parent, QAction *action)
CutterDockWidget(MainWindow *parent)
~CutterDockWidget() override
bool eventFilter(QObject *object, QEvent *event) override
bool isVisibleToUser()
void setTransient(bool v)

Set whether the Widget should be deleted after it is closed. This is especially important for extra widgets.

template<typename Func>
RefreshDeferrer *createRefreshDeferrer(Func refreshNowFunc)

Convenience method for creating and registering a RefreshDeferrer without any parameters.

Parameters
  • refreshNowFunc: lambda taking no parameters, called when a refresh should occur

template<class ParamResult, typename Func>
RefreshDeferrer *createReplacingRefreshDeferrer(bool replaceIfNull, Func refreshNowFunc)

Convenience method for creating and registering a RefreshDeferrer with a replacing Accumulator.

Parameters

QVariantMap serializeViewProprties()

Serialize dock properties for saving as part of layout.

Override this function for saving dock specific view properties. Use in situations where it makes sense to have different properties for multiple instances of widget. Don’t use for options that are more suitable as global settings and should be applied equally to all widgets or all widgets of this kind.

Keep synchrononized with deserializeViewProperties. When modifying add project upgrade step in SettingsUpgrade.cpp if necessary.

Return

Dictionary of current dock properties.

See

CutterDockWidget::deserializeViewProperties

void deserializeViewProperties(const QVariantMap &properties)

Deserialization half of serialize view properties.

When a property is not specified in property map dock should reset it to default value instead of leaving it umodified. Empty map should reset all properties controlled by serializeViewProprties/deserializeViewProperties mechanism.

See

CutterDockWidget::serializeViewProprties

Parameters
  • properties: to modify for current widget

Public Slots

void toggleDockWidget(bool show)

Signals

void becameVisibleToUser()
void closed()