topbar.buttons#

Defines the small control buttons found on the right-hand side of the top bar.

Classes:

BaseControlButton(pixmap, description[, ...])

Base-class used for control buttons on the top bar.

FilterButton([parent])

FilterHistoryMenu(index[, parent])

RefreshButton([parent])

SlackButton([parent])

ToggleArchivedButton([parent])

ToggleFavouriteButton([parent])

ToggleInlineIcons([parent])

ToggleSequenceButton([parent])

class bookmarks.topbar.buttons.BaseControlButton(pixmap, description, color=(common.color(common.color_selected_text), common.color(common.color_disabled_text)), parent=None)[source]#

Bases: ClickableIconButton

Base-class used for control buttons on the top bar.

class bookmarks.topbar.buttons.FilterButton(parent=None)[source]#

Bases: BaseControlButton

Methods:

contextMenuEvent(event)

Event handler.

mouseReleaseEvent(event)

Event handler.

contextMenuEvent(event)[source]#

Event handler.

mouseReleaseEvent(event)[source]#

Event handler.

class bookmarks.topbar.buttons.FilterHistoryMenu(index, parent=None)[source]#

Bases: BaseContextMenu

Methods:

setup()

Creates the context menu.

setup()[source]#

Creates the context menu.

class bookmarks.topbar.buttons.RefreshButton(parent=None)[source]#

Bases: BaseControlButton

Methods:

state()

The state of the auto-thumbnails

state()[source]#

The state of the auto-thumbnails

class bookmarks.topbar.buttons.SlackButton(parent=None)[source]#

Bases: BaseControlButton

Methods:

action()

Opens the set slack workspace.

check_token(*args, **kwargs)

Checks if the current bookmark has an active slack token set.

action()[source]#

Opens the set slack workspace.

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

Checks if the current bookmark has an active slack token set.

If the value is set we’ll show the button, otherwise it will stay hidden.

class bookmarks.topbar.buttons.ToggleArchivedButton(parent=None)[source]#

Bases: BaseControlButton

Methods:

pixmap(self)

pixmap(self) PySide2.QtGui.QPixmap[source]#
class bookmarks.topbar.buttons.ToggleFavouriteButton(parent=None)[source]#

Bases: BaseControlButton

Methods:

update(-> None -> None -> None)

update(self) None[source]#
update(self, arg__1: PySide2.QtCore.QRect) None
update(self, arg__1: PySide2.QtGui.QRegion) None
update(self, x: int, y: int, w: int, h: int) None
class bookmarks.topbar.buttons.ToggleInlineIcons(parent=None)[source]#

Bases: BaseControlButton

class bookmarks.topbar.buttons.ToggleSequenceButton(parent=None)[source]#

Bases: BaseControlButton

Methods:

pixmap(self)

update(-> None -> None -> None)

pixmap(self) PySide2.QtGui.QPixmap[source]#
update(self) None[source]#
update(self, arg__1: PySide2.QtCore.QRect) None
update(self, arg__1: PySide2.QtGui.QRegion) None
update(self, x: int, y: int, w: int, h: int) None