xref: /aosp_15_r20/external/lzma/CPP/7zip/UI/FileManager/EditPage.h (revision f6dc9357d832569d4d1f5d24eacdb3935a1ae8e6)
1*f6dc9357SAndroid Build Coastguard Worker // EditPage.h
2*f6dc9357SAndroid Build Coastguard Worker 
3*f6dc9357SAndroid Build Coastguard Worker #ifndef ZIP7_INC_EDIT_PAGE_H
4*f6dc9357SAndroid Build Coastguard Worker #define ZIP7_INC_EDIT_PAGE_H
5*f6dc9357SAndroid Build Coastguard Worker 
6*f6dc9357SAndroid Build Coastguard Worker #include "../../../Windows/Control/PropertyPage.h"
7*f6dc9357SAndroid Build Coastguard Worker #include "../../../Windows/Control/Edit.h"
8*f6dc9357SAndroid Build Coastguard Worker 
9*f6dc9357SAndroid Build Coastguard Worker struct CEditPageCtrl
10*f6dc9357SAndroid Build Coastguard Worker {
11*f6dc9357SAndroid Build Coastguard Worker   NWindows::NControl::CEdit Edit;
12*f6dc9357SAndroid Build Coastguard Worker   bool WasChanged;
13*f6dc9357SAndroid Build Coastguard Worker   unsigned Ctrl;
14*f6dc9357SAndroid Build Coastguard Worker   unsigned Button;
15*f6dc9357SAndroid Build Coastguard Worker };
16*f6dc9357SAndroid Build Coastguard Worker 
17*f6dc9357SAndroid Build Coastguard Worker class CEditPage: public NWindows::NControl::CPropertyPage
18*f6dc9357SAndroid Build Coastguard Worker {
19*f6dc9357SAndroid Build Coastguard Worker   CEditPageCtrl _ctrls[3];
20*f6dc9357SAndroid Build Coastguard Worker 
21*f6dc9357SAndroid Build Coastguard Worker   bool _initMode;
22*f6dc9357SAndroid Build Coastguard Worker public:
23*f6dc9357SAndroid Build Coastguard Worker   virtual bool OnInit() Z7_override;
24*f6dc9357SAndroid Build Coastguard Worker   virtual void OnNotifyHelp() Z7_override;
25*f6dc9357SAndroid Build Coastguard Worker   virtual bool OnCommand(unsigned code, unsigned itemID, LPARAM param) Z7_override;
26*f6dc9357SAndroid Build Coastguard Worker   virtual LONG OnApply() Z7_override;
27*f6dc9357SAndroid Build Coastguard Worker   virtual bool OnButtonClicked(unsigned buttonID, HWND buttonHWND) Z7_override;
28*f6dc9357SAndroid Build Coastguard Worker };
29*f6dc9357SAndroid Build Coastguard Worker 
30*f6dc9357SAndroid Build Coastguard Worker #endif
31