3#include <unordered_set>
9 class CGUISheetInterface;
11 class CGUIManagerViewImageObject;
12 class CGUIManagerViewImageObjectImageFigure;
13 class CGUIViewImageObjectImageFigure;
15 class CGUIDialogImageFigureAnnotation :
public CGUIDialog
17 DECLARE_DYNAMIC(CGUIDialogImageFigureAnnotation)
18 friend class CGUIViewImage;
20 CGUIDialogImageFigureAnnotation(CWnd* pParent =
nullptr);
21 virtual ~CGUIDialogImageFigureAnnotation();
23 void SetParentView(CGUIViewImage* pView);
24 CGUIViewImage* GetParentView()
const;
26 void SetManagerObjectFigure(CGUIManagerViewImageObject* pMgr);
27 CGUIManagerViewImageObject* GetManagerObjectFigure()
const;
29 void SetManagerImageFigure(CGUIManagerViewImageObjectImageFigure* pMgr);
30 CGUIManagerViewImageObjectImageFigure* GetManagerImageFigure()
const;
32 const CResult FillData(
const Base::CFLString<wchar_t>& strClassName);
33 const CResult InitialFillData();
34 const CResult AdjustLayoutSheet();
36 const CResult OnImageInfoChanged();
37 const CResult OnImageFigureChanged();
38 const CResult OnImageFigureLayerVisibleStatusChanged();
39 const CResult OnImageFigureClassVisibleStatusChanged(
const Base::CFLString<wchar_t>& strClassName,
bool bShow);
41 virtual void OnReceiveBroadcast(
const Base::CBroadcastMessage* pMessage)
override;
42 static CGUIDialogImageFigureAnnotation* CreateModelessDialog(CWnd* pParent =
nullptr);
45 virtual BOOL PreTranslateMessage(MSG* pMsg);
46 void InternalGetSelectedPages(Base::CFLArray<int32_t>& flaPages)
const;
48 void BuildRow(CGUIViewImageObjectImageFigure* pImgFig, int32_t i32Page,
bool bFigureLayerVisible, Base::CFLArray<Base::CFLArray<Base::CFLString<wchar_t>>>& flaData);
49 const CResult FillSheet(
const Base::CFLString<wchar_t>& strClassName,
const std::vector<CGUIViewImageObjectImageFigure*>& vctImgFigures);
50 void FillClassComboBox();
52 virtual void DoDataExchange(CDataExchange* pDX);
54 #ifdef AFX_DESIGN_TIME
56 IDD = IDD_DIALOG_IMGVIEW_ANNOTATION
72 enum EAnnotationDirty : uint32_t
74 EAnnotationDirty_None = 0x00,
75 EAnnotationDirty_Rows = 0x01,
76 EAnnotationDirty_Force = 0x02,
80 CGUIViewImage* m_pParentView;
81 CGUIManagerViewImageObject* m_pMgrObjFigure;
82 CGUIManagerViewImageObjectImageFigure* m_pMgrImgFigure;
83 CGUISheetInterface* m_pSheetInterface;
84 std::vector<CWnd*>& m_vctChildWnd;
85 std::unordered_set<std::wstring>& m_setClassNames;
86 Base::CFLString<wchar_t> m_strSelectedClass;
87 bool m_bPageMoveFromOnNMSheetSelChanged;
92 virtual BOOL OnInitDialog()
override;
93 virtual void OnCancel()
override;
95 afx_msg
void OnBnClickedButtonApply();
96 afx_msg
void OnBnClickedButtonDelete();
97 afx_msg
void OnSize(UINT nType,
int cx,
int cy);
98 afx_msg
void OnCbnSelchangeComboPage();
99 afx_msg
void OnCbnSelchangeComboClass();
100 afx_msg
void OnEnKillfocusEditPage();
101 afx_msg
void OnNMSheetSelChanged(NMHDR* pNMHDR, LRESULT* pResult);
102 afx_msg
void OnNMClick(NMHDR* pNMHDR, LRESULT* pResult);
103 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
104 LRESULT OnUpdateContents(WPARAM wParam, LPARAM lParam);
105 void RequestUpdate(uint32_t u32Dirty);
A file of dialog class.
Definition GUIDialog.h:72
A class of image view.
Definition FLImagingGUI/GUIViewImage.h:361
Definition D2DObject.h:12
EViewImageTargetPage
Definition FLImagingGUI/DefinitionsGUI.h:15190