C# Class GnomeSubtitles.Ui.View.Subtitles

Inheritance: SubLib.Core.Domain.Subtitles
显示文件 Open project: GNOME/gnome-subtitles Class Usage Examples

Public Methods

Method Description
Add ( Subtitle subtitle ) : void

Appends a subtitle to the end of the list.

Add ( Subtitle subtitle, int index ) : void

Adds a subtitle to the specified position on the list.

AddExtra ( int extraCount ) : void

Loads possible extra subtitles at the end of the model.

Extra subtitles exist if subtitles were added to the base collection.

AddNewAfter ( int index ) : void

Creates a subtitle and adds it after the specified position.

The timings of the new subtitle will be based on the subtitle that preceeds it.

AddNewAt ( int index ) : void

Creates a subtitle and adds it to the specified position of the list.

AddNewAt ( int index, System.TimeSpan start ) : void
AddNewBefore ( int index ) : void

Creates a subtitle and adds it before the specified position.

The timings of the new subtitle will be based on the subtitle that succeeds it.

Remove ( Gtk.TreePath path ) : bool

Removes a subtitle from the collection, given its TreePath.

Remove ( int index ) : bool

Removes a subtitle from the list, given its index.

RemoveRange ( Gtk.TreePath firstPath, Gtk.TreePath lastPath ) : bool
Subtitles ( SubLib subtitles ) : GnomeSubtitles.Core
this ( Gtk.TreeIter iter ) : Subtitle
this ( Gtk.TreePath path ) : Subtitle
this ( int index ) : Subtitle

Private Methods

Method Description
LoadModelFromCollection ( ) : void

Loads the ListModel from the subtitle collection.

Method Details

Add() public method

Appends a subtitle to the end of the list.
public Add ( Subtitle subtitle ) : void
subtitle SubLib.Core.Domain.Subtitle
return void

Add() public method

Adds a subtitle to the specified position on the list.
public Add ( Subtitle subtitle, int index ) : void
subtitle SubLib.Core.Domain.Subtitle
index int
return void

AddExtra() public method

Loads possible extra subtitles at the end of the model.
Extra subtitles exist if subtitles were added to the base collection.
public AddExtra ( int extraCount ) : void
extraCount int
return void

AddNewAfter() public method

Creates a subtitle and adds it after the specified position.
The timings of the new subtitle will be based on the subtitle that preceeds it.
public AddNewAfter ( int index ) : void
index int
return void

AddNewAt() public method

Creates a subtitle and adds it to the specified position of the list.
public AddNewAt ( int index ) : void
index int
return void

AddNewAt() public method

public AddNewAt ( int index, System.TimeSpan start ) : void
index int
start System.TimeSpan
return void

AddNewBefore() public method

Creates a subtitle and adds it before the specified position.
The timings of the new subtitle will be based on the subtitle that succeeds it.
public AddNewBefore ( int index ) : void
index int
return void

Remove() public method

Removes a subtitle from the collection, given its TreePath.
public Remove ( Gtk.TreePath path ) : bool
path Gtk.TreePath
return bool

Remove() public method

Removes a subtitle from the list, given its index.
public Remove ( int index ) : bool
index int
return bool

RemoveRange() public method

public RemoveRange ( Gtk.TreePath firstPath, Gtk.TreePath lastPath ) : bool
firstPath Gtk.TreePath
lastPath Gtk.TreePath
return bool

Subtitles() public method

public Subtitles ( SubLib subtitles ) : GnomeSubtitles.Core
subtitles SubLib
return GnomeSubtitles.Core

this() public method

public this ( Gtk.TreeIter iter ) : Subtitle
iter Gtk.TreeIter
return SubLib.Core.Domain.Subtitle

this() public method

public this ( Gtk.TreePath path ) : Subtitle
path Gtk.TreePath
return SubLib.Core.Domain.Subtitle

this() public method

public this ( int index ) : Subtitle
index int
return SubLib.Core.Domain.Subtitle