qCC  version 2.5.4 (Qt) - 19 Apr. 2014
 All Classes Functions Variables Typedefs Enumerations
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
ccOverlayDialog Class Reference

Generic overlay dialog interface. More...

#include <ccOverlayDialog.h>

Inheritance diagram for ccOverlayDialog:
Inheritance graph
[legend]
Collaboration diagram for ccOverlayDialog:
Collaboration graph
[legend]

Signals

void processFinished (bool accepted)
 Signal emitted when process is finished. More...
 
void shortcutTriggered (int key)
 Signal emitted when an overridden key shortcut is pressed. More...
 

Public Member Functions

 ccOverlayDialog (QWidget *parent=0)
 Default constructor.
 
virtual ~ccOverlayDialog ()
 Destructor.
 
virtual bool linkWith (ccGLWindow *win)
 Links the overlay dialog with a MDI window. More...
 
virtual bool start ()
 Starts process. More...
 
virtual void stop (bool accepted)
 Stops process/dialog. More...
 
virtual void reject ()
 
void addOverridenShortcut (Qt::Key key)
 Adds a keyboard shortcut (single key) that will be overridden from the associated window. More...
 

Protected Slots

virtual void onLinkedWindowDeletion (QObject *object=0)
 Slot called when the linked window is deleted (calls 'onClose')
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *e)
 

Protected Attributes

ccGLWindow * m_associatedWin
 Associated (MDI) window.
 
bool m_processing
 Running/processing state.
 
QList< int > m_overriddenKeys
 Overridden keys.
 

Detailed Description

Generic overlay dialog interface.

Member Function Documentation

void ccOverlayDialog::addOverridenShortcut ( Qt::Key  key)

Adds a keyboard shortcut (single key) that will be overridden from the associated window.

When an overridden key is pressed, the shortcutTriggered(int) signal is emitted.

bool ccOverlayDialog::linkWith ( ccGLWindow *  win)
virtual

Links the overlay dialog with a MDI window.

Warning: link can't be modified while dialog is displayed/process is running!

Returns
success

Reimplemented in ccGraphicalSegmentationTool, ccCameraParamEditDlg, ccClippingBoxTool, ccPointPickingGenericInterface, ccGraphicalTransformationTool, ccPointPropertiesDlg, and ccPointPairRegistrationDlg.

void ccOverlayDialog::processFinished ( bool  accepted)
signal

Signal emitted when process is finished.

Parameters
acceptedspecifies how the process finished (accepted or not)
void ccOverlayDialog::shortcutTriggered ( int  key)
signal

Signal emitted when an overridden key shortcut is pressed.

See ccOverlayDialog::addOverridenShortcut

bool ccOverlayDialog::start ( )
virtual
void ccOverlayDialog::stop ( bool  accepted)
virtual

Stops process/dialog.

Automatically emits the 'processFinished' signal (with input state as argument).

Parameters
acceptedprocess/dialog result

Reimplemented in ccGraphicalSegmentationTool, ccClippingBoxTool, ccPointPickingGenericInterface, ccGraphicalTransformationTool, ccPointPropertiesDlg, and ccPointPairRegistrationDlg.


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