Example #1
0
def redo():
    print "redo"
    UndoRedoManager.getInstance().logDebug()
    UndoRedoManager.getInstance().redo()
Example #2
0
def undo():
    print "undo"
    UndoRedoManager.getInstance().logDebug()
    UndoRedoManager.getInstance().undo()
Example #3
0
widget.addControllerEditor( PyValController('myIntegerRange', 'Integer', 32, range = {'min': 10, 'max': 50 }) )
widget.addControllerEditor( PyValController('myScalarRange', 'Scalar', 3.2, range = {'min': 1.0, 'max': 5.0 }) )

widget.addControllerEditor( PyValController('myIntegerList', 'Integer', 1, combo = ['Option1', 'Option2', 'Option3' ] ) )
widget.addControllerEditor( PyValController('myStringList', 'String', 1, combo = ['Option1', 'Option2', 'Option3' ] ) )

widget.addControllerEditor( PyValController('vec2', 'Vec2', value=fetypes.Vec2() ) )
widget.addControllerEditor( PyValController('vec3', 'Vec3', value=fetypes.Vec3() ) )
widget.addControllerEditor( PyValController('vec4', 'Vec4', value=fetypes.Vec4() ) )
widget.addControllerEditor( RTValController('xfo', 'Xfo', value=fetypes.Xfo() ) )

widget.addControllerEditor( RTValController('color', 'Color', value=fetypes.Color() ) )

widget.addControllerEditor( RTValController('fileSave', 'FilePath', value=fetypes.FilePath.create(os.path.realpath(__file__)), WriteFile={
    'Title': 'Choose file to write...',
    'Filter': '"Python Files(*.py)'
    } ) )

widget.addControllerEditor( RTValController('fileLoad', 'FilePath', value=fetypes.FilePath.create("C:/Foo.txt"), ReadFile={
    'Title': 'Choose file to Load...',
    'Filter': '"Text Files(*.txt)'
    } ) )

widget.addStretch(1)

UndoRedoManager.getInstance().enable()
widget.show()
sys.exit(app.exec_())

Example #4
0
def redo():
    print "redo"
    UndoRedoManager.getInstance().logDebug()
    UndoRedoManager.getInstance().redo()
Example #5
0
def undo():
    print "undo"
    UndoRedoManager.getInstance().logDebug()
    UndoRedoManager.getInstance().undo()
Example #6
0
widget.addControllerEditor(
    PyValController('vec4', 'Vec4', value=fetypes.Vec4()))
widget.addControllerEditor(RTValController('xfo', 'Xfo', value=fetypes.Xfo()))

widget.addControllerEditor(
    RTValController('color', 'Color', value=fetypes.Color()))

widget.addControllerEditor(
    RTValController('fileSave',
                    'FilePath',
                    value=fetypes.FilePath.create(os.path.realpath(__file__)),
                    WriteFile={
                        'Title': 'Choose file to write...',
                        'Filter': '"Python Files(*.py)'
                    }))

widget.addControllerEditor(
    RTValController('fileLoad',
                    'FilePath',
                    value=fetypes.FilePath.create("C:/Foo.txt"),
                    ReadFile={
                        'Title': 'Choose file to Load...',
                        'Filter': '"Text Files(*.txt)'
                    }))

widget.addStretch(1)

UndoRedoManager.getInstance().enable()
widget.show()
sys.exit(app.exec_())