All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QAction Maven / Gradle / Ivy

package io.qt.gui;


/**
 * 

Abstraction for user commands that can be added to different user interface components

*

Java wrapper for Qt class QAction

*/ public class QAction extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAction.class); /** *

Java wrapper for Qt enum QAction::ActionEvent

*/ @io.qt.QtUnlistedEnum public enum ActionEvent implements io.qt.QtEnumerator { Trigger(0), Hover(1); private ActionEvent(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static ActionEvent resolve(int value) { switch (value) { case 0: return Trigger; case 1: return Hover; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QAction::MenuRole

*/ public enum MenuRole implements io.qt.QtEnumerator { NoRole(0), TextHeuristicRole(1), ApplicationSpecificRole(2), AboutQtRole(3), AboutRole(4), PreferencesRole(5), QuitRole(6); private MenuRole(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static MenuRole resolve(int value) { switch (value) { case 0: return NoRole; case 1: return TextHeuristicRole; case 2: return ApplicationSpecificRole; case 3: return AboutQtRole; case 4: return AboutRole; case 5: return PreferencesRole; case 6: return QuitRole; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QAction::Priority

*/ public enum Priority implements io.qt.QtEnumerator { LowPriority(0), NormalPriority(128), HighPriority(256); private Priority(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Priority resolve(int value) { switch (value) { case 0: return LowPriority; case 128: return NormalPriority; case 256: return HighPriority; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QAction::changed()

*/ @io.qt.QtPropertyNotify(name="icon") public final Signal0 changed = new Signal0(); /** *

See QAction::checkableChanged(bool)

*/ @io.qt.QtPropertyNotify(name="checkable") public final Signal1<@io.qt.QtPrimitiveType Boolean> checkableChanged = new Signal1<>(); /** *

See QAction::enabledChanged(bool)

*/ @io.qt.QtPropertyNotify(name="enabled") public final Signal1<@io.qt.QtPrimitiveType Boolean> enabledChanged = new Signal1<>(); /** *

See QAction::hovered()

*/ public final Signal0 hovered = new Signal0(); /** *

See QAction::toggled(bool)

*/ @io.qt.QtPropertyNotify(name="checked") public final Signal1<@io.qt.QtPrimitiveType Boolean> toggled = new Signal1<>(); /** *

See QAction::triggered(bool)

*/ public final Signal1Default1<@io.qt.QtPrimitiveType Boolean> triggered = new Signal1Default1<>(()->false); /** *

See QAction::visibleChanged()

*/ @io.qt.QtPropertyNotify(name="visible") public final Signal0 visibleChanged = new Signal0(); /** *

Overloaded constructor for {@link #QAction(io.qt.core.QObject)} * with parent = null.

*/ public QAction() { this((io.qt.core.QObject)null); } /** *

See QAction::QAction(QObject*)

*/ public QAction(io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QAction instance, io.qt.core.QObject parent); /** *

Overloaded constructor for {@link #QAction(io.qt.gui.QIcon, java.lang.String, io.qt.core.QObject)} * with parent = null.

*/ public QAction(io.qt.gui.QIcon icon, java.lang.String text) { this(icon, text, (io.qt.core.QObject)null); } /** *

See QAction::QAction(QIcon,QString,QObject*)

*/ public QAction(io.qt.gui.QIcon icon, java.lang.String text, io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, icon, text, parent); } private native static void initialize_native(QAction instance, io.qt.gui.QIcon icon, java.lang.String text, io.qt.core.QObject parent); /** *

Overloaded constructor for {@link #QAction(java.lang.String, io.qt.core.QObject)} * with parent = null.

*/ public QAction(java.lang.String text) { this(text, (io.qt.core.QObject)null); } /** *

See QAction::QAction(QString,QObject*)

*/ public QAction(java.lang.String text, io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, text, parent); } private native static void initialize_native(QAction instance, java.lang.String text, io.qt.core.QObject parent); /** *

See QAction::actionGroup()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QActionGroup actionGroup(){ return actionGroup_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QActionGroup actionGroup_native_constfct(long __this__nativeId); /** *

See QAction::activate(QAction::ActionEvent)

*/ @io.qt.QtUninvokable public final void activate(io.qt.gui.QAction.ActionEvent event){ activate_native_QAction_ActionEvent(QtJambi_LibraryUtilities.internal.nativeId(this), event.value()); } @io.qt.QtUninvokable private native void activate_native_QAction_ActionEvent(long __this__nativeId, int event); /** *

See QAction::associatedObjects()const

*/ @io.qt.QtUninvokable public final io.qt.core.QList associatedObjects(){ return associatedObjects_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QList associatedObjects_native_constfct(long __this__nativeId); /** *

See QAction::autoRepeat()const

*/ @io.qt.QtPropertyReader(name="autoRepeat") @io.qt.QtUninvokable public final boolean autoRepeat(){ return autoRepeat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean autoRepeat_native_constfct(long __this__nativeId); /** *

See QAction::data()const

*/ @io.qt.QtUninvokable public final java.lang.Object data(){ return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.Object data_native_constfct(long __this__nativeId); /** *

See QAction::font()const

*/ @io.qt.QtPropertyReader(name="font") @io.qt.QtUninvokable public final io.qt.gui.QFont font(){ return font_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QFont font_native_constfct(long __this__nativeId); /** *

See QAction::hover()

*/ public final void hover(){ hover_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void hover_native(long __this__nativeId); /** *

See QAction::icon()const

*/ @io.qt.QtPropertyReader(name="icon") @io.qt.QtUninvokable public final io.qt.gui.QIcon icon(){ return icon_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QIcon icon_native_constfct(long __this__nativeId); /** *

See QAction::iconText()const

*/ @io.qt.QtPropertyReader(name="iconText") @io.qt.QtUninvokable public final java.lang.String iconText(){ return iconText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String iconText_native_constfct(long __this__nativeId); /** *

See QAction::isCheckable()const

*/ @io.qt.QtPropertyReader(name="checkable") @io.qt.QtUninvokable public final boolean isCheckable(){ return isCheckable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isCheckable_native_constfct(long __this__nativeId); /** *

See QAction::isChecked()const

*/ @io.qt.QtPropertyReader(name="checked") @io.qt.QtUninvokable public final boolean isChecked(){ return isChecked_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isChecked_native_constfct(long __this__nativeId); /** *

See QAction::isEnabled()const

*/ @io.qt.QtPropertyReader(name="enabled") @io.qt.QtUninvokable public final boolean isEnabled(){ return isEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isEnabled_native_constfct(long __this__nativeId); /** *

See QAction::isIconVisibleInMenu()const

*/ @io.qt.QtPropertyReader(name="iconVisibleInMenu") @io.qt.QtUninvokable public final boolean isIconVisibleInMenu(){ return isIconVisibleInMenu_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isIconVisibleInMenu_native_constfct(long __this__nativeId); /** *

See QAction::isSeparator()const

*/ @io.qt.QtUninvokable public final boolean isSeparator(){ return isSeparator_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isSeparator_native_constfct(long __this__nativeId); /** *

See QAction::isShortcutVisibleInContextMenu()const

*/ @io.qt.QtPropertyReader(name="shortcutVisibleInContextMenu") @io.qt.QtUninvokable public final boolean isShortcutVisibleInContextMenu(){ return isShortcutVisibleInContextMenu_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isShortcutVisibleInContextMenu_native_constfct(long __this__nativeId); /** *

See QAction::isVisible()const

*/ @io.qt.QtPropertyReader(name="visible") @io.qt.QtUninvokable public final boolean isVisible(){ return isVisible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isVisible_native_constfct(long __this__nativeId); /** *

See QAction::menuRole()const

*/ @io.qt.QtPropertyReader(name="menuRole") @io.qt.QtUninvokable public final io.qt.gui.QAction.MenuRole menuRole(){ return io.qt.gui.QAction.MenuRole.resolve(menuRole_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int menuRole_native_constfct(long __this__nativeId); /** *

See QAction::priority()const

*/ @io.qt.QtPropertyReader(name="priority") @io.qt.QtUninvokable public final io.qt.gui.QAction.Priority priority(){ return io.qt.gui.QAction.Priority.resolve(priority_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int priority_native_constfct(long __this__nativeId); /** *

See QAction::resetEnabled()

*/ @io.qt.QtPropertyResetter(name="enabled") public final void resetEnabled(){ resetEnabled_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void resetEnabled_native(long __this__nativeId); /** *

See QAction::setActionGroup(QActionGroup*)

*/ @io.qt.QtUninvokable public final void setActionGroup(io.qt.gui.QActionGroup group){ setActionGroup_native_QActionGroup_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(group)); if (__rcActionGroup != null) { QtJambi_LibraryUtilities.internal.removeFromCollectionReferenceCount(__rcActionGroup, QActionGroup.class, "__rcActions", false, this); } __rcActionGroup = group; if (__rcActionGroup != null) { QtJambi_LibraryUtilities.internal.addReferenceCount(__rcActionGroup, QActionGroup.class, "__rcActions", false, false, this); } } @io.qt.QtUninvokable private native void setActionGroup_native_QActionGroup_ptr(long __this__nativeId, long group); /** *

See QAction::setAutoRepeat(bool)

*/ @io.qt.QtPropertyWriter(name="autoRepeat") @io.qt.QtUninvokable public final void setAutoRepeat(boolean arg__1){ setAutoRepeat_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setAutoRepeat_native_bool(long __this__nativeId, boolean arg__1); /** *

See QAction::setCheckable(bool)

*/ @io.qt.QtPropertyWriter(name="checkable") @io.qt.QtUninvokable public final void setCheckable(boolean arg__1){ setCheckable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setCheckable_native_bool(long __this__nativeId, boolean arg__1); /** *

See QAction::setChecked(bool)

*/ @io.qt.QtPropertyWriter(name="checked") public final void setChecked(boolean arg__1){ setChecked_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } private native void setChecked_native_bool(long __this__nativeId, boolean arg__1); /** *

See QAction::setData(QVariant)

*/ @io.qt.QtUninvokable public final void setData(java.lang.Object var){ setData_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), var); } @io.qt.QtUninvokable private native void setData_native_cref_QVariant(long __this__nativeId, java.lang.Object var); /** *

See QAction::setDisabled(bool)

*/ public final void setDisabled(boolean b){ setDisabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b); } private native void setDisabled_native_bool(long __this__nativeId, boolean b); /** *

See QAction::setEnabled(bool)

*/ @io.qt.QtPropertyWriter(name="enabled") public final void setEnabled(boolean arg__1){ setEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } private native void setEnabled_native_bool(long __this__nativeId, boolean arg__1); /** *

See QAction::setFont(QFont)

*/ @io.qt.QtPropertyWriter(name="font") @io.qt.QtUninvokable public final void setFont(io.qt.gui.QFont font){ setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(font)); } @io.qt.QtUninvokable private native void setFont_native_cref_QFont(long __this__nativeId, long font); /** *

See QAction::setIcon(QIcon)

*/ @io.qt.QtPropertyWriter(name="icon") @io.qt.QtUninvokable public final void setIcon(io.qt.gui.QIcon icon){ setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon)); } @io.qt.QtUninvokable private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon); /** *

See QAction::setIconText(QString)

*/ @io.qt.QtPropertyWriter(name="iconText") @io.qt.QtUninvokable public final void setIconText(java.lang.String text){ setIconText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @io.qt.QtUninvokable private native void setIconText_native_cref_QString(long __this__nativeId, java.lang.String text); /** *

See QAction::setIconVisibleInMenu(bool)

*/ @io.qt.QtPropertyWriter(name="iconVisibleInMenu") @io.qt.QtUninvokable public final void setIconVisibleInMenu(boolean visible){ setIconVisibleInMenu_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible); } @io.qt.QtUninvokable private native void setIconVisibleInMenu_native_bool(long __this__nativeId, boolean visible); /** *

See QAction::setMenuRole(QAction::MenuRole)

*/ @io.qt.QtPropertyWriter(name="menuRole") @io.qt.QtUninvokable public final void setMenuRole(io.qt.gui.QAction.MenuRole menuRole){ setMenuRole_native_QAction_MenuRole(QtJambi_LibraryUtilities.internal.nativeId(this), menuRole.value()); } @io.qt.QtUninvokable private native void setMenuRole_native_QAction_MenuRole(long __this__nativeId, int menuRole); /** *

See QAction::setPriority(QAction::Priority)

*/ @io.qt.QtPropertyWriter(name="priority") @io.qt.QtUninvokable public final void setPriority(io.qt.gui.QAction.Priority priority){ setPriority_native_QAction_Priority(QtJambi_LibraryUtilities.internal.nativeId(this), priority.value()); } @io.qt.QtUninvokable private native void setPriority_native_QAction_Priority(long __this__nativeId, int priority); /** *

See QAction::setSeparator(bool)

*/ @io.qt.QtUninvokable public final void setSeparator(boolean b){ setSeparator_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b); } @io.qt.QtUninvokable private native void setSeparator_native_bool(long __this__nativeId, boolean b); /** *

See QAction::setShortcut(QKeySequence)

*/ @io.qt.QtPropertyWriter(name="shortcut") @io.qt.QtUninvokable public final void setShortcut(io.qt.gui.QKeySequence shortcut){ setShortcut_native_cref_QKeySequence(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(shortcut)); } @io.qt.QtUninvokable private native void setShortcut_native_cref_QKeySequence(long __this__nativeId, long shortcut); /** *

See QAction::setShortcutContext(Qt::ShortcutContext)

*/ @io.qt.QtPropertyWriter(name="shortcutContext") @io.qt.QtUninvokable public final void setShortcutContext(io.qt.core.Qt.ShortcutContext context){ setShortcutContext_native_Qt_ShortcutContext(QtJambi_LibraryUtilities.internal.nativeId(this), context.value()); } @io.qt.QtUninvokable private native void setShortcutContext_native_Qt_ShortcutContext(long __this__nativeId, int context); /** *

See QAction::setShortcutVisibleInContextMenu(bool)

*/ @io.qt.QtPropertyWriter(name="shortcutVisibleInContextMenu") @io.qt.QtUninvokable public final void setShortcutVisibleInContextMenu(boolean show){ setShortcutVisibleInContextMenu_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), show); } @io.qt.QtUninvokable private native void setShortcutVisibleInContextMenu_native_bool(long __this__nativeId, boolean show); /** *

See QAction::setShortcuts(QKeySequence::StandardKey)

*/ @io.qt.QtUninvokable public final void setShortcuts(io.qt.gui.QKeySequence.StandardKey arg__1){ setShortcuts_native_QKeySequence_StandardKey(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @io.qt.QtUninvokable private native void setShortcuts_native_QKeySequence_StandardKey(long __this__nativeId, int arg__1); /** *

See QAction::setShortcuts(QList<QKeySequence>)

*/ @io.qt.QtUninvokable public final void setShortcuts(java.util.Collection shortcuts){ setShortcuts_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), shortcuts); } @io.qt.QtUninvokable private native void setShortcuts_native_cref_QList(long __this__nativeId, java.util.Collection shortcuts); /** *

See QAction::setStatusTip(QString)

*/ @io.qt.QtPropertyWriter(name="statusTip") @io.qt.QtUninvokable public final void setStatusTip(java.lang.String statusTip){ setStatusTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), statusTip); } @io.qt.QtUninvokable private native void setStatusTip_native_cref_QString(long __this__nativeId, java.lang.String statusTip); /** *

See QAction::setText(QString)

*/ @io.qt.QtPropertyWriter(name="text") @io.qt.QtUninvokable public final void setText(java.lang.String text){ setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @io.qt.QtUninvokable private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text); /** *

See QAction::setToolTip(QString)

*/ @io.qt.QtPropertyWriter(name="toolTip") @io.qt.QtUninvokable public final void setToolTip(java.lang.String tip){ setToolTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), tip); } @io.qt.QtUninvokable private native void setToolTip_native_cref_QString(long __this__nativeId, java.lang.String tip); /** *

See QAction::setVisible(bool)

*/ @io.qt.QtPropertyWriter(name="visible") public final void setVisible(boolean arg__1){ setVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } private native void setVisible_native_bool(long __this__nativeId, boolean arg__1); /** *

See QAction::setWhatsThis(QString)

*/ @io.qt.QtPropertyWriter(name="whatsThis") @io.qt.QtUninvokable public final void setWhatsThis(java.lang.String what){ setWhatsThis_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), what); } @io.qt.QtUninvokable private native void setWhatsThis_native_cref_QString(long __this__nativeId, java.lang.String what); /** *

See QAction::shortcut()const

*/ @io.qt.QtPropertyReader(name="shortcut") @io.qt.QtUninvokable public final io.qt.gui.QKeySequence shortcut(){ return shortcut_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QKeySequence shortcut_native_constfct(long __this__nativeId); /** *

See QAction::shortcutContext()const

*/ @io.qt.QtPropertyReader(name="shortcutContext") @io.qt.QtUninvokable public final io.qt.core.Qt.ShortcutContext shortcutContext(){ return io.qt.core.Qt.ShortcutContext.resolve(shortcutContext_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int shortcutContext_native_constfct(long __this__nativeId); /** *

See QAction::shortcuts()const

*/ @io.qt.QtUninvokable public final io.qt.core.QList shortcuts(){ return shortcuts_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QList shortcuts_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #showStatusText(io.qt.core.QObject)} * with object = null.

*/ @io.qt.QtUninvokable public final boolean showStatusText() { return showStatusText((io.qt.core.QObject)null); } /** *

See QAction::showStatusText(QObject*)

*/ @io.qt.QtUninvokable public final boolean showStatusText(io.qt.core.QObject object){ return showStatusText_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object)); } @io.qt.QtUninvokable private native boolean showStatusText_native_QObject_ptr(long __this__nativeId, long object); /** *

See QAction::statusTip()const

*/ @io.qt.QtPropertyReader(name="statusTip") @io.qt.QtUninvokable public final java.lang.String statusTip(){ return statusTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String statusTip_native_constfct(long __this__nativeId); /** *

See QAction::text()const

*/ @io.qt.QtPropertyReader(name="text") @io.qt.QtUninvokable public final java.lang.String text(){ return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String text_native_constfct(long __this__nativeId); /** *

See QAction::toggle()

*/ public final void toggle(){ toggle_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void toggle_native(long __this__nativeId); /** *

See QAction::toolTip()const

*/ @io.qt.QtPropertyReader(name="toolTip") @io.qt.QtUninvokable public final java.lang.String toolTip(){ return toolTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String toolTip_native_constfct(long __this__nativeId); /** *

See QAction::trigger()

*/ public final void trigger(){ trigger_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void trigger_native(long __this__nativeId); /** *

See QAction::whatsThis()const

*/ @io.qt.QtPropertyReader(name="whatsThis") @io.qt.QtUninvokable public final java.lang.String whatsThis(){ return whatsThis_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String whatsThis_native_constfct(long __this__nativeId); /** *

See QObject::event(QEvent*)

*/ @io.qt.QtUninvokable public boolean event(io.qt.core.QEvent arg__1){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long arg__1); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QAction(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QAction(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QAction instance, QDeclarativeConstructor constructor); private QActionGroup __rcActionGroup = null; /** * Sets the shortcut to the key sequence for the given key string. For * example "Ctrl+O" gives CTRL+'O'. The strings "Ctrl", "Shift", "Alt" and * "Meta" are recognized, as well as their translated equivalents in the * "QShortcut" context (using QObject::tr()). Up to four key codes may be * entered by separating them with commas, e.g. "Alt+X,Ctrl+S,Q". * * @param key * The description of the key sequence. Typically used with tr() * so key sequences can be locale aware. */ public final void setShortcut(String key) { setShortcut(new QKeySequence(key)); } /** * Sets the shortcut to the key sequence for the given key. The result will * depend on the currently running platform. The key sequence will be based * on the first element in the list of key bindings for the key. * * @param key * The key for which to select a key sequence */ public final void setShortcut(QKeySequence.StandardKey key) { setShortcut(new QKeySequence(key)); } public final void setIcon(QPixmap pm) { setIcon(new QIcon(pm)); } @io.qt.QtUninvokable public final io.qt.widgets.QMenu menu(){ return menu(io.qt.widgets.QMenu.class); } @io.qt.QtUninvokable public final T menu(Class type) { io.qt.core.QObject result = menuObject(); if(!type.isInstance(result)) return type.cast(result); return null; } private Object __rcMenu; @io.qt.QtUninvokable public final void setMenu(io.qt.core.QObject menu){ setMenuObject(menu); __rcMenu = menuObject(); } @io.qt.QtUninvokable private native io.qt.core.QObject menuObject(); @io.qt.QtUninvokable private native void setMenuObject(io.qt.core.QObject menu); @io.qt.QtUninvokable public final T parent(Class type) { io.qt.core.QObject result = parent(); while (result!=null && !type.isInstance(result)) result = result.parent(); return type.cast(result); } @io.qt.QtUninvokable public final java.util.List associatedObjects(Class type) { java.util.List result = new java.util.ArrayList<>(); for (io.qt.core.QObject object : associatedObjects()) if (type.isInstance(object)) result.add(type.cast(object)); return result; } @io.qt.QtUninvokable public final io.qt.widgets.QWidget parentWidget(){ return parent(io.qt.widgets.QWidget.class); } @io.qt.QtUninvokable public final java.util.List associatedWidgets() { return associatedObjects(io.qt.widgets.QWidget.class); } @io.qt.QtUninvokable public final java.util.List associatedGraphicsWidgets() { return associatedObjects(io.qt.widgets.QGraphicsWidget.class); } @Override @io.qt.QtUninvokable public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private static native String toString_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy