FLImaging 6.5.8.1
GUIDialogImageFigureAnnotation.h
1#pragma once
2#include "GUIDialog.h"
3
4namespace FLImaging
5{
6 namespace GUI
7 {
8 class CGUISheetInterface;
9 class CGUIViewImage;
10 class CGUIManagerViewImageObject;
11 class CGUIManagerViewImageObjectImageFigure;
12
13 class CGUIDialogImageFigureAnnotation : public CGUIDialog
14 {
15 DECLARE_DYNAMIC(CGUIDialogImageFigureAnnotation)
16
17 public:
18 CGUIDialogImageFigureAnnotation(CWnd* pParent = nullptr); // 표준 생성자입니다.
19 virtual ~CGUIDialogImageFigureAnnotation();
20
21 void SetParentView(CGUIViewImage* pView);
22 CGUIViewImage* GetParentView() const;
23
24 void SetManagerObjectFigure(CGUIManagerViewImageObject* pMgr);
25 CGUIManagerViewImageObject* GetManagerObjectFigure() const;
26
27 void SetManagerImageFigure(CGUIManagerViewImageObjectImageFigure* pMgr);
28 CGUIManagerViewImageObjectImageFigure* GetManagerImageFigure() const;
29
30 const CResult FillData(const Base::CFLString<wchar_t>& strClassName);
31 const CResult InitialFillData();
32 const CResult AdjustLayoutSheet();
33
34 const CResult OnImageInfoChanged();
35 const CResult OnImageFigureChanged();
36 const CResult OnImageFigureLayerVisibleStatusChanged();
37 const CResult OnImageFigureClassVisibleStatusChanged(const Base::CFLString<wchar_t>& strClassName, bool bShow);
38
39 virtual void OnReceiveBroadcast(const Base::CBroadcastMessage* pMessage) override;
40 static CGUIDialogImageFigureAnnotation* CreateModelessDialog(CWnd* pParent = nullptr);
41
42 protected:
43 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
44 // 대화 상자 데이터입니다.
45 #ifdef AFX_DESIGN_TIME
46 enum {
47 IDD = IDD_DIALOG_IMGVIEW_ANNOTATION
48 };
49 #endif
50
51 enum ECol
52 {
53 ECol_Index = 0,
54 ECol_Show,
55 ECol_Color,
56 ECol_Name,
57 ECol_FigureString,
58
59 ECol_Count,
60 };
61
62 protected:
63 CGUIViewImage* m_pParentView;
64 CGUIManagerViewImageObject* m_pMgrObjFigure;
65 CGUIManagerViewImageObjectImageFigure* m_pMgrImgFigure;
66 CGUISheetInterface* m_pSheetInterface;
67 std::vector<CWnd*>& m_vctChildWnd;
68
69 public:
70 virtual BOOL OnInitDialog() override;
71 virtual void OnCancel() override;
72 DECLARE_MESSAGE_MAP()
73 afx_msg void OnBnClickedButtonApply();
74 afx_msg void OnBnClickedButtonDelete();
75 afx_msg void OnSize(UINT nType, int cx, int cy);
76 afx_msg void OnCbnSelchangeComboClass();
77 afx_msg void OnNMSheetSelChanged(NMHDR* pNMHDR, LRESULT* pResult);
78 afx_msg void OnNMClick(NMHDR* pNMHDR, LRESULT* pResult);
79 };
80 }
81}