Lhaz
lhaztab.h
[詳解]
1 /*************************************************************************/
6 #pragma once
7 
8 #include <vector>
9 #include <windows.h>
10 #include "mystr.h"
11 #include "mytab.h"
12 #include "lhazlist.h"
13 #include "lhazprocfile.h"
14 
15 using std::vector;
16 
17 class ARCHIVES;
18 class ARCHIVE;
19 class LHAZSTS;
20 class LHAZTABCONTENT;
21 class LHAZTABCONTENT_GD;
22 class MYDROPBOX;
23 class MYONEDRIVE;
24 class PATH;
25 
26 namespace gui {
27 
28 class LVCOLMS;
29 class LHAZLISTVIEW;
30 class LHAZTREEVIEW;
31 
32 } // namespace gui
33 
34 class LHAZTAB : public MYTAB {
35 
36 public:
37  enum TABCLASS { TAB_CLASS_LOCAL, TAB_CLASS_CLOUD, TAB_CLASS_MIX, TAB_CLASS_MAX };
38  enum TABTYPE { TAB_TYPE_ARCHIVE, TAB_TYPE_GD, TAB_TYPE_OD, TAB_TYPE_DB, TAB_TYPE_AD, TAB_TYPE_MAX };
39  enum { e_LHAZ_HPANEL_DX = 194 };
40  //
41  struct NOTIFY_IF {
42  MYSTR destdir;
43  MYSTR tempdir;
44  };
45  //
46  LHAZTAB(
47  HINSTANCE hins,
48  HWND parent,
49  int wID,
50  bool hastreeview,
51  int panel_mes,
52  HMENU menu,
53  int sortkind,
54  bool sortrev,
55  HIMAGELIST himage,
56  vector<WSTR>& filters,
57  HFONT font,
58  LHAZSTS* stsbar
59  );
60  ‾LHAZTAB(void);
61  //
62  void ChangeColumn(void);
63  void ClearArchive(void);
64  void CloseArchive(HTREEITEM hitem);
65  void Compress(vector<LHAZPROCFILE>& compfiles, const MYSTR& curdir);
66  void DispStsBar(void);
67  bool DownloadDB(const MYSTR& destdir) const;
68  bool DownloadGD(const MYSTR& destdir) const;
69  bool DownloadOD(const MYSTR& destdir) const;
70  ARCHIVE* GetActiveArchive(void) const;
71  ARCHIVES* GetArchive(void) const;
72  TABCLASS GetClass(void) const;
73  const MYSTR& GetLabel(void) const;
74  gui::LHAZLISTVIEW* GetListView(void) const;
75  gui::LVCOLMS* GetLvcolms(void) const;
76  MYONEDRIVE* GetOneDrive(void) const;
77  gui::LHAZTREEVIEW* GetTreeView(void) const;
78  TABTYPE GetType(void) const;
79  void MoveWindow(int X, int Y, int nWidth, int nHeight, BOOL bRepaint) const;
80  void OnChangeTab(int dir);
81  void OnCompress(void);
82  void OnDropFiles(const vector<WSTR>& files, const PATH& tempname);
83  void OnEnter(const PATH& tempdir);
84  void OnMovePane(void);
85  int OnNotify(HWND hWnd, WPARAM wParam, LPARAM lParam, const NOTIFY_IF& nif);
86  void OnPanelSize(WPARAM wParam, LPARAM lParam);
87  void OnRefresh(void);
88  void OnUp(void);
89  void OutputList(const MYSTR& file, LHAZLIST::FORMAT format, bool csv, bool count, const MYSTR& countfile);
90  void Select(TABTYPE type);
91  void SetSizeText(int kb_b);
92  void Show(void) const;
93  void Sort(WPARAM wParam);
94  void SortRev(void);
95  void ShowTreeView(bool show);
96  bool UploadFiles(TABTYPE tab, const vector<WSTR>& files);
97 
98 private:
99  vector<LHAZTABCONTENT*> Contents;
100  HINSTANCE Instance;
101  //
102  void OnSelChange(void);
103 
104 };
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
Output file list in archive.
vector< LHAZTABCONTENT * > Contents
Definition: lhaztab.h:99
Definition: lhazarc.h:25
Definition: lhazbz2.h:17
Definition: lhaztab.h:34
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
TABCLASS
Definition: lhaztab.h:37
Definition: lhazarcs.h:11
Definition: lhazcol.h:35
Definition: lhaztreeview.h:18
Definition: lhaztabcontent_gd.h:21
HINSTANCE Instance
Definition: lhaztab.h:100
FORMAT
Definition: lhazlist.h:22
Definition: lhazlistview.h:14
MYSTR destdir
Definition: lhaztab.h:42
Definition: lhaztabcontent.h:32
MYSTR tempdir
Definition: lhaztab.h:43
Definition: lhazsts.h:12
Definition: lhaztab.h:41
TABTYPE
Definition: lhaztab.h:38