mirror of
https://github.com/fadden/ciderpress.git
synced 2024-12-23 11:30:13 +00:00
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
/*
|
|
* CiderPress
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
* See the file LICENSE for distribution terms.
|
|
*/
|
|
/*
|
|
* Options for converting a disk image to a file archive.
|
|
*/
|
|
#ifndef __CONVDISK_OPTIONS_DIALOG__
|
|
#define __CONVDISK_OPTIONS_DIALOG__
|
|
|
|
#include "UseSelectionDialog.h"
|
|
#include "resource.h"
|
|
|
|
/*
|
|
* Get some options.
|
|
*/
|
|
class ConvDiskOptionsDialog : public UseSelectionDialog {
|
|
public:
|
|
ConvDiskOptionsDialog(int selCount, CWnd* pParentWnd = NULL) :
|
|
UseSelectionDialog(selCount, pParentWnd, IDD_CONVDISK_OPTS)
|
|
{
|
|
fDiskSizeIdx = 0;
|
|
//fAllowLower = fSparseAlloc = FALSE;
|
|
fVolName = "NEW.DISK";
|
|
fNumBlocks = -1;
|
|
}
|
|
virtual ~ConvDiskOptionsDialog(void) {}
|
|
|
|
int fDiskSizeIdx;
|
|
//BOOL fAllowLower;
|
|
//BOOL fSparseAlloc;
|
|
CString fVolName;
|
|
|
|
long fNumBlocks; // computed when DoModal finishes
|
|
|
|
private:
|
|
virtual BOOL OnInitDialog(void);
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
|
|
// BOOL OnHelpInfo(HELPINFO* lpHelpInfo);
|
|
afx_msg void ResetSizeControls(void);
|
|
afx_msg void OnCompute(void);
|
|
|
|
afx_msg void OnRadioChangeRange(UINT nID);
|
|
|
|
void LimitSizeControls(long totalBlocks, long blocksUsed);
|
|
bool IsValidVolumeName_ProDOS(const char* name);
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
#endif /*__CONVDISK_OPTIONS_DIALOG__*/ |