cPy.cIDE module

Contents

cPy.cIDE module#

class cIDEOneEditor[source]#

Bases: object

Update()[source]#
class cHostScriptSource[source]#

Bases: object

host: any#
ideEditor: cIDEOneEditor#
getSource() str[source]#
getFilePath() str[source]#
setSource(src: str)[source]#
setFilePath(src: str)[source]#
ChangedFromHost: bool#
IsOpennedInEditor: bool#
SetIsOpennedInEditor(new_value: bool)[source]#
Ping()[source]#
OnChange()[source]#
OnSave()[source]#
OnClose()[source]#
class cIDE[source]#

Bases: object

DefaultIDE: cIDE = <cModules.IDE.IDE.CoatIDE object>#
static SetDefaultIDE(defaultIDE: cIDE)[source]#
EditSource(scriptSource: cHostScriptSource)[source]#
sendMessage(scriptSource: cHostScriptSource, message: str)[source]#
class PTRecord(aType: str, aMessage: str, aCode: str)[source]#

Bases: object

time: any#
message_type: str#
message: str#
code: str#
static add(aType: str, aMessage: str, aCode: str)[source]#
static replaceLast(aType: str, aMessage: str, aCode: str)[source]#
static count() int[source]#
static get(idx: int) PTRecord[source]#
class PythonTerminalOut[source]#

Bases: object

TypeName: str#
setType(type_name: str)[source]#
write(message: str)[source]#
flush()[source]#
class PythonTerminal[source]#

Bases: object

static Set(pythonTerminal: PythonTerminal)[source]#
static Get() PythonTerminal[source]#
OnRunScript()[source]#
OnActivate()[source]#
OnShow()[source]#
OnMessage(type_name: str, message: str, code: str, message_time: any, replace_last: bool)[source]#
LegacyOutput: bool#
class DefaultTerminal[source]#

Bases: PythonTerminal

static dynamic_cast(pObject: PythonTerminal) DefaultTerminal[source]#
An analogue of the dynamic_cast function from C++, it checks whether the object pObject is a DefaultTerminal class or its descendant, and if so, returns the specified object, but of the DefaultTerminal type.
defaultTerminal: DefaultTerminal = DefaultTerminal object>#
OnRunScript()[source]#
OnActivate()[source]#
OnMessage(type_name: str, message: str, code: str, message_time: any, replace_last: bool)[source]#
class CLSPToken[source]#

Bases: object

name: str#
comment: str#
childs: any#
class CLikeSourceProcessor[source]#

Bases: object

result: cStr#
cStr RawResult;
currentPos: int#
ConvertTokens()[source]#
FindNextToken(fromIdx: int) int[source]#
FindPrevToken(fromIdx: int) int[source]#
IsFunction(fromIdx: int) bool[source]#
HasBlockAfterLine(fromIdx: int) bool[source]#
IsBracketNext(fromIdx: int) bool[source]#
IsObjectName(idx: int) bool[source]#
Begin()[source]#
Next() bool[source]#
CurrentToken() str[source]#
getNextToken() str[source]#
prevItem() str[source]#
setCurrentToken(value: str)[source]#
setToken(idx: int, value: str)[source]#
getToken(idx: int) str[source]#
TokenCount() int[source]#
removeToken(idx: int)[source]#
swapTokens(idx1: int, idx2: int)[source]#
insertToken(idx: int, value: str)[source]#
RemoveAt(from_idx: int, count: int = 1)[source]#
Insert(idx: int, value: str)[source]#
FormatResult() str[source]#
IsKeyWord(aToken: str) bool[source]#
listOfStrings: any#
listOfComments: any#
static copyFromCommentBody(source: cStr) cStr[source]#
static DoxygenToStrdoc(aDoxygenComment: str) cStr[source]#
static StrdocToOneLine(aDocStr: cStr) cStr[source]#
RemoveRawSpaces(source: str) str[source]#
StringsToTokens(source: cStr) cStr[source]#
static write_file(filename: str, content: cStr)[source]#
Preprocess(cppSource: str, filePath: str, defines: str)[source]#