eric7.WebBrowser.SpeedDial.SpeedDial

Module implementing the speed dial.

Global Attributes

None

Classes

SpeedDial Class implementing the speed dial.

Functions

None


SpeedDial

Class implementing the speed dial.

Signals

pageTitleLoaded(url, title)
emitted after a title was loaded
pagesChanged()
emitted after the list of pages changed
speedDialSaved()
emitted after the speed dial data was saved
thumbnailLoaded(url, src)
emitted after a thumbnail was loaded

Derived from

QObject

Class Attributes

None

Class Methods

None

Methods

SpeedDial Constructor
__escapeTitle Private method to escape a title string.
__escapeUrl Private method to escape an URL string.
__imageFileName Private method to generate the image file name for a URL.
__initialize Private method to initialize the speed dial.
__load Private method to load the speed dial configuration.
__thumbnailCreated Private slot to handle the creation of a thumbnail image.
addPage Public method to add a page for the given data.
changed Public slot to react on changed pages.
close Public method to close the user agents manager.
getFileName Public method to get the file name of the user agents file.
initialScript Public method to get the 'initial' JavaScript script.
loadThumbnail Public slot to load a thumbnail of the given URL.
pageForUrl Public method to get the page for the given URL.
pagesInRow Public method to get the number of dials per row.
reload Public method to reload the speed dial data.
removeImageForUrl Public slot to remove the image for a URL.
removePage Public method to remove a page.
resetDials Public method to reset the speed dials to the default values.
save Public method to save the speed dial configuration.
sdSize Public method to get the speed dial size.
setPagesInRow Public slot to set the number of pages per row.
setSdSize Public slot to set the size of the speed dial.
urlForShortcut Public method to get the URL for the given shortcut key.
urlFromUserInput Public slot to get the URL from user input.

Static Methods

None

SpeedDial (Constructor)

SpeedDial(parent=None)

Constructor

parent (QObject)
reference to the parent object

SpeedDial.__escapeTitle

__escapeTitle(title)

Private method to escape a title string.

title (str)
title string to be escaped
Return:
escaped title string
Return Type:
str

SpeedDial.__escapeUrl

__escapeUrl(url)

Private method to escape an URL string.

url (str)
URL to be escaped
Return:
escaped URL string
Return Type:
str

SpeedDial.__imageFileName

__imageFileName(url)

Private method to generate the image file name for a URL.

url (str)
URL to generate the file name from
Return:
name of the image file
Return Type:
str

SpeedDial.__initialize

__initialize()

Private method to initialize the speed dial.

SpeedDial.__load

__load()

Private method to load the speed dial configuration.

SpeedDial.__thumbnailCreated

__thumbnailCreated(image, thumbnailer)

Private slot to handle the creation of a thumbnail image.

image (QPixmap)
thumbnail image
thumbnailer (PageThumbnailer)
reference to the page thumbnailer

SpeedDial.addPage

addPage(url, title)

Public method to add a page for the given data.

url (QUrl)
URL of the page
title (str)
title of the page

SpeedDial.changed

changed(allPages)

Public slot to react on changed pages.

allPages (str)
string giving all pages

SpeedDial.close

close()

Public method to close the user agents manager.

SpeedDial.getFileName

getFileName()

Public method to get the file name of the user agents file.

Return:
name of the user agents file
Return Type:
str

SpeedDial.initialScript

initialScript()

Public method to get the 'initial' JavaScript script.

Return:
initial JavaScript script
Return Type:
str

SpeedDial.loadThumbnail

loadThumbnail(urlStr, loadTitle)

Public slot to load a thumbnail of the given URL.

urlStr (str)
URL of the thumbnail
loadTitle (bool)
flag indicating to get the title for the thumbnail from the site

SpeedDial.pageForUrl

pageForUrl(url)

Public method to get the page for the given URL.

url (QUrl)
URL to be searched for
Return:
page for the URL
Return Type:
Page

SpeedDial.pagesInRow

pagesInRow()

Public method to get the number of dials per row.

Return:
number of dials per row
Return Type:
int

SpeedDial.reload

reload()

Public method to reload the speed dial data.

SpeedDial.removeImageForUrl

removeImageForUrl(url)

Public slot to remove the image for a URL.

url (str)
URL to remove the image for

SpeedDial.removePage

removePage(url)

Public method to remove a page.

url (QUrl)
URL of the page

SpeedDial.resetDials

resetDials()

Public method to reset the speed dials to the default values.

SpeedDial.save

save()

Public method to save the speed dial configuration.

SpeedDial.sdSize

sdSize()

Public method to get the speed dial size.

Return:
speed dial size
Return Type:
int

SpeedDial.setPagesInRow

setPagesInRow(count)

Public slot to set the number of pages per row.

count (int)
number of pages per row

SpeedDial.setSdSize

setSdSize(size)

Public slot to set the size of the speed dial.

size (int)
size of the speed dial

SpeedDial.urlForShortcut

urlForShortcut(key)

Public method to get the URL for the given shortcut key.

key (int)
shortcut key
Return:
URL for the key
Return Type:
QUrl

SpeedDial.urlFromUserInput

urlFromUserInput(url)

Public slot to get the URL from user input.

url (str)
URL entered by the user
Return:
sanitized URL
Return Type:
str
Up