#pragma once #include "SRTextView.h" #include #include using namespace sword; using namespace SRFramework; class SRScripRefView : public SRTextView { public: SRScripRefView(); virtual ~SRScripRefView(void); BOOL OnCommand(WORD wNotifyCode, WORD wID, HWND hWndCtl); VOID SetModule(SWModule *pModule); VOID SetKeys(const ListKey &refs); VOID RefreshScreen(BOOL fReloadText = FALSE); BOOL OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); WCString GetWindowTitle(); const SWModule* GetModule() { return m_pModule; } VOID SetSwordReady() { m_fSwordInit = TRUE; } void ClearGlobalOptions(); private: VOID LoadTextView(); WCString GetVerseHeader(VerseKey *key) const; ListKey m_refs; SWModule *m_pModule; BOOL m_fSwordInit; };