-
Notifications
You must be signed in to change notification settings - Fork 0
/
FileView.h
52 lines (45 loc) · 1.4 KB
/
FileView.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
#ifndef _FILE_VIEW_H
#define _FILE_VIEW_H
#include <Application.h>
#include <AppKit.h>
#include <InterfaceKit.h>
#include <Path.h>
#include "ListViewer.h"
//bool SetItemSize(BListItem*, void*);
class FileView : public CColumnListView{
public:
FileView(BRect,uint32 mode);
~FileView();
//virtual void MouseDown(BPoint);
//virtual void KeyDown(const char *, int32);
BPath GetPath();
BString GetSelected();
void SetPath(const char*);
virtual void MessageReceived(BMessage*);
private:
status_t AddEntry(BEntry);
/* 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();
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:
};
#endif