GME  13
GMEObjectInspector.h
Go to the documentation of this file.
00001 // GMEObjectInspector.h: interface for the CGMEObjectInspector class.
00002 //
00004 //{{AFX_INCLUDES()
00005 #include "objectinspector.h"
00006 //}}AFX_INCLUDES
00007 
00008 #if !defined(AFX_GMEOBJECTINSPECTOR_H__25FF15A3_1A69_43B6_83DC_1A3F3E327E9B__INCLUDED_)
00009 #define AFX_GMEOBJECTINSPECTOR_H__25FF15A3_1A69_43B6_83DC_1A3F3E327E9B__INCLUDED_
00010 
00011 #if _MSC_VER > 1000
00012 #pragma once
00013 #endif // _MSC_VER > 1000
00014 
00015 class CGMEObjectInspector : public CDockablePane  
00016 {
00017 public:
00018 
00019         CGMEObjectInspector();
00020         virtual ~CGMEObjectInspector(){theInstance = 0;};
00021 
00022         IDispatch * GetInterface() {
00023                 LPUNKNOWN pUnk = m_ObjectInspector.GetControlUnknown();
00024 
00025                 // From there get the IDispatch interface of control.
00026                 LPDISPATCH pDisp = NULL;
00027                 pUnk->QueryInterface(IID_IDispatch, (LPVOID*)&pDisp);
00028                 return pDisp;
00029         }
00030 
00031         // Dialog Data
00032         //{{AFX_DATA(CGMEObjectInspector)
00033         enum { IDD = IDD_OBJECT_INSPECTOR_DIALOG };
00034         CObjectInspector        m_ObjectInspector;
00035         //}}AFX_DATA
00036 
00037         static CGMEObjectInspector *theInstance;
00038 
00039 // Overrides
00040         // ClassWizard generated virtual function overrides
00041         //{{AFX_VIRTUAL(CGMEObjectInspector)
00042         public:
00043         virtual BOOL PreTranslateMessage(MSG* pMsg);
00044         protected:
00045         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00046         //}}AFX_VIRTUAL
00047 
00048 
00049 
00050         // Generated message map functions
00051         //{{AFX_MSG(CGMEObjectInspector)
00052         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00053         afx_msg void OnSize(UINT nType, int cx, int cy);
00054         afx_msg void OnRootFolderNameChangedGmeObjectInspectorCtrl();
00055         afx_msg void OnConvertPathToCustomGmeObjectInspectorCtrl(LPUNKNOWN pMgaObject);
00056         DECLARE_EVENTSINK_MAP()
00057         //}}AFX_MSG
00058         DECLARE_MESSAGE_MAP()
00059 
00060 public:
00061         void SetObjects(LPUNKNOWN pUnknown);
00062         LPUNKNOWN GetObjects();
00063         void SetProject(CComPtr<IMgaProject>& mgaProject);
00064         void CloseProject();
00065         void ShowPanel(long panelID);
00066         void CyclePanel(VARIANT_BOOL frwd);
00067 
00068 };
00069 
00070 //{{AFX_INSERT_LOCATION}}
00071 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00072 
00073 #endif // !defined(AFX_GMEOBJECTINSPECTOR_H__25FF15A3_1A69_43B6_83DC_1A3F3E327E9B__INCLUDED_)