3#include "GUIPaneBase.h"
4#include "GUIEditBase.h"
5#include "GUIDefinitions.h"
13 class CInternalGUIPaneCode;
15 class CCodeRichEditCtrl :
public CRichEditCtrl, Base::CFLBase
19 CCodeRichEditCtrl() noexcept;
20 virtual ~CCodeRichEditCtrl();
24 DeclareGetClassType();
27 void Append(int32_t& i32Index, Base::CFLString<
wchar_t>& flsText, COLORREF clrText);
29 void EnableAutoScroll(
bool bEnable);
33 afx_msg
void OnContextMenu(CWnd* pWnd, CPoint point);
34 afx_msg
void OnDestroy();
35 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
41 CGUIPaneCode* m_pParentPane;
44 friend class CGUIPaneCode;
47 class FL_EXPORT CGUIPaneCode : public CGUIPaneBase
49 friend class CCodeRichEditCtrl;
51 CGUIPaneCode() noexcept;
52 CGUIPaneCode(const CGUIPaneCode& rh);
53 virtual ~CGUIPaneCode()noexcept;
58 const CResult BeginBlock(const Base::CFLBase* pObj, Base::CFLString<
wchar_t> flsInstanceName, Base::CFLString<
wchar_t> flsDesc = L"");
59 const CResult BeginBlock(Base::CFLString<
wchar_t> flsBlockName, Base::CFLString<
wchar_t> flsDesc = L"");
60 const CResult EndBlock();
62 const CResult AddImage(const Base::CFLImage* pImage, Base::CFLString<
wchar_t> flsVariableName);
63 const CResult AddFigure(const Foundation::CFLFigure* pFigure, Base::CFLString<
wchar_t> flsVariableName);
64 const CResult AddFunction(Base::CFLString<
wchar_t> flsFunctionName, Base::CFLString<
wchar_t> flsCppArgs = L"", Base::CFLString<
wchar_t> flsCSharpArgs = L"", Base::CFLArray<Base::CFLString<
wchar_t>> flaScopeName = Base::CFLArray<Base::CFLString<
wchar_t>>());
67 const CResult Write(
ECodeType eCodeType, Base::CFLString<
wchar_t> flsCode);
68 const CResult Append(
ECodeType eCodeType, Base::CFLString<
wchar_t> flsCode);
69 const CResult AppendCodeBlock(
ECodeType eCodeType, Base::CFLString<
wchar_t> flsBlockName, Base::CFLString<
wchar_t> flsCode);
71 void SetIndentCount(int32_t i32IndentCount);
72 int32_t GetIndentCount();
74 void InternalUpdateWindow();
76 DeclareGetClassType();
83 const CResult InternalWrite(
ECodeType eCodeType, Base::CFLString<
wchar_t> flsCode,
bool bAppend);
85 virtual
bool SwitchTabs(
bool bForwardDirection)override;
88 virtual BOOL PreTranslateMessage(MSG* pMsg);
89 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
92 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
93 afx_msg
void OnSize(UINT nType,
int cx,
int cy);
96 afx_msg
void OnDestroy();
97 afx_msg
void OnClose();
98 afx_msg
void OnShowWindow(BOOL bShow, UINT nStatus);
101 Base::CFLString<
wchar_t> AsciiToUnicode(const
char* pszString) const;
104 CInternalGUIPaneCode* m_pInternal;
106 CMFCTabCtrl m_wndTabs;
107 CCodeRichEditCtrl m_wndCode[2];
108 friend class CInternalManagerPane;
110 afx_msg BOOL OnMouseWheel(UINT nFlags,
short zDelta, CPoint pt);
virtual void OnReceiveBroadcast(const CBroadcastMessage *pMessage)
Callback 함수. BroadcastMessage를 수신받는 함수
ECodeType
코드 타입
Definition GUIDefinitions.h:8608