com.sibvisions.rad.ui.qt.ext
Class QVxCheckAction

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.core.QObject
                  extended by com.trolltech.qt.gui.QAction
                      extended by com.sibvisions.rad.ui.qt.ext.QVxCheckAction
All Implemented Interfaces:
QtJambiInterface

public class QVxCheckAction
extends QAction

The QVxCheckAction is an extension of QAction which is checkable and allows special check/uncheck icons.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QAction
QAction.ActionEvent, QAction.MenuRole
 
Nested classes/interfaces inherited from class com.trolltech.qt.QtJambiObject
QtJambiObject.QPrivateConstructor
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1<A>, QSignalEmitter.PrivateSignal2<A,B>, QSignalEmitter.PrivateSignal3<A,B,C>, QSignalEmitter.PrivateSignal4<A,B,C,D>, QSignalEmitter.PrivateSignal5<A,B,C,D,E>, QSignalEmitter.PrivateSignal6<A,B,C,D,E,F>, QSignalEmitter.PrivateSignal7<A,B,C,D,E,F,G>, QSignalEmitter.PrivateSignal8<A,B,C,D,E,F,G,H>, QSignalEmitter.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.gui.QAction
changed, hovered, toggled, triggered
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
QVxCheckAction(QObject pParent)
          Constructs an action with parent.
QVxCheckAction(String pText, QObject pParent)
          Constructs an action with some text and parent.
 
Method Summary
 QIcon checkIcon()
          Gets the icon which will be displayed when the action was checked.
 void setCheckIcon(QIcon pIcon)
          Sets the icon to display when the action was checked.
 void setCheckIcon(QPixmap pIcon)
          Sets the icon to display when the action was checked.
 void setUncheckIcon(QIcon pIcon)
          Sets the icon to display when the action was checked.
 void setUncheckIcon(QPixmap pIcon)
          Sets the icon to display when the action was unchecked.
 QIcon uncheckIcon()
          Gets the icon which will be displayed when the action was unchecked.
 void updateIcon(Boolean pChecked)
          Updates the icon dependent of the checked state.
 
Methods inherited from class com.trolltech.qt.gui.QAction
__qt_signalInitialization, actionGroup, activate, associatedGraphicsWidgets, associatedWidgets, autoRepeat, data, event, font, fromNativePointer, hover, icon, iconText, isCheckable, isChecked, isEnabled, isIconVisibleInMenu, isSeparator, isVisible, menu, menuRole, parentWidget, setActionGroup, setAutoRepeat, setCheckable, setChecked, setData, setDisabled, setEnabled, setFont, setIcon, setIcon, setIconText, setIconVisibleInMenu, setMenu, setMenuRole, setSeparator, setShortcut, setShortcut, setShortcut, setShortcutContext, setShortcuts, setShortcuts, setStatusTip, setText, setToolTip, setVisible, setWhatsThis, shortcut, shortcutContext, shortcuts, showStatusText, showStatusText, statusTip, text, toggle, toolTip, trigger, whatsThis
 
Methods inherited from class com.trolltech.qt.core.QObject
blockSignals, childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, toString, userProperty
 
Methods inherited from class com.trolltech.qt.QtJambiObject
disableGarbageCollection, dispose, disposed, equals, finalize, nativeId, nativePointer, reassignNativeResources, reenableGarbageCollection, setJavaOwnership, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
disconnect, disconnect, signalSender
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QVxCheckAction

public QVxCheckAction(QObject pParent)
Constructs an action with parent. If parent is an action group the action will be automatically inserted into the group.

Parameters:
pParent - the parent

QVxCheckAction

public QVxCheckAction(String pText,
                      QObject pParent)
Constructs an action with some text and parent. If parent is an action group the action will be automatically inserted into the group.

Parameters:
pText - the text
pParent - the parent
Method Detail

setUncheckIcon

public void setUncheckIcon(QPixmap pIcon)
Sets the icon to display when the action was unchecked.

Parameters:
pIcon - the icon as pixmap

setUncheckIcon

public void setUncheckIcon(QIcon pIcon)
Sets the icon to display when the action was checked.

Parameters:
pIcon - the icon

uncheckIcon

public QIcon uncheckIcon()
Gets the icon which will be displayed when the action was unchecked.

Returns:
the uncheck icon

setCheckIcon

public void setCheckIcon(QPixmap pIcon)
Sets the icon to display when the action was checked.

Parameters:
pIcon - the icon as pixmap

setCheckIcon

public void setCheckIcon(QIcon pIcon)
Sets the icon to display when the action was checked.

Parameters:
pIcon - the check icon

checkIcon

public QIcon checkIcon()
Gets the icon which will be displayed when the action was checked.

Returns:
the check icon

updateIcon

public void updateIcon(Boolean pChecked)
Updates the icon dependent of the checked state.

Parameters:
pChecked - true if the action is checked, otherwise false


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.