DSourceEdit

DIDE source file editor

class DSourceEdit : SourceEdit, EditableContentMarksChangeListener {}

Constructors

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

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addBreakpoint
void addBreakpoint(int line)
Undocumented in source. Be warned that the author may not have intended to support it.
applySettings
void applySettings()
Undocumented in source. Be warned that the author may not have intended to support it.
cancelCompletionTimer
void cancelCompletionTimer()
Undocumented in source. Be warned that the author may not have intended to support it.
closeCompletionPopup
void closeCompletionPopup(CompletionPopupMenu completion)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLineBackground
void drawLineBackground(DrawBuf buf, int lineIndex, Rect lineRect, Rect visibleRect)

override to custom highlight of line background

getBookmarkList
EditorBookmark[] getBookmarkList()
Undocumented in source. Be warned that the author may not have intended to support it.
getBreakpointList
Breakpoint[] getBreakpointList()
Undocumented in source. Be warned that the author may not have intended to support it.
getLeftPaneIconsPopupMenu
MenuItem getLeftPaneIconsPopupMenu(int line)
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)

handleBreakpointAction
void handleBreakpointAction(Action a)
Undocumented in source. Be warned that the author may not have intended to support it.
handleFocusChange
void handleFocusChange(bool focused, bool receivedFocusFromKeyboard)

override to handle focus changes

handleLeftPaneIconsMouseClick
bool handleLeftPaneIconsMouseClick(MouseEvent event, Rect rc, int line)

left button click on icons panel: toggle breakpoint

identPrefixUnderCursor
dstring identPrefixUnderCursor()
Undocumented in source. Be warned that the author may not have intended to support it.
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

notifyBookmarkListChanged
void notifyBookmarkListChanged()
Undocumented in source. Be warned that the author may not have intended to support it.
notifyBreakpointListChanged
void notifyBreakpointListChanged()
Undocumented in source. Be warned that the author may not have intended to support it.
onControlClick
void onControlClick()

Handle Ctrl + Left mouse click on text

onHoverTimeout
void onHoverTimeout(Point pt, TextPosition pos)

override to handle mouse hover timeout in text

onKeyEvent
bool onKeyEvent(KeyEvent event)

handle keys: support autocompletion after . press with delay

onMarksChange
void onMarksChange(EditableContent content, LineIcon[] movedMarks, LineIcon[] removedMarks)
Undocumented in source. Be warned that the author may not have intended to support it.
onThemeChanged
void onThemeChanged()

handle theme change: e.g. reload some themed resources

onTimer
bool onTimer(ulong id)

handle timer; return true to repeat timer event after next interval, false cancel timer

removeBreakpoint
void removeBreakpoint(int line, LineIcon icon)
Undocumented in source. Be warned that the author may not have intended to support it.
save
bool save()

save to the same file

setBookmarkList
void setBookmarkList(EditorBookmark[] bookmarks)
Undocumented in source. Be warned that the author may not have intended to support it.
setBreakpointList
void setBreakpointList(Breakpoint[] breakpoints)
Undocumented in source. Be warned that the author may not have intended to support it.
setSyntaxSupport
void setSyntaxSupport()
Undocumented in source. Be warned that the author may not have intended to support it.
showCompletionPopup
void showCompletionPopup(dstring[] suggestions, string[] icons)
Undocumented in source. Be warned that the author may not have intended to support it.
showDocCommentsPopup
void showDocCommentsPopup(string[] comments, Point pt)
Undocumented in source. Be warned that the author may not have intended to support it.
startCompletionTimer
void startCompletionTimer()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

COMPLETION_TIMER_MS
enum COMPLETION_TIMER_MS;
Undocumented in source.

Properties

editorTool
EditorTool editorTool [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
editorTool
EditorTool editorTool [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
executionLine
int executionLine [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
executionLine
int executionLine [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
isDMLFile
bool isDMLFile [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isDSourceFile
bool isDSourceFile [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isJsonFile
bool isJsonFile [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isXMLFile
bool isXMLFile [@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.
settings
IDESettings settings [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
settings
IDESettings settings [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_completionPopup
PopupWidget _completionPopup;
Undocumented in source.
_completionPopupMenu
CompletionPopupMenu _completionPopupMenu;
Undocumented in source.
_completionTimerId
ulong _completionTimerId;
Undocumented in source.
_docsPopup
PopupWidget _docsPopup;
Undocumented in source.
_editorTool
EditorTool _editorTool;
Undocumented in source.
_executionLine
int _executionLine;
Undocumented in source.
_executionLineHighlightColor
uint _executionLineHighlightColor;
Undocumented in source.
_lastKeyDownCode
uint _lastKeyDownCode;
Undocumented in source.
_periodKeyCode
uint _periodKeyCode;
Undocumented in source.
_projectSourceFile
ProjectSourceFile _projectSourceFile;
Undocumented in source.
_settings
IDESettings _settings;
Undocumented in source.
bookmarkListChanged
Signal!BookmarkListChangeListener bookmarkListChanged;
Undocumented in source.
breakpointListChanged
Signal!BreakpointListChangeListener breakpointListChanged;
Undocumented in source.

Meta