ciderpress/app/NewDiskSize.h

38 lines
1010 B
C
Raw Normal View History

2007-03-27 17:47:10 +00:00
/*
* CiderPress
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
* See the file LICENSE for distribution terms.
*/
/*
* Functions to manage the "new disk size" radio button set in dialogs.
*/
#ifndef __NEWDISKSIZE__
#define __NEWDISKSIZE__
/*
* All members are static. Don't instantiate the class.
*/
class NewDiskSize {
public:
NewDiskSize(void) { ASSERT(false); }
2007-03-27 17:47:10 +00:00
static unsigned int GetNumSizeEntries(void);
static long GetDiskSizeByIndex(int idx);
enum { kSpecified = -1 };
2007-03-27 17:47:10 +00:00
static void EnableButtons(CDialog* pDialog, BOOL state = true);
static void EnableButtons_ProDOS(CDialog* pDialog, long totalBlocks,
long blocksUsed);
static long GetNumBitmapBlocks_ProDOS(long totalBlocks);
static void UpdateSpecifyEdit(CDialog* pDialog);
2007-03-27 17:47:10 +00:00
private:
typedef struct {
int ctrlID;
long blocks;
} RadioCtrlMap;
2007-03-27 17:47:10 +00:00
static const RadioCtrlMap kCtrlMap[];
2007-03-27 17:47:10 +00:00
};
#endif /*__NEWDISKSIZE__*/