87 lines
2.5 KiB
C++
87 lines
2.5 KiB
C++
/******************************************************************************
|
|
|
|
Header File: Project View.H
|
|
|
|
This defines the class which provides the UI for viewing and manipulating
|
|
project level information for the studio.
|
|
|
|
Copyright (c) 1997 by Microsoft Corporaiton. All Rights Reserved.
|
|
|
|
A Pretty Penny Enterprises Production.
|
|
|
|
Change History:
|
|
02-03-1997 Bob_Kjelgaard@Prodigy.Net Created it
|
|
|
|
******************************************************************************/
|
|
#if defined(LONG_NAMES)
|
|
#include "Project Record.H"
|
|
#else
|
|
#include "ProjRec.H"
|
|
#endif
|
|
|
|
class CProjectView : public CFormView {
|
|
protected: // create from serialization only
|
|
CProjectView();
|
|
DECLARE_DYNCREATE(CProjectView)
|
|
|
|
// Attributes
|
|
public:
|
|
//{{AFX_DATA(CProjectView)
|
|
enum { IDD = IDD_ProjectForm };
|
|
CTreeCtrl m_ctcDriver;
|
|
//}}AFX_DATA
|
|
CProjectRecord* GetDocument();
|
|
|
|
// Operations
|
|
public:
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CProjectView)
|
|
public:
|
|
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
virtual void OnInitialUpdate(); // called first time after construct
|
|
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
|
|
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
|
|
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
virtual ~CProjectView();
|
|
#ifdef _DEBUG
|
|
virtual void AssertValid() const;
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
#endif
|
|
|
|
protected:
|
|
|
|
// Messages generated by tree view nodes derived from CProjectNode
|
|
afx_msg void OnExpandBranch();
|
|
afx_msg void OnCollapseBranch();
|
|
afx_msg void OnRenameItem();
|
|
afx_msg void OnOpenItem();
|
|
afx_msg void OnGenerateItem();
|
|
afx_msg void OnImport();
|
|
afx_msg void OnDeleteItem();
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CProjectView)
|
|
afx_msg void OnBeginlabeleditDriverView(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnEndLabelEdit(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
|
|
afx_msg void OnDblclkDriverView(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnFileParse();
|
|
afx_msg void OnKeydownDriverView(NMHDR* pNMHDR, LRESULT* pResult);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
#ifndef _DEBUG // debug version in Project View.cpp
|
|
inline CProjectRecord* CProjectView::GetDocument()
|
|
{ return (CProjectRecord*)m_pDocument; }
|
|
#endif
|