mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 13:14:59 -06:00
57 lines
1.5 KiB
C++
Executable File
57 lines
1.5 KiB
C++
Executable File
// CopyDialog.h
|
|
|
|
#ifndef ZIP7_INC_COPY_DIALOG_H
|
|
#define ZIP7_INC_COPY_DIALOG_H
|
|
|
|
#include "../../../Windows/Control/ComboBox.h"
|
|
#include "../../../Windows/Control/Dialog.h"
|
|
|
|
#include "CopyDialogRes.h"
|
|
|
|
const int kCopyDialog_NumInfoLines = 14;
|
|
|
|
class CCopyDialog: public NWindows::NControl::CModalDialog
|
|
{
|
|
NWindows::NControl::CComboBox _path;
|
|
NWindows::NControl::CStatic _freeSpace;
|
|
virtual void OnOK() Z7_override;
|
|
virtual bool OnInit() Z7_override;
|
|
virtual bool OnSize(WPARAM wParam, int xSize, int ySize) Z7_override;
|
|
virtual bool OnButtonClicked(unsigned buttonID, HWND buttonHWND) Z7_override;
|
|
void OnButtonSetPath();
|
|
void OnButtonOpenPath();
|
|
void OnButtonAddFileName();
|
|
bool OnCommand(unsigned code, unsigned itemID, LPARAM lParam) Z7_override;
|
|
bool OnGetMinMaxInfo(PMINMAXINFO pMMI);
|
|
|
|
void ShowPathFreeSpace(UString & strPath);
|
|
|
|
protected:
|
|
SIZE m_sizeMinWindow;
|
|
|
|
public:
|
|
// soleDir=2: undecided
|
|
CCopyDialog(): soleDir(2), m_bOpenOutputFolder(false), m_bDeleteSourceFile(false), m_bClose7Zip (false) { m_sizeMinWindow.cx = 0; m_sizeMinWindow.cy = 0; }
|
|
|
|
UString Title;
|
|
UString Static;
|
|
UString Value;
|
|
UString Info;
|
|
UStringVector Strings;
|
|
|
|
int soleDir;
|
|
|
|
bool m_bOpenOutputFolder;
|
|
bool m_bDeleteSourceFile;
|
|
bool m_bClose7Zip;
|
|
|
|
UString m_currentFolderPrefix;
|
|
UString m_strRealFileName;
|
|
|
|
INT_PTR Create(HWND parentWindow = NULL) { return CModalDialog::Create(IDD_COPY, parentWindow); }
|
|
|
|
bool OnMessage(UINT message, WPARAM wParam, LPARAM lParam);
|
|
};
|
|
|
|
#endif
|