The recent files object manages a most recently used (MRU) file list by means of the standard system registry.
Inheritance:
Public Methods
-
FXRecentFiles()
- Make new Recent Files Group with default groupname
-
FXRecentFiles(const FXString& gp, FXObject* tgt=NULL, FXSelector sel=0)
- Make new Recent Files Group with groupname gp
-
void setMaxFiles(FXint mx)
- Change number of files we're tracking
-
FXint getMaxFiles() const
- Return the maximum number of files being tracked
-
void setGroupName(const FXString& name)
- Set group name
-
FXString getGroupName() const
- Return group name
-
void setTarget(FXObject* t)
- Change the target
-
FXObject* getTarget() const
- Get the target
-
void setSelector(FXSelector sel)
- Change the message
-
FXSelector getSelector() const
- Return the message id
-
void appendFile(const FXString& filename)
- Append a file
-
void removeFile(const FXString& filename)
- Remove a file
-
void clear()
- Clear the list of files
-
virtual void save(FXStream& store) const
- Save to a stream
-
virtual void load(FXStream& store)
- Load from a stream
-
virtual ~FXRecentFiles()
- Destructor
Public Methods
-
const FXchar* getClassName() const
-
FXbool 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.
FXRecentFiles()
- Make new Recent Files Group with default groupname
FXRecentFiles(const FXString& gp, FXObject* tgt=NULL, FXSelector sel=0)
- Make new Recent Files Group with groupname gp
void setMaxFiles(FXint mx)
- Change number of files we're tracking
FXint getMaxFiles() const
- Return the maximum number of files being tracked
void setGroupName(const FXString& name)
- Set group name
FXString getGroupName() const
- Return group name
void setTarget(FXObject* t)
- Change the target
FXObject* getTarget() const
- Get the target
void setSelector(FXSelector sel)
- Change the message
FXSelector getSelector() const
- Return the message id
void appendFile(const FXString& filename)
- Append a file
void removeFile(const FXString& filename)
- Remove a file
void clear()
- Clear the list of files
virtual void save(FXStream& store) const
- Save to a stream
virtual void load(FXStream& store)
- Load from a stream
virtual ~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++.