the fair gds editor MacroClassTextDisplay

TextDisplay Class Reference

A text editor widget. More...

See also: List of Classes


Detailed Description

the main widget of a text editor. It hold alls text relavant informations.

Member Function Documentation

void textDisplay::convert(string format)

Convert the contents text into an other format. format will choose the target format. These format convertion are available:

None yet, will be added shortly!

(introduced with version 20130923)

string textDisplay::fileName

File name of this file.

void textDisplay::openFile(string fileName, string codec="")

A file with the name s is opened. If codec is empty the encoding is detected automatic. (the optional codec parameter was added with version 20160905)

bool textDisplay::modified()

Returns: true, if the design was modifies after the last save

(until version 20130504 this feature was only part of the python interface)

void textDisplay::saveFile(string fileName, string codec="")

The text is saved to fileName. If codec is empty the encoding is detected automatic. (the optional codec parameter was added with version 20160905)

bool textDisplay::setModifyAdded()

marks the design shapes to be added

(until version 20121229 this feature was only part of the python interface)

bool textDisplay::setModifyChanged()

marks the design to be modified

(until version 20121229 this feature was only part of the python interface)

bool textDisplay::setModifySaved()

marks the design not to be modified

(until version 20121229 this feature was only part of the python interface)

void textDisplay::setLexer(string lexer)

The lexer for highlighting is set.

void textDisplay::setText(string text)

set the text being displayed

string textDisplay::text()

Returns: The complete text of the file.

string textDisplay::title

Title of this file only used in the list open open files.

See also


CategoryMacroClass


MacroClassTextDisplay (last edited 2016-09-06 09:06:55 by JurgenThies)