|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.gui.QAbstractButton
com.trolltech.qt.gui.QPushButton
com.sibvisions.rad.ui.qt.ext.QVxButton
public class QVxButton
A QVxButton button is rectangular and typically displays a
text label describing its action.
| 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.QAbstractButton |
|---|
clicked, pressed, released, toggled |
| Fields inherited from class com.trolltech.qt.gui.QWidget |
|---|
customContextMenuRequested |
| Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
|---|
currentSender |
| Constructor Summary | |
|---|---|
QVxButton()
Constructs a new instance of QVxButton with no text and parent. |
|
QVxButton(QIcon pIcon,
String pText)
Constructs a new instance of QVxButton with an icon and a text. |
|
QVxButton(QIcon pIcon,
String pText,
QWidget pParent)
Constructs a new instance of QVxButton with an icon, a
text and a parent. |
|
QVxButton(QWidget pParent)
Creates a new instance of QVxButton with a parent. |
|
QVxButton(String pText)
Creates a new instance of QVxButton with a text. |
|
QVxButton(String pText,
QWidget pParent)
Creates a new instance of QVxButton with a text and
a parent. |
|
| Method Summary | |
|---|---|
boolean |
event(QEvent pEvent)
|
Qt.AlignmentFlag |
getHorizontalAlignment()
Gets the horizontal alignment of the icon and text. |
Qt.AlignmentFlag |
getHorizontalTextPosition()
Gets the horizontal text position relative to the icon. |
int |
getIconTextGap()
Gets the gap between the icon and the text. |
QIcon |
getMouseOverIcon()
Gets the icon for the button when the mouse is over. |
QIcon |
getMousePressedIcon()
Gets the icon for the button when the mouse is pressed. |
Qt.AlignmentFlag |
getVerticalAlignment()
Gets the vertical alignment of the icon and text. |
Qt.AlignmentFlag |
getVerticalTextPosition()
Gets the vertical text position relative to the icon. |
boolean |
isBorderPainted()
Gets whether the border will be painted. |
boolean |
isIgnoreIconSize()
Gets the current state of icon size calculation. |
boolean |
isMaximumSizeHintSet()
Determines if an user-defined maximum size is set. |
boolean |
isMinimumSizeHintSet()
Determines if an user-defined minimum size is set. |
boolean |
isSizeHintSet()
Determines if an user-defined preferred size is set. |
QSize |
maximumSizeHint()
Get's the maximum size hint. |
QSize |
minimumSizeHint()
|
void |
paintEvent(QPaintEvent pEvent)
|
void |
setBorderPainted(boolean pBorderPainted)
Sets whether the border will be painted. |
void |
setHorizontalAlignment(Qt.AlignmentFlag pAlignment)
Sets the horizontal alignment of the icon and text. |
void |
setHorizontalTextPosition(Qt.AlignmentFlag pPosition)
Sets the horizontal text position relative to the icon. |
void |
setIconTextGap(int pGap)
Sets the gap between the icon and the text. |
void |
setIgnoreIconSize(boolean pIgnore)
Sets the possibility to ignore the pre-calculated or user-defined icon size and use the originial icon size for drawing. |
void |
setMaximumSizeHint(QSize pSize)
Sets a user-defined maximum size. |
void |
setMinimumSizeHint(QSize pSize)
Sets a user-defined minimum size. |
void |
setMouseOverIcon(QIcon pIcon)
Sets the icon for the button when the mouse is over. |
void |
setMousePressedIcon(QIcon pIcon)
Sets the icon for the button when the mouse is pressed. |
void |
setSizeHint(QSize pSize)
Sets a user-defined preferred size. |
void |
setVerticalAlignment(Qt.AlignmentFlag pAlignment)
Sets the vertical alignment of the icon and text. |
void |
setVerticalTextPosition(Qt.AlignmentFlag pPosition)
Sets the vertical text position relative to the icon. |
QSize |
sizeHint()
|
| Methods inherited from class com.trolltech.qt.gui.QPushButton |
|---|
autoDefault, focusInEvent, focusOutEvent, fromNativePointer, initStyleOption, isDefault, isFlat, keyPressEvent, menu, setAutoDefault, setDefault, setFlat, setMenu, showMenu |
| Methods inherited from class com.trolltech.qt.gui.QAbstractButton |
|---|
__qt_signalInitialization, animateClick, animateClick, autoExclusive, autoRepeat, autoRepeatDelay, autoRepeatInterval, changeEvent, checkStateSet, click, group, hitButton, icon, iconSize, isCheckable, isChecked, isDown, keyReleaseEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, nextCheckState, setAutoExclusive, setAutoRepeat, setAutoRepeatDelay, setAutoRepeatInterval, setCheckable, setChecked, setDown, setIcon, setIconSize, setShortcut, setShortcut, setShortcut, setText, shortcut, text, timerEvent, toggle |
| 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, 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 |
|---|
public QVxButton()
QVxButton with no text and parent.
public QVxButton(QIcon pIcon,
String pText)
QVxButton with an icon and a text.
pIcon - the icon for the buttonpText - the text for the button
public QVxButton(QIcon pIcon,
String pText,
QWidget pParent)
QVxButton with an icon, a
text and a parent.
pIcon - the icon for the buttonpText - the text for the buttonpParent - the parent widgetpublic QVxButton(QWidget pParent)
QVxButton with a parent.
pParent - the parent widgetpublic QVxButton(String pText)
QVxButton with a text.
pText - the text for the button
public QVxButton(String pText,
QWidget pParent)
QVxButton with a text and
a parent.
pText - the text for the buttonpParent - the parent widget| Method Detail |
|---|
public void setSizeHint(QSize pSize)
setSizeHint in interface ISizableWidgetpSize - the sizeQWidget.sizeHint()public boolean isSizeHintSet()
isSizeHintSet in interface ISizableWidgettrue if an user-defined preferred size is setpublic void setMinimumSizeHint(QSize pSize)
setMinimumSizeHint in interface ISizableWidgetpSize - the sizeQWidget.minimumSizeHint()public boolean isMinimumSizeHintSet()
isMinimumSizeHintSet in interface ISizableWidgettrue if an user-defined minimum size is setpublic void setMaximumSizeHint(QSize pSize)
setMaximumSizeHint in interface ISizableWidgetpSize - the sizepublic boolean isMaximumSizeHintSet()
isMaximumSizeHintSet in interface ISizableWidgettrue if an user-defined maximum size is setpublic void paintEvent(QPaintEvent pEvent)
paintEvent in class QPushButtonpublic QSize sizeHint()
sizeHint in class QPushButtonpublic QSize minimumSizeHint()
minimumSizeHint in class QPushButtonpublic boolean event(QEvent pEvent)
event in class QPushButtonpublic QSize maximumSizeHint()
maximumSizeHint in interface ISizableWidgetpublic void setHorizontalAlignment(Qt.AlignmentFlag pAlignment)
pAlignment - Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter or
Qt.AlignmentFlag.AlignRightpublic Qt.AlignmentFlag getHorizontalAlignment()
Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter or
Qt.AlignmentFlag.AlignRightpublic void setVerticalAlignment(Qt.AlignmentFlag pAlignment)
pAlignment - Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter or
Qt.AlignmentFlag.AlignBottompublic Qt.AlignmentFlag getVerticalAlignment()
Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter or
Qt.AlignmentFlag.AlignBottompublic void setHorizontalTextPosition(Qt.AlignmentFlag pPosition)
pPosition - Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter or
Qt.AlignmentFlag.AlignRightpublic Qt.AlignmentFlag getHorizontalTextPosition()
Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignCenter or
Qt.AlignmentFlag.AlignRightpublic void setVerticalTextPosition(Qt.AlignmentFlag pPosition)
pPosition - Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter or
Qt.AlignmentFlag.AlignBottompublic Qt.AlignmentFlag getVerticalTextPosition()
Qt.AlignmentFlag.AlignTop, Qt.AlignmentFlag.AlignCenter or
Qt.AlignmentFlag.AlignBottompublic void setIgnoreIconSize(boolean pIgnore)
pIgnore - true to use the original icon size, otherwise falsepublic boolean isIgnoreIconSize()
true if the original icon size will be used for icon representation;
false if the user-defined or pre-calculated size will be usedpublic void setIconTextGap(int pGap)
pGap - the gap in pixelpublic int getIconTextGap()
public void setBorderPainted(boolean pBorderPainted)
true, the border will be painted.
The default value is that the border will be painted.
pBorderPainted - true to paint the border, otherwise falseQPushButton.setFlat(boolean)public boolean isBorderPainted()
true when the border will be painted, otherwise falseQPushButton.isFlat()public void setMouseOverIcon(QIcon pIcon)
pIcon - the mouse over iconpublic QIcon getMouseOverIcon()
public void setMousePressedIcon(QIcon pIcon)
pIcon - the mouse pressed iconpublic QIcon getMousePressedIcon()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||