Version: 6.3.1
Signals | Public Member Functions | Protected Member Functions

LightApp_ModuleAction.ComboAction Class Reference

Internal class to represent combo box with the list of modules in the toolbar.

#include <LightApp_ModuleAction.h>

Inheritance diagram for LightApp_ModuleAction.ComboAction:
Inheritance graph

Signals

void activatedId (int)
 Emitted when the combo box item is activated.

Public Member Functions

 ComboAction (QObject *parent)
 Constructor.
QList< QtxComboBox * > widgets () const
 Get list of associated widgets.
virtual bool eventFilter (QObject *, QEvent *)
 Customize action events.
QString shortcutActionName () const
 Return shortcut action name for the action.
void setShortcutActionName (const QString &)
 Set shortcut action name to the action.

Protected Member Functions

virtual QWidgetcreateWidget (QWidget *)
 Create combo box widget by request from the toolbar.
virtual void addedTo (QWidget *)
 Called when the action is added to the widget.
virtual void removedFrom (QWidget *)
 Called when the action is removed from the widget.
virtual void customEvent (QEvent *)
 Process notification events.

Constructor & Destructor Documentation

LightApp_ModuleAction.ComboAction::ComboAction ( QObject parent)
Parameters:
parentparent object

Member Function Documentation

QList< QtxComboBox * > LightApp_ModuleAction.ComboAction::widgets ( ) const
Returns:
list of created widgets (QtxComboBox)
QWidget * LightApp_ModuleAction.ComboAction::createWidget ( QWidget parent) [protected, virtual]
Parameters:
parentparent widget (should be QToolBar or its successor)
Returns:
new custom widget, containing combo box

References test_table.l.

void LightApp_ModuleAction.ComboAction::activatedId ( int  id) [signal]
Parameters:
itemidentifier
bool QtxAction::eventFilter ( QObject o,
QEvent e 
) [virtual, inherited]

Sends a notification event to the action when it is added to the widget or removed from it in order to perform custom processing.

Parameters:
oobject
eevent
Returns:
true if further event processing should be stopped
See also:
customEvent(), addedTo(), removedFrom()
QString QtxAction::shortcutActionName ( ) const [inherited]
Returns:
shortcut action name
See also:
setShortcutActionName()

References QtxAction.myShortcutActionName.

void QtxAction::setShortcutActionName ( const QString &  shortcutAction) [inherited]

Shortcut action name is used for shortcuts customization.

Parameters:
shortcutActionshortcut action name
See also:
shortcutActionName()

References QtxAction.myShortcutActionName.

void QtxAction::addedTo ( QWidget ) [protected, virtual, inherited]

This method can be redefined in the subclasses to customize the action behavior. Base implementation does nothing.

Parameters:
wwidget (should be menu or toolbar)
See also:
removedFrom()

Reimplemented in LightApp_ModuleAction, QtxActionSet, QtxDockAction, QtxWorkspaceAction, and QtxWorkstackAction.

void QtxAction::removedFrom ( QWidget ) [protected, virtual, inherited]

This method can be redefined in the subclasses to customize the action behavior. Base implementation does nothing.

Parameters:
wwidget (should be menu or toolbar)
See also:
addedTo()

Reimplemented in LightApp_ModuleAction, QtxActionSet, QtxDockAction, QtxWorkspaceAction, and QtxWorkstackAction.

void QtxAction::customEvent ( QEvent e) [protected, virtual, inherited]

Calls addedTo() method when the action is added to the widget and removedFrom() when it is removed from the widget in order to perform custom processing.

Parameters:
enoification event
See also:
eventFilter(), addedTo(), removedFrom()

References QtxAction.addedTo(), QtxAction.ActionNotify.isAdded(), QtxAction.removedFrom(), and QtxAction.ActionNotify.widget().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS