RecentFilesAction Class Reference

#include <recentfilesaction.h>

List of all members.

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


Detailed Description

Taken mainly from kdelibs/kdeui/kactionclasses.[cpp/h], author Michael Koch. Adapted to work around strange bug occuring.

Definition at line 20 of file recentfilesaction.h.


Member Function Documentation

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.

Parameters:
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.

Parameters:
url The URL thats the user selected.

Referenced by itemSelected(), menuItemActivated(), and RecentFilesAction().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:56 2007 for KTechLab by  doxygen 1.5.1