bookmarker.server_editor#

Editor widget used by BookmarkerWidget to select and save a new server item.

Classes:

AddServerEditor([parent])

Dialog used to add a new server to user settings file.

ServerContextMenu(index[, parent])

Context menu associated with ServerItemEditor.

ServerItemEditor([parent])

List widget used to add and remove servers to and from the local user settings.

class bookmarks.bookmarker.server_editor.AddServerEditor(parent=None)[source]#

Bases: QDialog

Dialog used to add a new server to user settings file.

Methods:

done(result)

Finalize action.

pick()

Get an existing directory to use as a server.

showEvent(event)

Show event handler.

sizeHint()

Returns a size hint.

text()

Sanitize text.

done(result)[source]#

Finalize action.

pick()[source]#

Get an existing directory to use as a server.

showEvent(event)[source]#

Show event handler.

sizeHint()[source]#

Returns a size hint.

text()[source]#

Sanitize text.

Returns

The sanitized text.

Return type

str

class bookmarks.bookmarker.server_editor.ServerContextMenu(index, parent=None)[source]#

Bases: BaseContextMenu

Context menu associated with ServerItemEditor.

Methods:

add_menu()

Add server action.

refresh_menu()

Refresh server list action.

remove_menu()

Remove server item action.

reveal_menu()

Reveal server item action.

setup()

Creates the context menu.

add_menu()[source]#

Add server action.

refresh_menu()[source]#

Refresh server list action.

remove_menu()[source]#

Remove server item action.

reveal_menu()[source]#

Reveal server item action.

setup()[source]#

Creates the context menu.

class bookmarks.bookmarker.server_editor.ServerItemEditor(parent=None)[source]#

Bases: ListWidget

List widget used to add and remove servers to and from the local user settings.

Methods:

add(*args, **kwargs)

Add a server item.

contextMenuEvent(event)

Context menu event handler.

init_data(*args, **kwargs)

Load data.

remove(*args, **kwargs)

Remove a server item.

validate_item(item)

Check if the given server item is valid.

add(*args, **kwargs)[source]#

Add a server item.

contextMenuEvent(event)[source]#

Context menu event handler.

init_data(*args, **kwargs)[source]#

Load data.

remove(*args, **kwargs)[source]#

Remove a server item.

validate_item(item)[source]#

Check if the given server item is valid.