xref: /aosp_15_r20/external/lzma/CPP/7zip/UI/FileManager/MemDialog.h (revision f6dc9357d832569d4d1f5d24eacdb3935a1ae8e6)
1 // MemDialog.h
2 
3 #ifndef ZIP7_INC_MEM_DIALOG_H
4 #define ZIP7_INC_MEM_DIALOG_H
5 
6 #include "../../../Windows/Control/Dialog.h"
7 // #include "../../../Windows/Control/ComboBox.h"
8 
9 #include "MemDialogRes.h"
10 
11 class CMemDialog: public NWindows::NControl::CModalDialog
12 {
13   // NWindows::NControl::CComboBox m_Action;
14   // we can disable default OnOK() when we press Enter
15   // virtual void OnOK() Z7_override { }
16   virtual void OnContinue() Z7_override;
17   virtual bool OnInit() Z7_override;
18   virtual bool OnButtonClicked(unsigned buttonID, HWND buttonHWND) Z7_override;
19   void EnableSpin(bool enable);
20   // int AddAction(UINT id);
21 public:
22   bool NeedSave;
23   bool Remember;
24   bool SkipArc;
25   bool TestMode;
26   bool ShowRemember;
27   // bool ShowSkipFile;
28   UInt32 Required_GB;
29   UInt32 Limit_GB;
30   UString ArcPath;
31   UString FilePath;
32 
33   void AddInfoMessage_To_String(UString &s, const UInt32 *ramSize_GB = NULL);
34 
CMemDialog()35   CMemDialog():
36     NeedSave(false),
37     Remember(false),
38     SkipArc(false),
39     TestMode(false),
40     ShowRemember(true),
41     // ShowSkipFile(true),
42     Required_GB(4),
43     Limit_GB(4)
44     {}
45   INT_PTR Create(HWND parentWindow = NULL) { return CModalDialog::Create(IDD_MEM, parentWindow); }
46 };
47 
48 #endif
49