跳转至

f

class f

Properties
Methods

imported=importLicenseFile(fileName)

导入软件许可证

fileName:许可证的文件名

imported:是否已导入

f.importLicenseFile('XMLdata/licenseDefault.mat');

align2center(form)

将窗口正中对齐

clearApp()

清除当前App记录

见user_Apps

clearFunction()

清除当前全部函数记录

见user_Functions

define(funFileName)

定义一个函数

文件名

见user_Functions

getFunctionList()

获取当前函数列表

见user_Functions

getGlobalData(name)

获取已设置的全局变量

全局变量名

见user_Functions

getHandles()

获得窗口的控件列表

控件列表结构 体

f.getHandles(); 见user_setFontSize

run(funFileName, varargin)

运行自定义函数

函数名和参数

见user_Functions

runWinApp(exportedFileName, varargin)

运行自定义App

exportedFileName: App文件名;varargin: 是否包含默认菜单,true or false

WinApp类对象

见user_Apps

save(fileName, data, varargin)

保存矩阵数据到记事本文件(.txt)或excel文件(.xls)

fileName:文件名;data:矩阵数据;varargin:可选参数,不输入时默认保存为记事本文件,输入字符串'excel'时,保存为excel文件

setGlobalData(name, value)

设置全局变量

name: 全局变量名;value: 变量值

见user_Functions

0以下为程序内部函数,通常不直接使用

ChangeOutputFocus(OutputFocus)

ChangePlottingArea(PlottingArea)

ChangePlottingAreaParent(PlottingAreaParent)

clearAll()

*将删除

clearCommands(MatDEMcommands)

commandsChar2Cell(MatDEMcommandsChar)

commandsChar2Cell0(MatDEMcommandsChar)

getFileName(funFileName)

getFunHeadName(funHead)

getOneCommand(MatDEMi, MatDEMcommands, addNeedEndNum)

isCommandHaveEnd(commandOne)

isCommandNeedEnd(commandOne)

readClassFun(lines)

readFile(fileName)

readFile0(fileName)

removeComment(commandStr)

removeComments(lines)

removeEmptyLine(lines)

runFile(fileName, MatDEMpara)

runFileCommandCells(MatDEMcommands, MatDEMParaName, MatDEMsave)

*将删除

runFunctionCommandCells(MatDEMcommands, MatDEMpara)

*将删除

runUserCode(codeStr)

*将删除