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

Mostrar archivo Open project: damienhaynes/moving-pictures Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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

Method 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 method

Rotates the current layout.
public CycleView ( ) : void
return void

Focus() public method

Enable focus on the active facade
public Focus ( ) : void
return void

GetAvailableMovies() public method

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

GetMovieListItem() public method

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

GetPossibleMovies() public method

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

HasAvailableMovies() public method

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

MovieBrowser() public method

public MovieBrowser ( MovingPicturesSkinSettings skinSettings ) : System
skinSettings MovingPicturesSkinSettings
return System

ReAddCategoryFilters() public method

public ReAddCategoryFilters ( ) : void
return void

ReapplyFilters() public method

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

ReloadCategoriesFacade() public method

public ReloadCategoriesFacade ( ) : void
return void

ReloadFacade() public method

public ReloadFacade ( ) : void
return void

ReloadMovieFacade() public method

public ReloadMovieFacade ( ) : void
return void

ReloadView() public method

Reloads the current view to the GUI.
public ReloadView ( ) : void
return void

TemporarilyRemoveCategoryFilters() public method

public TemporarilyRemoveCategoryFilters ( ) : void
return void

UpdateListColors() public method

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

onCategoryNodeSelected() public method

public onCategoryNodeSelected ( GUIListItem item, GUIControl parent ) : void
item MediaPortal.GUI.Library.GUIListItem
parent MediaPortal.GUI.Library.GUIControl
return void

onMovieItemSelected() public method

public onMovieItemSelected ( GUIListItem item, GUIControl parent ) : void
item MediaPortal.GUI.Library.GUIListItem
parent MediaPortal.GUI.Library.GUIControl
return void

Property Details

_categoriesFacade public_oe property

public GUIFacadeControl,MediaPortal.GUI.Library _categoriesFacade
return MediaPortal.GUI.Library.GUIFacadeControl

_currentNode public_oe property

public DBNode _currentNode
return DBNode

_lastNode public_oe property

public DBNode _lastNode
return DBNode

_lastSelectedMovie public_oe property

public DBMovieInfo,MediaPortal.Plugins.MovingPictures.Database _lastSelectedMovie
return MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo

_lastView public_oe property

public BrowserViewMode _lastView
return BrowserViewMode

_selectedNode public_oe property

public DBNode _selectedNode
return DBNode

_topLevelNode public_oe property

public DBNode _topLevelNode
return DBNode

_topLevelView public_oe property

public BrowserViewMode _topLevelView
return BrowserViewMode

facade public_oe property

public GUIFacadeControl,MediaPortal.GUI.Library facade
return MediaPortal.GUI.Library.GUIFacadeControl