C# Класс GnomeSubtitles.Ui.View.Subtitles

Наследование: SubLib.Core.Domain.Subtitles
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

Метод Описание
LoadModelFromCollection ( ) : void

Loads the ListModel from the subtitle collection.

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

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

Appends a subtitle to the end of the list.
public Add ( Subtitle subtitle ) : void
subtitle SubLib.Core.Domain.Subtitle
Результат void

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

Adds a subtitle to the specified position on the list.
public Add ( Subtitle subtitle, int index ) : void
subtitle SubLib.Core.Domain.Subtitle
index int
Результат void

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

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
Результат void

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

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
Результат void

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

Creates a subtitle and adds it to the specified position of the list.
public AddNewAt ( int index ) : void
index int
Результат void

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

public AddNewAt ( int index, System.TimeSpan start ) : void
index int
start System.TimeSpan
Результат void

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

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
Результат void

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

Removes a subtitle from the collection, given its TreePath.
public Remove ( Gtk.TreePath path ) : bool
path Gtk.TreePath
Результат bool

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

Removes a subtitle from the list, given its index.
public Remove ( int index ) : bool
index int
Результат bool

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

public RemoveRange ( Gtk.TreePath firstPath, Gtk.TreePath lastPath ) : bool
firstPath Gtk.TreePath
lastPath Gtk.TreePath
Результат bool

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

public Subtitles ( SubLib subtitles ) : GnomeSubtitles.Core
subtitles SubLib
Результат GnomeSubtitles.Core

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

public this ( Gtk.TreeIter iter ) : Subtitle
iter Gtk.TreeIter
Результат SubLib.Core.Domain.Subtitle

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

public this ( Gtk.TreePath path ) : Subtitle
path Gtk.TreePath
Результат SubLib.Core.Domain.Subtitle

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

public this ( int index ) : Subtitle
index int
Результат SubLib.Core.Domain.Subtitle