#include <FXFileDict.h>
Inheritance diagram for FX::FXFileDict:
command ';' extension ';' bigicon [ ':' bigiconopen ] ';' icon [ ':' iconopen ] ';' mime [ ';' flags ]
For example, the binding for "jpg" could be:
xv s &;JPEG Image;bigimage.xpm;miniimage.xpm;image/jpeg;term
The association for a file name is determined by first looking at the entire file name, then at the whole extension, and then at sub-extensions. For example, "name.tar.gz", "tar.gz", and "gz" can each be given a different file association. Directory names may also be given associations; there is no command-line association for a directory, however. The association for a directory is found by first checking the whole pathname, then checking the pathname less the first component, and so on. So, "/usr/local/include", "/local/include", and "/include" can each be given their own file associations. If the above lookup procedure has not found a file association, the system uses a fallback associations: for files, the fallback association is determined by the binding "defaultfilebinding". For directories, the "defaultdirbinding" is used, and for executables the "defaultexecbinding" is used. The flags field is used for a number of bit-flags; two flags are currently defined: 'cd' and 'term'. The first one is intended to cause a launcher to execute the application in the shown directory; the second one is meant to indicate that the application is to be ran inside a new terminal.
Definition at line 85 of file FXFileDict.h.
Public Member Functions | |
FXFileDict (FXApp *app) | |
FXFileDict (FXApp *app, FXSettings *db) | |
void | setSettings (FXSettings *s) |
FXSettings * | getSettings () const |
void | setIconDict (FXIconDict *icns) |
FXIconDict * | getIconDict () const |
void | setIconPath (const FXString &path) |
const FXString & | getIconPath () const |
FXFileAssoc * | replace (const FXchar *ext, const FXchar *str) |
FXFileAssoc * | remove (const FXchar *ext) |
FXFileAssoc * | find (const FXchar *ext) |
virtual FXFileAssoc * | findFileBinding (const FXchar *pathname) |
virtual FXFileAssoc * | findDirBinding (const FXchar *pathname) |
virtual FXFileAssoc * | findExecBinding (const FXchar *pathname) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXFileDict () |
void | size (FXint m) |
FXint | size () const |
FXint | no () const |
void * | insert (const FXchar *ky, const void *ptr, bool mrk=false) |
void * | replace (const FXchar *ky, const void *ptr, bool mrk=false) |
void * | find (const FXchar *ky) const |
bool | empty (FXint pos) const |
const FXchar * | key (FXuint pos) const |
void * | data (FXuint pos) const |
bool | mark (FXuint pos) const |
FXint | first () const |
FXint | last () const |
FXint | next (FXint pos) const |
FXint | prev (FXint pos) const |
void | clear () |
virtual long | onDefault (FXObject *, FXSelector, void *) |
const FXchar * | getClassName () 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 |
Static Public Attributes | |
static const FXchar * | defaultExecBinding |
static const FXchar * | defaultDirBinding |
static const FXchar * | defaultFileBinding |
Protected Member Functions | |
FXFileDict () | |
virtual void * | createData (const void *) |
virtual void | deleteData (void *) |
Static Protected Member Functions | |
static FXint | hash (const FXchar *str) |
Protected Attributes | |
FXDictEntry * | dict |
FXint | total |
FXint | number |