#ifndef _DIRTREE_H_
#define _DIRTREE_H_
#endif
/*
struct stat
{
dev_t st_dev;
ino_t st_ino;
umode_t st_mode;
nlink_t st_nlink;
uid_t st_uid;
gid_t st_gid;
dev_t st_rdev;
off_t st_size;
unsigned long st_blksize;
unsigned long st_blocks;
time_t st_atime;
time_t st_mtime;
time_t st_ctime;
};
*/
class Folder;
class File;
class Rect
{
public:
int x;
int y;
int xc;
int yc;
};
class Selectable
{
public:
bool highlighted;
Rect position;
Window win;
GC tgc;
int Draw();
int DrawIcon(int[16][16]);
// stat sbp;
};
class TreeContol: public Selectable
{
public:
};
class Folder: public Selectable
{
public:
dirent *dp;
char fullpath[512];
Folder* parent;
Selectable parenttree;
Folder *Siblings;
int nSiblings;
bool isExpanded;
int Expand(int,int);
int Open();
int Close();
int ReadDir();
int Draw(int,int);
int ShellExecute();
struct stat fstat;
};