C# 클래스 GnomeSubtitles.Ui.View.SubtitleView

파일 보기 프로젝트 열기: GNOME/gnome-subtitles 1 사용 예제들

공개 메소드들

메소드 설명
Insert ( Subtitle subtitle, Gtk.TreePath path ) : void

Inserts a subtitle in the specified path.

Insert ( Subtitle subtitles, Gtk.TreePath paths, Gtk.TreePath focus ) : void

Inserts a collection of subtitles in the specified paths.

InsertNewAfter ( Gtk.TreePath path ) : bool

Inserts a new subtitle after the specified TreePath.

The new subtitle's timings are based on the subtitle at the specified path.

InsertNewAt ( Gtk.TreePath path ) : bool

Inserts a new subtitle at the specified TreePath.

InsertNewAt ( Gtk.TreePath path, System.TimeSpan start ) : bool

Inserts a new subtitle at the specified TreePath, with the specified start time.

InsertNewBefore ( Gtk.TreePath path ) : bool

Inserts a new subtitle before the specified TreePath.

The new subtitle's timings are based on the subtitle at the specified path.

RedrawPath ( Gtk.TreePath path ) : void

Instructs the TreeView to redraw a row.

This is useful when a row changes its width, for instance.

RedrawPaths ( Gtk.TreePath paths ) : void
Refresh ( ) : void

Refreshes the view.

This is currently limited to a TreeView.QueueDraw().

Remove ( Gtk.TreePath paths ) : bool

Removes the subtitles at the specified paths and selects the next subtitle afterwards.

Remove ( Gtk.TreePath path, bool selectNext ) : bool

Removes the subtitle at the specified path and selects the next or previous subtitle afterwards.

SelectNextSubtitle ( ) : bool

Selects the subtitle below of current selected

SetAutoSelectSubtitles ( bool active ) : void
SubtitleView ( ) : GnomeSubtitles.Core

비공개 메소드들

메소드 설명
CreateColumns ( ) : void
EmitSubtitleCountChangedEvent ( ) : void
FindNearIndex ( int removedIndex, bool findNext ) : int

Finds the index that's near a row that has been removed at the specified index.

GetStyleMarkup ( SubLib subtitleStyle, string &prefix, string &suffix ) : void
Load ( Subtitles subtitles ) : void

Loads the subtitles

OnBaseDocumentLoaded ( Document document ) : void
OnBaseDocumentUnloaded ( Document document ) : void
OnBaseInitFinished ( ) : void
OnBaseTimingModeChanged ( TimingMode timingMode ) : void
OnBaseTranslationLoaded ( ) : void
OnBaseTranslationUnloaded ( ) : void
OnCurrentSubtitleChanged ( int subtitleIndex ) : void
OnModelRowDeleted ( object o, Gtk.RowDeletedArgs args ) : void
OnModelRowInserted ( object o, Gtk.RowInsertedArgs args ) : void
OnViewLineLengthsToggled ( object o, EventArgs args ) : void
RenderDurationCell ( Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, Gtk.TreeIter iter ) : void
RenderEndCell ( Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, Gtk.TreeIter iter ) : void
RenderNumberCell ( Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel treeModel, Gtk.TreeIter iter ) : void
RenderStartCell ( Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, Gtk.TreeIter iter ) : void
RenderSubtitleTextCell ( Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel treeModel, Gtk.TreeIter iter ) : void
RenderTextCell ( Gtk.CellRendererText renderer, Gtk.TreeIter iter, SubtitleText subtitleText, SubLib subtitleStyle ) : void
RenderTranslationTextCell ( Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel treeModel, Gtk.TreeIter iter ) : void
SetEmptyModel ( ) : void
SetTranslationVisible ( bool visible ) : void

메소드 상세

Insert() 공개 메소드

Inserts a subtitle in the specified path.
public Insert ( Subtitle subtitle, Gtk.TreePath path ) : void
subtitle SubLib.Core.Domain.Subtitle
path Gtk.TreePath
리턴 void

Insert() 공개 메소드

Inserts a collection of subtitles in the specified paths.
public Insert ( Subtitle subtitles, Gtk.TreePath paths, Gtk.TreePath focus ) : void
subtitles SubLib.Core.Domain.Subtitle The subtitles to insert.
paths Gtk.TreePath The paths corresponding to each of the subtitles. There must be the same number of paths as there are for subtitles.
focus Gtk.TreePath The path that should be given the focus.
리턴 void

InsertNewAfter() 공개 메소드

Inserts a new subtitle after the specified TreePath.
The new subtitle's timings are based on the subtitle at the specified path.
public InsertNewAfter ( Gtk.TreePath path ) : bool
path Gtk.TreePath The path after which the new subtitle will be inserted.
리턴 bool

InsertNewAt() 공개 메소드

Inserts a new subtitle at the specified TreePath.
public InsertNewAt ( Gtk.TreePath path ) : bool
path Gtk.TreePath The path at which the new subtitle will be inserted.
리턴 bool

InsertNewAt() 공개 메소드

Inserts a new subtitle at the specified TreePath, with the specified start time.
public InsertNewAt ( Gtk.TreePath path, System.TimeSpan start ) : bool
path Gtk.TreePath The path at which the new subtitle will be inserted.
start System.TimeSpan
리턴 bool

InsertNewBefore() 공개 메소드

Inserts a new subtitle before the specified TreePath.
The new subtitle's timings are based on the subtitle at the specified path.
public InsertNewBefore ( Gtk.TreePath path ) : bool
path Gtk.TreePath The path before which the new subtitle will be inserted.
리턴 bool

RedrawPath() 공개 메소드

Instructs the TreeView to redraw a row.
This is useful when a row changes its width, for instance.
public RedrawPath ( Gtk.TreePath path ) : void
path Gtk.TreePath
리턴 void

RedrawPaths() 공개 메소드

public RedrawPaths ( Gtk.TreePath paths ) : void
paths Gtk.TreePath
리턴 void

Refresh() 공개 메소드

Refreshes the view.
This is currently limited to a TreeView.QueueDraw().
public Refresh ( ) : void
리턴 void

Remove() 공개 메소드

Removes the subtitles at the specified paths and selects the next subtitle afterwards.
public Remove ( Gtk.TreePath paths ) : bool
paths Gtk.TreePath The paths to remove.
리턴 bool

Remove() 공개 메소드

Removes the subtitle at the specified path and selects the next or previous subtitle afterwards.
public Remove ( Gtk.TreePath path, bool selectNext ) : bool
path Gtk.TreePath The path to remove.
selectNext bool Whether to select the next path after deletion, if possible. /// Otherwise, the previous will be selected, if possible.
리턴 bool

SelectNextSubtitle() 공개 메소드

Selects the subtitle below of current selected
public SelectNextSubtitle ( ) : bool
리턴 bool

SetAutoSelectSubtitles() 공개 메소드

public SetAutoSelectSubtitles ( bool active ) : void
active bool
리턴 void

SubtitleView() 공개 메소드

public SubtitleView ( ) : GnomeSubtitles.Core
리턴 GnomeSubtitles.Core