C# Class GnomeSubtitles.Ui.Edit.SubtitleEditTextView

Afficher le fichier Open project: GNOME/gnome-subtitles

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

ChangeSubtitleTextContent() protected abstract méthode

protected abstract ChangeSubtitleTextContent ( Subtitle subtitle, string text ) : void
subtitle SubLib.Core.Domain.Subtitle
text string
Résultat void

ClearFields() protected méthode

protected ClearFields ( ) : void
Résultat void

DeleteText() public méthode

public DeleteText ( int startIndex, int endIndex ) : void
startIndex int
endIndex int
Résultat void

ExecuteDeleteCommand() protected abstract méthode

protected abstract ExecuteDeleteCommand ( int index, string deletion, int cursor ) : void
index int
deletion string
cursor int
Résultat void

ExecuteInsertCommand() protected abstract méthode

protected abstract ExecuteInsertCommand ( int index, string insertion ) : void
index int
insertion string
Résultat void

FocusOnSelection() public méthode

public FocusOnSelection ( int startIndex, int endIndex ) : void
startIndex int
endIndex int
Résultat void

GetSpellActiveLanguage() protected abstract méthode

protected abstract GetSpellActiveLanguage ( ) : SpellLanguage
Résultat GnomeSubtitles.Core.SpellLanguage

GetSubtitleTextContent() protected abstract méthode

protected abstract GetSubtitleTextContent ( Subtitle subtitle ) : string
subtitle SubLib.Core.Domain.Subtitle
Résultat string

GetTextSelectionBounds() public méthode

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.
Résultat bool

GetTextType() protected abstract méthode

protected abstract GetTextType ( ) : SubtitleTextType
Résultat SubtitleTextType

InsertText() public méthode

public InsertText ( int startIndex, string text ) : void
startIndex int
text string
Résultat void

LoadSubtitle() public méthode

public LoadSubtitle ( Subtitle subtitle ) : void
subtitle SubLib.Core.Domain.Subtitle
Résultat void

OnSpellLanguageChanged() protected méthode

protected OnSpellLanguageChanged ( ) : void
Résultat void

OnSpellToggleEnabled() protected méthode

protected OnSpellToggleEnabled ( ) : void
Résultat void

OnSubtitleSelectionChanged() protected méthode

protected OnSubtitleSelectionChanged ( Gtk.TreePath paths, Subtitle subtitle ) : void
paths Gtk.TreePath
subtitle SubLib.Core.Domain.Subtitle
Résultat void

ReplaceSelection() public méthode

public ReplaceSelection ( string replacement ) : void
replacement string
Résultat void

SetVisibility() protected méthode

protected SetVisibility ( bool visible ) : void
visible bool
Résultat void

SubtitleEditTextView() public méthode

public SubtitleEditTextView ( Gtk.TextView textView ) : GnomeSubtitles.Core
textView Gtk.TextView
Résultat GnomeSubtitles.Core

ToggleOverwriteSilent() protected méthode

Toggles the overwrite status without emitting its event.
protected ToggleOverwriteSilent ( ) : void
Résultat void