VR-Forces 4.0.4 Class Documentation
Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtRequestKeyValidationDialog Class Reference

This is the dialog used to ask the user what to do when a single key has been mapped to multiple functions. More...

Inheritance diagram for makVrv::DtRequestKeyValidationDialog:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtRequestKeyValidationDialog (QWidget *parent=0, Qt::WindowFlags flags=Qt::Tool|Qt::SubWindow)
 CTOR.
virtual ~DtRequestKeyValidationDialog ()
 virtual DTOR
virtual void closeEvent (QCloseEvent *event)
 QDialog override to handle close event.
void show (const DtKeyMapping &keyMapping, const std::string functionName, const DtKeyFunctionNameList &fnList, bool isEdit)
 Show the Dialog.

Public Attributes

boost::signal< void()> signal_requestInputCanceled
boost::signal< void(const
DtKeyMapping &, bool)> 
signal_requestInputAccepted
boost::signal< void(const
DtKeyMapping &, const
DtKeyFunctionNameList &, bool,
bool)> 
signal_requestKeyValidationAccepted

Protected Slots

void onAddClicked ()
 Handle the Add button clicked (add the new function / key mapping)
void onReplaceClicked ()
 Handle the Replace button clicked ( replace the existing function / key mapping with the new one)
void onCancelClicked ()
 Handle the Cancel button clicked.

Protected Member Functions

void setupGui ()
QString keyMappingToQString (const DtKeyMapping &keyMapping)
 This needs to be a static someplace.

Protected Attributes

QLabelmyFunctionNamePrefixLabel
QLabelmyFunctionNameSuffixLabel
QListWidget * myFunctionNameList
QPushButtonmyAddButton
QPushButtonmyReplaceButton
QPushButtonmyCancelButton
QHBoxLayout * myBottomButtonLayout
QVBoxLayout * myMainLayout
DtKeyMapping myKeyMapping
DtKeyFunctionNameList myFnList
bool myIsClosing
bool myIsEdit

Detailed Description

This is the dialog used to ask the user what to do when a single key has been mapped to multiple functions.


Constructor & Destructor Documentation

makVrv::DtRequestKeyValidationDialog::DtRequestKeyValidationDialog ( QWidget parent = 0,
Qt::WindowFlags  flags = Qt::Tool|Qt::SubWindow 
)

CTOR.

virtual DTOR


Member Function Documentation

virtual void makVrv::DtRequestKeyValidationDialog::closeEvent ( QCloseEvent *  event) [virtual]

QDialog override to handle close event.

void makVrv::DtRequestKeyValidationDialog::show ( const DtKeyMapping keyMapping,
const std::string  functionName,
const DtKeyFunctionNameList fnList,
bool  isEdit 
)

Show the Dialog.

Handle the Add button clicked (add the new function / key mapping)

Handle the Replace button clicked ( replace the existing function / key mapping with the new one)

Handle the Cancel button clicked.

QString makVrv::DtRequestKeyValidationDialog::keyMappingToQString ( const DtKeyMapping keyMapping) [protected]

This needs to be a static someplace.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)