C# Класс GnomeSubtitles.Ui.Edit.SubtitleEditTextView

Показать файл Открыть проект

Открытые методы

Метод Описание
DeleteText ( int startIndex, int endIndex ) : void
FocusOnSelection ( int startIndex, int endIndex ) : void
GetTextSelectionBounds ( int &start, int &end ) : bool

Gets the bounds of the current selection, if text is selected.

If no text is selected, both start and end will contain the index of the cursor position.

InsertText ( int startIndex, string text ) : void
LoadSubtitle ( Subtitle subtitle ) : void
ReplaceSelection ( string replacement ) : void
SubtitleEditTextView ( Gtk.TextView textView ) : GnomeSubtitles.Core

Защищенные методы

Метод Описание
ChangeSubtitleTextContent ( Subtitle subtitle, string text ) : void
ClearFields ( ) : void
ExecuteDeleteCommand ( int index, string deletion, int cursor ) : void
ExecuteInsertCommand ( int index, string insertion ) : void
GetSpellActiveLanguage ( ) : SpellLanguage
GetSubtitleTextContent ( Subtitle subtitle ) : string
GetTextType ( ) : SubtitleTextType
OnSpellLanguageChanged ( ) : void
OnSpellToggleEnabled ( ) : void
OnSubtitleSelectionChanged ( Gtk.TreePath paths, Subtitle subtitle ) : void
SetVisibility ( bool visible ) : void
ToggleOverwriteSilent ( ) : void

Toggles the overwrite status without emitting its event.

Приватные методы

Метод Описание
ApplyTag ( Gtk.TextTag tag, Gtk.TextIter start, Gtk.TextIter end, bool activate ) : void
ApplyTags ( ) : void
EmitToggleOverwrite ( ) : void
GetCursorIndex ( ) : int

Returns the cursor index, or -1 if the text view is not enabled.

GetIterAtInsertMark ( ) : Gtk.TextIter
GetLineColumn ( int &line, int &column ) : void
GetScrolledWindow ( ) : Gtk.ScrolledWindow
GrabFocus ( ) : void
GtkSpellAttach ( ) : void
GtkSpellDetach ( ) : void
GtkSpellSetLanguage ( SpellLanguage language ) : bool
IsGtkSpellAttached ( ) : bool
OnBaseInitFinished ( ) : void
OnBufferChanged ( object o, EventArgs args ) : void
OnBufferDeleteRange ( object o, Gtk.DeleteRangeArgs args ) : void
OnBufferInsertText ( object o, Gtk.InsertTextArgs args ) : void
OnBufferMarkSet ( object o, Gtk.MarkSetArgs args ) : void
OnDestroyed ( object o, EventArgs args ) : void
OnFocusIn ( object o, Gtk.FocusInEventArgs args ) : void
OnFocusOut ( object o, Gtk.FocusOutEventArgs args ) : void
OnKeyPressed ( object o, Gtk.KeyPressEventArgs args ) : void
OnToggleOverwrite ( object o, EventArgs args ) : void
PlaceCursor ( int index ) : void
SetFont ( SubLib style ) : void

Sets font with bold and italic if applicable.

SetText ( string text ) : void
UpdateLineColStatus ( ) : void
UpdateOverwriteStatus ( ) : void
gtkspell_detach ( IntPtr obj ) : void
gtkspell_new_attach ( IntPtr textView, string locale, IntPtr error ) : IntPtr
gtkspell_set_language ( IntPtr textView, string lang, IntPtr error ) : bool

Описание методов

ChangeSubtitleTextContent() защищенный абстрактный Метод

protected abstract ChangeSubtitleTextContent ( Subtitle subtitle, string text ) : void
subtitle SubLib.Core.Domain.Subtitle
text string
Результат void

ClearFields() защищенный Метод

protected ClearFields ( ) : void
Результат void

DeleteText() публичный Метод

public DeleteText ( int startIndex, int endIndex ) : void
startIndex int
endIndex int
Результат void

ExecuteDeleteCommand() защищенный абстрактный Метод

protected abstract ExecuteDeleteCommand ( int index, string deletion, int cursor ) : void
index int
deletion string
cursor int
Результат void

ExecuteInsertCommand() защищенный абстрактный Метод

protected abstract ExecuteInsertCommand ( int index, string insertion ) : void
index int
insertion string
Результат void

FocusOnSelection() публичный Метод

public FocusOnSelection ( int startIndex, int endIndex ) : void
startIndex int
endIndex int
Результат void

GetSpellActiveLanguage() защищенный абстрактный Метод

protected abstract GetSpellActiveLanguage ( ) : SpellLanguage
Результат GnomeSubtitles.Core.SpellLanguage

GetSubtitleTextContent() защищенный абстрактный Метод

protected abstract GetSubtitleTextContent ( Subtitle subtitle ) : string
subtitle SubLib.Core.Domain.Subtitle
Результат string

GetTextSelectionBounds() публичный Метод

Gets the bounds of the current selection, if text is selected.
If no text is selected, both start and end will contain the index of the cursor position.
public GetTextSelectionBounds ( int &start, int &end ) : bool
start int The start index of the selection.
end int The end index of the selection.
Результат bool

GetTextType() защищенный абстрактный Метод

protected abstract GetTextType ( ) : SubtitleTextType
Результат SubtitleTextType

InsertText() публичный Метод

public InsertText ( int startIndex, string text ) : void
startIndex int
text string
Результат void

LoadSubtitle() публичный Метод

public LoadSubtitle ( Subtitle subtitle ) : void
subtitle SubLib.Core.Domain.Subtitle
Результат void

OnSpellLanguageChanged() защищенный Метод

protected OnSpellLanguageChanged ( ) : void
Результат void

OnSpellToggleEnabled() защищенный Метод

protected OnSpellToggleEnabled ( ) : void
Результат void

OnSubtitleSelectionChanged() защищенный Метод

protected OnSubtitleSelectionChanged ( Gtk.TreePath paths, Subtitle subtitle ) : void
paths Gtk.TreePath
subtitle SubLib.Core.Domain.Subtitle
Результат void

ReplaceSelection() публичный Метод

public ReplaceSelection ( string replacement ) : void
replacement string
Результат void

SetVisibility() защищенный Метод

protected SetVisibility ( bool visible ) : void
visible bool
Результат void

SubtitleEditTextView() публичный Метод

public SubtitleEditTextView ( Gtk.TextView textView ) : GnomeSubtitles.Core
textView Gtk.TextView
Результат GnomeSubtitles.Core

ToggleOverwriteSilent() защищенный Метод

Toggles the overwrite status without emitting its event.
protected ToggleOverwriteSilent ( ) : void
Результат void