Skyline Lua API  Version 1.0 RC1
Lua Script Reference for Skyline Game Engine.
qt Class Reference

#include <LUA_API_QT.h>

Public Member Functions

qt setSelectionMode (editorName, objectName, 1)
 QT Set selection mode. More...
 
qt getSelectionMode (editorName, objectName,)
 QT Get selection mode. More...
 
qt setTreeSelectedItem (editorName, objectName, id, selected(int))
 QT Set tree selected item. More...
 
qt setListSelectedItem (editorName, objectName, id, selected(int))
 QT Set list selected item. More...
 
qt setTableSelectedItem (editorName, objectName, row, column, selected(int))
 QT Set table selected item. More...
 
qt deselectAllItems (editorName, objectName)
 QT deselect all items. More...
 
qt openEditor (editorname, subEditorName,(opt) state)
 QT open sub-editor UI file. More...
 
qt closeEditor (editorname, subEditorName)
 QT Close opened sub-editor. More...
 

Public Attributes

 array = qt.getSelectedItems(editorName, objectName)
 QT Get selected items. More...
 
 itemCount = qt.getListItemCount(editorName, objectName)
 QT Get listed item count. More...
 
 isSelected = qt.getTreeSelectedItem(editorName, objectName, id)
 QT Get tree selected item. More...
 

Detailed Description

This area covers qt functions. Set or get various qt propertie.
Use as qt.function()
Skyline has a custom editor creation pipeline using QT files that are
recreated into a custom editor that is apart of the main editor.
This can be accessed from the plugin menu on the main menu.
The functions found in this file are here to control the qt widgets to
create a vast array of editors.
Editors can also be packaged and sent to others or added to the asset store
For more information on how these functions can be used please visit the User Manual - http://www.aurasoft-skyline.co.uk

Member Function Documentation

qt qt::closeEditor ( editorname  ,
subEditorName   
)

QT Close opened sub-editor.

Parameters
editorName: Editor name
subEditorName: Object name

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
qt qt::deselectAllItems ( editorName  ,
objectName   
)

QT deselect all items.

Parameters
editorName: Editor name
objectName: Object name

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
qt qt::getSelectionMode ( editorName  ,
objectName   
)

QT Get selection mode.

Parameters
editorName: Editor name
objectName: Object name

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
qt qt::openEditor ( editorname  ,
subEditorName  ,
(opt)  state 
)

QT open sub-editor UI file.

Parameters
editorName: Editor name
subEditorName: Object name
state: Optional

Open a sub editor ui file, message box, other dialog. Optional arg of 1 for exec() and 0 for show()

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
qt qt::setListSelectedItem ( editorName  ,
objectName  ,
id  ,
selected(int)   
)

QT Set list selected item.

Parameters
editorName: Editor name
objectName: Object name
id: Int ID

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
qt qt::setSelectionMode ( editorName  ,
objectName  ,
 
)

QT Set selection mode.

Parameters
editorName: Editor name
objectName: Object name
1: Integer

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
qt qt::setTableSelectedItem ( editorName  ,
objectName  ,
row  ,
column  ,
selected(int)   
)

QT Set table selected item.

Parameters
editorName: Editor name
objectName: Object name
row:
column:
selected: Int

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
qt qt::setTreeSelectedItem ( editorName  ,
objectName  ,
id  ,
selected(int)   
)

QT Set tree selected item.

Parameters
editorName: Editor name
objectName: Object name
id: int
selected: int

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end

Member Data Documentation

qt::array = qt.getSelectedItems(editorName, objectName)

QT Get selected items.

Parameters
editorName: Editor name
objectName: Object name

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
qt::isSelected = qt.getTreeSelectedItem(editorName, objectName, id)

QT Get tree selected item.

QT Get table selected item.

QT Get list selected item.

Parameters
editorName: Editor name
objectName: Object name
id: Int ID

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
Parameters
editorName: Editor name
objectName: Object name
row:
column:

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end
qt::itemCount = qt.getListItemCount(editorName, objectName)

QT Get listed item count.

Parameters
editorName: Editor name
objectName: Object name

Here is a Small Example of how to use this function:

function onInit(objID)
    -- Enter example here
end

The documentation for this class was generated from the following file: