DSourceEdit

DIDE source file editor

Constructors

this
this(string ID)
Undocumented in source.
this
this()
Undocumented in source.

Members

Functions

getCaretPosition
TextPosition getCaretPosition()
Undocumented in source. Be warned that the author may not have intended to support it.
handleAction
bool handleAction(Action a)

override to handle specific actions

handleActionStateRequest
bool handleActionStateRequest(Action a)

override to handle specific actions state (e.g. change enabled state for supported actions)

importPaths
string[] importPaths()

returns project import paths - if file from project is opened in current editor

insertCompletion
void insertCompletion(dstring completionText)
Undocumented in source. Be warned that the author may not have intended to support it.
load
bool load(string fn)

load by filename

load
bool load(ProjectSourceFile f)

load by project item

save
bool save()

save to the same file

setCaretPos
void setCaretPos(int line, int column)

change caret position and ensure it is visible

setHighlighter
void setHighlighter()
Undocumented in source. Be warned that the author may not have intended to support it.
showCompletionPopup
void showCompletionPopup(dstring[] suggestions)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

isDSourceFile
bool isDSourceFile [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
projectSourceFile
ProjectSourceFile projectSourceFile [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_projectSourceFile
ProjectSourceFile _projectSourceFile;
Undocumented in source.

Meta