Inherits QObject, and QObject.
MLABRecentFilesHandler.
An MLABRecentFilesHandler manages a recent files sub menu.
Here is an example on how to use it:
def init():
recentFiles =
MLAB.readKey(applicationName, recentFilesKey)
recentFilesHandler =
MLAB.createRecentFilesHandler(ctx.window())
recentFilesHandler.setup(ctx.control("someMenu"))
recentFilesHandler.setRecentFiles(recentFiles.split(","))
recentFilesHandler.connect("fileActivated(QString)", loadFile)
def loadFile(filename):
# ...
recentFilesHandler.addRecentFile(filename)
recentFiles = recentFilesHandler.recentFiles()
recentFiles = ",".join(recentFiles)
MLAB.writeKey(applicationName, recentFilesKey, recentFiles)
Access to all global functions and objects of MLAB.
Definition mlabGlobalScriptAccess.h:79