-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileListView.h
57 lines (52 loc) · 1.56 KB
/
FileListView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef _FILE_LIST_VIEW_H
#define _FILE_LIST_VIEW_H
#include <Application.h>
#include <AppKit.h>
#include <InterfaceKit.h>
#include <Path.h>
bool SetItemSize(BListItem*, void*);
class FileListView : public BListView {
public:
FileListView(BRect);
~FileListView();
virtual void MouseDown(BPoint);
virtual void KeyDown(const char *, int32);
BPath GetPath();
BString GetSelected();
void SetPath(const char*);
virtual void MessageReceived(BMessage*);
private:
static int32 MakeList_Hook(void* obj){
return ((FileListView*)obj)->MakeThatList();
}
static int32 MakeQueryList_Hook(void* obj){
return ((FileListView*)obj)->MakeThatListQuery();
}
static int32 MakeListList_Hook(void* obj){
return ((FileListView*)obj)->MakeThatListList();
}
void MakeList(bool IsQuery = false);
void MakeList(BPath, bool IsQuery = false);
void MakeList(BList *plist);
int32 MakeThatList();
int32 MakeThatListQuery();
int32 MakeThatListList();
status_t AddEntry(BEntry);
void MakeMenu(BMenu*);
void RemoveDirAttr(BString,BPath);
bool IsEntryQueryFile(BEntry);
BString GetQryStr(BEntry);
status_t GetQryVol(BVolume*,BEntry,int32);
status_t MatchArchivedVolume(BVolume*, const BMessage *,int32);
private:
BPath OurPath;
BPath Path;
int OldSelection;
bool filterImg;
bool DoThumb;
thread_id MakeListThread;
bool Tree;
int32 ThumbSize;
BList *pathlist;
};
#endif