3#include "GUIPaneBase.h"
4#include "GUIEditBase.h"
5#include "DefinitionsGUI.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::CFLString<
wchar_t> flsPythonArgs = L
"", Base::CFLArray<Base::CFLString<
wchar_t>> flaScopeName = Base::CFLArray<Base::CFLString<
wchar_t>>());
66 const CResult AddFunctionWithObjectName(Base::CFLString<
wchar_t> flsObjectName, Base::CFLString<
wchar_t> flsFunctionName, Base::CFLString<
wchar_t> flsCppArgs = L
"", Base::CFLString<
wchar_t> flsCSharpArgs = L
"", Base::CFLString<
wchar_t> flsPythonArgs = L
"", Base::CFLArray<Base::CFLString<
wchar_t>> flaScopeName = Base::CFLArray<Base::CFLString<
wchar_t>>());
69 const CResult Write(
ECodeType eCodeType, Base::CFLString<
wchar_t> flsCode);
70 const CResult Append(
ECodeType eCodeType, Base::CFLString<
wchar_t> flsCode);
71 const CResult AppendCodeBlock(
ECodeType eCodeType, Base::CFLString<
wchar_t> flsBlockName, Base::CFLString<
wchar_t> flsDesc, Base::CFLString<
wchar_t> flsCode);
73 void SetIndentCount(int32_t i32IndentCount);
74 int32_t GetIndentCount();
76 void InternalUpdateWindow();
78 DeclareGetClassType();
85 const CResult InternalWrite(
ECodeType eCodeType, Base::CFLString<
wchar_t> flsCode,
bool bAppend);
86 const CResult InternalAppendCodeBlock(
ECodeType eCodeType, Base::CFLString<
wchar_t> flsBlockName, Base::CFLString<
wchar_t> flsDesc, Base::CFLString<
wchar_t> flsCode);
88 virtual
bool SwitchTabs(
bool bForwardDirection)override;
91 virtual BOOL PreTranslateMessage(MSG* pMsg);
92 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
95 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
96 afx_msg
void OnSize(UINT nType,
int cx,
int cy);
99 afx_msg
void OnDestroy();
100 afx_msg
void OnClose();
101 afx_msg
void OnShowWindow(BOOL bShow, UINT nStatus);
104 Base::CFLString<
wchar_t> AsciiToUnicode(const
char* pszString) const;
107 CInternalGUIPaneCode* m_pInternal;
109 CMFCTabCtrl m_wndTabs;
111 friend class CInternalManagerPane;
113 afx_msg BOOL OnMouseWheel(UINT nFlags,
short zDelta, CPoint pt);
virtual void OnReceiveBroadcast(const CBroadcastMessage *pMessage)
Callback function. A function that receives a BroadcastMessage.
CFLBase()
Default constructor.
Definition D2DObject.h:12
ECodeType
Code type.
Definition DefinitionsGUI.h:8963
@ ECodeType_Count
Number of code types.
Definition DefinitionsGUI.h:9002