#pragma once #include "SRModuleView.h" #include "SRScripRefView.h" #include "SRModuleWidget.h" #include "SRSubWindow.h" #include "swmodule.h" #include "versekey.h" class SRCommWidget : public SRModuleWidget { public: SRCommWidget(); ~SRCommWidget(); BOOL Init(); VOID Show(); VOID ShowScripRef(const WCString ¬e); VOID HideSubWindow(SRSubWindow *pSubWnd); VOID ShowScripRef(SWModule *pModule, const WCString &key); VOID ShowScripRefSubWindow(); VOID SetScripRefModule(SWModule *pModule); VOID SetSwordReady(); virtual VOID MoveWindow(LPCRECT lpRect,BOOL bRepaint = TRUE); BOOL OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); private: SRScripRefView *m_viewScripRef; SRSubWindow *m_subWndScripRef; BOOL m_fScripRefVisible; };