Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Setup_Keyboard Class Reference

#include <setup_keyboard.h>

Inheritance diagram for Setup_Keyboard:
SetupTab Container

Public Member Functions

 Setup_Keyboard ()
 
 ~Setup_Keyboard () override
 
void apply () override
 Called when the Apply button is pressed in the setup window.
 
void cancel () override
 Called when the Cancel button is pressed in the setup window.
 
void action (const gcn::ActionEvent &event) override
 
void refreshAssignedKey (int index)
 Get an update on the assigned key.
 
void newKeyCallback (int index)
 The callback function when a new key has been pressed.
 
void refreshKeys ()
 Shorthand method to update all the keys.
 
void keyUnresolved ()
 If a key function is unresolved, then this reverts it.
 
- Public Member Functions inherited from SetupTab
 SetupTab ()
 
const std::string & getName () const
 
- Public Member Functions inherited from Container
 Container ()
 
 ~Container () override
 
void drawFrame (gcn::Graphics *graphics) override
 

Private Attributes

class KeyListModelmKeyListModel
 
gcn::ListBox * mKeyList
 
gcn::Button * mAssignKeyButton
 
gcn::Button * mUnassignKeyButton
 
gcn::Button * mMakeDefaultButton
 
bool mKeySetting
 flag to check if key being set.
 

Additional Inherited Members

- Protected Member Functions inherited from SetupTab
void setName (const std::string &name)
 Sets the name displayed on the tab.
 
- Protected Member Functions inherited from Container
LayoutgetLayout ()
 Gets the layout handler for this container.
 
LayoutCellplace (int x, int y, gcn::Widget *wg, int w=1, int h=1)
 Adds a widget to the container and sets it at given cell.
 
ContainerPlacer getPlacer (int x, int y)
 Returns a proxy for adding widgets in an inner table of the layout.
 

Detailed Description

Definition at line 31 of file setup_keyboard.h.

Constructor & Destructor Documentation

◆ Setup_Keyboard()

Setup_Keyboard::Setup_Keyboard ( )

Definition at line 73 of file setup_keyboard.cpp.

◆ ~Setup_Keyboard()

Setup_Keyboard::~Setup_Keyboard ( )
override

Definition at line 107 of file setup_keyboard.cpp.

Member Function Documentation

◆ action()

void Setup_Keyboard::action ( const gcn::ActionEvent &  event)
override

Definition at line 140 of file setup_keyboard.cpp.

◆ apply()

void Setup_Keyboard::apply ( )
overridevirtual

Called when the Apply button is pressed in the setup window.

Implements SetupTab.

Definition at line 117 of file setup_keyboard.cpp.

◆ cancel()

void Setup_Keyboard::cancel ( )
overridevirtual

Called when the Cancel button is pressed in the setup window.

Implements SetupTab.

Definition at line 130 of file setup_keyboard.cpp.

◆ keyUnresolved()

void Setup_Keyboard::keyUnresolved ( )

If a key function is unresolved, then this reverts it.

Definition at line 207 of file setup_keyboard.cpp.

◆ newKeyCallback()

void Setup_Keyboard::newKeyCallback ( int  index)

The callback function when a new key has been pressed.

Definition at line 192 of file setup_keyboard.cpp.

◆ refreshAssignedKey()

void Setup_Keyboard::refreshAssignedKey ( int  index)

Get an update on the assigned key.

Definition at line 174 of file setup_keyboard.cpp.

◆ refreshKeys()

void Setup_Keyboard::refreshKeys ( )

Shorthand method to update all the keys.

Definition at line 199 of file setup_keyboard.cpp.

Member Data Documentation

◆ mAssignKeyButton

gcn::Button* Setup_Keyboard::mAssignKeyButton
private

Definition at line 67 of file setup_keyboard.h.

◆ mKeyList

gcn::ListBox* Setup_Keyboard::mKeyList
private

Definition at line 65 of file setup_keyboard.h.

◆ mKeyListModel

class KeyListModel* Setup_Keyboard::mKeyListModel
private

Definition at line 64 of file setup_keyboard.h.

◆ mKeySetting

bool Setup_Keyboard::mKeySetting
private

flag to check if key being set.

Definition at line 71 of file setup_keyboard.h.

◆ mMakeDefaultButton

gcn::Button* Setup_Keyboard::mMakeDefaultButton
private

Definition at line 69 of file setup_keyboard.h.

◆ mUnassignKeyButton

gcn::Button* Setup_Keyboard::mUnassignKeyButton
private

Definition at line 68 of file setup_keyboard.h.


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