#include <recentfilesaction.h>
Signals | |
| void | urlSelected (const KURL &url) |
Public Member Functions | |
| RecentFilesAction (const QString &configGroupName, const QString &text, const QObject *receiver, const char *slot, QObject *parent, const char *name) | |
| ~RecentFilesAction () | |
| void | loadEntries () |
| void | saveEntries () |
| void | addURL (const KURL &url) |
Protected Slots | |
| void | itemSelected (const QString &string) |
| void | menuAboutToShow () |
| void | menuItemActivated (int id) |
| void | slotClicked () |
| virtual void | slotActivated (int) |
| virtual void | slotActivated (const QString &) |
| virtual void | slotActivated () |
Protected Attributes | |
| unsigned | m_maxItems |
| KPopupMenu * | m_popup |
| QString | m_configGroupName |
Definition at line 20 of file recentfilesaction.h.
| void RecentFilesAction::loadEntries | ( | ) |
Loads the recent files entries from a given KConfig 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'
This method does not effect the active group of KConfig.
Definition at line 73 of file recentfilesaction.cpp.
References m_configGroupName, and m_maxItems.
Referenced by KTechlab::readProperties().
| void RecentFilesAction::saveEntries | ( | ) |
Saves the current recent files entries to a given KConfig 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'
This method does not effect the active group of KConfig.
Definition at line 102 of file recentfilesaction.cpp.
References m_configGroupName.
Referenced by addURL().
| void RecentFilesAction::addURL | ( | const KURL & | url | ) |
Add URL to recent files list.
| url | The URL of the file |
Definition at line 42 of file recentfilesaction.cpp.
References m_maxItems, and saveEntries().
Referenced by KTechlab::addRecentFile(), and ProjectManager::slotOpenProject().
| void RecentFilesAction::urlSelected | ( | const KURL & | url | ) | [signal] |
This signal gets emited when the user selects an URL.
| url | The URL thats the user selected. |
Referenced by itemSelected(), menuItemActivated(), and RecentFilesAction().
1.5.1