A package implementing the QLua Integrated Development Environment (IDE), including the text editor, the object inspector, the help browser, and the lua graphical console.
This package is not complete because it is under heavy development.
Called without argument, this function returns a
text editor object of class QLuaEditor.
Otherwise it returns an editor for the file filename
,
possibly creating a new editor window.
It pops a message box and returns nil
if the
file filename
does not exist or cannot be loaded.
Open editors have object names of the form editor
n
and are accessible by name in the qt
package.
This function executes the chunk of Lua code
corresponding to the text present in the editor qluaeditor
.
This is the function called by the IDE when one selects
the menu entry "Load Lua File" from an editor
whose contents is not associated with a file
or has been modified (otherwise one can use the standard
Lua function dofile
.)
This function opens a web browser for URL url
.
The web browser is a widget of class QLuaBrowser.
This is the function called by the IDE when one
requests the help index.
Not yet implemented
Not yet implemented
Starts the QLua Integrated Development Environment (IDE)
and ensure that the main window is visible.
This function is called implicitly when program qlua
is executed with option -ide
.
The optional argument style
is a string
specifying the default IDE style.
When this argument is not specified
the last used style is assumed.
The recognized IDE styles are:
"sdi"
for an IDE with multiple main windows,"mdi"
for an IDE with subwindows in the style of Windows,"tab"
groups all editors into a single tabbed window."tab2"
groups all editors and the console into a single tabbed window.
This function is called by qtide.start() to setup the IDE style. You can call it directly if you want to organize QLua editors and windows without creating a graphic console.
Object qt.qLuaIde
represents the global state of the IDE.
This is the unique instance of class qt.QLuaIde
which inherits qt.QObject.
Most of its capabilities are conveniently
accessible using the functions defined
by the package ''qtide.
When a Lua error occurs, this boolean property
specifies whether editors are automatically opened
on the location of the error.
This property is false
by default
Function qtide.start sets it to true
.
Returns a variant of type qt.QObjectList
containing
all the main windows managed by the IDE.
Returns a variant of type qt.QStringList
containing
the names of all the main windows managed by the IDE.
Returns a variant of type qt.QStringList
containing
the file names appearing in the "Open Recent Files" menu.
This signal is emitted when the "Preferences" menu is selected.
This signal is emitted when the "Help Index" menu is selected.
This subclass of QMainWindow
implements common
functionalities shared by all main windows defined
by the qtide
package.
Methods whose name start with do
implement
the functions accessible from the menus and toolbar icons
in various subclasses of qt.QLuaMainWindow
.
This subclass of qt.QLuaMainWindow implements the QLua editor windows using an instance of qt.QLuaTextEdit as its main widget.
Expression qluaeditor:widget()
returns the
qt.QLuaTextEdit
object that underlies the editor window.
This property contains the name of the file being edited.
This subclass of qt.QLuaMainWindow implements the QLua web browser windows using the Qt WebKit interface.
This property contains a qt variant of type qt.QUrl representing the URL displayed by the browser.
This property contains a qt variant of type QString
representing the HTML text displayed by the browser.
This subclass of qt.QLuaMainWindow
implements the QLua console window.
Expression qt.qLuaSdiMain
returns the single console
window when such a window exists.
Returns the object of class qt.QLuaTextEdit implementing the part of the main console where the user can edit and submit lua strings.
Returns the object of class qt.QLuaTextEdit implementing the part of the main console where the Lua output is shown.
This subclass of qt.QLuaMainWindow
aggregates selected windows into a single main window
to implement the IDE styles. Expression qt.qLuaMdiMain
returns the single main window when such a window exists.
The boolean property qt.qLuaMdiMain.tabMode
indicates whether the aggregated
windows are displayed using tabs or using a multiple document interface.
The string property qt.qLuaMdiMain.clientClass
contains the name of a class.
All new main windows inheriting this class are then
managed by the single main window.
Collects all main windows that are
subclasses of qt.qLuaMdiMain.clientClass
and aggregates them into the mdi main window.
Class QLuaTextEdit
is a text editor widget derived
from QPlainTextEdit
with support for line numbers,
find dialog, replace dialog, and printing.
Class QLuaConsoleWidget
is a subclass of
qt.QLuaTextEdit
that captures and display the lua output.
Boolean property that indicates whether the console displays the running time of each command.
Adds text
to the console window.
Argument format
is a string specifying the text format.
Possible values are "default"
, "quote"
, and "comment"
.
Shows the bottom of the text displayed in the console window.
Expression qt.qLuaIde
refers to the unique instance
of class qt.QLuaIde.
This instance is created when package qtide
is loaded.
Expression qt.qLuaSdiMain
refers to the unique instance of
class qt.QLuaSdiMain,
created by function qtide.start().
Expression qt.qLuaMdiMain
refers to the unique instance of
class qt.QLuaMdiMain created
by function qtide.setup().
There is no such object when the IDE runs in SDI mode.