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

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.QWidget
                      extended by com.sibvisions.rad.ui.qt.ext.QVxWidget
                          extended by com.sibvisions.rad.ui.qt.ext.QVxIcon
All Implemented Interfaces:
ISizableWidget, QPaintDeviceInterface, QtJambiInterface

public class QVxIcon
extends QVxWidget

The QVxIcon is a simple widget with an image. The image can be aligned or stretched.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget
QWidget.RenderFlag, QWidget.RenderFlags
 
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.QWidget
customContextMenuRequested
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
QVxIcon()
          Creates a new instance of QVxIcon without an image.
QVxIcon(QPixmap pPixmap)
          Creates a new instance of QVxIcon based on an QPixmap.
 
Method Summary
 Qt.AlignmentFlag getHorizontalAlignment()
          Gets the horizontal alignment of the icon and text.
 Qt.AlignmentFlag getVerticalAlignment()
          Gets the vertical alignment of the icon and text.
protected  void paint(QPainter pPainter, QRect pRect)
          Paints the icon with a specific painter.
 void paintEvent(QPaintEvent pEvent)
          
 void setHorizontalAlignment(Qt.AlignmentFlag pAlignment)
          Sets the horizontal alignment of the icon.
 void setPixmap(QPixmap pPixmap)
          Sets the pixmap for the icon.
 void setVerticalAlignment(Qt.AlignmentFlag pAlignment)
          Sets the vertical alignment of the icon and text.
 QSize sizeHint()
          
 
Methods inherited from class com.sibvisions.rad.ui.qt.ext.QVxWidget
getBackgroundImage, isMaximumSizeHintSet, isMinimumSizeHintSet, isSizeHintSet, maximumSizeHint, minimumSizeHint, setBackgroundImage, setMaximumSizeHint, setMinimumSizeHint, setSizeHint
 
Methods inherited from class com.trolltech.qt.gui.QWidget
__qt_cast_to_QPaintDevice, __qt_signalInitialization, acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, changeEvent, childAt, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsRect, contextMenuEvent, contextMenuPolicy, createWinId, cursor, depth, destroy, destroy, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, event, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, fromNativePointer, geometry, getContentsMargins, grabKeyboard, grabMouse, grabMouse, grabShortcut, grabShortcut, graphicsProxyWidget, hasFocus, hasMouseTracking, height, heightForWidth, heightMM, hide, hideEvent, inputContext, inputMethodEvent, inputMethodQuery, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyPressEvent, keyReleaseEvent, languageChange, layout, layoutDirection, leaveEvent, locale, logicalDpiX, logicalDpiY, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, move, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, numColors, overrideWindowFlags, overrideWindowFlags, overrideWindowState, overrideWindowState, paintEngine, paintingActive, palette, parentWidget, physicalDpiX, physicalDpiY, pos, raise, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, render, render, render, render, render, render, render, render, repaint, repaint, repaint, repaint, resetInputContext, resize, resize, resizeEvent, restoreGeometry, saveGeometry, scroll, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setBaseSize, setContentsMargins, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedSize, setFixedWidth, setFocus, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGeometry, setHidden, setInputContext, setLayout, setLayoutDirection, setLocale, setMask, setMask, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setParent, setParent, setShortcutAutoRepeat, setShortcutAutoRepeat, setShortcutEnabled, setShortcutEnabled, setSizeIncrement, setSizeIncrement, setSizePolicy, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabOrder, setToolTip, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlags, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowState, setWindowTitle, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, underMouse, unsetCursor, unsetLayoutDirection, unsetLocale, update, update, update, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, width, widthMM, window, windowFilePath, windowFlags, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y
 
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
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QVxIcon

public QVxIcon()
Creates a new instance of QVxIcon without an image.


QVxIcon

public QVxIcon(QPixmap pPixmap)
Creates a new instance of QVxIcon based on an QPixmap.

Parameters:
pPixmap - the pixmap
Method Detail

paintEvent

public void paintEvent(QPaintEvent pEvent)

Overrides:
paintEvent in class QWidget

sizeHint

public QSize sizeHint()

Overrides:
sizeHint in class QVxWidget

paint

protected void paint(QPainter pPainter,
                     QRect pRect)
Paints the icon with a specific painter.

Parameters:
pPainter - the painter
pRect - the rectangle where to paint

setPixmap

public void setPixmap(QPixmap pPixmap)
Sets the pixmap for the icon.

Parameters:
pPixmap - the pixmap

setHorizontalAlignment

public void setHorizontalAlignment(Qt.AlignmentFlag pAlignment)
Sets the horizontal alignment of the icon.

Parameters:
pAlignment - Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignRight or Qt.AlignmentFlag.AlignJustify

getHorizontalAlignment

public Qt.AlignmentFlag getHorizontalAlignment()
Gets the horizontal alignment of the icon and text.

Returns:
Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignRight or Qt.AlignmentFlag.AlignJustify

setVerticalAlignment

public void setVerticalAlignment(Qt.AlignmentFlag pAlignment)
Sets the vertical alignment of the icon and text.

Parameters:
pAlignment - Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignBottom or Qt.AlignmentFlag.AlignJustify

getVerticalAlignment

public Qt.AlignmentFlag getVerticalAlignment()
Gets the vertical alignment of the icon and text.

Returns:
Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter, Qt.AlignmentFlag.AlignBottom or Qt.AlignmentFlag.AlignJustify


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.