Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
lhazfiletree.h
[詳解]
1/*************************************************************************/
6#pragma once
7
8#include "altstr.hpp"
9#include <vector>
10#include "lhazarc.h"
11
12class ARCHIVE;
13class LHAZFILES;
14class LHAZFILE;
15
16namespace {
17
18class LHAZTREEVIEW;
19
20} // namespace gui
21
23public:
24 LHAZFILETREE(void);
25 LHAZFILETREE(const WSTR& name, ARCHIVE* archive, gui::LHAZTREEVIEW* treeview);
26 LHAZFILETREE(const WSTR& name, LHAZFILES* files, gui::LHAZTREEVIEW* treeview, ARCHIVE::TYPE type);
27 LHAZFILETREE(const WSTR& name, gui::LHAZTREEVIEW* treeview, HTREEITEM parent, bool isfile, LHAZFILE* file);
28 ‾LHAZFILETREE(void);
29 //
30 const WSTR& GetName(void) const { return Name; }
31 HTREEITEM GetTreeItem(void) const { return TreeItem; }
32 const std::vector<LHAZFILETREE*>& GetChildren(void) const { return Children; }
33 LHAZFILE* GetFile(void) const { return File; }
34 ARCHIVE* GetArchive(void) const { return Archive; }
35 void Add(gui::LHAZTREEVIEW* treeview, ARCHIVE::TYPE type, const WSTR& name, bool isdir, LHAZFILE* file);
36 void Add(ARCHIVE::TYPE type, const WSTR& name, bool isdir, LHAZFILE* file);
37#ifdef FEATURE_V3
38 void AddGDList(const WSTR& parent, std::vector<LHAZFILE*>& files);
39 void AddGDList(LHAZFILE* file);
40 void AddODList(const WSTR& parent, std::vector<LHAZFILE*>& files);
41#endif
42 HTREEITEM FindTreeItem(const WSTR& dir) const;
43 bool GetDescendantMember(std::vector<LHAZFILE*>& files) const;
44 LONGLONG GetChildSizeTotal(void) const;
45
46private:
47 WSTR Name;
51 HTREEITEM TreeItem;
52 std::vector<LHAZFILETREE*> Children;
54 //
55 void AddSub(gui::LHAZTREEVIEW* treeview, ARCHIVE::TYPE type, const WSTR& name, bool isdir, LHAZFILE* file, WSTR ascendant);
56};
Definition lhazarc.h:25
TYPE
Definition lhazarc.h:28
Definition lhazfiles.h:22
Definition lhazfiletree.h:22
ARCHIVE * GetArchive(void) const
Definition lhazfiletree.h:34
gui::LHAZTREEVIEW * m_treeview
Definition lhazfiletree.h:53
std::vector< LHAZFILETREE * > Children
Definition lhazfiletree.h:52
HTREEITEM TreeItem
Definition lhazfiletree.h:51
WSTR Name
Definition lhazfiletree.h:47
const WSTR & GetName(void) const
Definition lhazfiletree.h:30
HTREEITEM FindTreeItem(const WSTR &dir) const
FindTreeItem
Definition lhazfiletree.cpp:293
LHAZFILES * Files
Definition lhazfiletree.h:50
void AddSub(gui::LHAZTREEVIEW *treeview, ARCHIVE::TYPE type, const WSTR &name, bool isdir, LHAZFILE *file, WSTR ascendant)
AddSub
Definition lhazfiletree.cpp:126
LONGLONG GetChildSizeTotal(void) const
GetChildSizeTotal
Definition lhazfiletree.cpp:279
ARCHIVE * Archive
Definition lhazfiletree.h:49
‾LHAZFILETREE(void)
Destructor
Definition lhazfiletree.cpp:91
const std::vector< LHAZFILETREE * > & GetChildren(void) const
Definition lhazfiletree.h:32
LHAZFILE * File
Definition lhazfiletree.h:48
void Add(gui::LHAZTREEVIEW *treeview, ARCHIVE::TYPE type, const WSTR &name, bool isdir, LHAZFILE *file)
Add
Definition lhazfiletree.cpp:108
bool GetDescendantMember(std::vector< LHAZFILE * > &files) const
AddGDList
Definition lhazfiletree.cpp:264
HTREEITEM GetTreeItem(void) const
Definition lhazfiletree.h:31
LHAZFILE * GetFile(void) const
Definition lhazfiletree.h:33
LHAZFILETREE(void)
Default Constructor
Definition lhazfiletree.cpp:26
Definition lhazfile.h:14
Definition lhaztreeview.h:18
Archive