FLImaging 7.10.21.1
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
72 std::vector<CString>& m_oaEntries;
73 std::vector<SOARow*>& m_vctPSOARow;
74 CWndCtrlProcedure* m_pWCPBtnRemove;
75 CWndCtrlProcedure* m_pWCPEditChange;
76 protected:
77 void ShowControls(const std::vector<int>& ids, BOOL bShow);
78 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
79 virtual bool AdjustLayout();
80 virtual bool GetTabStopWnd(std::vector<CWnd*>& vct);
81 virtual int32_t GetOARowIndex(CWnd* pWnd);
82
83 public:
84 DECLARE_MESSAGE_MAP()
85 afx_msg void OnEnChangeEditClassnum();
86 afx_msg void OnEnChangeEditClassname();
87
88 afx_msg void OnBnClickedRadioLabeling();
89 afx_msg void OnBnClickedRadioOa();
90 afx_msg void OnBnClickedRadioMaster();
91
92 afx_msg void OnCbnSelchangeComboSource();
93 afx_msg void OnCbnSelchangeComboInclude();
94
95 afx_msg void OnBnClickedBtnAddClassno();
96 LRESULT OnBnClickedBtnRemoveEntry(WPARAM wParam, LPARAM lParam);
97 afx_msg void OnSize(UINT nType, int cx, int cy);
98 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
99 };
100 }
101}
Button class.
Definition GUIButton.h:32
A custom dialog class that allows a dialog created in the resource view to be embedded as a child of ...
Definition GUIDialogCustomEmbedded.h:26
Text box class.
Definition GUIEditCtrl.h:30
Definition D2DObject.h:12