Module dcanvas.widgets.editors
Implementation of editors.
EditLine - single line editor.
EditBox - multiline editor
LogWidget - readonly text box for showing logs
Synopsis
import dcanvas .widgets .editors;
Functions
| Name | Description |
|---|---|
initStandardEditorActions()
|
Interfaces
| Name | Description |
|---|---|
EditableContentChangeListener
|
Modified content listener |
EditorActionHandler
|
|
EditorStateListener
|
|
EnterKeyHandler
|
|
ModifiedStateListener
|
Modified state change listener |
Classes
| Name | Description |
|---|---|
EditBox
|
multiline editor |
EditLine
|
single line editor |
EditWidgetBase
|
base for all editor widgets |
FindPanel
|
Find and replace panel for EditBox Provides UI for searching text, with options for case sensitivity, whole words, and selection-only search. Supports replace functionality. FindPanel is created automatically by EditBox when Find/Replace actions are triggered. |
LogWidget
|
Read only edit box for displaying logs with lines append operation |
RichEditLine
|
A single-line editor that supports per-character color and text-decoration styling. |
SpinCtrl
|
Structs
| Name | Description |
|---|---|
EditorStateInfo
|
editor state to display in status line |
Enums
| Name | Description |
|---|---|
EditorActions
|
Editor action codes |
TextSearchFlag
|
Flags used for search / replace / text highlight |
Global variables
| Name | Type | Description |
|---|---|---|
ACTION_EDITOR_APPEND_NEW_LINE
|
const(Action)
|
|
ACTION_EDITOR_COPY
|
const(Action)
|
|
ACTION_EDITOR_CUT
|
const(Action)
|
|
ACTION_EDITOR_DELETE_LINE
|
const(Action)
|
|
ACTION_EDITOR_FIND
|
const(Action)
|
|
ACTION_EDITOR_FIND_NEXT
|
const(Action)
|
|
ACTION_EDITOR_FIND_PREV
|
const(Action)
|
|
ACTION_EDITOR_GOTO_NEXT_BOOKMARK
|
const(Action)
|
|
ACTION_EDITOR_GOTO_PREVIOUS_BOOKMARK
|
const(Action)
|
|
ACTION_EDITOR_INSERT_NEW_LINE
|
const(Action)
|
|
ACTION_EDITOR_PASTE
|
const(Action)
|
|
ACTION_EDITOR_PREPEND_NEW_LINE
|
const(Action)
|
|
ACTION_EDITOR_REDO
|
const(Action)
|
|
ACTION_EDITOR_REPLACE
|
const(Action)
|
|
ACTION_EDITOR_SELECT_ALL
|
const(Action)
|
|
ACTION_EDITOR_TOGGLE_BLOCK_COMMENT
|
const(Action)
|
|
ACTION_EDITOR_TOGGLE_BOOKMARK
|
const(Action)
|
|
ACTION_EDITOR_TOGGLE_LINE_COMMENT
|
const(Action)
|
|
ACTION_EDITOR_TOGGLE_REPLACE_MODE
|
const(Action)
|
|
ACTION_EDITOR_UNDO
|
const(Action)
|
|
STD_EDITOR_ACTIONS
|
const(Action[])
|
Aliases
| Name | Type | Description |
|---|---|---|
TextStyler
|
CustomCharProps[] delegate(dstring, uint)
|
Delegate type for per-character text styling. Receives the full line text and the widget's default color; returns one CustomCharProps per character. Return an empty slice to fall back to plain rendering. |