12#ifndef ROOT_TGMimeTypes
13#define ROOT_TGMimeTypes
65 void AddType(
const char *type,
const char *pat,
const char *icon,
const char *sicon,
const char *action);
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
TGMimeTypes & operator=(const TGMimeTypes &gmt)
Assignment operator.
Bool_t fChanged
true if file has changed
void SaveMimes()
Save mime types in user's mime type file.
TGMime * Find(const char *filename)
Given a filename find the matching mime type object.
void AddType(const char *type, const char *pat, const char *icon, const char *sicon, const char *action)
Add a mime type to the list of mime types.
TOrdCollection * fList
list of mime types
TGMimeTypes(const TGMimeTypes &gmt)
Copy constructor.
~TGMimeTypes() override
Delete mime type pool.
TGClient * fClient
client to which mime types belong (display server)
Bool_t HasChanged() const
void Print(Option_t *option="") const override
Print list of mime types.
const TGPicture * GetIcon(const char *filename, Bool_t small_icon)
Return icon belonging to mime type of filename.
Bool_t GetAction(const char *filename, char *action)
Return in action the mime action string belonging to filename.
Bool_t GetType(const char *filename, char *type)
Return in type the mime type belonging to filename.
TString fFilename
file name of mime type file
TGMime is internally used by TGMimeTypes.
TString fPattern
filename pattern
TRegexp * fReg
pattern regular expression
TString fIcon
associated icon (32x32)
TString fAction
associated action
~TGMime() override
Delete mime object.
TString fSIcon
associated small icon (16x16)
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
TObject()
TObject constructor.
Regular expression class.