FLImaging 7.11.27.4
GUIDialogRenameFigureDL.h
1#pragma once
2#include "GUIDialogCustomEmbedded.h"
3#include "GUIWndCtrlBase.h"
4
5// CGUIDialogRenameFigureDL 대화 상자
6
7namespace FLImaging
8{
9 namespace GUI
10 {
11 class CGUIDialogRenameFigure;
12 class CGUIStaticText;
13 class CGUIEditCtrl;
14 class CGUIButton;
15 class CGUIScrollWnd;
16
17 class CGUIDialogRenameFigureDL : public CGUIDialogCustomEmbedded
18 {
19 DECLARE_DYNAMIC(CGUIDialogRenameFigureDL)
20 friend class CGUIDialogRenameFigure;
21 public:
22 enum ESubMode
23 {
24 ESubMode_Labeling,
25 ESubMode_ObjectAugmentation,
26 ESubMode_Master
27 };
28
29 typedef struct sOARow
30 {
31 sOARow();
32 virtual ~sOARow();
33 CGUIStaticText* pStatic;
34 CGUIEditCtrl* pEdit;
35 CGUIButton* pBtnClose;
36 }SOARow;
37 public:
38 CGUIDialogRenameFigureDL(CWnd* pParent = nullptr); // 표준 생성자입니다.
39 virtual ~CGUIDialogRenameFigureDL();
40
41 // 대화 상자 데이터입니다.
42 #ifdef AFX_DESIGN_TIME
43 enum {
44 IDD = IDD_DIALOG_RENAME_FIGURE_DL
45 };
46 #endif
47
48 SupportToDuplicateObject(CGUIDialogRenameFigureDL);
49 DeclareGetClassType();
50
51 public:
52 CString BuildLabelingString() const;
53 CString BuildOAString() const;
54 CString ComputeFromDL() const;
55
56 BOOL OnInitDialog() override;
57 void OnActivated();
58 void UpdateSubModeVisibility();
59 void RefreshOAList();
60 void SyncControlsFromState();
61
62 static bool ParseGeneralIntoDL(const CString& text, ESubMode& outSub, CString& outClassNumber, CString& outClassName, int& outSourceIndex, int& outIncludeIndex, std::vector<CString>& outEntries);
63 virtual BOOL PreTranslateMessage(MSG* pMsg);
64
65 protected:
66 CGUIDialogRenameFigure* m_pDlgRFParent;
67 CGUIScrollWnd* m_pScrollWnd;
68 CGUIButton* m_pBtnOK;
69 ESubMode m_eSubMode;
70 int m_oaSourceIndex; // 0 = Source Center, 1 = Destination Center
71 int m_oaIncludeIndex; // 0 = Include, 1 = Exclude (Object Augmentation)
72 int m_lbIncludeIndex; // 0 = Include, 1 = Exclude (Labeling)
73 std::vector<CString>& m_oaEntries; // Object Augmentation 의 No. 목록
74 std::vector<CString>& m_lbEntries; // Labeling 의 No. 목록
75 std::vector<SOARow*>& m_vctPSOARow;
76 CWndCtrlProcedure* m_pWCPBtnRemove;
77 CWndCtrlProcedure* m_pWCPEditChange;
78 bool m_bSyncingRows; // 코드에서 행 텍스트를 갱신하는 중인지 여부
79
80 protected:
81 // Labeling / Object Augmentation 모드는 같은 No. 행 컨트롤을 공유하고, 데이터는 모드별로 따로 보관합니다.
82 bool HasEntryList() const;
83 std::vector<CString>& GetActiveEntries();
84 const std::vector<CString>& GetActiveEntries() const;
85 int& GetActiveIncludeIndex();
86 void ApplyEntryListState();
87 void CollectEntriesFromRows();
88
89 void ShowControls(const std::vector<int>& ids, BOOL bShow);
90 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
91 virtual bool AdjustLayout();
92 virtual bool GetTabStopWnd(std::vector<CWnd*>& vct);
93 virtual int32_t GetOARowIndex(CWnd* pWnd);
94
95 public:
96 DECLARE_MESSAGE_MAP()
97 afx_msg void OnEnChangeEditClassnum();
98 afx_msg void OnEnChangeEditClassname();
99
100 afx_msg void OnBnClickedRadioLabeling();
101 afx_msg void OnBnClickedRadioOa();
102 afx_msg void OnBnClickedRadioMaster();
103
104 afx_msg void OnCbnSelchangeComboSource();
105 afx_msg void OnCbnSelchangeComboInclude();
106
107 afx_msg void OnBnClickedBtnAddClassno();
108 LRESULT OnBnClickedBtnRemoveEntry(WPARAM wParam, LPARAM lParam);
109 afx_msg void OnSize(UINT nType, int cx, int cy);
110 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
111 };
112 }
113}
버튼 클래스
Definition GUIButton.h:32
리소스 뷰에서 만든 다이얼로그를 부모 창(dockable pane 등)의 자식으로 추가할 수 있는 사용자 정의 다이얼로그 클래스.
Definition GUIDialogCustomEmbedded.h:26
문자열 편집 창 클래스
Definition GUIEditCtrl.h:30
Definition D2DObject.h:12