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

Afficher le fichier Open project: damienhaynes/moving-pictures Class Usage Examples

Méthodes publiques

Свойство Type Description
_categoriesFacade MediaPortal.GUI.Library.GUIFacadeControl
_currentNode DBNode
_lastNode DBNode
_lastSelectedMovie MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo
_lastView BrowserViewMode
_selectedNode DBNode
_topLevelNode DBNode
_topLevelView BrowserViewMode
facade MediaPortal.GUI.Library.GUIFacadeControl

Méthodes publiques

Méthode Description
CycleView ( ) : void

Rotates the current layout.

Focus ( ) : void

Enable focus on the active facade

GetAvailableMovies ( DBNode node ) : HashSet

Returns a list of available movies for this node (includes active filters)

GetMovieListItem ( DBMovieInfo movie ) : GUIListItem

Gets the GUIListItem object associated with this movie

GetPossibleMovies ( DBNode node ) : HashSet

Returns a list of possible movies for this node

HasAvailableMovies ( DBNode node ) : bool

Returns a value indicating wether this node has available movies

MovieBrowser ( MovingPicturesSkinSettings skinSettings ) : System
ReAddCategoryFilters ( ) : void
ReapplyFilters ( ) : void

Reapplies all existing filters to the movies in the browser. This should be called if an existing filter has been modified.

ReloadCategoriesFacade ( ) : void
ReloadFacade ( ) : void
ReloadMovieFacade ( ) : void
ReloadView ( ) : void

Reloads the current view to the GUI.

TemporarilyRemoveCategoryFilters ( ) : void
UpdateListColors ( DBMovieInfo movie ) : void

Updates the color properties of the GUIListItem object for this movie

onCategoryNodeSelected ( GUIListItem item, GUIControl parent ) : void
onMovieItemSelected ( GUIListItem item, GUIControl parent ) : void

Private Methods

Méthode Description
GetNextValidView ( BrowserViewMode startView ) : BrowserViewMode
GetSecondItemLabel ( DBMovieInfo movie ) : string
GetSecondItemLabel ( DBMovieInfo movie, string secondLabelType ) : string
GetSecondItemLabelForCurrentSortBy ( DBMovieInfo movie ) : string

gets the best second label to display for node based on it's corresponding SortBy if the SortBy doesn't match a logical field then the default field selected by user in advanced settings is allocated

GetViewFromNode ( DBNode node ) : BrowserViewMode
PowerEventHandler ( MovingPicturesCore powerEvent ) : void
RefreshFacade ( object state ) : void

Reloads the facade as result from a delayed refresh

addCategoryNodeToFacade ( DBNode newNode ) : void
addFilters ( DBNode node ) : void
addMovieToFacade ( DBMovieInfo newMovie ) : void
availabilityCheckProcess ( ) : void

Checks if movies are available and updates the menu item highlighting accordingly. Meant to run as a background process.

deinit ( ) : void
init ( ) : void
initSortingDefaults ( ) : void
onContentsChanged ( ) : void
onFilterUpdated ( IFilter obj ) : void
onFiltersChanged ( object sender, EventArgs e ) : void
onMovieAdded ( DatabaseTable obj ) : void
onMovieContentsChange ( ) : void
onMovieDeleted ( DatabaseTable obj ) : void
onMovieUpdated ( DatabaseTable obj ) : void
onScrollItemChanged ( GUIListItem item ) : string
removeFilters ( DBNode node ) : void

Method Details

CycleView() public méthode

Rotates the current layout.
public CycleView ( ) : void
Résultat void

Focus() public méthode

Enable focus on the active facade
public Focus ( ) : void
Résultat void

GetAvailableMovies() public méthode

Returns a list of available movies for this node (includes active filters)
public GetAvailableMovies ( DBNode node ) : HashSet
node DBNode
Résultat HashSet

GetMovieListItem() public méthode

Gets the GUIListItem object associated with this movie
public GetMovieListItem ( DBMovieInfo movie ) : GUIListItem
movie MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo
Résultat MediaPortal.GUI.Library.GUIListItem

GetPossibleMovies() public méthode

Returns a list of possible movies for this node
public GetPossibleMovies ( DBNode node ) : HashSet
node DBNode
Résultat HashSet

HasAvailableMovies() public méthode

Returns a value indicating wether this node has available movies
public HasAvailableMovies ( DBNode node ) : bool
node DBNode
Résultat bool

MovieBrowser() public méthode

public MovieBrowser ( MovingPicturesSkinSettings skinSettings ) : System
skinSettings MovingPicturesSkinSettings
Résultat System

ReAddCategoryFilters() public méthode

public ReAddCategoryFilters ( ) : void
Résultat void

ReapplyFilters() public méthode

Reapplies all existing filters to the movies in the browser. This should be called if an existing filter has been modified.
public ReapplyFilters ( ) : void
Résultat void

ReloadCategoriesFacade() public méthode

public ReloadCategoriesFacade ( ) : void
Résultat void

ReloadFacade() public méthode

public ReloadFacade ( ) : void
Résultat void

ReloadMovieFacade() public méthode

public ReloadMovieFacade ( ) : void
Résultat void

ReloadView() public méthode

Reloads the current view to the GUI.
public ReloadView ( ) : void
Résultat void

TemporarilyRemoveCategoryFilters() public méthode

public TemporarilyRemoveCategoryFilters ( ) : void
Résultat void

UpdateListColors() public méthode

Updates the color properties of the GUIListItem object for this movie
public UpdateListColors ( DBMovieInfo movie ) : void
movie MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo
Résultat void

onCategoryNodeSelected() public méthode

public onCategoryNodeSelected ( GUIListItem item, GUIControl parent ) : void
item MediaPortal.GUI.Library.GUIListItem
parent MediaPortal.GUI.Library.GUIControl
Résultat void

onMovieItemSelected() public méthode

public onMovieItemSelected ( GUIListItem item, GUIControl parent ) : void
item MediaPortal.GUI.Library.GUIListItem
parent MediaPortal.GUI.Library.GUIControl
Résultat void

Property Details

_categoriesFacade public_oe property

public GUIFacadeControl,MediaPortal.GUI.Library _categoriesFacade
Résultat MediaPortal.GUI.Library.GUIFacadeControl

_currentNode public_oe property

public DBNode _currentNode
Résultat DBNode

_lastNode public_oe property

public DBNode _lastNode
Résultat DBNode

_lastSelectedMovie public_oe property

public DBMovieInfo,MediaPortal.Plugins.MovingPictures.Database _lastSelectedMovie
Résultat MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo

_lastView public_oe property

public BrowserViewMode _lastView
Résultat BrowserViewMode

_selectedNode public_oe property

public DBNode _selectedNode
Résultat DBNode

_topLevelNode public_oe property

public DBNode _topLevelNode
Résultat DBNode

_topLevelView public_oe property

public BrowserViewMode _topLevelView
Résultat BrowserViewMode

facade public_oe property

public GUIFacadeControl,MediaPortal.GUI.Library facade
Résultat MediaPortal.GUI.Library.GUIFacadeControl