#include <TGFSContainer.h>
Inheritance diagram for TGFileItem:

Public Member Functions | |
| TGFileItem (const TGWindow *p=0, const TGPicture *bpic=0, const TGPicture *blpic=0, const TGPicture *spic=0, const TGPicture *slpic=0, TGString *name=0, Int_t type=0, Long64_t size=1, Int_t uid=0, Int_t gid=0, Long_t modtime=0, EListViewMode viewMode=kLVList, UInt_t options=kVerticalFrame, Pixel_t back=GetWhitePixel()) | |
| TGFileItem (const TGWindow *p, const TGPicture *bpic, const TGPicture *blpic, const TGPicture *spic, const TGPicture *slpic, TGString *name, FileStat_t &stat, EListViewMode viewMode=kLVList, UInt_t options=kVerticalFrame, Pixel_t back=GetWhitePixel()) | |
| virtual | ~TGFileItem () |
| virtual void | SetViewMode (EListViewMode viewMode) |
| Bool_t | IsActive () const |
| Bool_t | IsSymLink () const |
| Int_t | GetType () const |
| Long64_t | GetSize () const |
| Long_t | GetModTime () const |
| Int_t | GetUid () const |
| Int_t | GetGid () const |
| virtual TDNDData * | GetDNDdata (Atom_t) |
| virtual Atom_t | HandleDNDEnter (Atom_t *) |
| virtual Bool_t | HandleDNDLeave () |
| virtual Atom_t | HandleDNDPosition (int, int, Atom_t action, int, int) |
| virtual Bool_t | HandleDNDFinished () |
| void | SetDNDData (TDNDData *data) |
| void | SetDNDObject (TObject *obj) |
| TGFileItem (const TGWindow *p=0, const TGPicture *bpic=0, const TGPicture *blpic=0, const TGPicture *spic=0, const TGPicture *slpic=0, TGString *name=0, Int_t type=0, Long64_t size=1, Int_t uid=0, Int_t gid=0, Long_t modtime=0, EListViewMode viewMode=kLVList, UInt_t options=kVerticalFrame, Pixel_t back=GetWhitePixel()) | |
| TGFileItem (const TGWindow *p, const TGPicture *bpic, const TGPicture *blpic, const TGPicture *spic, const TGPicture *slpic, TGString *name, FileStat_t &stat, EListViewMode viewMode=kLVList, UInt_t options=kVerticalFrame, Pixel_t back=GetWhitePixel()) | |
| virtual | ~TGFileItem () |
| virtual void | SetViewMode (EListViewMode viewMode) |
| Bool_t | IsActive () const |
| Bool_t | IsSymLink () const |
| Int_t | GetType () const |
| Long64_t | GetSize () const |
| Long_t | GetModTime () const |
| Int_t | GetUid () const |
| Int_t | GetGid () const |
| virtual TDNDData * | GetDNDdata (Atom_t) |
| virtual Atom_t | HandleDNDEnter (Atom_t *) |
| virtual Bool_t | HandleDNDLeave () |
| virtual Atom_t | HandleDNDPosition (int, int, Atom_t action, int, int) |
| virtual Bool_t | HandleDNDFinished () |
| void | SetDNDData (TDNDData *data) |
| void | SetDNDObject (TObject *obj) |
Protected Member Functions | |
| void | Init (const TGPicture *blpic, const TGPicture *slpic, FileStat_t &stat, EListViewMode viewMode) |
| virtual void | DoRedraw () |
| void | Init (const TGPicture *blpic, const TGPicture *slpic, FileStat_t &stat, EListViewMode viewMode) |
| virtual void | DoRedraw () |
Protected Attributes | |
| const TGPicture * | fBlpic |
| const TGPicture * | fSlpic |
| const TGPicture * | fLcurrent |
| Int_t | fType |
| Int_t | fUid |
| Int_t | fGid |
| Bool_t | fIsLink |
| Long_t | fModTime |
| Long64_t | fSize |
| TBufferFile * | fBuf |
| TDNDData | fDNDData |
| const TGPicture * | fBlpic |
| const TGPicture * | fSlpic |
| const TGPicture * | fLcurrent |
| TBufferFile * | fBuf |
Definition at line 57 of file TGFSContainer.h.
| TGFileItem::TGFileItem | ( | const TGWindow * | p = 0, |
|
| const TGPicture * | bpic = 0, |
|||
| const TGPicture * | blpic = 0, |
|||
| const TGPicture * | spic = 0, |
|||
| const TGPicture * | slpic = 0, |
|||
| TGString * | name = 0, |
|||
| Int_t | type = 0, |
|||
| Long64_t | size = 1, |
|||
| Int_t | uid = 0, |
|||
| Int_t | gid = 0, |
|||
| Long_t | modtime = 0, |
|||
| EListViewMode | viewMode = kLVList, |
|||
| UInt_t | options = kVerticalFrame, |
|||
| Pixel_t | back = GetWhitePixel() | |||
| ) |
| TGFileItem::TGFileItem | ( | const TGWindow * | p, | |
| const TGPicture * | bpic, | |||
| const TGPicture * | blpic, | |||
| const TGPicture * | spic, | |||
| const TGPicture * | slpic, | |||
| TGString * | name, | |||
| FileStat_t & | stat, | |||
| EListViewMode | viewMode = kLVList, |
|||
| UInt_t | options = kVerticalFrame, |
|||
| Pixel_t | back = GetWhitePixel() | |||
| ) |
| TGFileItem::~TGFileItem | ( | ) | [virtual] |
| TGFileItem::TGFileItem | ( | const TGWindow * | p = 0, |
|
| const TGPicture * | bpic = 0, |
|||
| const TGPicture * | blpic = 0, |
|||
| const TGPicture * | spic = 0, |
|||
| const TGPicture * | slpic = 0, |
|||
| TGString * | name = 0, |
|||
| Int_t | type = 0, |
|||
| Long64_t | size = 1, |
|||
| Int_t | uid = 0, |
|||
| Int_t | gid = 0, |
|||
| Long_t | modtime = 0, |
|||
| EListViewMode | viewMode = kLVList, |
|||
| UInt_t | options = kVerticalFrame, |
|||
| Pixel_t | back = GetWhitePixel() | |||
| ) |
| TGFileItem::TGFileItem | ( | const TGWindow * | p, | |
| const TGPicture * | bpic, | |||
| const TGPicture * | blpic, | |||
| const TGPicture * | spic, | |||
| const TGPicture * | slpic, | |||
| TGString * | name, | |||
| FileStat_t & | stat, | |||
| EListViewMode | viewMode = kLVList, |
|||
| UInt_t | options = kVerticalFrame, |
|||
| Pixel_t | back = GetWhitePixel() | |||
| ) |
| virtual TGFileItem::~TGFileItem | ( | ) | [virtual] |
| void TGFileItem::Init | ( | const TGPicture * | blpic, | |
| const TGPicture * | slpic, | |||
| FileStat_t & | stat, | |||
| EListViewMode | viewMode | |||
| ) | [protected] |
Definition at line 277 of file TGFSContainer.cxx.
References bsize, fBlpic, fBuf, TGLVEntry::fCtw, TDNDData::fData, TDNDData::fDataLength, TDNDData::fDataType, fDNDData, TGLVEntry::fFontStruct, fGid, UserGroup_t::fGroup, fIsLink, fLcurrent, fModTime, TString::Format(), fSize, fSlpic, TGLVEntry::fSubnames, fType, fUid, UserGroup_t::fUser, TGLVEntry::fViewMode, TGString::GetLength(), TGString::GetString(), TSystem::GetUserInfo(), gSystem, gVirtualX, i, kS_IRGRP, kS_IROTH, kS_IRUSR, kS_ISGID, kS_ISUID, kS_ISVTX, kS_IWGRP, kS_IWOTH, kS_IWUSR, kS_IXGRP, kS_IXOTH, kS_IXUSR, Long64_t, R_ISBLK(), R_ISCHR(), R_ISDIR(), R_ISFIFO(), R_ISREG(), R_ISSOCK(), SetViewMode(), TGWindow::SetWindowName(), snprintf, and stat.
| void TGFileItem::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGLVEntry.
Definition at line 407 of file TGFSContainer.cxx.
References TGLVEntry::DoRedraw(), TGPicture::Draw(), TGFrame::fHeight, TGObject::fId, fLcurrent, TGLVEntry::fNormGC, TGLVEntry::fViewMode, TGFrame::fWidth, TGPicture::GetHeight(), TGPicture::GetWidth(), and kLVLargeIcons.
| void TGFileItem::SetViewMode | ( | EListViewMode | viewMode | ) | [virtual] |
Reimplemented from TGLVEntry.
Definition at line 392 of file TGFSContainer.cxx.
References fBlpic, TGObject::fClient, fLcurrent, fSlpic, kLVLargeIcons, TGClient::NeedRedraw(), and TGLVEntry::SetViewMode().
Referenced by Init().
| Bool_t TGFileItem::IsActive | ( | ) | const [inline, virtual] |
Reimplemented from TGLVEntry.
Definition at line 95 of file TGFSContainer.h.
References TGLVEntry::fActive.
| Bool_t TGFileItem::IsSymLink | ( | ) | const [inline] |
| Int_t TGFileItem::GetType | ( | ) | const [inline] |
Definition at line 97 of file TGFSContainer.h.
References fType.
Referenced by TGFSFrameElement::Compare().
| Long64_t TGFileItem::GetSize | ( | ) | const [inline] |
Reimplemented from TGFrame.
Definition at line 98 of file TGFSContainer.h.
References fSize.
Referenced by TGFSFrameElement::Compare().
| Long_t TGFileItem::GetModTime | ( | ) | const [inline] |
Definition at line 99 of file TGFSContainer.h.
References fModTime.
Referenced by TGFSFrameElement::Compare().
| Int_t TGFileItem::GetUid | ( | ) | const [inline] |
Definition at line 100 of file TGFSContainer.h.
References fUid.
Referenced by TGFSFrameElement::Compare().
| Int_t TGFileItem::GetGid | ( | ) | const [inline] |
Definition at line 101 of file TGFSContainer.h.
References fGid.
Referenced by TGFSFrameElement::Compare().
Reimplemented from TGFrame.
Definition at line 107 of file TGFSContainer.h.
References gVirtualX, TGFrame::IsDNDTarget(), kFALSE, and kNone.
| virtual Bool_t TGFileItem::HandleDNDLeave | ( | ) | [inline, virtual] |
| virtual Atom_t TGFileItem::HandleDNDPosition | ( | int | , | |
| int | , | |||
| Atom_t | action, | |||
| int | , | |||
| int | ||||
| ) | [inline, virtual] |
Reimplemented from TGFrame.
Definition at line 116 of file TGFSContainer.h.
References TGDNDManager::GetDNDActionCopy(), and kNone.
| virtual Bool_t TGFileItem::HandleDNDFinished | ( | ) | [inline, virtual] |
Reimplemented from TGFrame.
Definition at line 121 of file TGFSContainer.h.
References TGWindow::GetParent().
| void TGFileItem::SetDNDData | ( | TDNDData * | data | ) | [inline] |
Definition at line 125 of file TGFSContainer.h.
References calloc(), data, TDNDData::fData, TDNDData::fDataLength, TDNDData::fDataType, fDNDData, and free().
Referenced by TRootIconBox::AddObjItem().
| void TGFileItem::SetDNDObject | ( | TObject * | obj | ) | [inline] |
Definition at line 134 of file TGFSContainer.h.
References TBuffer::Buffer(), fBuf, TDNDData::fData, TDNDData::fDataLength, TDNDData::fDataType, fDNDData, free(), gVirtualX, kFALSE, TBuffer::Length(), and TBufferFile::WriteObject().
| void TGFileItem::Init | ( | const TGPicture * | blpic, | |
| const TGPicture * | slpic, | |||
| FileStat_t & | stat, | |||
| EListViewMode | viewMode | |||
| ) | [protected] |
| virtual void TGFileItem::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGLVEntry.
| virtual void TGFileItem::SetViewMode | ( | EListViewMode | viewMode | ) | [virtual] |
Reimplemented from TGLVEntry.
| Bool_t TGFileItem::IsActive | ( | ) | const [inline, virtual] |
Reimplemented from TGLVEntry.
Definition at line 95 of file TGFSContainer.h.
References TGLVEntry::fActive.
| Bool_t TGFileItem::IsSymLink | ( | ) | const [inline] |
| Int_t TGFileItem::GetType | ( | ) | const [inline] |
| Long64_t TGFileItem::GetSize | ( | ) | const [inline] |
| Long_t TGFileItem::GetModTime | ( | ) | const [inline] |
| Int_t TGFileItem::GetUid | ( | ) | const [inline] |
| Int_t TGFileItem::GetGid | ( | ) | const [inline] |
Reimplemented from TGFrame.
Definition at line 107 of file TGFSContainer.h.
References gVirtualX, TGFrame::IsDNDTarget(), kFALSE, and kNone.
| virtual Bool_t TGFileItem::HandleDNDLeave | ( | ) | [inline, virtual] |
| virtual Atom_t TGFileItem::HandleDNDPosition | ( | int | , | |
| int | , | |||
| Atom_t | action, | |||
| int | , | |||
| int | ||||
| ) | [inline, virtual] |
Reimplemented from TGFrame.
Definition at line 116 of file TGFSContainer.h.
References TGDNDManager::GetDNDActionCopy(), and kNone.
| virtual Bool_t TGFileItem::HandleDNDFinished | ( | ) | [inline, virtual] |
Reimplemented from TGFrame.
Definition at line 121 of file TGFSContainer.h.
References TGWindow::GetParent().
| void TGFileItem::SetDNDData | ( | TDNDData * | data | ) | [inline] |
Definition at line 125 of file TGFSContainer.h.
References calloc(), data, TDNDData::fData, TDNDData::fDataLength, TDNDData::fDataType, fDNDData, and free().
| void TGFileItem::SetDNDObject | ( | TObject * | obj | ) | [inline] |
Definition at line 134 of file TGFSContainer.h.
References TBuffer::Buffer(), fBuf, TDNDData::fData, TDNDData::fDataLength, TDNDData::fDataType, fDNDData, free(), gVirtualX, kFALSE, TBuffer::Length(), and TBufferFile::WriteObject().
const TGPicture* TGFileItem::fBlpic [protected] |
const TGPicture* TGFileItem::fSlpic [protected] |
const TGPicture* TGFileItem::fLcurrent [protected] |
Int_t TGFileItem::fType [protected] |
Int_t TGFileItem::fUid [protected] |
Int_t TGFileItem::fGid [protected] |
Bool_t TGFileItem::fIsLink [protected] |
Long_t TGFileItem::fModTime [protected] |
Long64_t TGFileItem::fSize [protected] |
TBufferFile* TGFileItem::fBuf [protected] |
Definition at line 68 of file TGFSContainer.h.
Referenced by TRootObjItem::GetDNDData(), Init(), SetDNDObject(), and ~TGFileItem().
TDNDData TGFileItem::fDNDData [protected] |
Definition at line 69 of file TGFSContainer.h.
Referenced by GetDNDdata(), Init(), SetDNDData(), and SetDNDObject().
const TGPicture* TGFileItem::fBlpic [protected] |
Definition at line 60 of file TGFSContainer.h.
const TGPicture* TGFileItem::fSlpic [protected] |
Definition at line 61 of file TGFSContainer.h.
const TGPicture* TGFileItem::fLcurrent [protected] |
Definition at line 62 of file TGFSContainer.h.
TBufferFile* TGFileItem::fBuf [protected] |
Definition at line 68 of file TGFSContainer.h.
1.5.1