FX::FXRecentFiles Class Reference

#include <FXRecentFiles.h>

Inheritance diagram for FX::FXRecentFiles:

FX::FXObject List of all members.

Detailed Description

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.

Definition at line 48 of file FXRecentFiles.h.

Public Types

 ID_CLEAR
 ID_ANYFILES
 ID_FILE_1
 ID_FILE_2
 ID_FILE_3
 ID_FILE_4
 ID_FILE_5
 ID_FILE_6
 ID_FILE_7
 ID_FILE_8
 ID_FILE_9
 ID_FILE_10
 ID_LAST
enum  {
  ID_CLEAR, ID_ANYFILES, ID_FILE_1, ID_FILE_2,
  ID_FILE_3, ID_FILE_4, ID_FILE_5, ID_FILE_6,
  ID_FILE_7, ID_FILE_8, ID_FILE_9, ID_FILE_10,
  ID_LAST
}

Public Member Functions

long onCmdClear (FXObject *, FXSelector, void *)
long onCmdFile (FXObject *, FXSelector, void *)
long onUpdFile (FXObject *, FXSelector, void *)
long onUpdAnyFiles (FXObject *, FXSelector, void *)
 FXRecentFiles ()
 FXRecentFiles (FXApp *a)
 FXRecentFiles (FXApp *a, const FXString &gp, FXObject *tgt=NULL, FXSelector sel=0)
FXAppgetApp () const
void setMaxFiles (FXint mx)
FXint getMaxFiles () const
void setGroupName (const FXString &name)
FXString getGroupName () const
void setTarget (FXObject *t)
FXObjectgetTarget () const
void setSelector (FXSelector sel)
FXSelector getSelector () const
FXString getFile (FXint index) const
void setFile (FXint index, const FXString &filename)
void appendFile (const FXString &filename)
void removeFile (const FXString &filename)
void clear ()
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXRecentFiles ()
virtual long onDefault (FXObject *, FXSelector, void *)
const FXchargetClassName () const
bool isMemberOf (const FXMetaClass *metaclass) const
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
QTransString tr (const char *text, const char *hint=0)
virtual void * getPythonObject () const
virtual void decouplePythonObject () const


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:35:53 2009 for TnFOX by doxygen v1.4.7