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

io.qt.widgets.QMdiArea Maven / Gradle / Ivy

The newest version!
package io.qt.widgets;


/**
 * 

Area in which MDI windows are displayed

*

Java wrapper for Qt class QMdiArea

*/ public class QMdiArea extends io.qt.widgets.QAbstractScrollArea { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMdiArea.class); /** *

Java wrapper for Qt enum QMdiArea::AreaOption

* * @see AreaOptions */ public enum AreaOption implements io.qt.QtFlagEnumerator { DontMaximizeSubWindowOnActivation(1); private AreaOption(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public AreaOptions asFlags() { return new AreaOptions(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public AreaOptions combined(AreaOption e) { return new AreaOptions(this, e); } /** * Creates a new {@link AreaOptions} from the entries. * @param values entries * @return new flag */ public static AreaOptions flags(AreaOption ... values) { return new AreaOptions(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static AreaOption resolve(int value) { switch (value) { case 1: return DontMaximizeSubWindowOnActivation; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * QFlags type for enum {@link AreaOption} */ public static final class AreaOptions extends io.qt.QFlags implements Comparable { private static final long serialVersionUID = 0x60a1e66994b0821dL; /** * Creates a new AreaOptions where the flags in args are set. * @param args enum entries */ public AreaOptions(AreaOption ... args){ super(args); } /** * Creates a new AreaOptions with given value. * @param value */ public AreaOptions(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new AreaOptions */ @Override public final AreaOptions combined(AreaOption e){ return new AreaOptions(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final AreaOptions setFlag(AreaOption e){ super.setFlag(e); return this; } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final AreaOptions setFlag(AreaOption e, boolean on){ super.setFlag(e, on); return this; } /** * Returns an array of flag objects represented by this AreaOptions. * @return array of enum entries */ @Override public final AreaOption[] flags(){ return super.flags(AreaOption.values()); } /** * {@inheritDoc} */ @Override public final AreaOptions clone(){ return new AreaOptions(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(AreaOptions other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QMdiArea::ViewMode

*/ public enum ViewMode implements io.qt.QtEnumerator { SubWindowView(0), TabbedView(1); private ViewMode(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 ViewMode resolve(int value) { switch (value) { case 0: return SubWindowView; case 1: return TabbedView; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QMdiArea::WindowOrder

*/ public enum WindowOrder implements io.qt.QtEnumerator { CreationOrder(0), StackingOrder(1), ActivationHistoryOrder(2); private WindowOrder(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 WindowOrder resolve(int value) { switch (value) { case 0: return CreationOrder; case 1: return StackingOrder; case 2: return ActivationHistoryOrder; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QMdiArea::subWindowActivated(QMdiSubWindow*)

*/ public final Signal1 subWindowActivated = new Signal1<>(); /** *

Overloaded constructor for {@link #QMdiArea(io.qt.widgets.QWidget)} * with parent = null.

*/ public QMdiArea() { this((io.qt.widgets.QWidget)null); } /** *

See QMdiArea::QMdiArea(QWidget*)

*/ public QMdiArea(io.qt.widgets.QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QMdiArea instance, io.qt.widgets.QWidget parent); /** *

See QMdiArea::activateNextSubWindow()

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

See QMdiArea::activatePreviousSubWindow()

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

See QMdiArea::activationOrder()const

*/ @io.qt.QtPropertyReader(name="activationOrder") @io.qt.QtUninvokable public final io.qt.widgets.QMdiArea.WindowOrder activationOrder(){ return io.qt.widgets.QMdiArea.WindowOrder.resolve(activationOrder_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int activationOrder_native_constfct(long __this__nativeId); /** *

See QMdiArea::activeSubWindow()const

*/ @io.qt.QtUninvokable public final io.qt.widgets.QMdiSubWindow activeSubWindow(){ return activeSubWindow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.widgets.QMdiSubWindow activeSubWindow_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #addSubWindow(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.

*/ @io.qt.QtUninvokable public final io.qt.widgets.QMdiSubWindow addSubWindow(io.qt.widgets.QWidget widget, io.qt.core.Qt.WindowType ... flags){ return addSubWindow(widget, new io.qt.core.Qt.WindowFlags(flags)); } /** *

Overloaded function for {@link #addSubWindow(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)} * with flags = new io.qt.core.Qt.WindowFlags(0).

*/ @io.qt.QtUninvokable public final io.qt.widgets.QMdiSubWindow addSubWindow(io.qt.widgets.QWidget widget) { return addSubWindow(widget, new io.qt.core.Qt.WindowFlags(0)); } /** *

See QMdiArea::addSubWindow(QWidget*,Qt::WindowFlags)

*/ @io.qt.QtUninvokable public final io.qt.widgets.QMdiSubWindow addSubWindow(io.qt.widgets.QWidget widget, io.qt.core.Qt.WindowFlags flags){ return addSubWindow_native_QWidget_ptr_QFlags_Qt_WindowType_(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), flags.value()); } @io.qt.QtUninvokable private native io.qt.widgets.QMdiSubWindow addSubWindow_native_QWidget_ptr_QFlags_Qt_WindowType_(long __this__nativeId, long widget, int flags); /** *

See QMdiArea::background()const

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

See QMdiArea::cascadeSubWindows()

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

See QMdiArea::closeActiveSubWindow()

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

See QMdiArea::closeAllSubWindows()

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

See QMdiArea::currentSubWindow()const

*/ @io.qt.QtUninvokable public final io.qt.widgets.QMdiSubWindow currentSubWindow(){ return currentSubWindow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.widgets.QMdiSubWindow currentSubWindow_native_constfct(long __this__nativeId); /** *

See QMdiArea::documentMode()const

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

See QMdiArea::removeSubWindow(QWidget*)

*/ @io.qt.QtUninvokable public final void removeSubWindow(io.qt.widgets.QWidget widget){ removeSubWindow_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); } @io.qt.QtUninvokable private native void removeSubWindow_native_QWidget_ptr(long __this__nativeId, long widget); /** *

See QMdiArea::setActivationOrder(QMdiArea::WindowOrder)

*/ @io.qt.QtPropertyWriter(name="activationOrder") @io.qt.QtUninvokable public final void setActivationOrder(io.qt.widgets.QMdiArea.WindowOrder order){ setActivationOrder_native_QMdiArea_WindowOrder(QtJambi_LibraryUtilities.internal.nativeId(this), order.value()); } @io.qt.QtUninvokable private native void setActivationOrder_native_QMdiArea_WindowOrder(long __this__nativeId, int order); /** *

See QMdiArea::setActiveSubWindow(QMdiSubWindow*)

*/ public final void setActiveSubWindow(io.qt.widgets.QMdiSubWindow window){ setActiveSubWindow_native_QMdiSubWindow_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(window)); } private native void setActiveSubWindow_native_QMdiSubWindow_ptr(long __this__nativeId, long window); /** *

See QMdiArea::setBackground(QBrush)

*/ @io.qt.QtPropertyWriter(name="background") @io.qt.QtUninvokable public final void setBackground(io.qt.gui.QBrush background){ setBackground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(background)); } @io.qt.QtUninvokable private native void setBackground_native_cref_QBrush(long __this__nativeId, long background); /** *

See QMdiArea::setDocumentMode(bool)

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

Overloaded function for {@link #setOption(io.qt.widgets.QMdiArea.AreaOption, boolean)} * with on = true.

*/ @io.qt.QtUninvokable public final void setOption(io.qt.widgets.QMdiArea.AreaOption option) { setOption(option, (boolean)true); } /** *

See QMdiArea::setOption(QMdiArea::AreaOption,bool)

*/ @io.qt.QtUninvokable public final void setOption(io.qt.widgets.QMdiArea.AreaOption option, boolean on){ setOption_native_QMdiArea_AreaOption_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on); } @io.qt.QtUninvokable private native void setOption_native_QMdiArea_AreaOption_bool(long __this__nativeId, int option, boolean on); /** *

See QMdiArea::setTabPosition(QTabWidget::TabPosition)

*/ @io.qt.QtPropertyWriter(name="tabPosition") @io.qt.QtUninvokable public final void setTabPosition(io.qt.widgets.QTabWidget.TabPosition position){ setTabPosition_native_QTabWidget_TabPosition(QtJambi_LibraryUtilities.internal.nativeId(this), position.value()); } @io.qt.QtUninvokable private native void setTabPosition_native_QTabWidget_TabPosition(long __this__nativeId, int position); /** *

See QMdiArea::setTabShape(QTabWidget::TabShape)

*/ @io.qt.QtPropertyWriter(name="tabShape") @io.qt.QtUninvokable public final void setTabShape(io.qt.widgets.QTabWidget.TabShape shape){ setTabShape_native_QTabWidget_TabShape(QtJambi_LibraryUtilities.internal.nativeId(this), shape.value()); } @io.qt.QtUninvokable private native void setTabShape_native_QTabWidget_TabShape(long __this__nativeId, int shape); /** *

See QMdiArea::setTabsClosable(bool)

*/ @io.qt.QtPropertyWriter(name="tabsClosable") @io.qt.QtUninvokable public final void setTabsClosable(boolean closable){ setTabsClosable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), closable); } @io.qt.QtUninvokable private native void setTabsClosable_native_bool(long __this__nativeId, boolean closable); /** *

See QMdiArea::setTabsMovable(bool)

*/ @io.qt.QtPropertyWriter(name="tabsMovable") @io.qt.QtUninvokable public final void setTabsMovable(boolean movable){ setTabsMovable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), movable); } @io.qt.QtUninvokable private native void setTabsMovable_native_bool(long __this__nativeId, boolean movable); /** *

See QMdiArea::setViewMode(QMdiArea::ViewMode)

*/ @io.qt.QtPropertyWriter(name="viewMode") @io.qt.QtUninvokable public final void setViewMode(io.qt.widgets.QMdiArea.ViewMode mode){ setViewMode_native_QMdiArea_ViewMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native void setViewMode_native_QMdiArea_ViewMode(long __this__nativeId, int mode); /** *

Overloaded function for {@link #subWindowList(io.qt.widgets.QMdiArea.WindowOrder)} * with order = io.qt.widgets.QMdiArea.WindowOrder.CreationOrder.

*/ @io.qt.QtUninvokable public final io.qt.core.QList subWindowList() { return subWindowList(io.qt.widgets.QMdiArea.WindowOrder.CreationOrder); } /** *

See QMdiArea::subWindowList(QMdiArea::WindowOrder)const

*/ @io.qt.QtUninvokable public final io.qt.core.QList subWindowList(io.qt.widgets.QMdiArea.WindowOrder order){ return subWindowList_native_QMdiArea_WindowOrder_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), order.value()); } @io.qt.QtUninvokable private native io.qt.core.QList subWindowList_native_QMdiArea_WindowOrder_constfct(long __this__nativeId, int order); /** *

See QMdiArea::tabPosition()const

*/ @io.qt.QtPropertyReader(name="tabPosition") @io.qt.QtUninvokable public final io.qt.widgets.QTabWidget.TabPosition tabPosition(){ return io.qt.widgets.QTabWidget.TabPosition.resolve(tabPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int tabPosition_native_constfct(long __this__nativeId); /** *

See QMdiArea::tabShape()const

*/ @io.qt.QtPropertyReader(name="tabShape") @io.qt.QtUninvokable public final io.qt.widgets.QTabWidget.TabShape tabShape(){ return io.qt.widgets.QTabWidget.TabShape.resolve(tabShape_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int tabShape_native_constfct(long __this__nativeId); /** *

See QMdiArea::tabsClosable()const

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

See QMdiArea::tabsMovable()const

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

See QMdiArea::testOption(QMdiArea::AreaOption)const

*/ @io.qt.QtUninvokable public final boolean testOption(io.qt.widgets.QMdiArea.AreaOption opton){ return testOption_native_QMdiArea_AreaOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), opton.value()); } @io.qt.QtUninvokable private native boolean testOption_native_QMdiArea_AreaOption_constfct(long __this__nativeId, int opton); /** *

See QMdiArea::tileSubWindows()

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

See QMdiArea::viewMode()const

*/ @io.qt.QtPropertyReader(name="viewMode") @io.qt.QtUninvokable public final io.qt.widgets.QMdiArea.ViewMode viewMode(){ return io.qt.widgets.QMdiArea.ViewMode.resolve(viewMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int viewMode_native_constfct(long __this__nativeId); /** *

See QObject::childEvent(QChildEvent*)

*/ @io.qt.QtUninvokable protected void childEvent(io.qt.core.QChildEvent childEvent){ childEvent_native_QChildEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(childEvent)); } @io.qt.QtUninvokable private native void childEvent_native_QChildEvent_ptr(long __this__nativeId, long childEvent); /** *

See QObject::event(QEvent*)

*/ @io.qt.QtUninvokable public boolean event(io.qt.core.QEvent event){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @io.qt.QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long event); /** *

See QObject::eventFilter(QObject*,QEvent*)

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

See QWidget::minimumSizeHint()const

*/ @io.qt.QtUninvokable public io.qt.core.QSize minimumSizeHint(){ return minimumSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QSize minimumSizeHint_native_constfct(long __this__nativeId); /** *

See QWidget::paintEvent(QPaintEvent*)

*/ @io.qt.QtUninvokable protected void paintEvent(io.qt.gui.QPaintEvent paintEvent){ paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(paintEvent)); } @io.qt.QtUninvokable private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long paintEvent); /** *

See QWidget::resizeEvent(QResizeEvent*)

*/ @io.qt.QtUninvokable protected void resizeEvent(io.qt.gui.QResizeEvent resizeEvent){ resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(resizeEvent)); } @io.qt.QtUninvokable private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long resizeEvent); /** *

See QAbstractScrollArea::scrollContentsBy(int,int)

*/ @io.qt.QtUninvokable protected void scrollContentsBy(int dx, int dy){ scrollContentsBy_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy); } @io.qt.QtUninvokable private native void scrollContentsBy_native_int_int(long __this__nativeId, int dx, int dy); /** *

See QAbstractScrollArea::setupViewport(QWidget*)

*/ public void setupViewport(io.qt.widgets.QWidget viewport){ setupViewport_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(viewport)); } private native void setupViewport_native_QWidget_ptr(long __this__nativeId, long viewport); /** *

See QWidget::showEvent(QShowEvent*)

*/ @io.qt.QtUninvokable protected void showEvent(io.qt.gui.QShowEvent showEvent){ showEvent_native_QShowEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(showEvent)); } @io.qt.QtUninvokable private native void showEvent_native_QShowEvent_ptr(long __this__nativeId, long showEvent); /** *

See QWidget::sizeHint()const

*/ @io.qt.QtUninvokable public io.qt.core.QSize sizeHint(){ return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId); /** *

See QObject::timerEvent(QTimerEvent*)

*/ @io.qt.QtUninvokable protected void timerEvent(io.qt.core.QTimerEvent timerEvent){ timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(timerEvent)); } @io.qt.QtUninvokable private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long timerEvent); /** *

See QAbstractScrollArea::viewportEvent(QEvent*)

*/ @io.qt.QtUninvokable protected boolean viewportEvent(io.qt.core.QEvent event){ return viewportEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @io.qt.QtUninvokable private native boolean viewportEvent_native_QEvent_ptr(long __this__nativeId, long event); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QMdiArea(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 QMdiArea(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QMdiArea instance, QDeclarativeConstructor constructor); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy