class KRecentFilesAction |
|
|
Recent files action This class is an action to handle a recent files submenu. The best way to create the action is to use KStdAction.openRecent. Then you simply need to call loadEntries on startup, saveEntries on shutdown, addURL when your application loads/saves a file. Author Michael Koch |
|
Constructs an action with the specified parent.
parent - The parent of this action. |
|
Constructs an action with text; a shortcut may be specified by the ampersand character (e.g. "&Option" creates a shortcut with key O ) This is the most common KAction used when you do not have a corresponding icon (note that it won't appear in the current version of the "Edit ToolBar" dialog, because an action needs an icon to be plugged in a toolbar...).
text - The text that will be displayed. parent - The parent of this action. |
|
Constructs an action with text and an icon; a shortcut may be specified by the ampersand character (e.g. "&Option" creates a shortcut with key O ) This is the other common KAction used. Use it when you do have a corresponding icon.
icon - The icon to display. text - The text that will be displayed. parent - The parent of this action. |
|
Adds action to the list of URLs, with url and title name. Do not use addAction(QAction*), as no url will be associated, and consequently urlSelected() will not be emitted when action is selected. |
|
Add URL to recent files list.
url - The URL of the file name - The user visible pretty name that appears before the URL |
|
Reimplemented for internal reasons. |
|
Loads the recent files entries from a given KConfigGroup object. You can provide the name of the group used to load the entries. If the groupname is empty, entries are load from a group called 'RecentFiles'
|
|
Returns the maximum of items in the recent files list. |
|
Reimplemented for internal reasons. |
|
Remove an URL from the recent files list.
url - The URL of the file |
|
Saves the current recent files entries to a given KConfigGroup object. You can provide the name of the group used to load the entries. If the groupname is empty, entries are saved to a group called 'RecentFiles'
|
|
Sets the maximum of items in the recent files list. The default for this value is 10 set in the constructor. If this value is lesser than the number of items currently in the recent files list the last items are deleted until the number of items are equal to the new maximum. |
|
This signal gets emitted when the user selects an URL.
url - The URL thats the user selected. |