ciderpress/app/NewFolderDialog.h

50 lines
1.3 KiB
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.
*/
/*
* Allow the user to create a new folder.
*/
#ifndef __NEWFOLDERDIALOG__
#define __NEWFOLDERDIALOG__
#include "resource.h"
/*
* Create a new folder in an existing location.
*
* Expects, but does not verify, that "fCurrentFolder" is set to a valid
* path before DoModal is called.
*/
class NewFolderDialog : public CDialog {
public:
NewFolderDialog(CWnd* pParent = NULL) : CDialog(IDD_NEWFOLDER, pParent) {
fCurrentFolder = "";
fNewFolder = "";
fFolderCreated = false;
}
virtual ~NewFolderDialog(void) {}
2007-03-27 17:47:10 +00:00
bool GetFolderCreated(void) const { return fFolderCreated; }
2007-03-27 17:47:10 +00:00
// set to CWD before calling DoModal
CString fCurrentFolder;
2007-03-27 17:47:10 +00:00
// filename (NOT pathname) of new folder (DDXed in edit ctrl)
CString fNewFolder;
2007-03-27 17:47:10 +00:00
// full pathname of new folder, valid if fFolderCreated is true
CString fNewFullPath;
2007-03-27 17:47:10 +00:00
protected:
void DoDataExchange(CDataExchange* pDX);
BOOL OnHelpInfo(HELPINFO* lpHelpInfo);
2007-03-27 17:47:10 +00:00
// on exit, set to "true" if we created the folder in "fNewFolder"
bool fFolderCreated;
2007-03-27 17:47:10 +00:00
DECLARE_MESSAGE_MAP()
2007-03-27 17:47:10 +00:00
};
#endif /*__NEWFOLDERDIALOG__*/