/*
 * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
 * http://www.gnu.org/licenses/gpl-3.0.html
 */

#ifndef STARTHEREPAGE_H
#define STARTHEREPAGE_H

#ifndef CB_PRECOMP
    #include <editorbase.h>
#endif

wxString GetStartHereTitle();

class wxHtmlWindow;
class wxHtmlLinkInfo;
class RecentItemsList;

class StartHerePage : public EditorBase
{
    wxString revInfo;

    public:
        StartHerePage(wxEvtHandler* owner, const RecentItemsList &projects,
                      const RecentItemsList &files, wxWindow* parent);
        ~StartHerePage() override;

        bool LinkClicked(const wxHtmlLinkInfo& link);
        bool VisibleToTree() const override { return false; }
        void Reload();
    private:
        void RegisterColours();
    protected:
        wxEvtHandler* m_pOwner;
        wxHtmlWindow* m_pWin;
        wxString m_OriginalPageContent;
        const RecentItemsList &m_projects;
        const RecentItemsList &m_files;
    private:
        DECLARE_EVENT_TABLE()
};

#endif // STARTHEREPAGE_H
