OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CSMPrefs::ShortcutSetting Class Reference

#include <shortcutsetting.hpp>

Inheritance diagram for CSMPrefs::ShortcutSetting:
Collaboration diagram for CSMPrefs::ShortcutSetting:

Public Member Functions

 ShortcutSetting (Category *parent, Settings::Manager *values, QMutex *mutex, const std::string &key, const std::string &label)
 
virtual std::pair< QWidget
*, QWidget * > 
makeWidgets (QWidget *parent)
 
- Public Member Functions inherited from CSMPrefs::Setting
 Setting (Category *parent, Settings::Manager *values, QMutex *mutex, const std::string &key, const std::string &label)
 
virtual ~Setting ()
 
const CategorygetParent () const
 
const std::string & getKey () const
 
const std::string & getLabel () const
 
int toInt () const
 
double toDouble () const
 
std::string toString () const
 
bool isTrue () const
 
QColor toColor () const
 

Protected Member Functions

bool eventFilter (QObject *target, QEvent *event)
 
- Protected Member Functions inherited from CSMPrefs::Setting
Settings::ManagergetValues ()
 
QMutex * getMutex ()
 

Private Slots

void buttonToggled (bool checked)
 

Private Member Functions

bool handleEvent (QObject *target, int mod, int value, bool active)
 
void storeValue (const QKeySequence &sequence)
 
void resetState ()
 

Private Attributes

QPushButton * mButton
 
bool mEditorActive
 
int mEditorPos
 
int mEditorKeys [MaxKeys]
 

Static Private Attributes

static const int MaxKeys = 4
 

Constructor & Destructor Documentation

CSMPrefs::ShortcutSetting::ShortcutSetting ( Category parent,
Settings::Manager values,
QMutex *  mutex,
const std::string &  key,
const std::string &  label 
)

Member Function Documentation

void CSMPrefs::ShortcutSetting::buttonToggled ( bool  checked)
privateslot

Here is the caller graph for this function:

bool CSMPrefs::ShortcutSetting::eventFilter ( QObject target,
QEvent *  event 
)
protected

Here is the call graph for this function:

bool CSMPrefs::ShortcutSetting::handleEvent ( QObject target,
int  mod,
int  value,
bool  active 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

std::pair< QWidget *, QWidget * > CSMPrefs::ShortcutSetting::makeWidgets ( QWidget parent)
virtual

Return label, input widget.

Note
first can be a 0-pointer, which means that the label is part of the input widget.

Reimplemented from CSMPrefs::Setting.

Here is the call graph for this function:

void CSMPrefs::ShortcutSetting::resetState ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSMPrefs::ShortcutSetting::storeValue ( const QKeySequence &  sequence)
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const int CSMPrefs::ShortcutSetting::MaxKeys = 4
staticprivate
QPushButton* CSMPrefs::ShortcutSetting::mButton
private
bool CSMPrefs::ShortcutSetting::mEditorActive
private
int CSMPrefs::ShortcutSetting::mEditorKeys[MaxKeys]
private
int CSMPrefs::ShortcutSetting::mEditorPos
private

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