#ifndef _help_H_ #define _help_H_ ////////////////////////////////////////////////////////////////////////////// // // Nav Pane // ////////////////////////////////////////////////////////////////////////////// class NavPane : public Pane { public: virtual void SetTopic(const ZString& str) = 0; virtual const ZString& GetSecondary(const ZString& str) = 0; virtual TRef GetEventSource() = 0; }; void AddNavPaneFactory(INameSpace* pns); ////////////////////////////////////////////////////////////////////////////// // // Page Pane // ////////////////////////////////////////////////////////////////////////////// class PagePaneIncluder : public IObject { public: virtual TRef Include(const ZString& str) = 0; }; class PagePane : public Pane { public: virtual void SetAttributes( IEngineFont* pfont, const Color& color, const Color& colorMain, const Color& colorSecondary, const Color& colorHighlight ) = 0; virtual void SetTopic(INameSpace* pns, const ZString& str) = 0; virtual void SetTopicText(INameSpace* pns, const ZString& str) = 0; virtual TRef GetMainLinkEventSource() = 0; virtual TRef GetSecondaryLinkEventSource() = 0; virtual void SetPagePaneIncluder(PagePaneIncluder* ppagePaneIncluder) = 0; }; void AddPagePaneFactory(INameSpace* pns, Modeler* pmodeler); ////////////////////////////////////////////////////////////////////////////// // // Help // ////////////////////////////////////////////////////////////////////////////// class HelpPane : public Pane { public: virtual void SetTopic(const ZString& str) = 0; virtual void SetString(const ZString& strIdentifier, const ZString& strValue) = 0; virtual IEventSource* GetEventSourceClose() = 0; }; ////////////////////////////////////////////////////////////////////////////// // // Help // ////////////////////////////////////////////////////////////////////////////// TRef CreateHelpPane(Modeler* pmodeler, const ZString& strTopic, PagePaneIncluder* ppagePaneIncluder); TRef CreateMMLPopup(Modeler* pmodeler, const ZString& strTopic, bool bText); #endif