items.favourite_items#

Classes responsible for viewing and editing items marked as favourites.

Classes:

FavouriteItemModel(*args, **kwargs)

The model responsible for displaying the saved favourites.

FavouriteItemView([icon, parent])

The widget responsible for showing all the items marked as favourites.

FavouriteItemViewContextMenu(index[, parent])

Context menu associated with FavouriteItemView.

class bookmarks.items.favourite_items.FavouriteItemModel(*args, **kwargs)[source]#

Bases: FileItemModel

The model responsible for displaying the saved favourites.

Methods:

filter_setting_dict_key()

The custom dictionary key used to save filter settings to the user settings file.

init_data(**kwargs)

Function wrapper.

item_generator()

We're using the saved keys to find and return the DirEntries corresponding to the saved favourites.

source_path()

The model's parent folder path segments.

task()

The model's associated task.

filter_setting_dict_key()[source]#

The custom dictionary key used to save filter settings to the user settings file.

init_data(**kwargs)#

Function wrapper.

item_generator()[source]#

We’re using the saved keys to find and return the DirEntries corresponding to the saved favourites.

source_path()[source]#

The model’s parent folder path segments.

Returns:

A tuple of path segments.

Return type:

tuple

task()[source]#

The model’s associated task.

class bookmarks.items.favourite_items.FavouriteItemView(icon='favourite', parent=None)[source]#

Bases: FileItemView

The widget responsible for showing all the items marked as favourites.

Classes:

Methods:

dragEnterEvent(event)

Event handler.

dragLeaveEvent(event)

Paint event handler.

dragMoveEvent(event)

Event handler.

dropEvent(event)

Event handler.

execute_queued_reset()

Make sure to only reset the model when the mouse is no longer pressed.

get_hint_string()

Returns an informative hint text.

get_source_model()

Returns the model class associated with this view.

queue_model_reset()

Starts/reset the timer responsible for reloading the list of favourite items.

ContextMenu#

alias of FavouriteItemViewContextMenu Methods:

setup()

Creates the context menu.

Delegate#

alias of FavouriteItemViewDelegate Attributes:

fallback_thumb

The item's default thumbnail image

dragEnterEvent(event)[source]#

Event handler.

dragLeaveEvent(event)[source]#

Paint event handler.

dragMoveEvent(event)[source]#

Event handler.

dropEvent(event)[source]#

Event handler.

execute_queued_reset()[source]#

Make sure to only reset the model when the mouse is no longer pressed.

get_hint_string()[source]#

Returns an informative hint text.

get_source_model()[source]#

Returns the model class associated with this view.

queue_model_reset()[source]#

Starts/reset the timer responsible for reloading the list of favourite items.

class bookmarks.items.favourite_items.FavouriteItemViewContextMenu(index, parent=None)[source]#

Bases: BaseContextMenu

Context menu associated with FavouriteItemView.

Methods:

setup()

Creates the context menu.

setup()[source]#

Creates the context menu.