DI-Guy Lua AI SDK
 All Classes Files Functions Variables Groups Pages
lqt Class Reference

This package is responsible for loading and wrapping a binding around qt4. More...

Public Member Functions

 init_package ()
 this function is called at time 0 More...
 
 reset_package ()
 this function is called at reset More...
 

Static Public Member Functions

Helper functions
static print_children (widget, space)
 Prints qt children of object to the log window. More...
 
static print_methods (widget)
 Prints methods of object to the log window. More...
 
static load_uic (name)
 Uses the QUiLoader class to dynamically load and moc a UIC file on the fly. More...
 
static qt_invoke (...)
 Calls a slot created in a derived class. More...
 
static qt_dynamic_cast (qobject)
 Casts a qobject from a derived class to a qt base class. More...
 
static add_button_function (obj, f)
 Helper function to add a clicked script. More...
 

internal functions

 initialized = true
 
static load_qdll (name)
 Loads a qt binding dll. More...
 

Detailed Description

This package is responsible for loading and wrapping a binding around qt4.

Member Function Documentation

static lqt::add_button_function ( obj  ,
 
)
static

Helper function to add a clicked script.

lqt::init_package ( )

this function is called at time 0

static lqt::load_qdll ( name  )
static

Loads a qt binding dll.

Loads a lqt binding library off of disk and calls the entry point, should work off of diguy install as well as the bdi internal tree

By default this package loads qtcore, qtgui, qtuitools

Parameters
namesimple name of dll
static lqt::load_uic ( name  )
static

Uses the QUiLoader class to dynamically load and moc a UIC file on the fly.

Parameters
namestring path to the uic file to load
static lqt::print_children ( widget  ,
space   
)
static

Prints qt children of object to the log window.

Recursively prints qt children to the log window, handy for inspecting objects without resorting to Qt Designer

Parameters
widgetpointer to qobject of interest
spaceoptional arg, automaticaly incremented to help make tree structure
static lqt::print_methods ( widget  )
static

Prints methods of object to the log window.

Prints all slots and signals a widget has to the log window, usefull for seeing what signals an object emits and what slots you can call qt_invoke on. also handy for inspecting objects without resorting to Qt Designer

Parameters
widgetpointer to qobject of interest
static lqt::qt_dynamic_cast ( qobject  )
static

Casts a qobject from a derived class to a qt base class.

If a QObject is a pointer to a derived class you may need to use this function to cast it into something that lqt has bound against (ie QWidget or QDialog)

static lqt::qt_invoke (   ...)
static

Calls a slot created in a derived class.

This just wrap a function registered by DI-Guy Scenario, putting it in a local place. Allows any slot to be called via a pointer to an arbitrary qobject child. This is the only way to call a function in a derived class.

lqt::reset_package ( )

this function is called at reset

Member Data Documentation

lqt::initialized = true

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