GME  13
AnnotationBrowserDlg.h
Go to the documentation of this file.
00001 #if !defined(AFX_ANNOTATIONBROWSERDLG_H__64911022_2D71_4518_9D08_99D93BE9D2DD__INCLUDED_)
00002 #define AFX_ANNOTATIONBROWSERDLG_H__64911022_2D71_4518_9D08_99D93BE9D2DD__INCLUDED_
00003 
00004 #include "AnnotationList.h"
00005 #include "AnnotationAspectList.h"
00006 #include "AnnotationPanel.h"
00007 #include "AnnotationNode.h"
00008 #include "SplitterBar.h"
00009 #include "colorbtn.h"
00010 
00011 #if _MSC_VER > 1000
00012 #pragma once
00013 #endif // _MSC_VER > 1000
00014 // AnnotationBrowserDlg.h : header file
00015 //
00016 
00018 // CAnnotationBrowserDlg dialog
00019 
00020 class CAnnotationBrowserDlg : public CDialog
00021 {
00022 // Construction
00023 public:
00024         CAnnotationBrowserDlg(const CComPtr<IMgaModel> &model, const CComPtr<IMgaRegNode> &focus, CWnd* pParent = NULL);   // standard constructor
00025         virtual ~CAnnotationBrowserDlg();
00026         
00027         void UpdateAnnotations(void);
00028 
00029 // Dialog Data
00030         //{{AFX_DATA(CAnnotationBrowserDlg)
00031         enum { IDD = IDD_ANNOTATION_BROWSER };
00032         CAnnotationAspectList   m_wndAnnotationAspectList;
00033         CAnnotationList                 m_wndAnnotationList;
00034         CAnnotationPanel                m_wndAnnotation;
00035         CString                                 m_modelName;
00036         CString                                 m_modelRole;
00037         CString                                 m_modelKind;
00038         CString                                 m_anName;
00039         CString                                 m_anText;
00040         CString                                 m_anFont;
00041         BOOL                                    m_aaDefPos;
00042         long                                    m_aaXCoord;
00043         long                                    m_aaYCoord;
00044         BOOL                                    m_bGradientFill;
00045         int                                             m_iGradientDirection;
00046         BOOL                                    m_bCastShadow;
00047         int                                             m_iShadowDepth;
00048         int                                             m_iShadowDirection;
00049         BOOL                                    m_bRoundCornerRect;
00050         int                                             m_iRoundCornerRadius;
00051         //}}AFX_DATA
00052         LOGFONT                                 m_anLogFont;
00053         CColorBtn                               m_colorbtn;
00054         CColorBtn                               m_bgcolorbtn;
00055         CColorBtn                               m_shadowcolorbtn;
00056         CColorBtn                               m_gradientcolorbtn;
00057         CSplitterBar                    m_wndSplitterBar;
00058         CComPtr<IMgaModel>              m_model;
00059         CComPtr<IMgaRegNode>    m_focus;
00060 
00061         CStringArray                    m_aspectNames;
00062         CAnnotationNodeList             m_annotations;
00063 
00064 
00065 // Overrides
00066         // ClassWizard generated virtual function overrides
00067         //{{AFX_VIRTUAL(CAnnotationBrowserDlg)
00068         protected:
00069         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00070         //}}AFX_VIRTUAL
00071 
00072 // Implementation
00073 protected:
00074         void FillAspects(void);
00075         void FillAnnotations(void);
00076         void UpdateFontStr(void);
00077         void SavePanelToNode(CAnnotationNode *node);
00078         void LoadNodeToPanel(CAnnotationNode *node);
00079         void LoadAAToVisibilityPanel(CAnnotationAspect *aa);
00080         void SaveVisibilityPanelToAA(CAnnotationAspect *aa);
00081 
00082         // Generated message map functions
00083         //{{AFX_MSG(CAnnotationBrowserDlg)
00084         virtual BOOL OnInitDialog();
00085         afx_msg void OnSize(UINT nType, int cx, int cy);
00086         virtual void OnOK();
00087         afx_msg void OnItemchangedAnnotationList(NMHDR* pNMHDR, LRESULT* pResult);
00088         afx_msg void OnButtonFont();
00089         afx_msg void OnItemchangedListAspect(NMHDR* pNMHDR, LRESULT* pResult);
00090         afx_msg void OnCheckDefpos();
00091         afx_msg void OnBnClickedShowhidebutton();
00092         afx_msg void OnBnClickedRederivebutton();
00093         afx_msg void OnBnClickedCheckGradientfill();
00094         afx_msg void OnBnClickedCheckCastshadow();
00095         afx_msg void OnBnClickedCheckRoundCorner();
00096         //}}AFX_MSG
00097         DECLARE_MESSAGE_MAP()
00098 
00099 public:
00100         CButton m_inheritable;
00101         CButton m_showHideBtn;
00102         CButton m_rederiveBtn;
00103 };
00104 
00105 //{{AFX_INSERT_LOCATION}}
00106 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00107 
00108 #endif // !defined(AFX_ANNOTATIONBROWSERDLG_H__64911022_2D71_4518_9D08_99D93BE9D2DD__INCLUDED_)