mirror of
https://github.com/fadden/ciderpress.git
synced 2024-11-22 20:31:08 +00:00
63b9996009
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.
50 lines
1.3 KiB
C++
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__*/ |