BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
BALL::VIEW::EditSingleShortcut Class Reference

#include <BALL/VIEW/DIALOGS/editSingleShortcut.h>

Inheritance diagram for BALL::VIEW::EditSingleShortcut:
QDialog

Public Slots

virtual void accept ()
virtual void reject ()

Public Member Functions

 EditSingleShortcut (QWidget *parent=NULL, const char *name="EditSingleShortcut", Qt::WFlags fl=0)
 Constructor.
QKeySequence const & getKeySequence () const
void setIndex (const QModelIndex &index)
void reset ()
void setup (const QString &shortcut)

Protected Slots

void modeChanged_ (bool toggled)

Protected Member Functions

void setErrorText (QString error)
void setShortcutText (QString new_keysequence)
void updateText_ ()
void changeMode_ (bool mode)
void keyPressEvent (QKeyEvent *evt)
void keyReleaseEvent (QKeyEvent *evt)
void startRecording_ ()
void stopRecording_ ()

Protected Attributes

bool is_recording_
unsigned int modifiers_
int key_
QKeySequence new_sequence_

Detailed Description

Widget for customizing BALLView shortcuts

Definition at line 35 of file editSingleShortcut.h.

Constructor & Destructor Documentation

BALL::VIEW::EditSingleShortcut::EditSingleShortcut ( QWidget parent = NULL,
const char *  name = "EditSingleShortcut",
Qt::WFlags  fl = 0 
)

Constructor.

Member Function Documentation

virtual void BALL::VIEW::EditSingleShortcut::accept ( )
virtualslot
void BALL::VIEW::EditSingleShortcut::changeMode_ ( bool  mode)
protected
QKeySequence const& BALL::VIEW::EditSingleShortcut::getKeySequence ( ) const
inline

Definition at line 47 of file editSingleShortcut.h.

void BALL::VIEW::EditSingleShortcut::keyPressEvent ( QKeyEvent *  evt)
protected
void BALL::VIEW::EditSingleShortcut::keyReleaseEvent ( QKeyEvent *  evt)
protected
void BALL::VIEW::EditSingleShortcut::modeChanged_ ( bool  toggled)
protectedslot
virtual void BALL::VIEW::EditSingleShortcut::reject ( )
virtualslot
void BALL::VIEW::EditSingleShortcut::reset ( )
void BALL::VIEW::EditSingleShortcut::setErrorText ( QString  error)
protected
void BALL::VIEW::EditSingleShortcut::setIndex ( const QModelIndex &  index)
void BALL::VIEW::EditSingleShortcut::setShortcutText ( QString  new_keysequence)
protected
void BALL::VIEW::EditSingleShortcut::setup ( const QString &  shortcut)
void BALL::VIEW::EditSingleShortcut::startRecording_ ( )
protected
void BALL::VIEW::EditSingleShortcut::stopRecording_ ( )
protected
void BALL::VIEW::EditSingleShortcut::updateText_ ( )
protected

Member Data Documentation

bool BALL::VIEW::EditSingleShortcut::is_recording_
protected

Definition at line 61 of file editSingleShortcut.h.

int BALL::VIEW::EditSingleShortcut::key_
protected

Definition at line 64 of file editSingleShortcut.h.

unsigned int BALL::VIEW::EditSingleShortcut::modifiers_
protected

Definition at line 63 of file editSingleShortcut.h.

QKeySequence BALL::VIEW::EditSingleShortcut::new_sequence_
protected

Definition at line 65 of file editSingleShortcut.h.