bookmarker.bookmark_editor#
Editor widget used by BookmarkerWidget
to save
bookmark items to the user settings file.
Classes:
|
Context menu associated with |
|
List widget containing a job's available bookmark items. |
- class bookmarks.bookmarker.bookmark_editor.BookmarkEditorContextMenu(index, parent=None)[source]#
Bases:
BaseContextMenu
Context menu associated with
BookmarkItemEditor
.Methods:
add_menu
()Add bookmark item action.
Show the bookmark item property editor.
Copy bookmark item as JSON action.
Refresh bookmark item list action.
Reveal bookmark item action.
setup
()Creates the context menu.
Add bookmark item action.
Show the bookmark item property editor.
Copy bookmark item as JSON action.
Refresh bookmark item list action.
Reveal bookmark item action.
- class bookmarks.bookmarker.bookmark_editor.BookmarkItemEditor(parent=None)[source]#
Bases:
ListWidget
List widget containing a job’s available bookmark items.
Methods:
add
(*args, **kwargs)Pick and add a folder as a new bookmark item.
add_remove_bookmark
(state, v)Slot used to add or remove a bookmark item.
contextMenuEvent
(event)Context menu event.
Initializes data.
item_generator
(path[, recursion, max_recursion])Recursive scanning function for finding bookmark folders inside the given path.
keyPressEvent
(event)Key press event handler.
toggle_item_state
(item)Slot used to toggle the check state of an item.
update_state
(item)Checks if the item is part of the current bookmark set and sets the item's check state and icon accordingly.
- add_remove_bookmark(state, v)[source]#
Slot used to add or remove a bookmark item.
- Parameters:
state (QtCore.Qt.CheckState) – A check state.
v (QtWidgets.QListWidgetItem) – The item that was just toggled.