#pragma once #include "SRFramework\SRWnd.h" #include "SRFramework\SRCommandBar.h" #include "SwordReaderResource.h" #include #include using namespace SRFramework; using namespace sword; class SRMenuBar : public SRFramework::SRCommandBar { public: BOOL Create(SRWnd* pWndParent, UINT nBarID); BOOL FillBiblesSubMenu(ModuleMap *texts, const SWModule *modCurr, int nStartID); BOOL FillCommsSubMenu(ModuleMap *texts, const SWModule *modCurr, int nStartID); BOOL FillDictsSubMenu(ModuleMap *texts, const SWModule *modCurr, int nStartID); BOOL FillOptionsSubMenu(SWBuf *bufOpts, bool *fOptsState, int nStartID, int nTotalOpts); BOOL CheckBiblesMenuItem(UINT nIDCheckItem); BOOL CheckCommsMenuItem(UINT nIDCheckItem); BOOL CheckDictsMenuItem(UINT nIDCheckItem); BOOL CheckOptionsMenuItem(UINT nIDCheckItem, BOOL fChecked); INT GetTotalBibles() { return m_nTotalBibles; } INT GetTotalComms() { return m_nTotalComms; } INT GetTotalDicts() { return m_nTotalDicts; } INT GetTotalOptions() { return m_nTotalOpts; } SRMenuBar(void); virtual ~SRMenuBar(void); private: SRMenu *m_menuMain; SRMenu *m_menuBibles; SRMenu *m_menuComms; SRMenu *m_menuDicts; SRMenu *m_menuOpts; INT m_nTotalOpts; INT m_nTotalBibles; INT m_nTotalComms; INT m_nTotalDicts; };