Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
lhaztabcontent.h
[詳解]
1/*************************************************************************/
6#pragma once
7
8#include <vector>
9#include <windows.h>
10#include <CommCtrl.h>
11#include "mystr.h"
12#include "lhazarc.h"
13#include "gui/lhazcol.h"
14#include "lhazlist.h"
15#include "lhazfile.h"
16
17class ARCHIVE;
18class ARCHIVES;
19class LHAZFILES;
20class LHAZSTS;
21class MYPANEL;
22class MYONEDRIVE;
23class PATH;
24
25namespace gui {
26
27class LHAZLISTVIEW;
28class LHAZTREEVIEW;
29
30} // namespace gui
31
33public:
35 //
36 LHAZTABCONTENT(void);
38 HINSTANCE hins,
39 HWND parent,
40 DWORD dwStyle,
41 int lv_id,
42 bool edge,
43 int page,
44 HIMAGELIST himage,
45 const MYSTR& label,
46 TYPE type,
47 int lvx,
48 int panel_id,
49 int panel_x,
50 HWND panel_mes_hwnd,
51 int panel_mes,
52 int tree_id,
53 bool showtreeview,
54 std::vector<WSTR>& filters,
55 LHAZSTS* stsbar
56 );
57 virtual ‾LHAZTABCONTENT(void);
58 //
59 virtual void ChangeColumn(void);
60 virtual void CloseArchive(HTREEITEM hitem);
61 virtual void Compress(std::vector<LHAZPROCFILE>& compfiles, const MYSTR& curdir);
62 virtual void DispStsBar(void);
63 virtual const MYSTR& GetLabel(void) const { return m_label; }
64 virtual MYONEDRIVE* GetOneDrive(void) const;
65 virtual void OutputList(const MYSTR& file, LHAZLIST::FORMAT format, bool csv, bool count, const MYSTR& countfile);
66 virtual void SetColumn(HMENU menu, int sortkind, int sortrev);
67 virtual void SortByMenu(WPARAM wParam);
68 virtual void SortRev(void);
69 virtual bool UploadFiles(const std::vector<WSTR>& files);
70 //
71 virtual void OnCompress(void);
72 virtual void OnDropFiles(const std::vector<WSTR>& files, const PATH& tempname);
73 virtual void OnEnter(const PATH& tempdir);
74 virtual int OnNotify(HWND hWnd, WPARAM wParam, LPARAM lParam, const MYSTR& destdir, const MYSTR& tempdir);
75 virtual void OnRefresh(void);
76 virtual void OnSelChange(void);
77 //
78 ARCHIVES* GetArchive(void) const { return m_archive; }
79 const MYSTR& GetFixLabel(void) const { return m_label; }
80 gui::LHAZLISTVIEW* GetListView(void) const { return m_listview; }
81 gui::LVCOLMS* GetLvcolms(void) const { return m_lvcolms; }
82 gui::LHAZTREEVIEW* GetTreeView(void) const { return m_treeview; }
83 TYPE GetType(void) const { return m_type; }
84 void SetLabel(const MYSTR& label) { m_label = label; }
85 //
86 void ClearArchive(void);
87 ARCHIVE* GetActiveArchive(void) const;
88 void Hide(void) const;
89 void MoveWindow(const RECT& rect, BOOL bRepaint) const;
90 void SetSizeText(int kb_b);
91 void Show(void) const;
92 void ShowTreeView(bool show, const RECT& rect);
93 //
94 void OnMovePane(void);
95 void OnPanelSize(HWND tab, WPARAM wParam, LPARAM lParam);
96 void OnUp(void);
97
98protected:
100 MYSTR m_label;
103 MYPANEL* m_panel;
111 //
112 virtual void OnBeginDrag(LPARAM lParam);
113
114private:
115 static gui::LVCOLM Columns[];
116 //
119 std::vector<WSTR> m_filters;
121 //
122 virtual void Filter(void);
123 //
124 void OnColumnClick(LPARAM lParam);
125 void OnDoubleClick(HWND hwnd, LPARAM lParam);
126 void OnGetDispInfo(LPARAM lParam);
127 void OnIncrementalSearch(LPARAM lParam);
128 void OnItemChanged(LPARAM lParam);
129 void OnRightClick(HWND hwnd);
130 //
131 bool CompressAdd(const MYSTR& arcname, std::vector<LHAZPROCFILE>& files, ARCHIVE::TYPE type);
132 bool CompressNew(std::vector<LHAZPROCFILE>& files, const MYSTR& curdir);
133 HDROP APIPRIVATE CreateDropFileMem(TCHAR** FileName, int cnt);
134 bool OpenArchive(const MYSTR& name, bool add_or_new, bool rechis);
135 bool OpenArchiveSub(const MYSTR& name, ARCHIVE::TYPE type, bool rechis);
136 void Sort(void);
137
138};
Definition lhazarcs.h:11
Definition lhazarc.h:25
TYPE
Definition lhazarc.h:28
Definition lhazfiles.h:22
FIELD
Definition lhazfile.h:16
FORMAT
Definition lhazlist.h:22
Definition lhazsts.h:12
Definition lhaztabcontent.h:32
gui::LHAZLISTVIEW * m_listview
Definition lhaztabcontent.h:101
int m_filter
Definition lhaztabcontent.h:118
virtual void OutputList(const MYSTR &file, LHAZLIST::FORMAT format, bool csv, bool count, const MYSTR &countfile)
書庫内容出力
Definition lhaztabcontent.cpp:1052
gui::LVCOLMS * m_lvcolms
Definition lhaztabcontent.h:102
bool CompressAdd(const MYSTR &arcname, std::vector< LHAZPROCFILE > &files, ARCHIVE::TYPE type)
CompressAdd
Definition lhaztabcontent.cpp:222
void OnGetDispInfo(LPARAM lParam)
OnGetDispInfo
Definition lhaztabcontent.cpp:747
void OnRightClick(HWND hwnd)
OnRightClick
Definition lhaztabcontent.cpp:912
virtual const MYSTR & GetLabel(void) const
Definition lhaztabcontent.h:63
void Sort(void)
Sort
Definition lhaztabcontent.cpp:1121
virtual void Filter(void)
Filter
Definition lhaztabcontent.cpp:335
ARCHIVE * GetActiveArchive(void) const
GetActiveArchive
Definition lhaztabcontent.cpp:354
void OnMovePane(void)
OnMovePane
Definition lhaztabcontent.cpp:814
virtual void OnDropFiles(const std::vector< WSTR > &files, const PATH &tempname)
OnDropFiles
Definition lhaztabcontent.cpp:606
LHAZFILE::FIELD m_sortfield
Definition lhaztabcontent.h:105
virtual bool UploadFiles(const std::vector< WSTR > &files)
UploadFiles
Definition lhaztabcontent.cpp:1155
const MYSTR & GetFixLabel(void) const
Definition lhaztabcontent.h:79
virtual void SetColumn(HMENU menu, int sortkind, int sortrev)
SetColumn
Definition lhaztabcontent.cpp:1065
int m_sortkind
Definition lhaztabcontent.h:106
virtual void CloseArchive(HTREEITEM hitem)
CloseArchive
Definition lhaztabcontent.cpp:188
virtual void ChangeColumn(void)
ChangeColumn
Definition lhaztabcontent.cpp:161
virtual void Compress(std::vector< LHAZPROCFILE > &compfiles, const MYSTR &curdir)
Compress
Definition lhaztabcontent.cpp:209
void Show(void) const
Show
Definition lhaztabcontent.cpp:1094
void SetLabel(const MYSTR &label)
Definition lhaztabcontent.h:84
int m_viewkb
Definition lhaztabcontent.h:110
void OnItemChanged(LPARAM lParam)
OnItemChanged
Definition lhaztabcontent.cpp:796
bool m_sortrev
Definition lhaztabcontent.h:107
virtual void DispStsBar(void)
DispStsBar
Definition lhaztabcontent.cpp:302
void OnPanelSize(HWND tab, WPARAM wParam, LPARAM lParam)
OnPanelSize
Definition lhaztabcontent.cpp:884
virtual void OnCompress(void)
OnCompress
Definition lhaztabcontent.cpp:515
void MoveWindow(const RECT &rect, BOOL bRepaint) const
MoveWindow
Definition lhaztabcontent.cpp:399
MYPANEL * m_panel
Definition lhaztabcontent.h:103
TYPE
Definition lhaztabcontent.h:34
@ TYPE_AD
Definition lhaztabcontent.h:34
@ TYPE_GD
Definition lhaztabcontent.h:34
@ TYPE_MAX
Definition lhaztabcontent.h:34
@ TYPE_OD
Definition lhaztabcontent.h:34
@ TYPE_DB
Definition lhaztabcontent.h:34
@ TYPE_ARCHIVE
Definition lhaztabcontent.h:34
TYPE GetType(void) const
Definition lhaztabcontent.h:83
virtual void OnBeginDrag(LPARAM lParam)
OnBeginDrag
Definition lhaztabcontent.cpp:418
bool CompressNew(std::vector< LHAZPROCFILE > &files, const MYSTR &curdir)
CompressNew
Definition lhaztabcontent.cpp:251
TYPE m_type
Definition lhaztabcontent.h:120
virtual void OnEnter(const PATH &tempdir)
OnEnter
Definition lhaztabcontent.cpp:715
virtual void OnSelChange(void)
OnSelChange
Definition lhaztabcontent.cpp:929
void OnUp(void)
OnUp
Definition lhaztabcontent.cpp:937
LHAZFILES * m_files
Definition lhaztabcontent.h:99
void Hide(void) const
Hide
Definition lhaztabcontent.cpp:389
static gui::LVCOLM Columns[]
Definition lhaztabcontent.h:32
void SetSizeText(int kb_b)
SetSizeText
Definition lhaztabcontent.cpp:1084
virtual int OnNotify(HWND hWnd, WPARAM wParam, LPARAM lParam, const MYSTR &destdir, const MYSTR &tempdir)
OnNotify
Definition lhaztabcontent.cpp:830
gui::LHAZTREEVIEW * m_treeview
Definition lhaztabcontent.h:109
virtual void OnRefresh(void)
OnRefresh
Definition lhaztabcontent.cpp:904
void ShowTreeView(bool show, const RECT &rect)
ShowTreeView
Definition lhaztabcontent.cpp:1104
HDROP APIPRIVATE CreateDropFileMem(TCHAR **FileName, int cnt)
CreateDropFileMem
Definition lhaztabcontent.cpp:270
bool OpenArchiveSub(const MYSTR &name, ARCHIVE::TYPE type, bool rechis)
OpenArchiveSub
Definition lhaztabcontent.cpp:989
virtual MYONEDRIVE * GetOneDrive(void) const
GetOneDrive
Definition lhaztabcontent.cpp:381
MYSTR m_label
Definition lhaztabcontent.h:100
std::vector< WSTR > m_filters
Definition lhaztabcontent.h:119
gui::LHAZLISTVIEW * GetListView(void) const
Definition lhaztabcontent.h:80
virtual ‾LHAZTABCONTENT(void)
Destructor
Definition lhaztabcontent.cpp:152
gui::LHAZTREEVIEW * GetTreeView(void) const
Definition lhaztabcontent.h:82
gui::LVCOLMS * GetLvcolms(void) const
Definition lhaztabcontent.h:81
LHAZTABCONTENT(void)
Default Constructor
Definition lhaztabcontent.cpp:47
void OnColumnClick(LPARAM lParam)
OnColumnClick
Definition lhaztabcontent.cpp:500
void ClearArchive(void)
ClearArchive
Definition lhaztabcontent.cpp:179
void OnDoubleClick(HWND hwnd, LPARAM lParam)
OnDoubleClick
Definition lhaztabcontent.cpp:595
LHAZSTS * m_statusbar
Definition lhaztabcontent.h:108
ARCHIVES * GetArchive(void) const
Definition lhaztabcontent.h:78
LHAZTABCONTENT(HINSTANCE hins, HWND parent, DWORD dwStyle, int lv_id, bool edge, int page, HIMAGELIST himage, const MYSTR &label, TYPE type, int lvx, int panel_id, int panel_x, HWND panel_mes_hwnd, int panel_mes, int tree_id, bool showtreeview, std::vector< WSTR > &filters, LHAZSTS *stsbar)
virtual void SortRev(void)
SortRev
Definition lhaztabcontent.cpp:1146
bool OpenArchive(const MYSTR &name, bool add_or_new, bool rechis)
OpenArchive
Definition lhaztabcontent.cpp:956
void OnIncrementalSearch(LPARAM lParam)
OnIncrementalSearch
Definition lhaztabcontent.cpp:765
virtual void SortByMenu(WPARAM wParam)
SortByMenu
Definition lhaztabcontent.cpp:1135
bool m_showtreeview
Definition lhaztabcontent.h:104
ARCHIVES * m_archive
Definition lhaztabcontent.h:117
Definition lhazlistview.h:14
Definition lhaztreeview.h:18
Definition lhazcol.h:35
リストビューで用いるカラム.
Definition lhazcol.h:23
Archive
Listview column header
Output file list in archive
Definition lhazbz2.h:17