xref: /aosp_15_r20/external/lzma/CPP/7zip/UI/FileManager/LinkDialog.h (revision f6dc9357d832569d4d1f5d24eacdb3935a1ae8e6)
1*f6dc9357SAndroid Build Coastguard Worker // LinkDialog.h
2*f6dc9357SAndroid Build Coastguard Worker 
3*f6dc9357SAndroid Build Coastguard Worker #ifndef ZIP7_INC_LINK_DIALOG_H
4*f6dc9357SAndroid Build Coastguard Worker #define ZIP7_INC_LINK_DIALOG_H
5*f6dc9357SAndroid Build Coastguard Worker 
6*f6dc9357SAndroid Build Coastguard Worker #include "../../../Windows/Control/Dialog.h"
7*f6dc9357SAndroid Build Coastguard Worker #include "../../../Windows/Control/ComboBox.h"
8*f6dc9357SAndroid Build Coastguard Worker 
9*f6dc9357SAndroid Build Coastguard Worker #include "LinkDialogRes.h"
10*f6dc9357SAndroid Build Coastguard Worker 
11*f6dc9357SAndroid Build Coastguard Worker class CLinkDialog: public NWindows::NControl::CModalDialog
12*f6dc9357SAndroid Build Coastguard Worker {
13*f6dc9357SAndroid Build Coastguard Worker   NWindows::NControl::CComboBox _pathFromCombo;
14*f6dc9357SAndroid Build Coastguard Worker   NWindows::NControl::CComboBox _pathToCombo;
15*f6dc9357SAndroid Build Coastguard Worker 
16*f6dc9357SAndroid Build Coastguard Worker   virtual bool OnInit() Z7_override;
17*f6dc9357SAndroid Build Coastguard Worker   virtual bool OnSize(WPARAM wParam, int xSize, int ySize) Z7_override;
18*f6dc9357SAndroid Build Coastguard Worker   virtual bool OnButtonClicked(unsigned buttonID, HWND buttonHWND) Z7_override;
19*f6dc9357SAndroid Build Coastguard Worker   void OnButton_SetPath(bool to);
20*f6dc9357SAndroid Build Coastguard Worker   void OnButton_Link();
21*f6dc9357SAndroid Build Coastguard Worker 
22*f6dc9357SAndroid Build Coastguard Worker   void ShowLastErrorMessage();
23*f6dc9357SAndroid Build Coastguard Worker   void ShowError(const wchar_t *s);
24*f6dc9357SAndroid Build Coastguard Worker   void Set_LinkType_Radio(unsigned idb);
25*f6dc9357SAndroid Build Coastguard Worker public:
26*f6dc9357SAndroid Build Coastguard Worker   UString CurDirPrefix;
27*f6dc9357SAndroid Build Coastguard Worker   UString FilePath;
28*f6dc9357SAndroid Build Coastguard Worker   UString AnotherPath;
29*f6dc9357SAndroid Build Coastguard Worker 
30*f6dc9357SAndroid Build Coastguard Worker   INT_PTR Create(HWND parentWindow = NULL)
31*f6dc9357SAndroid Build Coastguard Worker     { return CModalDialog::Create(IDD_LINK, parentWindow); }
32*f6dc9357SAndroid Build Coastguard Worker };
33*f6dc9357SAndroid Build Coastguard Worker 
34*f6dc9357SAndroid Build Coastguard Worker #endif
35