GME  13
InspectorDlg.h
Go to the documentation of this file.
00001 #if !defined(AFX_INSPECTORDLG_H__23328BD1_ED69_4FFD_BD49_464E75C57493__INCLUDED_)
00002 #define AFX_INSPECTORDLG_H__23328BD1_ED69_4FFD_BD49_464E75C57493__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 
00008 #include "InspectorDefs.h"
00009 #include "SplitterBar.h"
00010 #include "InspectorList.h"
00011 #include "InspectorSheet.h"
00012 #include "InspectorEntry.h"
00013 #include "NameEdit.h"
00014 
00015 // InspectorDlg.h : header file
00016 //
00017 
00019 // CInspectorDlg dialog
00020 
00021 class CInspectorDlg : public CDialog
00022 {
00023         friend class CObjectInspectorCtrl;
00024 // Construction
00025 public:
00026         void Refresh();
00027 
00028         void ShowPanel(int nPanel,bool bIsVisible);
00029 
00030         void SetName(const CString& strName,bool bIsReadOnly,bool bIsEnabled);
00031         void SetHelp(const CString& strTitle, const CString& strText);
00032 
00033         CString m_strName;
00034 
00035         CInspectorDlg(CWnd* pParent = NULL);   // standard constructor
00036         virtual ~CInspectorDlg();
00037         CNameEdit       m_NameCtrl;
00038         void Reset(bool preserveScrollPos = false);
00039         void ShowPanel(int panel);
00040         void CyclePanel(bool frwd);
00041 // Dialog Data
00042         //{{AFX_DATA(CInspectorDlg)
00043         enum { IDD = IDD_INSPECTOR_DIALOG };
00044         CInspectorSheet m_inspectorSheet;
00045         CStatic m_wndHelp;
00046         BOOL    m_forKind;
00047         //}}AFX_DATA
00048 
00049 // Overrides
00050         // ClassWizard generated virtual function overrides
00051         //{{AFX_VIRTUAL(CInspectorDlg)
00052         protected:
00053         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00054         //}}AFX_VIRTUAL
00055 
00056 // Implementation
00057 protected:
00058 
00059         // Generated message map functions
00060         //{{AFX_MSG(CInspectorDlg)
00061         afx_msg void OnSize(UINT nType, int cx, int cy);
00062         virtual BOOL OnInitDialog();
00063         afx_msg void OnSelchangeInspectorSheet(NMHDR* pNMHDR, LRESULT* pResult);
00064         afx_msg void OnKillfocusEditName();
00065         //}}AFX_MSG
00066         DECLARE_MESSAGE_MAP()
00067 
00068         afx_msg LRESULT OnNameEditEndOK(WPARAM wParam, LPARAM lParam);
00069         afx_msg LRESULT OnNameEditEndCancel(WPARAM wParam, LPARAM lParam);
00070 
00071         afx_msg LRESULT OnItemChanged(WPARAM wParam, LPARAM lParam);
00072         void OnItemChangedPreference(int nItem);
00073         void OnItemChangedAttribute(int nItem);
00074 
00075 protected:
00076         void SwitchPanel(int panel);
00077 
00078         CSplitterBar m_wndSplitterBar;
00079         CInspectorList  *m_inspectorLists[INSP_PANEL_NUM];
00080         CInspectorEntryList     *m_inspectorEntries[INSP_PANEL_NUM];
00081         CSize            m_oldSize;
00082         int                      m_currentPanel;
00083         CFont m_BoldFont;
00084 
00085 
00086         bool m_bIsPanelVisible[INSP_PANEL_NUM];
00087 
00088 
00089         
00090 };
00091 
00092 //{{AFX_INSERT_LOCATION}}
00093 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00094 
00095 #endif // !defined(AFX_INSPECTORDLG_H__23328BD1_ED69_4FFD_BD49_464E75C57493__INCLUDED_)