eric7.WebBrowser.Bookmarks.AddBookmarkDialog

Module implementing a dialog to add a bookmark or a bookmark folder.

Global Attributes

None

Classes

AddBookmarkDialog Class implementing a dialog to add a bookmark or a bookmark folder.
AddBookmarkProxyModel Class implementing a proxy model used by the AddBookmarkDialog dialog.

Functions

None


AddBookmarkDialog

Class implementing a dialog to add a bookmark or a bookmark folder.

Derived from

QDialog, Ui_AddBookmarkDialog

Class Attributes

None

Class Methods

None

Methods

AddBookmarkDialog Constructor
accept Public slot handling the acceptance of the dialog.
addedNode Public method to get a reference to the added bookmark node.
currentIndex Public method to get the current index.
description Public method to get the description of the bookmark.
isFolder Public method to test, if the dialog is in "Add Folder" mode.
setCurrentIndex Public method to set the current index.
setDescription Public method to set the description of the new bookmark.
setFolder Public method to set the dialog to "Add Folder" mode.
setTitle Public method to set the title of the new bookmark.
setUrl Public slot to set the URL of the new bookmark.
title Public method to get the title of the bookmark.
url Public method to get the URL of the bookmark.

Static Methods

None

AddBookmarkDialog (Constructor)

AddBookmarkDialog(parent=None, bookmarksManager=None)

Constructor

parent (QWidget)
reference to the parent widget
bookmarksManager (BookmarksManager)
reference to the bookmarks manager object

AddBookmarkDialog.accept

accept()

Public slot handling the acceptance of the dialog.

AddBookmarkDialog.addedNode

addedNode()

Public method to get a reference to the added bookmark node.

Return:
reference to the added bookmark node
Return Type:
BookmarkNode

AddBookmarkDialog.currentIndex

currentIndex()

Public method to get the current index.

Return:
current index
Return Type:
QModelIndex

AddBookmarkDialog.description

description()

Public method to get the description of the bookmark.

Return:
description of the bookamrk
Return Type:
str

AddBookmarkDialog.isFolder

isFolder()

Public method to test, if the dialog is in "Add Folder" mode.

Return:
flag indicating "Add Folder" mode
Return Type:
bool

AddBookmarkDialog.setCurrentIndex

setCurrentIndex(idx)

Public method to set the current index.

idx (QModelIndex)
current index to be set

AddBookmarkDialog.setDescription

setDescription(description)

Public method to set the description of the new bookmark.

description (str)
description of the bookamrk

AddBookmarkDialog.setFolder

setFolder(folder)

Public method to set the dialog to "Add Folder" mode.

folder (bool)
flag indicating "Add Folder" mode

AddBookmarkDialog.setTitle

setTitle(title)

Public method to set the title of the new bookmark.

title (str)
title of the bookmark

AddBookmarkDialog.setUrl

setUrl(url)

Public slot to set the URL of the new bookmark.

url (str)
URL of the bookmark

AddBookmarkDialog.title

title()

Public method to get the title of the bookmark.

Return:
title of the bookmark
Return Type:
str

AddBookmarkDialog.url

url()

Public method to get the URL of the bookmark.

Return:
URL of the bookmark
Return Type:
str
Up


AddBookmarkProxyModel

Class implementing a proxy model used by the AddBookmarkDialog dialog.

Derived from

QSortFilterProxyModel

Class Attributes

None

Class Methods

None

Methods

AddBookmarkProxyModel Constructor
columnCount Public method to return the number of columns.
filterAcceptsColumn Public method to determine, if the column is acceptable.
filterAcceptsRow Public method to determine, if the row is acceptable.
hasChildren Public method to check, if a parent node has some children.

Static Methods

None

AddBookmarkProxyModel (Constructor)

AddBookmarkProxyModel(parent=None)

Constructor

parent (QObject)
reference to the parent object

AddBookmarkProxyModel.columnCount

columnCount(parent)

Public method to return the number of columns.

parent (QModelIndex)
index of the parent
Return:
number of columns
Return Type:
int

AddBookmarkProxyModel.filterAcceptsColumn

filterAcceptsColumn(sourceColumn, _sourceParent)

Public method to determine, if the column is acceptable.

sourceColumn (int)
column number in the source model
_sourceParent (QModelIndex)
index of the source item (unused)
Return:
flag indicating acceptance
Return Type:
bool

AddBookmarkProxyModel.filterAcceptsRow

filterAcceptsRow(sourceRow, sourceParent)

Public method to determine, if the row is acceptable.

sourceRow (int)
row number in the source model
sourceParent (QModelIndex)
index of the source item
Return:
flag indicating acceptance
Return Type:
bool

AddBookmarkProxyModel.hasChildren

hasChildren(parent=None)

Public method to check, if a parent node has some children.

parent (QModelIndex)
index of the parent node
Return:
flag indicating the presence of children
Return Type:
bool
Up