FXRecentFiles

class FXRecentFiles

The recent files object manages a most recently used (MRU) file list by means of the standard system registry.

Inheritance:


Public Methods

[more] FXRecentFiles()
Make new Recent Files Group with default groupname
[more] FXRecentFiles(const FXString& gp, FXObject* tgt=NULL, FXSelector sel=0)
Make new Recent Files Group with groupname gp
[more]void setMaxFiles(FXint mx)
Change number of files we're tracking
[more]FXint getMaxFiles() const
Return the maximum number of files being tracked
[more]void setGroupName(const FXString& name)
Set group name
[more]FXString getGroupName() const
Return group name
[more]void setTarget(FXObject* t)
Change the target
[more]FXObject* getTarget() const
Get the target
[more]void setSelector(FXSelector sel)
Change the message
[more]FXSelector getSelector() const
Return the message id
[more]void appendFile(const FXString& filename)
Append a file
[more]void removeFile(const FXString& filename)
Remove a file
[more]void clear()
Clear the list of files
[more]virtual void save(FXStream& store) const
Save to a stream
[more]virtual void load(FXStream& store)
Load from a stream
[more]virtual ~FXRecentFiles()
Destructor


Inherited from FXObject:

Public Methods

oconst FXchar* getClassName() const
oFXbool isMemberOf(const FXMetaClass* metaclass) const


Documentation

The recent files object manages a most recently used (MRU) file list by means of the standard system registry. When connected to a widget, like a menu command, the recent files object updates the menu commands label to the associated recent file name; when the menu command is invoked, the recent file object sends its target a SEL_COMMAND message with the message data set to the associated file name, of the type const char*. When adding or removing file names, the recent files object automatically updates the system registry to record these changes.
o FXRecentFiles()
Make new Recent Files Group with default groupname

o FXRecentFiles(const FXString& gp, FXObject* tgt=NULL, FXSelector sel=0)
Make new Recent Files Group with groupname gp

ovoid setMaxFiles(FXint mx)
Change number of files we're tracking

oFXint getMaxFiles() const
Return the maximum number of files being tracked

ovoid setGroupName(const FXString& name)
Set group name

oFXString getGroupName() const
Return group name

ovoid setTarget(FXObject* t)
Change the target

oFXObject* getTarget() const
Get the target

ovoid setSelector(FXSelector sel)
Change the message

oFXSelector getSelector() const
Return the message id

ovoid appendFile(const FXString& filename)
Append a file

ovoid removeFile(const FXString& filename)
Remove a file

ovoid clear()
Clear the list of files

ovirtual void save(FXStream& store) const
Save to a stream

ovirtual void load(FXStream& store)
Load from a stream

ovirtual ~FXRecentFiles()
Destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.