C# Class GnomeSubtitles.Ui.View.Subtitles

Inheritance: SubLib.Core.Domain.Subtitles
Afficher le fichier Open project: GNOME/gnome-subtitles Class Usage Examples

Méthodes publiques

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

Méthode Description
LoadModelFromCollection ( ) : void

Loads the ListModel from the subtitle collection.

Method Details

Add() public méthode

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

Add() public méthode

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

AddExtra() public méthode

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
Résultat void

AddNewAfter() public méthode

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
Résultat void

AddNewAt() public méthode

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

AddNewAt() public méthode

public AddNewAt ( int index, System.TimeSpan start ) : void
index int
start System.TimeSpan
Résultat void

AddNewBefore() public méthode

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
Résultat void

Remove() public méthode

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

Remove() public méthode

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

RemoveRange() public méthode

public RemoveRange ( Gtk.TreePath firstPath, Gtk.TreePath lastPath ) : bool
firstPath Gtk.TreePath
lastPath Gtk.TreePath
Résultat bool

Subtitles() public méthode

public Subtitles ( SubLib subtitles ) : GnomeSubtitles.Core
subtitles SubLib
Résultat GnomeSubtitles.Core

this() public méthode

public this ( Gtk.TreeIter iter ) : Subtitle
iter Gtk.TreeIter
Résultat SubLib.Core.Domain.Subtitle

this() public méthode

public this ( Gtk.TreePath path ) : Subtitle
path Gtk.TreePath
Résultat SubLib.Core.Domain.Subtitle

this() public méthode

public this ( int index ) : Subtitle
index int
Résultat SubLib.Core.Domain.Subtitle