Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
lhazregs.h
[詳解]
1/*************************************************************************/
6#pragma once
7
8#include "altstr.hpp"
9#include <windows.h>
10#include "mybuf.h"
11#include "myregistory.h"
12#include "defpasswords.h"
13#include "lhazarc.h"
14#include "lhazshellex.h"
15
16#define GS(type, v) ¥
17public: ¥
18 type Get##v(void) const { return v; } ¥
19 void Set##v(type b) { v = b; } ¥
20private: ¥
21 type v;
22
23using std::vector;
24
25class DEFPASSWORDS;
26class DESTDIRS;
27class LHAZEXTHIST;
28class LHAZHIST;
29
30/*************************************************************************/
33class LHAZREGS : public MYREGISTORY {
34
35public:
42 enum { LHAZMAXVIEWER = 5 };
43 //
44 struct XYS {
45 XYS(void);
46 int x;
47 int y;
48 };
49 //
50 static const TCHAR LHAZGDCREDENTIALSREG[];
51 //
52 LHAZREGS(const WSTR& name);
53 ‾LHAZREGS(void);
54 //
55 void DeleteDropBoxToken(void);
56 void DeleteGDEmail(void);
57 void DeleteGDPassword(void);
58 bool GetKobetuComp(void) const { return KobetuComp; }
59 void SetKobetuComp(bool b, bool w = false);
60 bool GetNoComp(void) const { return NoComp; }
61 void SetNoComp(bool b, bool w = false);
62 bool IsEncZip(void) const {
63 return (CompType == ARCHIVE::ENCZIP);
64 }
65 bool IsCab(void) const {
66 return (CompType == ARCHIVE::CAB || CompType == ARCHIVE::SFXCAB);
67 }
68 WSTR GetDownloadsDir(void) const;
69 const WSTR& GetViewers(int idx) const { return Viewers[idx]; }
70 void SetViewers(int idx, const WSTR& v) { Viewers[idx] = v; }
71 vector<WSTR>& GetArcNames(void) { return ArcNames; }
72 const TCHAR* GetArcNameDef(void) const { return ArcNameDef; }
73 vector<WSTR>& GetFilters(void) { return Filters; }
74 vector<WSTR>& GetGrepStrings(void) { return GrepStrings; }
75 vector<WSTR>& GetListFiles(void) { return ListFiles; }
76 DEFPASSWORDS* GetDefPasswords(void) const { return DefPasswords; }
78 int GetPassCnt(void) const { return DefPasswords->Size(); }
79 const TCHAR* GetPasswords(int i) const { return DefPasswords->Get(i); }
80 void SaveReg(bool popchange);
81 vector<ARCHIVE::TYPE>& GetCompPopups(void) { return CompPopups; }
82 void SetShellView(bool);
83 bool SetShellViewSub(const TCHAR* p, const TCHAR* sw);
84 void ClearAll(void);
85 LHAZSHELLEX& GetShellEx(void) { return ShellEx; }
86 DESTDIRS* GetDestDirs(void) const { return DestDirs; }
87 void SetDestDirs(DESTDIRS* d) { DestDirs = d; }
88 LHAZEXTHIST* GetExtHist(void) const { return ExtHist; }
89 void SetExtHist(LHAZEXTHIST* h) { ExtHist = h; }
90 void Save(void);
91 // Bool values
92 GS(bool, m_close_after_extract);
93 GS(bool, m_close_after_compress);
94 GS(bool, m_popsave);
95 GS(bool, m_usedropbox);
96 GS(bool, m_usegoogledrive);
97 GS(bool, m_useonedrive);
98 GS(bool, CompPopupKobetu);
99 GS(bool, CompPopupStore);
100 GS(bool, ConComp);
101 GS(bool, ConView);
102 GS(bool, DefPassDspCmp);
103 GS(bool, DefPassDspExt);
104 GS(bool, DelDigit);
105 GS(bool, DelDigitPop);
106 GS(bool, HasTreeView);
107 GS(bool, KanrenL);
108 GS(bool, KanrenZ);
109 GS(bool, KanrenC);
110 GS(bool, KanrenT);
111 GS(bool, KanrenA);
112 GS(bool, KanrenG);
113 GS(bool, KanrenB);
114 GS(bool, Kanren2);
115 GS(bool, KanrenR);
116 GS(bool, Kanren7);
117 GS(bool, KanrenTXZ);
118 GS(bool, KanrenXZ);
119 GS(bool, ListCsv);
120 GS(bool, ListOpen);
121 GS(bool, MakeDir);
122 GS(bool, MultiPrg);
123 GS(bool, NoMakeDir);
124 GS(bool, NoPopSave);
125 GS(bool, OpenCompDir);
126 GS(bool, OpenDir);
127 GS(bool, Passtry);
128 GS(bool, PassTwice);
129 GS(bool, RecExtHist);
130 GS(bool, RecHis);
131 GS(bool, SaveExtDlgPos);
132 // Int values
133 GS(int, ArcNameSel);
134 GS(int, Bz2Size);
135 GS(int, CabMethod);
136 GS(COMPNAME, CompName);
137 GS(COMPQUICK, CompQuick);
138 GS(ARCHIVE::TYPE, CompType);
139 GS(int, DefPassCmp);
140 GS(int, DefPassExt);
141 GS(unsigned int, DivSize);
142 GS(EXETYPE, ExeType);
143 GS(EXTQUICK, ExtQuick);
144 GS(int, Filter);
145 GS(int, GzipLevel);
146 GS(int, Iconic);
147 GS(KOBETU, KobetuMethod);
148 GS(int, ListFormat);
149 GS(int, ListViewer);
150 GS(RECT, LVRect);
151 GS(int, LzhHeader);
152 GS(int, LzhMethod);
153 GS(int, OpenType);
154 GS(int, PassEnterDef);
155 GS(int, PrgStyle);
156 GS(int, SfxUseDlg);
157 GS(int, SzipLevel);
158 GS(int, SzipMethod);
159 GS(int, ViewByte);
160 GS(VIEWTOTAL, ViewTotal);
161 GS(int, XZLevel);
162 GS(int, ZipLevel);
163 GS(int, ZstdLevel);
164 // String values
165 GS(WSTR, CompDir);
166 GS(WSTR, ExecApp);
167 GS(WSTR, GDDownloadDir);
168 GS(WSTR, m_gd_email);
169 GS(WSTR, m_gd_password);
170 GS(WSTR, GrepViewer);
171 GS(WSTR, ListCountFile);
172 GS(WSTR, OpenFolder);
173 GS(WSTR, TempDir);
174 GS(WSTR, CurrentGoogleMail);
175 GS(WSTR, CurrentGoogleUser);
176 GS(WSTR, PresetPassword);
177 // Structure values
178 GS(RECT, GrepRect);
179 GS(XYS, XY);
180
181private:
182 static const TCHAR ArcNameDef[];
183 static const TCHAR LHAZREG[];
184 //
186 bool NoComp;
188 vector<WSTR> ArcNames;
192 vector<WSTR> Filters;
193 vector<WSTR> GrepStrings;
194 vector<WSTR> ListFiles;
195 vector<ARCHIVE::TYPE> CompPopups;
197 //
198 void CheckListFiles(void);
199 void DeleteReg(const WSTR& d);
200 bool GetAssoc(const TCHAR* ext, const TCHAR* aso, const TCHAR* viw, const TCHAR* old);
201 void ReadCompPopups(void);
203 void ResetRegSub(LPTSTR oldclass, LPCTSTR ext);
204
205};
206
207#undef GS
208
209extern LHAZREGS* LhazRegs;
TYPE
Definition lhazarc.h:28
@ SFXCAB
Definition lhazarc.h:41
@ CAB
Definition lhazarc.h:33
@ ENCZIP
Definition lhazarc.h:32
デフォルトパスワード
Definition defpasswords.h:17
TCHAR * Get(unsigned int idx)
Definition defpasswords.h:24
int Size(void) const
Definition defpasswords.h:23
解凍先ディレクトリ
Definition destdirs.h:15
Definition lhazexthist.h:11
Definition lhazhist.h:15
レジストリ
Definition lhazregs.h:33
GS(int, PrgStyle)
DESTDIRS * GetDestDirs(void) const
Definition lhazregs.h:86
GS(bool, KanrenB)
GS(COMPNAME, CompName)
void SetShellView(bool)
LhazArchive¥Shell を View/Open に設定する
Definition lhazregs.cpp:548
GS(RECT, LVRect)
GS(bool, KanrenT)
GS(bool, Passtry)
GS(bool, DelDigitPop)
GS(bool, m_close_after_compress)
GS(int, GzipLevel)
void ResetReg(ARCHIVE::TYPE)
関連付け解除
Definition lhazregs.cpp:426
void SetViewers(int idx, const WSTR &v)
Definition lhazregs.h:70
GS(bool, DefPassDspCmp)
GS(int, ViewByte)
static const TCHAR ArcNameDef[]
標準の圧縮書庫名
Definition lhazregs.h:182
GS(bool, m_useonedrive)
COMPNAME
Definition lhazregs.h:36
@ COMP_DEF
Definition lhazregs.h:36
@ COMP_SET
Definition lhazregs.h:36
static const TCHAR LHAZGDCREDENTIALSREG[]
Google Drive Credentials
Definition lhazregs.h:50
GS(int, LzhHeader)
void ClearAll(void)
全設定消去
Definition lhazregs.cpp:232
GS(int, CabMethod)
LHAZEXTHIST * GetExtHist(void) const
Definition lhazregs.h:88
void SetKobetuComp(bool b, bool w=false)
個別圧縮設定保存
Definition lhazregs.cpp:526
GS(int, ArcNameSel)
GS(int, DefPassCmp)
GS(bool, KanrenR)
DEFPASSWORDS * DefPasswords
Definition lhazregs.h:189
GS(WSTR, TempDir)
GS(int, XZLevel)
GS(bool, NoMakeDir)
GS(WSTR, CurrentGoogleMail)
const WSTR & GetViewers(int idx) const
Definition lhazregs.h:69
LHAZSHELLEX ShellEx
Definition lhazregs.h:196
EXTQUICK
Definition lhazregs.h:39
@ EXT_DIR
Definition lhazregs.h:39
@ EXT_VIEW
Definition lhazregs.h:39
@ EXT_HERE
Definition lhazregs.h:39
@ EXT_POPUP
Definition lhazregs.h:39
void DeleteGDEmail(void)
DeleteGDEmail
Definition lhazregs.cpp:617
GS(int, ZipLevel)
GS(EXETYPE, ExeType)
GS(bool, RecExtHist)
GS(bool, KanrenL)
static const TCHAR LHAZREG[]
レジストリ格納場所
Definition lhazregs.h:183
vector< WSTR > & GetListFiles(void)
Definition lhazregs.h:75
vector< WSTR > & GetArcNames(void)
Definition lhazregs.h:71
void SetNoComp(bool b, bool w=false)
非圧縮設定保存
Definition lhazregs.cpp:537
vector< WSTR > & GetFilters(void)
Definition lhazregs.h:73
GS(COMPQUICK, CompQuick)
GS(EXTQUICK, ExtQuick)
GS(WSTR, OpenFolder)
void SaveReg(bool popchange)
レジストリ保存
Definition lhazregs.cpp:499
VIEWTOTAL
Definition lhazregs.h:41
@ VT_GIGA
Definition lhazregs.h:41
@ VT_BYTE
Definition lhazregs.h:41
@ VT_MEGA
Definition lhazregs.h:41
@ VT_KILO
Definition lhazregs.h:41
GS(bool, KanrenTXZ)
GS(VIEWTOTAL, ViewTotal)
bool GetAssoc(const TCHAR *ext, const TCHAR *aso, const TCHAR *viw, const TCHAR *old)
関連付け取得
Definition lhazregs.cpp:298
GS(unsigned int, DivSize)
GS(bool, ListOpen)
GS(WSTR, ExecApp)
GS(WSTR, CompDir)
void SetDestDirs(DESTDIRS *d)
Definition lhazregs.h:87
void SetDefPasswords(DEFPASSWORDS *d)
Definition lhazregs.h:77
GS(bool, KanrenC)
GS(int, Iconic)
vector< ARCHIVE::TYPE > & GetCompPopups(void)
Definition lhazregs.h:81
GS(int, ZstdLevel)
GS(bool, m_popsave)
bool SetShellViewSub(const TCHAR *p, const TCHAR *sw)
LhazArchive¥Shell を View/Open に設定するサブ
Definition lhazregs.cpp:592
int GetPassCnt(void) const
Definition lhazregs.h:78
GS(XYS, XY)
DESTDIRS * DestDirs
Definition lhazregs.h:190
WSTR Viewers[LHAZMAXVIEWER]
Definition lhazregs.h:187
GS(int, SzipLevel)
GS(bool, PassTwice)
GS(bool, Kanren2)
LHAZSHELLEX & GetShellEx(void)
Definition lhazregs.h:85
GS(bool, KanrenG)
bool IsEncZip(void) const
Definition lhazregs.h:62
GS(bool, m_usedropbox)
GS(int, Filter)
GS(ARCHIVE::TYPE, CompType)
void SetExtHist(LHAZEXTHIST *h)
Definition lhazregs.h:89
COMPQUICK
Definition lhazregs.h:37
@ COMP_NAME
Definition lhazregs.h:37
@ COMP_QUICK
Definition lhazregs.h:37
@ COMP_POPUP
Definition lhazregs.h:37
GS(bool, HasTreeView)
bool NoComp
Definition lhazregs.h:186
vector< ARCHIVE::TYPE > CompPopups
Definition lhazregs.h:195
GS(bool, KanrenZ)
@ LHAZMAXVIEWER
Definition lhazregs.h:42
GS(bool, Kanren7)
vector< WSTR > ListFiles
Definition lhazregs.h:194
GS(WSTR, ListCountFile)
LHAZEXTHIST * ExtHist
Definition lhazregs.h:191
GS(bool, ListCsv)
GS(bool, OpenDir)
GS(int, PassEnterDef)
GS(bool, DefPassDspExt)
GS(int, SzipMethod)
GS(bool, ConComp)
GS(bool, KanrenXZ)
const TCHAR * GetArcNameDef(void) const
Definition lhazregs.h:72
vector< WSTR > GrepStrings
Definition lhazregs.h:193
GS(bool, DelDigit)
GS(bool, MakeDir)
void ResetRegSub(LPTSTR oldclass, LPCTSTR ext)
関連付け解除サブ
Definition lhazregs.cpp:471
GS(int, ListViewer)
GS(WSTR, GDDownloadDir)
GS(bool, m_usegoogledrive)
GS(bool, RecHis)
GS(WSTR, m_gd_password)
GS(bool, CompPopupKobetu)
GS(bool, ConView)
void CheckListFiles(void)
リストファイル存在確認
Definition lhazregs.cpp:218
GS(int, ListFormat)
bool IsCab(void) const
Definition lhazregs.h:65
void DeleteGDPassword(void)
DeleteGDPassword
Definition lhazregs.cpp:632
GS(KOBETU, KobetuMethod)
bool KobetuComp
Definition lhazregs.h:185
GS(bool, MultiPrg)
GS(RECT, GrepRect)
GS(bool, KanrenA)
void DeleteDropBoxToken(void)
DeleteDropBoxToken
Definition lhazregs.cpp:608
bool GetKobetuComp(void) const
Definition lhazregs.h:58
WSTR GetDownloadsDir(void) const
「ダウンロード」フォルダ取得
Definition lhazregs.cpp:339
KOBETU
Definition lhazregs.h:40
@ K_FILE
Definition lhazregs.h:40
@ K_FOLDER
Definition lhazregs.h:40
GS(int, Bz2Size)
GS(WSTR, GrepViewer)
void DeleteReg(const WSTR &d)
設定消去用レジストリ削除サブ
Definition lhazregs.cpp:271
‾LHAZREGS(void)
デストラクタ
Definition lhazregs.cpp:208
bool GetNoComp(void) const
Definition lhazregs.h:60
GS(WSTR, m_gd_email)
GS(WSTR, CurrentGoogleUser)
const TCHAR * GetPasswords(int i) const
Definition lhazregs.h:79
GS(bool, OpenCompDir)
vector< WSTR > ArcNames
Definition lhazregs.h:188
GS(bool, SaveExtDlgPos)
GS(int, LzhMethod)
void Save(void)
保存
Definition lhazregs.cpp:647
GS(WSTR, PresetPassword)
EXETYPE
Definition lhazregs.h:38
@ EXETYPE_EXPLORE
Definition lhazregs.h:38
@ EXETYPE_APP
Definition lhazregs.h:38
@ EXETYPE_OPEN
Definition lhazregs.h:38
GS(int, DefPassExt)
GS(bool, NoPopSave)
vector< WSTR > & GetGrepStrings(void)
Definition lhazregs.h:74
GS(bool, CompPopupStore)
DEFPASSWORDS * GetDefPasswords(void) const
Definition lhazregs.h:76
void ReadCompPopups(void)
圧縮ポップアップ表示形式読み込み
Definition lhazregs.cpp:388
GS(bool, m_close_after_extract)
GS(int, OpenType)
GS(int, SfxUseDlg)
vector< WSTR > Filters
Definition lhazregs.h:192
Definition lhazshellex.h:11
Definition WinUnit.h:351
Default passwords
Archive
¥ type v
Definition lhazregs.h:21
LHAZREGS * LhazRegs
インスタンス
Definition lhazregs.cpp:22
Definition lhazregs.h:44
int y
Definition lhazregs.h:47
XYS(void)
解凍ダイアログ位置
Definition lhazregs.cpp:750
int x
Definition lhazregs.h:46