C# Class MediaPortal.Plugins.MovingPictures.MainUI.ImporterGUI

Inheritance: MediaPortal.GUI.Library.GUIWindow
Datei anzeigen Open project: damienhaynes/moving-pictures

Private Properties

Property Type Description
AddRangeToList void
AddToList void
ConnectToImporter void
DisplayContextDialog void
DisplayGlobalActionsMenu bool
DisplayMovieSelectionDialog bool
DisplaySearchDialog bool
GetListItem MediaPortal.GUI.Library.GUIListItem
ImporterProgress void
InitializeControls void
ListItemSelected void
MovieStatusChangedListener void
RemoveFromList void
UpdateArtwork void
VerifyImporterEnabled bool
VerifyParentalControls bool
VerifySkinSupport bool

Public Methods

Method Description
Init ( ) : bool
OnAction ( MediaPortal.GUI.Library.Action action ) : void

Protected Methods

Method Description
OnClicked ( int controlId, GUIControl control, MediaPortal actionType ) : void
OnPageLoad ( ) : void
OnShowContextMenu ( ) : void

Private Methods

Method Description
AddRangeToList ( GUIListControl listControl, List listItems ) : void
AddToList ( GUIListItem listItem, FilterMode mode ) : void
ConnectToImporter ( ) : void

Grab current importer information and begin listening for updates.

DisplayContextDialog ( ) : void
DisplayGlobalActionsMenu ( ) : bool
DisplayMovieSelectionDialog ( ) : bool
DisplaySearchDialog ( MovieMatch selectedFile ) : bool
GetListItem ( MovieMatch match ) : GUIListItem
ImporterProgress ( int percentDone, int taskCount, int taskTotal, string taskDescription ) : void

Publish progress updates to the skin as they are received.

InitializeControls ( ) : void

Initializes and populates controls on the screen.

ListItemSelected ( GUIListItem item, GUIControl parent ) : void
MovieStatusChangedListener ( MovieMatch match, MovieImporterAction action ) : void

Receives updates about specific items in the importer and updates the UI accordingly.

RemoveFromList ( GUIListItem listItem, FilterMode mode ) : void
UpdateArtwork ( ) : void
VerifyImporterEnabled ( ) : bool

Check if the importer is meant to run in the GUI, if not let the user know. Backs out if the user keeps the importer off.

VerifyParentalControls ( ) : bool

If parental controls are enabled make sure the user is not up to no good.

VerifySkinSupport ( ) : bool

Checks that the current skin supports the importer. Backs out if it does not.

Method Details

Init() public method

public Init ( ) : bool
return bool

OnAction() public method

public OnAction ( MediaPortal.GUI.Library.Action action ) : void
action MediaPortal.GUI.Library.Action
return void

OnClicked() protected method

protected OnClicked ( int controlId, GUIControl control, MediaPortal actionType ) : void
controlId int
control MediaPortal.GUI.Library.GUIControl
actionType MediaPortal
return void

OnPageLoad() protected method

protected OnPageLoad ( ) : void
return void

OnShowContextMenu() protected method

protected OnShowContextMenu ( ) : void
return void