ciderpress/app/NewFolderDialog.h
Andy McFadden 63b9996009 Normalize indentation and EOL
This updates all source files to use spaces instead of tabs for
indentation.  It also normalizes the end-of-line markers to be
Windows-style CRLF, and ensures that all files end with EOL.

No substantive changes were made; "diff -w" is empty.
2014-11-03 16:26:53 -08:00

50 lines
1.3 KiB
C++

/*
* 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) {}
bool GetFolderCreated(void) const { return fFolderCreated; }
// set to CWD before calling DoModal
CString fCurrentFolder;
// filename (NOT pathname) of new folder (DDXed in edit ctrl)
CString fNewFolder;
// full pathname of new folder, valid if fFolderCreated is true
CString fNewFullPath;
protected:
void DoDataExchange(CDataExchange* pDX);
BOOL OnHelpInfo(HELPINFO* lpHelpInfo);
// on exit, set to "true" if we created the folder in "fNewFolder"
bool fFolderCreated;
DECLARE_MESSAGE_MAP()
};
#endif /*__NEWFOLDERDIALOG__*/