C# Class GnomeSubtitles.Core.Util

Show file Open project: GNOME/gnome-subtitles

Public Properties

Property Type Description
SpinButtonTimeWidthChars int

Public Methods

Method Description
ColumnWidth ( Gtk.Widget widget, string text ) : int
CreateTreeViewColumn ( string title, int width, Gtk.CellRenderer cell, TreeCellDataFunc dataFunction ) : Gtk.TreeViewColumn
GetFormattedText ( string text ) : string
GetSystemNewlineType ( ) : NewlineType
IntToPath ( int index ) : Gtk.TreePath

Returns a TreePath corresponding to the specified index.

IntsToPaths ( int indices ) : Gtk.TreePath[]

Returns an array of TreePath from an array of ints.

IsPathValid ( Gtk.TreePath path ) : bool
MillisecondsToTimeText ( int milliseconds ) : string
OnTimeInput ( object o, Gtk.InputArgs args ) : void
OnTimeOutput ( object o, OutputArgs args ) : void
OpenBugReport ( ) : void
OpenSendEmail ( string email ) : void
OpenUrl ( string url ) : void
PathNext ( Gtk.TreePath path ) : Gtk.TreePath

Returns the path that succeeds the specified path.

PathPrevious ( Gtk.TreePath path ) : Gtk.TreePath

Returns the path that precedes the specified path.

PathToInt ( Gtk.TreePath path ) : int

Returns the index of a TreePath.

PathsAreEqual ( Gtk.TreePath path1, Gtk.TreePath path2 ) : bool

Checks whether two path are equal. They are considered equal if they have the same indice.

QuoteFilename ( string filename ) : string

Quotes a filename.

SecondsToTimeText ( double seconds ) : string
SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, System.TimeSpan upperLimit, bool canNegate ) : void
SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, int upperLimit, bool canNegate ) : void
SetSpinButtonMaxAdjustment ( Gtk.SpinButton spinButton, TimingMode timingMode, bool toNegate ) : void
SetSpinButtonTimingMode ( Gtk.SpinButton spinButton, TimingMode timingMode ) : void
TextWidth ( Gtk.Widget widget, string text, int margins ) : int
TimeSpanToText ( System.TimeSpan time ) : string

Converts a timespan to a text representation.

The resulting string is in the format [-]hh:mm:ss.fff. This format is accepted by TimeSpan.Parse.

TimeTextToMilliseconds ( string text ) : int
ToString ( float number ) : string

Returns the invariant culture string of a number.

Method Details

ColumnWidth() public static method

public static ColumnWidth ( Gtk.Widget widget, string text ) : int
widget Gtk.Widget
text string
return int

CreateTreeViewColumn() public static method

public static CreateTreeViewColumn ( string title, int width, Gtk.CellRenderer cell, TreeCellDataFunc dataFunction ) : Gtk.TreeViewColumn
title string
width int
cell Gtk.CellRenderer
dataFunction TreeCellDataFunc
return Gtk.TreeViewColumn

GetFormattedText() public static method

public static GetFormattedText ( string text ) : string
text string
return string

GetSystemNewlineType() public static method

public static GetSystemNewlineType ( ) : NewlineType
return NewlineType

IntToPath() public static method

Returns a TreePath corresponding to the specified index.
public static IntToPath ( int index ) : Gtk.TreePath
index int
return Gtk.TreePath

IntsToPaths() public static method

Returns an array of TreePath from an array of ints.
public static IntsToPaths ( int indices ) : Gtk.TreePath[]
indices int
return Gtk.TreePath[]

IsPathValid() public static method

public static IsPathValid ( Gtk.TreePath path ) : bool
path Gtk.TreePath
return bool

MillisecondsToTimeText() public static method

public static MillisecondsToTimeText ( int milliseconds ) : string
milliseconds int
return string

OnTimeInput() public static method

public static OnTimeInput ( object o, Gtk.InputArgs args ) : void
o object
args Gtk.InputArgs
return void

OnTimeOutput() public static method

public static OnTimeOutput ( object o, OutputArgs args ) : void
o object
args OutputArgs
return void

OpenBugReport() public static method

public static OpenBugReport ( ) : void
return void

OpenSendEmail() public static method

public static OpenSendEmail ( string email ) : void
email string
return void

OpenUrl() public static method

public static OpenUrl ( string url ) : void
url string
return void

PathNext() public static method

Returns the path that succeeds the specified path.
public static PathNext ( Gtk.TreePath path ) : Gtk.TreePath
path Gtk.TreePath
return Gtk.TreePath

PathPrevious() public static method

Returns the path that precedes the specified path.
public static PathPrevious ( Gtk.TreePath path ) : Gtk.TreePath
path Gtk.TreePath
return Gtk.TreePath

PathToInt() public static method

Returns the index of a TreePath.
public static PathToInt ( Gtk.TreePath path ) : int
path Gtk.TreePath
return int

PathsAreEqual() public static method

Checks whether two path are equal. They are considered equal if they have the same indice.
public static PathsAreEqual ( Gtk.TreePath path1, Gtk.TreePath path2 ) : bool
path1 Gtk.TreePath
path2 Gtk.TreePath
return bool

QuoteFilename() public static method

Quotes a filename.
public static QuoteFilename ( string filename ) : string
filename string
return string

SecondsToTimeText() public static method

public static SecondsToTimeText ( double seconds ) : string
seconds double
return string

SetSpinButtonAdjustment() public static method

public static SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, System.TimeSpan upperLimit, bool canNegate ) : void
spinButton Gtk.SpinButton
upperLimit System.TimeSpan
canNegate bool
return void

SetSpinButtonAdjustment() public static method

public static SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, int upperLimit, bool canNegate ) : void
spinButton Gtk.SpinButton
upperLimit int
canNegate bool
return void

SetSpinButtonMaxAdjustment() public static method

public static SetSpinButtonMaxAdjustment ( Gtk.SpinButton spinButton, TimingMode timingMode, bool toNegate ) : void
spinButton Gtk.SpinButton
timingMode TimingMode
toNegate bool
return void

SetSpinButtonTimingMode() public static method

public static SetSpinButtonTimingMode ( Gtk.SpinButton spinButton, TimingMode timingMode ) : void
spinButton Gtk.SpinButton
timingMode TimingMode
return void

TextWidth() public static method

public static TextWidth ( Gtk.Widget widget, string text, int margins ) : int
widget Gtk.Widget
text string
margins int
return int

TimeSpanToText() public static method

Converts a timespan to a text representation.
The resulting string is in the format [-]hh:mm:ss.fff. This format is accepted by TimeSpan.Parse.
public static TimeSpanToText ( System.TimeSpan time ) : string
time System.TimeSpan The time to convert to text.
return string

TimeTextToMilliseconds() public static method

public static TimeTextToMilliseconds ( string text ) : int
text string
return int

ToString() public static method

Returns the invariant culture string of a number.
public static ToString ( float number ) : string
number float
return string

Property Details

SpinButtonTimeWidthChars public static property

public static int SpinButtonTimeWidthChars
return int