mirror of
https://github.com/fadden/ciderpress.git
synced 2024-12-01 19:50:21 +00:00
f6647b9978
Mostly a bulk conversion of debug messages, primarily with sed: sed -e 's/\(WMSG[0-9]\)\(.*\)\(\\n"\)/LOGI\2"/' This removes the '\n' from the end of the log messages, and sets them all to "info" severity. We want to prefix each line with file/line and/or a timestamp, so it doesn't make sense to have a partial line, and there's no value in embedding the '\n' in every string.
79 lines
1.9 KiB
C++
79 lines
1.9 KiB
C++
/*
|
|
* CiderPress
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
* See the file LICENSE for distribution terms.
|
|
*/
|
|
// ProgressDlg.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "mdc.h"
|
|
#include "ProgressDlg.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// ProgressDlg dialog
|
|
|
|
#if 0
|
|
ProgressDlg::ProgressDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(ProgressDlg::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(ProgressDlg)
|
|
// NOTE: the ClassWizard will add member initialization here
|
|
//}}AFX_DATA_INIT
|
|
|
|
fpCancelFlag = NULL;
|
|
}
|
|
#endif
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(ProgressDlg, CDialog)
|
|
//{{AFX_MSG_MAP(ProgressDlg)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// ProgressDlg message handlers
|
|
|
|
BOOL ProgressDlg::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
|
|
{
|
|
// TODO: Add your specialized code here and/or call the base class
|
|
|
|
return CDialog::Create(IDD, pParentWnd);
|
|
}
|
|
|
|
void ProgressDlg::PostNcDestroy()
|
|
{
|
|
// TODO: Add your specialized code here and/or call the base class
|
|
delete this;
|
|
|
|
//CDialog::PostNcDestroy();
|
|
}
|
|
|
|
/*
|
|
* Update the progress display with the name of the file we're currently
|
|
* working on.
|
|
*/
|
|
void
|
|
ProgressDlg::SetCurrentFile(const WCHAR* fileName)
|
|
{
|
|
CWnd* pWnd = GetDlgItem(IDC_PROGRESS_FILENAME);
|
|
ASSERT(pWnd != NULL);
|
|
pWnd->SetWindowText(fileName);
|
|
}
|
|
|
|
void ProgressDlg::OnCancel()
|
|
{
|
|
// TODO: Add extra cleanup here
|
|
LOGI("Cancel button pushed");
|
|
ASSERT(fpCancelFlag != NULL);
|
|
*fpCancelFlag = true;
|
|
|
|
//CDialog::OnCancel();
|
|
}
|