ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <remap-widget.h>

Inheritance diagram for Common::RemapWidget:
Collaboration diagram for Common::RemapWidget:

List of all members.

Classes

struct  ActionRow
struct  KeymapTitleRow

Public Types

typedef Common::Array< Keymap * > KeymapArray

Public Member Functions

 RemapWidget (GuiObject *boss, const Common::String &name, const KeymapArray &keymaps)
 ~RemapWidget () override
void load () override
 Implementing classes should (re)initialize their widgets with state from the configuration domain.
bool save () override
 Implementing classes should save their widget's state to the configuration domain.
void handleInputChanged ()
void handleCommand (GUI::CommandSender *sender, uint32 cmd, uint32 data) override
void handleMouseDown (int x, int y, int button, int clickCount) override
void handleTickle () override

Protected Member Functions

void loadKeymap ()
void refreshKeymap ()
void reflowActionWidgets ()
void clearMapping (uint actionIndex)
void resetMapping (uint actionIndex)
void resetKeymap (uint actionIndex)
void startRemapping (uint actionIndex)
void stopRemapping ()

Protected Attributes

KeymapArray _keymapTable
InputWatcher_remapInputWatcher
Keymap_remapKeymap
Action_remapAction
uint32 _remapTimeout
bool _changes
Array< ActionRow_actions
HashMap< Keymap *, KeymapTitleRow_keymapSeparators

Static Protected Attributes

static const uint32 kRemapTimeoutDelay = 3000

Detailed Description

Definition at line 46 of file remap-widget.h.


Member Typedef Documentation

Definition at line 48 of file remap-widget.h.


Constructor & Destructor Documentation

Common::RemapWidget::RemapWidget ( GuiObject *  boss,
const Common::String name,
const KeymapArray keymaps 
)

Definition at line 47 of file remap-widget.cpp.

Common::RemapWidget::~RemapWidget (  )  [override]

Definition at line 61 of file remap-widget.cpp.


Member Function Documentation

void Common::RemapWidget::clearMapping ( uint  actionIndex  )  [protected]

Definition at line 169 of file remap-widget.cpp.

void Common::RemapWidget::handleCommand ( GUI::CommandSender sender,
uint32  cmd,
uint32  data 
) [override, virtual]

Reimplemented from GUI::Widget.

Definition at line 151 of file remap-widget.cpp.

void Common::RemapWidget::handleInputChanged (  ) 

Definition at line 91 of file remap-widget.cpp.

void Common::RemapWidget::handleMouseDown ( int  x,
int  y,
int  button,
int  clickCount 
) [override, virtual]

Reimplemented from GUI::Widget.

Definition at line 240 of file remap-widget.cpp.

void Common::RemapWidget::handleTickle (  )  [override, virtual]

Reimplemented from GUI::Widget.

Definition at line 247 of file remap-widget.cpp.

void Common::RemapWidget::load (  )  [override, virtual]

Implementing classes should (re)initialize their widgets with state from the configuration domain.

Implements GUI::OptionsContainerWidget.

Definition at line 68 of file remap-widget.cpp.

void Common::RemapWidget::loadKeymap (  )  [protected]

Definition at line 262 of file remap-widget.cpp.

void Common::RemapWidget::reflowActionWidgets (  )  [protected]

Definition at line 102 of file remap-widget.cpp.

void Common::RemapWidget::refreshKeymap (  )  [protected]

Definition at line 276 of file remap-widget.cpp.

void Common::RemapWidget::resetKeymap ( uint  actionIndex  )  [protected]

Definition at line 193 of file remap-widget.cpp.

void Common::RemapWidget::resetMapping ( uint  actionIndex  )  [protected]

Definition at line 181 of file remap-widget.cpp.

bool Common::RemapWidget::save (  )  [override, virtual]

Implementing classes should save their widget's state to the configuration domain.

Returns:
true if changes were made to the configuration since the last call to load()

Implements GUI::OptionsContainerWidget.

Definition at line 78 of file remap-widget.cpp.

void Common::RemapWidget::startRemapping ( uint  actionIndex  )  [protected]

Definition at line 210 of file remap-widget.cpp.

void Common::RemapWidget::stopRemapping (  )  [protected]

Definition at line 229 of file remap-widget.cpp.


Member Data Documentation

Definition at line 97 of file remap-widget.h.

Definition at line 95 of file remap-widget.h.

Definition at line 86 of file remap-widget.h.

Definition at line 90 of file remap-widget.h.

Definition at line 88 of file remap-widget.h.

Definition at line 89 of file remap-widget.h.

Definition at line 91 of file remap-widget.h.

const uint32 Common::RemapWidget::kRemapTimeoutDelay = 3000 [static, protected]

Definition at line 93 of file remap-widget.h.


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


Generated on Sat Sep 26 2020 05:03:05 for ResidualVM by doxygen 1.7.1
curved edge   curved edge