mirror of
https://github.com/fadden/ciderpress.git
synced 2025-01-10 08:29:34 +00:00
87 lines
2.2 KiB
C++
87 lines
2.2 KiB
C++
/*
|
|
* CiderPress
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
* See the file LICENSE for distribution terms.
|
|
*/
|
|
/*
|
|
* Choose options related to file extraction.
|
|
*/
|
|
#ifndef __EXTRACT_OPTIONS_DIALOG__
|
|
#define __EXTRACT_OPTIONS_DIALOG__
|
|
|
|
#include "../util/UtilLib.h"
|
|
#include "resource.h"
|
|
|
|
/*
|
|
* Our somewhat complicated extraction options dialog.
|
|
*/
|
|
class ExtractOptionsDialog : public CDialog {
|
|
public:
|
|
ExtractOptionsDialog(int selCount, CWnd* pParentWnd = NULL) :
|
|
CDialog(IDD_EXTRACT_FILES, pParentWnd), fSelectedCount(selCount)
|
|
{
|
|
// init values; these should be overridden before DoModal
|
|
fExtractPath = "";
|
|
fFilesToExtract = 0;
|
|
fConvEOL = 0;
|
|
fConvHighASCII = FALSE;
|
|
fIncludeDataForks = fIncludeRsrcForks = fIncludeDiskImages = FALSE;
|
|
fEnableReformat = fDiskTo2MG = FALSE;
|
|
fAddTypePreservation = fAddExtension = fStripFolderNames = FALSE;
|
|
fOverwriteExisting = FALSE;
|
|
}
|
|
virtual ~ExtractOptionsDialog(void) {
|
|
//WMSG0("~ExtractOptionsDialog()\n");
|
|
}
|
|
|
|
CString fExtractPath;
|
|
|
|
enum { kExtractSelection = 0, kExtractAll = 1 };
|
|
int fFilesToExtract;
|
|
|
|
// enum { kPreserveNone = 0, kPreserveTypes, kPreserveAndExtend };
|
|
// int fTypePreservation;
|
|
|
|
// this must match tab order of radio buttons in dialog
|
|
enum { kConvEOLNone = 0, kConvEOLType, kConvEOLAuto, kConvEOLAll };
|
|
int fConvEOL;
|
|
BOOL fConvHighASCII;
|
|
|
|
// enum { kDiskImageNoExtract = 0, kDiskImageAsPO = 1, kDiskImageAs2MG };
|
|
// int fDiskImageExtract;
|
|
|
|
BOOL fIncludeDataForks;
|
|
BOOL fIncludeRsrcForks;
|
|
BOOL fIncludeDiskImages;
|
|
|
|
BOOL fEnableReformat;
|
|
BOOL fDiskTo2MG;
|
|
|
|
BOOL fAddTypePreservation;
|
|
BOOL fAddExtension;
|
|
BOOL fStripFolderNames;
|
|
|
|
BOOL fOverwriteExisting;
|
|
|
|
bool ShouldTryReformat(void) const {
|
|
return fEnableReformat != 0;
|
|
}
|
|
|
|
private:
|
|
virtual BOOL OnInitDialog(void);
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
|
|
afx_msg void OnConfigPreserve(void);
|
|
afx_msg void OnConfigConvert(void);
|
|
afx_msg void OnChangeTextConv(void);
|
|
afx_msg void OnChooseFolder(void);
|
|
afx_msg BOOL OnHelpInfo(HELPINFO* lpHelpInfo);
|
|
afx_msg void OnHelp(void);
|
|
|
|
MyBitmapButton fChooseFolderButton;
|
|
int fSelectedCount;
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
#endif /*__EXTRACT_OPTIONS_DIALOG__*/ |