C# 클래스 GnomeSubtitles.Ui.MainUi

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

공개 메소드들

메소드 설명
Close ( ) : void

Closes the open file.

Kill ( ) : void

Kills the window in the most quick and unfriendly way.

MainUi ( EventHandlers handlers, Glade &glade ) : GnomeSubtitles.Core
New ( ) : void

Creates a new subtitles document for the specified path.

If there's a document open with unsaved changes, a warning dialog is shown.

Open ( ) : void

Shows the open dialog and possibly opens a subtitle.

If there's a document currently open with unsaved changes, a warning dialog is shown before opening the new file.

Open ( string filename ) : void

Opens a subtitle.

If there's a document currently open with unsaved changes, a warning dialog is shown before opening the new file.

OpenVideo ( ) : void
Quit ( ) : void

Quits the application.

Save ( ) : bool

Executes a Save operation.

If the document hasn't been saved before, a SaveAs is executed.

SaveAs ( ) : bool

Executes a SaveAs operation.

After saving, the timing mode is set to the timing mode of the subtitle format using when saving.

Start ( ) : void

Starts the GUI

TranslationClose ( ) : void

Closes a translation.

If there's a translation open with unsaved changes, a warning dialog is shown.

TranslationNew ( ) : void

Starts a new translation.

If there's a translation open with unsaved changes, a warning dialog is shown.

TranslationOpen ( ) : void

Shows the open translation dialog and possibly opens a file.

If there's a translation currently open with unsaved changes, a warning dialog is shown before opening the new file.

TranslationReload ( ) : void

Reloads the current translation file.

If there's a translation currently open with unsaved changes, a warning dialog is shown before opening the new file.

TranslationSave ( ) : bool

Executes a Save operation regarding the translation.

If the translation hasn't been saved before, a TranslationSaveAs is executed.

TranslationSaveAs ( ) : bool

Executes a translation SaveAs operation.

비공개 메소드들

메소드 설명
CodePageToEncoding ( int codePage ) : Encoding

Creates an Encoding from a code page.

ExistTextUnsavedChanges ( ) : bool

Whether there are unsaved normal changes.

ExistTranslationUnsavedChanges ( ) : bool

Whether there are unsaved translation changes.

GetFileOpenCodePageFromConfig ( ) : int
GetSubtitleFileArg ( string args ) : string
OnBaseDocumentLoaded ( Document document ) : void
OnBaseDocumentModificationStatusChanged ( bool modified ) : void
OnBaseDocumentUnloaded ( Document document ) : void
OnBaseInitFinished ( ) : void
Open ( string path, int codePage, Uri videoUri ) : void

Opens a subtitle file, given its filename, code page and video filename.

An error dialog is presented if an exception is caught during open.

OpenTranslation ( string path, int codePage ) : void

Opens a translation file, given its filename and code page.

An error dialog is presented if an exception is caught during open.

Save ( FileProperties fileProperties ) : void
SaveTranslation ( FileProperties fileProperties ) : void
ShowSaveAsDialog ( SubtitleFileSaveAsDialog dialog ) : FileProperties

Displays a SaveAs dialog and gets the chosen options as .

ToCloseAfterWarning ( ) : bool

Whether the program should be closed, after choosing the respective confirmation dialog.

ToCloseTranslationAfterWarning ( ) : bool

Whether a translation should be closed, after choosing the respective confirmation dialog.

ToCreateNewAfterWarning ( ) : bool

Whether a new document should be created, after choosing the respective confirmation dialog.

ToCreateNewTranslationAfterWarning ( ) : bool

Whether a new translation should be created, after choosing the respective confirmation dialog.

ToOpenAfterWarning ( ) : bool

Whether a document should be opened, after choosing the respective confirmation dialog.

ToOpenTranslationAfterWarning ( ) : bool

Whether a translation should be opened, after choosing the respective confirmation dialog.

UpdateTitleModificationStatus ( bool showFilename, bool modified ) : void

메소드 상세

Close() 공개 메소드

Closes the open file.
public Close ( ) : void
리턴 void

Kill() 공개 메소드

Kills the window in the most quick and unfriendly way.
public Kill ( ) : void
리턴 void

MainUi() 공개 메소드

public MainUi ( EventHandlers handlers, Glade &glade ) : GnomeSubtitles.Core
handlers EventHandlers
glade Glade
리턴 GnomeSubtitles.Core

New() 공개 메소드

Creates a new subtitles document for the specified path.
If there's a document open with unsaved changes, a warning dialog is shown.
public New ( ) : void
리턴 void

Open() 공개 메소드

Shows the open dialog and possibly opens a subtitle.
If there's a document currently open with unsaved changes, a warning dialog is shown before opening the new file.
public Open ( ) : void
리턴 void

Open() 공개 메소드

Opens a subtitle.
If there's a document currently open with unsaved changes, a warning dialog is shown before opening the new file.
public Open ( string filename ) : void
filename string The path of the subtitles file to open.
리턴 void

OpenVideo() 공개 메소드

public OpenVideo ( ) : void
리턴 void

Quit() 공개 메소드

Quits the application.
public Quit ( ) : void
리턴 void

Save() 공개 메소드

Executes a Save operation.
If the document hasn't been saved before, a SaveAs is executed.
public Save ( ) : bool
리턴 bool

SaveAs() 공개 메소드

Executes a SaveAs operation.
After saving, the timing mode is set to the timing mode of the subtitle format using when saving.
public SaveAs ( ) : bool
리턴 bool

Start() 공개 메소드

Starts the GUI
public Start ( ) : void
리턴 void

TranslationClose() 공개 메소드

Closes a translation.
If there's a translation open with unsaved changes, a warning dialog is shown.
public TranslationClose ( ) : void
리턴 void

TranslationNew() 공개 메소드

Starts a new translation.
If there's a translation open with unsaved changes, a warning dialog is shown.
public TranslationNew ( ) : void
리턴 void

TranslationOpen() 공개 메소드

Shows the open translation dialog and possibly opens a file.
If there's a translation currently open with unsaved changes, a warning dialog is shown before opening the new file.
public TranslationOpen ( ) : void
리턴 void

TranslationReload() 공개 메소드

Reloads the current translation file.
If there's a translation currently open with unsaved changes, a warning dialog is shown before opening the new file.
public TranslationReload ( ) : void
리턴 void

TranslationSave() 공개 메소드

Executes a Save operation regarding the translation.
If the translation hasn't been saved before, a TranslationSaveAs is executed.
public TranslationSave ( ) : bool
리턴 bool

TranslationSaveAs() 공개 메소드

Executes a translation SaveAs operation.
public TranslationSaveAs ( ) : bool
리턴 bool