Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXFileItem Class Reference

#include <FXFileList.h>

Inheritance diagram for FX::FXFileItem:
FX::FXIconItem FX::FXObject

Public Member Functions

 FXFileItem (const FXString &text, FXIcon *bi=NULL, FXIcon *mi=NULL, void *ptr=NULL)
 
FXbool isFile () const
 
FXbool isDirectory () const
 
FXbool isShare () const
 
FXbool isExecutable () const
 
FXbool isSymlink () const
 
FXbool isChardev () const
 
FXbool isBlockdev () const
 
FXbool isFifo () const
 
FXbool isSocket () const
 
FXFileAssocgetAssoc () const
 
FXlong getSize () const
 
FXTime getDate () const
 
- Public Member Functions inherited from FX::FXIconItem
 FXIconItem (const FXString &text, FXIcon *bi=NULL, FXIcon *mi=NULL, void *ptr=NULL)
 
virtual void setText (const FXString &txt)
 
const FXStringgetText () const
 
virtual void setBigIcon (FXIcon *icn, FXbool owned=FALSE)
 
FXIcongetBigIcon () const
 
virtual void setMiniIcon (FXIcon *icn, FXbool owned=FALSE)
 
FXIcongetMiniIcon () const
 
void setData (void *ptr)
 
void * getData () const
 
virtual void setFocus (FXbool focus)
 
FXbool hasFocus () const
 
virtual void setSelected (FXbool selected)
 
FXbool isSelected () const
 
virtual void setEnabled (FXbool enabled)
 
FXbool isEnabled () const
 
virtual void setDraggable (FXbool draggable)
 
FXbool isDraggable () const
 
virtual FXint getWidth (const FXIconList *list) const
 
virtual FXint getHeight (const FXIconList *list) const
 
virtual void create ()
 
virtual void detach ()
 
virtual void destroy ()
 
virtual void save (FXStream &store) const
 
virtual void load (FXStream &store)
 
virtual ~FXIconItem ()
 
- Public Member Functions inherited from FX::FXObject
virtual long onDefault (FXObject *, FXSelector, void *)
 
const FXchargetClassName () const
 
bool isMemberOf (const FXMetaClass *metaclass) const
 
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
 
virtual ~FXObject ()
 

Friends

class FXFileList
 

Additional Inherited Members

- Public Types inherited from FX::FXIconItem
enum  {
  SELECTED = 1,
  FOCUS = 2,
  DISABLED = 4,
  DRAGGABLE = 8,
  BIGICONOWNED = 16,
  MINIICONOWNED = 32
}
 

Detailed Description

File item.

See also:

Constructor & Destructor Documentation

FX::FXFileItem::FXFileItem ( const FXString text,
FXIcon bi = NULL,
FXIcon mi = NULL,
void *  ptr = NULL 
)
inline

Constructor.

Member Function Documentation

FXbool FX::FXFileItem::isFile ( ) const
inline

Return true if this is a file item.

FXbool FX::FXFileItem::isDirectory ( ) const
inline

Return true if this is a directory item.

FXbool FX::FXFileItem::isShare ( ) const
inline

Return true if this is a share item.

FXbool FX::FXFileItem::isExecutable ( ) const
inline

Return true if this is an executable item.

FXbool FX::FXFileItem::isSymlink ( ) const
inline

Return true if this is a symbolic link item.

FXbool FX::FXFileItem::isChardev ( ) const
inline

Return true if this is a character device item.

FXbool FX::FXFileItem::isBlockdev ( ) const
inline

Return true if this is a block device item.

FXbool FX::FXFileItem::isFifo ( ) const
inline

Return true if this is an FIFO item.

FXbool FX::FXFileItem::isSocket ( ) const
inline

Return true if this is a socket.

FXFileAssoc* FX::FXFileItem::getAssoc ( ) const
inline

Return the file-association object for this item.

FXlong FX::FXFileItem::getSize ( ) const
inline

Return the file size for this item.

FXTime FX::FXFileItem::getDate ( ) const
inline

Return the date for this item.

Friends And Related Function Documentation

friend class FXFileList
friend

Copyright © 1997-2005 Jeroen van der Zijp