io.qt.script.tools.QScriptEngineDebugger Maven / Gradle / Ivy
Show all versions of qtjambi-scripttools Show documentation
package io.qt.script.tools;
import io.qt.*;
/**
* QScriptEngine debugger
* Java wrapper for Qt class QScriptEngineDebugger
* @since This class was introduced in Qt 4.5.
*/
public class QScriptEngineDebugger extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QScriptEngineDebugger.class);
/**
* Java wrapper for Qt enum QScriptEngineDebugger::DebuggerAction
*/
@QtUnlistedEnum
public enum DebuggerAction implements QtEnumerator {
/**
* Representing QScriptEngineDebugger:: InterruptAction
*/
InterruptAction(0),
/**
* Representing QScriptEngineDebugger:: ContinueAction
*/
ContinueAction(1),
/**
* Representing QScriptEngineDebugger:: StepIntoAction
*/
StepIntoAction(2),
/**
* Representing QScriptEngineDebugger:: StepOverAction
*/
StepOverAction(3),
/**
* Representing QScriptEngineDebugger:: StepOutAction
*/
StepOutAction(4),
/**
* Representing QScriptEngineDebugger:: RunToCursorAction
*/
RunToCursorAction(5),
/**
* Representing QScriptEngineDebugger:: RunToNewScriptAction
*/
RunToNewScriptAction(6),
/**
* Representing QScriptEngineDebugger:: ToggleBreakpointAction
*/
ToggleBreakpointAction(7),
/**
* Representing QScriptEngineDebugger:: ClearDebugOutputAction
*/
ClearDebugOutputAction(8),
/**
* Representing QScriptEngineDebugger:: ClearErrorLogAction
*/
ClearErrorLogAction(9),
/**
* Representing QScriptEngineDebugger:: ClearConsoleAction
*/
ClearConsoleAction(10),
/**
* Representing QScriptEngineDebugger:: FindInScriptAction
*/
FindInScriptAction(11),
/**
* Representing QScriptEngineDebugger:: FindNextInScriptAction
*/
FindNextInScriptAction(12),
/**
* Representing QScriptEngineDebugger:: FindPreviousInScriptAction
*/
FindPreviousInScriptAction(13),
/**
* Representing QScriptEngineDebugger:: GoToLineAction
*/
GoToLineAction(14);
static {
QtJambi_LibraryUtilities.initialize();
}
private DebuggerAction(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull DebuggerAction resolve(int value) {
switch (value) {
case 0: return InterruptAction;
case 1: return ContinueAction;
case 2: return StepIntoAction;
case 3: return StepOverAction;
case 4: return StepOutAction;
case 5: return RunToCursorAction;
case 6: return RunToNewScriptAction;
case 7: return ToggleBreakpointAction;
case 8: return ClearDebugOutputAction;
case 9: return ClearErrorLogAction;
case 10: return ClearConsoleAction;
case 11: return FindInScriptAction;
case 12: return FindNextInScriptAction;
case 13: return FindPreviousInScriptAction;
case 14: return GoToLineAction;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QScriptEngineDebugger::DebuggerState
* @since This enum was introduced in Qt 4.6.
*/
@QtUnlistedEnum
public enum DebuggerState implements QtEnumerator {
/**
* Representing QScriptEngineDebugger:: RunningState
*/
RunningState(0),
/**
* Representing QScriptEngineDebugger:: SuspendedState
*/
SuspendedState(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private DebuggerState(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull DebuggerState resolve(int value) {
switch (value) {
case 0: return RunningState;
case 1: return SuspendedState;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QScriptEngineDebugger::DebuggerWidget
*/
@QtUnlistedEnum
public enum DebuggerWidget implements QtEnumerator {
/**
* Representing QScriptEngineDebugger:: ConsoleWidget
*/
ConsoleWidget(0),
/**
* Representing QScriptEngineDebugger:: StackWidget
*/
StackWidget(1),
/**
* Representing QScriptEngineDebugger:: ScriptsWidget
*/
ScriptsWidget(2),
/**
* Representing QScriptEngineDebugger:: LocalsWidget
*/
LocalsWidget(3),
/**
* Representing QScriptEngineDebugger:: CodeWidget
*/
CodeWidget(4),
/**
* Representing QScriptEngineDebugger:: CodeFinderWidget
*/
CodeFinderWidget(5),
/**
* Representing QScriptEngineDebugger:: BreakpointsWidget
*/
BreakpointsWidget(6),
/**
* Representing QScriptEngineDebugger:: DebugOutputWidget
*/
DebugOutputWidget(7),
/**
* Representing QScriptEngineDebugger:: ErrorLogWidget
*/
ErrorLogWidget(8);
static {
QtJambi_LibraryUtilities.initialize();
}
private DebuggerWidget(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull DebuggerWidget resolve(int value) {
switch (value) {
case 0: return ConsoleWidget;
case 1: return StackWidget;
case 2: return ScriptsWidget;
case 3: return LocalsWidget;
case 4: return CodeWidget;
case 5: return CodeFinderWidget;
case 6: return BreakpointsWidget;
case 7: return DebugOutputWidget;
case 8: return ErrorLogWidget;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QScriptEngineDebugger:: evaluationResumed()
*/
public final @NonNull Signal0 evaluationResumed = new Signal0();
/**
* See QScriptEngineDebugger:: evaluationSuspended()
*/
public final @NonNull Signal0 evaluationSuspended = new Signal0();
/**
* See QScriptEngineDebugger:: QScriptEngineDebugger(QObject*)
* @param parent
*/
public QScriptEngineDebugger(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QScriptEngineDebugger instance, io.qt.core.QObject parent);
/**
* See QScriptEngineDebugger:: action(QScriptEngineDebugger::DebuggerAction)const
* @param action
* @return
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QAction action(io.qt.script.tools.QScriptEngineDebugger.@NonNull DebuggerAction action){
return action_native_QScriptEngineDebugger_DebuggerAction_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), action.value());
}
@QtUninvokable
private native io.qt.widgets.QAction action_native_QScriptEngineDebugger_DebuggerAction_constfct(long __this__nativeId, int action);
/**
* See QScriptEngineDebugger:: attachTo(QScriptEngine*)
* @param engine
*/
@SuppressWarnings({"exports"})
@QtUninvokable
public final void attachTo(io.qt.script.@Nullable QScriptEngine engine){
attachTo_native_QScriptEngine_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(engine));
}
@QtUninvokable
private native void attachTo_native_QScriptEngine_ptr(long __this__nativeId, long engine);
/**
* See QScriptEngineDebugger:: autoShowStandardWindow()const
* @return
*/
@QtUninvokable
public final boolean autoShowStandardWindow(){
return autoShowStandardWindow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean autoShowStandardWindow_native_constfct(long __this__nativeId);
/**
* See QScriptEngineDebugger:: createStandardMenu(QWidget*)
* @param parent
* @return
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QMenu createStandardMenu(io.qt.widgets.@Nullable QWidget parent){
return createStandardMenu_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native io.qt.widgets.QMenu createStandardMenu_native_QWidget_ptr(long __this__nativeId, long parent);
/**
* See QScriptEngineDebugger:: createStandardToolBar(QWidget*)
* @param parent
* @return
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QToolBar createStandardToolBar(io.qt.widgets.@Nullable QWidget parent){
return createStandardToolBar_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native io.qt.widgets.QToolBar createStandardToolBar_native_QWidget_ptr(long __this__nativeId, long parent);
/**
* See QScriptEngineDebugger:: detach()
*/
@QtUninvokable
public final void detach(){
detach_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void detach_native(long __this__nativeId);
/**
* See QScriptEngineDebugger:: setAutoShowStandardWindow(bool)
* @param autoShow
*/
@QtUninvokable
public final void setAutoShowStandardWindow(boolean autoShow){
setAutoShowStandardWindow_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), autoShow);
}
@QtUninvokable
private native void setAutoShowStandardWindow_native_bool(long __this__nativeId, boolean autoShow);
/**
* See QScriptEngineDebugger:: standardWindow()const
* @return
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QMainWindow standardWindow(){
return standardWindow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QMainWindow standardWindow_native_constfct(long __this__nativeId);
/**
* See QScriptEngineDebugger:: state()const
* @since This function was introduced in Qt 4.6.
* @return
*/
@QtUninvokable
public final io.qt.script.tools.QScriptEngineDebugger.@NonNull DebuggerState state(){
return io.qt.script.tools.QScriptEngineDebugger.DebuggerState.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int state_native_constfct(long __this__nativeId);
/**
* See QScriptEngineDebugger:: widget(QScriptEngineDebugger::DebuggerWidget)const
* @param widget
* @return
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget widget(io.qt.script.tools.QScriptEngineDebugger.@NonNull DebuggerWidget widget){
return widget_native_QScriptEngineDebugger_DebuggerWidget_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), widget.value());
}
@QtUninvokable
private native io.qt.widgets.QWidget widget_native_QScriptEngineDebugger_DebuggerWidget_constfct(long __this__nativeId, int widget);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QScriptEngineDebugger(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QScriptEngineDebugger(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QScriptEngineDebugger instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QScriptEngineDebugger(io.qt.core.QObject)}
* with parent = null
.
*/
public QScriptEngineDebugger() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded function for {@link #createStandardMenu(io.qt.widgets.QWidget)}
* with parent = null
.
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QMenu createStandardMenu() {
return createStandardMenu((io.qt.widgets.QWidget)null);
}
/**
* Overloaded function for {@link #createStandardToolBar(io.qt.widgets.QWidget)}
* with parent = null
.
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QToolBar createStandardToolBar() {
return createStandardToolBar((io.qt.widgets.QWidget)null);
}
}