Lhaz
lhaztabcontent_gd.h
[詳解]
1 /*************************************************************************/
6 #pragma once
7 
8 #include <vector>
9 #include <windows.h>
10 #include "lhaztabcontent.h"
11 #include "gui/lhazcol.h"
12 #include "lhazfile.h"
13 #include "mystr.h"
14 
15 class LHAZFILE_GD;
16 class LHAZFILES_GD;
17 class MYGOOGLEDRIVE;
18 class MYTHREAD;
19 class PATH;
20 
22 public:
23  LHAZTABCONTENT_GD(void);
25  HINSTANCE hins,
26  HWND parent,
27  DWORD dwStyle,
28  int lv_id,
29  bool edge,
30  int page,
31  HIMAGELIST himage,
32  const MYSTR& label,
33  TYPE type,
34  int lvx,
35  int panel_id,
36  int panel_x,
37  HWND panel_mes_hwnd,
38  int panel_mes,
39  int tree_id,
40  bool showtreeview,
41  std::vector<WSTR>& filters,
42  LHAZSTS* stsbar
43  );
45  //
46  void CloseArchive(HTREEITEM hitem);
47  void Compress(std::vector<LHAZPROCFILE>& compfiles, const MYSTR& curdir);
48  void DispStsBar(void);
49  MYGOOGLEDRIVE* GetGoogleDrive(void) const { return m_googledrive; }
50  const MYSTR& GetLabel(void) const;
51  void OnCompress(void);
52  void OnDropFiles(const std::vector<WSTR>& files, const PATH& tempname);
53  bool OnDownload(const MYSTR& destdir, bool decryption, bool opendest);
54  void OnEnter(const PATH& tempdir);
55  int OnNotify(HWND hWnd, WPARAM wParam, LPARAM lParam, const MYSTR& destdir, const MYSTR& tempdir);
56  void OnRefresh(void);
57  void OnSelChange(void);
58  void OutputList(const MYSTR& file, LHAZLIST::FORMAT format, bool csv, bool count, const MYSTR& countfile);
59  void SetColumn(HMENU menu, int sortkind, int sortrev);
60  void SortByMenu(WPARAM wParam);
61  void SortRev(void);
62  bool UploadFiles(const vector<WSTR>& files);
63 
64 private:
65  struct WATCHFILE {
66  MYSTR m_name;
67  FILETIME m_lastwritetime;
69  };
70  struct WATCHIF {
71  HANDLE m_handle;
72  std::vector<WATCHFILE> m_files;
73  };
74  //
75  static gui::LVCOLM Columns[];
76  //
77  bool m_logined;
78  CRITICAL_SECTION m_crisec;
79  MYGOOGLEDRIVE* m_googledrive;
80  MYTHREAD* m_thread;
81  LONGLONG m_total;
83  //
84  static void DownloadCB(ULONGLONG sent, void* param);
85  static void UploadCB(ULONGLONG sent, void* param);
86  static DWORD WINAPI WatchThread(LPVOID);
87  //
88  void OnCopyURL(void);
89  void OnCreateFolder(void);
90  void OnEndLabelEdit(LPARAM lParam);
91  void OnEnter(int idx, const MYSTR& tempdir);
92  void OnEnterArchive(LHAZFILE_GD* file, const MYSTR& tempdir);
93  void OnExtMydoc(int idx, const MYSTR& tempdir);
94  void OnExtHistory(int idx, UINT ret, const MYSTR& tempdir);
95  void OnExtRegistered(int idx, UINT ret, const MYSTR& tempdir);
96  void OnIncrementalSearch(LPARAM lParam);
97  void OnItemChanged(LPARAM lParam);
98  void OnListview(WPARAM wParam, LPARAM lParam, const MYSTR& destdir, const MYSTR& tempdir);
99  void OnSelDirExtract(int idx, const MYSTR& tempdir);
100  void OnTrash(void);
101  //
102  void Extract(int idx, const MYSTR& tempdir, const MYSTR& destdir);
103  void Filter(void);
104  bool Login(void);
105  MYSTR MakeTempDir(const MYSTR& dir);
106  void PopupMenu(void);
107  void PopupMenuOnFile(int idx, const MYSTR& destdir, const MYSTR& tempdir);
108  void Sort(int column);
109  void StartWatching(const MYSTR& name, LHAZFILE_GD* file);
110 
111 };
XZ Utils and lzmadec command line tools are in the public domain unless GNU getopt_long had to be compiled and linked in from the lib directory The getopt_long code is under GNU LGPLv2 The scripts to and view compressed files have been adapted from gzip These scripts and their documentation are under GNU GPLv2 All the documentation in the doc directory and most of the XZ Utils specific documentation files in other directories are in the public domain Translated messages are in the public domain The build system contains public domain files
Definition: COPYING.txt:3
void DispStsBar(void)
DispStsBar.
Definition: lhaztabcontent_gd.cpp:136
void OnCreateFolder(void)
OnCreateFolder.
Definition: lhaztabcontent_gd.cpp:281
MYGOOGLEDRIVE * GetGoogleDrive(void) const
Definition: lhaztabcontent_gd.h:49
TYPE
Definition: lhaztabcontent.h:34
void OnExtRegistered(int idx, UINT ret, const MYSTR &tempdir)
OnExtRegistered.
Definition: lhaztabcontent_gd.cpp:531
void OnCopyURL(void)
OnCopyURL.
Definition: lhaztabcontent_gd.cpp:262
void OnEndLabelEdit(LPARAM lParam)
OnEndLabelEdit.
Definition: lhaztabcontent_gd.cpp:384
void Compress(std::vector< LHAZPROCFILE > &compfiles, const MYSTR &curdir)
Compress.
Definition: lhaztabcontent_gd.cpp:129
CRITICAL_SECTION m_crisec
Definition: lhaztabcontent_gd.h:78
then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file
Definition: LICENSE.txt:110
void OnTrash(void)
OnTrash.
Definition: lhaztabcontent_gd.cpp:736
FILETIME m_lastwritetime
Definition: lhaztabcontent_gd.h:67
void OnCompress(void)
OnCompress.
Definition: lhaztabcontent_gd.cpp:255
static gui::LVCOLM Columns[]
Definition: lhaztabcontent_gd.h:75
void StartWatching(const MYSTR &name, LHAZFILE_GD *file)
ファイル更新監視開始
Definition: lhaztabcontent_gd.cpp:1067
void OutputList(const MYSTR &file, LHAZLIST::FORMAT format, bool csv, bool count, const MYSTR &countfile)
書庫内容出力
Definition: lhaztabcontent_gd.cpp:763
void PopupMenuOnFile(int idx, const MYSTR &destdir, const MYSTR &tempdir)
PopupMenuOnFile.
Definition: lhaztabcontent_gd.cpp:816
std::vector< WATCHFILE > m_files
Definition: lhaztabcontent_gd.h:72
void OnExtHistory(int idx, UINT ret, const MYSTR &tempdir)
OnExtHistory.
Definition: lhaztabcontent_gd.cpp:503
void SortRev(void)
SortRev.
Definition: lhaztabcontent_gd.cpp:1052
bool Login(void)
Login.
Definition: lhaztabcontent_gd.cpp:196
static void UploadCB(ULONGLONG sent, void *param)
UploadCB.
Definition: lhaztabcontent_gd.cpp:1106
void SetColumn(HMENU menu, int sortkind, int sortrev)
SetColumn.
Definition: lhaztabcontent_gd.cpp:1009
Definition: lhaztabcontent_gd.h:70
Definition: lhazfile_gd.h:17
‾LHAZTABCONTENT_GD(void)
Destructor.
Definition: lhaztabcontent_gd.cpp:111
WATCHIF * m_wif
Definition: lhaztabcontent_gd.h:82
Listview column header.
void OnListview(WPARAM wParam, LPARAM lParam, const MYSTR &destdir, const MYSTR &tempdir)
OnListview.
Definition: lhaztabcontent_gd.cpp:594
static DWORD WINAPI WatchThread(LPVOID)
更新監視スレッド
Definition: lhaztabcontent_gd.cpp:1142
const MYSTR & GetLabel(void) const
GetLabel.
Definition: lhaztabcontent_gd.cpp:230
void OnDropFiles(const std::vector< WSTR > &files, const PATH &tempname)
OnDropFiles.
Definition: lhaztabcontent_gd.cpp:359
Definition: lhaztabcontent_gd.h:21
void OnEnterArchive(LHAZFILE_GD *file, const MYSTR &tempdir)
OnEnterArchive.
Definition: lhaztabcontent_gd.cpp:485
void Sort(void)
Sort.
Definition: lhaztabcontent.cpp:1121
bool UploadFiles(const vector< WSTR > &files)
UploadFiles.
Definition: lhaztabcontent_gd.cpp:1118
FORMAT
Definition: lhazlist.h:22
void PopupMenu(void)
PopupMenu.
Definition: lhaztabcontent_gd.cpp:776
Definition: lhaztabcontent_gd.h:65
void Filter(void)
Filter.
Definition: lhaztabcontent_gd.cpp:220
MYSTR m_name
Definition: lhaztabcontent_gd.h:66
LONGLONG m_total
Definition: lhaztabcontent_gd.h:81
void OnIncrementalSearch(LPARAM lParam)
OnIncrementalSearch.
Definition: lhaztabcontent_gd.cpp:541
void OnSelChange(void)
OnSelChange.
Definition: lhaztabcontent_gd.cpp:705
Tab Content.
void CloseArchive(HTREEITEM hitem)
CloseArchive.
Definition: lhaztabcontent_gd.cpp:121
bool OnDownload(const MYSTR &destdir, bool decryption, bool opendest)
OnDownload.
Definition: lhaztabcontent_gd.cpp:307
void OnExtMydoc(int idx, const MYSTR &tempdir)
OnExtMydoc.
Definition: lhaztabcontent_gd.cpp:513
void OnItemChanged(LPARAM lParam)
OnItemChanged.
Definition: lhaztabcontent_gd.cpp:574
Definition: lhazfiles_gd.h:14
void Extract(int idx, const MYSTR &tempdir, const MYSTR &destdir)
Extract.
Definition: lhaztabcontent_gd.cpp:177
void SortByMenu(WPARAM wParam)
SortByMenu.
Definition: lhaztabcontent_gd.cpp:1042
void OnRefresh(void)
OnRefresh.
Definition: lhaztabcontent_gd.cpp:678
Definition: lhaztabcontent.h:32
static void DownloadCB(ULONGLONG sent, void *param)
DownloadCB.
Definition: lhaztabcontent_gd.cpp:165
LHAZFILE_GD * m_file
Definition: lhaztabcontent_gd.h:68
Definition: lhazsts.h:12
void OnSelDirExtract(int idx, const MYSTR &tempdir)
OnSelDirExtract.
Definition: lhaztabcontent_gd.cpp:717
MYSTR MakeTempDir(const MYSTR &dir)
MakeTempDir.
Definition: lhaztabcontent_gd.cpp:243
int OnNotify(HWND hWnd, WPARAM wParam, LPARAM lParam, const MYSTR &destdir, const MYSTR &tempdir)
OnNotify.
Definition: lhaztabcontent_gd.cpp:647
HANDLE m_handle
Definition: lhaztabcontent_gd.h:71
void OnEnter(const PATH &tempdir)
ENTER押下時処理
Definition: lhaztabcontent_gd.cpp:424
リストビューで用いるカラム.
Definition: lhazcol.h:23
LHAZTABCONTENT_GD(void)
Default constructor.
Definition: lhaztabcontent_gd.cpp:46
bool m_logined
Definition: lhaztabcontent_gd.h:77
MYGOOGLEDRIVE * m_googledrive
Definition: lhaztabcontent_gd.h:79
MYTHREAD * m_thread
Definition: lhaztabcontent_gd.h:80